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
@@ -8,11 +8,11 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
|
||||
## Constructors
|
||||
|
||||
### constructor
|
||||
#### constructor
|
||||
|
||||
`**new NewTotalsService**(«destructured»)`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -105,29 +105,13 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
|
||||
## 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>`
|
||||
|
||||
@@ -135,6 +119,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",
|
||||
@@ -156,7 +142,7 @@ transaction manager is created.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -188,7 +174,7 @@ transaction manager is created.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<TResult>
|
||||
|
||||
@@ -206,13 +192,13 @@ Promise<TResult>
|
||||
|
||||
___
|
||||
|
||||
### getGiftCardTotals
|
||||
#### getGiftCardTotals
|
||||
|
||||
`**getGiftCardTotals**(giftCardableAmount, «destructured»): Promise<{ tax_total: number ; total: number }>`
|
||||
|
||||
Calculate and return the gift cards totals
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -262,7 +248,7 @@ Calculate and return the gift cards totals
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<{ tax_total: number ; total: number }>
|
||||
|
||||
@@ -280,13 +266,13 @@ Promise<{ tax_total: number ; total: number }>
|
||||
|
||||
___
|
||||
|
||||
### getGiftCardTransactionsTotals
|
||||
#### getGiftCardTransactionsTotals
|
||||
|
||||
`**getGiftCardTransactionsTotals**(«destructured»): { tax_total: number ; total: number }`
|
||||
|
||||
Calculate and return the gift cards totals based on their transactions
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -336,7 +322,7 @@ Calculate and return the gift cards totals based on their transactions
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
`object`
|
||||
|
||||
@@ -375,11 +361,11 @@ Calculate and return the gift cards totals based on their transactions
|
||||
|
||||
___
|
||||
|
||||
### getGiftCardableAmount
|
||||
#### getGiftCardableAmount
|
||||
|
||||
`**getGiftCardableAmount**(«destructured»): number`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -438,7 +424,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
`number`
|
||||
|
||||
@@ -456,13 +442,13 @@ ___
|
||||
|
||||
___
|
||||
|
||||
### getLineItemRefund
|
||||
#### getLineItemRefund
|
||||
|
||||
`**getLineItemRefund**(lineItem, «destructured»): number`
|
||||
|
||||
Return the amount that can be refund on a line item
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -548,7 +534,7 @@ Return the amount that can be refund on a line item
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
`number`
|
||||
|
||||
@@ -566,11 +552,11 @@ Return the amount that can be refund on a line item
|
||||
|
||||
___
|
||||
|
||||
### getLineItemRefundLegacy
|
||||
#### getLineItemRefundLegacy
|
||||
|
||||
`Protected **getLineItemRefundLegacy**(lineItem, «destructured»): number`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -647,7 +633,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
`number`
|
||||
|
||||
@@ -665,13 +651,13 @@ ___
|
||||
|
||||
___
|
||||
|
||||
### getLineItemTotals
|
||||
#### getLineItemTotals
|
||||
|
||||
`**getLineItemTotals**(items, «destructured»): Promise<{ [lineItemId: string]: [LineItemTotals](../types/LineItemTotals.mdx); }>`
|
||||
|
||||
Calculate and return the items totals for either the legacy calculation or the new calculation
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -721,7 +707,7 @@ Calculate and return the items totals for either the legacy calculation or the n
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<{ [lineItemId: string]: [LineItemTotals](../types/LineItemTotals.mdx); }>
|
||||
|
||||
@@ -739,13 +725,13 @@ Promise<{ [lineItemId: string]: [LineItemTotals](../types/LineItemTotal
|
||||
|
||||
___
|
||||
|
||||
### getLineItemTotalsLegacy
|
||||
#### getLineItemTotalsLegacy
|
||||
|
||||
`Protected **getLineItemTotalsLegacy**(item, «destructured»): Promise<[LineItemTotals](../types/LineItemTotals.mdx)>`
|
||||
|
||||
Calculate and return the legacy calculated totals using the tax rate
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -813,7 +799,7 @@ Calculate and return the legacy calculated totals using the tax rate
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[LineItemTotals](../types/LineItemTotals.mdx)>
|
||||
|
||||
@@ -831,13 +817,13 @@ Promise<[LineItemTotals](../types/LineItemTotals.mdx)>
|
||||
|
||||
___
|
||||
|
||||
### getLineItemTotals\_
|
||||
#### getLineItemTotals\_
|
||||
|
||||
`Protected **getLineItemTotals_**(item, «destructured»): Promise<[LineItemTotals](../types/LineItemTotals.mdx)>`
|
||||
|
||||
Calculate and return the totals for an item
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -914,7 +900,7 @@ Calculate and return the totals for an item
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[LineItemTotals](../types/LineItemTotals.mdx)>
|
||||
|
||||
@@ -932,13 +918,13 @@ Promise<[LineItemTotals](../types/LineItemTotals.mdx)>
|
||||
|
||||
___
|
||||
|
||||
### getShippingMethodTotals
|
||||
#### getShippingMethodTotals
|
||||
|
||||
`**getShippingMethodTotals**(shippingMethods, «destructured»): Promise<{ [shippingMethodId: string]: [ShippingMethodTotals](../types/ShippingMethodTotals.mdx); }>`
|
||||
|
||||
Calculate and return the shipping methods totals for either the legacy calculation or the new calculation
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -997,7 +983,7 @@ Calculate and return the shipping methods totals for either the legacy calculati
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<{ [shippingMethodId: string]: [ShippingMethodTotals](../types/ShippingMethodTotals.mdx); }>
|
||||
|
||||
@@ -1015,13 +1001,13 @@ Promise<{ [shippingMethodId: string]: [ShippingMethodTotals](../types/S
|
||||
|
||||
___
|
||||
|
||||
### getShippingMethodTotalsLegacy
|
||||
#### getShippingMethodTotalsLegacy
|
||||
|
||||
`Protected **getShippingMethodTotalsLegacy**(shippingMethod, «destructured»): Promise<[ShippingMethodTotals](../types/ShippingMethodTotals.mdx)>`
|
||||
|
||||
Calculate and return the shipping method totals legacy using the tax rate
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -1071,7 +1057,7 @@ Calculate and return the shipping method totals legacy using the tax rate
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[ShippingMethodTotals](../types/ShippingMethodTotals.mdx)>
|
||||
|
||||
@@ -1089,13 +1075,13 @@ Promise<[ShippingMethodTotals](../types/ShippingMethodTotals.mdx)>
|
||||
|
||||
___
|
||||
|
||||
### getShippingMethodTotals\_
|
||||
#### getShippingMethodTotals\_
|
||||
|
||||
`Protected **getShippingMethodTotals_**(shippingMethod, «destructured»): Promise<[ShippingMethodTotals](../types/ShippingMethodTotals.mdx)>`
|
||||
|
||||
Calculate and return the shipping method totals
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -1154,7 +1140,7 @@ Calculate and return the shipping method totals
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[ShippingMethodTotals](../types/ShippingMethodTotals.mdx)>
|
||||
|
||||
@@ -1172,11 +1158,11 @@ Promise<[ShippingMethodTotals](../types/ShippingMethodTotals.mdx)>
|
||||
|
||||
___
|
||||
|
||||
### shouldRetryTransaction\_
|
||||
#### shouldRetryTransaction\_
|
||||
|
||||
`Protected **shouldRetryTransaction_**(err): boolean`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -1190,7 +1176,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
`boolean`
|
||||
|
||||
@@ -1208,11 +1194,11 @@ ___
|
||||
|
||||
___
|
||||
|
||||
### withTransaction
|
||||
#### withTransaction
|
||||
|
||||
`**withTransaction**(transactionManager?): [NewTotalsService](NewTotalsService.mdx)`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -1226,7 +1212,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
[NewTotalsService](NewTotalsService.mdx)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user