Tax Types

Tax Types

TaxCalculationArgs

The arguments passed the the calculate method of the configured TaxCalculationStrategy.

Signature

interface TaxCalculationArgs {
  inputPrice: number;
  taxCategory: TaxCategory;
  activeTaxZone: Zone;
  ctx: RequestContext;
  taxRateService: TaxRateService;
}

Members

inputPrice

property
type:
number

taxCategory

property
type:
TaxCategory

activeTaxZone

property
type:
Zone

ctx

property

taxRateService

property
type:
TaxRateService

TaxCalculationResult

The result of the TaxCalculationStrategy.calculate() method.

Signature

interface TaxCalculationResult {
  price: number;
  priceIncludesTax: boolean;
  priceWithoutTax: number;
  priceWithTax: number;
}

Members

price

property
type:
number

priceIncludesTax

property
type:
boolean

priceWithoutTax

property
type:
number

priceWithTax

property
type:
number