chargebee 3.19.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 +43 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/webhook/eventType.js +1 -0
- package/esm/environment.js +1 -1
- package/esm/resources/webhook/eventType.js +1 -0
- package/package.json +1 -1
- package/types/core.d.ts +19 -3
- package/types/index.d.ts +0 -7
- package/types/resources/Content.d.ts +0 -5
- 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/Gift.d.ts +14 -2
- package/types/resources/HostedPage.d.ts +1 -0
- package/types/resources/Invoice.d.ts +22 -3
- 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,46 @@
|
|
|
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
|
+
|
|
1
44
|
### v3.19.0 (2026-01-16)
|
|
2
45
|
* * *
|
|
3
46
|
|
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,
|
|
@@ -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,
|
|
@@ -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'
|
|
@@ -430,6 +432,7 @@ declare module 'chargebee' {
|
|
|
430
432
|
| 'deutsche_bank'
|
|
431
433
|
| 'ezidebit'
|
|
432
434
|
| 'twikey'
|
|
435
|
+
| 'tempus'
|
|
433
436
|
| 'gocardless'
|
|
434
437
|
| 'not_applicable';
|
|
435
438
|
type HierarchyOperationTypeEnum =
|
|
@@ -509,7 +512,12 @@ declare module 'chargebee' {
|
|
|
509
512
|
| 'kbc_payment_button'
|
|
510
513
|
| 'pay_by_bank'
|
|
511
514
|
| 'trustly'
|
|
512
|
-
| 'stablecoin'
|
|
515
|
+
| 'stablecoin'
|
|
516
|
+
| 'kakao_pay'
|
|
517
|
+
| 'naver_pay'
|
|
518
|
+
| 'revolut_pay'
|
|
519
|
+
| 'cash_app_pay';
|
|
520
|
+
type PaymentMethodSavePolicyEnum = 'always' | 'ask' | 'never';
|
|
513
521
|
type PaymentMethodTypeEnum =
|
|
514
522
|
| 'card'
|
|
515
523
|
| 'paypal_express_checkout'
|
|
@@ -540,7 +548,11 @@ declare module 'chargebee' {
|
|
|
540
548
|
| 'kbc_payment_button'
|
|
541
549
|
| 'pay_by_bank'
|
|
542
550
|
| 'trustly'
|
|
543
|
-
| 'stablecoin'
|
|
551
|
+
| 'stablecoin'
|
|
552
|
+
| 'kakao_pay'
|
|
553
|
+
| 'naver_pay'
|
|
554
|
+
| 'revolut_pay'
|
|
555
|
+
| 'cash_app_pay';
|
|
544
556
|
type PaymentVoucherTypeEnum = 'boleto';
|
|
545
557
|
type PeriodUnitEnum = 'day' | 'week' | 'month' | 'year';
|
|
546
558
|
type PriceTypeEnum = 'tax_exclusive' | 'tax_inclusive';
|
|
@@ -639,6 +651,10 @@ declare module 'chargebee' {
|
|
|
639
651
|
| 'pay_by_bank'
|
|
640
652
|
| 'trustly'
|
|
641
653
|
| 'stablecoin'
|
|
654
|
+
| 'kakao_pay'
|
|
655
|
+
| 'naver_pay'
|
|
656
|
+
| 'revolut_pay'
|
|
657
|
+
| 'cash_app_pay'
|
|
642
658
|
| 'free_trial'
|
|
643
659
|
| 'pay_up_front'
|
|
644
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
|
}
|
|
@@ -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
|
|
@@ -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
|
}
|
|
@@ -36,7 +36,13 @@ declare module 'chargebee' {
|
|
|
36
36
|
| 'kbc_payment_button'
|
|
37
37
|
| 'pay_by_bank'
|
|
38
38
|
| 'trustly'
|
|
39
|
-
| 'stablecoin'
|
|
39
|
+
| 'stablecoin'
|
|
40
|
+
| 'kakao_pay'
|
|
41
|
+
| 'naver_pay'
|
|
42
|
+
| 'revolut_pay'
|
|
43
|
+
| 'cash_app_pay'
|
|
44
|
+
| 'wechat_pay'
|
|
45
|
+
| 'alipay';
|
|
40
46
|
success_url?: string;
|
|
41
47
|
failure_url?: string;
|
|
42
48
|
created_at: number;
|
|
@@ -117,7 +123,13 @@ declare module 'chargebee' {
|
|
|
117
123
|
| 'kbc_payment_button'
|
|
118
124
|
| 'pay_by_bank'
|
|
119
125
|
| 'trustly'
|
|
120
|
-
| 'stablecoin'
|
|
126
|
+
| 'stablecoin'
|
|
127
|
+
| 'kakao_pay'
|
|
128
|
+
| 'naver_pay'
|
|
129
|
+
| 'revolut_pay'
|
|
130
|
+
| 'cash_app_pay'
|
|
131
|
+
| 'wechat_pay'
|
|
132
|
+
| 'alipay';
|
|
121
133
|
id_at_gateway?: string;
|
|
122
134
|
error_code?: string;
|
|
123
135
|
error_text?: string;
|
|
@@ -162,7 +174,13 @@ declare module 'chargebee' {
|
|
|
162
174
|
| 'kbc_payment_button'
|
|
163
175
|
| 'pay_by_bank'
|
|
164
176
|
| 'trustly'
|
|
165
|
-
| 'stablecoin'
|
|
177
|
+
| 'stablecoin'
|
|
178
|
+
| 'kakao_pay'
|
|
179
|
+
| 'naver_pay'
|
|
180
|
+
| 'revolut_pay'
|
|
181
|
+
| 'cash_app_pay'
|
|
182
|
+
| 'wechat_pay'
|
|
183
|
+
| 'alipay';
|
|
166
184
|
id_at_gateway?: string;
|
|
167
185
|
error_code?: string;
|
|
168
186
|
error_text?: string;
|
|
@@ -207,7 +225,13 @@ declare module 'chargebee' {
|
|
|
207
225
|
| 'kbc_payment_button'
|
|
208
226
|
| 'pay_by_bank'
|
|
209
227
|
| 'trustly'
|
|
210
|
-
| 'stablecoin'
|
|
228
|
+
| 'stablecoin'
|
|
229
|
+
| 'kakao_pay'
|
|
230
|
+
| 'naver_pay'
|
|
231
|
+
| 'revolut_pay'
|
|
232
|
+
| 'cash_app_pay'
|
|
233
|
+
| 'wechat_pay'
|
|
234
|
+
| 'alipay';
|
|
211
235
|
success_url?: string;
|
|
212
236
|
failure_url?: string;
|
|
213
237
|
}
|
|
@@ -241,7 +265,13 @@ declare module 'chargebee' {
|
|
|
241
265
|
| 'kbc_payment_button'
|
|
242
266
|
| 'pay_by_bank'
|
|
243
267
|
| 'trustly'
|
|
244
|
-
| 'stablecoin'
|
|
268
|
+
| 'stablecoin'
|
|
269
|
+
| 'kakao_pay'
|
|
270
|
+
| 'naver_pay'
|
|
271
|
+
| 'revolut_pay'
|
|
272
|
+
| 'cash_app_pay'
|
|
273
|
+
| 'wechat_pay'
|
|
274
|
+
| 'alipay';
|
|
245
275
|
success_url?: string;
|
|
246
276
|
failure_url?: string;
|
|
247
277
|
}
|
|
@@ -458,7 +458,13 @@ declare module 'chargebee' {
|
|
|
458
458
|
| 'kbc_payment_button'
|
|
459
459
|
| 'pay_by_bank'
|
|
460
460
|
| 'trustly'
|
|
461
|
-
| 'stablecoin'
|
|
461
|
+
| 'stablecoin'
|
|
462
|
+
| 'kakao_pay'
|
|
463
|
+
| 'naver_pay'
|
|
464
|
+
| 'revolut_pay'
|
|
465
|
+
| 'cash_app_pay'
|
|
466
|
+
| 'wechat_pay'
|
|
467
|
+
| 'alipay';
|
|
462
468
|
reference_id?: string;
|
|
463
469
|
/**
|
|
464
470
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -113,7 +113,7 @@ declare module 'chargebee' {
|
|
|
113
113
|
label?: string;
|
|
114
114
|
}
|
|
115
115
|
export interface PricingPageCreateForExistingSubscriptionInputParam {
|
|
116
|
-
id
|
|
116
|
+
id?: string;
|
|
117
117
|
}
|
|
118
118
|
export interface SubscriptionCreateForExistingSubscriptionInputParam {
|
|
119
119
|
id: string;
|
|
@@ -103,7 +103,13 @@ declare module 'chargebee' {
|
|
|
103
103
|
| 'kbc_payment_button'
|
|
104
104
|
| 'pay_by_bank'
|
|
105
105
|
| 'trustly'
|
|
106
|
-
| 'stablecoin'
|
|
106
|
+
| 'stablecoin'
|
|
107
|
+
| 'kakao_pay'
|
|
108
|
+
| 'naver_pay'
|
|
109
|
+
| 'revolut_pay'
|
|
110
|
+
| 'cash_app_pay'
|
|
111
|
+
| 'wechat_pay'
|
|
112
|
+
| 'alipay';
|
|
107
113
|
reference_id?: string;
|
|
108
114
|
/**
|
|
109
115
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -96,6 +96,7 @@ declare module 'chargebee' {
|
|
|
96
96
|
auto_close_invoices?: boolean;
|
|
97
97
|
discounts?: Subscription.Discount[];
|
|
98
98
|
business_entity_id?: string;
|
|
99
|
+
decommissioned: boolean;
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
export namespace Subscription {
|
|
@@ -1268,6 +1269,7 @@ declare module 'chargebee' {
|
|
|
1268
1269
|
contract_term_cancel_option?: ContractTermCancelOptionEnum;
|
|
1269
1270
|
invoice_date?: number;
|
|
1270
1271
|
cancel_reason_code?: string;
|
|
1272
|
+
decommissioned?: boolean;
|
|
1271
1273
|
subscription_items?: SubscriptionItemsCancelForItemsInputParam[];
|
|
1272
1274
|
}
|
|
1273
1275
|
export interface ResumeInputParam {
|
|
@@ -1410,7 +1412,13 @@ declare module 'chargebee' {
|
|
|
1410
1412
|
| 'kbc_payment_button'
|
|
1411
1413
|
| 'pay_by_bank'
|
|
1412
1414
|
| 'trustly'
|
|
1413
|
-
| 'stablecoin'
|
|
1415
|
+
| 'stablecoin'
|
|
1416
|
+
| 'kakao_pay'
|
|
1417
|
+
| 'naver_pay'
|
|
1418
|
+
| 'revolut_pay'
|
|
1419
|
+
| 'cash_app_pay'
|
|
1420
|
+
| 'wechat_pay'
|
|
1421
|
+
| 'alipay';
|
|
1414
1422
|
reference_id?: string;
|
|
1415
1423
|
/**
|
|
1416
1424
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1543,7 +1551,13 @@ declare module 'chargebee' {
|
|
|
1543
1551
|
| 'kbc_payment_button'
|
|
1544
1552
|
| 'pay_by_bank'
|
|
1545
1553
|
| 'trustly'
|
|
1546
|
-
| 'stablecoin'
|
|
1554
|
+
| 'stablecoin'
|
|
1555
|
+
| 'kakao_pay'
|
|
1556
|
+
| 'naver_pay'
|
|
1557
|
+
| 'revolut_pay'
|
|
1558
|
+
| 'cash_app_pay'
|
|
1559
|
+
| 'wechat_pay'
|
|
1560
|
+
| 'alipay';
|
|
1547
1561
|
reference_id?: string;
|
|
1548
1562
|
/**
|
|
1549
1563
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1643,7 +1657,13 @@ declare module 'chargebee' {
|
|
|
1643
1657
|
| 'kbc_payment_button'
|
|
1644
1658
|
| 'pay_by_bank'
|
|
1645
1659
|
| 'trustly'
|
|
1646
|
-
| 'stablecoin'
|
|
1660
|
+
| 'stablecoin'
|
|
1661
|
+
| 'kakao_pay'
|
|
1662
|
+
| 'naver_pay'
|
|
1663
|
+
| 'revolut_pay'
|
|
1664
|
+
| 'cash_app_pay'
|
|
1665
|
+
| 'wechat_pay'
|
|
1666
|
+
| 'alipay';
|
|
1647
1667
|
reference_id?: string;
|
|
1648
1668
|
/**
|
|
1649
1669
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1798,7 +1818,13 @@ declare module 'chargebee' {
|
|
|
1798
1818
|
| 'kbc_payment_button'
|
|
1799
1819
|
| 'pay_by_bank'
|
|
1800
1820
|
| 'trustly'
|
|
1801
|
-
| 'stablecoin'
|
|
1821
|
+
| 'stablecoin'
|
|
1822
|
+
| 'kakao_pay'
|
|
1823
|
+
| 'naver_pay'
|
|
1824
|
+
| 'revolut_pay'
|
|
1825
|
+
| 'cash_app_pay'
|
|
1826
|
+
| 'wechat_pay'
|
|
1827
|
+
| 'alipay';
|
|
1802
1828
|
reference_id?: string;
|
|
1803
1829
|
/**
|
|
1804
1830
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1967,7 +1993,13 @@ declare module 'chargebee' {
|
|
|
1967
1993
|
| 'kbc_payment_button'
|
|
1968
1994
|
| 'pay_by_bank'
|
|
1969
1995
|
| 'trustly'
|
|
1970
|
-
| 'stablecoin'
|
|
1996
|
+
| 'stablecoin'
|
|
1997
|
+
| 'kakao_pay'
|
|
1998
|
+
| 'naver_pay'
|
|
1999
|
+
| 'revolut_pay'
|
|
2000
|
+
| 'cash_app_pay'
|
|
2001
|
+
| 'wechat_pay'
|
|
2002
|
+
| 'alipay';
|
|
1971
2003
|
reference_id?: string;
|
|
1972
2004
|
/**
|
|
1973
2005
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -2092,7 +2124,13 @@ declare module 'chargebee' {
|
|
|
2092
2124
|
| 'kbc_payment_button'
|
|
2093
2125
|
| 'pay_by_bank'
|
|
2094
2126
|
| 'trustly'
|
|
2095
|
-
| 'stablecoin'
|
|
2127
|
+
| 'stablecoin'
|
|
2128
|
+
| 'kakao_pay'
|
|
2129
|
+
| 'naver_pay'
|
|
2130
|
+
| 'revolut_pay'
|
|
2131
|
+
| 'cash_app_pay'
|
|
2132
|
+
| 'wechat_pay'
|
|
2133
|
+
| 'alipay';
|
|
2096
2134
|
reference_id?: string;
|
|
2097
2135
|
/**
|
|
2098
2136
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -2523,7 +2561,13 @@ declare module 'chargebee' {
|
|
|
2523
2561
|
| 'kbc_payment_button'
|
|
2524
2562
|
| 'pay_by_bank'
|
|
2525
2563
|
| 'trustly'
|
|
2526
|
-
| 'stablecoin'
|
|
2564
|
+
| 'stablecoin'
|
|
2565
|
+
| 'kakao_pay'
|
|
2566
|
+
| 'naver_pay'
|
|
2567
|
+
| 'revolut_pay'
|
|
2568
|
+
| 'cash_app_pay'
|
|
2569
|
+
| 'wechat_pay'
|
|
2570
|
+
| 'alipay';
|
|
2527
2571
|
reference_id?: string;
|
|
2528
2572
|
/**
|
|
2529
2573
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -106,6 +106,7 @@ declare module 'chargebee' {
|
|
|
106
106
|
CardUpdated = 'card_updated',
|
|
107
107
|
CustomerCreated = 'customer_created',
|
|
108
108
|
SubscriptionRenewalReminder = 'subscription_renewal_reminder',
|
|
109
|
+
PaymentDueReminder = 'payment_due_reminder',
|
|
109
110
|
OrderDelivered = 'order_delivered',
|
|
110
111
|
OmnichannelSubscriptionItemCancellationScheduled = 'omnichannel_subscription_item_cancellation_scheduled',
|
|
111
112
|
OmnichannelSubscriptionItemGracePeriodExpired = 'omnichannel_subscription_item_grace_period_expired',
|
|
@@ -329,6 +330,7 @@ declare module 'chargebee' {
|
|
|
329
330
|
[WebhookEventType.CardUpdated]: CardUpdatedContent;
|
|
330
331
|
[WebhookEventType.CustomerCreated]: CustomerCreatedContent;
|
|
331
332
|
[WebhookEventType.SubscriptionRenewalReminder]: SubscriptionRenewalReminderContent;
|
|
333
|
+
[WebhookEventType.PaymentDueReminder]: PaymentDueReminderContent;
|
|
332
334
|
[WebhookEventType.OrderDelivered]: OrderDeliveredContent;
|
|
333
335
|
[WebhookEventType.OmnichannelSubscriptionItemCancellationScheduled]: OmnichannelSubscriptionItemCancellationScheduledContent;
|
|
334
336
|
[WebhookEventType.OmnichannelSubscriptionItemGracePeriodExpired]: OmnichannelSubscriptionItemGracePeriodExpiredContent;
|
|
@@ -477,8 +479,6 @@ declare module 'chargebee' {
|
|
|
477
479
|
advance_invoice_schedule: AdvanceInvoiceSchedule;
|
|
478
480
|
};
|
|
479
481
|
export type CustomerBusinessEntityChangedContent = {
|
|
480
|
-
business_entity_change: BusinessEntityChange;
|
|
481
|
-
|
|
482
482
|
business_entity_transfer: BusinessEntityTransfer;
|
|
483
483
|
|
|
484
484
|
customer: Customer;
|
|
@@ -657,8 +657,6 @@ declare module 'chargebee' {
|
|
|
657
657
|
subscription: Subscription;
|
|
658
658
|
|
|
659
659
|
customer: Customer;
|
|
660
|
-
|
|
661
|
-
usage_reminder_info: UsageReminderInfo;
|
|
662
660
|
};
|
|
663
661
|
export type VoucherCreatedContent = {
|
|
664
662
|
payment_voucher: PaymentVoucher;
|
|
@@ -1051,6 +1049,11 @@ declare module 'chargebee' {
|
|
|
1051
1049
|
|
|
1052
1050
|
advance_invoice_schedule: AdvanceInvoiceSchedule;
|
|
1053
1051
|
};
|
|
1052
|
+
export type PaymentDueReminderContent = {
|
|
1053
|
+
customer: Customer;
|
|
1054
|
+
|
|
1055
|
+
invoice: Invoice;
|
|
1056
|
+
};
|
|
1054
1057
|
export type OrderDeliveredContent = {
|
|
1055
1058
|
order: Order;
|
|
1056
1059
|
};
|
|
@@ -1115,8 +1118,6 @@ declare module 'chargebee' {
|
|
|
1115
1118
|
customer: Customer;
|
|
1116
1119
|
};
|
|
1117
1120
|
export type SubscriptionBusinessEntityChangedContent = {
|
|
1118
|
-
business_entity_change: BusinessEntityChange;
|
|
1119
|
-
|
|
1120
1121
|
business_entity_transfer: BusinessEntityTransfer;
|
|
1121
1122
|
|
|
1122
1123
|
subscription: Subscription;
|
|
@@ -1364,9 +1365,7 @@ declare module 'chargebee' {
|
|
|
1364
1365
|
export type AttachedItemCreatedContent = {
|
|
1365
1366
|
attached_item: AttachedItem;
|
|
1366
1367
|
};
|
|
1367
|
-
export type SalesOrderCreatedContent = {
|
|
1368
|
-
sales_order: SalesOrder;
|
|
1369
|
-
};
|
|
1368
|
+
export type SalesOrderCreatedContent = {};
|
|
1370
1369
|
export type CustomerChangedContent = {
|
|
1371
1370
|
customer: Customer;
|
|
1372
1371
|
|
|
@@ -1596,9 +1595,7 @@ declare module 'chargebee' {
|
|
|
1596
1595
|
|
|
1597
1596
|
impacted_subscription: ImpactedSubscription;
|
|
1598
1597
|
};
|
|
1599
|
-
export type SalesOrderUpdatedContent = {
|
|
1600
|
-
sales_order: SalesOrder;
|
|
1601
|
-
};
|
|
1598
|
+
export type SalesOrderUpdatedContent = {};
|
|
1602
1599
|
export type OmnichannelSubscriptionItemDunningStartedContent = {
|
|
1603
1600
|
omnichannel_subscription: OmnichannelSubscription;
|
|
1604
1601
|
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
///<reference path='./../core.d.ts'/>
|
|
2
|
-
///<reference path='./../index.d.ts'/>
|
|
3
|
-
|
|
4
|
-
declare module 'chargebee' {
|
|
5
|
-
export interface BusinessEntityChange {
|
|
6
|
-
id: string;
|
|
7
|
-
business_entity_id: string;
|
|
8
|
-
reason?: 'correction';
|
|
9
|
-
active_from: number;
|
|
10
|
-
active_to?: number;
|
|
11
|
-
resource_type: 'customer' | 'subscription';
|
|
12
|
-
modified_at: number;
|
|
13
|
-
resource_id: string;
|
|
14
|
-
active_resource_id: string;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
///<reference path='./../core.d.ts'/>
|
|
2
|
-
///<reference path='./../index.d.ts'/>
|
|
3
|
-
///<reference path='./filter.d.ts'/>
|
|
4
|
-
declare module 'chargebee' {
|
|
5
|
-
export interface Product {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
external_name: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
has_variant: boolean;
|
|
11
|
-
status: 'active' | 'inactive';
|
|
12
|
-
shippable: boolean;
|
|
13
|
-
sku?: string;
|
|
14
|
-
created_at: number;
|
|
15
|
-
resource_version?: number;
|
|
16
|
-
updated_at?: number;
|
|
17
|
-
deleted: boolean;
|
|
18
|
-
options?: Product.Option[];
|
|
19
|
-
metadata?: any;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export namespace Product {
|
|
23
|
-
export class ProductResource {
|
|
24
|
-
create(
|
|
25
|
-
input: CreateInputParam,
|
|
26
|
-
headers?: ChargebeeRequestHeader,
|
|
27
|
-
): Promise<ChargebeeResponse<CreateResponse>>;
|
|
28
|
-
|
|
29
|
-
retrieve(
|
|
30
|
-
product_id: string,
|
|
31
|
-
headers?: ChargebeeRequestHeader,
|
|
32
|
-
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
33
|
-
|
|
34
|
-
update(
|
|
35
|
-
product_id: string,
|
|
36
|
-
input?: UpdateInputParam,
|
|
37
|
-
headers?: ChargebeeRequestHeader,
|
|
38
|
-
): Promise<ChargebeeResponse<UpdateResponse>>;
|
|
39
|
-
|
|
40
|
-
delete(
|
|
41
|
-
product_id: string,
|
|
42
|
-
headers?: ChargebeeRequestHeader,
|
|
43
|
-
): Promise<ChargebeeResponse<DeleteResponse>>;
|
|
44
|
-
|
|
45
|
-
updateOptions(
|
|
46
|
-
product_id: string,
|
|
47
|
-
input: UpdateOptionsInputParam,
|
|
48
|
-
headers?: ChargebeeRequestHeader,
|
|
49
|
-
): Promise<ChargebeeResponse<UpdateOptionsResponse>>;
|
|
50
|
-
|
|
51
|
-
list(
|
|
52
|
-
input?: ListInputParam,
|
|
53
|
-
headers?: ChargebeeRequestHeader,
|
|
54
|
-
): Promise<ChargebeeResponse<ListResponse>>;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface CreateResponse {
|
|
58
|
-
product: Product;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface RetrieveResponse {
|
|
62
|
-
product: Product;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface UpdateResponse {
|
|
66
|
-
product: Product;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface DeleteResponse {
|
|
70
|
-
product: Product;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface UpdateOptionsResponse {
|
|
74
|
-
product: Product;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export interface ListResponse {
|
|
78
|
-
list: { product: Product }[];
|
|
79
|
-
next_offset?: string;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export interface Option {
|
|
83
|
-
id?: string;
|
|
84
|
-
name?: string;
|
|
85
|
-
values?: any[];
|
|
86
|
-
default_value?: string;
|
|
87
|
-
type?: 'select';
|
|
88
|
-
}
|
|
89
|
-
// REQUEST PARAMS
|
|
90
|
-
//---------------
|
|
91
|
-
|
|
92
|
-
export interface CreateInputParam {
|
|
93
|
-
name: string;
|
|
94
|
-
external_name: string;
|
|
95
|
-
status: 'active' | 'inactive';
|
|
96
|
-
id?: string;
|
|
97
|
-
description?: string;
|
|
98
|
-
sku?: string;
|
|
99
|
-
metadata?: any;
|
|
100
|
-
shippable?: boolean;
|
|
101
|
-
}
|
|
102
|
-
export interface UpdateInputParam {
|
|
103
|
-
name?: string;
|
|
104
|
-
external_name?: string;
|
|
105
|
-
description?: string;
|
|
106
|
-
status?: 'active' | 'inactive';
|
|
107
|
-
sku?: string;
|
|
108
|
-
shippable?: boolean;
|
|
109
|
-
metadata?: any;
|
|
110
|
-
}
|
|
111
|
-
export interface UpdateOptionsInputParam {
|
|
112
|
-
remove_options?: string[];
|
|
113
|
-
options?: OptionsUpdateOptionsInputParam[];
|
|
114
|
-
}
|
|
115
|
-
export interface ListInputParam {
|
|
116
|
-
limit?: number;
|
|
117
|
-
offset?: string;
|
|
118
|
-
include_deleted?: boolean;
|
|
119
|
-
id?: filter.String;
|
|
120
|
-
name?: filter.String;
|
|
121
|
-
status?: filter.Enum;
|
|
122
|
-
shippable?: filter.Boolean;
|
|
123
|
-
has_variant?: filter.Boolean;
|
|
124
|
-
created_at?: filter.Timestamp;
|
|
125
|
-
updated_at?: filter.Timestamp;
|
|
126
|
-
'sort_by[asc]'?: string;
|
|
127
|
-
'sort_by[desc]'?: string;
|
|
128
|
-
}
|
|
129
|
-
export interface OptionsUpdateOptionsInputParam {
|
|
130
|
-
name: string;
|
|
131
|
-
values?: any;
|
|
132
|
-
default_value?: string;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
///<reference path='./../core.d.ts'/>
|
|
2
|
-
///<reference path='./../index.d.ts'/>
|
|
3
|
-
|
|
4
|
-
declare module 'chargebee' {
|
|
5
|
-
export interface SalesOrder {
|
|
6
|
-
id: string;
|
|
7
|
-
version: number;
|
|
8
|
-
renewed_from_order_id?: string;
|
|
9
|
-
updated_at?: number;
|
|
10
|
-
created_at: number;
|
|
11
|
-
po_number?: string;
|
|
12
|
-
meta_data?: string;
|
|
13
|
-
quote_id?: string;
|
|
14
|
-
effective_date: number;
|
|
15
|
-
end_date?: number;
|
|
16
|
-
business_entity_id?: string;
|
|
17
|
-
customer_id: string;
|
|
18
|
-
subscription_id: string;
|
|
19
|
-
currency_code: string;
|
|
20
|
-
line_items?: SalesOrder.LineItem[];
|
|
21
|
-
billing_addresses?: SalesOrder.BillingAddress[];
|
|
22
|
-
discounts?: SalesOrder.Discount[];
|
|
23
|
-
shipping_addresses?: SalesOrder.ShippingAddress[];
|
|
24
|
-
subscription_ids?: string[];
|
|
25
|
-
line_item_tiers?: SalesOrder.LineItemTier[];
|
|
26
|
-
payment_configuration?: SalesOrder.PaymentConfiguration;
|
|
27
|
-
billing_configuration?: SalesOrder.BillingConfiguration;
|
|
28
|
-
renewal_term?: SalesOrder.RenewalTerm;
|
|
29
|
-
status: 'active' | 'completed';
|
|
30
|
-
credit_lines?: SalesOrder.CreditLine[];
|
|
31
|
-
deleted: boolean;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export namespace SalesOrder {
|
|
35
|
-
export interface LineItem {
|
|
36
|
-
id: string;
|
|
37
|
-
association_id?: string;
|
|
38
|
-
item_price_id: string;
|
|
39
|
-
name?: string;
|
|
40
|
-
quantity: string;
|
|
41
|
-
unit_price: string;
|
|
42
|
-
billable_unit_price?: string;
|
|
43
|
-
billable_quantity?: string;
|
|
44
|
-
billable_amount?: string;
|
|
45
|
-
billing_period?: number;
|
|
46
|
-
billing_period_unit?: 'day' | 'week' | 'month' | 'year';
|
|
47
|
-
service_period_days?: number;
|
|
48
|
-
charge_on_event?:
|
|
49
|
-
| 'subscription_creation'
|
|
50
|
-
| 'subscription_trial_start'
|
|
51
|
-
| 'plan_activation'
|
|
52
|
-
| 'subscription_activation'
|
|
53
|
-
| 'contract_termination';
|
|
54
|
-
charge_once?: boolean;
|
|
55
|
-
billing_cycles?: number;
|
|
56
|
-
billing_type: 'recurring' | 'one_time' | 'event_based';
|
|
57
|
-
start_date: number;
|
|
58
|
-
end_date?: number;
|
|
59
|
-
trial_end?: number;
|
|
60
|
-
}
|
|
61
|
-
export interface BillingAddress {
|
|
62
|
-
first_name?: string;
|
|
63
|
-
last_name?: string;
|
|
64
|
-
email?: string;
|
|
65
|
-
company?: string;
|
|
66
|
-
phone?: string;
|
|
67
|
-
line1?: string;
|
|
68
|
-
line2?: string;
|
|
69
|
-
line3?: string;
|
|
70
|
-
city?: string;
|
|
71
|
-
state_code?: string;
|
|
72
|
-
state?: string;
|
|
73
|
-
country?: string;
|
|
74
|
-
zip?: string;
|
|
75
|
-
validation_status?:
|
|
76
|
-
| 'not_validated'
|
|
77
|
-
| 'valid'
|
|
78
|
-
| 'partially_valid'
|
|
79
|
-
| 'invalid';
|
|
80
|
-
}
|
|
81
|
-
export interface Discount {
|
|
82
|
-
id: string;
|
|
83
|
-
invoice_name?: string;
|
|
84
|
-
type: 'fixed_amount' | 'percentage' | 'offer_quantity';
|
|
85
|
-
apply_on: 'invoice_amount' | 'specific_item_price';
|
|
86
|
-
duration_type: 'one_time' | 'forever' | 'limited_period';
|
|
87
|
-
percentage?: number;
|
|
88
|
-
amount?: string;
|
|
89
|
-
coupon_id?: string;
|
|
90
|
-
period?: number;
|
|
91
|
-
period_unit?: 'day' | 'week' | 'month' | 'year';
|
|
92
|
-
item_price_id?: string;
|
|
93
|
-
start_date: number;
|
|
94
|
-
end_date?: number;
|
|
95
|
-
}
|
|
96
|
-
export interface ShippingAddress {
|
|
97
|
-
first_name?: string;
|
|
98
|
-
last_name?: string;
|
|
99
|
-
email?: string;
|
|
100
|
-
company?: string;
|
|
101
|
-
phone?: string;
|
|
102
|
-
line1?: string;
|
|
103
|
-
line2?: string;
|
|
104
|
-
line3?: string;
|
|
105
|
-
city?: string;
|
|
106
|
-
state_code?: string;
|
|
107
|
-
state?: string;
|
|
108
|
-
country?: string;
|
|
109
|
-
zip?: string;
|
|
110
|
-
validation_status?:
|
|
111
|
-
| 'not_validated'
|
|
112
|
-
| 'valid'
|
|
113
|
-
| 'partially_valid'
|
|
114
|
-
| 'invalid';
|
|
115
|
-
}
|
|
116
|
-
export interface LineItemTier {
|
|
117
|
-
starting_unit: string;
|
|
118
|
-
ending_unit?: string;
|
|
119
|
-
price: string;
|
|
120
|
-
pricing_type?: 'per_unit' | 'flat_fee' | 'package';
|
|
121
|
-
package_size?: number;
|
|
122
|
-
line_item_association_id?: string;
|
|
123
|
-
}
|
|
124
|
-
export interface PaymentConfiguration {
|
|
125
|
-
auto_collection?: AutoCollectionEnum;
|
|
126
|
-
payment_source_id?: string;
|
|
127
|
-
payment_intent_id?: string;
|
|
128
|
-
offline_payment_method?: OfflinePaymentMethodEnum;
|
|
129
|
-
}
|
|
130
|
-
export interface BillingConfiguration {
|
|
131
|
-
create_pending_invoices?: boolean;
|
|
132
|
-
invoice_immediately?: boolean;
|
|
133
|
-
first_invoice_pending?: boolean;
|
|
134
|
-
invoice_usages?: boolean;
|
|
135
|
-
net_term_days?: number;
|
|
136
|
-
invoice_date?: number;
|
|
137
|
-
billing_cycles_to_invoice?: number;
|
|
138
|
-
billing_alignment_mode?: BillingAlignmentModeEnum;
|
|
139
|
-
}
|
|
140
|
-
export interface RenewalTerm {
|
|
141
|
-
end_of_term_action: 'renew' | 'cancel' | 'evergreen';
|
|
142
|
-
cancellation_cutoff_period?: number;
|
|
143
|
-
renewal_billing_cycles?: number;
|
|
144
|
-
}
|
|
145
|
-
export interface CreditLine {
|
|
146
|
-
amount: string;
|
|
147
|
-
unit_price: string;
|
|
148
|
-
line_item_association_id?: string;
|
|
149
|
-
}
|
|
150
|
-
// REQUEST PARAMS
|
|
151
|
-
//---------------
|
|
152
|
-
}
|
|
153
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
///<reference path='./../core.d.ts'/>
|
|
2
|
-
///<reference path='./../index.d.ts'/>
|
|
3
|
-
///<reference path='./filter.d.ts'/>
|
|
4
|
-
declare module 'chargebee' {
|
|
5
|
-
export interface Variant {
|
|
6
|
-
id?: string;
|
|
7
|
-
name: string;
|
|
8
|
-
external_name?: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
sku?: string;
|
|
11
|
-
deleted: boolean;
|
|
12
|
-
product_id: string;
|
|
13
|
-
status?: 'active' | 'inactive';
|
|
14
|
-
created_at: number;
|
|
15
|
-
resource_version?: number;
|
|
16
|
-
updated_at?: number;
|
|
17
|
-
option_values?: Variant.OptionValue[];
|
|
18
|
-
metadata?: any;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export namespace Variant {
|
|
22
|
-
export class VariantResource {
|
|
23
|
-
createProductVariant(
|
|
24
|
-
product_id: string,
|
|
25
|
-
input: CreateProductVariantInputParam,
|
|
26
|
-
headers?: ChargebeeRequestHeader,
|
|
27
|
-
): Promise<ChargebeeResponse<CreateProductVariantResponse>>;
|
|
28
|
-
|
|
29
|
-
retrieve(
|
|
30
|
-
product_variant_id: string,
|
|
31
|
-
headers?: ChargebeeRequestHeader,
|
|
32
|
-
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
33
|
-
|
|
34
|
-
update(
|
|
35
|
-
product_variant_id: string,
|
|
36
|
-
input?: UpdateInputParam,
|
|
37
|
-
headers?: ChargebeeRequestHeader,
|
|
38
|
-
): Promise<ChargebeeResponse<UpdateResponse>>;
|
|
39
|
-
|
|
40
|
-
delete(
|
|
41
|
-
product_variant_id: string,
|
|
42
|
-
headers?: ChargebeeRequestHeader,
|
|
43
|
-
): Promise<ChargebeeResponse<DeleteResponse>>;
|
|
44
|
-
|
|
45
|
-
listProductVariants(
|
|
46
|
-
product_id: string,
|
|
47
|
-
input?: ListProductVariantsInputParam,
|
|
48
|
-
headers?: ChargebeeRequestHeader,
|
|
49
|
-
): Promise<ChargebeeResponse<ListProductVariantsResponse>>;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface CreateProductVariantResponse {
|
|
53
|
-
variant: Variant;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface RetrieveResponse {
|
|
57
|
-
variant: Variant;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface UpdateResponse {
|
|
61
|
-
variant: Variant;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface DeleteResponse {
|
|
65
|
-
variant: Variant;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface ListProductVariantsResponse {
|
|
69
|
-
list: { variant: Variant }[];
|
|
70
|
-
next_offset?: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface OptionValue {
|
|
74
|
-
name?: string;
|
|
75
|
-
value?: string;
|
|
76
|
-
}
|
|
77
|
-
// REQUEST PARAMS
|
|
78
|
-
//---------------
|
|
79
|
-
|
|
80
|
-
export interface CreateProductVariantInputParam {
|
|
81
|
-
id?: string;
|
|
82
|
-
name: string;
|
|
83
|
-
external_name?: string;
|
|
84
|
-
description?: string;
|
|
85
|
-
sku?: string;
|
|
86
|
-
metadata?: any;
|
|
87
|
-
status?: 'active' | 'inactive';
|
|
88
|
-
option_values?: OptionValuesCreateProductVariantInputParam[];
|
|
89
|
-
}
|
|
90
|
-
export interface UpdateInputParam {
|
|
91
|
-
name?: string;
|
|
92
|
-
description?: string;
|
|
93
|
-
status?: 'active' | 'inactive';
|
|
94
|
-
external_name?: string;
|
|
95
|
-
sku?: string;
|
|
96
|
-
metadata?: any;
|
|
97
|
-
}
|
|
98
|
-
export interface ListProductVariantsInputParam {
|
|
99
|
-
limit?: number;
|
|
100
|
-
offset?: string;
|
|
101
|
-
include_deleted?: boolean;
|
|
102
|
-
id?: filter.String;
|
|
103
|
-
name?: filter.String;
|
|
104
|
-
sku?: filter.String;
|
|
105
|
-
status?: filter.Enum;
|
|
106
|
-
updated_at?: filter.Timestamp;
|
|
107
|
-
created_at?: filter.Timestamp;
|
|
108
|
-
'sort_by[asc]'?: string;
|
|
109
|
-
'sort_by[desc]'?: string;
|
|
110
|
-
}
|
|
111
|
-
export interface OptionValuesCreateProductVariantInputParam {
|
|
112
|
-
name: string;
|
|
113
|
-
value: string;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|