chargebee 2.37.0 → 2.38.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 +11 -0
- package/lib/chargebee.js +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +0 -4
- package/types/resources/BusinessEntity.d.ts +1 -0
- package/types/resources/Customer.d.ts +2 -1
- package/types/resources/Estimate.d.ts +1 -0
- package/types/resources/HostedPage.d.ts +4 -0
- package/types/resources/InstallmentConfig.d.ts +1 -1
- package/types/resources/Invoice.d.ts +1 -0
- package/types/resources/PaymentSource.d.ts +1 -0
- package/types/resources/PricingPageSession.d.ts +54 -0
- package/types/resources/Subscription.d.ts +3 -8
- package/types/resources/UnbilledCharge.d.ts +2 -1
- package/types/resources/Usage.d.ts +1 -0
- package/types/resources/VirtualBankAccount.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
### v2.38.0 (2024-07-19)
|
|
2
|
+
* * *
|
|
3
|
+
|
|
4
|
+
#### New Input parameters:
|
|
5
|
+
* change_option has been added to HostedPage#CheckoutExistingForItemsRequest.
|
|
6
|
+
* changes_scheduled_at has been added to HostedPage#CheckoutExistingForItemsRequest.
|
|
7
|
+
|
|
8
|
+
#### Bug Fixes:
|
|
9
|
+
* index.d.ts referencing to non existing file/ non resources.
|
|
10
|
+
* missing imports for few resources.
|
|
11
|
+
|
|
1
12
|
### v2.37.0 (2024-07-03)
|
|
2
13
|
* * *
|
|
3
14
|
|
package/lib/chargebee.js
CHANGED
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
///<reference path='./resources/ItemEntitlement.d.ts' />
|
|
42
42
|
///<reference path='./resources/ItemFamily.d.ts' />
|
|
43
43
|
///<reference path='./resources/ItemPrice.d.ts' />
|
|
44
|
-
///<reference path='./resources/Media.d.ts' />
|
|
45
44
|
///<reference path='./resources/NonSubscription.d.ts' />
|
|
46
45
|
///<reference path='./resources/Order.d.ts' />
|
|
47
46
|
///<reference path='./resources/PaymentIntent.d.ts' />
|
|
@@ -78,7 +77,6 @@ declare module 'chargebee' {
|
|
|
78
77
|
static address: Address.AddressResource;
|
|
79
78
|
static attached_item: AttachedItem.AttachedItemResource;
|
|
80
79
|
static business_entity: BusinessEntity.BusinessEntityResource;
|
|
81
|
-
static business_entity_transfer: BusinessEntityTransfer.BusinessEntityTransferResource;
|
|
82
80
|
static card: Card.CardResource;
|
|
83
81
|
static comment: Comment.CommentResource;
|
|
84
82
|
static coupon: Coupon.CouponResource;
|
|
@@ -120,9 +118,7 @@ declare module 'chargebee' {
|
|
|
120
118
|
static site_migration_detail: SiteMigrationDetail.SiteMigrationDetailResource;
|
|
121
119
|
static subscription: Subscription.SubscriptionResource;
|
|
122
120
|
static subscription_entitlement: SubscriptionEntitlement.SubscriptionEntitlementResource;
|
|
123
|
-
static tax_withheld: TaxWithheld.TaxWithheldResource;
|
|
124
121
|
static time_machine: TimeMachine.TimeMachineResource;
|
|
125
|
-
static token: Token.TokenResource;
|
|
126
122
|
static transaction: Transaction.TransactionResource;
|
|
127
123
|
static unbilled_charge: UnbilledCharge.UnbilledChargeResource;
|
|
128
124
|
static usage: Usage.UsageResource;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
2
3
|
declare module 'chargebee' {
|
|
3
4
|
export interface Customer {
|
|
4
5
|
[key : string] : any;
|
|
@@ -116,7 +117,7 @@ declare module 'chargebee' {
|
|
|
116
117
|
|
|
117
118
|
excess_payments:number;
|
|
118
119
|
|
|
119
|
-
balances?:Customer.
|
|
120
|
+
balances?:Customer.Balance[];
|
|
120
121
|
|
|
121
122
|
entity_identifiers?:Customer.EntityIdentifier[];
|
|
122
123
|
|
|
@@ -445,6 +445,10 @@ An alternative way of passing this parameter is by means of a [custom HTTP heade
|
|
|
445
445
|
*/
|
|
446
446
|
|
|
447
447
|
entity_identifiers?:{id?:string,operation?:Operation,scheme?:string,standard?:string,value?:string}[];
|
|
448
|
+
|
|
449
|
+
change_option?:ChangeOption;
|
|
450
|
+
|
|
451
|
+
changes_scheduled_at?:number;
|
|
448
452
|
}
|
|
449
453
|
export interface CheckoutNewForItemsResponse {
|
|
450
454
|
hosted_page:HostedPage;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
declare module 'chargebee' {
|
|
4
|
+
export interface PricingPageSession {
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
id?:string;
|
|
8
|
+
|
|
9
|
+
url?:string;
|
|
10
|
+
|
|
11
|
+
created_at?:number;
|
|
12
|
+
|
|
13
|
+
expires_at?:number;
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
export namespace PricingPageSession {
|
|
17
|
+
export class PricingPageSessionResource {
|
|
18
|
+
create_for_new_subscription(input:CreateForNewSubscriptionInputParam):ChargebeeRequest<CreateForNewSubscriptionResponse>;
|
|
19
|
+
|
|
20
|
+
create_for_existing_subscription(input:CreateForExistingSubscriptionInputParam):ChargebeeRequest<CreateForExistingSubscriptionResponse>;
|
|
21
|
+
}
|
|
22
|
+
export interface CreateForNewSubscriptionResponse {
|
|
23
|
+
pricing_page_session:PricingPageSession;
|
|
24
|
+
}
|
|
25
|
+
export interface CreateForNewSubscriptionInputParam {
|
|
26
|
+
|
|
27
|
+
pricing_page:{id:string};
|
|
28
|
+
|
|
29
|
+
subscription?:object;
|
|
30
|
+
|
|
31
|
+
customer?:object;
|
|
32
|
+
|
|
33
|
+
billing_address?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
|
|
34
|
+
|
|
35
|
+
shipping_address?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
|
|
36
|
+
|
|
37
|
+
redirect_url?:string;
|
|
38
|
+
|
|
39
|
+
business_entity_id?:string;
|
|
40
|
+
}
|
|
41
|
+
export interface CreateForExistingSubscriptionResponse {
|
|
42
|
+
pricing_page_session:PricingPageSession;
|
|
43
|
+
}
|
|
44
|
+
export interface CreateForExistingSubscriptionInputParam {
|
|
45
|
+
|
|
46
|
+
pricing_page:{id:string};
|
|
47
|
+
|
|
48
|
+
subscription:object;
|
|
49
|
+
|
|
50
|
+
redirect_url?:string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
2
4
|
declare module 'chargebee' {
|
|
3
5
|
export interface Subscription {
|
|
4
6
|
[key : string] : any;
|
|
@@ -433,14 +435,7 @@ Applicable only when [Metered Billing](https://www.chargebee.com/docs/metered_bi
|
|
|
433
435
|
*/
|
|
434
436
|
|
|
435
437
|
referral_info?:Subscription.ReferralInfo;
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* @description Contract terms for this subscription
|
|
439
|
-
|
|
440
|
-
*/
|
|
441
|
-
|
|
442
|
-
contract_term?:Subscription.ContractTerm;
|
|
443
|
-
|
|
438
|
+
|
|
444
439
|
/**
|
|
445
440
|
* @description List of discounts for this subscription
|
|
446
441
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
2
3
|
declare module 'chargebee' {
|
|
3
4
|
export interface UnbilledCharge {
|
|
4
5
|
|
|
@@ -42,7 +43,7 @@ declare module 'chargebee' {
|
|
|
42
43
|
|
|
43
44
|
updated_at:number;
|
|
44
45
|
|
|
45
|
-
tiers?:UnbilledCharge.
|
|
46
|
+
tiers?:UnbilledCharge.Tier[];
|
|
46
47
|
|
|
47
48
|
is_advance_charge?:boolean;
|
|
48
49
|
|