Skip to content

Documentation / @facturometro/core / PROFILE_IDS

Variable: PROFILE_IDS ​

const PROFILE_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 ​

readonly urn:fdc:peppol.eu:2017:poacc:billing:01:1.0: "01" = '01'

urn:peppol:bis:billing_with_response ​

readonly urn: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'

MIT licensed. Specification artefacts belong to OpenPEPPOL, CEN and OASIS.