DefaultCountryResolver
in package
implements
CountryResolver
Read onlyYes
FinalYes
The seller's country (BT-40) determines the leading pack. The buyer's country (BT-55) adds rules for cross-border invoices. Without an installed pack, a generic pack is used.
Table of Contents
Interfaces
- CountryResolver
- Selects the country packs for an invoice.
Methods
- __construct() : mixed
- resolve() : ResolvedCountries
Methods
__construct()
public
__construct(CountryRegistry $registry[, string|null $defaultCountry = null ]) : mixed
Parameters
- $registry : CountryRegistry
- $defaultCountry : string|null = null
resolve()
public
resolve(InvoiceData $invoice[, string|null $countryOverride = null ]) : ResolvedCountries
Parameters
- $invoice : InvoiceData
- $countryOverride : string|null = null