Zum Inhalt springen

API reference / Quittio \ Core \ Rendering

PreparedInvoice

final readonly class in quittio/core

Quittio\Core\Rendering\PreparedInvoice · Source

Calculated and validated invoice data plus the decisions a render run would take (format, profile, country pack, locale), without rendering anything. The XML of every format (also the one "pdf" embeds with b2cEmbedXml) is generated for the validation only. Used by the Managed layer to freeze an invoice before its documents are rendered; the validation always runs, whatever the validation mode.

Properties#

PropertyTypeDescription
$buyerCountry readonly?CountryPack
$country readonlyCountryPack
$data readonlyInvoiceData
$formats readonlyarray<string, Profile|null>format key => profile (null for formats that write or embed no XML)
$locale readonlystring
$validation readonlyValidationResult

Methods#

MethodDescription
->__construct()
->format()
->profile()

__construct()#

public function __construct(
    InvoiceData $data,
    array<string, Profile|null> $formats,
    CountryPack $country,
    ?CountryPack $buyerCountry,
    string $locale,
    ValidationResult $validation,
)
ParameterTypeDescription
$dataInvoiceData
$formatsarray<string, Profile|null>format key => profile (null for formats that write or embed no XML)
$countryCountryPack
$buyerCountry?CountryPack
$localestring
$validationValidationResult

format()#

public function format(): string
Returns
string

profile()#

public function profile(): ?Profile
Returns
?Profile

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.