chargebee 3.12.0-beta.1 → 3.13.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 +71 -0
- package/README.md +30 -1
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +75 -4
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +75 -4
- package/package.json +2 -2
- package/types/core.d.ts +8 -1
- package/types/index.d.ts +17 -0
- package/types/resources/BusinessEntityChange.d.ts +16 -0
- package/types/resources/Comment.d.ts +4 -0
- package/types/resources/Content.d.ts +106 -0
- package/types/resources/CreditNote.d.ts +83 -76
- package/types/resources/Customer.d.ts +1 -0
- package/types/resources/CustomerEntitlement.d.ts +1 -0
- package/types/resources/Discount.d.ts +2 -1
- package/types/resources/Estimate.d.ts +4 -0
- package/types/resources/Event.d.ts +206 -1
- package/types/resources/HostedPage.d.ts +4 -1
- package/types/resources/ImpactedCustomer.d.ts +19 -0
- package/types/resources/Invoice.d.ts +86 -79
- package/types/resources/OmnichannelOneTimeOrder.d.ts +62 -0
- package/types/resources/OmnichannelOneTimeOrderItem.d.ts +20 -0
- package/types/resources/OmnichannelSubscriptionItemScheduledChange.d.ts +1 -1
- package/types/resources/PricingPageSession.d.ts +2 -0
- package/types/resources/Product.d.ts +135 -0
- package/types/resources/PromotionalCredit.d.ts +1 -0
- package/types/resources/Purchase.d.ts +2 -0
- package/types/resources/Quote.d.ts +6 -0
- package/types/resources/QuotedCharge.d.ts +5 -0
- package/types/resources/RecordedPurchase.d.ts +6 -0
- package/types/resources/SalesOrder.d.ts +143 -0
- package/types/resources/Subscription.d.ts +9 -2
- package/types/resources/SubscriptionEntitlementsCreatedDetail.d.ts +9 -0
- package/types/resources/SubscriptionEntitlementsUpdatedDetail.d.ts +9 -0
- package/types/resources/UsageFile.d.ts +8 -8
- package/types/resources/UsageReminderInfo.d.ts +9 -0
- package/types/resources/Variant.d.ts +116 -0
- package/types/resources/WebhookEndpoint.d.ts +98 -0
- package/types/resources/WebhookEvent.d.ts +1607 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,74 @@
|
|
|
1
|
+
### v3.13.0 (2025-09-15)
|
|
2
|
+
* * *
|
|
3
|
+
|
|
4
|
+
### New Resources:
|
|
5
|
+
* BusinessEntityChange has been added.
|
|
6
|
+
* Product has been added.
|
|
7
|
+
* SalesOrder has been added.
|
|
8
|
+
* UsageReminderInfo has been added.
|
|
9
|
+
* Variant has been added.
|
|
10
|
+
|
|
11
|
+
### New Enhancement:
|
|
12
|
+
* Content of HostedPages and Events now have a type.
|
|
13
|
+
* WebhookEvent has been added for better type mapping with actual event and webhook content.
|
|
14
|
+
|
|
15
|
+
### v3.12.0 (2025-08-19)
|
|
16
|
+
* * *
|
|
17
|
+
|
|
18
|
+
### New Resources:
|
|
19
|
+
* WebhookEndpoints has been added.
|
|
20
|
+
* OmnichannelOneTimeOrder has been added.
|
|
21
|
+
* OmnichannelOneTimeOrderItem has been added.
|
|
22
|
+
|
|
23
|
+
### New Attributes:
|
|
24
|
+
* business_entity_id has been added to Comment.
|
|
25
|
+
* business_entity_id has been added to PromotionalCredit.
|
|
26
|
+
* quantity has been added to Discount.
|
|
27
|
+
* business_entity_id has been added to PromotionalCredit.
|
|
28
|
+
* coupon_applicability_mappings[] has been added to QuotedCharge.
|
|
29
|
+
* linked_omnichannel_one_time_orders[] has been added to RecordedPurchase.
|
|
30
|
+
* quantity has been added to Subscripiton#Discount.
|
|
31
|
+
|
|
32
|
+
### New Input Parameters:
|
|
33
|
+
* transaction[id] has been added to Customer#RecordExcessPaymentRequest.
|
|
34
|
+
* discounts[quantity][] has been added to Estimate#CreateSubItemEstimateRequest.
|
|
35
|
+
* consolidate_entitlements has been added to CustomerEntitlement#EntitlementsForCustomer.
|
|
36
|
+
* discounts[quantity][] has been added to Estimate#CreateSubItemEstimateRequest.
|
|
37
|
+
* discounts[quantity][] has been added to Estimate#CreateSubItemForCustomerEstimateRequest.
|
|
38
|
+
* discounts[quantity][] has been added to Estimate#UpdateSubscriptionForItemsRequest.
|
|
39
|
+
* discounts[quantity][] has been added to Estimate#CreateInvoiceForItemsRequest.
|
|
40
|
+
* discounts[quantity][] has been added to HostedPage#CheckoutOneTimeForItemsRequest.
|
|
41
|
+
* discounts[quantity][] has been added to HostedPage#CheckoutNewForItemsRequest.
|
|
42
|
+
* discounts[quantity][] has been added to HostedPage#CheckoutExistingForItemsRequest.
|
|
43
|
+
* discounts[quantity][] has been added to PricingPageSession#CreateForNewSubscriptionRequest.
|
|
44
|
+
* discounts[quantity][] has been added to PricingPageSession#CreateForExistingSubscriptionRequest.
|
|
45
|
+
* discounts[quantity][] has been added to Purchase#CreateRequest.
|
|
46
|
+
* discounts[quantity][] has been added to Purchase#EstimateRequest.
|
|
47
|
+
* discounts[quantity][] has been added to Quote#CreateSubItemsForCustomerQuoteRequest.
|
|
48
|
+
* discounts[quantity][] has been added to Quote#EditCreateSubCustomerQuoteForItemsRequest.
|
|
49
|
+
* discounts[quantity][] has been added to Quote#UpdateSubscriptionQuoteForItemsRequest.
|
|
50
|
+
* discounts[quantity][] has been added to Quote#EditUpdateSubscriptionQuoteForItemsRequest.
|
|
51
|
+
* discounts[quantity][] has been added to Quote#CreateForChargeItemsAndChargesRequest.
|
|
52
|
+
* discounts[quantity][] has been added to Quote#EditForChargeItemsAndChargesRequest.
|
|
53
|
+
* discounts[quantity][] has been added to Subscription#CreateWithItemsRequest.
|
|
54
|
+
* discounts[quantity][] has been added to Subscription#UpdateForItemsRequest.
|
|
55
|
+
* discounts[quantity][] has been added to Subscription#ImportForItemsRequest.
|
|
56
|
+
* google_play_store[product_id] has been added to RecordedPurchase#CreateRequest.
|
|
57
|
+
* google_play_store[order_id] has been added to RecordedPurchase#CreateRequest.
|
|
58
|
+
|
|
59
|
+
### New Enums
|
|
60
|
+
* PAUSE has been added to OmnichannelSubscriptionItemScheduledChange#ChangeType.
|
|
61
|
+
* OFFER_QUANTITY has been added to Discount#Type.
|
|
62
|
+
* OFFER_QUANTITY has been added to Subscription#Discount#Type.
|
|
63
|
+
* OMNICHANNEL_ONE_TIME_ORDER has been added to EntityType.
|
|
64
|
+
* OMNICHANNEL_ONE_TIME_ORDER_ITEM has been added to EntityType.
|
|
65
|
+
* USAGE_FILE has been added to EntityType.
|
|
66
|
+
* OMNICHANNEL_ONE_TIME_ORDER_CREATED has been added to EventType.
|
|
67
|
+
* OMNICHANNEL_ONE_TIME_ORDER_ITEM_CANCELLED has been added to EventType.
|
|
68
|
+
* USAGE_FILE_INGESTED has been added to EventType.
|
|
69
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_PAUSE_SCHEDULED has been added to EventType.
|
|
70
|
+
|
|
71
|
+
|
|
1
72
|
### v3.12.0-beta.1 (2025-07-23)
|
|
2
73
|
* * *
|
|
3
74
|
|
package/README.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Chargebee Node.js / TypeScript Client Library
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> [!NOTE]
|
|
4
|
+
> [](https://discord.gg/S3SXDzXHAg)
|
|
5
|
+
>
|
|
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
|
+
|
|
8
|
+
|
|
9
|
+
> [!TIP]
|
|
10
|
+
> If you are using [Next.js](https://nextjs.org/) or [Express](https://expressjs.com/), check out [chargebee-init](https://www.npmjs.com/package/chargebee-init) to get started quickly with the adapters for these frameworks. Learn more about it in this [tutorial](https://www.chargebee.com/tutorials/chargebee-init-nextjs-integration/).
|
|
11
|
+
|
|
4
12
|
|
|
5
13
|
- 📘 For a complete reference of available APIs, check out our [API Documentation](https://apidocs.chargebee.com/docs/api/?lang=node).
|
|
6
14
|
- 🧪 To explore and test API capabilities interactively, head over to our [API Explorer](https://api-explorer.chargebee.com).
|
|
7
15
|
|
|
8
16
|
If you're upgrading from an older version of [`chargebee-typescript`](https://www.npmjs.com/package/chargebee-typescript) or [`chargebee`](https://www.npmjs.com/package/chargebee/v/2.40.0), please refer to the [Migration Guide](https://github.com/chargebee/chargebee-node/wiki/Migration-guide-for-v3).
|
|
9
17
|
|
|
18
|
+
|
|
10
19
|
## Requirements
|
|
11
20
|
|
|
12
21
|
Node.js 18 or higher.
|
|
@@ -209,6 +218,26 @@ try {
|
|
|
209
218
|
}
|
|
210
219
|
```
|
|
211
220
|
|
|
221
|
+
### Webhook Type Mapping
|
|
222
|
+
To improve type safety and gain better autocompletion when working with webhooks, you can leverage the `WebhookEvent` resource. This allows you to strongly type the event content for a particular webhook event.
|
|
223
|
+
|
|
224
|
+
#### Example
|
|
225
|
+
|
|
226
|
+
```ts
|
|
227
|
+
import Chargebee, { type WebhookContentType, WebhookEvent } from "chargebee";
|
|
228
|
+
|
|
229
|
+
const result = await chargebeeInstance.event.retrieve("{event-id}");
|
|
230
|
+
const subscripitonActivatedEvent: WebhookEvent<WebhookContentType.SubscriptionActivated> = result.event;
|
|
231
|
+
const subscription = subscripitonActivatedEvent.content.subscription;
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
#### Notes
|
|
235
|
+
|
|
236
|
+
* `WebhookEvent<T>` provides type hinting for the event payload, making it easier to work with specific event structures.
|
|
237
|
+
* Use the `WebhookContentType` to specify the exact event type (e.g., `SubscriptionCreated`, `InvoiceGenerated`, etc.).
|
|
238
|
+
* This approach ensures you get proper IntelliSense and compile-time checks when accessing event fields.
|
|
239
|
+
|
|
240
|
+
|
|
212
241
|
## Feedback
|
|
213
242
|
|
|
214
243
|
If you find any bugs or have any questions / feedback, open an issue in this repository or reach out to us on dx@chargebee.com
|
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.13.0',
|
|
15
15
|
port: DEFAULT_PORT,
|
|
16
16
|
timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
|
|
17
17
|
exportWaitInMillis: DEFAULT_EXPORT_WAIT,
|
|
@@ -4676,6 +4676,31 @@ exports.Endpoints = {
|
|
|
4676
4676
|
],
|
|
4677
4677
|
['retrieve', 'GET', '/recorded_purchases', null, true, null, false, {}, {}],
|
|
4678
4678
|
],
|
|
4679
|
+
omnichannelOneTimeOrder: [
|
|
4680
|
+
[
|
|
4681
|
+
'retrieve',
|
|
4682
|
+
'GET',
|
|
4683
|
+
'/omnichannel_one_time_orders',
|
|
4684
|
+
null,
|
|
4685
|
+
true,
|
|
4686
|
+
null,
|
|
4687
|
+
false,
|
|
4688
|
+
{},
|
|
4689
|
+
{},
|
|
4690
|
+
],
|
|
4691
|
+
[
|
|
4692
|
+
'list',
|
|
4693
|
+
'GET',
|
|
4694
|
+
'/omnichannel_one_time_orders',
|
|
4695
|
+
null,
|
|
4696
|
+
false,
|
|
4697
|
+
null,
|
|
4698
|
+
false,
|
|
4699
|
+
{},
|
|
4700
|
+
{},
|
|
4701
|
+
],
|
|
4702
|
+
],
|
|
4703
|
+
omnichannelOneTimeOrderItem: [],
|
|
4679
4704
|
rule: [['retrieve', 'GET', '/rules', null, true, null, false, {}, {}]],
|
|
4680
4705
|
usageEvent: [
|
|
4681
4706
|
[
|
|
@@ -4708,10 +4733,10 @@ exports.Endpoints = {
|
|
|
4708
4733
|
omnichannelSubscriptionItemScheduledChange: [],
|
|
4709
4734
|
usageFile: [
|
|
4710
4735
|
[
|
|
4711
|
-
'
|
|
4736
|
+
'uploadUrl',
|
|
4712
4737
|
'POST',
|
|
4713
4738
|
'/usage_files',
|
|
4714
|
-
'/
|
|
4739
|
+
'/upload_url',
|
|
4715
4740
|
false,
|
|
4716
4741
|
'file-ingest',
|
|
4717
4742
|
false,
|
|
@@ -4719,10 +4744,10 @@ exports.Endpoints = {
|
|
|
4719
4744
|
{},
|
|
4720
4745
|
],
|
|
4721
4746
|
[
|
|
4722
|
-
'
|
|
4747
|
+
'processingStatus',
|
|
4723
4748
|
'GET',
|
|
4724
4749
|
'/usage_files',
|
|
4725
|
-
'/
|
|
4750
|
+
'/processing_status',
|
|
4726
4751
|
true,
|
|
4727
4752
|
'file-ingest',
|
|
4728
4753
|
false,
|
|
@@ -4731,4 +4756,50 @@ exports.Endpoints = {
|
|
|
4731
4756
|
],
|
|
4732
4757
|
],
|
|
4733
4758
|
brand: [],
|
|
4759
|
+
webhookEndpoint: [
|
|
4760
|
+
[
|
|
4761
|
+
'create',
|
|
4762
|
+
'POST',
|
|
4763
|
+
'/webhook_endpoints',
|
|
4764
|
+
null,
|
|
4765
|
+
false,
|
|
4766
|
+
null,
|
|
4767
|
+
false,
|
|
4768
|
+
{},
|
|
4769
|
+
{
|
|
4770
|
+
isIdempotent: true,
|
|
4771
|
+
},
|
|
4772
|
+
],
|
|
4773
|
+
[
|
|
4774
|
+
'update',
|
|
4775
|
+
'POST',
|
|
4776
|
+
'/webhook_endpoints',
|
|
4777
|
+
null,
|
|
4778
|
+
true,
|
|
4779
|
+
null,
|
|
4780
|
+
false,
|
|
4781
|
+
{},
|
|
4782
|
+
{
|
|
4783
|
+
isIdempotent: true,
|
|
4784
|
+
},
|
|
4785
|
+
],
|
|
4786
|
+
['retrieve', 'GET', '/webhook_endpoints', null, true, null, false, {}, {}],
|
|
4787
|
+
[
|
|
4788
|
+
'delete',
|
|
4789
|
+
'POST',
|
|
4790
|
+
'/webhook_endpoints',
|
|
4791
|
+
'/delete',
|
|
4792
|
+
true,
|
|
4793
|
+
null,
|
|
4794
|
+
false,
|
|
4795
|
+
{},
|
|
4796
|
+
{
|
|
4797
|
+
isIdempotent: true,
|
|
4798
|
+
},
|
|
4799
|
+
],
|
|
4800
|
+
['list', 'GET', '/webhook_endpoints', null, false, null, false, {}, {}],
|
|
4801
|
+
],
|
|
4802
|
+
impactedCustomer: [],
|
|
4803
|
+
subscriptionEntitlementsUpdatedDetail: [],
|
|
4804
|
+
subscriptionEntitlementsCreatedDetail: [],
|
|
4734
4805
|
};
|
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.13.0',
|
|
12
12
|
port: DEFAULT_PORT,
|
|
13
13
|
timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
|
|
14
14
|
exportWaitInMillis: DEFAULT_EXPORT_WAIT,
|
|
@@ -4673,6 +4673,31 @@ export const Endpoints = {
|
|
|
4673
4673
|
],
|
|
4674
4674
|
['retrieve', 'GET', '/recorded_purchases', null, true, null, false, {}, {}],
|
|
4675
4675
|
],
|
|
4676
|
+
omnichannelOneTimeOrder: [
|
|
4677
|
+
[
|
|
4678
|
+
'retrieve',
|
|
4679
|
+
'GET',
|
|
4680
|
+
'/omnichannel_one_time_orders',
|
|
4681
|
+
null,
|
|
4682
|
+
true,
|
|
4683
|
+
null,
|
|
4684
|
+
false,
|
|
4685
|
+
{},
|
|
4686
|
+
{},
|
|
4687
|
+
],
|
|
4688
|
+
[
|
|
4689
|
+
'list',
|
|
4690
|
+
'GET',
|
|
4691
|
+
'/omnichannel_one_time_orders',
|
|
4692
|
+
null,
|
|
4693
|
+
false,
|
|
4694
|
+
null,
|
|
4695
|
+
false,
|
|
4696
|
+
{},
|
|
4697
|
+
{},
|
|
4698
|
+
],
|
|
4699
|
+
],
|
|
4700
|
+
omnichannelOneTimeOrderItem: [],
|
|
4676
4701
|
rule: [['retrieve', 'GET', '/rules', null, true, null, false, {}, {}]],
|
|
4677
4702
|
usageEvent: [
|
|
4678
4703
|
[
|
|
@@ -4705,10 +4730,10 @@ export const Endpoints = {
|
|
|
4705
4730
|
omnichannelSubscriptionItemScheduledChange: [],
|
|
4706
4731
|
usageFile: [
|
|
4707
4732
|
[
|
|
4708
|
-
'
|
|
4733
|
+
'uploadUrl',
|
|
4709
4734
|
'POST',
|
|
4710
4735
|
'/usage_files',
|
|
4711
|
-
'/
|
|
4736
|
+
'/upload_url',
|
|
4712
4737
|
false,
|
|
4713
4738
|
'file-ingest',
|
|
4714
4739
|
false,
|
|
@@ -4716,10 +4741,10 @@ export const Endpoints = {
|
|
|
4716
4741
|
{},
|
|
4717
4742
|
],
|
|
4718
4743
|
[
|
|
4719
|
-
'
|
|
4744
|
+
'processingStatus',
|
|
4720
4745
|
'GET',
|
|
4721
4746
|
'/usage_files',
|
|
4722
|
-
'/
|
|
4747
|
+
'/processing_status',
|
|
4723
4748
|
true,
|
|
4724
4749
|
'file-ingest',
|
|
4725
4750
|
false,
|
|
@@ -4728,4 +4753,50 @@ export const Endpoints = {
|
|
|
4728
4753
|
],
|
|
4729
4754
|
],
|
|
4730
4755
|
brand: [],
|
|
4756
|
+
webhookEndpoint: [
|
|
4757
|
+
[
|
|
4758
|
+
'create',
|
|
4759
|
+
'POST',
|
|
4760
|
+
'/webhook_endpoints',
|
|
4761
|
+
null,
|
|
4762
|
+
false,
|
|
4763
|
+
null,
|
|
4764
|
+
false,
|
|
4765
|
+
{},
|
|
4766
|
+
{
|
|
4767
|
+
isIdempotent: true,
|
|
4768
|
+
},
|
|
4769
|
+
],
|
|
4770
|
+
[
|
|
4771
|
+
'update',
|
|
4772
|
+
'POST',
|
|
4773
|
+
'/webhook_endpoints',
|
|
4774
|
+
null,
|
|
4775
|
+
true,
|
|
4776
|
+
null,
|
|
4777
|
+
false,
|
|
4778
|
+
{},
|
|
4779
|
+
{
|
|
4780
|
+
isIdempotent: true,
|
|
4781
|
+
},
|
|
4782
|
+
],
|
|
4783
|
+
['retrieve', 'GET', '/webhook_endpoints', null, true, null, false, {}, {}],
|
|
4784
|
+
[
|
|
4785
|
+
'delete',
|
|
4786
|
+
'POST',
|
|
4787
|
+
'/webhook_endpoints',
|
|
4788
|
+
'/delete',
|
|
4789
|
+
true,
|
|
4790
|
+
null,
|
|
4791
|
+
false,
|
|
4792
|
+
{},
|
|
4793
|
+
{
|
|
4794
|
+
isIdempotent: true,
|
|
4795
|
+
},
|
|
4796
|
+
],
|
|
4797
|
+
['list', 'GET', '/webhook_endpoints', null, false, null, false, {}, {}],
|
|
4798
|
+
],
|
|
4799
|
+
impactedCustomer: [],
|
|
4800
|
+
subscriptionEntitlementsUpdatedDetail: [],
|
|
4801
|
+
subscriptionEntitlementsCreatedDetail: [],
|
|
4731
4802
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chargebee",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.13.0",
|
|
4
4
|
"description": "A library for integrating with Chargebee.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepack": "npm install && npm run build",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"types": "./types/index.d.ts",
|
|
13
13
|
"keywords": [
|
|
14
|
-
"
|
|
14
|
+
"payments",
|
|
15
15
|
"billings",
|
|
16
16
|
"subscription",
|
|
17
17
|
"chargebee"
|
package/types/core.d.ts
CHANGED
|
@@ -144,7 +144,10 @@ declare module 'chargebee' {
|
|
|
144
144
|
| 'omnichannel_transaction'
|
|
145
145
|
| 'recorded_purchase'
|
|
146
146
|
| 'omnichannel_subscription_item_scheduled_change'
|
|
147
|
-
| 'sales_order'
|
|
147
|
+
| 'sales_order'
|
|
148
|
+
| 'omnichannel_one_time_order'
|
|
149
|
+
| 'omnichannel_one_time_order_item'
|
|
150
|
+
| 'usage_file';
|
|
148
151
|
type EventNameEnum = 'cancellation_page_loaded';
|
|
149
152
|
type EventTypeEnum =
|
|
150
153
|
| 'coupon_created'
|
|
@@ -349,6 +352,10 @@ declare module 'chargebee' {
|
|
|
349
352
|
| 'omnichannel_subscription_item_changed'
|
|
350
353
|
| 'omnichannel_subscription_item_paused'
|
|
351
354
|
| 'omnichannel_subscription_item_resumed'
|
|
355
|
+
| 'omnichannel_one_time_order_created'
|
|
356
|
+
| 'omnichannel_one_time_order_item_cancelled'
|
|
357
|
+
| 'usage_file_ingested'
|
|
358
|
+
| 'omnichannel_subscription_item_pause_scheduled'
|
|
352
359
|
| 'plan_created'
|
|
353
360
|
| 'plan_updated'
|
|
354
361
|
| 'plan_deleted'
|
package/types/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
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' />
|
|
9
10
|
///<reference path='./resources/BusinessEntityTransfer.d.ts' />
|
|
10
11
|
///<reference path='./resources/Card.d.ts' />
|
|
11
12
|
///<reference path='./resources/Comment.d.ts' />
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
///<reference path='./resources/Gift.d.ts' />
|
|
34
35
|
///<reference path='./resources/Hierarchy.d.ts' />
|
|
35
36
|
///<reference path='./resources/HostedPage.d.ts' />
|
|
37
|
+
///<reference path='./resources/ImpactedCustomer.d.ts' />
|
|
36
38
|
///<reference path='./resources/ImpactedItem.d.ts' />
|
|
37
39
|
///<reference path='./resources/ImpactedItemPrice.d.ts' />
|
|
38
40
|
///<reference path='./resources/ImpactedSubscription.d.ts' />
|
|
@@ -45,6 +47,8 @@
|
|
|
45
47
|
///<reference path='./resources/ItemPrice.d.ts' />
|
|
46
48
|
///<reference path='./resources/Metadata.d.ts' />
|
|
47
49
|
///<reference path='./resources/NonSubscription.d.ts' />
|
|
50
|
+
///<reference path='./resources/OmnichannelOneTimeOrder.d.ts' />
|
|
51
|
+
///<reference path='./resources/OmnichannelOneTimeOrderItem.d.ts' />
|
|
48
52
|
///<reference path='./resources/OmnichannelSubscription.d.ts' />
|
|
49
53
|
///<reference path='./resources/OmnichannelSubscriptionItem.d.ts' />
|
|
50
54
|
///<reference path='./resources/OmnichannelSubscriptionItemScheduledChange.d.ts' />
|
|
@@ -61,6 +65,7 @@
|
|
|
61
65
|
///<reference path='./resources/PortalSession.d.ts' />
|
|
62
66
|
///<reference path='./resources/PriceVariant.d.ts' />
|
|
63
67
|
///<reference path='./resources/PricingPageSession.d.ts' />
|
|
68
|
+
///<reference path='./resources/Product.d.ts' />
|
|
64
69
|
///<reference path='./resources/PromotionalCredit.d.ts' />
|
|
65
70
|
///<reference path='./resources/Purchase.d.ts' />
|
|
66
71
|
///<reference path='./resources/Quote.d.ts' />
|
|
@@ -72,9 +77,12 @@
|
|
|
72
77
|
///<reference path='./resources/RecordedPurchase.d.ts' />
|
|
73
78
|
///<reference path='./resources/ResourceMigration.d.ts' />
|
|
74
79
|
///<reference path='./resources/Rule.d.ts' />
|
|
80
|
+
///<reference path='./resources/SalesOrder.d.ts' />
|
|
75
81
|
///<reference path='./resources/SiteMigrationDetail.d.ts' />
|
|
76
82
|
///<reference path='./resources/Subscription.d.ts' />
|
|
77
83
|
///<reference path='./resources/SubscriptionEntitlement.d.ts' />
|
|
84
|
+
///<reference path='./resources/SubscriptionEntitlementsCreatedDetail.d.ts' />
|
|
85
|
+
///<reference path='./resources/SubscriptionEntitlementsUpdatedDetail.d.ts' />
|
|
78
86
|
///<reference path='./resources/SubscriptionEstimate.d.ts' />
|
|
79
87
|
///<reference path='./resources/TaxWithheld.d.ts' />
|
|
80
88
|
///<reference path='./resources/ThirdPartyPaymentMethod.d.ts' />
|
|
@@ -85,7 +93,12 @@
|
|
|
85
93
|
///<reference path='./resources/Usage.d.ts' />
|
|
86
94
|
///<reference path='./resources/UsageEvent.d.ts' />
|
|
87
95
|
///<reference path='./resources/UsageFile.d.ts' />
|
|
96
|
+
///<reference path='./resources/UsageReminderInfo.d.ts' />
|
|
97
|
+
///<reference path='./resources/Variant.d.ts' />
|
|
88
98
|
///<reference path='./resources/VirtualBankAccount.d.ts' />
|
|
99
|
+
///<reference path='./resources/WebhookEndpoint.d.ts' />
|
|
100
|
+
///<reference path='./resources/Content.d.ts' />
|
|
101
|
+
///<reference path='./resources/WebhookEvent.d.ts' />
|
|
89
102
|
|
|
90
103
|
export type Config = {
|
|
91
104
|
/**
|
|
@@ -186,6 +199,7 @@ declare module 'chargebee' {
|
|
|
186
199
|
itemFamily: ItemFamily.ItemFamilyResource;
|
|
187
200
|
itemPrice: ItemPrice.ItemPriceResource;
|
|
188
201
|
nonSubscription: NonSubscription.NonSubscriptionResource;
|
|
202
|
+
omnichannelOneTimeOrder: OmnichannelOneTimeOrder.OmnichannelOneTimeOrderResource;
|
|
189
203
|
omnichannelSubscription: OmnichannelSubscription.OmnichannelSubscriptionResource;
|
|
190
204
|
omnichannelSubscriptionItem: OmnichannelSubscriptionItem.OmnichannelSubscriptionItemResource;
|
|
191
205
|
order: Order.OrderResource;
|
|
@@ -197,6 +211,7 @@ declare module 'chargebee' {
|
|
|
197
211
|
portalSession: PortalSession.PortalSessionResource;
|
|
198
212
|
priceVariant: PriceVariant.PriceVariantResource;
|
|
199
213
|
pricingPageSession: PricingPageSession.PricingPageSessionResource;
|
|
214
|
+
product: Product.ProductResource;
|
|
200
215
|
promotionalCredit: PromotionalCredit.PromotionalCreditResource;
|
|
201
216
|
purchase: Purchase.PurchaseResource;
|
|
202
217
|
quote: Quote.QuoteResource;
|
|
@@ -213,6 +228,8 @@ declare module 'chargebee' {
|
|
|
213
228
|
usage: Usage.UsageResource;
|
|
214
229
|
usageEvent: UsageEvent.UsageEventResource;
|
|
215
230
|
usageFile: UsageFile.UsageFileResource;
|
|
231
|
+
variant: Variant.VariantResource;
|
|
216
232
|
virtualBankAccount: VirtualBankAccount.VirtualBankAccountResource;
|
|
233
|
+
webhookEndpoint: WebhookEndpoint.WebhookEndpointResource;
|
|
217
234
|
}
|
|
218
235
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -10,6 +10,7 @@ declare module 'chargebee' {
|
|
|
10
10
|
created_at: number;
|
|
11
11
|
type: 'user' | 'system';
|
|
12
12
|
entity_id: string;
|
|
13
|
+
business_entity_id?: string;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export namespace Comment {
|
|
@@ -82,6 +83,9 @@ declare module 'chargebee' {
|
|
|
82
83
|
| 'recorded_purchase'
|
|
83
84
|
| 'omnichannel_subscription_item_scheduled_change'
|
|
84
85
|
| 'sales_order'
|
|
86
|
+
| 'omnichannel_one_time_order'
|
|
87
|
+
| 'omnichannel_one_time_order_item'
|
|
88
|
+
| 'usage_file'
|
|
85
89
|
| 'item_family'
|
|
86
90
|
| 'item'
|
|
87
91
|
| 'item_price'
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface Content {
|
|
6
|
+
addon: Addon;
|
|
7
|
+
address: Address;
|
|
8
|
+
advance_invoice_schedule: AdvanceInvoiceSchedule;
|
|
9
|
+
attached_item: AttachedItem;
|
|
10
|
+
attribute: Attribute;
|
|
11
|
+
billing_configuration: BillingConfiguration;
|
|
12
|
+
brand: Brand;
|
|
13
|
+
business_entity: BusinessEntity;
|
|
14
|
+
business_entity_change: BusinessEntityChange;
|
|
15
|
+
business_entity_transfer: BusinessEntityTransfer;
|
|
16
|
+
card: Card;
|
|
17
|
+
comment: Comment;
|
|
18
|
+
configuration: Configuration;
|
|
19
|
+
contact: Contact;
|
|
20
|
+
contract_term: ContractTerm;
|
|
21
|
+
coupon: Coupon;
|
|
22
|
+
coupon_code: CouponCode;
|
|
23
|
+
coupon_set: CouponSet;
|
|
24
|
+
credit_note: CreditNote;
|
|
25
|
+
credit_note_estimate: CreditNoteEstimate;
|
|
26
|
+
currency: Currency;
|
|
27
|
+
customer: Customer;
|
|
28
|
+
customer_entitlement: CustomerEntitlement;
|
|
29
|
+
differential_price: DifferentialPrice;
|
|
30
|
+
discount: Discount;
|
|
31
|
+
download: Download;
|
|
32
|
+
entitlement: Entitlement;
|
|
33
|
+
entitlement_override: EntitlementOverride;
|
|
34
|
+
estimate: Estimate;
|
|
35
|
+
event: Event;
|
|
36
|
+
export: Export;
|
|
37
|
+
feature: Feature;
|
|
38
|
+
gateway_error_detail: GatewayErrorDetail;
|
|
39
|
+
gift: Gift;
|
|
40
|
+
hierarchy: Hierarchy;
|
|
41
|
+
hosted_page: HostedPage;
|
|
42
|
+
impacted_customer: ImpactedCustomer;
|
|
43
|
+
impacted_item: ImpactedItem;
|
|
44
|
+
impacted_item_price: ImpactedItemPrice;
|
|
45
|
+
impacted_subscription: ImpactedSubscription;
|
|
46
|
+
in_app_subscription: InAppSubscription;
|
|
47
|
+
invoice: Invoice;
|
|
48
|
+
invoice_estimate: InvoiceEstimate;
|
|
49
|
+
item: Item;
|
|
50
|
+
item_entitlement: ItemEntitlement;
|
|
51
|
+
item_family: ItemFamily;
|
|
52
|
+
item_price: ItemPrice;
|
|
53
|
+
metadata: Metadata;
|
|
54
|
+
non_subscription: NonSubscription;
|
|
55
|
+
omnichannel_one_time_order: OmnichannelOneTimeOrder;
|
|
56
|
+
omnichannel_one_time_order_item: OmnichannelOneTimeOrderItem;
|
|
57
|
+
omnichannel_subscription: OmnichannelSubscription;
|
|
58
|
+
omnichannel_subscription_item: OmnichannelSubscriptionItem;
|
|
59
|
+
omnichannel_subscription_item_scheduled_change: OmnichannelSubscriptionItemScheduledChange;
|
|
60
|
+
omnichannel_transaction: OmnichannelTransaction;
|
|
61
|
+
order: Order;
|
|
62
|
+
payment_intent: PaymentIntent;
|
|
63
|
+
payment_reference_number: PaymentReferenceNumber;
|
|
64
|
+
payment_schedule: PaymentSchedule;
|
|
65
|
+
payment_schedule_estimate: PaymentScheduleEstimate;
|
|
66
|
+
payment_schedule_scheme: PaymentScheduleScheme;
|
|
67
|
+
payment_source: PaymentSource;
|
|
68
|
+
payment_voucher: PaymentVoucher;
|
|
69
|
+
plan: Plan;
|
|
70
|
+
portal_session: PortalSession;
|
|
71
|
+
price_variant: PriceVariant;
|
|
72
|
+
pricing_page_session: PricingPageSession;
|
|
73
|
+
product: Product;
|
|
74
|
+
promotional_credit: PromotionalCredit;
|
|
75
|
+
purchase: Purchase;
|
|
76
|
+
quote: Quote;
|
|
77
|
+
quote_line_group: QuoteLineGroup;
|
|
78
|
+
quoted_charge: QuotedCharge;
|
|
79
|
+
quoted_ramp: QuotedRamp;
|
|
80
|
+
quoted_subscription: QuotedSubscription;
|
|
81
|
+
ramp: Ramp;
|
|
82
|
+
recorded_purchase: RecordedPurchase;
|
|
83
|
+
resource_migration: ResourceMigration;
|
|
84
|
+
rule: Rule;
|
|
85
|
+
sales_order: SalesOrder;
|
|
86
|
+
site_migration_detail: SiteMigrationDetail;
|
|
87
|
+
subscription: Subscription;
|
|
88
|
+
subscription_entitlement: SubscriptionEntitlement;
|
|
89
|
+
subscription_entitlements_created_detail: SubscriptionEntitlementsCreatedDetail;
|
|
90
|
+
subscription_entitlements_updated_detail: SubscriptionEntitlementsUpdatedDetail;
|
|
91
|
+
subscription_estimate: SubscriptionEstimate;
|
|
92
|
+
tax_withheld: TaxWithheld;
|
|
93
|
+
third_party_payment_method: ThirdPartyPaymentMethod;
|
|
94
|
+
time_machine: TimeMachine;
|
|
95
|
+
token: Token;
|
|
96
|
+
transaction: Transaction;
|
|
97
|
+
unbilled_charge: UnbilledCharge;
|
|
98
|
+
usage: Usage;
|
|
99
|
+
usage_event: UsageEvent;
|
|
100
|
+
usage_file: UsageFile;
|
|
101
|
+
usage_reminder_info: UsageReminderInfo;
|
|
102
|
+
variant: Variant;
|
|
103
|
+
virtual_bank_account: VirtualBankAccount;
|
|
104
|
+
webhook_endpoint: WebhookEndpoint;
|
|
105
|
+
}
|
|
106
|
+
}
|