interface TaxDriver (View source)

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.

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