@epcc-sdk/sdks-shopper 0.0.4 → 0.0.5
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/client/@tanstack/react-query.gen.d.ts +63 -1
- package/dist/client/@tanstack/react-query.gen.js +41 -1
- package/dist/client/sdk.gen.d.ts +24 -9
- package/dist/client/sdk.gen.js +26 -0
- package/dist/client/transformers.gen.d.ts +2 -1
- package/dist/client/transformers.gen.js +16 -0
- package/dist/client/types.gen.d.ts +429 -150
- package/package.json +3 -3
|
@@ -3197,13 +3197,13 @@ export type SubscriptionJobType = "subscription_job";
|
|
|
3197
3197
|
export type SubscriptionImportType = "subscription_import";
|
|
3198
3198
|
export type SubscriptionImportErrorType = "subscription_import_error";
|
|
3199
3199
|
export type SubscriptionImportError = {
|
|
3200
|
-
id:
|
|
3200
|
+
id: SubscriptionsUuid;
|
|
3201
3201
|
type: SubscriptionImportErrorType;
|
|
3202
3202
|
meta: SubscriptionImportErrorMeta;
|
|
3203
3203
|
};
|
|
3204
3204
|
export type SubscriptionImportErrorMeta = {
|
|
3205
3205
|
owner: string;
|
|
3206
|
-
timestamps:
|
|
3206
|
+
timestamps: SubscriptionsTimestamps;
|
|
3207
3207
|
error: string;
|
|
3208
3208
|
field: string;
|
|
3209
3209
|
/**
|
|
@@ -3230,16 +3230,6 @@ export type LinkObject = {
|
|
|
3230
3230
|
title?: string;
|
|
3231
3231
|
describedby?: string;
|
|
3232
3232
|
};
|
|
3233
|
-
export type Timestamps = {
|
|
3234
|
-
/**
|
|
3235
|
-
* The date and time a resource was updated.
|
|
3236
|
-
*/
|
|
3237
|
-
updated_at: string;
|
|
3238
|
-
/**
|
|
3239
|
-
* The date and time a resource was created.
|
|
3240
|
-
*/
|
|
3241
|
-
created_at: string;
|
|
3242
|
-
};
|
|
3243
3233
|
/**
|
|
3244
3234
|
* The status of a subscription, either `active` or `inactive`.
|
|
3245
3235
|
*/
|
|
@@ -3264,7 +3254,7 @@ export type SingleRelationship = {
|
|
|
3264
3254
|
links?: RelationshipLinks;
|
|
3265
3255
|
};
|
|
3266
3256
|
export type RelationshipData = {
|
|
3267
|
-
id:
|
|
3257
|
+
id: SubscriptionsUuid;
|
|
3268
3258
|
/**
|
|
3269
3259
|
* This represents the type of resource being returned.
|
|
3270
3260
|
*/
|
|
@@ -3375,21 +3365,21 @@ export type PriceFormatting = {
|
|
|
3375
3365
|
formatted: string;
|
|
3376
3366
|
};
|
|
3377
3367
|
export type Feature = {
|
|
3378
|
-
id?:
|
|
3368
|
+
id?: SubscriptionsUuid;
|
|
3379
3369
|
type: SubscriptionFeatureType;
|
|
3380
3370
|
attributes: FeatureResponseAttributes;
|
|
3381
3371
|
meta: FeatureMeta;
|
|
3382
3372
|
};
|
|
3383
3373
|
export type FeatureMeta = {
|
|
3384
3374
|
owner: OwnerMeta;
|
|
3385
|
-
timestamps:
|
|
3375
|
+
timestamps: SubscriptionsTimestamps;
|
|
3386
3376
|
};
|
|
3387
3377
|
export type FeatureCreate = {
|
|
3388
3378
|
type: SubscriptionFeatureType;
|
|
3389
3379
|
attributes: FeatureAttributes;
|
|
3390
3380
|
};
|
|
3391
3381
|
export type FeatureUpdate = {
|
|
3392
|
-
id:
|
|
3382
|
+
id: SubscriptionsUuid;
|
|
3393
3383
|
type: SubscriptionFeatureType;
|
|
3394
3384
|
attributes: FeatureUpdateAttributes;
|
|
3395
3385
|
};
|
|
@@ -3408,7 +3398,7 @@ export type FeaturePromotion = {
|
|
|
3408
3398
|
*/
|
|
3409
3399
|
name: string;
|
|
3410
3400
|
tag: FeatureTag;
|
|
3411
|
-
promotion_id?:
|
|
3401
|
+
promotion_id?: SubscriptionsUuid;
|
|
3412
3402
|
};
|
|
3413
3403
|
export type FeaturePromotionAttributes = {
|
|
3414
3404
|
type: "promotion";
|
|
@@ -3463,7 +3453,7 @@ export type FeatureUpdateAttributes = {
|
|
|
3463
3453
|
configuration?: FeatureConfiguration;
|
|
3464
3454
|
};
|
|
3465
3455
|
export type Product2 = {
|
|
3466
|
-
id?:
|
|
3456
|
+
id?: SubscriptionsUuid;
|
|
3467
3457
|
type: SubscriptionProductType;
|
|
3468
3458
|
attributes: ProductResponseAttributes;
|
|
3469
3459
|
meta: ProductMeta2;
|
|
@@ -3471,14 +3461,14 @@ export type Product2 = {
|
|
|
3471
3461
|
export type ProductMeta2 = {
|
|
3472
3462
|
display_price?: DisplayPrice2;
|
|
3473
3463
|
owner: OwnerMeta;
|
|
3474
|
-
timestamps:
|
|
3464
|
+
timestamps: SubscriptionsTimestamps;
|
|
3475
3465
|
};
|
|
3476
3466
|
export type ProductCreate = {
|
|
3477
3467
|
type: SubscriptionProductType;
|
|
3478
3468
|
attributes: ProductAttributes2;
|
|
3479
3469
|
};
|
|
3480
3470
|
export type ProductUpdate = {
|
|
3481
|
-
id:
|
|
3471
|
+
id: SubscriptionsUuid;
|
|
3482
3472
|
type: SubscriptionProductType;
|
|
3483
3473
|
attributes: ProductUpdateAttributes;
|
|
3484
3474
|
};
|
|
@@ -3491,7 +3481,7 @@ export type OfferingProductResponseExtraAttributes = {
|
|
|
3491
3481
|
[key: string]: FeatureProductConfiguration;
|
|
3492
3482
|
};
|
|
3493
3483
|
};
|
|
3494
|
-
export type ProductResponseAttributes = ProductAttributes2 &
|
|
3484
|
+
export type ProductResponseAttributes = ProductAttributes2 & SubscriptionsTimestamps;
|
|
3495
3485
|
export type ProductAttributes2 = {
|
|
3496
3486
|
external_ref?: ExternalRef;
|
|
3497
3487
|
/**
|
|
@@ -3544,21 +3534,21 @@ export type ProductUpdateAttributes = {
|
|
|
3544
3534
|
price_units?: NullablePriceUnits;
|
|
3545
3535
|
};
|
|
3546
3536
|
export type DunningRule = {
|
|
3547
|
-
id?:
|
|
3537
|
+
id?: SubscriptionsUuid;
|
|
3548
3538
|
type: SubscriptionDunningRuleType;
|
|
3549
3539
|
attributes: DunningRuleAttributes;
|
|
3550
3540
|
meta: DunningRuleMeta;
|
|
3551
3541
|
};
|
|
3552
3542
|
export type DunningRuleMeta = {
|
|
3553
3543
|
owner: OwnerMeta;
|
|
3554
|
-
timestamps:
|
|
3544
|
+
timestamps: SubscriptionsTimestamps;
|
|
3555
3545
|
};
|
|
3556
3546
|
export type DunningRuleCreate = {
|
|
3557
3547
|
type: SubscriptionDunningRuleType;
|
|
3558
3548
|
attributes: DunningRuleAttributes;
|
|
3559
3549
|
};
|
|
3560
3550
|
export type DunningRuleUpdate = {
|
|
3561
|
-
id:
|
|
3551
|
+
id: SubscriptionsUuid;
|
|
3562
3552
|
type: SubscriptionDunningRuleType;
|
|
3563
3553
|
attributes: DunningRuleUpdateAttributes;
|
|
3564
3554
|
};
|
|
@@ -3652,23 +3642,23 @@ export type DunningRuleUpdateAttributes = {
|
|
|
3652
3642
|
default?: boolean;
|
|
3653
3643
|
};
|
|
3654
3644
|
export type ProrationPolicy = {
|
|
3655
|
-
id?:
|
|
3645
|
+
id?: SubscriptionsUuid;
|
|
3656
3646
|
type: ProrationPolicyType;
|
|
3657
3647
|
attributes: ProrationPolicyResponseAttributes;
|
|
3658
3648
|
meta: ProrationPolicyMeta;
|
|
3659
3649
|
};
|
|
3660
3650
|
export type ProrationPolicyUpdate = {
|
|
3661
|
-
id:
|
|
3651
|
+
id: SubscriptionsUuid;
|
|
3662
3652
|
type: ProrationPolicyType;
|
|
3663
3653
|
attributes: ProrationPolicyUpdateAttributes;
|
|
3664
3654
|
};
|
|
3665
3655
|
export type ProrationPolicyRelationshipAttributes = {
|
|
3666
3656
|
type: ProrationPolicyType;
|
|
3667
|
-
id:
|
|
3657
|
+
id: SubscriptionsUuid;
|
|
3668
3658
|
};
|
|
3669
3659
|
export type ProrationPolicyUpdateRelationshipAttributes = {
|
|
3670
3660
|
type: ProrationPolicyType;
|
|
3671
|
-
id:
|
|
3661
|
+
id: SubscriptionsUuid;
|
|
3672
3662
|
} | null;
|
|
3673
3663
|
export type ProrationPolicyResponseAttributes = ProrationPolicyAttributes;
|
|
3674
3664
|
export type ProrationPolicyCreate = {
|
|
@@ -3713,28 +3703,28 @@ export type ProrationPolicyUpdateAttributes = {
|
|
|
3713
3703
|
};
|
|
3714
3704
|
export type ProrationPolicyMeta = {
|
|
3715
3705
|
owner: OwnerMeta;
|
|
3716
|
-
timestamps:
|
|
3706
|
+
timestamps: SubscriptionsTimestamps;
|
|
3717
3707
|
};
|
|
3718
3708
|
export type Plan = {
|
|
3719
|
-
id?:
|
|
3709
|
+
id?: SubscriptionsUuid;
|
|
3720
3710
|
type: SubscriptionPlanType;
|
|
3721
3711
|
attributes: PlanResponseAttributes;
|
|
3722
3712
|
meta: PlanMeta;
|
|
3723
3713
|
};
|
|
3724
3714
|
export type PlanMeta = {
|
|
3725
3715
|
owner: OwnerMeta;
|
|
3726
|
-
timestamps:
|
|
3716
|
+
timestamps: SubscriptionsTimestamps;
|
|
3727
3717
|
};
|
|
3728
3718
|
export type PlanCreate = {
|
|
3729
3719
|
type: SubscriptionPlanType;
|
|
3730
3720
|
attributes: PlanAttributes;
|
|
3731
3721
|
};
|
|
3732
3722
|
export type PlanUpdate = {
|
|
3733
|
-
id:
|
|
3723
|
+
id: SubscriptionsUuid;
|
|
3734
3724
|
type: SubscriptionPlanType;
|
|
3735
3725
|
attributes: PlanUpdateAttributes;
|
|
3736
3726
|
};
|
|
3737
|
-
export type PlanResponseAttributes = PlanAttributes &
|
|
3727
|
+
export type PlanResponseAttributes = PlanAttributes & SubscriptionsTimestamps;
|
|
3738
3728
|
/**
|
|
3739
3729
|
* The unit of time that billing intervals are measured.
|
|
3740
3730
|
*/
|
|
@@ -3853,18 +3843,18 @@ export type BuildOffering = {
|
|
|
3853
3843
|
/**
|
|
3854
3844
|
* Either references of existing features (id or external_ref) to be attached to the offering or feature information to be created directly within the offering
|
|
3855
3845
|
*/
|
|
3856
|
-
features?: Array<ExternalRef | FeatureAttributes |
|
|
3846
|
+
features?: Array<ExternalRef | FeatureAttributes | SubscriptionsUuid>;
|
|
3857
3847
|
/**
|
|
3858
3848
|
* Either references of existing products (id or external_ref) to be attached to the offering or product information to be created directly within the offering
|
|
3859
3849
|
*/
|
|
3860
|
-
products: Array<ExternalRef | ProductAttributes2 |
|
|
3850
|
+
products: Array<ExternalRef | ProductAttributes2 | SubscriptionsUuid>;
|
|
3861
3851
|
/**
|
|
3862
3852
|
* Either references of existing plans (id or external_ref) to be attached to the offering or plan information to be created directly within the offering
|
|
3863
3853
|
*/
|
|
3864
|
-
plans: Array<ExternalRef | PlanAttributes |
|
|
3854
|
+
plans: Array<ExternalRef | PlanAttributes | SubscriptionsUuid>;
|
|
3865
3855
|
};
|
|
3866
3856
|
export type Offering = {
|
|
3867
|
-
id?:
|
|
3857
|
+
id?: SubscriptionsUuid;
|
|
3868
3858
|
type: SubscriptionOfferingType;
|
|
3869
3859
|
attributes: OfferingResponseAttributes;
|
|
3870
3860
|
relationships?: Relationships;
|
|
@@ -3878,7 +3868,7 @@ export type OfferingIncludes = {
|
|
|
3878
3868
|
export type OfferingMeta = {
|
|
3879
3869
|
external_product_refs: Array<OfferingProductExternalRefMeta>;
|
|
3880
3870
|
owner: OwnerMeta;
|
|
3881
|
-
timestamps:
|
|
3871
|
+
timestamps: SubscriptionsTimestamps;
|
|
3882
3872
|
};
|
|
3883
3873
|
export type OfferingCreate = {
|
|
3884
3874
|
type: SubscriptionOfferingType;
|
|
@@ -3886,7 +3876,7 @@ export type OfferingCreate = {
|
|
|
3886
3876
|
relationships?: OfferingRelationships;
|
|
3887
3877
|
};
|
|
3888
3878
|
export type OfferingProductUpdate = {
|
|
3889
|
-
id:
|
|
3879
|
+
id: SubscriptionsUuid;
|
|
3890
3880
|
type: SubscriptionOfferingProductType;
|
|
3891
3881
|
attributes: OfferingProductUpdateAttributes;
|
|
3892
3882
|
};
|
|
@@ -3938,31 +3928,31 @@ export type FeatureProductConfigurationUpdate = (({
|
|
|
3938
3928
|
type: "access" | "promotion" | "usage";
|
|
3939
3929
|
};
|
|
3940
3930
|
export type OfferingFeatureUpdate = {
|
|
3941
|
-
id:
|
|
3931
|
+
id: SubscriptionsUuid;
|
|
3942
3932
|
type: SubscriptionOfferingFeatureType;
|
|
3943
3933
|
attributes: FeatureUpdateAttributes;
|
|
3944
3934
|
};
|
|
3945
3935
|
export type OfferingFeature = {
|
|
3946
|
-
id?:
|
|
3936
|
+
id?: SubscriptionsUuid;
|
|
3947
3937
|
type: SubscriptionOfferingFeatureType;
|
|
3948
3938
|
attributes: FeatureResponseAttributes;
|
|
3949
3939
|
relationships?: Relationships;
|
|
3950
3940
|
meta: FeatureMeta;
|
|
3951
3941
|
};
|
|
3952
3942
|
export type OfferingProduct = {
|
|
3953
|
-
id?:
|
|
3943
|
+
id?: SubscriptionsUuid;
|
|
3954
3944
|
type: SubscriptionOfferingProductType;
|
|
3955
3945
|
attributes: OfferingProductResponseAttributes;
|
|
3956
3946
|
relationships?: Relationships;
|
|
3957
3947
|
meta: ProductMeta2;
|
|
3958
3948
|
};
|
|
3959
3949
|
export type OfferingPlanUpdate = {
|
|
3960
|
-
id:
|
|
3950
|
+
id: SubscriptionsUuid;
|
|
3961
3951
|
type: SubscriptionOfferingPlanType;
|
|
3962
3952
|
attributes: PlanUpdateAttributes;
|
|
3963
3953
|
};
|
|
3964
3954
|
export type OfferingPlan = {
|
|
3965
|
-
id?:
|
|
3955
|
+
id?: SubscriptionsUuid;
|
|
3966
3956
|
type: SubscriptionOfferingPlanType;
|
|
3967
3957
|
attributes: PlanResponseAttributes;
|
|
3968
3958
|
relationships?: Relationships;
|
|
@@ -3973,39 +3963,39 @@ export type OfferingPlanMeta = {
|
|
|
3973
3963
|
display_price?: DisplayPrice2;
|
|
3974
3964
|
active_plan?: ActivePlan;
|
|
3975
3965
|
owner: OwnerMeta;
|
|
3976
|
-
timestamps:
|
|
3966
|
+
timestamps: SubscriptionsTimestamps;
|
|
3977
3967
|
};
|
|
3978
3968
|
/**
|
|
3979
3969
|
* A list of feature IDs to attach to the offering. See [**List Features**](/docs/api/subscriptions/list-features).
|
|
3980
3970
|
*/
|
|
3981
3971
|
export type OfferingFeatureAttach = {
|
|
3982
|
-
features: Array<
|
|
3972
|
+
features: Array<SubscriptionsUuid>;
|
|
3983
3973
|
};
|
|
3984
3974
|
/**
|
|
3985
3975
|
* A list of plan IDs to attach to the offering. See [**List Plans**](/docs/api/subscriptions/list-plans).
|
|
3986
3976
|
*/
|
|
3987
3977
|
export type OfferingPlanAttach = {
|
|
3988
|
-
plans: Array<
|
|
3978
|
+
plans: Array<SubscriptionsUuid>;
|
|
3989
3979
|
};
|
|
3990
3980
|
/**
|
|
3991
3981
|
* A list of product IDs to attach to the offering. See [**List Products**](/docs/api/subscriptions/list-products).
|
|
3992
3982
|
*/
|
|
3993
3983
|
export type OfferingProductAttach = {
|
|
3994
|
-
products: Array<
|
|
3984
|
+
products: Array<SubscriptionsUuid>;
|
|
3995
3985
|
};
|
|
3996
3986
|
/**
|
|
3997
3987
|
* A list of product IDs to replace on the offering. See [**List Products**](/docs/api/subscriptions/list-products).
|
|
3998
3988
|
*/
|
|
3999
3989
|
export type OfferingProductReplace = {
|
|
4000
|
-
products: Array<
|
|
3990
|
+
products: Array<SubscriptionsUuid>;
|
|
4001
3991
|
};
|
|
4002
3992
|
export type OfferingUpdate = unknown & {
|
|
4003
|
-
id:
|
|
3993
|
+
id: SubscriptionsUuid;
|
|
4004
3994
|
type: SubscriptionOfferingType;
|
|
4005
3995
|
attributes?: OfferingUpdateAttributes;
|
|
4006
3996
|
relationships?: OfferingUpdateRelationships;
|
|
4007
3997
|
};
|
|
4008
|
-
export type OfferingResponseAttributes = OfferingAttributes &
|
|
3998
|
+
export type OfferingResponseAttributes = OfferingAttributes & SubscriptionsTimestamps;
|
|
4009
3999
|
export type OfferingAttributes = {
|
|
4010
4000
|
external_ref?: ExternalRef;
|
|
4011
4001
|
/**
|
|
@@ -4036,11 +4026,11 @@ export type OfferingUpdateRelationships = {
|
|
|
4036
4026
|
};
|
|
4037
4027
|
export type BuildSubscription = {
|
|
4038
4028
|
external_ref?: ExternalRef;
|
|
4039
|
-
account_id:
|
|
4040
|
-
address_id?:
|
|
4029
|
+
account_id: SubscriptionsUuid;
|
|
4030
|
+
address_id?: SubscriptionsUuid;
|
|
4041
4031
|
offering_external_ref?: ExternalRef;
|
|
4042
|
-
offering_id?:
|
|
4043
|
-
plan_id?:
|
|
4032
|
+
offering_id?: SubscriptionsUuid;
|
|
4033
|
+
plan_id?: SubscriptionsUuid;
|
|
4044
4034
|
currency: CurrencyIdentifier;
|
|
4045
4035
|
payment_authority?: PaymentAuthority;
|
|
4046
4036
|
manual_payments: ManualPayments;
|
|
@@ -4075,7 +4065,7 @@ export type SelectedPlanMetaAttributes = {
|
|
|
4075
4065
|
selected?: boolean;
|
|
4076
4066
|
};
|
|
4077
4067
|
export type Subscription = {
|
|
4078
|
-
id?:
|
|
4068
|
+
id?: SubscriptionsUuid;
|
|
4079
4069
|
type: SubscriptionType;
|
|
4080
4070
|
attributes: SubscriptionAttributes;
|
|
4081
4071
|
relationships?: Relationships;
|
|
@@ -4083,10 +4073,10 @@ export type Subscription = {
|
|
|
4083
4073
|
};
|
|
4084
4074
|
export type ManageSubscriptionProducts = {
|
|
4085
4075
|
type: "attach" | "detach" | "replace";
|
|
4086
|
-
products: Array<
|
|
4076
|
+
products: Array<SubscriptionsUuid>;
|
|
4087
4077
|
};
|
|
4088
4078
|
export type SubscriptionUpdate = {
|
|
4089
|
-
id:
|
|
4079
|
+
id: SubscriptionsUuid;
|
|
4090
4080
|
type: SubscriptionType;
|
|
4091
4081
|
attributes: SubscriptionUpdateAttributes;
|
|
4092
4082
|
};
|
|
@@ -4138,7 +4128,7 @@ export type SubscriptionMeta = {
|
|
|
4138
4128
|
*/
|
|
4139
4129
|
invoice_after: string;
|
|
4140
4130
|
};
|
|
4141
|
-
export type SubscriptionTimestamps =
|
|
4131
|
+
export type SubscriptionTimestamps = SubscriptionsTimestamps & {
|
|
4142
4132
|
/**
|
|
4143
4133
|
* The date and time a subscription was cancelled.
|
|
4144
4134
|
*/
|
|
@@ -4166,10 +4156,10 @@ export type SubscriptionTimestamps = Timestamps & {
|
|
|
4166
4156
|
};
|
|
4167
4157
|
export type SubscriptionAttributes = {
|
|
4168
4158
|
external_ref?: ExternalRef;
|
|
4169
|
-
account_id:
|
|
4170
|
-
address_id?:
|
|
4159
|
+
account_id: SubscriptionsUuid;
|
|
4160
|
+
address_id?: SubscriptionsUuid;
|
|
4171
4161
|
offering: Offering;
|
|
4172
|
-
plan_id:
|
|
4162
|
+
plan_id: SubscriptionsUuid;
|
|
4173
4163
|
currency: CurrencyIdentifier;
|
|
4174
4164
|
payment_authority?: PaymentAuthority;
|
|
4175
4165
|
};
|
|
@@ -4200,7 +4190,7 @@ export type StateMeta = {
|
|
|
4200
4190
|
created_at: string;
|
|
4201
4191
|
};
|
|
4202
4192
|
export type SubscriptionState = {
|
|
4203
|
-
id?:
|
|
4193
|
+
id?: SubscriptionsUuid;
|
|
4204
4194
|
type: SubscriptionStateType;
|
|
4205
4195
|
attributes: SubscriptionStateAttributes;
|
|
4206
4196
|
meta: StateMeta;
|
|
@@ -4258,7 +4248,7 @@ export type PaymentAuthorityStripe = {
|
|
|
4258
4248
|
card_id?: string;
|
|
4259
4249
|
};
|
|
4260
4250
|
export type Import = {
|
|
4261
|
-
id?:
|
|
4251
|
+
id?: SubscriptionsUuid;
|
|
4262
4252
|
type: SubscriptionImportType;
|
|
4263
4253
|
attributes: ImportAttributes;
|
|
4264
4254
|
meta: ImportMeta;
|
|
@@ -4339,7 +4329,7 @@ export type ImportRecords = {
|
|
|
4339
4329
|
};
|
|
4340
4330
|
};
|
|
4341
4331
|
export type Job = {
|
|
4342
|
-
id?:
|
|
4332
|
+
id?: SubscriptionsUuid;
|
|
4343
4333
|
type: SubscriptionJobType;
|
|
4344
4334
|
attributes: JobResponseAttributes;
|
|
4345
4335
|
relationships?: Relationships;
|
|
@@ -4391,7 +4381,7 @@ export type PaymentRunReport = {
|
|
|
4391
4381
|
failed_payments: number;
|
|
4392
4382
|
total_collected: unknown & Price;
|
|
4393
4383
|
};
|
|
4394
|
-
export type JobTimestamps =
|
|
4384
|
+
export type JobTimestamps = SubscriptionsTimestamps & {
|
|
4395
4385
|
/**
|
|
4396
4386
|
* The date and time a job is started.
|
|
4397
4387
|
*/
|
|
@@ -4405,7 +4395,7 @@ export type JobCreate = {
|
|
|
4405
4395
|
type: SubscriptionJobType;
|
|
4406
4396
|
attributes: JobCreateAttributes;
|
|
4407
4397
|
};
|
|
4408
|
-
export type JobResponseAttributes = JobCreateAttributes & JobAttributes &
|
|
4398
|
+
export type JobResponseAttributes = JobCreateAttributes & JobAttributes & SubscriptionsTimestamps;
|
|
4409
4399
|
/**
|
|
4410
4400
|
* The type of job. One of the following:
|
|
4411
4401
|
* - `billing_run` - a billing run job.
|
|
@@ -4427,7 +4417,7 @@ export type JobAttributes = {
|
|
|
4427
4417
|
status: "pending" | "started" | "success" | "failed";
|
|
4428
4418
|
};
|
|
4429
4419
|
export type InvoiceTaxItems = {
|
|
4430
|
-
invoice_id:
|
|
4420
|
+
invoice_id: SubscriptionsUuid;
|
|
4431
4421
|
tax_items: Array<TaxItem>;
|
|
4432
4422
|
};
|
|
4433
4423
|
export type TaxItem = {
|
|
@@ -4453,13 +4443,13 @@ export type TaxItem = {
|
|
|
4453
4443
|
jurisdiction?: string;
|
|
4454
4444
|
};
|
|
4455
4445
|
export type SubscriptionInvoice = {
|
|
4456
|
-
id?:
|
|
4446
|
+
id?: SubscriptionsUuid;
|
|
4457
4447
|
type: SubscriptionInvoiceType;
|
|
4458
4448
|
attributes: SubscriptionInvoiceAttributes;
|
|
4459
4449
|
meta: SubscriptionInvoiceMeta;
|
|
4460
4450
|
};
|
|
4461
4451
|
export type UpdateInvoicePayment = {
|
|
4462
|
-
id:
|
|
4452
|
+
id: SubscriptionsUuid;
|
|
4463
4453
|
type: SubscriptionInvoicePaymentType;
|
|
4464
4454
|
attributes: UpdateInvoicePaymentAttributes;
|
|
4465
4455
|
};
|
|
@@ -4482,21 +4472,21 @@ export type UpdateInvoicePaymentAttributes = {
|
|
|
4482
4472
|
payment_taken_at?: string;
|
|
4483
4473
|
};
|
|
4484
4474
|
export type SubscriptionInvoicePayment = {
|
|
4485
|
-
id:
|
|
4475
|
+
id: SubscriptionsUuid;
|
|
4486
4476
|
type: SubscriptionInvoicePaymentType;
|
|
4487
4477
|
attributes: SubscriptionInvoicePaymentAttributes;
|
|
4488
4478
|
meta: SubscriptionInvoicePaymentMeta;
|
|
4489
4479
|
};
|
|
4490
4480
|
export type SubscriptionInvoiceMeta = {
|
|
4491
4481
|
owner: OwnerMeta;
|
|
4492
|
-
subscription_id?:
|
|
4493
|
-
subscriber_id?:
|
|
4482
|
+
subscription_id?: SubscriptionsUuid;
|
|
4483
|
+
subscriber_id?: SubscriptionsUuid;
|
|
4494
4484
|
price?: SingleCurrencyPrice;
|
|
4495
4485
|
timestamps: InvoiceTimestamps;
|
|
4496
4486
|
proration_events: Array<ProrationEvent>;
|
|
4497
4487
|
};
|
|
4498
4488
|
export type ProrationEvent = {
|
|
4499
|
-
proration_policy_id:
|
|
4489
|
+
proration_policy_id: SubscriptionsUuid;
|
|
4500
4490
|
/**
|
|
4501
4491
|
* The value as a whole number of the currency's smallest subdivision
|
|
4502
4492
|
*/
|
|
@@ -4514,7 +4504,7 @@ export type ProrationEvent = {
|
|
|
4514
4504
|
*/
|
|
4515
4505
|
prorated_at: string;
|
|
4516
4506
|
};
|
|
4517
|
-
export type InvoiceTimestamps =
|
|
4507
|
+
export type InvoiceTimestamps = SubscriptionsTimestamps & {
|
|
4518
4508
|
/**
|
|
4519
4509
|
* The date and time taxes were added to an invoice.
|
|
4520
4510
|
*/
|
|
@@ -4522,16 +4512,16 @@ export type InvoiceTimestamps = Timestamps & {
|
|
|
4522
4512
|
};
|
|
4523
4513
|
export type SubscriptionInvoicePaymentMeta = {
|
|
4524
4514
|
owner: OwnerMeta;
|
|
4525
|
-
subscription_id:
|
|
4526
|
-
invoice_id:
|
|
4527
|
-
job_id:
|
|
4515
|
+
subscription_id: SubscriptionsUuid;
|
|
4516
|
+
invoice_id: SubscriptionsUuid;
|
|
4517
|
+
job_id: SubscriptionsUuid;
|
|
4528
4518
|
timestamps: InvoicePaymentTimestamps;
|
|
4529
4519
|
/**
|
|
4530
4520
|
* Whether manual payments are enabled or the payment will be handled by the configured gateway.
|
|
4531
4521
|
*/
|
|
4532
4522
|
manual_payment: boolean;
|
|
4533
4523
|
};
|
|
4534
|
-
export type InvoicePaymentTimestamps =
|
|
4524
|
+
export type InvoicePaymentTimestamps = SubscriptionsTimestamps & {
|
|
4535
4525
|
/**
|
|
4536
4526
|
* The date and time a payment was taken.
|
|
4537
4527
|
*/
|
|
@@ -4602,7 +4592,7 @@ export type SubscriptionInvoiceItem = {
|
|
|
4602
4592
|
*/
|
|
4603
4593
|
description: string;
|
|
4604
4594
|
price: SingleCurrencyPrice;
|
|
4605
|
-
product_id?:
|
|
4595
|
+
product_id?: SubscriptionsUuid;
|
|
4606
4596
|
/**
|
|
4607
4597
|
* The start date and time of the billing period in this price
|
|
4608
4598
|
*/
|
|
@@ -4612,37 +4602,10 @@ export type SubscriptionInvoiceItem = {
|
|
|
4612
4602
|
*/
|
|
4613
4603
|
until_time_period?: string;
|
|
4614
4604
|
};
|
|
4615
|
-
export type ErrorResponse2 = {
|
|
4616
|
-
errors: Array<Error2>;
|
|
4617
|
-
};
|
|
4618
|
-
export type Error2 = {
|
|
4619
|
-
/**
|
|
4620
|
-
* The HTTP response code of the error.
|
|
4621
|
-
*/
|
|
4622
|
-
status: string;
|
|
4623
|
-
/**
|
|
4624
|
-
* A brief summary of the error.
|
|
4625
|
-
*/
|
|
4626
|
-
title: string;
|
|
4627
|
-
/**
|
|
4628
|
-
* Optional additional detail about the error.
|
|
4629
|
-
*/
|
|
4630
|
-
detail?: string;
|
|
4631
|
-
/**
|
|
4632
|
-
* Additional supporting meta data for the error.
|
|
4633
|
-
*/
|
|
4634
|
-
meta?: {
|
|
4635
|
-
[key: string]: unknown;
|
|
4636
|
-
};
|
|
4637
|
-
};
|
|
4638
4605
|
/**
|
|
4639
4606
|
* The three-letter [**ISO currency code**](https://www.iso.org/iso-4217-currency-codes.html) in uppercase.
|
|
4640
4607
|
*/
|
|
4641
4608
|
export type CurrencyIdentifier = string;
|
|
4642
|
-
/**
|
|
4643
|
-
* The unique identifier.
|
|
4644
|
-
*/
|
|
4645
|
-
export type Uuid = string;
|
|
4646
4609
|
/**
|
|
4647
4610
|
* The owner of a resource, either `store` or `organization`.
|
|
4648
4611
|
*/
|
|
@@ -4652,19 +4615,19 @@ export type OwnerMeta = string;
|
|
|
4652
4615
|
*/
|
|
4653
4616
|
export type OfferingProductExternalRefMeta = string;
|
|
4654
4617
|
export type Subscriber = {
|
|
4655
|
-
id?:
|
|
4618
|
+
id?: SubscriptionsUuid;
|
|
4656
4619
|
type: SubscriptionSubscriberType;
|
|
4657
4620
|
attributes: SubscriberResponseAttributes;
|
|
4658
4621
|
meta: SubscriberMeta;
|
|
4659
4622
|
};
|
|
4660
4623
|
export type SubscriberMeta = {
|
|
4661
4624
|
owner: OwnerMeta;
|
|
4662
|
-
timestamps:
|
|
4625
|
+
timestamps: SubscriptionsTimestamps;
|
|
4663
4626
|
};
|
|
4664
4627
|
export type SubscriptionSubscriberType = "subscription_subscriber";
|
|
4665
|
-
export type SubscriberResponseAttributes = SubscriberAttributes &
|
|
4628
|
+
export type SubscriberResponseAttributes = SubscriberAttributes & SubscriptionsTimestamps;
|
|
4666
4629
|
export type SubscriberAttributes = {
|
|
4667
|
-
account_id:
|
|
4630
|
+
account_id: SubscriptionsUuid;
|
|
4668
4631
|
/**
|
|
4669
4632
|
* The name of the subscriber.
|
|
4670
4633
|
*/
|
|
@@ -4691,7 +4654,7 @@ export type SubscriberCreate = {
|
|
|
4691
4654
|
attributes: SubscriberAttributes;
|
|
4692
4655
|
};
|
|
4693
4656
|
export type SubscriberUpdate = {
|
|
4694
|
-
id:
|
|
4657
|
+
id: SubscriptionsUuid;
|
|
4695
4658
|
type: SubscriptionSubscriberType;
|
|
4696
4659
|
attributes: SubscriberUpdateAttributes;
|
|
4697
4660
|
};
|
|
@@ -4700,7 +4663,7 @@ export type ScheduleCreate = {
|
|
|
4700
4663
|
attributes: ScheduleAttributes;
|
|
4701
4664
|
};
|
|
4702
4665
|
export type Schedule2 = {
|
|
4703
|
-
id?:
|
|
4666
|
+
id?: SubscriptionsUuid;
|
|
4704
4667
|
type: SubscriptionScheduleType;
|
|
4705
4668
|
attributes: ScheduleResponseAttributes;
|
|
4706
4669
|
meta: ScheduleMeta;
|
|
@@ -4708,10 +4671,10 @@ export type Schedule2 = {
|
|
|
4708
4671
|
export type ScheduleMeta = {
|
|
4709
4672
|
scheduled_for?: Date;
|
|
4710
4673
|
owner: OwnerMeta;
|
|
4711
|
-
timestamps:
|
|
4674
|
+
timestamps: SubscriptionsTimestamps;
|
|
4712
4675
|
};
|
|
4713
4676
|
export type SubscriptionScheduleType = "subscription_schedule";
|
|
4714
|
-
export type ScheduleResponseAttributes = ScheduleAttributes &
|
|
4677
|
+
export type ScheduleResponseAttributes = ScheduleAttributes & SubscriptionsTimestamps;
|
|
4715
4678
|
export type ScheduleAttributes = {
|
|
4716
4679
|
external_ref?: ExternalRef;
|
|
4717
4680
|
/**
|
|
@@ -4748,10 +4711,245 @@ export type ScheduleJob = {
|
|
|
4748
4711
|
job_type: JobType;
|
|
4749
4712
|
};
|
|
4750
4713
|
export type ScheduleUpdate = {
|
|
4751
|
-
id:
|
|
4714
|
+
id: SubscriptionsUuid;
|
|
4752
4715
|
type: SubscriptionScheduleType;
|
|
4753
4716
|
attributes: ScheduleUpdateAttributes;
|
|
4754
4717
|
};
|
|
4718
|
+
export type SubscriptionsTimestamps = {
|
|
4719
|
+
/**
|
|
4720
|
+
* The date and time a resource was updated.
|
|
4721
|
+
*/
|
|
4722
|
+
updated_at: string;
|
|
4723
|
+
/**
|
|
4724
|
+
* The date and time a resource was created.
|
|
4725
|
+
*/
|
|
4726
|
+
created_at: string;
|
|
4727
|
+
};
|
|
4728
|
+
export type SubscriptionsErrorResponse = {
|
|
4729
|
+
errors: Array<SubscriptionsError>;
|
|
4730
|
+
};
|
|
4731
|
+
export type SubscriptionsError = {
|
|
4732
|
+
/**
|
|
4733
|
+
* The HTTP response code of the error.
|
|
4734
|
+
*/
|
|
4735
|
+
status: string;
|
|
4736
|
+
/**
|
|
4737
|
+
* A brief summary of the error.
|
|
4738
|
+
*/
|
|
4739
|
+
title: string;
|
|
4740
|
+
/**
|
|
4741
|
+
* Optional additional detail about the error.
|
|
4742
|
+
*/
|
|
4743
|
+
detail?: string;
|
|
4744
|
+
/**
|
|
4745
|
+
* Additional supporting meta data for the error.
|
|
4746
|
+
*/
|
|
4747
|
+
meta?: {
|
|
4748
|
+
[key: string]: unknown;
|
|
4749
|
+
};
|
|
4750
|
+
};
|
|
4751
|
+
/**
|
|
4752
|
+
* The unique identifier.
|
|
4753
|
+
*/
|
|
4754
|
+
export type SubscriptionsUuid = string;
|
|
4755
|
+
export type StockType = "stock";
|
|
4756
|
+
export type StockTransactionType = "stock-transaction";
|
|
4757
|
+
export type MultipleProducts = {
|
|
4758
|
+
type?: "stock";
|
|
4759
|
+
/**
|
|
4760
|
+
* The unique identifier of the product.
|
|
4761
|
+
*/
|
|
4762
|
+
id: string;
|
|
4763
|
+
};
|
|
4764
|
+
export type TransactionResponseAttributes = {
|
|
4765
|
+
/**
|
|
4766
|
+
* The type of action performed by this transaction.
|
|
4767
|
+
*
|
|
4768
|
+
* - **increment** - use this when you want to make products available for purchase, for example, when you have received stock from a supplier.
|
|
4769
|
+
*
|
|
4770
|
+
* - **decrement** - Use this when you want to remove stock from product inventory.
|
|
4771
|
+
*
|
|
4772
|
+
* - **allocate** - Use this when you want to allocate stock, normally to a reseller who sells on the stock.
|
|
4773
|
+
*
|
|
4774
|
+
* - **deallocate** - Use this when you want to deallocate any previously allocated stock.
|
|
4775
|
+
*
|
|
4776
|
+
*/
|
|
4777
|
+
action: "increment" | "decrement" | "allocate" | "deallocate";
|
|
4778
|
+
product_id: InventoriesUuid;
|
|
4779
|
+
/**
|
|
4780
|
+
* The amount of stock affected by the stock transaction.
|
|
4781
|
+
*/
|
|
4782
|
+
quantity: BigInt;
|
|
4783
|
+
/**
|
|
4784
|
+
* The slug of the location that the transaction should act on.
|
|
4785
|
+
*/
|
|
4786
|
+
location?: string;
|
|
4787
|
+
};
|
|
4788
|
+
export type StockCreate = {
|
|
4789
|
+
id?: InventoriesUuid;
|
|
4790
|
+
type: StockType;
|
|
4791
|
+
attributes: StockCreateAttributes;
|
|
4792
|
+
};
|
|
4793
|
+
export type StockUpdateRequest = {
|
|
4794
|
+
id: InventoriesUuid;
|
|
4795
|
+
type: StockType;
|
|
4796
|
+
attributes: StockUpdateAttributes;
|
|
4797
|
+
};
|
|
4798
|
+
export type StockUpdateAttributes = {
|
|
4799
|
+
locations?: NullableLocations;
|
|
4800
|
+
};
|
|
4801
|
+
export type NullableLocation = {
|
|
4802
|
+
available: BigInt;
|
|
4803
|
+
} | null;
|
|
4804
|
+
export type NullableLocations = {
|
|
4805
|
+
[key: string]: NullableLocation;
|
|
4806
|
+
};
|
|
4807
|
+
export type StockCreateAttributes = {
|
|
4808
|
+
available?: BigInt;
|
|
4809
|
+
locations?: {
|
|
4810
|
+
[key: string]: {
|
|
4811
|
+
available: BigInt;
|
|
4812
|
+
};
|
|
4813
|
+
};
|
|
4814
|
+
};
|
|
4815
|
+
export type StockResponse = {
|
|
4816
|
+
id: InventoriesUuid;
|
|
4817
|
+
type: StockType;
|
|
4818
|
+
attributes: StockResponseAttributes;
|
|
4819
|
+
meta: StockMeta;
|
|
4820
|
+
};
|
|
4821
|
+
export type StockResponseAttributes = {
|
|
4822
|
+
available: BigInt;
|
|
4823
|
+
allocated: BigInt;
|
|
4824
|
+
total: BigInt;
|
|
4825
|
+
locations?: StockLocations;
|
|
4826
|
+
};
|
|
4827
|
+
export type StockLocations = {
|
|
4828
|
+
[key: string]: {
|
|
4829
|
+
available: BigInt;
|
|
4830
|
+
allocated: BigInt;
|
|
4831
|
+
total: BigInt;
|
|
4832
|
+
};
|
|
4833
|
+
};
|
|
4834
|
+
export type TransactionCreate = {
|
|
4835
|
+
type: StockTransactionType;
|
|
4836
|
+
attributes: TransactionCreateAttributes;
|
|
4837
|
+
};
|
|
4838
|
+
export type TransactionCreateAttributes = {
|
|
4839
|
+
product_id?: InventoriesUuid;
|
|
4840
|
+
/**
|
|
4841
|
+
* The type of action being performed by this transaction.
|
|
4842
|
+
*
|
|
4843
|
+
* - **increment** - use this when you want to make products available for purchase, for example, when you have received stock from a supplier.
|
|
4844
|
+
*
|
|
4845
|
+
* - **decrement** - Use this when you want to remove stock from product inventory.
|
|
4846
|
+
*
|
|
4847
|
+
* - **allocate** - Use this when you want to allocate stock, normally to a reseller who sells on the stock.
|
|
4848
|
+
*
|
|
4849
|
+
* - **deallocate** - Use this when you want to deallocate any previously allocated stock.
|
|
4850
|
+
*
|
|
4851
|
+
* - **set** - Use this when you want to set total stock to a specific value.
|
|
4852
|
+
*
|
|
4853
|
+
*/
|
|
4854
|
+
action: "increment" | "decrement" | "allocate" | "deallocate" | "set";
|
|
4855
|
+
/**
|
|
4856
|
+
* The amount of stock affected by the stock transaction.
|
|
4857
|
+
*/
|
|
4858
|
+
quantity: BigInt;
|
|
4859
|
+
/**
|
|
4860
|
+
* The slug of the location that the transaction should act on.
|
|
4861
|
+
*/
|
|
4862
|
+
location?: string;
|
|
4863
|
+
};
|
|
4864
|
+
export type Location = {
|
|
4865
|
+
id: InventoriesUuid;
|
|
4866
|
+
type: InventoryLocationType;
|
|
4867
|
+
attributes: LocationAttributes;
|
|
4868
|
+
meta?: Meta;
|
|
4869
|
+
};
|
|
4870
|
+
export type LocationAttributes = {
|
|
4871
|
+
name: string;
|
|
4872
|
+
external_ref?: string;
|
|
4873
|
+
slug: string;
|
|
4874
|
+
description?: string;
|
|
4875
|
+
address?: Array<string>;
|
|
4876
|
+
geolocation?: GeolocationDetails;
|
|
4877
|
+
};
|
|
4878
|
+
export type LocationUpdateAttributes = {
|
|
4879
|
+
name?: string;
|
|
4880
|
+
external_ref?: string | null;
|
|
4881
|
+
slug?: string;
|
|
4882
|
+
description?: string | null;
|
|
4883
|
+
address?: Array<string | null> | null;
|
|
4884
|
+
geolocation?: GeolocationDetails;
|
|
4885
|
+
};
|
|
4886
|
+
/**
|
|
4887
|
+
* The longitude and latitude of a location.
|
|
4888
|
+
*/
|
|
4889
|
+
export type GeolocationDetails = {
|
|
4890
|
+
lat: number;
|
|
4891
|
+
lon: number;
|
|
4892
|
+
} | null;
|
|
4893
|
+
export type LocationRequest = {
|
|
4894
|
+
type?: InventoryLocationType;
|
|
4895
|
+
attributes: LocationAttributes;
|
|
4896
|
+
};
|
|
4897
|
+
export type LocationUpdateRequest = {
|
|
4898
|
+
id: InventoriesUuid;
|
|
4899
|
+
type: InventoryLocationType;
|
|
4900
|
+
attributes: LocationUpdateAttributes;
|
|
4901
|
+
};
|
|
4902
|
+
export type InventoryLocationType = "inventory_location";
|
|
4903
|
+
export type StockMeta = {
|
|
4904
|
+
stock_id: InventoriesUuid;
|
|
4905
|
+
timestamps: InventoriesTimestamps;
|
|
4906
|
+
};
|
|
4907
|
+
export type Meta = {
|
|
4908
|
+
timestamps: InventoriesTimestamps;
|
|
4909
|
+
};
|
|
4910
|
+
export type InventoriesTransactionResponse = {
|
|
4911
|
+
id: InventoriesUuid;
|
|
4912
|
+
type: StockTransactionType;
|
|
4913
|
+
attributes: TransactionResponseAttributes;
|
|
4914
|
+
meta?: Meta;
|
|
4915
|
+
};
|
|
4916
|
+
/**
|
|
4917
|
+
* The unique identifier.
|
|
4918
|
+
*/
|
|
4919
|
+
export type InventoriesUuid = string;
|
|
4920
|
+
export type InventoriesTimestamps = {
|
|
4921
|
+
/**
|
|
4922
|
+
* The date and time a resource was updated.
|
|
4923
|
+
*/
|
|
4924
|
+
updated_at?: string;
|
|
4925
|
+
/**
|
|
4926
|
+
* The date and time a resource was created.
|
|
4927
|
+
*/
|
|
4928
|
+
created_at: string;
|
|
4929
|
+
};
|
|
4930
|
+
export type InventoriesErrorResponse = {
|
|
4931
|
+
errors: Array<InventoriesError>;
|
|
4932
|
+
};
|
|
4933
|
+
export type InventoriesError = {
|
|
4934
|
+
/**
|
|
4935
|
+
* The HTTP response code of the error.
|
|
4936
|
+
*/
|
|
4937
|
+
status: string;
|
|
4938
|
+
/**
|
|
4939
|
+
* A brief summary of the error.
|
|
4940
|
+
*/
|
|
4941
|
+
title: string;
|
|
4942
|
+
/**
|
|
4943
|
+
* Optional additional detail about the error.
|
|
4944
|
+
*/
|
|
4945
|
+
detail?: string;
|
|
4946
|
+
/**
|
|
4947
|
+
* Additional supporting meta data for the error.
|
|
4948
|
+
*/
|
|
4949
|
+
meta?: {
|
|
4950
|
+
[key: string]: unknown;
|
|
4951
|
+
};
|
|
4952
|
+
};
|
|
4755
4953
|
/**
|
|
4756
4954
|
* The language and locale your storefront prefers. See [Accept-Language](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language).
|
|
4757
4955
|
*/
|
|
@@ -4802,23 +5000,36 @@ export type Offset = BigInt;
|
|
|
4802
5000
|
* Product tags are used to store or assign a key word against a product. The product tag can then be used to describe or label that product. Using product tags means that you can group your products together, for example, by brand, category, subcategory, colors, types, industries, and so on. You can enhance your product list using tags, enabling you to refine your product list and run targeted promotions. Tags are used to refine the eligibility criteria for a rule. Requests populate the catalog rule tag using the `EP-Context-Tag` header.
|
|
4803
5001
|
*/
|
|
4804
5002
|
export type Tag = string;
|
|
4805
|
-
/**
|
|
4806
|
-
* Some Subscriptions API endpoints support filtering. For the general syntax, see [**Filtering**](/guides/Getting-Started/filtering), but you must go to a specific endpoint to understand the attributes and operators an endpoint supports.
|
|
4807
|
-
*
|
|
4808
|
-
*/
|
|
4809
|
-
export type Filter = string;
|
|
4810
5003
|
/**
|
|
4811
5004
|
* A comma-separated list of resources to include. See [Characteristics of Include Parameter](/guides/Getting-Started/includes#characteristics-of-include-parameter).
|
|
4812
5005
|
*/
|
|
4813
5006
|
export type Include2 = string;
|
|
5007
|
+
/**
|
|
5008
|
+
* Some Subscriptions API endpoints support filtering. For the general syntax, see [**Filtering**](/guides/Getting-Started/filtering), but you must go to a specific endpoint to understand the attributes and operators an endpoint supports.
|
|
5009
|
+
*
|
|
5010
|
+
*/
|
|
5011
|
+
export type SubscriptionsFilter = string;
|
|
4814
5012
|
/**
|
|
4815
5013
|
* The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the [page length](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
|
|
4816
5014
|
*/
|
|
4817
|
-
export type
|
|
5015
|
+
export type SubscriptionsPageLimit = BigInt;
|
|
4818
5016
|
/**
|
|
4819
5017
|
* The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [page length](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
|
|
4820
5018
|
*/
|
|
4821
|
-
export type
|
|
5019
|
+
export type SubscriptionsPageOffset = BigInt;
|
|
5020
|
+
/**
|
|
5021
|
+
* Some Inventories API endpoints support filtering. For the general syntax, see [**Filtering**](/guides/Getting-Started/filtering), but you must go to a specific endpoint to understand the attributes and operators an endpoint supports.
|
|
5022
|
+
*
|
|
5023
|
+
*/
|
|
5024
|
+
export type InventoriesFilter = string;
|
|
5025
|
+
/**
|
|
5026
|
+
* The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](https://elasticpath.dev/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
|
|
5027
|
+
*/
|
|
5028
|
+
export type InventoriesPageLimit = number;
|
|
5029
|
+
/**
|
|
5030
|
+
* The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](https://elasticpath.dev/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
|
|
5031
|
+
*/
|
|
5032
|
+
export type InventoriesPageOffset = number;
|
|
4822
5033
|
/**
|
|
4823
5034
|
* The bundle configuration.
|
|
4824
5035
|
*/
|
|
@@ -7725,7 +7936,7 @@ export type GetSubscriptionProductData = {
|
|
|
7725
7936
|
/**
|
|
7726
7937
|
* The unique identifier of a product.
|
|
7727
7938
|
*/
|
|
7728
|
-
product_uuid:
|
|
7939
|
+
product_uuid: SubscriptionsUuid;
|
|
7729
7940
|
};
|
|
7730
7941
|
query?: never;
|
|
7731
7942
|
url: "/v2/subscriptions/products/{product_uuid}";
|
|
@@ -7734,15 +7945,15 @@ export type GetSubscriptionProductErrors = {
|
|
|
7734
7945
|
/**
|
|
7735
7946
|
* Bad request. The request failed validation.
|
|
7736
7947
|
*/
|
|
7737
|
-
400:
|
|
7948
|
+
400: SubscriptionsErrorResponse;
|
|
7738
7949
|
/**
|
|
7739
7950
|
* Not found. The requested entity does not exist.
|
|
7740
7951
|
*/
|
|
7741
|
-
404:
|
|
7952
|
+
404: SubscriptionsErrorResponse;
|
|
7742
7953
|
/**
|
|
7743
7954
|
* Internal server error. There was a system failure in the platform.
|
|
7744
7955
|
*/
|
|
7745
|
-
500:
|
|
7956
|
+
500: SubscriptionsErrorResponse;
|
|
7746
7957
|
};
|
|
7747
7958
|
export type GetSubscriptionProductError = GetSubscriptionProductErrors[keyof GetSubscriptionProductErrors];
|
|
7748
7959
|
export type GetSubscriptionProductResponses = {
|
|
@@ -7760,7 +7971,7 @@ export type GetPlanData = {
|
|
|
7760
7971
|
/**
|
|
7761
7972
|
* The unique identifier of the plan.
|
|
7762
7973
|
*/
|
|
7763
|
-
plan_uuid:
|
|
7974
|
+
plan_uuid: SubscriptionsUuid;
|
|
7764
7975
|
};
|
|
7765
7976
|
query?: never;
|
|
7766
7977
|
url: "/v2/subscriptions/plans/{plan_uuid}";
|
|
@@ -7769,15 +7980,15 @@ export type GetPlanErrors = {
|
|
|
7769
7980
|
/**
|
|
7770
7981
|
* Bad request. The request failed validation.
|
|
7771
7982
|
*/
|
|
7772
|
-
400:
|
|
7983
|
+
400: SubscriptionsErrorResponse;
|
|
7773
7984
|
/**
|
|
7774
7985
|
* Not found. The requested entity does not exist.
|
|
7775
7986
|
*/
|
|
7776
|
-
404:
|
|
7987
|
+
404: SubscriptionsErrorResponse;
|
|
7777
7988
|
/**
|
|
7778
7989
|
* Internal server error. There was a system failure in the platform.
|
|
7779
7990
|
*/
|
|
7780
|
-
500:
|
|
7991
|
+
500: SubscriptionsErrorResponse;
|
|
7781
7992
|
};
|
|
7782
7993
|
export type GetPlanError = GetPlanErrors[keyof GetPlanErrors];
|
|
7783
7994
|
export type GetPlanResponses = {
|
|
@@ -7817,11 +8028,11 @@ export type ListOfferingsErrors = {
|
|
|
7817
8028
|
/**
|
|
7818
8029
|
* Bad request. The request failed validation.
|
|
7819
8030
|
*/
|
|
7820
|
-
400:
|
|
8031
|
+
400: SubscriptionsErrorResponse;
|
|
7821
8032
|
/**
|
|
7822
8033
|
* Internal server error. There was a system failure in the platform.
|
|
7823
8034
|
*/
|
|
7824
|
-
500:
|
|
8035
|
+
500: SubscriptionsErrorResponse;
|
|
7825
8036
|
};
|
|
7826
8037
|
export type ListOfferingsError = ListOfferingsErrors[keyof ListOfferingsErrors];
|
|
7827
8038
|
export type ListOfferingsResponses = {
|
|
@@ -7841,7 +8052,7 @@ export type GetOfferingData = {
|
|
|
7841
8052
|
/**
|
|
7842
8053
|
* The unique identifier of the offering.
|
|
7843
8054
|
*/
|
|
7844
|
-
offering_uuid:
|
|
8055
|
+
offering_uuid: SubscriptionsUuid;
|
|
7845
8056
|
};
|
|
7846
8057
|
query?: {
|
|
7847
8058
|
/**
|
|
@@ -7855,15 +8066,15 @@ export type GetOfferingErrors = {
|
|
|
7855
8066
|
/**
|
|
7856
8067
|
* Bad request. The request failed validation.
|
|
7857
8068
|
*/
|
|
7858
|
-
400:
|
|
8069
|
+
400: SubscriptionsErrorResponse;
|
|
7859
8070
|
/**
|
|
7860
8071
|
* Not found. The requested entity does not exist.
|
|
7861
8072
|
*/
|
|
7862
|
-
404:
|
|
8073
|
+
404: SubscriptionsErrorResponse;
|
|
7863
8074
|
/**
|
|
7864
8075
|
* Internal server error. There was a system failure in the platform.
|
|
7865
8076
|
*/
|
|
7866
|
-
500:
|
|
8077
|
+
500: SubscriptionsErrorResponse;
|
|
7867
8078
|
};
|
|
7868
8079
|
export type GetOfferingError = GetOfferingErrors[keyof GetOfferingErrors];
|
|
7869
8080
|
export type GetOfferingResponses = {
|
|
@@ -7882,7 +8093,7 @@ export type ListOfferingPlansData = {
|
|
|
7882
8093
|
/**
|
|
7883
8094
|
* The unique identifier of the offering.
|
|
7884
8095
|
*/
|
|
7885
|
-
offering_uuid:
|
|
8096
|
+
offering_uuid: SubscriptionsUuid;
|
|
7886
8097
|
};
|
|
7887
8098
|
query?: {
|
|
7888
8099
|
/**
|
|
@@ -7900,11 +8111,11 @@ export type ListOfferingPlansErrors = {
|
|
|
7900
8111
|
/**
|
|
7901
8112
|
* Not found. The requested entity does not exist.
|
|
7902
8113
|
*/
|
|
7903
|
-
404:
|
|
8114
|
+
404: SubscriptionsErrorResponse;
|
|
7904
8115
|
/**
|
|
7905
8116
|
* Internal server error. There was a system failure in the platform.
|
|
7906
8117
|
*/
|
|
7907
|
-
500:
|
|
8118
|
+
500: SubscriptionsErrorResponse;
|
|
7908
8119
|
};
|
|
7909
8120
|
export type ListOfferingPlansError = ListOfferingPlansErrors[keyof ListOfferingPlansErrors];
|
|
7910
8121
|
export type ListOfferingPlansResponses = {
|
|
@@ -7923,7 +8134,7 @@ export type ListOfferingFeaturesData = {
|
|
|
7923
8134
|
/**
|
|
7924
8135
|
* The unique identifier of the offering.
|
|
7925
8136
|
*/
|
|
7926
|
-
offering_uuid:
|
|
8137
|
+
offering_uuid: SubscriptionsUuid;
|
|
7927
8138
|
};
|
|
7928
8139
|
query?: {
|
|
7929
8140
|
/**
|
|
@@ -7941,11 +8152,11 @@ export type ListOfferingFeaturesErrors = {
|
|
|
7941
8152
|
/**
|
|
7942
8153
|
* Not found. The requested entity does not exist.
|
|
7943
8154
|
*/
|
|
7944
|
-
404:
|
|
8155
|
+
404: SubscriptionsErrorResponse;
|
|
7945
8156
|
/**
|
|
7946
8157
|
* Internal server error. There was a system failure in the platform.
|
|
7947
8158
|
*/
|
|
7948
|
-
500:
|
|
8159
|
+
500: SubscriptionsErrorResponse;
|
|
7949
8160
|
};
|
|
7950
8161
|
export type ListOfferingFeaturesError = ListOfferingFeaturesErrors[keyof ListOfferingFeaturesErrors];
|
|
7951
8162
|
export type ListOfferingFeaturesResponses = {
|
|
@@ -7964,7 +8175,7 @@ export type ListOfferingProductsData = {
|
|
|
7964
8175
|
/**
|
|
7965
8176
|
* The unique identifier of the offering.
|
|
7966
8177
|
*/
|
|
7967
|
-
offering_uuid:
|
|
8178
|
+
offering_uuid: SubscriptionsUuid;
|
|
7968
8179
|
};
|
|
7969
8180
|
query?: {
|
|
7970
8181
|
/**
|
|
@@ -7982,11 +8193,11 @@ export type ListOfferingProductsErrors = {
|
|
|
7982
8193
|
/**
|
|
7983
8194
|
* Not found. The requested entity does not exist.
|
|
7984
8195
|
*/
|
|
7985
|
-
404:
|
|
8196
|
+
404: SubscriptionsErrorResponse;
|
|
7986
8197
|
/**
|
|
7987
8198
|
* Internal server error. There was a system failure in the platform.
|
|
7988
8199
|
*/
|
|
7989
|
-
500:
|
|
8200
|
+
500: SubscriptionsErrorResponse;
|
|
7990
8201
|
};
|
|
7991
8202
|
export type ListOfferingProductsError = ListOfferingProductsErrors[keyof ListOfferingProductsErrors];
|
|
7992
8203
|
export type ListOfferingProductsResponses = {
|
|
@@ -8005,7 +8216,7 @@ export type GetFeatureData = {
|
|
|
8005
8216
|
/**
|
|
8006
8217
|
* The unique identifier of a feature.
|
|
8007
8218
|
*/
|
|
8008
|
-
feature_uuid:
|
|
8219
|
+
feature_uuid: SubscriptionsUuid;
|
|
8009
8220
|
};
|
|
8010
8221
|
query?: never;
|
|
8011
8222
|
url: "/v2/subscriptions/features/{feature_uuid}";
|
|
@@ -8014,15 +8225,15 @@ export type GetFeatureErrors = {
|
|
|
8014
8225
|
/**
|
|
8015
8226
|
* Bad request. The request failed validation.
|
|
8016
8227
|
*/
|
|
8017
|
-
400:
|
|
8228
|
+
400: SubscriptionsErrorResponse;
|
|
8018
8229
|
/**
|
|
8019
8230
|
* Not found. The requested entity does not exist.
|
|
8020
8231
|
*/
|
|
8021
|
-
404:
|
|
8232
|
+
404: SubscriptionsErrorResponse;
|
|
8022
8233
|
/**
|
|
8023
8234
|
* Internal server error. There was a system failure in the platform.
|
|
8024
8235
|
*/
|
|
8025
|
-
500:
|
|
8236
|
+
500: SubscriptionsErrorResponse;
|
|
8026
8237
|
};
|
|
8027
8238
|
export type GetFeatureError = GetFeatureErrors[keyof GetFeatureErrors];
|
|
8028
8239
|
export type GetFeatureResponses = {
|
|
@@ -8034,3 +8245,71 @@ export type GetFeatureResponses = {
|
|
|
8034
8245
|
};
|
|
8035
8246
|
};
|
|
8036
8247
|
export type GetFeatureResponse = GetFeatureResponses[keyof GetFeatureResponses];
|
|
8248
|
+
export type GetStockData = {
|
|
8249
|
+
body?: never;
|
|
8250
|
+
path: {
|
|
8251
|
+
/**
|
|
8252
|
+
* The unique identifier of the product.
|
|
8253
|
+
*/
|
|
8254
|
+
product_uuid: InventoriesUuid;
|
|
8255
|
+
};
|
|
8256
|
+
query?: never;
|
|
8257
|
+
url: "/v2/inventories/{product_uuid}";
|
|
8258
|
+
};
|
|
8259
|
+
export type GetStockErrors = {
|
|
8260
|
+
/**
|
|
8261
|
+
* Not found. The requested entity does not exist.
|
|
8262
|
+
*/
|
|
8263
|
+
404: InventoriesErrorResponse;
|
|
8264
|
+
/**
|
|
8265
|
+
* Internal server error. There was a system failure in the platform.
|
|
8266
|
+
*/
|
|
8267
|
+
500: InventoriesErrorResponse;
|
|
8268
|
+
};
|
|
8269
|
+
export type GetStockError = GetStockErrors[keyof GetStockErrors];
|
|
8270
|
+
export type GetStockResponses = {
|
|
8271
|
+
/**
|
|
8272
|
+
* Success. Returns the stock for the given product UUID
|
|
8273
|
+
*/
|
|
8274
|
+
200: {
|
|
8275
|
+
data: StockResponse;
|
|
8276
|
+
};
|
|
8277
|
+
};
|
|
8278
|
+
export type GetStockResponse = GetStockResponses[keyof GetStockResponses];
|
|
8279
|
+
export type ListLocationsData = {
|
|
8280
|
+
body?: never;
|
|
8281
|
+
path?: never;
|
|
8282
|
+
query?: {
|
|
8283
|
+
/**
|
|
8284
|
+
* The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](https://elasticpath.dev/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
|
|
8285
|
+
*/
|
|
8286
|
+
"page[offset]"?: number;
|
|
8287
|
+
/**
|
|
8288
|
+
* The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](https://elasticpath.dev/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
|
|
8289
|
+
*/
|
|
8290
|
+
"page[limit]"?: number;
|
|
8291
|
+
/**
|
|
8292
|
+
* Some Inventories API endpoints support filtering. For the general syntax, see [**Filtering**](/guides/Getting-Started/filtering), but you must go to a specific endpoint to understand the attributes and operators an endpoint supports.
|
|
8293
|
+
*
|
|
8294
|
+
*/
|
|
8295
|
+
filter?: string;
|
|
8296
|
+
};
|
|
8297
|
+
url: "/v2/inventories/locations";
|
|
8298
|
+
};
|
|
8299
|
+
export type ListLocationsErrors = {
|
|
8300
|
+
/**
|
|
8301
|
+
* Bad request. The request failed validation.
|
|
8302
|
+
*/
|
|
8303
|
+
400: InventoriesErrorResponse;
|
|
8304
|
+
};
|
|
8305
|
+
export type ListLocationsError = ListLocationsErrors[keyof ListLocationsErrors];
|
|
8306
|
+
export type ListLocationsResponses = {
|
|
8307
|
+
/**
|
|
8308
|
+
* Success. A list of locations is returned
|
|
8309
|
+
*/
|
|
8310
|
+
200: {
|
|
8311
|
+
data?: Array<Location>;
|
|
8312
|
+
links?: Links2;
|
|
8313
|
+
};
|
|
8314
|
+
};
|
|
8315
|
+
export type ListLocationsResponse = ListLocationsResponses[keyof ListLocationsResponses];
|