Skip to main content
Skip to main content

AbstractTaxService

Interface to be implemented by tax provider plugins. The interface defines a single method getTaxLines that returns numerical rates to apply to line items and shipping methods.

constructor


Properties

identifierstringRequired

Methods

getIdentifier

Returns

stringstring

getTaxLines

Retrieves the numerical tax lines for a calculation context.

Parameters

itemLinesItemTaxCalculationLine[]Required
the line item calculation lines
shippingLinesShippingTaxCalculationLine[]Required
contextTaxCalculationContextRequired
other details relevant to the tax determination

Returns

PromisePromise<ProviderTaxLine[]>Required
numerical tax rates that should apply to the provided calculation lines
Was this section helpful?