Documentation / @facturometro/einvoice / PROFILE_IDS
Variable: PROFILE_IDS ​
constPROFILE_IDS:object
Defined in: packages/core/src/constants.ts:78
Every cbc:ProfileID recognised by Peppol BIS Billing 3.0, mapped to the process code the Schematron computes for it.
Taken verbatim from the $profile let of PEPPOL-EN16931-UBL.sch 3.0.21, which knows exactly two ids: the billing 01 id and billing-with-response (02). Anything else (the French profile ids included, which the pinned release does not list) is Unknown to the Schematron and makes PEPPOL-EN16931-R007 fail.
Type Declaration ​
urn:fdc:peppol.eu:2017:poacc:billing:01:1.0 ​
readonlyurn:fdc:peppol.eu:2017:poacc:billing:01:1.0:"01"='01'
urn:peppol:bis:billing_with_response ​
readonlyurn:peppol:bis:billing_with_response:"02"='02'
Example ​
ts
import { PROFILE_IDS } from '@facturometro/core';
const profile = PROFILE_IDS['urn:peppol:bis:billing_with_response'] ?? 'Unknown'; // '02'