AbstractTaxService
internal.internal.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.
Implements
Properties
identifier
stringRequiredMethods
getIdentifier
getIdentifier(): string
Returns
string
string
stringgetTaxLines
Abstract
getTaxLines(itemLines
, shippingLines
, context
): Promise
<ProviderTaxLine
[]>
Retrieves the numerical tax lines for a calculation context.
Parameters
the line item calculation lines
other details relevant to the tax determination
Returns
Promise
<ProviderTaxLine
[]>
numerical tax rates that should apply to the provided calculation
lines
Implementation of
Was this section helpful?