class SystemTaxDriver implements TaxDriver (View source)

Properties

protected $shippingAddress

The taxable shipping address.

protected $billingAddress

The taxable billing address.

protected $currency

The currency model.

protected $purchasable

The purchasable item.

protected $cartLine

The cart line model.

Methods

setShippingAddress(Addressable $address = null)

Set the shipping address.

setCurrency(Currency $currency)

Set the currency.

setBillingAddress(Addressable $address = null)

Set the billing address.

setPurchasable(Purchasable $purchasable)

Set the purchasable item.

setCartLine(CartLine $cartLine)

Set the cart line.

getBreakdown(int $subTotal)

Return the tax breakdown from a given sub total.

defaultTaxZone()

No description

Details

TaxDriver setShippingAddress(Addressable $address = null)

Set the shipping address.

Parameters

Addressable $address

Return Value

TaxDriver

TaxDriver setCurrency(Currency $currency)

Set the currency.

Parameters

Currency $currency

Return Value

TaxDriver

TaxDriver setBillingAddress(Addressable $address = null)

Set the billing address.

Parameters

Addressable $address

Return Value

TaxDriver

TaxDriver setPurchasable(Purchasable $purchasable)

Set the purchasable item.

Parameters

Purchasable $purchasable

Return Value

TaxDriver

TaxDriver setCartLine(CartLine $cartLine)

Set the cart line.

Parameters

CartLine $cartLine

Return Value

TaxDriver

TaxBreakdown getBreakdown(int $subTotal)

Return the tax breakdown from a given sub total.

Parameters

int $subTotal

Return Value

TaxBreakdown

protected defaultTaxZone()

No description