Skip to content

API reference / Quittio \ Core \ Countries

CountryGeneric

final class in quittio/core · extends AbstractCountryPack

Quittio\Core\Countries\CountryGeneric · Source

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.

Methods#

MethodDescription
->__construct()
->addressFormatter()Default: international address format.
->buyerCountryRules()Default: no rules.
->code()
->correctionPolicy()Default: CorrectionPolicy with credit notes for cancellations.
->defaults()Default: neutral CountryDefaults.
->dunningLaw()Default: the EU late payment directive (8 points above the reference rate for businesses, 40.00 flat rate), see DunningLaw.
->exporters()Default: no exporters.
->formatAliases()Default: no aliases.
->formatRules()Default: no format rules; the generic automatic choice applies.
->formats()Default: no own formats.
->isGeneric()
->legalTexts()Default: an empty catalog.
->letterLayouts()Default: the free layout only.
->mandatoryOutput()Default: nothing beyond EN 16931.
->numberingRules()Default: pattern INV-{Y}-{seq:4}, reset yearly, see NumberingRules.
->paymentQr()Default: none; the EPC GiroCode is used for the type "girocode".
->profiles()Default: no profiles.
->readers()Default: no readers.
->retention()Default: 10 years from the end of the calendar year.
->rules()Default: no rules.
->serializers()Default: no serializers; CII and UBL are built in.
->taxPresets()Default: no presets.
->translationPath()Default: no translations.

__construct()#

public function __construct(string $code = 'XX')
ParameterTypeDescription
$codestring = 'XX'

addressFormatter()#

public function addressFormatter(): AddressFormatter

inherited from AbstractCountryPack

Default: international address format.

Returns
AddressFormatter

buyerCountryRules()#

public function buyerCountryRules(): array

inherited from AbstractCountryPack

Default: no rules.

Returns
array

code()#

public function code(): string
Returns
string

correctionPolicy()#

public function correctionPolicy(): CorrectionPolicy

inherited from AbstractCountryPack

Default: CorrectionPolicy with credit notes for cancellations.

Returns
CorrectionPolicy

defaults()#

public function defaults(): CountryDefaults

inherited from AbstractCountryPack

Default: neutral CountryDefaults.

Returns
CountryDefaults

dunningLaw()#

public function dunningLaw(): DunningLaw

inherited from AbstractCountryPack

Default: the EU late payment directive (8 points above the reference rate for businesses, 40.00 flat rate), see DunningLaw.

Returns
DunningLaw

exporters()#

public function exporters(): array

inherited from AbstractCountryPack

Default: no exporters.

Returns
array

formatAliases()#

public function formatAliases(): array

inherited from AbstractCountryPack

Default: no aliases.

Returns
array

formatRules()#

public function formatRules(): array

inherited from AbstractCountryPack

Default: no format rules; the generic automatic choice applies.

Returns
array

formats()#

public function formats(): array

inherited from AbstractCountryPack

Default: no own formats.

Returns
array

isGeneric()#

public function isGeneric(): bool
Returns
bool

legalTexts()#

public function legalTexts(): LegalTextCatalog

inherited from AbstractCountryPack

Default: an empty catalog.

Returns
LegalTextCatalog

letterLayouts()#

public function letterLayouts(): array

inherited from AbstractCountryPack

Default: the free layout only.

Returns
array

mandatoryOutput()#

public function mandatoryOutput(InvoiceData $invoice): MandatoryFieldList

inherited from AbstractCountryPack

Default: nothing beyond EN 16931.

ParameterTypeDescription
$invoiceInvoiceData
Returns
MandatoryFieldList

numberingRules()#

public function numberingRules(): NumberingRules

inherited from AbstractCountryPack

Default: pattern INV-{Y}-{seq:4}, reset yearly, see NumberingRules.

Returns
NumberingRules

paymentQr()#

public function paymentQr(): ?PaymentQrGenerator

inherited from AbstractCountryPack

Default: none; the EPC GiroCode is used for the type "girocode".

Returns
?PaymentQrGenerator

profiles()#

public function profiles(): array

inherited from AbstractCountryPack

Default: no profiles.

Returns
array

readers()#

public function readers(): array

inherited from AbstractCountryPack

Default: no readers.

Returns
array

retention()#

public function retention(): RetentionRule

inherited from AbstractCountryPack

Default: 10 years from the end of the calendar year.

Returns
RetentionRule

rules()#

public function rules(): array

inherited from AbstractCountryPack

Default: no rules.

Returns
array

serializers()#

public function serializers(): array

inherited from AbstractCountryPack

Default: no serializers; CII and UBL are built in.

Returns
array

taxPresets()#

public function taxPresets(): TaxPresetCollection

inherited from AbstractCountryPack

Default: no presets.

Returns
TaxPresetCollection

translationPath()#

public function translationPath(): ?string

inherited from AbstractCountryPack

Default: no translations.

Returns
?string

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.