@elasticpath/js-sdk 2.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +367 -13
- package/dist/index.d.ts +1051 -391
- package/dist/index.esm.js +367 -13
- package/dist/index.js +367 -13
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1003,6 +1003,7 @@ interface PcmProductBase extends PcmProductRelationships {
|
|
|
1003
1003
|
locales?: { [key in Locales]?: { name?: string; description?: string } }
|
|
1004
1004
|
components?: ProductComponents
|
|
1005
1005
|
custom_inputs?: CustomInputs
|
|
1006
|
+
tags?: string[]
|
|
1006
1007
|
}
|
|
1007
1008
|
}
|
|
1008
1009
|
|
|
@@ -1016,8 +1017,8 @@ interface PcmJob extends Identifiable, PcmJobBase {
|
|
|
1016
1017
|
interface ProductComponents {
|
|
1017
1018
|
[key: string]: {
|
|
1018
1019
|
name: string
|
|
1019
|
-
min?: number
|
|
1020
|
-
max?: number
|
|
1020
|
+
min?: number | null
|
|
1021
|
+
max?: number | null
|
|
1021
1022
|
sort_order?: number | null
|
|
1022
1023
|
options: ProductComponentOption[]
|
|
1023
1024
|
}
|
|
@@ -1049,6 +1050,7 @@ interface ProductComponentOption {
|
|
|
1049
1050
|
quantity: number
|
|
1050
1051
|
type: string
|
|
1051
1052
|
sort_order?: number | null
|
|
1053
|
+
default?: boolean
|
|
1052
1054
|
meta: {
|
|
1053
1055
|
name: string
|
|
1054
1056
|
sku: string
|
|
@@ -1207,7 +1209,7 @@ interface PcmProductsEndpoint
|
|
|
1207
1209
|
* @param filter - products filters
|
|
1208
1210
|
* @constructor
|
|
1209
1211
|
*/
|
|
1210
|
-
ExportProducts(filter?: PcmProductFilter): Promise<Resource<PcmJob>>
|
|
1212
|
+
ExportProducts(filter?: PcmProductFilter, useTemplateSlugs?: boolean): Promise<Resource<PcmJob>>
|
|
1211
1213
|
}
|
|
1212
1214
|
|
|
1213
1215
|
/**
|
|
@@ -3143,6 +3145,11 @@ interface SubscriptionSettings {
|
|
|
3143
3145
|
subscription_preview_enabled: boolean
|
|
3144
3146
|
}
|
|
3145
3147
|
|
|
3148
|
+
interface PromotionSettings {
|
|
3149
|
+
type: 'promotion_settings'
|
|
3150
|
+
rule_promotions_preview_enabled: boolean
|
|
3151
|
+
}
|
|
3152
|
+
|
|
3146
3153
|
/**
|
|
3147
3154
|
* Settings Endpoints
|
|
3148
3155
|
*/
|
|
@@ -3193,6 +3200,18 @@ interface SettingsEndpoint {
|
|
|
3193
3200
|
* Description: You can get the Subscriptions Settings using this endpoint
|
|
3194
3201
|
*/
|
|
3195
3202
|
Subscriptions(): Promise<Resource<SubscriptionSettings>>
|
|
3203
|
+
|
|
3204
|
+
/**
|
|
3205
|
+
* Update Subscriptions Settings
|
|
3206
|
+
* Description: You can update the Subscriptions Settings using this endpoint
|
|
3207
|
+
*/
|
|
3208
|
+
UpdateSubscriptions(body: SubscriptionSettings): Promise<Resource<SubscriptionSettings>>
|
|
3209
|
+
|
|
3210
|
+
/**
|
|
3211
|
+
* Get Promotions Settings
|
|
3212
|
+
* Description: You can get the Promotions Settings using this endpoint
|
|
3213
|
+
*/
|
|
3214
|
+
Promotions(): Promise<Resource<PromotionSettings>>
|
|
3196
3215
|
}
|
|
3197
3216
|
|
|
3198
3217
|
/**
|
|
@@ -3380,9 +3399,9 @@ interface PromotionCode {
|
|
|
3380
3399
|
code: string
|
|
3381
3400
|
uses?: number
|
|
3382
3401
|
user?: string
|
|
3383
|
-
created_by
|
|
3384
|
-
max_uses
|
|
3385
|
-
meta
|
|
3402
|
+
created_by?: string
|
|
3403
|
+
max_uses?: number
|
|
3404
|
+
meta?: PromotionMeta
|
|
3386
3405
|
consume_unit?: 'per_cart' | 'per_item'
|
|
3387
3406
|
}
|
|
3388
3407
|
|
|
@@ -3427,10 +3446,11 @@ interface PromotionJob extends Identifiable {
|
|
|
3427
3446
|
|
|
3428
3447
|
/** BE Doesnt support commented filter now, TO DO**/
|
|
3429
3448
|
|
|
3430
|
-
interface
|
|
3449
|
+
interface PromotionFilter {
|
|
3431
3450
|
eq?: {
|
|
3432
3451
|
job_type?: string
|
|
3433
3452
|
status?: string
|
|
3453
|
+
code?: string
|
|
3434
3454
|
// name?: string
|
|
3435
3455
|
// created_by?: string
|
|
3436
3456
|
}
|
|
@@ -3467,13 +3487,14 @@ interface PromotionsEndpoint
|
|
|
3467
3487
|
Promotion,
|
|
3468
3488
|
PromotionBase,
|
|
3469
3489
|
Identifiable & Partial<PromotionBase>,
|
|
3470
|
-
|
|
3490
|
+
PromotionFilter,
|
|
3471
3491
|
never,
|
|
3472
3492
|
never
|
|
3473
3493
|
> {
|
|
3494
|
+
|
|
3474
3495
|
endpoint: 'promotions'
|
|
3475
3496
|
|
|
3476
|
-
Filter(filter:
|
|
3497
|
+
Filter(filter: PromotionFilter): PromotionsEndpoint
|
|
3477
3498
|
|
|
3478
3499
|
Attributes(): Promise<Attributes>
|
|
3479
3500
|
|
|
@@ -3487,6 +3508,7 @@ interface PromotionsEndpoint
|
|
|
3487
3508
|
/**
|
|
3488
3509
|
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/carts-and-checkout/promotions/create-promotion-codes.html
|
|
3489
3510
|
*/
|
|
3511
|
+
|
|
3490
3512
|
AddCodes(
|
|
3491
3513
|
promotionId: string,
|
|
3492
3514
|
codes: PromotionCode[]
|
|
@@ -4256,6 +4278,14 @@ interface CartItemsResponse {
|
|
|
4256
4278
|
snapshot_date?: string
|
|
4257
4279
|
}
|
|
4258
4280
|
|
|
4281
|
+
interface AccountAssociationData{
|
|
4282
|
+
type: string
|
|
4283
|
+
id: string
|
|
4284
|
+
}
|
|
4285
|
+
|
|
4286
|
+
interface AccountAssociationResponse extends ResourceList<AccountAssociationData> {}
|
|
4287
|
+
|
|
4288
|
+
|
|
4259
4289
|
interface BulkAddOptions {
|
|
4260
4290
|
add_all_or_nothing: boolean
|
|
4261
4291
|
}
|
|
@@ -4609,7 +4639,6 @@ interface CartEndpoint
|
|
|
4609
4639
|
/**
|
|
4610
4640
|
* Customer Cart Associations
|
|
4611
4641
|
* Description: You can create an association between a customer and a cart with the capability to delete any associations as required.
|
|
4612
|
-
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/carts-and-orders/carts/customer-cart-associations.html
|
|
4613
4642
|
* @param customerId the id of the customer.
|
|
4614
4643
|
* @param token a customer token to access specific customer orders.
|
|
4615
4644
|
*/
|
|
@@ -4619,16 +4648,29 @@ interface CartEndpoint
|
|
|
4619
4648
|
): Promise<CartItemsResponse>
|
|
4620
4649
|
|
|
4621
4650
|
/**
|
|
4622
|
-
*
|
|
4651
|
+
* Add an Account Cart Associations
|
|
4623
4652
|
* Description: You can create an association between a customer and a cart with the capability to delete any associations as required.
|
|
4624
|
-
*
|
|
4625
|
-
* @param
|
|
4653
|
+
*
|
|
4654
|
+
* @param accountId the id of the account.
|
|
4626
4655
|
* @param token a customer token to access specific customer orders.
|
|
4627
4656
|
*/
|
|
4628
|
-
|
|
4629
|
-
|
|
4657
|
+
AddAccountAssociation(
|
|
4658
|
+
accountId: string,
|
|
4630
4659
|
token: string
|
|
4631
|
-
): Promise<
|
|
4660
|
+
): Promise<AccountAssociationResponse>
|
|
4661
|
+
|
|
4662
|
+
/**
|
|
4663
|
+
* Remove an Account Cart Associations
|
|
4664
|
+
* Description: You can create an association between a customer and a cart with the capability to delete any associations as required.
|
|
4665
|
+
*
|
|
4666
|
+
* @param accountId the id of the account.
|
|
4667
|
+
* @param token a customer token to access specific customer orders.
|
|
4668
|
+
*/
|
|
4669
|
+
RemoveAccountAssociation(
|
|
4670
|
+
accountId: string,
|
|
4671
|
+
token: string
|
|
4672
|
+
): Promise<{}>
|
|
4673
|
+
|
|
4632
4674
|
|
|
4633
4675
|
/**
|
|
4634
4676
|
* @deprecated Use UpdateItem method
|
|
@@ -5068,6 +5110,10 @@ interface ProductResponse extends Identifiable {
|
|
|
5068
5110
|
}
|
|
5069
5111
|
}
|
|
5070
5112
|
}
|
|
5113
|
+
bread_crumbs?: {
|
|
5114
|
+
[key: string]: string[]
|
|
5115
|
+
}
|
|
5116
|
+
bread_crumb_nodes?: string[]
|
|
5071
5117
|
component_products?: {
|
|
5072
5118
|
[key: string]: {
|
|
5073
5119
|
display_price: {
|
|
@@ -6129,6 +6175,7 @@ interface AccountAuthenticationSettingsBase {
|
|
|
6129
6175
|
type: string
|
|
6130
6176
|
enable_self_signup: boolean,
|
|
6131
6177
|
auto_create_account_for_account_members: boolean,
|
|
6178
|
+
account_management_authentication_token_timeout_secs?: number,
|
|
6132
6179
|
account_member_self_management: string
|
|
6133
6180
|
meta: object
|
|
6134
6181
|
relationships: {
|
|
@@ -6496,354 +6543,388 @@ interface PasswordProfileEndpoint {
|
|
|
6496
6543
|
*/
|
|
6497
6544
|
|
|
6498
6545
|
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
}
|
|
6546
|
+
/**
|
|
6547
|
+
* Product Variations Base Interface
|
|
6548
|
+
*/
|
|
6549
|
+
interface PCMVariationBase {
|
|
6550
|
+
attributes: {
|
|
6551
|
+
name: string
|
|
6552
|
+
sort_order?: number
|
|
6507
6553
|
}
|
|
6554
|
+
}
|
|
6508
6555
|
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
}
|
|
6556
|
+
interface PCMVariation extends Identifiable, PCMVariationBase {
|
|
6557
|
+
type: 'product-variation'
|
|
6558
|
+
meta?: {
|
|
6559
|
+
options?: PCMVariationMetaOption[]
|
|
6560
|
+
owner: 'organization' | 'store'
|
|
6515
6561
|
}
|
|
6562
|
+
}
|
|
6516
6563
|
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
name: string
|
|
6524
|
-
description: string
|
|
6525
|
-
}
|
|
6564
|
+
interface UpdateVariationBody
|
|
6565
|
+
extends Omit<PCMVariationBase, 'attributes'>,
|
|
6566
|
+
Identifiable {
|
|
6567
|
+
attributes: {
|
|
6568
|
+
name: string
|
|
6569
|
+
sort_order?: number | null
|
|
6526
6570
|
}
|
|
6571
|
+
}
|
|
6527
6572
|
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
relationships: {
|
|
6537
|
-
modifiers: {
|
|
6538
|
-
data: VariationsModifierTypeObj[]
|
|
6539
|
-
}
|
|
6540
|
-
}
|
|
6573
|
+
/**
|
|
6574
|
+
* Product variation option base interface
|
|
6575
|
+
*/
|
|
6576
|
+
interface PCMVariationOptionBase {
|
|
6577
|
+
attributes: {
|
|
6578
|
+
name: string
|
|
6579
|
+
description: string
|
|
6580
|
+
sort_order?: number
|
|
6541
6581
|
}
|
|
6582
|
+
}
|
|
6542
6583
|
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
*/
|
|
6551
|
-
interface VariationsModifier {
|
|
6552
|
-
attributes: {
|
|
6553
|
-
type: VariationsModifierType
|
|
6554
|
-
value?: string
|
|
6555
|
-
seek?: string
|
|
6556
|
-
set?: string
|
|
6557
|
-
reference_name?: string
|
|
6558
|
-
}
|
|
6584
|
+
interface PCMVariationOption
|
|
6585
|
+
extends Identifiable,
|
|
6586
|
+
PCMVariationOptionBase {
|
|
6587
|
+
type: 'product-variation-option'
|
|
6588
|
+
meta: {
|
|
6589
|
+
owner?: 'organization' | 'store'
|
|
6590
|
+
modifiers?: VariationsModifierTypeObj[]
|
|
6559
6591
|
}
|
|
6592
|
+
}
|
|
6560
6593
|
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
| { name_prepend: string }
|
|
6569
|
-
| { description_equals: string }
|
|
6570
|
-
| { description_append: string }
|
|
6571
|
-
| { description_prepend: string }
|
|
6572
|
-
| { commoditytype: string }
|
|
6573
|
-
| { slug_equals: string }
|
|
6574
|
-
| { slug_append: string }
|
|
6575
|
-
| { slug_prepend: string }
|
|
6576
|
-
| { slug_builder: VariationsBuilderModifier }
|
|
6577
|
-
| { sku_equals: string }
|
|
6578
|
-
| { sku_append: string }
|
|
6579
|
-
| { sku_prepend: string }
|
|
6580
|
-
| { sku_builder: VariationsBuilderModifier }
|
|
6581
|
-
| { status: string }
|
|
6582
|
-
|
|
6583
|
-
type VariationsModifierType =
|
|
6584
|
-
| 'name_equals'
|
|
6585
|
-
| 'name_append'
|
|
6586
|
-
| 'name_prepend'
|
|
6587
|
-
| 'description_equals'
|
|
6588
|
-
| 'description_append'
|
|
6589
|
-
| 'description_prepend'
|
|
6590
|
-
| 'commodity_type'
|
|
6591
|
-
| 'slug_equals'
|
|
6592
|
-
| 'slug_append'
|
|
6593
|
-
| 'slug_prepend'
|
|
6594
|
-
| 'slug_builder'
|
|
6595
|
-
| 'sku_equals'
|
|
6596
|
-
| 'sku_append'
|
|
6597
|
-
| 'sku_prepend'
|
|
6598
|
-
| 'sku_builder'
|
|
6599
|
-
| 'status'
|
|
6600
|
-
| 'price'
|
|
6601
|
-
|
|
6602
|
-
interface VariationsBuilderModifier {
|
|
6603
|
-
seek: string
|
|
6604
|
-
set: string
|
|
6605
|
-
}
|
|
6606
|
-
|
|
6607
|
-
/**
|
|
6608
|
-
* Variations Endpoints
|
|
6609
|
-
* Get DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/catalog/product-variations/get-a-product-variation.html
|
|
6610
|
-
* Get All DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/catalog/product-variations/create-a-product-variation.html
|
|
6611
|
-
* Delete DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/catalog/product-variations/delete-a-product-variation.html
|
|
6612
|
-
*/
|
|
6613
|
-
interface PCMVariationsEndpoint
|
|
6614
|
-
extends CrudQueryableResource<
|
|
6615
|
-
PCMVariation,
|
|
6616
|
-
PCMVariationBase,
|
|
6617
|
-
VariationsOptionResponse,
|
|
6618
|
-
never,
|
|
6619
|
-
never,
|
|
6620
|
-
never
|
|
6621
|
-
> {
|
|
6622
|
-
endpoint: 'pcm/variations'
|
|
6623
|
-
|
|
6624
|
-
Limit(value: number): PCMVariationsEndpoint
|
|
6625
|
-
|
|
6626
|
-
Offset(value: number): PCMVariationsEndpoint
|
|
6627
|
-
|
|
6628
|
-
/**
|
|
6629
|
-
* Create a product variation
|
|
6630
|
-
* @param body - The variation object.
|
|
6631
|
-
* @constructor
|
|
6632
|
-
*/
|
|
6633
|
-
CreateVariation(body: PCMVariationBase): Promise<Resource<PCMVariation>>
|
|
6634
|
-
|
|
6635
|
-
/**
|
|
6636
|
-
* Update a product variation
|
|
6637
|
-
* @param id - ID of the variation.
|
|
6638
|
-
* @param body - The variation object.
|
|
6639
|
-
* @param token - a token to access specific data.
|
|
6640
|
-
* @constructor
|
|
6641
|
-
*/
|
|
6642
|
-
UpdateVariation(
|
|
6643
|
-
id: string,
|
|
6644
|
-
body: UpdateVariation,
|
|
6645
|
-
token?: string
|
|
6646
|
-
): Promise<Resource<PCMVariation>>
|
|
6647
|
-
|
|
6648
|
-
/**
|
|
6649
|
-
* Get a product variation option
|
|
6650
|
-
* Description: Use this endpoint to retrieve a single variation option.
|
|
6651
|
-
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/catalog/product-variations/options/get-a-product-variation-option.html
|
|
6652
|
-
* @param variationId - ID of the variation.
|
|
6653
|
-
* @param optionId - ID of the option.
|
|
6654
|
-
* @constructor
|
|
6655
|
-
*/
|
|
6656
|
-
VariationsOption(
|
|
6657
|
-
variationId: string,
|
|
6658
|
-
optionId: string
|
|
6659
|
-
): Promise<Resource<VariationsOptionResponse>>
|
|
6660
|
-
|
|
6661
|
-
/**
|
|
6662
|
-
* Get all product variation options
|
|
6663
|
-
* @param variationId - ID of the variation.
|
|
6664
|
-
* @constructor
|
|
6665
|
-
*/
|
|
6666
|
-
VariationsOptions(variationId: string): Promise<ResourcePage<VariationsOptionResponse>>
|
|
6667
|
-
|
|
6668
|
-
/**
|
|
6669
|
-
* Create a product variation option
|
|
6670
|
-
* @param variationId - ID of the variation.
|
|
6671
|
-
* @param body - The option object.
|
|
6672
|
-
* @constructor
|
|
6673
|
-
*/
|
|
6674
|
-
CreateVariationsOption(variationId: string, body: VariationsOption): Promise<Resource<VariationsOptionResponse>>
|
|
6675
|
-
|
|
6676
|
-
/**
|
|
6677
|
-
* Update product variation option
|
|
6678
|
-
* @param variationId - ID of the variation.
|
|
6679
|
-
* @param optionId - ID of the option.
|
|
6680
|
-
* @param body - The option object.
|
|
6681
|
-
* @constructor
|
|
6682
|
-
*/
|
|
6683
|
-
UpdateVariationsOption(variationId: string, optionId: string, body: UpdateVariationOption): Promise<Resource<VariationsOptionResponse>>
|
|
6684
|
-
|
|
6685
|
-
/**
|
|
6686
|
-
* Delete product variation option
|
|
6687
|
-
* @param variationId - ID of the variation.
|
|
6688
|
-
* @param optionId - ID of the option.
|
|
6689
|
-
* @constructor
|
|
6690
|
-
*/
|
|
6691
|
-
DeleteVariationsOption(variationId: string, optionId: string): Promise<{}>
|
|
6692
|
-
|
|
6693
|
-
/**
|
|
6694
|
-
* Get a product modifier
|
|
6695
|
-
* @param variationId - ID of the variation.
|
|
6696
|
-
* @param optionId - ID of the option.
|
|
6697
|
-
* @param modifierId - ID of the modifier.
|
|
6698
|
-
* @constructor
|
|
6699
|
-
*/
|
|
6700
|
-
VariationsModifier(
|
|
6701
|
-
variationId: string,
|
|
6702
|
-
optionId: string,
|
|
6703
|
-
modifierId: string
|
|
6704
|
-
): Promise<Resource<VariationsModifierResponse>>
|
|
6705
|
-
|
|
6706
|
-
/**
|
|
6707
|
-
* Get all product modifiers
|
|
6708
|
-
* @param variationId - ID of the variation.
|
|
6709
|
-
* @param optionId - ID of the option.
|
|
6710
|
-
* @constructor
|
|
6711
|
-
*/
|
|
6712
|
-
VariationsModifiers(variationId: string, optionId: string): Promise<ResourceList<VariationsModifierResponse>>
|
|
6713
|
-
|
|
6714
|
-
/**
|
|
6715
|
-
* Create a new product modifier
|
|
6716
|
-
* @param variationId - ID of the variation.
|
|
6717
|
-
* @param optionId - ID of the option.
|
|
6718
|
-
* @param body - The modifier object.
|
|
6719
|
-
* @constructor
|
|
6720
|
-
*/
|
|
6721
|
-
CreateVariationsModifier(
|
|
6722
|
-
variationId: string,
|
|
6723
|
-
optionId: string,
|
|
6724
|
-
body: VariationsModifier
|
|
6725
|
-
): Promise<Resource<VariationsModifierResponse>>
|
|
6726
|
-
|
|
6727
|
-
/**
|
|
6728
|
-
* Update a product modifier
|
|
6729
|
-
* @param variationId - ID of the variation.
|
|
6730
|
-
* @param optionId - ID of the option.
|
|
6731
|
-
* @param modifierId - ID of the modifier.
|
|
6732
|
-
* @param body - The modifier object.
|
|
6733
|
-
* @constructor
|
|
6734
|
-
*/
|
|
6735
|
-
UpdateVariationsModifier(
|
|
6736
|
-
variationId: string,
|
|
6737
|
-
optionId: string,
|
|
6738
|
-
modifierId: string,
|
|
6739
|
-
body: VariationsModifier
|
|
6740
|
-
): Promise<Resource<VariationsModifierResponse>>
|
|
6741
|
-
|
|
6742
|
-
/**
|
|
6743
|
-
* Delete a product modifier
|
|
6744
|
-
* @param variationId - ID of the variation.
|
|
6745
|
-
* @param optionId - ID of the option.
|
|
6746
|
-
* @param modifierId - ID of the modifier.
|
|
6747
|
-
* @constructor
|
|
6748
|
-
*/
|
|
6749
|
-
DeleteVariationsModifier(variationId: string, optionId: string, modifierId: string): Promise<{}>
|
|
6594
|
+
interface UpdateVariationOptionBody
|
|
6595
|
+
extends Omit<PCMVariationOptionBase, 'attributes'>,
|
|
6596
|
+
Identifiable {
|
|
6597
|
+
attributes: {
|
|
6598
|
+
name: string
|
|
6599
|
+
description: string
|
|
6600
|
+
sort_order?: number | null
|
|
6750
6601
|
}
|
|
6602
|
+
}
|
|
6751
6603
|
|
|
6752
6604
|
/**
|
|
6753
|
-
*
|
|
6754
|
-
* Description: A User Authentication Password Profile Info resource represents username and password for user authentication info.
|
|
6755
|
-
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/index.html
|
|
6605
|
+
* Interface for options that are in a PCM Variation's meta.options field
|
|
6756
6606
|
*/
|
|
6757
|
-
|
|
6607
|
+
type PCMVariationMetaOption = Identifiable &
|
|
6608
|
+
PCMVariationOptionBase['attributes']
|
|
6758
6609
|
|
|
6759
6610
|
/**
|
|
6760
|
-
*
|
|
6761
|
-
*
|
|
6611
|
+
* Modifiers object
|
|
6612
|
+
* Modifiers help augmenting properties of a variation of a product, price, etc., by creating an array of child products or prices.
|
|
6762
6613
|
*/
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
type:
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6614
|
+
interface VariationsModifier {
|
|
6615
|
+
attributes: {
|
|
6616
|
+
type: VariationsModifierType
|
|
6617
|
+
value?: string
|
|
6618
|
+
seek?: string
|
|
6619
|
+
set?: string
|
|
6620
|
+
reference_name?: string
|
|
6621
|
+
}
|
|
6769
6622
|
}
|
|
6770
6623
|
|
|
6771
|
-
interface
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6624
|
+
interface VariationsModifierResponse
|
|
6625
|
+
extends Identifiable,
|
|
6626
|
+
VariationsModifier {
|
|
6627
|
+
type: 'product-variation-modifier'
|
|
6775
6628
|
}
|
|
6776
6629
|
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
}
|
|
6630
|
+
type VariationsModifierTypeObj =
|
|
6631
|
+
| { name_equals: string }
|
|
6632
|
+
| { name_append: string }
|
|
6633
|
+
| { name_prepend: string }
|
|
6634
|
+
| { description_equals: string }
|
|
6635
|
+
| { description_append: string }
|
|
6636
|
+
| { description_prepend: string }
|
|
6637
|
+
| { commoditytype: string }
|
|
6638
|
+
| { slug_equals: string }
|
|
6639
|
+
| { slug_append: string }
|
|
6640
|
+
| { slug_prepend: string }
|
|
6641
|
+
| { slug_builder: VariationsBuilderModifier }
|
|
6642
|
+
| { sku_equals: string }
|
|
6643
|
+
| { sku_append: string }
|
|
6644
|
+
| { sku_prepend: string }
|
|
6645
|
+
| { sku_builder: VariationsBuilderModifier }
|
|
6646
|
+
| { status: string }
|
|
6787
6647
|
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6648
|
+
type VariationsModifierType =
|
|
6649
|
+
| 'name_equals'
|
|
6650
|
+
| 'name_append'
|
|
6651
|
+
| 'name_prepend'
|
|
6652
|
+
| 'description_equals'
|
|
6653
|
+
| 'description_append'
|
|
6654
|
+
| 'description_prepend'
|
|
6655
|
+
| 'commodity_type'
|
|
6656
|
+
| 'slug_equals'
|
|
6657
|
+
| 'slug_append'
|
|
6658
|
+
| 'slug_prepend'
|
|
6659
|
+
| 'slug_builder'
|
|
6660
|
+
| 'sku_equals'
|
|
6661
|
+
| 'sku_append'
|
|
6662
|
+
| 'sku_prepend'
|
|
6663
|
+
| 'sku_builder'
|
|
6664
|
+
| 'status'
|
|
6665
|
+
| 'price'
|
|
6666
|
+
|
|
6667
|
+
interface VariationsBuilderModifier {
|
|
6668
|
+
seek: string
|
|
6669
|
+
set: string
|
|
6792
6670
|
}
|
|
6793
6671
|
|
|
6794
6672
|
/**
|
|
6795
|
-
*
|
|
6796
|
-
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/
|
|
6673
|
+
* Variations Endpoints
|
|
6674
|
+
* Get DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/catalog/product-variations/get-a-product-variation.html
|
|
6675
|
+
* Get All DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/catalog/product-variations/create-a-product-variation.html
|
|
6676
|
+
* Delete DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/catalog/product-variations/delete-a-product-variation.html
|
|
6797
6677
|
*/
|
|
6798
|
-
interface
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/get-a-user-authentication-password-profile.html
|
|
6809
|
-
* @param realmId - The ID for the authentication-realm.
|
|
6810
|
-
* @param userAuthenticationInfoId - The ID for the user authentication info.
|
|
6811
|
-
* @param userAuthenticationPasswordProfileId - The ID for the user authentication password profile info.
|
|
6812
|
-
*/
|
|
6813
|
-
Get(realmId: string, userAuthenticationInfoId: string, userAuthenticationPasswordProfileId: string, token?: string): Promise<UserAuthenticationPasswordProfileResponse>
|
|
6678
|
+
interface PCMVariationsEndpoint
|
|
6679
|
+
extends CrudQueryableResource<
|
|
6680
|
+
PCMVariation,
|
|
6681
|
+
PCMVariationBase,
|
|
6682
|
+
PCMVariationOption,
|
|
6683
|
+
never,
|
|
6684
|
+
never,
|
|
6685
|
+
never
|
|
6686
|
+
> {
|
|
6687
|
+
endpoint: 'pcm/variations'
|
|
6814
6688
|
|
|
6815
|
-
|
|
6816
|
-
* Create an User Authentication Password Info Profile
|
|
6817
|
-
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/create-a-user-authentication-password-profile.html
|
|
6818
|
-
* @param realmId - The ID for the authentication-realm.
|
|
6819
|
-
* @param userAuthenticationInfoId - The ID for the user authentication info.
|
|
6820
|
-
* @param body - The User Authentication Password Profile Info object
|
|
6821
|
-
*/
|
|
6822
|
-
Create(realmId: string, userAuthenticationInfoId: string, body: { data: UserAuthenticationPasswordProfileBody }, token?: string): Promise<UserAuthenticationPasswordProfileResponse>
|
|
6689
|
+
Limit(value: number): PCMVariationsEndpoint
|
|
6823
6690
|
|
|
6824
|
-
|
|
6825
|
-
* Update an User Authentication Password Profile Info
|
|
6826
|
-
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/update-a-user-authentication-password-profile.html
|
|
6827
|
-
* @param realmId - The ID for the authentication-realm.
|
|
6828
|
-
* @param userAuthenticationInfoId - The ID for the user authentication info.
|
|
6829
|
-
* @param userAuthenticationPasswordProfileId - The ID for the user authentication password profile info.
|
|
6830
|
-
* @param body - The User Authentication Password Profile Info object
|
|
6831
|
-
*/
|
|
6832
|
-
Update(realmId: string, userAuthenticationInfoId: string,userAuthenticationPasswordProfileId: string, body: { data: UserAuthenticationPasswordProfileUpdateBody }, token?: string): Promise<UserAuthenticationPasswordProfileResponse>
|
|
6691
|
+
Offset(value: number): PCMVariationsEndpoint
|
|
6833
6692
|
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
*/
|
|
6841
|
-
Delete(realmId: string, userAuthenticationInfoId: string, userAuthenticationPasswordProfileId: string, token?: string)
|
|
6842
|
-
}
|
|
6693
|
+
/**
|
|
6694
|
+
* Create a product variation
|
|
6695
|
+
* @param body - The base variation object.
|
|
6696
|
+
* @constructor
|
|
6697
|
+
*/
|
|
6698
|
+
CreateVariation(body: PCMVariationBase): Promise<Resource<PCMVariation>>
|
|
6843
6699
|
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6700
|
+
/**
|
|
6701
|
+
* Update a product variation
|
|
6702
|
+
* @param id - ID of the variation.
|
|
6703
|
+
* @param body - The variation object.
|
|
6704
|
+
* @param token - a token to access specific data.
|
|
6705
|
+
* @constructor
|
|
6706
|
+
*/
|
|
6707
|
+
UpdateVariation(
|
|
6708
|
+
id: string,
|
|
6709
|
+
body: UpdateVariationBody,
|
|
6710
|
+
token?: string
|
|
6711
|
+
): Promise<Resource<PCMVariation>>
|
|
6712
|
+
|
|
6713
|
+
/**
|
|
6714
|
+
* Get a product variation option
|
|
6715
|
+
* Description: Use this endpoint to retrieve a single variation option.
|
|
6716
|
+
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/catalog/product-variations/options/get-a-product-variation-option.html
|
|
6717
|
+
* @param variationId - ID of the variation.
|
|
6718
|
+
* @param optionId - ID of the option.
|
|
6719
|
+
* @constructor
|
|
6720
|
+
*/
|
|
6721
|
+
VariationsOption(
|
|
6722
|
+
variationId: string,
|
|
6723
|
+
optionId: string
|
|
6724
|
+
): Promise<Resource<PCMVariationOption>>
|
|
6725
|
+
|
|
6726
|
+
/**
|
|
6727
|
+
* Get all product variation options
|
|
6728
|
+
* @param variationId - ID of the variation.
|
|
6729
|
+
* @constructor
|
|
6730
|
+
*/
|
|
6731
|
+
VariationsOptions(
|
|
6732
|
+
variationId: string
|
|
6733
|
+
): Promise<ResourcePage<PCMVariationOption>>
|
|
6734
|
+
|
|
6735
|
+
/**
|
|
6736
|
+
* Create a product variation option
|
|
6737
|
+
* @param variationId - ID of the variation.
|
|
6738
|
+
* @param body - The option object.
|
|
6739
|
+
* @constructor
|
|
6740
|
+
*/
|
|
6741
|
+
CreateVariationsOption(
|
|
6742
|
+
variationId: string,
|
|
6743
|
+
body: PCMVariationOptionBase
|
|
6744
|
+
): Promise<Resource<PCMVariationOption>>
|
|
6745
|
+
|
|
6746
|
+
/**
|
|
6747
|
+
* Update product variation option
|
|
6748
|
+
* @param variationId - ID of the variation.
|
|
6749
|
+
* @param optionId - ID of the option.
|
|
6750
|
+
* @param body - The option object.
|
|
6751
|
+
* @constructor
|
|
6752
|
+
*/
|
|
6753
|
+
UpdateVariationsOption(
|
|
6754
|
+
variationId: string,
|
|
6755
|
+
optionId: string,
|
|
6756
|
+
body: UpdateVariationOptionBody
|
|
6757
|
+
): Promise<Resource<PCMVariationOption>>
|
|
6758
|
+
|
|
6759
|
+
/**
|
|
6760
|
+
* Delete product variation option
|
|
6761
|
+
* @param variationId - ID of the variation.
|
|
6762
|
+
* @param optionId - ID of the option.
|
|
6763
|
+
* @constructor
|
|
6764
|
+
*/
|
|
6765
|
+
DeleteVariationsOption(variationId: string, optionId: string): Promise<{}>
|
|
6766
|
+
|
|
6767
|
+
/**
|
|
6768
|
+
* Get a product modifier
|
|
6769
|
+
* @param variationId - ID of the variation.
|
|
6770
|
+
* @param optionId - ID of the option.
|
|
6771
|
+
* @param modifierId - ID of the modifier.
|
|
6772
|
+
* @constructor
|
|
6773
|
+
*/
|
|
6774
|
+
VariationsModifier(
|
|
6775
|
+
variationId: string,
|
|
6776
|
+
optionId: string,
|
|
6777
|
+
modifierId: string
|
|
6778
|
+
): Promise<Resource<VariationsModifierResponse>>
|
|
6779
|
+
|
|
6780
|
+
/**
|
|
6781
|
+
* Get all product modifiers
|
|
6782
|
+
* @param variationId - ID of the variation.
|
|
6783
|
+
* @param optionId - ID of the option.
|
|
6784
|
+
* @constructor
|
|
6785
|
+
*/
|
|
6786
|
+
VariationsModifiers(
|
|
6787
|
+
variationId: string,
|
|
6788
|
+
optionId: string
|
|
6789
|
+
): Promise<ResourceList<VariationsModifierResponse>>
|
|
6790
|
+
|
|
6791
|
+
/**
|
|
6792
|
+
* Create a new product modifier
|
|
6793
|
+
* @param variationId - ID of the variation.
|
|
6794
|
+
* @param optionId - ID of the option.
|
|
6795
|
+
* @param body - The modifier object.
|
|
6796
|
+
* @constructor
|
|
6797
|
+
*/
|
|
6798
|
+
CreateVariationsModifier(
|
|
6799
|
+
variationId: string,
|
|
6800
|
+
optionId: string,
|
|
6801
|
+
body: VariationsModifier
|
|
6802
|
+
): Promise<Resource<VariationsModifierResponse>>
|
|
6803
|
+
|
|
6804
|
+
/**
|
|
6805
|
+
* Update a product modifier
|
|
6806
|
+
* @param variationId - ID of the variation.
|
|
6807
|
+
* @param optionId - ID of the option.
|
|
6808
|
+
* @param modifierId - ID of the modifier.
|
|
6809
|
+
* @param body - The modifier object.
|
|
6810
|
+
* @constructor
|
|
6811
|
+
*/
|
|
6812
|
+
UpdateVariationsModifier(
|
|
6813
|
+
variationId: string,
|
|
6814
|
+
optionId: string,
|
|
6815
|
+
modifierId: string,
|
|
6816
|
+
body: VariationsModifier
|
|
6817
|
+
): Promise<Resource<VariationsModifierResponse>>
|
|
6818
|
+
|
|
6819
|
+
/**
|
|
6820
|
+
* Delete a product modifier
|
|
6821
|
+
* @param variationId - ID of the variation.
|
|
6822
|
+
* @param optionId - ID of the option.
|
|
6823
|
+
* @param modifierId - ID of the modifier.
|
|
6824
|
+
* @constructor
|
|
6825
|
+
*/
|
|
6826
|
+
DeleteVariationsModifier(
|
|
6827
|
+
variationId: string,
|
|
6828
|
+
optionId: string,
|
|
6829
|
+
modifierId: string
|
|
6830
|
+
): Promise<{}>
|
|
6831
|
+
}
|
|
6832
|
+
|
|
6833
|
+
/**
|
|
6834
|
+
* User Authentication Password Profile Info
|
|
6835
|
+
* Description: A User Authentication Password Profile Info resource represents username and password for user authentication info.
|
|
6836
|
+
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/index.html
|
|
6837
|
+
*/
|
|
6838
|
+
|
|
6839
|
+
|
|
6840
|
+
/**
|
|
6841
|
+
* The User Authentication Password Profile Info object
|
|
6842
|
+
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/index.html#The-User-Authentication-Password-Profile-Object
|
|
6843
|
+
*/
|
|
6844
|
+
|
|
6845
|
+
interface UserAuthenticationPasswordProfileBody {
|
|
6846
|
+
type: string
|
|
6847
|
+
password_profile_id: string
|
|
6848
|
+
username: string
|
|
6849
|
+
password : string
|
|
6850
|
+
}
|
|
6851
|
+
|
|
6852
|
+
interface UserAuthenticationPasswordProfileUpdateBody {
|
|
6853
|
+
type: string
|
|
6854
|
+
username: string
|
|
6855
|
+
password : string
|
|
6856
|
+
}
|
|
6857
|
+
|
|
6858
|
+
interface UserAuthenticationPasswordProfile extends UserAuthenticationPasswordProfileBody, Identifiable {
|
|
6859
|
+
meta: {
|
|
6860
|
+
timestamps: {
|
|
6861
|
+
created_at: string
|
|
6862
|
+
updated_at: string
|
|
6863
|
+
}
|
|
6864
|
+
}
|
|
6865
|
+
links: {}
|
|
6866
|
+
relationships: {}
|
|
6867
|
+
}
|
|
6868
|
+
|
|
6869
|
+
interface UserAuthenticationPasswordProfileResponse extends Resource<UserAuthenticationPasswordProfile> {
|
|
6870
|
+
links: {
|
|
6871
|
+
self: string
|
|
6872
|
+
}
|
|
6873
|
+
}
|
|
6874
|
+
|
|
6875
|
+
/**
|
|
6876
|
+
* User Authentication Password Profile Info Endpoints
|
|
6877
|
+
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/index.html
|
|
6878
|
+
*/
|
|
6879
|
+
interface UserAuthenticationPasswordProfileEndpoint {
|
|
6880
|
+
/**
|
|
6881
|
+
* Read All User Authentication Password Info Profile
|
|
6882
|
+
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/get-all-user-authentication-password-profile.html
|
|
6883
|
+
* @param realmId - The ID for the authentication-realm.
|
|
6884
|
+
* @param userAuthenticationInfoId - The ID for the user authentication info.
|
|
6885
|
+
*/
|
|
6886
|
+
All(realmId: string, userAuthenticationInfoId: string, token?: string, headers?): Promise<ResourceList<UserAuthenticationPasswordProfile>>
|
|
6887
|
+
/**
|
|
6888
|
+
* Get a User Authentication Password Info Profile
|
|
6889
|
+
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/get-a-user-authentication-password-profile.html
|
|
6890
|
+
* @param realmId - The ID for the authentication-realm.
|
|
6891
|
+
* @param userAuthenticationInfoId - The ID for the user authentication info.
|
|
6892
|
+
* @param userAuthenticationPasswordProfileId - The ID for the user authentication password profile info.
|
|
6893
|
+
*/
|
|
6894
|
+
Get(realmId: string, userAuthenticationInfoId: string, userAuthenticationPasswordProfileId: string, token?: string): Promise<UserAuthenticationPasswordProfileResponse>
|
|
6895
|
+
|
|
6896
|
+
/**
|
|
6897
|
+
* Create an User Authentication Password Info Profile
|
|
6898
|
+
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/create-a-user-authentication-password-profile.html
|
|
6899
|
+
* @param realmId - The ID for the authentication-realm.
|
|
6900
|
+
* @param userAuthenticationInfoId - The ID for the user authentication info.
|
|
6901
|
+
* @param body - The User Authentication Password Profile Info object
|
|
6902
|
+
*/
|
|
6903
|
+
Create(realmId: string, userAuthenticationInfoId: string, body: { data: UserAuthenticationPasswordProfileBody }, token?: string): Promise<UserAuthenticationPasswordProfileResponse>
|
|
6904
|
+
|
|
6905
|
+
/**
|
|
6906
|
+
* Update an User Authentication Password Profile Info
|
|
6907
|
+
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/update-a-user-authentication-password-profile.html
|
|
6908
|
+
* @param realmId - The ID for the authentication-realm.
|
|
6909
|
+
* @param userAuthenticationInfoId - The ID for the user authentication info.
|
|
6910
|
+
* @param userAuthenticationPasswordProfileId - The ID for the user authentication password profile info.
|
|
6911
|
+
* @param body - The User Authentication Password Profile Info object
|
|
6912
|
+
*/
|
|
6913
|
+
Update(realmId: string, userAuthenticationInfoId: string,userAuthenticationPasswordProfileId: string, body: { data: UserAuthenticationPasswordProfileUpdateBody }, token?: string): Promise<UserAuthenticationPasswordProfileResponse>
|
|
6914
|
+
|
|
6915
|
+
/**
|
|
6916
|
+
* Delete an User Authentication Password Profile Info
|
|
6917
|
+
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/password-profiles/delete-a-user-authentication-password-profile.html
|
|
6918
|
+
* @param realmId - The ID for the authentication-realm containing the Password profiles.
|
|
6919
|
+
* @param userAuthenticationInfoId - The ID for the user authentication info.
|
|
6920
|
+
* @param userAuthenticationPasswordProfileId - The ID for the user authentication password profile info.
|
|
6921
|
+
*/
|
|
6922
|
+
Delete(realmId: string, userAuthenticationInfoId: string, userAuthenticationPasswordProfileId: string, token?: string)
|
|
6923
|
+
}
|
|
6924
|
+
|
|
6925
|
+
interface MetricsBase {
|
|
6926
|
+
value: number
|
|
6927
|
+
time: string
|
|
6847
6928
|
}
|
|
6848
6929
|
|
|
6849
6930
|
interface MetricsQuery {
|
|
@@ -7021,12 +7102,10 @@ interface ApplicationKeysEndpoint extends CrudQueryableResource<
|
|
|
7021
7102
|
interface SubscriptionProductBase {
|
|
7022
7103
|
type: string
|
|
7023
7104
|
attributes: {
|
|
7024
|
-
created_at: string
|
|
7025
7105
|
description: string
|
|
7026
7106
|
main_image?: string | null
|
|
7027
7107
|
name: string
|
|
7028
7108
|
sku: string
|
|
7029
|
-
updated_at: string
|
|
7030
7109
|
price: {
|
|
7031
7110
|
[key: string]: {
|
|
7032
7111
|
amount: number
|
|
@@ -7041,10 +7120,23 @@ interface SubscriptionProductBase {
|
|
|
7041
7120
|
}
|
|
7042
7121
|
|
|
7043
7122
|
interface SubscriptionProduct extends Identifiable, SubscriptionProductBase {
|
|
7044
|
-
|
|
7123
|
+
meta: {
|
|
7124
|
+
display_price: {
|
|
7125
|
+
without_tax: {
|
|
7126
|
+
amount: number
|
|
7127
|
+
currency: string
|
|
7128
|
+
formatted: string
|
|
7129
|
+
}
|
|
7130
|
+
},
|
|
7131
|
+
owner: string
|
|
7132
|
+
timestamps: {
|
|
7133
|
+
created_at: string
|
|
7134
|
+
updated_at: string
|
|
7135
|
+
}
|
|
7136
|
+
}
|
|
7045
7137
|
}
|
|
7046
7138
|
type SubscriptionProductCreate = Omit<SubscriptionProductBase, 'attributes'> & {attributes: Partial<SubscriptionProductBase['attributes']>}
|
|
7047
|
-
type SubscriptionProductUpdate = Omit<
|
|
7139
|
+
type SubscriptionProductUpdate = Identifiable & Omit<SubscriptionProductBase, 'attributes'> & {attributes: Partial<SubscriptionProductBase['attributes']>}
|
|
7048
7140
|
|
|
7049
7141
|
/**
|
|
7050
7142
|
* Subscription Product Endpoints
|
|
@@ -7077,30 +7169,37 @@ interface SubscriptionProductsEndpoint
|
|
|
7077
7169
|
interface SubscriptionPlanBase {
|
|
7078
7170
|
type: string
|
|
7079
7171
|
attributes: {
|
|
7080
|
-
name: string
|
|
7081
|
-
description?: string
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7172
|
+
name: string
|
|
7173
|
+
description?: string
|
|
7174
|
+
billing_interval_type: string
|
|
7175
|
+
billing_frequency: number
|
|
7176
|
+
trial_period?: number
|
|
7177
|
+
plan_length: number
|
|
7178
|
+
end_behavior: string
|
|
7179
|
+
can_pause: boolean
|
|
7180
|
+
can_resume: boolean
|
|
7181
|
+
can_cancel: boolean
|
|
7182
|
+
base_price_percentage: number | null | undefined
|
|
7183
|
+
fixed_price: {
|
|
7184
|
+
[key: string]: {
|
|
7185
|
+
amount: number
|
|
7186
|
+
includes_tax?: boolean
|
|
7187
|
+
}
|
|
7188
|
+
} | null | undefined
|
|
7096
7189
|
},
|
|
7097
7190
|
}
|
|
7098
7191
|
|
|
7099
7192
|
interface SubscriptionPlan extends Identifiable, SubscriptionPlanBase {
|
|
7100
|
-
|
|
7193
|
+
meta: {
|
|
7194
|
+
owner: string
|
|
7195
|
+
timestamps: {
|
|
7196
|
+
created_at: string
|
|
7197
|
+
updated_at: string
|
|
7198
|
+
}
|
|
7199
|
+
}
|
|
7101
7200
|
}
|
|
7102
7201
|
type SubscriptionPlanCreate = Omit<SubscriptionPlanBase, 'attributes'> & {attributes: Partial<SubscriptionPlanBase['attributes']>}
|
|
7103
|
-
type SubscriptionPlanUpdate = Omit<
|
|
7202
|
+
type SubscriptionPlanUpdate = Identifiable & Omit<SubscriptionPlanBase, 'attributes'> & {attributes: Partial<SubscriptionPlanBase['attributes']>}
|
|
7104
7203
|
|
|
7105
7204
|
/**
|
|
7106
7205
|
* Subscription Plan Endpoints
|
|
@@ -7130,6 +7229,7 @@ interface SubscriptionPlansEndpoint
|
|
|
7130
7229
|
* For custom flows, extend this interface
|
|
7131
7230
|
* DOCS: TODO: add docs when ready
|
|
7132
7231
|
*/
|
|
7232
|
+
|
|
7133
7233
|
interface SubscriptionOfferingBase {
|
|
7134
7234
|
type: string
|
|
7135
7235
|
attributes: {
|
|
@@ -7248,6 +7348,7 @@ type SubscriptionOfferingPlanMeta = {
|
|
|
7248
7348
|
|
|
7249
7349
|
type SubscriptionOfferingPlan = Omit<SubscriptionPlan, 'meta'> & SubscriptionOfferingAttachmentsRelationships & SubscriptionOfferingPlanMeta
|
|
7250
7350
|
type SubscriptionOfferingProduct = SubscriptionProduct & SubscriptionOfferingAttachmentsRelationships
|
|
7351
|
+
|
|
7251
7352
|
/**
|
|
7252
7353
|
* Subscription Offering Endpoints
|
|
7253
7354
|
* DOCS: TODO: add docs when ready
|
|
@@ -7260,14 +7361,14 @@ interface SubscriptionOfferingsEndpoint
|
|
|
7260
7361
|
SubscriptionOfferingFilter,
|
|
7261
7362
|
never,
|
|
7262
7363
|
never
|
|
7263
|
-
|
|
7364
|
+
> {
|
|
7264
7365
|
endpoint: 'offerings'
|
|
7265
7366
|
|
|
7266
7367
|
Build(body: SubscriptionOfferingBuildBody): Promise<Resource<SubscriptionOffering>>
|
|
7267
7368
|
|
|
7268
|
-
GetAttachedProducts(id: string)
|
|
7369
|
+
GetAttachedProducts(id: string): Promise<Resource<SubscriptionOfferingProduct[]>>
|
|
7269
7370
|
|
|
7270
|
-
GetAttachedPlans(id: string)
|
|
7371
|
+
GetAttachedPlans(id: string): Promise<Resource<SubscriptionOfferingPlan[]>>
|
|
7271
7372
|
|
|
7272
7373
|
AttachProducts(offeringId: string, body: SubscriptionOfferingAttachProductBody): Promise<Resource<SubscriptionProduct[]>>
|
|
7273
7374
|
|
|
@@ -7323,41 +7424,29 @@ interface OneTimePasswordTokenRequestEndpoint {
|
|
|
7323
7424
|
* DOCS: TODO: add docs when ready
|
|
7324
7425
|
*/
|
|
7325
7426
|
interface SubscriptionBase {
|
|
7326
|
-
type: "subscription"
|
|
7427
|
+
type: "subscription"
|
|
7327
7428
|
attributes: {
|
|
7328
|
-
|
|
7429
|
+
external_ref?: string
|
|
7430
|
+
account_id: string
|
|
7329
7431
|
offering: {
|
|
7330
7432
|
id: string
|
|
7331
|
-
type: "
|
|
7433
|
+
type: "subscription_offering"
|
|
7332
7434
|
attributes: {
|
|
7333
|
-
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
},
|
|
7338
|
-
relationships: {
|
|
7339
|
-
plans: {
|
|
7340
|
-
links: {
|
|
7341
|
-
related: string,
|
|
7342
|
-
self: string
|
|
7343
|
-
},
|
|
7344
|
-
data: {
|
|
7345
|
-
type: "offering-plan",
|
|
7346
|
-
id: string
|
|
7347
|
-
}
|
|
7348
|
-
}
|
|
7349
|
-
},
|
|
7435
|
+
external_ref?: string
|
|
7436
|
+
name: string
|
|
7437
|
+
description: string
|
|
7438
|
+
}
|
|
7350
7439
|
meta: {
|
|
7351
7440
|
owner: string
|
|
7441
|
+
timestamps: {
|
|
7442
|
+
updated_at: string
|
|
7443
|
+
created_at: string
|
|
7444
|
+
canceled_at: string | null
|
|
7445
|
+
}
|
|
7352
7446
|
}
|
|
7353
|
-
}
|
|
7354
|
-
plan_id: string
|
|
7355
|
-
currency: string
|
|
7356
|
-
updated_at: string,
|
|
7357
|
-
created_at: string
|
|
7358
|
-
},
|
|
7359
|
-
meta: {
|
|
7360
|
-
owner: string
|
|
7447
|
+
}
|
|
7448
|
+
plan_id: string
|
|
7449
|
+
currency: string
|
|
7361
7450
|
}
|
|
7362
7451
|
}
|
|
7363
7452
|
|
|
@@ -7371,6 +7460,13 @@ interface SubscriptionCreate {
|
|
|
7371
7460
|
}
|
|
7372
7461
|
}
|
|
7373
7462
|
|
|
7463
|
+
interface SubscriptionUpdate extends Identifiable {
|
|
7464
|
+
type: 'subscription'
|
|
7465
|
+
attributes: {
|
|
7466
|
+
plan_id: string
|
|
7467
|
+
}
|
|
7468
|
+
}
|
|
7469
|
+
|
|
7374
7470
|
interface SubscriptionInvoice extends Identifiable {
|
|
7375
7471
|
type: "subscription-invoice",
|
|
7376
7472
|
attributes: {
|
|
@@ -7401,9 +7497,42 @@ interface SubscriptionInvoice extends Identifiable {
|
|
|
7401
7497
|
}
|
|
7402
7498
|
}
|
|
7403
7499
|
|
|
7500
|
+
interface SubscriptionFilter {
|
|
7501
|
+
eq?: {
|
|
7502
|
+
account_id?: string
|
|
7503
|
+
}
|
|
7504
|
+
}
|
|
7505
|
+
|
|
7404
7506
|
|
|
7405
7507
|
interface Subscription extends Identifiable, SubscriptionBase {
|
|
7508
|
+
relationships: {
|
|
7509
|
+
subscriber: {
|
|
7510
|
+
data: {
|
|
7511
|
+
id: string
|
|
7512
|
+
type: 'subscription_subscriber'
|
|
7513
|
+
}
|
|
7514
|
+
}
|
|
7515
|
+
}
|
|
7516
|
+
meta: {
|
|
7517
|
+
owner: string
|
|
7518
|
+
status: 'active' | 'inactive'
|
|
7519
|
+
canceled: boolean
|
|
7520
|
+
paused: boolean
|
|
7521
|
+
closed: boolean
|
|
7522
|
+
timestamps: {
|
|
7523
|
+
updated_at: string
|
|
7524
|
+
created_at: string
|
|
7525
|
+
canceled_at: string | null
|
|
7526
|
+
}
|
|
7527
|
+
}
|
|
7528
|
+
}
|
|
7529
|
+
|
|
7530
|
+
type SubscriptionsInclude = 'plans'
|
|
7406
7531
|
|
|
7532
|
+
type SubscriptionsStateAction = 'cancel'| 'pause'| 'resume'
|
|
7533
|
+
|
|
7534
|
+
interface SubscriptionsIncluded {
|
|
7535
|
+
plans: SubscriptionOfferingPlan[]
|
|
7407
7536
|
}
|
|
7408
7537
|
|
|
7409
7538
|
/**
|
|
@@ -7414,14 +7543,538 @@ interface SubscriptionsEndpoint
|
|
|
7414
7543
|
extends Omit<CrudQueryableResource<
|
|
7415
7544
|
Subscription,
|
|
7416
7545
|
SubscriptionCreate,
|
|
7546
|
+
SubscriptionUpdate,
|
|
7547
|
+
SubscriptionFilter,
|
|
7417
7548
|
never,
|
|
7549
|
+
SubscriptionsInclude
|
|
7550
|
+
>, "All" | "Attributes" | "Link" > {
|
|
7551
|
+
endpoint: 'subscriptions'
|
|
7552
|
+
|
|
7553
|
+
All(token?: string): Promise<ResourcePage<Subscription, SubscriptionsIncluded>>
|
|
7554
|
+
|
|
7555
|
+
GetInvoices(id: string): Promise<Resource<SubscriptionInvoice[]>>
|
|
7556
|
+
|
|
7557
|
+
GetAttachedProducts(id: string) : Promise<Resource<SubscriptionOfferingProduct[]>>
|
|
7558
|
+
|
|
7559
|
+
GetAttachedPlans(id: string) : Promise<Resource<SubscriptionOfferingPlan[]>>
|
|
7560
|
+
|
|
7561
|
+
CreateState(id: string, action: SubscriptionsStateAction) : Promise<void>
|
|
7562
|
+
}
|
|
7563
|
+
|
|
7564
|
+
/**
|
|
7565
|
+
* Promotions Builder
|
|
7566
|
+
* Description:Promotions allow you to provide discounts to customers.
|
|
7567
|
+
* A Promotion can be automatic which is applied provided any criteria are satisfied,
|
|
7568
|
+
* or require codes, which are then used by the end user to get a discount.
|
|
7569
|
+
*/
|
|
7570
|
+
|
|
7571
|
+
|
|
7572
|
+
interface ActionLimitation {
|
|
7573
|
+
max_discount?: number
|
|
7574
|
+
max_quantity?: number
|
|
7575
|
+
items?: {
|
|
7576
|
+
max_items?: number
|
|
7577
|
+
price_strategy?: string
|
|
7578
|
+
}
|
|
7579
|
+
}
|
|
7580
|
+
|
|
7581
|
+
interface ActionCondition {
|
|
7582
|
+
strategy: string
|
|
7583
|
+
operator?: string
|
|
7584
|
+
args?: any[]
|
|
7585
|
+
children?: {
|
|
7586
|
+
strategy?: string
|
|
7587
|
+
operator?: string
|
|
7588
|
+
args?: any[]
|
|
7589
|
+
}[]
|
|
7590
|
+
}
|
|
7591
|
+
|
|
7592
|
+
interface Action {
|
|
7593
|
+
strategy: string
|
|
7594
|
+
args: any[]
|
|
7595
|
+
limitations?: ActionLimitation
|
|
7596
|
+
condition?: ActionCondition
|
|
7597
|
+
}
|
|
7598
|
+
|
|
7599
|
+
interface Condition {
|
|
7600
|
+
strategy: string
|
|
7601
|
+
operator?: string
|
|
7602
|
+
args?: any[]
|
|
7603
|
+
children?: Condition[]
|
|
7604
|
+
}
|
|
7605
|
+
|
|
7606
|
+
/**
|
|
7607
|
+
* Promotions Builder
|
|
7608
|
+
* Description:Base Promotion Type
|
|
7609
|
+
*/
|
|
7610
|
+
interface RulePromotionBase {
|
|
7611
|
+
type: 'rule_promotion'
|
|
7612
|
+
name: string
|
|
7613
|
+
description: string
|
|
7614
|
+
enabled: boolean
|
|
7615
|
+
automatic?: boolean
|
|
7616
|
+
start: string
|
|
7617
|
+
end: string
|
|
7618
|
+
rule_set: {
|
|
7619
|
+
currencies: string[]
|
|
7620
|
+
catalog_ids: string[]
|
|
7621
|
+
rules: Condition
|
|
7622
|
+
actions: Action[]
|
|
7623
|
+
}
|
|
7624
|
+
}
|
|
7625
|
+
|
|
7626
|
+
interface RulePromotionMeta {
|
|
7627
|
+
timestamps: {
|
|
7628
|
+
created_at: string
|
|
7629
|
+
updated_at: string
|
|
7630
|
+
}
|
|
7631
|
+
}
|
|
7632
|
+
|
|
7633
|
+
interface RulePromotion extends Identifiable, RulePromotionBase {
|
|
7634
|
+
meta: RulePromotionMeta
|
|
7635
|
+
}
|
|
7636
|
+
|
|
7637
|
+
interface RulePromotionCode {
|
|
7638
|
+
code: string
|
|
7639
|
+
uses?: number
|
|
7640
|
+
user?: string
|
|
7641
|
+
created_by?: string
|
|
7642
|
+
max_uses?: number
|
|
7643
|
+
meta?: RulePromotionMeta
|
|
7644
|
+
consume_unit?: 'per_application' | 'per_checkout'
|
|
7645
|
+
}
|
|
7646
|
+
|
|
7647
|
+
interface DeleteRulePromotionCodes extends ResourceList<any> {
|
|
7648
|
+
code: string
|
|
7649
|
+
}
|
|
7650
|
+
|
|
7651
|
+
interface RulePromotionsEndpoint
|
|
7652
|
+
extends CrudQueryableResource<
|
|
7653
|
+
RulePromotion,
|
|
7654
|
+
RulePromotionBase,
|
|
7655
|
+
Partial<RulePromotionBase>,
|
|
7656
|
+
never,
|
|
7657
|
+
never,
|
|
7658
|
+
never
|
|
7659
|
+
> {
|
|
7660
|
+
endpoint: 'rule-promotions'
|
|
7661
|
+
|
|
7662
|
+
Codes(promotionId: string): Promise<ResourcePage<RulePromotionCode>>
|
|
7663
|
+
|
|
7664
|
+
AddCodes(
|
|
7665
|
+
promotionId: string,
|
|
7666
|
+
codes: RulePromotionCode[]
|
|
7667
|
+
): Promise<Resource<RulePromotionBase>>
|
|
7668
|
+
|
|
7669
|
+
DeleteCode(promotionId: string, codeId: string): Promise<{}>
|
|
7670
|
+
|
|
7671
|
+
DeleteCodes(
|
|
7672
|
+
promotionId: string,
|
|
7673
|
+
codes: DeleteRulePromotionCodes[]
|
|
7674
|
+
): Promise<{}>
|
|
7675
|
+
}
|
|
7676
|
+
|
|
7677
|
+
/**
|
|
7678
|
+
* Subscription Subscribers
|
|
7679
|
+
* Description: Subscription Subscribers.
|
|
7680
|
+
* DOCS: TODO: add docs when ready
|
|
7681
|
+
*/
|
|
7682
|
+
|
|
7683
|
+
|
|
7684
|
+
/**
|
|
7685
|
+
* Core Subscription Subscriber Base Interface
|
|
7686
|
+
* For custom flows, extend this interface
|
|
7687
|
+
* DOCS: TODO: add docs when ready
|
|
7688
|
+
*/
|
|
7689
|
+
interface SubscriptionSubscriberBase {
|
|
7690
|
+
type: "subscription_subscriber"
|
|
7691
|
+
attributes: {
|
|
7692
|
+
account_id: string
|
|
7693
|
+
name: string
|
|
7694
|
+
email: string
|
|
7695
|
+
}
|
|
7696
|
+
}
|
|
7697
|
+
interface SubscriptionSubscriber extends Identifiable, SubscriptionSubscriberBase {
|
|
7698
|
+
meta: {
|
|
7699
|
+
owner: string
|
|
7700
|
+
timestamps: {
|
|
7701
|
+
created_at: string
|
|
7702
|
+
updated_at: string
|
|
7703
|
+
}
|
|
7704
|
+
}
|
|
7705
|
+
}
|
|
7706
|
+
type SubscriptionSubscriberCreate = SubscriptionSubscriberBase
|
|
7707
|
+
type SubscriptionSubscriberUpdate = Identifiable & Omit<SubscriptionSubscriberBase, 'attributes'> & {attributes: Partial<SubscriptionSubscriberBase['attributes']>}
|
|
7708
|
+
|
|
7709
|
+
/**
|
|
7710
|
+
* Subscription Subscriber Endpoints
|
|
7711
|
+
* DOCS: TODO: add docs when ready
|
|
7712
|
+
*/
|
|
7713
|
+
interface SubscriptionSubscribersEndpoint
|
|
7714
|
+
extends CrudQueryableResource<
|
|
7715
|
+
SubscriptionSubscriber,
|
|
7716
|
+
SubscriptionSubscriberCreate,
|
|
7717
|
+
SubscriptionSubscriberUpdate,
|
|
7418
7718
|
never,
|
|
7419
7719
|
never,
|
|
7420
7720
|
never
|
|
7421
|
-
|
|
7422
|
-
endpoint: '
|
|
7721
|
+
> {
|
|
7722
|
+
endpoint: 'plans'
|
|
7723
|
+
}
|
|
7423
7724
|
|
|
7424
|
-
|
|
7725
|
+
/**
|
|
7726
|
+
* Subscription Jobs
|
|
7727
|
+
* Description: Subscription Jobs.
|
|
7728
|
+
* DOCS: TODO: add docs when ready
|
|
7729
|
+
*/
|
|
7730
|
+
|
|
7731
|
+
|
|
7732
|
+
/**
|
|
7733
|
+
* Core Subscription Job Base Interface
|
|
7734
|
+
* For custom flows, extend this interface
|
|
7735
|
+
* DOCS: TODO: add docs when ready
|
|
7736
|
+
*/
|
|
7737
|
+
interface SubscriptionJobBase {
|
|
7738
|
+
type: "subscription_job",
|
|
7739
|
+
attributes: {
|
|
7740
|
+
external_ref: string,
|
|
7741
|
+
job_type: "billing-run" | "payment-run" | "tax-run"
|
|
7742
|
+
taxes?: {
|
|
7743
|
+
invoice_id: string,
|
|
7744
|
+
tax_items: [
|
|
7745
|
+
{
|
|
7746
|
+
type: "tax_item",
|
|
7747
|
+
name?: string,
|
|
7748
|
+
code?: string,
|
|
7749
|
+
rate: number,
|
|
7750
|
+
jurisdiction?: string
|
|
7751
|
+
}
|
|
7752
|
+
]
|
|
7753
|
+
}[]
|
|
7754
|
+
}
|
|
7755
|
+
}
|
|
7756
|
+
|
|
7757
|
+
interface SubscriptionJob extends Identifiable, SubscriptionJobBase {
|
|
7758
|
+
attributes: SubscriptionJobBase['attributes'] & {
|
|
7759
|
+
status: 'pending' | 'started' | 'success' | 'failed'
|
|
7760
|
+
updated_at: string
|
|
7761
|
+
created_at: string
|
|
7762
|
+
}
|
|
7763
|
+
relationships: {
|
|
7764
|
+
[key: string]: {
|
|
7765
|
+
links: {
|
|
7766
|
+
related: string,
|
|
7767
|
+
self: string
|
|
7768
|
+
},
|
|
7769
|
+
data: {
|
|
7770
|
+
type: string,
|
|
7771
|
+
id: string
|
|
7772
|
+
}
|
|
7773
|
+
}
|
|
7774
|
+
},
|
|
7775
|
+
meta: {
|
|
7776
|
+
owner: 'store' | 'organization',
|
|
7777
|
+
timestamps: {
|
|
7778
|
+
updated_at: string,
|
|
7779
|
+
created_at: string,
|
|
7780
|
+
started_at?: string,
|
|
7781
|
+
finished_at?: string
|
|
7782
|
+
}
|
|
7783
|
+
}
|
|
7784
|
+
}
|
|
7785
|
+
|
|
7786
|
+
type SubscriptionJobCreate = SubscriptionJobBase
|
|
7787
|
+
|
|
7788
|
+
/**
|
|
7789
|
+
* Subscription Job Endpoints
|
|
7790
|
+
* DOCS: TODO: add docs when ready
|
|
7791
|
+
*/
|
|
7792
|
+
interface SubscriptionJobsEndpoint
|
|
7793
|
+
extends CrudQueryableResource<
|
|
7794
|
+
SubscriptionJob,
|
|
7795
|
+
SubscriptionJobCreate,
|
|
7796
|
+
never,
|
|
7797
|
+
never,
|
|
7798
|
+
never,
|
|
7799
|
+
never
|
|
7800
|
+
> {
|
|
7801
|
+
endpoint: 'jobs'
|
|
7802
|
+
}
|
|
7803
|
+
|
|
7804
|
+
/**
|
|
7805
|
+
* Subscription Schedules
|
|
7806
|
+
* Description: Subscription Schedules.
|
|
7807
|
+
* DOCS: TODO: add docs when ready
|
|
7808
|
+
*/
|
|
7809
|
+
|
|
7810
|
+
|
|
7811
|
+
/**
|
|
7812
|
+
* Core Subscription Schedule Base Interface
|
|
7813
|
+
* For custom flows, extend this interface
|
|
7814
|
+
* DOCS: TODO: add docs when ready
|
|
7815
|
+
*/
|
|
7816
|
+
interface SubscriptionScheduleBase {
|
|
7817
|
+
type: 'subscription_schedule'
|
|
7818
|
+
attributes: {
|
|
7819
|
+
external_ref?: string | null
|
|
7820
|
+
name?: string
|
|
7821
|
+
specification: string
|
|
7822
|
+
location: string
|
|
7823
|
+
job: {
|
|
7824
|
+
job_type: SubscriptionJob['attributes']['job_type']
|
|
7825
|
+
}
|
|
7826
|
+
}
|
|
7827
|
+
}
|
|
7828
|
+
|
|
7829
|
+
interface SubscriptionSchedule extends Identifiable, SubscriptionScheduleBase {
|
|
7830
|
+
meta: {
|
|
7831
|
+
scheduled_for: string
|
|
7832
|
+
owner: 'store' | 'organization'
|
|
7833
|
+
timestamps: {
|
|
7834
|
+
updated_at: string
|
|
7835
|
+
created_at: string
|
|
7836
|
+
}
|
|
7837
|
+
}
|
|
7838
|
+
}
|
|
7839
|
+
|
|
7840
|
+
type SubscriptionScheduleCreate = SubscriptionScheduleBase
|
|
7841
|
+
type SubscriptionScheduleUpdate = Identifiable & Omit<SubscriptionScheduleBase, 'attributes'> & {attributes: Partial<SubscriptionSchedule['attributes']>}
|
|
7842
|
+
|
|
7843
|
+
/**
|
|
7844
|
+
* Subscription Schedule Endpoints
|
|
7845
|
+
* DOCS: TODO: add docs when ready
|
|
7846
|
+
*/
|
|
7847
|
+
interface SubscriptionSchedulesEndpoint
|
|
7848
|
+
extends CrudQueryableResource<
|
|
7849
|
+
SubscriptionSchedule,
|
|
7850
|
+
SubscriptionScheduleCreate,
|
|
7851
|
+
SubscriptionScheduleUpdate,
|
|
7852
|
+
never,
|
|
7853
|
+
never,
|
|
7854
|
+
never
|
|
7855
|
+
> {
|
|
7856
|
+
endpoint: 'schedules'
|
|
7857
|
+
}
|
|
7858
|
+
|
|
7859
|
+
/**
|
|
7860
|
+
* Commerce Extensions
|
|
7861
|
+
* Description: Commerce Extensions allows for the creation of Custom APIs that can manage large, private data sets efficiently, offering both simple and complex multidimensional filtering options.
|
|
7862
|
+
* DOCS: https://elasticpath.dev/docs/commerce-cloud/commerce-extensions/overview
|
|
7863
|
+
*/
|
|
7864
|
+
|
|
7865
|
+
|
|
7866
|
+
|
|
7867
|
+
interface CustomApiBase {
|
|
7868
|
+
name: string
|
|
7869
|
+
description: string
|
|
7870
|
+
api_type: string
|
|
7871
|
+
type: string
|
|
7872
|
+
slug: string
|
|
7873
|
+
}
|
|
7874
|
+
|
|
7875
|
+
interface CustomApi extends Identifiable, CustomApiBase {
|
|
7876
|
+
links: {
|
|
7877
|
+
self: string
|
|
7878
|
+
}
|
|
7879
|
+
meta: {
|
|
7880
|
+
timestamps: {
|
|
7881
|
+
created_at: string
|
|
7882
|
+
updated_at: string
|
|
7883
|
+
}
|
|
7884
|
+
}
|
|
7885
|
+
}
|
|
7886
|
+
|
|
7887
|
+
type CustomFieldValidation =
|
|
7888
|
+
| { string: { min_length?: number, max_length?: number, regex?: string, allow_null_values?: boolean } }
|
|
7889
|
+
| { integer: { min_value?: number, max_value?: number, allow_null_values?: boolean } }
|
|
7890
|
+
| { float: { min_value?: number, max_value?: number, allow_null_values?: boolean } }
|
|
7891
|
+
| { boolean: { allow_null_values?: boolean } }
|
|
7892
|
+
|
|
7893
|
+
interface CustomApiFieldBase {
|
|
7894
|
+
name: string
|
|
7895
|
+
description: string
|
|
7896
|
+
field_type: string
|
|
7897
|
+
type: string
|
|
7898
|
+
slug: string
|
|
7899
|
+
validation?: CustomFieldValidation
|
|
7900
|
+
}
|
|
7901
|
+
|
|
7902
|
+
interface CustomApiField extends Identifiable, CustomApiFieldBase {
|
|
7903
|
+
links: {
|
|
7904
|
+
self: string
|
|
7905
|
+
}
|
|
7906
|
+
meta: {
|
|
7907
|
+
timestamps: {
|
|
7908
|
+
created_at: string
|
|
7909
|
+
updated_at: string
|
|
7910
|
+
}
|
|
7911
|
+
}
|
|
7912
|
+
}
|
|
7913
|
+
|
|
7914
|
+
interface CustomApisEndpoint {
|
|
7915
|
+
endpoint: 'settings/extensions/custom-apis'
|
|
7916
|
+
entriesEndpoint: 'extensions'
|
|
7917
|
+
|
|
7918
|
+
All(token?: string): Promise<ResourcePage<CustomApi>>
|
|
7919
|
+
|
|
7920
|
+
Get(id: string, token?: string): Promise<Resource<CustomApi>>
|
|
7921
|
+
|
|
7922
|
+
Filter(filter: any): CustomApisEndpoint
|
|
7923
|
+
|
|
7924
|
+
Limit(value: number): CustomApisEndpoint
|
|
7925
|
+
|
|
7926
|
+
Offset(value: number): CustomApisEndpoint
|
|
7927
|
+
|
|
7928
|
+
Sort(value: string): CustomApisEndpoint
|
|
7929
|
+
|
|
7930
|
+
Create(body: CustomApiBase): Promise<Resource<CustomApi>>
|
|
7931
|
+
|
|
7932
|
+
Update(
|
|
7933
|
+
id: string,
|
|
7934
|
+
body: Partial<CustomApiBase>,
|
|
7935
|
+
token?: string
|
|
7936
|
+
): Promise<Resource<CustomApi>>
|
|
7937
|
+
|
|
7938
|
+
Delete(id: string): Promise<{}>
|
|
7939
|
+
|
|
7940
|
+
GetFields<T = any>(customApiId: string): Promise<T>
|
|
7941
|
+
|
|
7942
|
+
GetField<T = any>(customApiId: string, customApiFieldId:string): Promise<T>
|
|
7943
|
+
|
|
7944
|
+
CreateField<RequestBody = CustomApiFieldBase, ResponseBody = CustomApiField>(
|
|
7945
|
+
customApiId: string,
|
|
7946
|
+
body: RequestBody
|
|
7947
|
+
): Promise<ResponseBody>
|
|
7948
|
+
|
|
7949
|
+
UpdateField<RequestBody = CustomApiFieldBase, ResponseBody = CustomApiField>(
|
|
7950
|
+
customApiId: string,
|
|
7951
|
+
customApiFieldId: string,
|
|
7952
|
+
body: RequestBody
|
|
7953
|
+
): Promise<ResponseBody>
|
|
7954
|
+
|
|
7955
|
+
DeleteField<T = any>(customApiId: string, customApiFieldId: string): Promise<T>
|
|
7956
|
+
|
|
7957
|
+
GetEntries<T = any>(customApiId: string): Promise<T>
|
|
7958
|
+
|
|
7959
|
+
GetEntry<T = any>(customApiId: string, customApiEntryId: string): Promise<T>
|
|
7960
|
+
|
|
7961
|
+
CreateEntry<RequestBody = any, ResponseBody = any>(
|
|
7962
|
+
customApiId: string,
|
|
7963
|
+
body: RequestBody
|
|
7964
|
+
): Promise<ResponseBody>
|
|
7965
|
+
|
|
7966
|
+
UpdateEntry<RequestBody = any, ResponseBody = any>(
|
|
7967
|
+
customApiId: string,
|
|
7968
|
+
customApiEntryId: string,
|
|
7969
|
+
body: RequestBody
|
|
7970
|
+
): Promise<ResponseBody>
|
|
7971
|
+
|
|
7972
|
+
DeleteEntry<T = any>(customApiId: string, customApiEntryId: string): Promise<T>
|
|
7973
|
+
|
|
7974
|
+
}
|
|
7975
|
+
|
|
7976
|
+
/**
|
|
7977
|
+
* Subscription Dunning Rules
|
|
7978
|
+
* Description: Subscription Dunning Rules.
|
|
7979
|
+
* DOCS: TODO: add docs when ready
|
|
7980
|
+
*/
|
|
7981
|
+
|
|
7982
|
+
|
|
7983
|
+
/**
|
|
7984
|
+
* Core Subscription Dunning Rules Base Interface
|
|
7985
|
+
* For custom flows, extend this interface
|
|
7986
|
+
* DOCS: TODO: add docs when ready
|
|
7987
|
+
*/
|
|
7988
|
+
interface SubscriptionDunningRulesBase {
|
|
7989
|
+
type: 'subscription_dunning_rule'
|
|
7990
|
+
attributes: {
|
|
7991
|
+
payment_retry_type: 'fixed' | 'backoff' | 'tiered'
|
|
7992
|
+
payment_retry_interval?: number
|
|
7993
|
+
payment_retry_unit?: 'day' | 'week'
|
|
7994
|
+
payment_retry_multiplier?: number
|
|
7995
|
+
payment_retries_limit: number
|
|
7996
|
+
action: 'none' | 'pause' | 'close'
|
|
7997
|
+
default?: boolean
|
|
7998
|
+
}
|
|
7999
|
+
}
|
|
8000
|
+
|
|
8001
|
+
interface SubscriptionDunningRules extends Identifiable, SubscriptionDunningRulesBase {
|
|
8002
|
+
meta: {
|
|
8003
|
+
owner: 'store' | 'organization'
|
|
8004
|
+
timestamps: {
|
|
8005
|
+
updated_at: string
|
|
8006
|
+
created_at: string
|
|
8007
|
+
}
|
|
8008
|
+
}
|
|
8009
|
+
}
|
|
8010
|
+
|
|
8011
|
+
type SubscriptionDunningRulesCreate = SubscriptionDunningRulesBase
|
|
8012
|
+
type SubscriptionDunningRulesUpdate = Identifiable & Omit<SubscriptionDunningRulesBase, 'attributes'> & {attributes: Partial<SubscriptionDunningRules['attributes']>}
|
|
8013
|
+
|
|
8014
|
+
/**
|
|
8015
|
+
* Subscription Dunning Rules Endpoints
|
|
8016
|
+
* DOCS: TODO: add docs when ready
|
|
8017
|
+
*/
|
|
8018
|
+
interface SubscriptionDunningRulesEndpoint
|
|
8019
|
+
extends CrudQueryableResource<
|
|
8020
|
+
SubscriptionDunningRules,
|
|
8021
|
+
SubscriptionDunningRulesCreate,
|
|
8022
|
+
SubscriptionDunningRulesUpdate,
|
|
8023
|
+
never,
|
|
8024
|
+
never,
|
|
8025
|
+
never
|
|
8026
|
+
> {
|
|
8027
|
+
endpoint: 'dunning-rules'
|
|
8028
|
+
}
|
|
8029
|
+
|
|
8030
|
+
/**
|
|
8031
|
+
* Subscription Proration Policies
|
|
8032
|
+
* Description: Subscription Proration Policies.
|
|
8033
|
+
* DOCS: TODO: add docs when ready
|
|
8034
|
+
*/
|
|
8035
|
+
|
|
8036
|
+
|
|
8037
|
+
/**
|
|
8038
|
+
* Core Subscription Proration Policies Base Interface
|
|
8039
|
+
* For custom flows, extend this interface
|
|
8040
|
+
* DOCS: TODO: add docs when ready
|
|
8041
|
+
*/
|
|
8042
|
+
interface SubscriptionProrationPolicyBase {
|
|
8043
|
+
type: 'subscription_proration_policy'
|
|
8044
|
+
attributes: {
|
|
8045
|
+
name: string
|
|
8046
|
+
rounding: 'up' | 'down' | 'nearest'
|
|
8047
|
+
external_ref?: string
|
|
8048
|
+
}
|
|
8049
|
+
}
|
|
8050
|
+
|
|
8051
|
+
interface SubscriptionProrationPolicy extends Identifiable, SubscriptionProrationPolicyBase {
|
|
8052
|
+
meta: {
|
|
8053
|
+
owner: 'store' | 'organization'
|
|
8054
|
+
timestamps: {
|
|
8055
|
+
updated_at: string
|
|
8056
|
+
created_at: string
|
|
8057
|
+
}
|
|
8058
|
+
}
|
|
8059
|
+
}
|
|
8060
|
+
|
|
8061
|
+
type SubscriptionProrationPolicyCreate = SubscriptionProrationPolicyBase
|
|
8062
|
+
type SubscriptionProrationPolicyUpdate = Identifiable & Omit<SubscriptionProrationPolicyBase, 'attributes'> & {attributes: Partial<SubscriptionProrationPolicy['attributes']>}
|
|
8063
|
+
|
|
8064
|
+
/**
|
|
8065
|
+
* Subscription Proration Policies Endpoints
|
|
8066
|
+
* DOCS: TODO: add docs when ready
|
|
8067
|
+
*/
|
|
8068
|
+
interface SubscriptionProrationPoliciesEndpoint
|
|
8069
|
+
extends CrudQueryableResource<
|
|
8070
|
+
SubscriptionProrationPolicy,
|
|
8071
|
+
SubscriptionProrationPolicyCreate,
|
|
8072
|
+
SubscriptionProrationPolicyUpdate,
|
|
8073
|
+
never,
|
|
8074
|
+
never,
|
|
8075
|
+
never
|
|
8076
|
+
> {
|
|
8077
|
+
endpoint: 'proration-policies'
|
|
7425
8078
|
}
|
|
7426
8079
|
|
|
7427
8080
|
// Type definitions for @elasticpath/js-sdk
|
|
@@ -7484,6 +8137,13 @@ declare class ElasticPath {
|
|
|
7484
8137
|
SubscriptionOfferings: SubscriptionOfferingsEndpoint
|
|
7485
8138
|
OneTimePasswordTokenRequest: OneTimePasswordTokenRequestEndpoint
|
|
7486
8139
|
Subscriptions: SubscriptionsEndpoint
|
|
8140
|
+
RulePromotions : RulePromotionsEndpoint
|
|
8141
|
+
SubscriptionSubscribers : SubscriptionSubscribersEndpoint
|
|
8142
|
+
SubscriptionJobs : SubscriptionJobsEndpoint
|
|
8143
|
+
SubscriptionSchedules: SubscriptionSchedulesEndpoint
|
|
8144
|
+
CustomApis: CustomApisEndpoint
|
|
8145
|
+
SubscriptionDunningRules: SubscriptionDunningRulesEndpoint
|
|
8146
|
+
SubscriptionProrationPolicies: SubscriptionProrationPoliciesEndpoint
|
|
7487
8147
|
|
|
7488
8148
|
Cart(id?: string): CartEndpoint // This optional cart id is super worrying when using the SDK in a node server :/
|
|
7489
8149
|
constructor(config: Config)
|
|
@@ -7502,4 +8162,4 @@ declare namespace elasticpath {
|
|
|
7502
8162
|
}
|
|
7503
8163
|
}
|
|
7504
8164
|
|
|
7505
|
-
export { Account, AccountAddress, AccountAddressBase, AccountAddressEdit, AccountAddressesEndpoint, AccountAuthenticationSettings, AccountAuthenticationSettingsBase, AccountAuthenticationSettingsEndpoint, AccountBase, AccountEndpoint, AccountFilter, AccountManagementAuthenticationTokenBody, AccountMember, AccountMemberBase, AccountMemberFilter, AccountMembersEndpoint, AccountMembership, AccountMembershipCreateBody, AccountMembershipOnAccountMember, AccountMembershipSettings, AccountMembershipSettingsBase, AccountMembershipSettingsEndpoint, AccountMembershipsEndpoint, AccountMembershipsFilter, AccountMembershipsInclude, AccountMembershipsIncludeAccounts, AccountMembershipsIncluded, AccountMembershipsIncludedAccounts, AccountMembershipsOnAccountMember, AccountMembershipsResponse, AccountTokenBase, AccountUpdateBody, Address, AddressBase, AdyenPayment, AndCondition, AnonymizeOrder, AnonymizeOrderResponse, ApplicationKey, ApplicationKeyBase, ApplicationKeyResponse, ApplicationKeysEndpoint, Attribute, Attributes, AttributesMeta, AuthenticateResponseBody, AuthenticationRealmEndpoint, AuthenticationSettings, AuthenticationSettingsBase, AuthenticationSettingsEndpoint, AuthorizeNetPayment, AuthorizePaymentMethod, BraintreePayment, Brand, BrandBase, BrandEndpoint, BrandFilter, BuildChildProductsJob, BuildRules, BuilderModifier, BulkAddOptions, BulkCustomDiscountOptions, BundleDiscountSchema, BundleGiftSchema, CapturePaymentMethod, CardConnectPayment, Cart, CartAdditionalHeaders, CartCustomDiscount, CartEndpoint, CartInclude, CartIncluded, CartItem, CartItemBase, CartItemObject, CartItemsResponse, CartSettings, CartShippingGroupBase, CartTaxItemObject, Catalog, CatalogBase, CatalogFilter, CatalogReleaseProductFilter, CatalogReleaseProductFilterAttributes, CatalogUpdateBody, CatalogsEndpoint, CatalogsNodesEndpoint, CatalogsProductVariation, CatalogsProductsEndpoint, CatalogsReleasesEndpoint, CatalogsRulesEndpoint, Category, CategoryBase, CategoryEndpoint, CategoryFilter, CheckoutCustomer, CheckoutCustomerObject, CodeFileHref, Collection, CollectionBase, CollectionEndpoint, CollectionFilter, Conditions, Config, ConfigOptions, ConfirmPaymentBody, ConfirmPaymentBodyWithOptions, ConfirmPaymentResponse, CreateCartObject, CreateChildrenSortOrderBody, CrudQueryableResource, Currency, CurrencyAmount, CurrencyBase, CurrencyEndpoint, CurrencyPercentage, CustomAuthenticatorResponseBody, CustomDiscount, CustomDiscountResponse, CustomInputs, CustomInputsValidationRules, Customer, CustomerAddress, CustomerAddressBase, CustomerAddressEdit, CustomerAddressesEndpoint, CustomerBase, CustomerFilter, CustomerInclude, CustomerToken, CustomersEndpoint, CyberSourcePayment, DataEntriesEndpoint, DataEntryRecord, DeletePromotionCodesBodyItem, DuplicateHierarchyBody, DuplicateHierarchyJob, ElasticPath, ElasticPathStripePayment, ErasureRequestRecord, ErasureRequestsEndpoint, Exclude$1 as Exclude, Extensions, Field, FieldBase, FieldsEndpoint, File, FileBase, FileEndpoint, FileFilter, FileHref, FixedDiscountSchema, Flow, FlowBase, FlowEndpoint, FlowFilter, FormattedPrice, Gateway, GatewayBase, GatewaysEndpoint, GrantType, HierarchiesEndpoint, HierarchiesShopperCatalogEndpoint, Hierarchy, HierarchyBase, HierarchyFilter, HttpVerbs, Identifiable, Integration, IntegrationBase, IntegrationEndpoint, IntegrationFilter, IntegrationJob, IntegrationLog, IntegrationLogMeta, IntegrationLogsResponse, Inventory, InventoryActionTypes, InventoryBase, InventoryEndpoint, InventoryResponse, InvoicingResult, ItemFixedDiscountSchema, ItemPercentDiscountSchema, ItemTaxObject, ItemTaxObjectResponse, Job, JobBase, JobEndpoint, LocalStorageFactory, Locales, LogIntegration, ManualPayment, MatrixObject, MemoryStorageFactory, MerchantRealmMappings, MerchantRealmMappingsEndpoint, MergeCartOptions, MetricsBase, MetricsEndpoint, MetricsQuery, Modifier, ModifierResponse, ModifierType, ModifierTypeObj, Node, NodeBase, NodeBaseResponse, NodeFilter, NodeProduct, NodeProductResponse, NodeRelationship, NodeRelationshipBase, NodeRelationshipParent, NodeRelationshipsEndpoint, NodesEndpoint, NodesResponse, NodesShopperCatalogEndpoint, OidcProfileEndpoint, OnboardingLinkResponse, OneTimePasswordTokenRequestBody, OneTimePasswordTokenRequestEndpoint, Option, OptionResponse, Order, OrderAddressBase, OrderBase, OrderBillingAddress, OrderFilter, OrderInclude, OrderIncluded, OrderItem, OrderItemBase, OrderResponse, OrderShippingAddress, OrderSort, OrderSortAscend, OrderSortDescend, OrdersEndpoint, PCMVariation, PCMVariationBase, PCMVariationMetaOption, PCMVariationsEndpoint, PartialPcmProductBase, PasswordProfile, PasswordProfileBody, PasswordProfileEndpoint, PasswordProfileListItem, PasswordProfileResponse, PayPalExpressCheckoutPayment, PaymentMethod, PaymentRequestBody, PcmFileRelationship, PcmFileRelationshipEndpoint, PcmJob, PcmJobBase, PcmJobError, PcmJobsEndpoint, PcmMainImageRelationship, PcmMainImageRelationshipEndpoint, PcmProduct, PcmProductAttachmentBody, PcmProductAttachmentResponse, PcmProductBase, PcmProductFilter, PcmProductInclude, PcmProductRelationships, PcmProductResponse, PcmProductUpdateBody, PcmProductsEndpoint, PcmProductsResponse, PcmTemplateRelationship, PcmTemplateRelationshipEndpoint, PcmVariationsRelationshipResource, PcmVariationsRelationships, PcmVariationsRelationshipsEndpoint, PercentDiscountSchema, PersonalDataEndpoint, PersonalDataRecord, Price, PriceBook, PriceBookBase, PriceBookFilter, PriceBookPrice, PriceBookPriceBase, PriceBookPriceModifier, PriceBookPriceModifierBase, PriceBookPriceModifierEndpoint, PriceBookPricesCreateBody, PriceBookPricesEndpoint, PriceBookPricesUpdateBody, PriceBooksEndpoint, PriceBooksUpdateBody, PricesFilter, Product, ProductBase, ProductComponentOption, ProductComponents, ProductFileRelationshipResource, ProductFilter, ProductResponse, ProductTemplateRelationshipResource, ProductsEndpoint, Profile, ProfileBase, ProfileCreateUpdateBody, ProfileListItem, ProfileResponse, ProfileResponseBody, Promotion, PromotionAttribute, PromotionAttributeValues, PromotionBase, PromotionCode, PromotionCodesJob,
|
|
8165
|
+
export { Account, AccountAddress, AccountAddressBase, AccountAddressEdit, AccountAddressesEndpoint, AccountAssociationData, AccountAssociationResponse, AccountAuthenticationSettings, AccountAuthenticationSettingsBase, AccountAuthenticationSettingsEndpoint, AccountBase, AccountEndpoint, AccountFilter, AccountManagementAuthenticationTokenBody, AccountMember, AccountMemberBase, AccountMemberFilter, AccountMembersEndpoint, AccountMembership, AccountMembershipCreateBody, AccountMembershipOnAccountMember, AccountMembershipSettings, AccountMembershipSettingsBase, AccountMembershipSettingsEndpoint, AccountMembershipsEndpoint, AccountMembershipsFilter, AccountMembershipsInclude, AccountMembershipsIncludeAccounts, AccountMembershipsIncluded, AccountMembershipsIncludedAccounts, AccountMembershipsOnAccountMember, AccountMembershipsResponse, AccountTokenBase, AccountUpdateBody, Action, ActionCondition, ActionLimitation, Address, AddressBase, AdyenPayment, AndCondition, AnonymizeOrder, AnonymizeOrderResponse, ApplicationKey, ApplicationKeyBase, ApplicationKeyResponse, ApplicationKeysEndpoint, Attribute, Attributes, AttributesMeta, AuthenticateResponseBody, AuthenticationRealmEndpoint, AuthenticationSettings, AuthenticationSettingsBase, AuthenticationSettingsEndpoint, AuthorizeNetPayment, AuthorizePaymentMethod, BraintreePayment, Brand, BrandBase, BrandEndpoint, BrandFilter, BuildChildProductsJob, BuildRules, BuilderModifier, BulkAddOptions, BulkCustomDiscountOptions, BundleDiscountSchema, BundleGiftSchema, CapturePaymentMethod, CardConnectPayment, Cart, CartAdditionalHeaders, CartCustomDiscount, CartEndpoint, CartInclude, CartIncluded, CartItem, CartItemBase, CartItemObject, CartItemsResponse, CartSettings, CartShippingGroupBase, CartTaxItemObject, Catalog, CatalogBase, CatalogFilter, CatalogReleaseProductFilter, CatalogReleaseProductFilterAttributes, CatalogUpdateBody, CatalogsEndpoint, CatalogsNodesEndpoint, CatalogsProductVariation, CatalogsProductsEndpoint, CatalogsReleasesEndpoint, CatalogsRulesEndpoint, Category, CategoryBase, CategoryEndpoint, CategoryFilter, CheckoutCustomer, CheckoutCustomerObject, CodeFileHref, Collection, CollectionBase, CollectionEndpoint, CollectionFilter, Condition, Conditions, Config, ConfigOptions, ConfirmPaymentBody, ConfirmPaymentBodyWithOptions, ConfirmPaymentResponse, CreateCartObject, CreateChildrenSortOrderBody, CrudQueryableResource, Currency, CurrencyAmount, CurrencyBase, CurrencyEndpoint, CurrencyPercentage, CustomApi, CustomApiBase, CustomApiField, CustomApiFieldBase, CustomApisEndpoint, CustomAuthenticatorResponseBody, CustomDiscount, CustomDiscountResponse, CustomFieldValidation, CustomInputs, CustomInputsValidationRules, Customer, CustomerAddress, CustomerAddressBase, CustomerAddressEdit, CustomerAddressesEndpoint, CustomerBase, CustomerFilter, CustomerInclude, CustomerToken, CustomersEndpoint, CyberSourcePayment, DataEntriesEndpoint, DataEntryRecord, DeletePromotionCodesBodyItem, DeleteRulePromotionCodes, DuplicateHierarchyBody, DuplicateHierarchyJob, ElasticPath, ElasticPathStripePayment, ErasureRequestRecord, ErasureRequestsEndpoint, Exclude$1 as Exclude, Extensions, Field, FieldBase, FieldsEndpoint, File, FileBase, FileEndpoint, FileFilter, FileHref, FixedDiscountSchema, Flow, FlowBase, FlowEndpoint, FlowFilter, FormattedPrice, Gateway, GatewayBase, GatewaysEndpoint, GrantType, HierarchiesEndpoint, HierarchiesShopperCatalogEndpoint, Hierarchy, HierarchyBase, HierarchyFilter, HttpVerbs, Identifiable, Integration, IntegrationBase, IntegrationEndpoint, IntegrationFilter, IntegrationJob, IntegrationLog, IntegrationLogMeta, IntegrationLogsResponse, Inventory, InventoryActionTypes, InventoryBase, InventoryEndpoint, InventoryResponse, InvoicingResult, ItemFixedDiscountSchema, ItemPercentDiscountSchema, ItemTaxObject, ItemTaxObjectResponse, Job, JobBase, JobEndpoint, LocalStorageFactory, Locales, LogIntegration, ManualPayment, MatrixObject, MemoryStorageFactory, MerchantRealmMappings, MerchantRealmMappingsEndpoint, MergeCartOptions, MetricsBase, MetricsEndpoint, MetricsQuery, Modifier, ModifierResponse, ModifierType, ModifierTypeObj, Node, NodeBase, NodeBaseResponse, NodeFilter, NodeProduct, NodeProductResponse, NodeRelationship, NodeRelationshipBase, NodeRelationshipParent, NodeRelationshipsEndpoint, NodesEndpoint, NodesResponse, NodesShopperCatalogEndpoint, OidcProfileEndpoint, OnboardingLinkResponse, OneTimePasswordTokenRequestBody, OneTimePasswordTokenRequestEndpoint, Option, OptionResponse, Order, OrderAddressBase, OrderBase, OrderBillingAddress, OrderFilter, OrderInclude, OrderIncluded, OrderItem, OrderItemBase, OrderResponse, OrderShippingAddress, OrderSort, OrderSortAscend, OrderSortDescend, OrdersEndpoint, PCMVariation, PCMVariationBase, PCMVariationMetaOption, PCMVariationOption, PCMVariationOptionBase, PCMVariationsEndpoint, PartialPcmProductBase, PasswordProfile, PasswordProfileBody, PasswordProfileEndpoint, PasswordProfileListItem, PasswordProfileResponse, PayPalExpressCheckoutPayment, PaymentMethod, PaymentRequestBody, PcmFileRelationship, PcmFileRelationshipEndpoint, PcmJob, PcmJobBase, PcmJobError, PcmJobsEndpoint, PcmMainImageRelationship, PcmMainImageRelationshipEndpoint, PcmProduct, PcmProductAttachmentBody, PcmProductAttachmentResponse, PcmProductBase, PcmProductFilter, PcmProductInclude, PcmProductRelationships, PcmProductResponse, PcmProductUpdateBody, PcmProductsEndpoint, PcmProductsResponse, PcmTemplateRelationship, PcmTemplateRelationshipEndpoint, PcmVariationsRelationshipResource, PcmVariationsRelationships, PcmVariationsRelationshipsEndpoint, PercentDiscountSchema, PersonalDataEndpoint, PersonalDataRecord, Price, PriceBook, PriceBookBase, PriceBookFilter, PriceBookPrice, PriceBookPriceBase, PriceBookPriceModifier, PriceBookPriceModifierBase, PriceBookPriceModifierEndpoint, PriceBookPricesCreateBody, PriceBookPricesEndpoint, PriceBookPricesUpdateBody, PriceBooksEndpoint, PriceBooksUpdateBody, PricesFilter, Product, ProductBase, ProductComponentOption, ProductComponents, ProductFileRelationshipResource, ProductFilter, ProductResponse, ProductTemplateRelationshipResource, ProductsEndpoint, Profile, ProfileBase, ProfileCreateUpdateBody, ProfileListItem, ProfileResponse, ProfileResponseBody, Promotion, PromotionAttribute, PromotionAttributeValues, PromotionBase, PromotionCode, PromotionCodesJob, PromotionFilter, PromotionJob, PromotionMeta, PromotionSettings, PromotionsEndpoint, PurchasePaymentMethod, QueryableResource, Realm, RealmBase, RealmCreateBody, RealmUpdateBody, RefundPaymentMethod, Relationship, RelationshipToMany, RelationshipToOne, ReleaseBase, ReleaseBodyBase, ReleaseResponse, RequestFactory, Requirements, Resource, ResourceIncluded, ResourceList, ResourcePage, Rule, RuleBase, RuleFilter, RulePromotion, RulePromotionBase, RulePromotionCode, RulePromotionMeta, RulePromotionsEndpoint, RuleUpdateBody, Settings, SettingsEndpoint, ShippingGroupBase, ShippingGroupResponse, ShippingIncluded, ShopperCatalogEndpoint, ShopperCatalogProductsEndpoint, ShopperCatalogReleaseBase, ShopperCatalogResource, ShopperCatalogResourceList, ShopperCatalogResourcePage, StorageFactory, StripeConnectPayment, StripeIntentsPayment, StripePayment, StripePaymentBase, StripePaymentOptionBase, Subscription, SubscriptionBase, SubscriptionCreate, SubscriptionDunningRules, SubscriptionDunningRulesBase, SubscriptionDunningRulesCreate, SubscriptionDunningRulesEndpoint, SubscriptionDunningRulesUpdate, SubscriptionFilter, SubscriptionInvoice, SubscriptionJob, SubscriptionJobBase, SubscriptionJobCreate, SubscriptionJobsEndpoint, SubscriptionOffering, SubscriptionOfferingAttachPlanBody, SubscriptionOfferingAttachProductBody, SubscriptionOfferingAttachProrationPolicyBody, SubscriptionOfferingBase, SubscriptionOfferingBuildBody, SubscriptionOfferingBuildProduct, SubscriptionOfferingCreate, SubscriptionOfferingFilter, SubscriptionOfferingPlan, SubscriptionOfferingProduct, SubscriptionOfferingRelationships, SubscriptionOfferingUpdate, SubscriptionOfferingsEndpoint, SubscriptionPlan, SubscriptionPlanBase, SubscriptionPlanCreate, SubscriptionPlanUpdate, SubscriptionPlansEndpoint, SubscriptionProduct, SubscriptionProductBase, SubscriptionProductCreate, SubscriptionProductUpdate, SubscriptionProductsEndpoint, SubscriptionProrationPoliciesEndpoint, SubscriptionProrationPolicy, SubscriptionProrationPolicyBase, SubscriptionProrationPolicyCreate, SubscriptionProrationPolicyUpdate, SubscriptionSchedule, SubscriptionScheduleBase, SubscriptionScheduleCreate, SubscriptionScheduleUpdate, SubscriptionSchedulesEndpoint, SubscriptionSettings, SubscriptionSubscriber, SubscriptionSubscriberBase, SubscriptionSubscriberCreate, SubscriptionSubscriberUpdate, SubscriptionSubscribersEndpoint, SubscriptionUpdate, SubscriptionsEndpoint, SubscriptionsInclude, SubscriptionsIncluded, SubscriptionsStateAction, Subset, TargetCondition, Transaction, TransactionBase, TransactionEndpoint, TransactionsResponse, TtlSettings, UpdateNodeBody, UpdateVariationBody, UpdateVariationOptionBody, UserAuthenticationInfo, UserAuthenticationInfoBody, UserAuthenticationInfoEndpoint, UserAuthenticationInfoFilter, UserAuthenticationInfoResponse, UserAuthenticationPasswordProfile, UserAuthenticationPasswordProfileBody, UserAuthenticationPasswordProfileEndpoint, UserAuthenticationPasswordProfileResponse, UserAuthenticationPasswordProfileUpdateBody, Validation, Variation, VariationBase, VariationsBuilderModifier, VariationsEndpoint, VariationsModifier, VariationsModifierResponse, VariationsModifierType, VariationsModifierTypeObj, XforAmountSchema, XforYSchema, createJob, elasticpath, gateway };
|