chargebee 3.1.0 → 3.2.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 +24 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +1 -0
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +1 -0
- package/package.json +1 -1
- package/types/index.d.ts +1 -0
- package/types/resources/HostedPage.d.ts +3 -0
- package/types/resources/OmnichannelSubscription.d.ts +3 -14
- package/types/resources/OmnichannelSubscriptionItem.d.ts +19 -0
- package/types/resources/OmnichannelTransaction.d.ts +1 -0
- package/types/resources/RecordedPurchase.d.ts +1 -0
- package/types/resources/Subscription.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
### v3.2.0 (2024-11-27)
|
|
2
|
+
* * *
|
|
3
|
+
#### New Resource:
|
|
4
|
+
* OmnichannelSubscriptionItem has been added.
|
|
5
|
+
|
|
6
|
+
#### New Attribute:
|
|
7
|
+
* resource_version has been added to OmnichannelSubscription.
|
|
8
|
+
* resource_version has been added to OmnichannelTransaction.
|
|
9
|
+
* resource_version has been added to RecordedPurchase.
|
|
10
|
+
|
|
11
|
+
#### New Input Parameters:
|
|
12
|
+
* limit has been added to OmnichannelSubscription#ListRequest.
|
|
13
|
+
* offset has been added to OmnichannelSubscription#ListRequest.
|
|
14
|
+
* customer_id has been added to OmnichannelSubscription#ListRequest.
|
|
15
|
+
* replace_coupon_list has been added to HostedPage#CheckoutExistingRequest.
|
|
16
|
+
* replace_coupon_list has been added to HostedPage#CheckoutExistingForItemsRequest.
|
|
17
|
+
* subscription[po_number] has been added to HostedPage#CheckoutNewForItemsRequest.
|
|
18
|
+
|
|
19
|
+
#### Removed Subresource:
|
|
20
|
+
* OmnichannelSubscriptionItem subresource has been removed from OmnichannelSubscription and is now a standalone resource.
|
|
21
|
+
|
|
22
|
+
#### Removed Attribute:
|
|
23
|
+
* metadata has been removed from subscription.
|
|
24
|
+
|
|
1
25
|
### v3.1.0 (2024-11-14)
|
|
2
26
|
* * *
|
|
3
27
|
|
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.2.0',
|
|
15
15
|
port: DEFAULT_PORT,
|
|
16
16
|
timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
|
|
17
17
|
exportWaitInMillis: DEFAULT_EXPORT_WAIT,
|
|
@@ -1108,6 +1108,7 @@ exports.Endpoints = {
|
|
|
1108
1108
|
],
|
|
1109
1109
|
],
|
|
1110
1110
|
omnichannelTransaction: [],
|
|
1111
|
+
omnichannelSubscriptionItem: [],
|
|
1111
1112
|
recordedPurchase: [
|
|
1112
1113
|
['create', 'POST', '/recorded_purchases', null, false],
|
|
1113
1114
|
['retrieve', 'GET', '/recorded_purchases', null, true],
|
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.2.0',
|
|
12
12
|
port: DEFAULT_PORT,
|
|
13
13
|
timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
|
|
14
14
|
exportWaitInMillis: DEFAULT_EXPORT_WAIT,
|
|
@@ -1105,6 +1105,7 @@ export const Endpoints = {
|
|
|
1105
1105
|
],
|
|
1106
1106
|
],
|
|
1107
1107
|
omnichannelTransaction: [],
|
|
1108
|
+
omnichannelSubscriptionItem: [],
|
|
1108
1109
|
recordedPurchase: [
|
|
1109
1110
|
['create', 'POST', '/recorded_purchases', null, false],
|
|
1110
1111
|
['retrieve', 'GET', '/recorded_purchases', null, true],
|
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' />
|
|
@@ -337,6 +337,7 @@ declare module 'chargebee' {
|
|
|
337
337
|
reactivate_from?: number;
|
|
338
338
|
billing_alignment_mode?: BillingAlignmentModeEnum;
|
|
339
339
|
coupon_ids?: string[];
|
|
340
|
+
replace_coupon_list?: boolean;
|
|
340
341
|
reactivate?: boolean;
|
|
341
342
|
force_term_reset?: boolean;
|
|
342
343
|
redirect_url?: string;
|
|
@@ -362,6 +363,7 @@ declare module 'chargebee' {
|
|
|
362
363
|
reactivate_from?: number;
|
|
363
364
|
billing_alignment_mode?: BillingAlignmentModeEnum;
|
|
364
365
|
coupon_ids?: string[];
|
|
366
|
+
replace_coupon_list?: boolean;
|
|
365
367
|
reactivate?: boolean;
|
|
366
368
|
force_term_reset?: boolean;
|
|
367
369
|
change_option?: ChangeOptionEnum;
|
|
@@ -808,6 +810,7 @@ declare module 'chargebee' {
|
|
|
808
810
|
coupon?: string;
|
|
809
811
|
auto_collection?: AutoCollectionEnum;
|
|
810
812
|
invoice_notes?: string;
|
|
813
|
+
po_number?: string;
|
|
811
814
|
contract_term_billing_cycle_on_renewal?: number;
|
|
812
815
|
}
|
|
813
816
|
export interface CardCheckoutNewForItemsInputParam {
|
|
@@ -9,7 +9,8 @@ declare module 'chargebee' {
|
|
|
9
9
|
source: 'apple_app_store';
|
|
10
10
|
customer_id?: string;
|
|
11
11
|
created_at: number;
|
|
12
|
-
|
|
12
|
+
resource_version?: number;
|
|
13
|
+
omnichannel_subscription_items: OmnichannelSubscriptionItem[];
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export namespace OmnichannelSubscription {
|
|
@@ -47,25 +48,13 @@ declare module 'chargebee' {
|
|
|
47
48
|
next_offset?: string;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
|
-
export interface OmnichannelSubscriptionItem {
|
|
51
|
-
id: string;
|
|
52
|
-
id_at_source: string;
|
|
53
|
-
status: 'active' | 'expired' | 'cancelled';
|
|
54
|
-
current_term_start?: number;
|
|
55
|
-
current_term_end?: number;
|
|
56
|
-
expired_at?: number;
|
|
57
|
-
expiration_reason?: 'billing_error' | 'product_not_available' | 'other';
|
|
58
|
-
cancelled_at?: number;
|
|
59
|
-
cancellation_reason?:
|
|
60
|
-
| 'customer_cancelled'
|
|
61
|
-
| 'customer_did_not_consent_to_price_increase';
|
|
62
|
-
}
|
|
63
51
|
// REQUEST PARAMS
|
|
64
52
|
//---------------
|
|
65
53
|
|
|
66
54
|
export interface ListInputParam {
|
|
67
55
|
limit?: number;
|
|
68
56
|
offset?: string;
|
|
57
|
+
customer_id?: filter.String;
|
|
69
58
|
}
|
|
70
59
|
export interface OmnichannelTransactionsForOmnichannelSubscriptionInputParam {
|
|
71
60
|
limit?: number;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface OmnichannelSubscriptionItem {
|
|
6
|
+
id: string;
|
|
7
|
+
item_id_at_source: string;
|
|
8
|
+
status: 'active' | 'expired' | 'cancelled';
|
|
9
|
+
current_term_start?: number;
|
|
10
|
+
current_term_end?: number;
|
|
11
|
+
expired_at?: number;
|
|
12
|
+
expiration_reason?: 'billing_error' | 'product_not_available' | 'other';
|
|
13
|
+
cancelled_at?: number;
|
|
14
|
+
cancellation_reason?:
|
|
15
|
+
| 'customer_cancelled'
|
|
16
|
+
| 'customer_did_not_consent_to_price_increase';
|
|
17
|
+
resource_version?: number;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -10,6 +10,7 @@ declare module 'chargebee' {
|
|
|
10
10
|
status: 'in_process' | 'completed' | 'failed';
|
|
11
11
|
omnichannel_transaction_id?: string;
|
|
12
12
|
created_at: number;
|
|
13
|
+
resource_version?: number;
|
|
13
14
|
linked_omnichannel_subscriptions?: RecordedPurchase.LinkedOmnichannelSubscription[];
|
|
14
15
|
error_detail?: RecordedPurchase.ErrorDetail;
|
|
15
16
|
}
|