chargebee 3.32.0 → 3.33.0
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/CHANGELOG.md +6 -0
- package/cjs/environment.js +1 -1
- package/cjs/schema/estimate.schema.js +3 -3
- package/cjs/schema/gift.schema.js +1 -1
- package/cjs/schema/hosted_page.schema.js +2 -2
- package/cjs/schema/omnichannel_subscription.schema.js +4 -4
- package/cjs/schema/quote.schema.js +2 -2
- package/cjs/schema/subscription.schema.js +4 -4
- package/esm/environment.js +1 -1
- package/esm/schema/estimate.schema.js +3 -3
- package/esm/schema/gift.schema.js +1 -1
- package/esm/schema/hosted_page.schema.js +2 -2
- package/esm/schema/omnichannel_subscription.schema.js +5 -5
- package/esm/schema/quote.schema.js +2 -2
- package/esm/schema/subscription.schema.js +4 -4
- package/esm/schema/subscription_entitlement.schema.js +2 -2
- package/package.json +1 -1
- package/types/resources/Coupon.d.ts +2 -2
- package/types/resources/Estimate.d.ts +3 -3
- package/types/resources/Gift.d.ts +1 -1
- package/types/resources/HostedPage.d.ts +3 -3
- package/types/resources/Quote.d.ts +2 -2
- package/types/resources/QuotedSubscription.d.ts +2 -2
- package/types/resources/Subscription.d.ts +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
### v3.33.0 (2026-09-09)
|
|
2
|
+
* * *
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
* PC-V1 attributes (`plan_id`, `plan_quantity`, `plan_constraint`, `addon_constraint`, `embed`, etc.) are now typed as optional across all affected resources (`Subscription`, `Coupon`, `HostedPage`, `Quote`, `QuotedSubscription`, `Estimate`, `Gift`). PC-V1 and PC-V2 APIs coexist — these fields are absent in PC-V2 responses, so requiring them caused incorrect type errors for PC-V2 users.
|
|
5
|
+
|
|
6
|
+
|
|
1
7
|
### v3.32.0 (2026-09-08)
|
|
2
8
|
* * *
|
|
3
9
|
### New Features
|
package/cjs/environment.js
CHANGED
|
@@ -11,7 +11,7 @@ exports.Environment = {
|
|
|
11
11
|
hostSuffix: '.chargebee.com',
|
|
12
12
|
apiPath: '/api/v2',
|
|
13
13
|
timeout: DEFAULT_TIME_OUT,
|
|
14
|
-
clientVersion: 'v3.
|
|
14
|
+
clientVersion: 'v3.33.0',
|
|
15
15
|
port: DEFAULT_PORT,
|
|
16
16
|
timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
|
|
17
17
|
exportWaitInMillis: DEFAULT_EXPORT_WAIT,
|
|
@@ -8,7 +8,7 @@ const zod_1 = require("zod");
|
|
|
8
8
|
//Estimate.createSubscription
|
|
9
9
|
const CreateSubscriptionEstimateSubscriptionSchema = zod_1.z.object({
|
|
10
10
|
id: zod_1.z.string().max(50).optional(),
|
|
11
|
-
plan_id: zod_1.z.string().max(100),
|
|
11
|
+
plan_id: zod_1.z.string().max(100).optional(),
|
|
12
12
|
plan_quantity: zod_1.z.number().int().min(1).optional(),
|
|
13
13
|
plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
|
|
14
14
|
plan_unit_price: zod_1.z.number().int().min(0).optional(),
|
|
@@ -359,7 +359,7 @@ exports.CreateSubItemEstimateEstimateBodySchema = CreateSubItemEstimateEstimateB
|
|
|
359
359
|
//Estimate.createSubForCustomerEstimate
|
|
360
360
|
const CreateSubForCustomerEstimateEstimateSubscriptionSchema = zod_1.z.object({
|
|
361
361
|
id: zod_1.z.string().max(50).optional(),
|
|
362
|
-
plan_id: zod_1.z.string().max(100),
|
|
362
|
+
plan_id: zod_1.z.string().max(100).optional(),
|
|
363
363
|
plan_quantity: zod_1.z.number().int().min(1).optional(),
|
|
364
364
|
plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
|
|
365
365
|
plan_unit_price: zod_1.z.number().int().min(0).optional(),
|
|
@@ -1187,7 +1187,7 @@ const GiftSubscriptionEstimateShippingAddressSchema = zod_1.z.object({
|
|
|
1187
1187
|
.optional(),
|
|
1188
1188
|
});
|
|
1189
1189
|
const GiftSubscriptionEstimateSubscriptionSchema = zod_1.z.object({
|
|
1190
|
-
plan_id: zod_1.z.string().max(100),
|
|
1190
|
+
plan_id: zod_1.z.string().max(100).optional(),
|
|
1191
1191
|
plan_quantity: zod_1.z.number().int().min(1).optional(),
|
|
1192
1192
|
plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
|
|
1193
1193
|
});
|
|
@@ -102,7 +102,7 @@ const CreateGiftShippingAddressSchema = zod_1.z.object({
|
|
|
102
102
|
.optional(),
|
|
103
103
|
});
|
|
104
104
|
const CreateGiftSubscriptionSchema = zod_1.z.looseObject({
|
|
105
|
-
plan_id: zod_1.z.string().max(100),
|
|
105
|
+
plan_id: zod_1.z.string().max(100).optional(),
|
|
106
106
|
plan_quantity: zod_1.z.number().int().min(1).optional(),
|
|
107
107
|
plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
|
|
108
108
|
});
|
|
@@ -8,7 +8,7 @@ const zod_1 = require("zod");
|
|
|
8
8
|
//HostedPage.checkoutNew
|
|
9
9
|
const CheckoutNewHostedPageSubscriptionSchema = zod_1.z.looseObject({
|
|
10
10
|
id: zod_1.z.string().max(50).optional(),
|
|
11
|
-
plan_id: zod_1.z.string().max(100),
|
|
11
|
+
plan_id: zod_1.z.string().max(100).optional(),
|
|
12
12
|
plan_quantity: zod_1.z.number().int().min(1).optional(),
|
|
13
13
|
plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
|
|
14
14
|
plan_unit_price: zod_1.z.number().int().min(0).optional(),
|
|
@@ -1551,7 +1551,7 @@ const CheckoutGiftHostedPageGifterSchema = zod_1.z.object({
|
|
|
1551
1551
|
customer_id: zod_1.z.string().max(50).optional(),
|
|
1552
1552
|
});
|
|
1553
1553
|
const CheckoutGiftHostedPageSubscriptionSchema = zod_1.z.looseObject({
|
|
1554
|
-
plan_id: zod_1.z.string().max(100),
|
|
1554
|
+
plan_id: zod_1.z.string().max(100).optional(),
|
|
1555
1555
|
plan_quantity: zod_1.z.number().int().min(1).optional(),
|
|
1556
1556
|
plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
|
|
1557
1557
|
coupon: zod_1.z.string().max(100).optional(),
|
|
@@ -34,16 +34,16 @@ const ListOmnichannelSubscriptionIdAtSourceSchema = zod_1.z.object({
|
|
|
34
34
|
not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
35
35
|
});
|
|
36
36
|
const ListOmnichannelSubscriptionUpdatedAtSchema = zod_1.z.object({
|
|
37
|
-
after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
38
|
-
on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
39
37
|
before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
40
38
|
between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
41
|
-
});
|
|
42
|
-
const ListOmnichannelSubscriptionPurchasedAtSchema = zod_1.z.object({
|
|
43
39
|
after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
44
40
|
on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
41
|
+
});
|
|
42
|
+
const ListOmnichannelSubscriptionPurchasedAtSchema = zod_1.z.object({
|
|
45
43
|
before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
46
44
|
between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
45
|
+
after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
46
|
+
on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
47
47
|
});
|
|
48
48
|
const ListOmnichannelSubscriptionSortBySchema = zod_1.z.looseObject({
|
|
49
49
|
asc: zod_1.z.enum(['created_at', 'updated_at']).optional(),
|
|
@@ -9,7 +9,7 @@ const zod_1 = require("zod");
|
|
|
9
9
|
const CreateSubForCustomerQuoteQuoteSubscriptionSchema = zod_1.z.object({
|
|
10
10
|
id: zod_1.z.string().max(50).optional(),
|
|
11
11
|
po_number: zod_1.z.string().max(100).optional(),
|
|
12
|
-
plan_id: zod_1.z.string().max(100),
|
|
12
|
+
plan_id: zod_1.z.string().max(100).optional(),
|
|
13
13
|
plan_quantity: zod_1.z.number().int().min(1).optional(),
|
|
14
14
|
plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
|
|
15
15
|
plan_unit_price: zod_1.z.number().int().min(0).optional(),
|
|
@@ -117,7 +117,7 @@ exports.CreateSubForCustomerQuoteQuoteBodySchema = CreateSubForCustomerQuoteQuot
|
|
|
117
117
|
const EditCreateSubForCustomerQuoteQuoteSubscriptionSchema = zod_1.z.object({
|
|
118
118
|
id: zod_1.z.string().max(50).optional(),
|
|
119
119
|
po_number: zod_1.z.string().max(100).optional(),
|
|
120
|
-
plan_id: zod_1.z.string().max(100),
|
|
120
|
+
plan_id: zod_1.z.string().max(100).optional(),
|
|
121
121
|
plan_quantity: zod_1.z.number().int().min(1).optional(),
|
|
122
122
|
plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
|
|
123
123
|
plan_unit_price: zod_1.z.number().int().min(0).optional(),
|
|
@@ -451,7 +451,7 @@ const CreateSubscriptionCouponsSchema = zod_1.z.object({
|
|
|
451
451
|
});
|
|
452
452
|
const CreateSubscriptionBodySchema = zod_1.z.looseObject({
|
|
453
453
|
id: zod_1.z.string().max(50).optional(),
|
|
454
|
-
plan_id: zod_1.z.string().max(100),
|
|
454
|
+
plan_id: zod_1.z.string().max(100).optional(),
|
|
455
455
|
plan_quantity: zod_1.z.number().int().min(1).optional(),
|
|
456
456
|
plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
|
|
457
457
|
plan_unit_price: zod_1.z.number().int().min(0).optional(),
|
|
@@ -657,7 +657,7 @@ const CreateForCustomerSubscriptionCouponsSchema = zod_1.z.object({
|
|
|
657
657
|
});
|
|
658
658
|
const CreateForCustomerSubscriptionBodySchema = zod_1.z.looseObject({
|
|
659
659
|
id: zod_1.z.string().max(50).optional(),
|
|
660
|
-
plan_id: zod_1.z.string().max(100),
|
|
660
|
+
plan_id: zod_1.z.string().max(100).optional(),
|
|
661
661
|
plan_quantity: zod_1.z.number().int().min(1).optional(),
|
|
662
662
|
plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
|
|
663
663
|
plan_unit_price: zod_1.z.number().int().min(0).optional(),
|
|
@@ -2799,7 +2799,7 @@ const ImportSubscriptionSubscriptionCouponsSchema = zod_1.z.object({
|
|
|
2799
2799
|
const ImportSubscriptionSubscriptionBodySchema = zod_1.z.looseObject({
|
|
2800
2800
|
id: zod_1.z.string().max(50).optional(),
|
|
2801
2801
|
client_profile_id: zod_1.z.string().max(50).optional(),
|
|
2802
|
-
plan_id: zod_1.z.string().max(100),
|
|
2802
|
+
plan_id: zod_1.z.string().max(100).optional(),
|
|
2803
2803
|
plan_quantity: zod_1.z.number().int().min(1).optional(),
|
|
2804
2804
|
plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
|
|
2805
2805
|
plan_unit_price: zod_1.z.number().int().min(0).optional(),
|
|
@@ -2943,7 +2943,7 @@ const ImportForCustomerSubscriptionCouponsSchema = zod_1.z.object({
|
|
|
2943
2943
|
});
|
|
2944
2944
|
const ImportForCustomerSubscriptionBodySchema = zod_1.z.looseObject({
|
|
2945
2945
|
id: zod_1.z.string().max(50).optional(),
|
|
2946
|
-
plan_id: zod_1.z.string().max(100),
|
|
2946
|
+
plan_id: zod_1.z.string().max(100).optional(),
|
|
2947
2947
|
plan_quantity: zod_1.z.number().int().min(1).optional(),
|
|
2948
2948
|
plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
|
|
2949
2949
|
plan_unit_price: zod_1.z.number().int().min(0).optional(),
|
package/esm/environment.js
CHANGED
|
@@ -8,7 +8,7 @@ export const Environment = {
|
|
|
8
8
|
hostSuffix: '.chargebee.com',
|
|
9
9
|
apiPath: '/api/v2',
|
|
10
10
|
timeout: DEFAULT_TIME_OUT,
|
|
11
|
-
clientVersion: 'v3.
|
|
11
|
+
clientVersion: 'v3.33.0',
|
|
12
12
|
port: DEFAULT_PORT,
|
|
13
13
|
timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
|
|
14
14
|
exportWaitInMillis: DEFAULT_EXPORT_WAIT,
|
|
@@ -5,7 +5,7 @@ import { z } from 'zod';
|
|
|
5
5
|
//Estimate.createSubscription
|
|
6
6
|
const CreateSubscriptionEstimateSubscriptionSchema = z.object({
|
|
7
7
|
id: z.string().max(50).optional(),
|
|
8
|
-
plan_id: z.string().max(100),
|
|
8
|
+
plan_id: z.string().max(100).optional(),
|
|
9
9
|
plan_quantity: z.number().int().min(1).optional(),
|
|
10
10
|
plan_quantity_in_decimal: z.string().max(33).optional(),
|
|
11
11
|
plan_unit_price: z.number().int().min(0).optional(),
|
|
@@ -356,7 +356,7 @@ export { CreateSubItemEstimateEstimateBodySchema };
|
|
|
356
356
|
//Estimate.createSubForCustomerEstimate
|
|
357
357
|
const CreateSubForCustomerEstimateEstimateSubscriptionSchema = z.object({
|
|
358
358
|
id: z.string().max(50).optional(),
|
|
359
|
-
plan_id: z.string().max(100),
|
|
359
|
+
plan_id: z.string().max(100).optional(),
|
|
360
360
|
plan_quantity: z.number().int().min(1).optional(),
|
|
361
361
|
plan_quantity_in_decimal: z.string().max(33).optional(),
|
|
362
362
|
plan_unit_price: z.number().int().min(0).optional(),
|
|
@@ -1184,7 +1184,7 @@ const GiftSubscriptionEstimateShippingAddressSchema = z.object({
|
|
|
1184
1184
|
.optional(),
|
|
1185
1185
|
});
|
|
1186
1186
|
const GiftSubscriptionEstimateSubscriptionSchema = z.object({
|
|
1187
|
-
plan_id: z.string().max(100),
|
|
1187
|
+
plan_id: z.string().max(100).optional(),
|
|
1188
1188
|
plan_quantity: z.number().int().min(1).optional(),
|
|
1189
1189
|
plan_quantity_in_decimal: z.string().max(33).optional(),
|
|
1190
1190
|
});
|
|
@@ -99,7 +99,7 @@ const CreateGiftShippingAddressSchema = z.object({
|
|
|
99
99
|
.optional(),
|
|
100
100
|
});
|
|
101
101
|
const CreateGiftSubscriptionSchema = z.looseObject({
|
|
102
|
-
plan_id: z.string().max(100),
|
|
102
|
+
plan_id: z.string().max(100).optional(),
|
|
103
103
|
plan_quantity: z.number().int().min(1).optional(),
|
|
104
104
|
plan_quantity_in_decimal: z.string().max(33).optional(),
|
|
105
105
|
});
|
|
@@ -5,7 +5,7 @@ import { z } from 'zod';
|
|
|
5
5
|
//HostedPage.checkoutNew
|
|
6
6
|
const CheckoutNewHostedPageSubscriptionSchema = z.looseObject({
|
|
7
7
|
id: z.string().max(50).optional(),
|
|
8
|
-
plan_id: z.string().max(100),
|
|
8
|
+
plan_id: z.string().max(100).optional(),
|
|
9
9
|
plan_quantity: z.number().int().min(1).optional(),
|
|
10
10
|
plan_quantity_in_decimal: z.string().max(33).optional(),
|
|
11
11
|
plan_unit_price: z.number().int().min(0).optional(),
|
|
@@ -1548,7 +1548,7 @@ const CheckoutGiftHostedPageGifterSchema = z.object({
|
|
|
1548
1548
|
customer_id: z.string().max(50).optional(),
|
|
1549
1549
|
});
|
|
1550
1550
|
const CheckoutGiftHostedPageSubscriptionSchema = z.looseObject({
|
|
1551
|
-
plan_id: z.string().max(100),
|
|
1551
|
+
plan_id: z.string().max(100).optional(),
|
|
1552
1552
|
plan_quantity: z.number().int().min(1).optional(),
|
|
1553
1553
|
plan_quantity_in_decimal: z.string().max(33).optional(),
|
|
1554
1554
|
coupon: z.string().max(100).optional(),
|
|
@@ -31,16 +31,16 @@ const ListOmnichannelSubscriptionIdAtSourceSchema = z.object({
|
|
|
31
31
|
not_in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
32
32
|
});
|
|
33
33
|
const ListOmnichannelSubscriptionUpdatedAtSchema = z.object({
|
|
34
|
-
after: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
35
|
-
on: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
36
34
|
before: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
37
35
|
between: z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
38
|
-
});
|
|
39
|
-
const ListOmnichannelSubscriptionPurchasedAtSchema = z.object({
|
|
40
36
|
after: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
41
37
|
on: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
38
|
+
});
|
|
39
|
+
const ListOmnichannelSubscriptionPurchasedAtSchema = z.object({
|
|
42
40
|
before: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
43
41
|
between: z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
42
|
+
after: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
43
|
+
on: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
44
44
|
});
|
|
45
45
|
const ListOmnichannelSubscriptionSortBySchema = z.looseObject({
|
|
46
46
|
asc: z.enum(['created_at', 'updated_at']).optional(),
|
|
@@ -115,7 +115,7 @@ const OmnichannelTransactionsforomnichannelsubscriptionOmnichannelSubscriptionBo
|
|
|
115
115
|
limit: z.number().int().min(1).max(100).optional(),
|
|
116
116
|
offset: z.string().max(1000).optional(),
|
|
117
117
|
});
|
|
118
|
-
export { OmnichannelTransactionsforomnichannelsubscriptionOmnichannelSubscriptionBodySchema };
|
|
118
|
+
export { OmnichannelTransactionsforomnichannelsubscriptionOmnichannelSubscriptionBodySchema, };
|
|
119
119
|
//OmnichannelSubscription.move
|
|
120
120
|
const MoveOmnichannelSubscriptionBodySchema = z.looseObject({
|
|
121
121
|
to_customer_id: z.string().max(50),
|
|
@@ -6,7 +6,7 @@ import { z } from 'zod';
|
|
|
6
6
|
const CreateSubForCustomerQuoteQuoteSubscriptionSchema = z.object({
|
|
7
7
|
id: z.string().max(50).optional(),
|
|
8
8
|
po_number: z.string().max(100).optional(),
|
|
9
|
-
plan_id: z.string().max(100),
|
|
9
|
+
plan_id: z.string().max(100).optional(),
|
|
10
10
|
plan_quantity: z.number().int().min(1).optional(),
|
|
11
11
|
plan_quantity_in_decimal: z.string().max(33).optional(),
|
|
12
12
|
plan_unit_price: z.number().int().min(0).optional(),
|
|
@@ -114,7 +114,7 @@ export { CreateSubForCustomerQuoteQuoteBodySchema };
|
|
|
114
114
|
const EditCreateSubForCustomerQuoteQuoteSubscriptionSchema = z.object({
|
|
115
115
|
id: z.string().max(50).optional(),
|
|
116
116
|
po_number: z.string().max(100).optional(),
|
|
117
|
-
plan_id: z.string().max(100),
|
|
117
|
+
plan_id: z.string().max(100).optional(),
|
|
118
118
|
plan_quantity: z.number().int().min(1).optional(),
|
|
119
119
|
plan_quantity_in_decimal: z.string().max(33).optional(),
|
|
120
120
|
plan_unit_price: z.number().int().min(0).optional(),
|
|
@@ -448,7 +448,7 @@ const CreateSubscriptionCouponsSchema = z.object({
|
|
|
448
448
|
});
|
|
449
449
|
const CreateSubscriptionBodySchema = z.looseObject({
|
|
450
450
|
id: z.string().max(50).optional(),
|
|
451
|
-
plan_id: z.string().max(100),
|
|
451
|
+
plan_id: z.string().max(100).optional(),
|
|
452
452
|
plan_quantity: z.number().int().min(1).optional(),
|
|
453
453
|
plan_quantity_in_decimal: z.string().max(33).optional(),
|
|
454
454
|
plan_unit_price: z.number().int().min(0).optional(),
|
|
@@ -654,7 +654,7 @@ const CreateForCustomerSubscriptionCouponsSchema = z.object({
|
|
|
654
654
|
});
|
|
655
655
|
const CreateForCustomerSubscriptionBodySchema = z.looseObject({
|
|
656
656
|
id: z.string().max(50).optional(),
|
|
657
|
-
plan_id: z.string().max(100),
|
|
657
|
+
plan_id: z.string().max(100).optional(),
|
|
658
658
|
plan_quantity: z.number().int().min(1).optional(),
|
|
659
659
|
plan_quantity_in_decimal: z.string().max(33).optional(),
|
|
660
660
|
plan_unit_price: z.number().int().min(0).optional(),
|
|
@@ -2796,7 +2796,7 @@ const ImportSubscriptionSubscriptionCouponsSchema = z.object({
|
|
|
2796
2796
|
const ImportSubscriptionSubscriptionBodySchema = z.looseObject({
|
|
2797
2797
|
id: z.string().max(50).optional(),
|
|
2798
2798
|
client_profile_id: z.string().max(50).optional(),
|
|
2799
|
-
plan_id: z.string().max(100),
|
|
2799
|
+
plan_id: z.string().max(100).optional(),
|
|
2800
2800
|
plan_quantity: z.number().int().min(1).optional(),
|
|
2801
2801
|
plan_quantity_in_decimal: z.string().max(33).optional(),
|
|
2802
2802
|
plan_unit_price: z.number().int().min(0).optional(),
|
|
@@ -2940,7 +2940,7 @@ const ImportForCustomerSubscriptionCouponsSchema = z.object({
|
|
|
2940
2940
|
});
|
|
2941
2941
|
const ImportForCustomerSubscriptionBodySchema = z.looseObject({
|
|
2942
2942
|
id: z.string().max(50).optional(),
|
|
2943
|
-
plan_id: z.string().max(100),
|
|
2943
|
+
plan_id: z.string().max(100).optional(),
|
|
2944
2944
|
plan_quantity: z.number().int().min(1).optional(),
|
|
2945
2945
|
plan_quantity_in_decimal: z.string().max(33).optional(),
|
|
2946
2946
|
plan_unit_price: z.number().int().min(0).optional(),
|
|
@@ -10,7 +10,7 @@ const SubscriptionEntitlementsForSubscriptionSubscriptionEntitlementBodySchema =
|
|
|
10
10
|
embed: z.string().max(1000).optional(),
|
|
11
11
|
include_scheduled_overrides: z.boolean().default(false).optional(),
|
|
12
12
|
});
|
|
13
|
-
export { SubscriptionEntitlementsForSubscriptionSubscriptionEntitlementBodySchema };
|
|
13
|
+
export { SubscriptionEntitlementsForSubscriptionSubscriptionEntitlementBodySchema, };
|
|
14
14
|
//SubscriptionEntitlement.setSubscriptionEntitlementAvailability
|
|
15
15
|
const SetSubscriptionEntitlementAvailabilitySubscriptionEntitlementSubscriptionEntitlementsSchema = z.object({
|
|
16
16
|
feature_id: z.array(z.string().max(50).optional()),
|
|
@@ -19,4 +19,4 @@ const SetSubscriptionEntitlementAvailabilitySubscriptionEntitlementBodySchema =
|
|
|
19
19
|
is_enabled: z.boolean(),
|
|
20
20
|
subscription_entitlements: SetSubscriptionEntitlementAvailabilitySubscriptionEntitlementSubscriptionEntitlementsSchema.optional(),
|
|
21
21
|
});
|
|
22
|
-
export { SetSubscriptionEntitlementAvailabilitySubscriptionEntitlementBodySchema };
|
|
22
|
+
export { SetSubscriptionEntitlementAvailabilitySubscriptionEntitlementBodySchema, };
|
package/package.json
CHANGED
|
@@ -24,8 +24,8 @@ declare module 'chargebee' {
|
|
|
24
24
|
| 'plans_with_quantity'
|
|
25
25
|
| 'not_applicable';
|
|
26
26
|
apply_on: 'invoice_amount' | 'each_specified_item';
|
|
27
|
-
plan_constraint
|
|
28
|
-
addon_constraint
|
|
27
|
+
plan_constraint?: 'none' | 'all' | 'specific' | 'not_applicable';
|
|
28
|
+
addon_constraint?: 'none' | 'all' | 'specific' | 'not_applicable';
|
|
29
29
|
created_at: number;
|
|
30
30
|
archived_at?: number;
|
|
31
31
|
resource_version?: number;
|
|
@@ -506,7 +506,7 @@ declare module 'chargebee' {
|
|
|
506
506
|
}
|
|
507
507
|
export interface SubscriptionCreateSubscriptionInputParam {
|
|
508
508
|
id?: string;
|
|
509
|
-
plan_id
|
|
509
|
+
plan_id?: string;
|
|
510
510
|
plan_quantity?: number;
|
|
511
511
|
plan_quantity_in_decimal?: string;
|
|
512
512
|
plan_unit_price?: number;
|
|
@@ -667,7 +667,7 @@ declare module 'chargebee' {
|
|
|
667
667
|
}
|
|
668
668
|
export interface SubscriptionCreateSubForCustomerEstimateInputParam {
|
|
669
669
|
id?: string;
|
|
670
|
-
plan_id
|
|
670
|
+
plan_id?: string;
|
|
671
671
|
plan_quantity?: number;
|
|
672
672
|
plan_quantity_in_decimal?: string;
|
|
673
673
|
plan_unit_price?: number;
|
|
@@ -1087,7 +1087,7 @@ declare module 'chargebee' {
|
|
|
1087
1087
|
additional_information?: any;
|
|
1088
1088
|
}
|
|
1089
1089
|
export interface SubscriptionGiftSubscriptionInputParam {
|
|
1090
|
-
plan_id
|
|
1090
|
+
plan_id?: string;
|
|
1091
1091
|
plan_quantity?: number;
|
|
1092
1092
|
plan_quantity_in_decimal?: string;
|
|
1093
1093
|
}
|
|
@@ -25,7 +25,7 @@ declare module 'chargebee' {
|
|
|
25
25
|
| 'acknowledged';
|
|
26
26
|
failure_reason?: 'card_error' | 'server_error';
|
|
27
27
|
pass_thru_content?: string;
|
|
28
|
-
embed
|
|
28
|
+
embed?: boolean;
|
|
29
29
|
created_at?: number;
|
|
30
30
|
expires_at?: number;
|
|
31
31
|
layout?: LayoutEnum;
|
|
@@ -532,7 +532,7 @@ declare module 'chargebee' {
|
|
|
532
532
|
}
|
|
533
533
|
export interface SubscriptionCheckoutNewInputParam {
|
|
534
534
|
id?: string;
|
|
535
|
-
plan_id
|
|
535
|
+
plan_id?: string;
|
|
536
536
|
plan_quantity?: number;
|
|
537
537
|
plan_quantity_in_decimal?: string;
|
|
538
538
|
plan_unit_price?: number;
|
|
@@ -1097,7 +1097,7 @@ declare module 'chargebee' {
|
|
|
1097
1097
|
customer_id?: string;
|
|
1098
1098
|
}
|
|
1099
1099
|
export interface SubscriptionCheckoutGiftInputParam {
|
|
1100
|
-
plan_id
|
|
1100
|
+
plan_id?: string;
|
|
1101
1101
|
plan_quantity?: number;
|
|
1102
1102
|
plan_quantity_in_decimal?: string;
|
|
1103
1103
|
/**
|
|
@@ -843,7 +843,7 @@ declare module 'chargebee' {
|
|
|
843
843
|
export interface SubscriptionCreateSubForCustomerQuoteInputParam {
|
|
844
844
|
id?: string;
|
|
845
845
|
po_number?: string;
|
|
846
|
-
plan_id
|
|
846
|
+
plan_id?: string;
|
|
847
847
|
plan_quantity?: number;
|
|
848
848
|
plan_quantity_in_decimal?: string;
|
|
849
849
|
plan_unit_price?: number;
|
|
@@ -898,7 +898,7 @@ declare module 'chargebee' {
|
|
|
898
898
|
export interface SubscriptionEditCreateSubForCustomerQuoteInputParam {
|
|
899
899
|
id?: string;
|
|
900
900
|
po_number?: string;
|
|
901
|
-
plan_id
|
|
901
|
+
plan_id?: string;
|
|
902
902
|
plan_quantity?: number;
|
|
903
903
|
plan_quantity_in_decimal?: string;
|
|
904
904
|
plan_unit_price?: number;
|
|
@@ -6,8 +6,8 @@ declare module 'chargebee' {
|
|
|
6
6
|
[key: string]: unknown;
|
|
7
7
|
id: string;
|
|
8
8
|
currency_code: string;
|
|
9
|
-
plan_id
|
|
10
|
-
plan_quantity
|
|
9
|
+
plan_id?: string;
|
|
10
|
+
plan_quantity?: number;
|
|
11
11
|
plan_unit_price?: number;
|
|
12
12
|
setup_fee?: number;
|
|
13
13
|
billing_period?: number;
|
|
@@ -715,7 +715,7 @@ declare module 'chargebee' {
|
|
|
715
715
|
|
|
716
716
|
export interface CreateInputParam {
|
|
717
717
|
id?: string;
|
|
718
|
-
plan_id
|
|
718
|
+
plan_id?: string;
|
|
719
719
|
plan_quantity?: number;
|
|
720
720
|
plan_quantity_in_decimal?: string;
|
|
721
721
|
plan_unit_price?: number;
|
|
@@ -769,7 +769,7 @@ declare module 'chargebee' {
|
|
|
769
769
|
}
|
|
770
770
|
export interface CreateForCustomerInputParam {
|
|
771
771
|
id?: string;
|
|
772
|
-
plan_id
|
|
772
|
+
plan_id?: string;
|
|
773
773
|
plan_quantity?: number;
|
|
774
774
|
plan_quantity_in_decimal?: string;
|
|
775
775
|
plan_unit_price?: number;
|
|
@@ -1087,7 +1087,7 @@ declare module 'chargebee' {
|
|
|
1087
1087
|
export interface ImportSubscriptionInputParam {
|
|
1088
1088
|
id?: string;
|
|
1089
1089
|
client_profile_id?: string;
|
|
1090
|
-
plan_id
|
|
1090
|
+
plan_id?: string;
|
|
1091
1091
|
plan_quantity?: number;
|
|
1092
1092
|
plan_quantity_in_decimal?: string;
|
|
1093
1093
|
plan_unit_price?: number;
|
|
@@ -1135,7 +1135,7 @@ declare module 'chargebee' {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
export interface ImportForCustomerInputParam {
|
|
1137
1137
|
id?: string;
|
|
1138
|
-
plan_id
|
|
1138
|
+
plan_id?: string;
|
|
1139
1139
|
plan_quantity?: number;
|
|
1140
1140
|
plan_quantity_in_decimal?: string;
|
|
1141
1141
|
plan_unit_price?: number;
|