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.

Defined in:

zugpferd/profile.cr

Enum Members

MINIMUM = 0
BASIC_WL = 1
BASIC = 2
EN16931 = 3
EXTENDED = 4
XRECHNUNG = 5

Instance Method Summary

Instance Method Detail

def at_least?(other : Profile) : Bool #

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.


[View source]
def basic? #

Returns true if this enum value equals BASIC


[View source]
def basic_wl? #

Returns true if this enum value equals BASIC_WL


[View source]
def comfort? : Bool #

Returns true for EN16931. Alias for the Factur-X "Comfort" terminology.


[View source]
def en16931? #

Returns true if this enum value equals EN16931


[View source]
def extended? #

Returns true if this enum value equals EXTENDED


[View source]
def guideline_id : String #

Returns the canonical guideline URI for this profile (BT-24). Embedded in the XML as GuidelineSpecifiedDocumentContextParameter/ID.


[View source]
def minimum? #

Returns true if this enum value equals MINIMUM


[View source]
def xrechnung? #

Returns true if this enum value equals XRECHNUNG


[View source]