enum
Zugpferd::Profile
Overview
ZUGFeRD 2.x / Factur-X compliance profile, ordered from least to most permissive.
The integer backing value enables the #at_least? comparison used throughout the
generator and validator to gate optional and profile-specific fields.
MINIMUM— Only mandatory identification fields: invoice number, date, seller/buyer names and country, currency, and the monetary summation. No line items.BASIC_WL— Adds postal address, tax registrations, payment means, taxes, and payment terms. No line items ("Without Lines").BASIC— Adds line items (IncludedSupplyChainTradeLineItem). Delivery date is required (BR-FX-EN-04).EN16931— Full EN 16931 Comfort profile. Adds electronic addresses, buyer address detail, and full payment term descriptions.EXTENDED— All EN 16931 fields plus additional elements not in the core standard.XRECHNUNG— German public-sector e-invoicing standard (XRechnung 3.0). Requires Leitweg-ID inbuyer_reference(BT-10) and seller contact.
Defined in:
zugpferd/profile.crEnum Members
-
MINIMUM =
0 -
BASIC_WL =
1 -
BASIC =
2 -
EN16931 =
3 -
EXTENDED =
4 -
XRECHNUNG =
5
Instance Method Summary
-
#at_least?(other : Profile) : Bool
Returns
trueif this profile is at least as permissive as other. -
#basic?
Returns
trueif this enum value equalsBASIC -
#basic_wl?
Returns
trueif this enum value equalsBASIC_WL -
#comfort? : Bool
Returns
trueforEN16931. -
#en16931?
Returns
trueif this enum value equalsEN16931 -
#extended?
Returns
trueif this enum value equalsEXTENDED -
#guideline_id : String
Returns the canonical guideline URI for this profile (BT-24).
-
#minimum?
Returns
trueif this enum value equalsMINIMUM -
#xrechnung?
Returns
trueif this enum value equalsXRECHNUNG
Instance Method Detail
Returns true if this profile is at least as permissive as other.
Used throughout the generator and validator to gate optional fields;
e.g. profile.at_least?(Profile::BASIC_WL) guards payment means output.
Returns the canonical guideline URI for this profile (BT-24).
Embedded in the XML as GuidelineSpecifiedDocumentContextParameter/ID.