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 @@ Provides layer to manipulate gift cards.
|
||||
|
||||
## Constructors
|
||||
|
||||
### constructor
|
||||
#### constructor
|
||||
|
||||
`**new GiftCardService**(«destructured»)`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -134,29 +134,13 @@ Provides layer to manipulate gift cards.
|
||||
|
||||
## 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>`
|
||||
|
||||
@@ -164,6 +148,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",
|
||||
@@ -185,7 +171,7 @@ transaction manager is created.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -217,7 +203,7 @@ transaction manager is created.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<TResult>
|
||||
|
||||
@@ -235,13 +221,13 @@ Promise<TResult>
|
||||
|
||||
___
|
||||
|
||||
### create
|
||||
#### create
|
||||
|
||||
`**create**(giftCard): Promise<[GiftCard](GiftCard.mdx)>`
|
||||
|
||||
Creates a gift card with provided data given that the data is validated.
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -255,7 +241,7 @@ Creates a gift card with provided data given that the data is validated.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[GiftCard](GiftCard.mdx)>
|
||||
|
||||
@@ -273,11 +259,11 @@ Promise<[GiftCard](GiftCard.mdx)>
|
||||
|
||||
___
|
||||
|
||||
### createTransaction
|
||||
#### createTransaction
|
||||
|
||||
`**createTransaction**(data): Promise<string>`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -291,7 +277,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<string>
|
||||
|
||||
@@ -309,13 +295,13 @@ Promise<string>
|
||||
|
||||
___
|
||||
|
||||
### delete
|
||||
#### delete
|
||||
|
||||
`**delete**(giftCardId): Promise<void \| [GiftCard](GiftCard.mdx)>`
|
||||
|
||||
Deletes a gift card idempotently
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -329,7 +315,7 @@ Deletes a gift card idempotently
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<void \| [GiftCard](GiftCard.mdx)>
|
||||
|
||||
@@ -347,11 +333,11 @@ Promise<void \| [GiftCard](GiftCard.mdx)>
|
||||
|
||||
___
|
||||
|
||||
### list
|
||||
#### list
|
||||
|
||||
`**list**(selector?, config?): Promise<[GiftCard](GiftCard.mdx)[]>`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -374,7 +360,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[GiftCard](GiftCard.mdx)[]>
|
||||
|
||||
@@ -392,11 +378,11 @@ Promise<[GiftCard](GiftCard.mdx)[]>
|
||||
|
||||
___
|
||||
|
||||
### listAndCount
|
||||
#### listAndCount
|
||||
|
||||
`**listAndCount**(selector?, config?): Promise<[[GiftCard](GiftCard.mdx)[], number]>`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -419,7 +405,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[[GiftCard](GiftCard.mdx)[], number]>
|
||||
|
||||
@@ -437,13 +423,13 @@ Promise<[[GiftCard](GiftCard.mdx)[], number]>
|
||||
|
||||
___
|
||||
|
||||
### retrieve
|
||||
#### retrieve
|
||||
|
||||
`**retrieve**(giftCardId, config?): Promise<[GiftCard](GiftCard.mdx)>`
|
||||
|
||||
Gets a gift card by id.
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -466,7 +452,7 @@ Gets a gift card by id.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[GiftCard](GiftCard.mdx)>
|
||||
|
||||
@@ -484,11 +470,11 @@ Promise<[GiftCard](GiftCard.mdx)>
|
||||
|
||||
___
|
||||
|
||||
### retrieveByCode
|
||||
#### retrieveByCode
|
||||
|
||||
`**retrieveByCode**(code, config?): Promise<[GiftCard](GiftCard.mdx)>`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -511,7 +497,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[GiftCard](GiftCard.mdx)>
|
||||
|
||||
@@ -529,11 +515,11 @@ Promise<[GiftCard](GiftCard.mdx)>
|
||||
|
||||
___
|
||||
|
||||
### retrieve\_
|
||||
#### retrieve\_
|
||||
|
||||
`Protected **retrieve_**(selector, config?): Promise<[GiftCard](GiftCard.mdx)>`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -556,7 +542,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[GiftCard](GiftCard.mdx)>
|
||||
|
||||
@@ -574,11 +560,11 @@ Promise<[GiftCard](GiftCard.mdx)>
|
||||
|
||||
___
|
||||
|
||||
### shouldRetryTransaction\_
|
||||
#### shouldRetryTransaction\_
|
||||
|
||||
`Protected **shouldRetryTransaction_**(err): boolean`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -592,7 +578,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
`boolean`
|
||||
|
||||
@@ -610,13 +596,13 @@ ___
|
||||
|
||||
___
|
||||
|
||||
### update
|
||||
#### update
|
||||
|
||||
`**update**(giftCardId, update): Promise<[GiftCard](GiftCard.mdx)>`
|
||||
|
||||
Updates a giftCard.
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -639,7 +625,7 @@ Updates a giftCard.
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[GiftCard](GiftCard.mdx)>
|
||||
|
||||
@@ -657,11 +643,11 @@ Promise<[GiftCard](GiftCard.mdx)>
|
||||
|
||||
___
|
||||
|
||||
### withTransaction
|
||||
#### withTransaction
|
||||
|
||||
`**withTransaction**(transactionManager?): [GiftCardService](GiftCardService.mdx)`
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -675,7 +661,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
[GiftCardService](GiftCardService.mdx)
|
||||
|
||||
@@ -693,13 +679,13 @@ ___
|
||||
|
||||
___
|
||||
|
||||
### generateCode
|
||||
#### generateCode
|
||||
|
||||
`Static **generateCode**(): string`
|
||||
|
||||
Generates a 16 character gift card code
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
`string`
|
||||
|
||||
@@ -717,14 +703,14 @@ Generates a 16 character gift card code
|
||||
|
||||
___
|
||||
|
||||
### resolveTaxRate
|
||||
#### resolveTaxRate
|
||||
|
||||
`Static Protected **resolveTaxRate**(giftCardTaxRate, region): null \| number`
|
||||
|
||||
The tax\_rate of the giftcard can depend on whether regions tax gift cards, an input
|
||||
provided by the user or the tax rate. Based on these conditions, tax\_rate changes.
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -747,7 +733,7 @@ provided by the user or the tax rate. Based on these conditions, tax\_rate chang
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
`null` \| `number`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user