chargebee 3.18.0 → 3.20.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 +57 -1
- package/README.md +1 -1
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +0 -13
- package/cjs/resources/webhook/eventType.js +1 -0
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +0 -13
- package/esm/resources/webhook/eventType.js +1 -0
- package/package.json +1 -1
- package/types/core.d.ts +20 -3
- package/types/index.d.ts +0 -7
- package/types/resources/Content.d.ts +0 -5
- package/types/resources/Coupon.d.ts +1 -0
- package/types/resources/CreditNote.d.ts +8 -1
- package/types/resources/Customer.d.ts +14 -2
- package/types/resources/Einvoice.d.ts +8 -1
- package/types/resources/EntitlementOverride.d.ts +5 -0
- package/types/resources/Estimate.d.ts +14 -2
- package/types/resources/Event.d.ts +1 -0
- package/types/resources/Export.d.ts +1 -0
- package/types/resources/Gift.d.ts +14 -2
- package/types/resources/HostedPage.d.ts +1 -0
- package/types/resources/Invoice.d.ts +22 -3
- package/types/resources/ItemPrice.d.ts +0 -18
- package/types/resources/OmnichannelSubscription.d.ts +5 -0
- package/types/resources/PaymentIntent.d.ts +35 -5
- package/types/resources/PaymentSource.d.ts +7 -1
- package/types/resources/PricingPageSession.d.ts +1 -1
- package/types/resources/Purchase.d.ts +7 -1
- package/types/resources/Subscription.d.ts +51 -7
- package/types/resources/WebhookEvent.d.ts +9 -12
- package/types/resources/BusinessEntityChange.d.ts +0 -16
- package/types/resources/Product.d.ts +0 -135
- package/types/resources/SalesOrder.d.ts +0 -153
- package/types/resources/UsageReminderInfo.d.ts +0 -9
- package/types/resources/Variant.d.ts +0 -116
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,59 @@
|
|
|
1
|
+
### v3.20.0 (2026-02-06)
|
|
2
|
+
* * *
|
|
3
|
+
### New Attributes:
|
|
4
|
+
- [`subscription_id`](https://apidocs.chargebee.com/docs/api/entitlement_overrides/entitlement-override-object#subscription_id) has been added to [`EntitlementOverride`](https://apidocs.chargebee.com/docs/api/entitlement_overrides).
|
|
5
|
+
- [`is_enabled`](https://apidocs.chargebee.com/docs/api/entitlement_overrides/entitlement-override-object#is_enabled) has been added to [`EntitlementOverride`](https://apidocs.chargebee.com/docs/api/entitlement_overrides).
|
|
6
|
+
- [`decommissioned`](https://apidocs.chargebee.com/docs/api/subscriptions/subscription-object#decommissioned) has been added to [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions).
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### New Parameters:
|
|
10
|
+
- [`omnichannel_subscription_item`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#omnichannel_subscription_item) has been added as query parameter to [`list_omnichannel_subscriptions`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions) in [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions).
|
|
11
|
+
- [`entitlement_overrides.entity_id`](https://apidocs.chargebee.com/docs/api/entitlement_overrides/upsert-or-remove-entitlement-overrides-for-a-subscription#entitlement_overrides_entity_id) has been added as request body parameter to [`upsert_or_remove_entitlement_overrides_for_a_subscription`](https://apidocs.chargebee.com/docs/api/entitlement_overrides/upsert-or-remove-entitlement-overrides-for-a-subscription) in [`EntitlementOverride`](https://apidocs.chargebee.com/docs/api/entitlement_overrides).
|
|
12
|
+
- [`entitlement_overrides.entity_type`](https://apidocs.chargebee.com/docs/api/entitlement_overrides/upsert-or-remove-entitlement-overrides-for-a-subscription#entitlement_overrides_entity_type) has been added as request body parameter to [`upsert_or_remove_entitlement_overrides_for_a_subscription`](https://apidocs.chargebee.com/docs/api/entitlement_overrides/upsert-or-remove-entitlement-overrides-for-a-subscription) in [`EntitlementOverride`](https://apidocs.chargebee.com/docs/api/entitlement_overrides).
|
|
13
|
+
- [`entitlement_overrides.is_enabled`](https://apidocs.chargebee.com/docs/api/entitlement_overrides/upsert-or-remove-entitlement-overrides-for-a-subscription#entitlement_overrides_is_enabled) has been added as request body parameter to [`upsert_or_remove_entitlement_overrides_for_a_subscription`](https://apidocs.chargebee.com/docs/api/entitlement_overrides/upsert-or-remove-entitlement-overrides-for-a-subscription) in [`EntitlementOverride`](https://apidocs.chargebee.com/docs/api/entitlement_overrides).
|
|
14
|
+
- [`payment_method_save_policy`](https://apidocs.chargebee.com/docs/api/hosted_pages/collect-now#payment_method_save_policy) has been added as request body parameter to [`collect_now`](https://apidocs.chargebee.com/docs/api/hosted_pages/collect-now) in [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages).
|
|
15
|
+
- [`decommissioned`](https://apidocs.chargebee.com/docs/api/subscriptions/cancel-subscription-for-items#decommissioned) has been added as request body parameter to [`cancel_subscription_for_items`](https://apidocs.chargebee.com/docs/api/subscriptions/cancel-subscription-for-items) in [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions).
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Parameter Updates:
|
|
19
|
+
- [`pricing_page`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-existing-subscription#pricing_page) has been changed from required to optional in [`create_pricing_page_for_existing_subscription`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-existing-subscription) of [`PricingPageSession`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions).
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### New Events:
|
|
23
|
+
- [`payment_due_reminder`](https://apidocs.chargebee.com/docs/api/events/webhook/payment_due_reminder) has been added.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### New Enums:
|
|
27
|
+
- `charge` has been added as a new value enum `EntityType`.
|
|
28
|
+
- `payment_due_reminder` has been added as a new value enum `EventType`.
|
|
29
|
+
- `tempus` has been added as a new value enum `Gateway`.
|
|
30
|
+
- `kakao_pay`, `naver_pay`, `revolut_pay`, and `cash_app_pay` have been added as new values enum `PaymentMethod`.
|
|
31
|
+
- `always`, `ask`, and `never` have been added as new values enum `PaymentMethodSavePolicy`.
|
|
32
|
+
- `kakao_pay`, `naver_pay`, `revolut_pay`, and `cash_app_pay` have been added as new values enum `PaymentMethodType`.
|
|
33
|
+
- `kakao_pay`, `naver_pay`, `revolut_pay`, and `cash_app_pay` have been added as new values enum `Type`.
|
|
34
|
+
- `accepted`, `rejected`, `message_acknowledgement`, `in_process`, `under_query`, `conditionally_accepted`, and `paid` have been added as new values to enum attribute [`einvoice.status`](https://apidocs.chargebee.com/docs/api/credit_notes/credit-note-object#einvoice_status) in [`CreditNote`](https://apidocs.chargebee.com/docs/api/credit_notes).
|
|
35
|
+
- `accepted`, `rejected`, `message_acknowledgement`, `in_process`, `under_query`, `conditionally_accepted`, and `paid` have been added as new values to enum attribute [`status`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#status) in [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices).
|
|
36
|
+
- `accepted`, `rejected`, `message_acknowledgement`, `in_process`, `under_query`, `conditionally_accepted`, and `paid` have been added as new values to enum attribute [`einvoice.status`](https://apidocs.chargebee.com/docs/api/invoices/invoice-object#einvoice_status) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
|
|
37
|
+
- `kakao_pay`, `naver_pay`, `revolut_pay`, `cash_app_pay`, `wechat_pay`, and `alipay` have been added as new values to enum attribute [`payment_method_type`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#payment_method_type) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
|
|
38
|
+
- `kakao_pay`, `naver_pay`, `revolut_pay`, `cash_app_pay`, `wechat_pay`, and `alipay` have been added as new values to enum attribute [`active_payment_attempt.payment_method_type`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#active_payment_attempt_payment_method_type) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
|
|
39
|
+
- `kakao_pay`, `naver_pay`, `revolut_pay`, `cash_app_pay`, `wechat_pay`, and `alipay` have been added as new values to enum request body parameter `payment_method_type` in [`update_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/update-a-payment-intent) of [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
|
|
40
|
+
- `kakao_pay`, `naver_pay`, `revolut_pay`, `cash_app_pay`, `wechat_pay`, and `alipay` have been added as new values to enum request body parameter `payment_method_type` in [`create_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/create-a-payment-intent) of [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### v3.19.0 (2026-01-16)
|
|
45
|
+
* * *
|
|
46
|
+
|
|
47
|
+
### New Parameters:
|
|
48
|
+
* `applicable_item_price_ids` has been added to Coupon#CouponListRequest.
|
|
49
|
+
* `applicable_item_price_ids` has been added to Export#CouponRequest.
|
|
50
|
+
|
|
51
|
+
### New Enums:
|
|
52
|
+
* `Twikey` has been added to GatewayEnum.
|
|
53
|
+
|
|
54
|
+
### Deleted Action:
|
|
55
|
+
* `move` action has been removed from the ItemPrice.
|
|
56
|
+
|
|
1
57
|
### v3.18.0 (2026-01-12)
|
|
2
58
|
* * *
|
|
3
59
|
|
|
@@ -3388,4 +3444,4 @@ Support for deleting the plans & addons. See our API documentation on [Delete a
|
|
|
3388
3444
|
|
|
3389
3445
|
### v1.0.0 (2014-02-02)
|
|
3390
3446
|
* * *
|
|
3391
|
-
Initial version of ChargeBee NodeJS binding.
|
|
3447
|
+
Initial version of ChargeBee NodeJS binding.
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Chargebee Node.js / TypeScript Client Library
|
|
2
2
|
|
|
3
3
|
> [!NOTE]
|
|
4
|
-
> [](https://discord.gg/
|
|
4
|
+
> [](https://discord.gg/gpsNqnhDm2)
|
|
5
5
|
>
|
|
6
6
|
> We are trialing a Discord server for developers building with Chargebee. Limited spots are open on a first-come basis. Join [here](https://discord.gg/S3SXDzXHAg) if interested.
|
|
7
7
|
|
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.20.0',
|
|
15
15
|
port: DEFAULT_PORT,
|
|
16
16
|
timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
|
|
17
17
|
exportWaitInMillis: DEFAULT_EXPORT_WAIT,
|
|
@@ -3963,19 +3963,6 @@ exports.Endpoints = {
|
|
|
3963
3963
|
{},
|
|
3964
3964
|
{},
|
|
3965
3965
|
],
|
|
3966
|
-
[
|
|
3967
|
-
'moveItemPrice',
|
|
3968
|
-
'POST',
|
|
3969
|
-
'/item_prices',
|
|
3970
|
-
'/move',
|
|
3971
|
-
true,
|
|
3972
|
-
null,
|
|
3973
|
-
false,
|
|
3974
|
-
{},
|
|
3975
|
-
{
|
|
3976
|
-
isIdempotent: true,
|
|
3977
|
-
},
|
|
3978
|
-
],
|
|
3979
3966
|
],
|
|
3980
3967
|
attachedItem: [
|
|
3981
3968
|
[
|
|
@@ -125,6 +125,7 @@ var WebhookEventType;
|
|
|
125
125
|
WebhookEventType["OrderResent"] = "order_resent";
|
|
126
126
|
WebhookEventType["OrderReturned"] = "order_returned";
|
|
127
127
|
WebhookEventType["OrderUpdated"] = "order_updated";
|
|
128
|
+
WebhookEventType["PaymentDueReminder"] = "payment_due_reminder";
|
|
128
129
|
WebhookEventType["PaymentFailed"] = "payment_failed";
|
|
129
130
|
WebhookEventType["PaymentInitiated"] = "payment_initiated";
|
|
130
131
|
WebhookEventType["PaymentIntentCreated"] = "payment_intent_created";
|
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.20.0',
|
|
12
12
|
port: DEFAULT_PORT,
|
|
13
13
|
timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
|
|
14
14
|
exportWaitInMillis: DEFAULT_EXPORT_WAIT,
|
|
@@ -3960,19 +3960,6 @@ export const Endpoints = {
|
|
|
3960
3960
|
{},
|
|
3961
3961
|
{},
|
|
3962
3962
|
],
|
|
3963
|
-
[
|
|
3964
|
-
'moveItemPrice',
|
|
3965
|
-
'POST',
|
|
3966
|
-
'/item_prices',
|
|
3967
|
-
'/move',
|
|
3968
|
-
true,
|
|
3969
|
-
null,
|
|
3970
|
-
false,
|
|
3971
|
-
{},
|
|
3972
|
-
{
|
|
3973
|
-
isIdempotent: true,
|
|
3974
|
-
},
|
|
3975
|
-
],
|
|
3976
3963
|
],
|
|
3977
3964
|
attachedItem: [
|
|
3978
3965
|
[
|
|
@@ -122,6 +122,7 @@ export var WebhookEventType;
|
|
|
122
122
|
WebhookEventType["OrderResent"] = "order_resent";
|
|
123
123
|
WebhookEventType["OrderReturned"] = "order_returned";
|
|
124
124
|
WebhookEventType["OrderUpdated"] = "order_updated";
|
|
125
|
+
WebhookEventType["PaymentDueReminder"] = "payment_due_reminder";
|
|
125
126
|
WebhookEventType["PaymentFailed"] = "payment_failed";
|
|
126
127
|
WebhookEventType["PaymentInitiated"] = "payment_initiated";
|
|
127
128
|
WebhookEventType["PaymentIntentCreated"] = "payment_intent_created";
|
package/package.json
CHANGED
package/types/core.d.ts
CHANGED
|
@@ -151,7 +151,8 @@ declare module 'chargebee' {
|
|
|
151
151
|
| 'omnichannel_one_time_order_item'
|
|
152
152
|
| 'usage_file'
|
|
153
153
|
| 'business_rule'
|
|
154
|
-
| 'ruleset'
|
|
154
|
+
| 'ruleset'
|
|
155
|
+
| 'charge';
|
|
155
156
|
type EventNameEnum = 'cancellation_page_loaded';
|
|
156
157
|
type EventTypeEnum =
|
|
157
158
|
| 'coupon_created'
|
|
@@ -218,6 +219,7 @@ declare module 'chargebee' {
|
|
|
218
219
|
| 'payment_schedule_scheme_deleted'
|
|
219
220
|
| 'subscription_renewal_reminder'
|
|
220
221
|
| 'add_usages_reminder'
|
|
222
|
+
| 'payment_due_reminder'
|
|
221
223
|
| 'transaction_created'
|
|
222
224
|
| 'transaction_updated'
|
|
223
225
|
| 'transaction_deleted'
|
|
@@ -429,6 +431,8 @@ declare module 'chargebee' {
|
|
|
429
431
|
| 'jp_morgan'
|
|
430
432
|
| 'deutsche_bank'
|
|
431
433
|
| 'ezidebit'
|
|
434
|
+
| 'twikey'
|
|
435
|
+
| 'tempus'
|
|
432
436
|
| 'gocardless'
|
|
433
437
|
| 'not_applicable';
|
|
434
438
|
type HierarchyOperationTypeEnum =
|
|
@@ -508,7 +512,12 @@ declare module 'chargebee' {
|
|
|
508
512
|
| 'kbc_payment_button'
|
|
509
513
|
| 'pay_by_bank'
|
|
510
514
|
| 'trustly'
|
|
511
|
-
| 'stablecoin'
|
|
515
|
+
| 'stablecoin'
|
|
516
|
+
| 'kakao_pay'
|
|
517
|
+
| 'naver_pay'
|
|
518
|
+
| 'revolut_pay'
|
|
519
|
+
| 'cash_app_pay';
|
|
520
|
+
type PaymentMethodSavePolicyEnum = 'always' | 'ask' | 'never';
|
|
512
521
|
type PaymentMethodTypeEnum =
|
|
513
522
|
| 'card'
|
|
514
523
|
| 'paypal_express_checkout'
|
|
@@ -539,7 +548,11 @@ declare module 'chargebee' {
|
|
|
539
548
|
| 'kbc_payment_button'
|
|
540
549
|
| 'pay_by_bank'
|
|
541
550
|
| 'trustly'
|
|
542
|
-
| 'stablecoin'
|
|
551
|
+
| 'stablecoin'
|
|
552
|
+
| 'kakao_pay'
|
|
553
|
+
| 'naver_pay'
|
|
554
|
+
| 'revolut_pay'
|
|
555
|
+
| 'cash_app_pay';
|
|
543
556
|
type PaymentVoucherTypeEnum = 'boleto';
|
|
544
557
|
type PeriodUnitEnum = 'day' | 'week' | 'month' | 'year';
|
|
545
558
|
type PriceTypeEnum = 'tax_exclusive' | 'tax_inclusive';
|
|
@@ -638,6 +651,10 @@ declare module 'chargebee' {
|
|
|
638
651
|
| 'pay_by_bank'
|
|
639
652
|
| 'trustly'
|
|
640
653
|
| 'stablecoin'
|
|
654
|
+
| 'kakao_pay'
|
|
655
|
+
| 'naver_pay'
|
|
656
|
+
| 'revolut_pay'
|
|
657
|
+
| 'cash_app_pay'
|
|
641
658
|
| 'free_trial'
|
|
642
659
|
| 'pay_up_front'
|
|
643
660
|
| 'pay_as_you_go';
|
package/types/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
///<reference path='./resources/BillingConfiguration.d.ts' />
|
|
7
7
|
///<reference path='./resources/Brand.d.ts' />
|
|
8
8
|
///<reference path='./resources/BusinessEntity.d.ts' />
|
|
9
|
-
///<reference path='./resources/BusinessEntityChange.d.ts' />
|
|
10
9
|
///<reference path='./resources/BusinessEntityTransfer.d.ts' />
|
|
11
10
|
///<reference path='./resources/Card.d.ts' />
|
|
12
11
|
///<reference path='./resources/Comment.d.ts' />
|
|
@@ -70,7 +69,6 @@
|
|
|
70
69
|
///<reference path='./resources/PortalSession.d.ts' />
|
|
71
70
|
///<reference path='./resources/PriceVariant.d.ts' />
|
|
72
71
|
///<reference path='./resources/PricingPageSession.d.ts' />
|
|
73
|
-
///<reference path='./resources/Product.d.ts' />
|
|
74
72
|
///<reference path='./resources/PromotionalCredit.d.ts' />
|
|
75
73
|
///<reference path='./resources/Purchase.d.ts' />
|
|
76
74
|
///<reference path='./resources/Quote.d.ts' />
|
|
@@ -83,7 +81,6 @@
|
|
|
83
81
|
///<reference path='./resources/RecordedPurchase.d.ts' />
|
|
84
82
|
///<reference path='./resources/ResourceMigration.d.ts' />
|
|
85
83
|
///<reference path='./resources/Rule.d.ts' />
|
|
86
|
-
///<reference path='./resources/SalesOrder.d.ts' />
|
|
87
84
|
///<reference path='./resources/SiteMigrationDetail.d.ts' />
|
|
88
85
|
///<reference path='./resources/Subscription.d.ts' />
|
|
89
86
|
///<reference path='./resources/SubscriptionEntitlement.d.ts' />
|
|
@@ -99,8 +96,6 @@
|
|
|
99
96
|
///<reference path='./resources/Usage.d.ts' />
|
|
100
97
|
///<reference path='./resources/UsageEvent.d.ts' />
|
|
101
98
|
///<reference path='./resources/UsageFile.d.ts' />
|
|
102
|
-
///<reference path='./resources/UsageReminderInfo.d.ts' />
|
|
103
|
-
///<reference path='./resources/Variant.d.ts' />
|
|
104
99
|
///<reference path='./resources/VirtualBankAccount.d.ts' />
|
|
105
100
|
///<reference path='./resources/WebhookEndpoint.d.ts' />
|
|
106
101
|
///<reference path='./resources/Content.d.ts' />
|
|
@@ -229,7 +224,6 @@ declare module 'chargebee' {
|
|
|
229
224
|
portalSession: PortalSession.PortalSessionResource;
|
|
230
225
|
priceVariant: PriceVariant.PriceVariantResource;
|
|
231
226
|
pricingPageSession: PricingPageSession.PricingPageSessionResource;
|
|
232
|
-
product: Product.ProductResource;
|
|
233
227
|
promotionalCredit: PromotionalCredit.PromotionalCreditResource;
|
|
234
228
|
purchase: Purchase.PurchaseResource;
|
|
235
229
|
quote: Quote.QuoteResource;
|
|
@@ -246,7 +240,6 @@ declare module 'chargebee' {
|
|
|
246
240
|
usage: Usage.UsageResource;
|
|
247
241
|
usageEvent: UsageEvent.UsageEventResource;
|
|
248
242
|
usageFile: UsageFile.UsageFileResource;
|
|
249
|
-
variant: Variant.VariantResource;
|
|
250
243
|
virtualBankAccount: VirtualBankAccount.VirtualBankAccountResource;
|
|
251
244
|
webhookEndpoint: WebhookEndpoint.WebhookEndpointResource;
|
|
252
245
|
}
|
|
@@ -11,7 +11,6 @@ declare module 'chargebee' {
|
|
|
11
11
|
billing_configuration: BillingConfiguration;
|
|
12
12
|
brand: Brand;
|
|
13
13
|
business_entity: BusinessEntity;
|
|
14
|
-
business_entity_change: BusinessEntityChange;
|
|
15
14
|
business_entity_transfer: BusinessEntityTransfer;
|
|
16
15
|
card: Card;
|
|
17
16
|
comment: Comment;
|
|
@@ -75,7 +74,6 @@ declare module 'chargebee' {
|
|
|
75
74
|
portal_session: PortalSession;
|
|
76
75
|
price_variant: PriceVariant;
|
|
77
76
|
pricing_page_session: PricingPageSession;
|
|
78
|
-
product: Product;
|
|
79
77
|
promotional_credit: PromotionalCredit;
|
|
80
78
|
purchase: Purchase;
|
|
81
79
|
quote: Quote;
|
|
@@ -88,7 +86,6 @@ declare module 'chargebee' {
|
|
|
88
86
|
recorded_purchase: RecordedPurchase;
|
|
89
87
|
resource_migration: ResourceMigration;
|
|
90
88
|
rule: Rule;
|
|
91
|
-
sales_order: SalesOrder;
|
|
92
89
|
site_migration_detail: SiteMigrationDetail;
|
|
93
90
|
subscription: Subscription;
|
|
94
91
|
subscription_entitlement: SubscriptionEntitlement;
|
|
@@ -104,8 +101,6 @@ declare module 'chargebee' {
|
|
|
104
101
|
usage: Usage;
|
|
105
102
|
usage_event: UsageEvent;
|
|
106
103
|
usage_file: UsageFile;
|
|
107
|
-
usage_reminder_info: UsageReminderInfo;
|
|
108
|
-
variant: Variant;
|
|
109
104
|
virtual_bank_account: VirtualBankAccount;
|
|
110
105
|
webhook_endpoint: WebhookEndpoint;
|
|
111
106
|
}
|
|
@@ -241,6 +241,7 @@ declare module 'chargebee' {
|
|
|
241
241
|
created_at?: filter.Timestamp;
|
|
242
242
|
updated_at?: filter.Timestamp;
|
|
243
243
|
currency_code?: filter.String;
|
|
244
|
+
applicable_item_price_ids?: filter.String;
|
|
244
245
|
'sort_by[asc]'?: string;
|
|
245
246
|
'sort_by[desc]'?: string;
|
|
246
247
|
[key: `cf_${string}`]: unknown;
|
|
@@ -428,7 +428,14 @@ declare module 'chargebee' {
|
|
|
428
428
|
| 'in_progress'
|
|
429
429
|
| 'success'
|
|
430
430
|
| 'failed'
|
|
431
|
-
| 'registered'
|
|
431
|
+
| 'registered'
|
|
432
|
+
| 'accepted'
|
|
433
|
+
| 'rejected'
|
|
434
|
+
| 'message_acknowledgement'
|
|
435
|
+
| 'in_process'
|
|
436
|
+
| 'under_query'
|
|
437
|
+
| 'conditionally_accepted'
|
|
438
|
+
| 'paid';
|
|
432
439
|
message?: string;
|
|
433
440
|
}
|
|
434
441
|
export interface SiteDetailsAtCreation {
|
|
@@ -755,7 +755,13 @@ declare module 'chargebee' {
|
|
|
755
755
|
| 'kbc_payment_button'
|
|
756
756
|
| 'pay_by_bank'
|
|
757
757
|
| 'trustly'
|
|
758
|
-
| 'stablecoin'
|
|
758
|
+
| 'stablecoin'
|
|
759
|
+
| 'kakao_pay'
|
|
760
|
+
| 'naver_pay'
|
|
761
|
+
| 'revolut_pay'
|
|
762
|
+
| 'cash_app_pay'
|
|
763
|
+
| 'wechat_pay'
|
|
764
|
+
| 'alipay';
|
|
759
765
|
reference_id?: string;
|
|
760
766
|
/**
|
|
761
767
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -933,7 +939,13 @@ declare module 'chargebee' {
|
|
|
933
939
|
| 'kbc_payment_button'
|
|
934
940
|
| 'pay_by_bank'
|
|
935
941
|
| 'trustly'
|
|
936
|
-
| 'stablecoin'
|
|
942
|
+
| 'stablecoin'
|
|
943
|
+
| 'kakao_pay'
|
|
944
|
+
| 'naver_pay'
|
|
945
|
+
| 'revolut_pay'
|
|
946
|
+
| 'cash_app_pay'
|
|
947
|
+
| 'wechat_pay'
|
|
948
|
+
| 'alipay';
|
|
937
949
|
/**
|
|
938
950
|
* @deprecated Please refer API docs to use other attributes
|
|
939
951
|
*/
|
|
@@ -11,7 +11,14 @@ declare module 'chargebee' {
|
|
|
11
11
|
| 'in_progress'
|
|
12
12
|
| 'success'
|
|
13
13
|
| 'failed'
|
|
14
|
-
| 'registered'
|
|
14
|
+
| 'registered'
|
|
15
|
+
| 'accepted'
|
|
16
|
+
| 'rejected'
|
|
17
|
+
| 'message_acknowledgement'
|
|
18
|
+
| 'in_process'
|
|
19
|
+
| 'under_query'
|
|
20
|
+
| 'conditionally_accepted'
|
|
21
|
+
| 'paid';
|
|
15
22
|
message?: string;
|
|
16
23
|
}
|
|
17
24
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
declare module 'chargebee' {
|
|
5
5
|
export interface EntitlementOverride {
|
|
6
6
|
id: string;
|
|
7
|
+
subscription_id?: string;
|
|
7
8
|
entity_id?: string;
|
|
8
9
|
entity_type?: string;
|
|
9
10
|
feature_id?: string;
|
|
@@ -12,6 +13,7 @@ declare module 'chargebee' {
|
|
|
12
13
|
name?: string;
|
|
13
14
|
expires_at?: number;
|
|
14
15
|
effective_from?: number;
|
|
16
|
+
is_enabled: boolean;
|
|
15
17
|
schedule_status?: 'activated' | 'scheduled' | 'failed';
|
|
16
18
|
}
|
|
17
19
|
|
|
@@ -68,9 +70,12 @@ declare module 'chargebee' {
|
|
|
68
70
|
}
|
|
69
71
|
export interface EntitlementOverridesAddEntitlementOverrideForSubscriptionInputParam {
|
|
70
72
|
feature_id: string;
|
|
73
|
+
entity_id?: string;
|
|
74
|
+
entity_type?: EntityTypeEnum;
|
|
71
75
|
value?: string;
|
|
72
76
|
expires_at?: number;
|
|
73
77
|
effective_from?: number;
|
|
78
|
+
is_enabled?: boolean;
|
|
74
79
|
}
|
|
75
80
|
}
|
|
76
81
|
}
|
|
@@ -1047,7 +1047,13 @@ declare module 'chargebee' {
|
|
|
1047
1047
|
| 'kbc_payment_button'
|
|
1048
1048
|
| 'pay_by_bank'
|
|
1049
1049
|
| 'trustly'
|
|
1050
|
-
| 'stablecoin'
|
|
1050
|
+
| 'stablecoin'
|
|
1051
|
+
| 'kakao_pay'
|
|
1052
|
+
| 'naver_pay'
|
|
1053
|
+
| 'revolut_pay'
|
|
1054
|
+
| 'cash_app_pay'
|
|
1055
|
+
| 'wechat_pay'
|
|
1056
|
+
| 'alipay';
|
|
1051
1057
|
reference_id?: string;
|
|
1052
1058
|
/**
|
|
1053
1059
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1130,7 +1136,13 @@ declare module 'chargebee' {
|
|
|
1130
1136
|
| 'kbc_payment_button'
|
|
1131
1137
|
| 'pay_by_bank'
|
|
1132
1138
|
| 'trustly'
|
|
1133
|
-
| 'stablecoin'
|
|
1139
|
+
| 'stablecoin'
|
|
1140
|
+
| 'kakao_pay'
|
|
1141
|
+
| 'naver_pay'
|
|
1142
|
+
| 'revolut_pay'
|
|
1143
|
+
| 'cash_app_pay'
|
|
1144
|
+
| 'wechat_pay'
|
|
1145
|
+
| 'alipay';
|
|
1134
1146
|
reference_id?: string;
|
|
1135
1147
|
/**
|
|
1136
1148
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -122,6 +122,7 @@ declare module 'chargebee' {
|
|
|
122
122
|
CardUpdatedContent &
|
|
123
123
|
CustomerCreatedContent &
|
|
124
124
|
SubscriptionRenewalReminderContent &
|
|
125
|
+
PaymentDueReminderContent &
|
|
125
126
|
OrderDeliveredContent &
|
|
126
127
|
OmnichannelSubscriptionItemCancellationScheduledContent &
|
|
127
128
|
OmnichannelSubscriptionItemGracePeriodExpiredContent &
|
|
@@ -208,7 +208,13 @@ declare module 'chargebee' {
|
|
|
208
208
|
| 'kbc_payment_button'
|
|
209
209
|
| 'pay_by_bank'
|
|
210
210
|
| 'trustly'
|
|
211
|
-
| 'stablecoin'
|
|
211
|
+
| 'stablecoin'
|
|
212
|
+
| 'kakao_pay'
|
|
213
|
+
| 'naver_pay'
|
|
214
|
+
| 'revolut_pay'
|
|
215
|
+
| 'cash_app_pay'
|
|
216
|
+
| 'wechat_pay'
|
|
217
|
+
| 'alipay';
|
|
212
218
|
reference_id?: string;
|
|
213
219
|
/**
|
|
214
220
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -285,7 +291,13 @@ declare module 'chargebee' {
|
|
|
285
291
|
| 'kbc_payment_button'
|
|
286
292
|
| 'pay_by_bank'
|
|
287
293
|
| 'trustly'
|
|
288
|
-
| 'stablecoin'
|
|
294
|
+
| 'stablecoin'
|
|
295
|
+
| 'kakao_pay'
|
|
296
|
+
| 'naver_pay'
|
|
297
|
+
| 'revolut_pay'
|
|
298
|
+
| 'cash_app_pay'
|
|
299
|
+
| 'wechat_pay'
|
|
300
|
+
| 'alipay';
|
|
289
301
|
reference_id?: string;
|
|
290
302
|
/**
|
|
291
303
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -414,6 +414,7 @@ declare module 'chargebee' {
|
|
|
414
414
|
export interface CollectNowInputParam {
|
|
415
415
|
redirect_url?: string;
|
|
416
416
|
currency_code?: string;
|
|
417
|
+
payment_method_save_policy?: PaymentMethodSavePolicyEnum;
|
|
417
418
|
customer?: CustomerCollectNowInputParam;
|
|
418
419
|
card?: CardCollectNowInputParam;
|
|
419
420
|
}
|
|
@@ -844,7 +844,14 @@ declare module 'chargebee' {
|
|
|
844
844
|
| 'in_progress'
|
|
845
845
|
| 'success'
|
|
846
846
|
| 'failed'
|
|
847
|
-
| 'registered'
|
|
847
|
+
| 'registered'
|
|
848
|
+
| 'accepted'
|
|
849
|
+
| 'rejected'
|
|
850
|
+
| 'message_acknowledgement'
|
|
851
|
+
| 'in_process'
|
|
852
|
+
| 'under_query'
|
|
853
|
+
| 'conditionally_accepted'
|
|
854
|
+
| 'paid';
|
|
848
855
|
message?: string;
|
|
849
856
|
}
|
|
850
857
|
export interface SiteDetailsAtCreation {
|
|
@@ -1265,7 +1272,13 @@ declare module 'chargebee' {
|
|
|
1265
1272
|
| 'kbc_payment_button'
|
|
1266
1273
|
| 'pay_by_bank'
|
|
1267
1274
|
| 'trustly'
|
|
1268
|
-
| 'stablecoin'
|
|
1275
|
+
| 'stablecoin'
|
|
1276
|
+
| 'kakao_pay'
|
|
1277
|
+
| 'naver_pay'
|
|
1278
|
+
| 'revolut_pay'
|
|
1279
|
+
| 'cash_app_pay'
|
|
1280
|
+
| 'wechat_pay'
|
|
1281
|
+
| 'alipay';
|
|
1269
1282
|
reference_id?: string;
|
|
1270
1283
|
/**
|
|
1271
1284
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1417,7 +1430,13 @@ declare module 'chargebee' {
|
|
|
1417
1430
|
| 'kbc_payment_button'
|
|
1418
1431
|
| 'pay_by_bank'
|
|
1419
1432
|
| 'trustly'
|
|
1420
|
-
| 'stablecoin'
|
|
1433
|
+
| 'stablecoin'
|
|
1434
|
+
| 'kakao_pay'
|
|
1435
|
+
| 'naver_pay'
|
|
1436
|
+
| 'revolut_pay'
|
|
1437
|
+
| 'cash_app_pay'
|
|
1438
|
+
| 'wechat_pay'
|
|
1439
|
+
| 'alipay';
|
|
1421
1440
|
reference_id?: string;
|
|
1422
1441
|
/**
|
|
1423
1442
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -91,16 +91,6 @@ declare module 'chargebee' {
|
|
|
91
91
|
input?: FindApplicableItemPricesInputParam,
|
|
92
92
|
headers?: ChargebeeRequestHeader,
|
|
93
93
|
): Promise<ChargebeeResponse<FindApplicableItemPricesResponse>>;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @deprecated This method is deprecated and will be removed in a future version.
|
|
97
|
-
*/
|
|
98
|
-
|
|
99
|
-
moveItemPrice(
|
|
100
|
-
item_price_id: string,
|
|
101
|
-
input: MoveItemPriceInputParam,
|
|
102
|
-
headers?: ChargebeeRequestHeader,
|
|
103
|
-
): Promise<ChargebeeResponse<MoveItemPriceResponse>>;
|
|
104
94
|
}
|
|
105
95
|
|
|
106
96
|
export interface CreateResponse {
|
|
@@ -134,10 +124,6 @@ declare module 'chargebee' {
|
|
|
134
124
|
next_offset?: string;
|
|
135
125
|
}
|
|
136
126
|
|
|
137
|
-
export interface MoveItemPriceResponse {
|
|
138
|
-
item_price: ItemPrice;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
127
|
export interface Tier {
|
|
142
128
|
starting_unit: number;
|
|
143
129
|
ending_unit?: number;
|
|
@@ -283,10 +269,6 @@ declare module 'chargebee' {
|
|
|
283
269
|
'sort_by[asc]'?: string;
|
|
284
270
|
'sort_by[desc]'?: string;
|
|
285
271
|
}
|
|
286
|
-
export interface MoveItemPriceInputParam {
|
|
287
|
-
destination_item_id: string;
|
|
288
|
-
variant_id?: string;
|
|
289
|
-
}
|
|
290
272
|
export interface TaxDetailCreateInputParam {
|
|
291
273
|
tax_profile_id?: string;
|
|
292
274
|
avalara_tax_code?: string;
|
|
@@ -65,6 +65,7 @@ declare module 'chargebee' {
|
|
|
65
65
|
export interface ListInputParam {
|
|
66
66
|
limit?: number;
|
|
67
67
|
offset?: string;
|
|
68
|
+
omnichannel_subscription_item?: OmnichannelSubscriptionItemOmnichannelSubscriptionListInputParam;
|
|
68
69
|
source?: filter.Enum;
|
|
69
70
|
customer_id?: filter.String;
|
|
70
71
|
}
|
|
@@ -75,5 +76,9 @@ declare module 'chargebee' {
|
|
|
75
76
|
export interface MoveInputParam {
|
|
76
77
|
to_customer_id: string;
|
|
77
78
|
}
|
|
79
|
+
export interface OmnichannelSubscriptionItemOmnichannelSubscriptionListInputParam {
|
|
80
|
+
status?: filter.Enum;
|
|
81
|
+
item_id_at_source?: filter.String;
|
|
82
|
+
}
|
|
78
83
|
}
|
|
79
84
|
}
|