Documentation / @facturometro/einvoice / UblSrRule
Interface: UblSrRule ​
Defined in: packages/parser/src/generated/structural.generated.ts:52
A cap on how often an element may appear inside each element its context selects, and, for a count(path) = n assert, how often it must.
Properties ​
anywhere? ​
readonlyoptionalanywhere?:boolean
Defined in: packages/parser/src/generated/structural.generated.ts:59
When true the context is matched at any depth: contextSegments is a suffix of the path of the element the cap applies to, not a path from the document element. Every relative Schematron rule context works this way - UBL-SR-32 caps cac:TaxCategory/cbc:TaxExemptionReason inside every cac:TaxSubtotal, wherever it sits.
attribute? ​
readonlyoptionalattribute?:string
Defined in: packages/parser/src/generated/structural.generated.ts:61
Local name of the attribute being counted, when the rule counts attributes.
chargeIndicator? ​
readonlyoptionalchargeIndicator?:boolean
Defined in: packages/parser/src/generated/structural.generated.ts:63
cbc:ChargeIndicator the context element must carry, when the rule is about one.
childSegments ​
readonlychildSegments: readonlystring[]
Defined in: packages/parser/src/generated/structural.generated.ts:65
Qualified element names of the counted path, relative to the context.
contextSegments ​
readonlycontextSegments: readonlystring[]
Defined in: packages/parser/src/generated/structural.generated.ts:70
Qualified element names selecting the context element, outermost first. Empty means the document element; otherwise see anywhere.
id ​
readonlyid:string
Defined in: packages/parser/src/generated/structural.generated.ts:72
Rule id, e.g. UBL-SR-08.
max ​
readonlymax:number
Defined in: packages/parser/src/generated/structural.generated.ts:74
How many occurrences are allowed.
min? ​
readonlyoptionalmin?:number
Defined in: packages/parser/src/generated/structural.generated.ts:76
How many occurrences are required; absent when none are.
special? ​
readonlyoptionalspecial?:UblSrSpecial
Defined in: packages/parser/src/generated/structural.generated.ts:78
A predicate the counted path puts on the counted element or on its parent.