API reference / Quittio \ Core \ Countries
CountryResolver
interface in quittio/core
Quittio\Core\Countries\CountryResolver · Source
Selects the country packs for an invoice.
Methods#
| Method | Description |
|---|---|
->resolve() | The leading pack (seller side) and, for cross-border invoices, the buyer's pack for $invoice; $countryOverride replaces the seller's country. |
resolve()#
public function resolve(
InvoiceData $invoice,
?string $countryOverride = null,
): ResolvedCountriesThe leading pack (seller side) and, for cross-border invoices, the buyer's pack for $invoice; $countryOverride replaces the seller's country.
| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData | |
$countryOverride | ?string = null |
- Returns
ResolvedCountries