Skip to content

Documentation / @facturometro/validator / ChargeIndicatorSemantics

Type Alias: ChargeIndicatorSemantics ​

ChargeIndicatorSemantics = "cen" | "peppol"

Defined in: packages/validator/src/engine/selectors.ts:30

Which file's reading of cbc:ChargeIndicator to apply: cen casts it to xs:boolean (true/1 and false/0), peppol compares the whitespace-normalized text with the literal true/false.

Example ​

ts
import type { ChargeIndicatorSemantics } from '@facturometro/validator';

const semantics: ChargeIndicatorSemantics = 'cen';

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