chore(docs): Generated References (#5602)

Generated the following references:
- `pricing`
- `product`

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2023-11-10 17:31:02 +00:00
committed by GitHub
parent 5f4317b9d7
commit 39649b3552
2110 changed files with 148777 additions and 4448445 deletions
@@ -0,0 +1,64 @@
---
displayed_sidebar: servicesSidebar
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# ITaxCalculationStrategy
## Methods
### calculate
**calculate**(`items`, `taxLines`, `calculationContext`): `Promise`<`number`\>
Calculates the tax amount for a given set of line items under applicable
tax conditions and calculation contexts.
#### Parameters
<ParameterTypes parameters={[
{
"name": "items",
"type": "[`LineItem`](../classes/LineItem.mdx)[]",
"description": "the line items to calculate the tax total for",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "taxLines",
"type": "([`LineItemTaxLine`](../classes/LineItemTaxLine.mdx) \\| [`ShippingMethodTaxLine`](../classes/ShippingMethodTaxLine.mdx))[]",
"description": "the tax lines that applies to the calculation",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "calculationContext",
"type": "[`TaxCalculationContext`](../types/TaxCalculationContext.mdx)",
"description": "other details relevant for the calculation",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
#### Returns
`Promise`<`number`\>
<ParameterTypes parameters={[
{
"name": "Promise",
"type": "`Promise`<`number`\\>",
"optional": false,
"defaultValue": "",
"description": "the tax total",
"expandable": false,
"children": []
}
]} />