chargebee 2.42.0 → 2.44.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 +82 -0
- package/README.md +3 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +47 -0
- package/package.json +1 -1
- package/types/core.d.ts +3 -2
- package/types/index.d.ts +6 -0
- package/types/resources/AttachedItem.d.ts +4 -0
- package/types/resources/Card.d.ts +5 -1
- package/types/resources/Coupon.d.ts +204 -522
- package/types/resources/Customer.d.ts +2 -2
- package/types/resources/DifferentialPrice.d.ts +4 -0
- package/types/resources/Estimate.d.ts +26 -7
- package/types/resources/Export.d.ts +16 -0
- package/types/resources/Invoice.d.ts +2 -2
- package/types/resources/Item.d.ts +17 -0
- package/types/resources/ItemFamily.d.ts +25 -100
- package/types/resources/ItemPrice.d.ts +91 -840
- package/types/resources/OmnichannelSubscription.d.ts +96 -0
- package/types/resources/OmnichannelTransaction.d.ts +26 -0
- package/types/resources/PaymentScheduleEstimate.d.ts +35 -0
- package/types/resources/PaymentScheduleScheme.d.ts +5 -1
- package/types/resources/PaymentSource.d.ts +25 -896
- package/types/resources/PriceVariant.d.ts +6 -0
- package/types/resources/PricingPageSession.d.ts +4 -0
- package/types/resources/Quote.d.ts +41 -38
- package/types/resources/QuotedSubscription.d.ts +53 -378
- package/types/resources/RecordedPurchase.d.ts +56 -0
- package/types/resources/Subscription.d.ts +729 -3247
- package/types/resources/Transaction.d.ts +99 -581
|
@@ -74,6 +74,8 @@ Attributes can be used to store additional information about the price variant.
|
|
|
74
74
|
*/
|
|
75
75
|
|
|
76
76
|
attributes?:PriceVariant.Attribute[];
|
|
77
|
+
|
|
78
|
+
business_entity_id?:string;
|
|
77
79
|
}
|
|
78
80
|
export namespace PriceVariant {
|
|
79
81
|
export class PriceVariantResource {
|
|
@@ -155,6 +157,8 @@ Attributes can be used to store additional information about the price variant.
|
|
|
155
157
|
attributes:{name:string,value:string}[];
|
|
156
158
|
|
|
157
159
|
variant_group?:string;
|
|
160
|
+
|
|
161
|
+
business_entity_id?:string;
|
|
158
162
|
}
|
|
159
163
|
export interface RetrieveResponse {
|
|
160
164
|
price_variant:PriceVariant;
|
|
@@ -280,6 +284,8 @@ Attributes can be used to store additional information about the price variant.
|
|
|
280
284
|
*/
|
|
281
285
|
|
|
282
286
|
sort_by?:{asc?:'name' | 'id' | 'status' | 'created_at' | 'updated_at',desc?:'name' | 'id' | 'status' | 'created_at' | 'updated_at'};
|
|
287
|
+
|
|
288
|
+
business_entity_id?:{is?:string,is_present?:'true' | 'false'};
|
|
283
289
|
}
|
|
284
290
|
export interface Attribute {
|
|
285
291
|
/**
|
|
@@ -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,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;
|