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 +25 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +1 -0
- package/package.json +1 -1
- package/types/index.d.ts +1 -0
- package/types/resources/Card.d.ts +0 -2
- package/types/resources/OmnichannelSubscription.d.ts +11 -20
- package/types/resources/OmnichannelSubscriptionItem.d.ts +28 -0
- package/types/resources/OmnichannelTransaction.d.ts +2 -0
- package/types/resources/RecordedPurchase.d.ts +2 -0
- package/types/resources/Subscription.d.ts +4 -2
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
package/package.json
CHANGED
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' />
|
|
@@ -16,7 +16,9 @@ declare module 'chargebee' {
|
|
|
16
16
|
|
|
17
17
|
created_at:number;
|
|
18
18
|
|
|
19
|
-
|
|
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
|
-
|
|
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
|
+
}
|
|
@@ -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 {
|