API reference / Quittio \ Country \ DE \ Profiles \ XRechnung
XRechnung30Extension
final class in quittio/country-de · extends XRechnung30 · implements ExtendsCodeLists, ReplacesRules, SupportsExtensionFields, SupportsSubLines
Quittio\Country\DE\Profiles\XRechnung\XRechnung30Extension · Source
XRechnung 3.0 extension: adds sub invoice lines (UBL only) and third party payments. Choose it explicitly with ->profile('xrechnung-extension'): neither the automatic format choice nor the profile xrechnung switch to it when extension data is used; with xrechnung such data is reported as an error.
Constants#
| Constant | Value | Description |
|---|---|---|
SPECIFICATION_ID | 'urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0#conformant#urn:xeinkauf.de:kosit:extension:xrechnung_3.0' |
Methods#
| Method | Description |
|---|---|
->additionalCodes() | The extension accepts the identifier schemes XR01 to XR03, checked by BR-DEX-04 to BR-DEX-08 (XRechnungRules), which replace the code list rules (see replacedRules()), and attachments with the MIME code application/xml (BR-DEX-01 instead of BR-CL-24). |
->afRelationship() | |
->defaultBusinessProcess() | |
->embeddedFilename() | |
->extensions() | The fields of the XRechnung extension (Mapping\Attributes\XRechnungExtensionOnly). |
->isEn16931Compliant() | |
->key() | |
->level() | |
->name() | |
->replacedRules() | As in the official validator configuration, where the replaced rules are only an information: BR-DEX-04 to BR-DEX-08 replace BR-CL-10, -11, -21, -25 and -26 (identifier schemes with XR01 to XR03); in UBL BR-DEX-09 replaces BR-CO-16 (amount due with third party payments) and BR-DEX-02 replaces QUITTIO-SUBLINES (sum of the sub lines). |
->requiredBusinessTerms() | |
->rules() | |
->specificationId() | |
->supportsStandard() | |
->supportsSyntax() | Whether the profile is an XML-only CIUS that is not embedded into PDFs by default. |
->syntaxes() | |
->xmpConformanceLevel() | ZUGFeRD 2.x names XRechnung documents, also with the extension, "XRECHNUNG". |
->xmpDescription() | |
->xmpVersion() | The XRechnung version as fx:Version, as ZUGFeRD 2.x prescribes for the level XRECHNUNG. |
additionalCodes()#
public function additionalCodes(string $codeList): arrayThe extension accepts the identifier schemes XR01 to XR03, checked by BR-DEX-04 to BR-DEX-08 (XRechnungRules), which replace the code list rules (see replacedRules()), and attachments with the MIME code application/xml (BR-DEX-01 instead of BR-CL-24).
| Parameter | Type | Description |
|---|---|---|
$codeList | string |
- Returns
array
afRelationship()#
public function afRelationship(): ?string- Returns
?string
defaultBusinessProcess()#
public function defaultBusinessProcess(): ?string- Returns
?string
embeddedFilename()#
public function embeddedFilename(): ?string- Returns
?string
extensions()#
public function extensions(): arrayThe fields of the XRechnung extension (Mapping\Attributes\XRechnungExtensionOnly).
- Returns
array
isEn16931Compliant()#
public function isEn16931Compliant(): bool- Returns
bool
key()#
public function key(): string- Returns
string
level()#
public function level(): ProfileLevel- Returns
ProfileLevel
name()#
public function name(): string- Returns
string
replacedRules()#
public function replacedRules(?Syntax $syntax): arrayAs in the official validator configuration, where the replaced rules are only an information: BR-DEX-04 to BR-DEX-08 replace BR-CL-10, -11, -21, -25 and -26 (identifier schemes with XR01 to XR03); in UBL BR-DEX-09 replaces BR-CO-16 (amount due with third party payments) and BR-DEX-02 replaces QUITTIO-SUBLINES (sum of the sub lines).
| Parameter | Type | Description |
|---|---|---|
$syntax | ?Syntax |
- Returns
array
requiredBusinessTerms()#
public function requiredBusinessTerms(): array- Returns
array
rules()#
public function rules(): array- Returns
array
specificationId()#
public function specificationId(
StandardVersion $version = \Quittio\Core\Standards\StandardVersion::En16931_2017,
): string| Parameter | Type | Description |
|---|---|---|
$version | StandardVersion = \Quittio\Core\Standards\StandardVersion::En16931_2017 |
- Returns
string
supportsStandard()#
public function supportsStandard(StandardVersion $version): bool| Parameter | Type | Description |
|---|---|---|
$version | StandardVersion |
- Returns
bool
supportsSyntax()#
public function supportsSyntax(Syntax $syntax): boolWhether the profile is an XML-only CIUS that is not embedded into PDFs by default.
| Parameter | Type | Description |
|---|---|---|
$syntax | Syntax |
- Returns
bool
syntaxes()#
public function syntaxes(): array- Returns
array
xmpConformanceLevel()#
public function xmpConformanceLevel(): stringZUGFeRD 2.x names XRechnung documents, also with the extension, "XRECHNUNG".
- Returns
string
xmpDescription()#
public function xmpDescription(): string- Returns
string
xmpVersion()#
public function xmpVersion(): stringThe XRechnung version as fx:Version, as ZUGFeRD 2.x prescribes for the level XRECHNUNG.
- Returns
string