AbstractCountryPack
in package
implements
CountryPack, ProvidesFormats
Base class with neutral defaults, so that country packs only override what differs.
Table of Contents
Interfaces
- CountryPack
- Everything that differs between countries.
- ProvidesFormats
- A country pack that brings output formats, e.g. a national e-invoice format, with their aliases and the serializers of their syntaxes. Quittio::registerCountry() registers them.
Methods
- addressFormatter() : AddressFormatter
- Default: international address format.
- buyerCountryRules() : array<int, Rule>
- Default: no rules.
- correctionPolicy() : CorrectionPolicy
- Default: CorrectionPolicy with credit notes for cancellations.
- defaults() : CountryDefaults
- Default: neutral CountryDefaults.
- dunningLaw() : DunningLaw
- Default: the EU late payment directive (8 points above the reference rate for businesses, 40.00 flat rate), see DunningLaw.
- exporters() : array<int, Exporter>
- Default: no exporters.
- formatAliases() : array<string, string>
- Default: no aliases.
- formatRules() : array<int, FormatRule>
- Default: no format rules; the generic automatic choice applies.
- formats() : array<int, OutputFormat>
- Default: no own formats.
- legalTexts() : LegalTextCatalog
- Default: an empty catalog.
- letterLayouts() : array<string, LetterLayout>
- Default: the free layout only.
- mandatoryOutput() : MandatoryFieldList
- Default: nothing beyond EN 16931.
- numberingRules() : NumberingRules
- Default: pattern INV-{Y}-{seq:4}, reset yearly, see NumberingRules.
- paymentQr() : PaymentQrGenerator|null
- Default: none; the EPC GiroCode is used for the type "girocode".
- profiles() : array<int, Profile>
- Default: no profiles.
- readers() : array<int, FormatReader>
- Default: no readers.
- retention() : RetentionRule
- Default: 10 years from the end of the calendar year.
- rules() : array<int, Rule>
- Default: no rules.
- serializers() : array<int, XmlSerializer>
- Default: no serializers; CII and UBL are built in.
- taxPresets() : TaxPresetCollection
- Default: no presets.
- translationPath() : string|null
- Default: no translations.
Methods
addressFormatter()
Default: international address format.
public
addressFormatter() : AddressFormatter
Return values
AddressFormatterbuyerCountryRules()
Default: no rules.
public
buyerCountryRules() : array<int, Rule>
Return values
array<int, Rule>correctionPolicy()
Default: CorrectionPolicy with credit notes for cancellations.
public
correctionPolicy() : CorrectionPolicy
Return values
CorrectionPolicydefaults()
Default: neutral CountryDefaults.
public
defaults() : CountryDefaults
Return values
CountryDefaultsdunningLaw()
Default: the EU late payment directive (8 points above the reference rate for businesses, 40.00 flat rate), see DunningLaw.
public
dunningLaw() : DunningLaw
Return values
DunningLawexporters()
Default: no exporters.
public
exporters() : array<int, Exporter>
Return values
array<int, Exporter>formatAliases()
Default: no aliases.
public
formatAliases() : array<string, string>
Return values
array<string, string>formatRules()
Default: no format rules; the generic automatic choice applies.
public
formatRules() : array<int, FormatRule>
Return values
array<int, FormatRule>formats()
Default: no own formats.
public
formats() : array<int, OutputFormat>
Return values
array<int, OutputFormat>legalTexts()
Default: an empty catalog.
public
legalTexts() : LegalTextCatalog
Return values
LegalTextCatalogletterLayouts()
Default: the free layout only.
public
letterLayouts() : array<string, LetterLayout>
Return values
array<string, LetterLayout>mandatoryOutput()
Default: nothing beyond EN 16931.
public
mandatoryOutput(InvoiceData $invoice) : MandatoryFieldList
Parameters
- $invoice : InvoiceData
Return values
MandatoryFieldListnumberingRules()
Default: pattern INV-{Y}-{seq:4}, reset yearly, see NumberingRules.
public
numberingRules() : NumberingRules
Return values
NumberingRulespaymentQr()
Default: none; the EPC GiroCode is used for the type "girocode".
public
paymentQr() : PaymentQrGenerator|null
Return values
PaymentQrGenerator|nullprofiles()
Default: no profiles.
public
profiles() : array<int, Profile>
Return values
array<int, Profile>readers()
Default: no readers.
public
readers() : array<int, FormatReader>
Return values
array<int, FormatReader>retention()
Default: 10 years from the end of the calendar year.
public
retention() : RetentionRule
Return values
RetentionRulerules()
Default: no rules.
public
rules() : array<int, Rule>
Return values
array<int, Rule>serializers()
Default: no serializers; CII and UBL are built in.
public
serializers() : array<int, XmlSerializer>
Return values
array<int, XmlSerializer>taxPresets()
Default: no presets.
public
taxPresets() : TaxPresetCollection
Return values
TaxPresetCollectiontranslationPath()
Default: no translations.
public
translationPath() : string|null