Skip to content

Documentation / einvoice-ts / registeredRulesets

Function: registeredRulesets() ​

registeredRulesets(): readonly Required<RulesetRegistration>[]

Defined in: packages/validator/src/rulesets/registry.ts:114

Every registration, in registration order; the built-in Peppol and CIUS-ES-FACE ones come first.

Returns ​

readonly Required<RulesetRegistration>[]

The registrations, matchPrefix filled in.

Example ​

ts
import { registeredRulesets } from '@einvoice-ts/validator';

registeredRulesets().map((registration) => registration.customizationId);
// ['urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0', ...]

MIT licensed. Specification material belongs to OpenPeppol, CEN and OASIS (see NOTICE). Peppol is a trademark of OpenPeppol AISBL; this project is not affiliated with it.