AddressBasedTaxZoneStrategy
AddressBasedTaxZoneStrategy
@vendure/coreaddress-based-tax-zone-strategy.ts
v3.1.0
:::info
This is configured via `taxOptions.taxZoneStrategy = new AddressBasedTaxZoneStrategy()` in
your VendureConfig.
:::
Address based TaxZoneStrategy which tries to find the applicable Zone based on the country of the billing address, or else the country of the shipping address of the Order.
Returns the default Channel's default tax zone if no applicable zone is found.
Signature
class AddressBasedTaxZoneStrategy implements TaxZoneStrategy {
determineTaxZone(ctx: RequestContext, zones: Zone[], channel: Channel, order?: Order) => Zone;
}
- Implements:
TaxZoneStrategy