chargebee 2.44.0 → 2.45.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 CHANGED
@@ -1,3 +1,28 @@
1
+ ### v2.45.0 (2024-11-27)
2
+ * * *
3
+
4
+ #### New Resource:
5
+ * OmnichannelSubscriptionItem has been added.
6
+
7
+ #### New Attribute:
8
+ * resource_version has been added to OmnichannelSubscription.
9
+ * resource_version has been added to OmnichannelTransaction.
10
+ * resource_version has been added to RecordedPurchase.
11
+
12
+ #### New Input Parameters:
13
+ * limit has been added to OmnichannelSubscription#ListRequest.
14
+ * offset has been added to OmnichannelSubscription#ListRequest.
15
+ * customer_id has been added to OmnichannelSubscription#ListRequest.
16
+ * replace_coupon_list has been added to HostedPage#CheckoutExistingRequest.
17
+ * replace_coupon_list has been added to HostedPage#CheckoutExistingForItemsRequest.
18
+ * subscription[po_number] has been added to HostedPage#CheckoutNewForItemsRequest.
19
+
20
+ #### Removed Subresource:
21
+ * OmnichannelSubscriptionItem subresource has been removed from OmnichannelSubscription and is now a standalone resource.
22
+
23
+ #### Deprecated Attribute:
24
+ * metadata has been deprecated from subscription.
25
+
1
26
  ### v2.44.0 (2024-11-14)
2
27
  * * *
3
28
 
package/lib/chargebee.js CHANGED
@@ -11,7 +11,7 @@ ChargeBee._env = {
11
11
  hostSuffix: '.chargebee.com',
12
12
  apiPath: '/api/v2',
13
13
  timeout: 80000,
14
- clientVersion: 'v2.44.0',
14
+ clientVersion: 'v2.45.0',
15
15
  port: 443,
16
16
  timemachineWaitInMillis: 3000,
17
17
  exportWaitInMillis: 3000
@@ -2953,6 +2953,7 @@ var _endpoints = {
2953
2953
  ]
2954
2954
  ],
2955
2955
  "omnichannel_transaction": [],
2956
+ "omnichannel_subscription_item": [],
2956
2957
  "recorded_purchase": [
2957
2958
  [
2958
2959
  "create",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"chargebee",
3
- "version":"2.44.0",
3
+ "version":"2.45.0",
4
4
  "description":"A library for integrating with ChargeBee.",
5
5
  "keywords":[
6
6
  "payments",
package/types/index.d.ts CHANGED
@@ -42,6 +42,7 @@
42
42
  ///<reference path='./resources/Metadata.d.ts' />
43
43
  ///<reference path='./resources/NonSubscription.d.ts' />
44
44
  ///<reference path='./resources/OmnichannelSubscription.d.ts' />
45
+ ///<reference path='./resources/OmnichannelSubscriptionItem.d.ts' />
45
46
  ///<reference path='./resources/OmnichannelTransaction.d.ts' />
46
47
  ///<reference path='./resources/Order.d.ts' />
47
48
  ///<reference path='./resources/PaymentIntent.d.ts' />
@@ -1,6 +1,4 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
- ///<reference path='./../index.d.ts'/>
3
-
4
2
  declare module 'chargebee' {
5
3
  export interface Card {
6
4
 
@@ -16,7 +16,9 @@ declare module 'chargebee' {
16
16
 
17
17
  created_at:number;
18
18
 
19
- omnichannel_subscription_items:OmnichannelSubscription.OmnichannelSubscriptionItem[];
19
+ resource_version?:number;
20
+
21
+ omnichannel_subscription_items:OmnichannelSubscriptionItem[];
20
22
 
21
23
  }
22
24
  export namespace OmnichannelSubscription {
@@ -51,6 +53,13 @@ declare module 'chargebee' {
51
53
  */
52
54
 
53
55
  offset?:string;
56
+
57
+ /**
58
+ * @description Chargebee Customer External Identifier
59
+
60
+ */
61
+
62
+ customer_id?:{is?:string,is_not?:string,starts_with?:string};
54
63
  }
55
64
  export interface OmnichannelTransactionsForOmnichannelSubscriptionResponse {
56
65
  list:{omnichannel_transaction:OmnichannelTransaction}[];
@@ -73,24 +82,6 @@ declare module 'chargebee' {
73
82
 
74
83
  offset?:string;
75
84
  }
76
- export interface OmnichannelSubscriptionItem {
77
- id:string;
78
-
79
- id_at_source:string;
80
-
81
- status:'active' | 'expired' | 'cancelled';
82
-
83
- current_term_start?:number;
84
-
85
- current_term_end?:number;
86
-
87
- expired_at?:number;
88
-
89
- expiration_reason?:'billing_error' | 'product_not_available' | 'other';
90
-
91
- cancelled_at?:number;
92
-
93
- cancellation_reason?:'customer_cancelled' | 'customer_did_not_consent_to_price_increase';
94
- }
85
+
95
86
  }
96
87
  }
@@ -0,0 +1,28 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+ declare module 'chargebee' {
4
+ export interface OmnichannelSubscriptionItem {
5
+
6
+
7
+ id:string;
8
+
9
+ item_id_at_source:string;
10
+
11
+ status:'active' | 'expired' | 'cancelled';
12
+
13
+ current_term_start?:number;
14
+
15
+ current_term_end?:number;
16
+
17
+ expired_at?:number;
18
+
19
+ expiration_reason?:'billing_error' | 'product_not_available' | 'other';
20
+
21
+ cancelled_at?:number;
22
+
23
+ cancellation_reason?:'customer_cancelled' | 'customer_did_not_consent_to_price_increase';
24
+
25
+ resource_version?:number;
26
+
27
+ }
28
+ }
@@ -22,5 +22,7 @@ declare module 'chargebee' {
22
22
 
23
23
  created_at:number;
24
24
 
25
+ resource_version?:number;
26
+
25
27
  }
26
28
  }
@@ -18,6 +18,8 @@ declare module 'chargebee' {
18
18
 
19
19
  created_at:number;
20
20
 
21
+ resource_version?:number;
22
+
21
23
  linked_omnichannel_subscriptions?:RecordedPurchase.LinkedOmnichannelSubscription[];
22
24
 
23
25
  error_detail?:RecordedPurchase.ErrorDetail;
@@ -138,8 +138,6 @@ declare module 'chargebee' {
138
138
 
139
139
  meta_data?:object;
140
140
 
141
- metadata?:object;
142
-
143
141
  deleted:boolean;
144
142
 
145
143
  changes_scheduled_at?:number;
@@ -159,6 +157,10 @@ declare module 'chargebee' {
159
157
  discounts?:Subscription.Discount[];
160
158
 
161
159
  business_entity_id?:string;
160
+ /**
161
+ * @deprecated metadata is deprecated please use meta_data instead
162
+ */
163
+ metadata?:object;
162
164
 
163
165
  }
164
166
  export namespace Subscription {