Zum Inhalt springen

API reference / Quittio \ Core \ Countries

DefaultCountryResolver

final readonly class in quittio/core · implements CountryResolver

Quittio\Core\Countries\DefaultCountryResolver · Source

The seller's country (BT-40) determines the leading pack. The buyer's country (BT-55) adds rules for cross-border invoices. A country without a pack of its own takes the pack of the country whose VAT territory it belongs to (VatTerritory::vatCountry(): Monaco the French, Liechtenstein the Swiss pack). Without an installed pack, a generic pack is used.

Methods#

MethodDescription
->__construct()
->resolve()

__construct()#

public function __construct(CountryRegistry $registry, ?string $defaultCountry = null)
ParameterTypeDescription
$registryCountryRegistry
$defaultCountry?string = null

resolve()#

public function resolve(
    InvoiceData $invoice,
    ?string $countryOverride = null,
): ResolvedCountries
ParameterTypeDescription
$invoiceInvoiceData
$countryOverride?string = null
Returns
ResolvedCountries

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