chargebee 2.41.1 → 2.43.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 +68 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +21 -23
- package/package.json +1 -1
- package/types/core.d.ts +2 -1
- package/types/index.d.ts +4 -5
- package/types/resources/Card.d.ts +1 -1
- package/types/resources/Estimate.d.ts +26 -7
- package/types/resources/Invoice.d.ts +11 -24
- package/types/resources/Item.d.ts +67 -381
- package/types/resources/ItemPrice.d.ts +78 -844
- package/types/resources/PaymentSchedule.d.ts +41 -0
- package/types/resources/PaymentScheduleEstimate.d.ts +35 -0
- package/types/resources/PaymentScheduleScheme.d.ts +63 -0
- package/types/resources/PaymentSource.d.ts +25 -896
- package/types/resources/PricingPageSession.d.ts +4 -0
- package/types/resources/Purchase.d.ts +2 -7
- package/types/resources/Quote.d.ts +41 -38
- package/types/resources/QuotedSubscription.d.ts +53 -378
- package/types/resources/Subscription.d.ts +4 -2
- package/types/resources/Installment.d.ts +0 -123
- package/types/resources/InstallmentConfig.d.ts +0 -169
- package/types/resources/InstallmentDetail.d.ts +0 -34
|
@@ -34,6 +34,8 @@ declare module 'chargebee' {
|
|
|
34
34
|
|
|
35
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
36
|
|
|
37
|
+
discounts:{amount?:number,apply_on:ApplyOn,duration_type:DurationType,included_in_mrr?:boolean,item_price_id?:string,label?:string,percentage?:number,period?:number,period_unit?:PeriodUnit}[];
|
|
38
|
+
|
|
37
39
|
redirect_url?:string;
|
|
38
40
|
|
|
39
41
|
business_entity_id?:string;
|
|
@@ -47,6 +49,8 @@ declare module 'chargebee' {
|
|
|
47
49
|
|
|
48
50
|
subscription:object;
|
|
49
51
|
|
|
52
|
+
discounts:{amount?:number,apply_on:ApplyOn,duration_type:DurationType,included_in_mrr?:boolean,item_price_id?:string,label?:string,percentage?:number,period?:number,period_unit?:PeriodUnit}[];
|
|
53
|
+
|
|
50
54
|
redirect_url?:string;
|
|
51
55
|
}
|
|
52
56
|
|
|
@@ -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 Purchase {
|
|
4
5
|
|
|
@@ -144,13 +145,6 @@ Discounts, both [manual discounts](discounts) and <coupons>, can be applie
|
|
|
144
145
|
|
|
145
146
|
invoice_info?:{notes?:string,po_number?:string};
|
|
146
147
|
|
|
147
|
-
/**
|
|
148
|
-
* @description Parameters for installment_info
|
|
149
|
-
|
|
150
|
-
*/
|
|
151
|
-
|
|
152
|
-
installment_info?:{amount?:number,config_id?:string};
|
|
153
|
-
|
|
154
148
|
/**
|
|
155
149
|
* @description Parameters for purchase_items
|
|
156
150
|
|
|
@@ -251,6 +245,7 @@ Discounts, both [manual discounts](discounts) and <coupons>, can be applie
|
|
|
251
245
|
|
|
252
246
|
contract_terms:{action_at_term_end?:'cancel' | 'renew_once' | 'renew' | 'evergreen',cancellation_cutoff_period?:number,index:number}[];
|
|
253
247
|
statement_descriptor?:{descriptor?:string};
|
|
248
|
+
payment_schedule?:{amount?:number,scheme_id?:string};
|
|
254
249
|
}
|
|
255
250
|
export interface EstimateResponse {
|
|
256
251
|
estimate:Estimate;
|
|
@@ -1,84 +1,85 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
///<reference path='./../index.d.ts'/>
|
|
3
|
-
|
|
4
3
|
declare module 'chargebee' {
|
|
5
4
|
export interface Quote {
|
|
6
5
|
|
|
6
|
+
|
|
7
7
|
id:string;
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
name?:string;
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
po_number?:string;
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
customer_id:string;
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
subscription_id?:string;
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
invoice_id?:string;
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
status:'open' | 'accepted' | 'declined' | 'invoiced' | 'closed';
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
operation_type:'create_subscription_for_customer' | 'change_subscription' | 'onetime_invoice';
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
vat_number?:string;
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
price_type:PriceType;
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
valid_till:number;
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
date:number;
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
total_payable?:number;
|
|
32
|
-
|
|
32
|
+
|
|
33
33
|
charge_on_acceptance?:number;
|
|
34
|
-
|
|
34
|
+
|
|
35
35
|
sub_total:number;
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
total?:number;
|
|
38
|
-
|
|
38
|
+
|
|
39
39
|
credits_applied?:number;
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
amount_paid?:number;
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
amount_due?:number;
|
|
44
|
-
|
|
44
|
+
|
|
45
45
|
version?:number;
|
|
46
|
-
|
|
46
|
+
|
|
47
47
|
resource_version?:number;
|
|
48
|
-
|
|
48
|
+
|
|
49
49
|
updated_at?:number;
|
|
50
|
-
|
|
50
|
+
|
|
51
51
|
vat_number_prefix?:string;
|
|
52
|
-
|
|
52
|
+
|
|
53
53
|
line_items?:Quote.LineItem[];
|
|
54
|
-
|
|
54
|
+
|
|
55
55
|
discounts?:Quote.Discount[];
|
|
56
|
-
|
|
56
|
+
|
|
57
57
|
line_item_discounts?:Quote.LineItemDiscount[];
|
|
58
|
-
|
|
58
|
+
|
|
59
59
|
taxes?:Quote.Tax[];
|
|
60
|
-
|
|
60
|
+
|
|
61
61
|
line_item_taxes?:Quote.LineItemTax[];
|
|
62
|
-
|
|
62
|
+
|
|
63
63
|
line_item_tiers?:Quote.LineItemTier[];
|
|
64
|
-
|
|
64
|
+
|
|
65
65
|
tax_category?:string;
|
|
66
|
-
|
|
66
|
+
|
|
67
67
|
currency_code:string;
|
|
68
|
-
|
|
68
|
+
|
|
69
69
|
notes?:any[];
|
|
70
|
-
|
|
70
|
+
|
|
71
71
|
shipping_address?:Quote.ShippingAddress;
|
|
72
|
-
|
|
72
|
+
|
|
73
73
|
billing_address?:Quote.BillingAddress;
|
|
74
|
-
|
|
74
|
+
|
|
75
75
|
contract_term_start?:number;
|
|
76
|
-
|
|
76
|
+
|
|
77
77
|
contract_term_end?:number;
|
|
78
|
-
|
|
78
|
+
|
|
79
79
|
contract_term_termination_fee?:number;
|
|
80
|
-
|
|
80
|
+
|
|
81
81
|
business_entity_id?:string;
|
|
82
|
+
|
|
82
83
|
}
|
|
83
84
|
export namespace Quote {
|
|
84
85
|
export class QuoteResource {
|
|
@@ -707,6 +708,8 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
|
|
|
707
708
|
|
|
708
709
|
invoice_date?:number;
|
|
709
710
|
|
|
711
|
+
invoice_immediately?:boolean;
|
|
712
|
+
|
|
710
713
|
create_pending_invoices?:boolean;
|
|
711
714
|
|
|
712
715
|
first_invoice_pending?:boolean;
|