Documentation / @einvoice-ts/core / PROFILE_IDS
Variable: PROFILE_IDS ​
constPROFILE_IDS:object
Defined in: packages/core/src/constants.ts:97
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.22, which knows four ids: the billing id and the two French billing ids (regulated, non-regulated) are 01, billing with response is 02. Anything else 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'
urn:peppol:france:billing:non-regulated ​
readonlyurn:peppol:france:billing:non-regulated:"01"='01'
urn:peppol:france:billing:regulated ​
readonlyurn:peppol:france:billing:regulated:"01"='01'
Example ​
import { PROFILE_IDS } from '@einvoice-ts/core';
const profile = PROFILE_IDS['urn:peppol:bis:billing_with_response'] ?? 'Unknown'; // '02'