chore(docs): Generated References (#5743)
Generated the following references: - `entities` - `inventory` - `js-client` - `pricing` - `product` - `services` - `stock-location` - `workflows` 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:
committed by
GitHub
parent
dc6b815b12
commit
cdd42dbdcd
@@ -10,11 +10,11 @@ Finds tax providers and assists in tax related operations.
|
||||
|
||||
## Constructors
|
||||
|
||||
### constructor
|
||||
#### constructor
|
||||
|
||||
`**new TaxProviderService**(container)`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -143,29 +143,13 @@ Finds tax providers and assists in tax related operations.
|
||||
|
||||
## Accessors
|
||||
|
||||
### activeManager\_
|
||||
#### activeManager\_
|
||||
|
||||
`Protected get**activeManager_**(): EntityManager`
|
||||
|
||||
#### Returns
|
||||
|
||||
EntityManager
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "EntityManager",
|
||||
"type": "EntityManager",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "",
|
||||
"expandable": false,
|
||||
"children": []
|
||||
}
|
||||
]} />
|
||||
`Protected` **activeManager\_**: [object Object]
|
||||
|
||||
## Methods
|
||||
|
||||
### atomicPhase\_
|
||||
#### atomicPhase\_
|
||||
|
||||
`Protected **atomicPhase_**<TypeParameter TResult, TypeParameter TError>(work, isolationOrErrorHandler?, maybeErrorHandlerOrDontFail?): Promise<TResult>`
|
||||
|
||||
@@ -173,6 +157,8 @@ Wraps some work within a transactional block. If the service already has
|
||||
a transaction manager attached this will be reused, otherwise a new
|
||||
transaction manager is created.
|
||||
|
||||
##### Type Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "TResult",
|
||||
@@ -194,7 +180,7 @@ transaction manager is created.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -226,7 +212,7 @@ transaction manager is created.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<TResult>
|
||||
|
||||
@@ -244,11 +230,11 @@ Promise<TResult>
|
||||
|
||||
___
|
||||
|
||||
### clearLineItemsTaxLines
|
||||
#### clearLineItemsTaxLines
|
||||
|
||||
`**clearLineItemsTaxLines**(itemIds): Promise<void>`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -262,7 +248,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<void>
|
||||
|
||||
@@ -280,11 +266,11 @@ Promise<void>
|
||||
|
||||
___
|
||||
|
||||
### clearTaxLines
|
||||
#### clearTaxLines
|
||||
|
||||
`**clearTaxLines**(cartId): Promise<void>`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -298,7 +284,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<void>
|
||||
|
||||
@@ -316,14 +302,14 @@ Promise<void>
|
||||
|
||||
___
|
||||
|
||||
### createShippingTaxLines
|
||||
#### createShippingTaxLines
|
||||
|
||||
`**createShippingTaxLines**(shippingMethod, calculationContext): Promise<([LineItemTaxLine](LineItemTaxLine.mdx) \| [ShippingMethodTaxLine](ShippingMethodTaxLine.mdx))[]>`
|
||||
|
||||
Persists the tax lines relevant for a shipping method to the database. Used
|
||||
for return shipping methods.
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -346,7 +332,7 @@ for return shipping methods.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<([LineItemTaxLine](LineItemTaxLine.mdx) \| [ShippingMethodTaxLine](ShippingMethodTaxLine.mdx))[]>
|
||||
|
||||
@@ -364,13 +350,13 @@ Promise<([LineItemTaxLine](LineItemTaxLine.mdx) \| [ShippingMethodTaxLine](S
|
||||
|
||||
___
|
||||
|
||||
### createTaxLines
|
||||
#### createTaxLines
|
||||
|
||||
`**createTaxLines**(cartOrLineItems, calculationContext): Promise<([LineItemTaxLine](LineItemTaxLine.mdx) \| [ShippingMethodTaxLine](ShippingMethodTaxLine.mdx))[]>`
|
||||
|
||||
Persists the tax lines relevant for an order to the database.
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -393,7 +379,7 @@ Persists the tax lines relevant for an order to the database.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<([LineItemTaxLine](LineItemTaxLine.mdx) \| [ShippingMethodTaxLine](ShippingMethodTaxLine.mdx))[]>
|
||||
|
||||
@@ -411,13 +397,13 @@ Promise<([LineItemTaxLine](LineItemTaxLine.mdx) \| [ShippingMethodTaxLine](S
|
||||
|
||||
___
|
||||
|
||||
### getCacheKey
|
||||
#### getCacheKey
|
||||
|
||||
`Private **getCacheKey**(id, regionId): string`
|
||||
|
||||
The cache key to get cache hits by.
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -440,7 +426,7 @@ The cache key to get cache hits by.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
`string`
|
||||
|
||||
@@ -458,14 +444,14 @@ The cache key to get cache hits by.
|
||||
|
||||
___
|
||||
|
||||
### getRegionRatesForProduct
|
||||
#### getRegionRatesForProduct
|
||||
|
||||
`**getRegionRatesForProduct**(productIds, region): Promise<Map<string, [TaxServiceRate](../types/TaxServiceRate.mdx)[]>>`
|
||||
|
||||
Gets the tax rates configured for a product. The rates are cached between
|
||||
calls.
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -488,7 +474,7 @@ calls.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<Map<string, [TaxServiceRate](../types/TaxServiceRate.mdx)[]>>
|
||||
|
||||
@@ -506,14 +492,14 @@ Promise<Map<string, [TaxServiceRate](../types/TaxServiceRate.mdx)[]>
|
||||
|
||||
___
|
||||
|
||||
### getRegionRatesForShipping
|
||||
#### getRegionRatesForShipping
|
||||
|
||||
`**getRegionRatesForShipping**(optionId, regionDetails): Promise<[TaxServiceRate](../types/TaxServiceRate.mdx)[]>`
|
||||
|
||||
Gets the tax rates configured for a shipping option. The rates are cached
|
||||
between calls.
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -536,7 +522,7 @@ between calls.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[TaxServiceRate](../types/TaxServiceRate.mdx)[]>
|
||||
|
||||
@@ -554,7 +540,7 @@ Promise<[TaxServiceRate](../types/TaxServiceRate.mdx)[]>
|
||||
|
||||
___
|
||||
|
||||
### getShippingTaxLines
|
||||
#### getShippingTaxLines
|
||||
|
||||
`**getShippingTaxLines**(shippingMethod, calculationContext): Promise<[ShippingMethodTaxLine](ShippingMethodTaxLine.mdx)[]>`
|
||||
|
||||
@@ -562,7 +548,7 @@ Gets the relevant tax lines for a shipping method. Note: this method
|
||||
doesn't persist the tax lines. Use createShippingTaxLines if you wish to
|
||||
persist the tax lines to the DB layer.
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -585,7 +571,7 @@ persist the tax lines to the DB layer.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[ShippingMethodTaxLine](ShippingMethodTaxLine.mdx)[]>
|
||||
|
||||
@@ -603,7 +589,7 @@ Promise<[ShippingMethodTaxLine](ShippingMethodTaxLine.mdx)[]>
|
||||
|
||||
___
|
||||
|
||||
### getTaxLines
|
||||
#### getTaxLines
|
||||
|
||||
`**getTaxLines**(lineItems, calculationContext): Promise<([LineItemTaxLine](LineItemTaxLine.mdx) \| [ShippingMethodTaxLine](ShippingMethodTaxLine.mdx))[]>`
|
||||
|
||||
@@ -613,7 +599,7 @@ will be computed from the tax rules and potentially a 3rd party tax plugin.
|
||||
Note: this method doesn't persist the tax lines. Use createTaxLines if you
|
||||
wish to persist the tax lines to the DB layer.
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -636,7 +622,7 @@ wish to persist the tax lines to the DB layer.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<([LineItemTaxLine](LineItemTaxLine.mdx) \| [ShippingMethodTaxLine](ShippingMethodTaxLine.mdx))[]>
|
||||
|
||||
@@ -654,13 +640,13 @@ Promise<([LineItemTaxLine](LineItemTaxLine.mdx) \| [ShippingMethodTaxLine](S
|
||||
|
||||
___
|
||||
|
||||
### getTaxLinesMap
|
||||
#### getTaxLinesMap
|
||||
|
||||
`Protected **getTaxLinesMap**(items, calculationContext): Promise<[TaxLinesMaps](../types/TaxLinesMaps.mdx)>`
|
||||
|
||||
Return a map of tax lines for line items and shipping methods
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -683,7 +669,7 @@ Return a map of tax lines for line items and shipping methods
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[TaxLinesMaps](../types/TaxLinesMaps.mdx)>
|
||||
|
||||
@@ -701,11 +687,11 @@ Promise<[TaxLinesMaps](../types/TaxLinesMaps.mdx)>
|
||||
|
||||
___
|
||||
|
||||
### list
|
||||
#### list
|
||||
|
||||
`**list**(): Promise<[TaxProvider](TaxProvider.mdx)[]>`
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[TaxProvider](TaxProvider.mdx)[]>
|
||||
|
||||
@@ -723,11 +709,11 @@ Promise<[TaxProvider](TaxProvider.mdx)[]>
|
||||
|
||||
___
|
||||
|
||||
### registerInstalledProviders
|
||||
#### registerInstalledProviders
|
||||
|
||||
`**registerInstalledProviders**(providers): Promise<void>`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -741,7 +727,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<void>
|
||||
|
||||
@@ -759,13 +745,13 @@ Promise<void>
|
||||
|
||||
___
|
||||
|
||||
### retrieveProvider
|
||||
#### retrieveProvider
|
||||
|
||||
`**retrieveProvider**(region): [ITaxService](../interfaces/ITaxService.mdx)`
|
||||
|
||||
Retrieves the relevant tax provider for the given region.
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -779,7 +765,7 @@ Retrieves the relevant tax provider for the given region.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
[ITaxService](../interfaces/ITaxService.mdx)
|
||||
|
||||
@@ -797,11 +783,11 @@ Retrieves the relevant tax provider for the given region.
|
||||
|
||||
___
|
||||
|
||||
### shouldRetryTransaction\_
|
||||
#### shouldRetryTransaction\_
|
||||
|
||||
`Protected **shouldRetryTransaction_**(err): boolean`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -815,7 +801,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
`boolean`
|
||||
|
||||
@@ -833,11 +819,11 @@ ___
|
||||
|
||||
___
|
||||
|
||||
### withTransaction
|
||||
#### withTransaction
|
||||
|
||||
`**withTransaction**(transactionManager?): [TaxProviderService](TaxProviderService.mdx)`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -851,7 +837,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
[TaxProviderService](TaxProviderService.mdx)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user