CountryGeneric
extends AbstractCountryPack
in package
Neutral pack for countries without an installed country pack: EN 16931 rules only and international formatting. A warning is issued when an invoice is validated with this pack.
Table of Contents
Methods
- __construct() : mixed
- addressFormatter() : AddressFormatter
- Default: international address format.
- buyerCountryRules() : array<int, Rule>
- Default: no rules.
- code() : string
- ISO 3166-1 alpha-2 code, e.g. "DE".
- 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.
- isGeneric() : bool
- 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
__construct()
public
__construct([string $code = 'XX' ]) : mixed
Parameters
- $code : string = 'XX'
addressFormatter()
Default: international address format.
public
addressFormatter() : AddressFormatter
Return values
AddressFormatterbuyerCountryRules()
Default: no rules.
public
buyerCountryRules() : array<int, Rule>
Return values
array<int, Rule>code()
ISO 3166-1 alpha-2 code, e.g. "DE".
public
code() : string
Return values
stringcorrectionPolicy()
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>isGeneric()
public
isGeneric() : bool
Return values
boollegalTexts()
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