xrechnung-kit API reference

XRechnungBuilder
in package

FinalYes

Bridges the typed MappingData value-object graph to the lifted L3 XRechnungEntity so the existing Generator pipeline can consume MappingData without rewriting the placeholder substitution layer.

Per architecture section 6.1: pure function. Same input, same output. No filesystem I/O, no clock reads, no global state. Deterministic.

v1.0 scope: transcribes fields from the VO graph into the entity's setter-based shape and picks the right L3 invoiceType string ("invoice", "caution", "cancel") that drives template selection in the Generator.

The Generator transition is intentionally additive: existing callers that construct XRechnungEntity directly continue to work. New callers should prefer MappingData::standardInvoice(...) etc. and pipe through this Builder. A future commit may deprecate the direct setter pattern.

Table of Contents

Methods

buildEntity()  : XRechnungEntity

Methods


        
On this page

Search results