chargebee 2.25.3 → 2.26.1
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 +35 -0
- package/README.md +55 -49
- package/lib/chargebee.js +1 -1
- package/package.json +1 -1
- package/types/core.d.ts +1 -0
- package/types/resources/Address.d.ts +245 -5
- package/types/resources/AdvanceInvoiceSchedule.d.ts +78 -2
- package/types/resources/AttachedItem.d.ts +305 -13
- package/types/resources/Card.d.ts +485 -13
- package/types/resources/Comment.d.ts +177 -11
- package/types/resources/Contact.d.ts +54 -0
- package/types/resources/ContractTerm.d.ts +83 -0
- package/types/resources/Coupon.d.ts +665 -20
- package/types/resources/CouponCode.d.ts +56 -5
- package/types/resources/CouponSet.d.ts +224 -17
- package/types/resources/CreditNote.d.ts +1202 -44
- package/types/resources/CreditNoteEstimate.d.ts +75 -6
- package/types/resources/Customer.d.ts +2132 -73
- package/types/resources/DifferentialPrice.d.ts +266 -15
- package/types/resources/Discount.d.ts +107 -0
- package/types/resources/Download.d.ts +18 -0
- package/types/resources/EntitlementOverride.d.ts +101 -7
- package/types/resources/Estimate.d.ts +1181 -27
- package/types/resources/Event.d.ts +145 -8
- package/types/resources/Export.d.ts +703 -32
- package/types/resources/Feature.d.ts +356 -22
- package/types/resources/Gift.d.ts +351 -24
- package/types/resources/Hierarchy.d.ts +30 -0
- package/types/resources/HostedPage.d.ts +1212 -37
- package/types/resources/ImpactedItem.d.ts +41 -1
- package/types/resources/ImpactedSubscription.d.ts +36 -1
- package/types/resources/InAppSubscription.d.ts +636 -9
- package/types/resources/Invoice.d.ts +2293 -93
- package/types/resources/InvoiceEstimate.d.ts +75 -6
- package/types/resources/Item.d.ts +542 -16
- package/types/resources/ItemEntitlement.d.ts +172 -13
- package/types/resources/ItemFamily.d.ts +173 -15
- package/types/resources/ItemPrice.d.ts +971 -26
- package/types/resources/Media.d.ts +24 -0
- package/types/resources/NonSubscription.d.ts +51 -3
- package/types/resources/Order.d.ts +1224 -32
- package/types/resources/PaymentIntent.d.ts +318 -8
- package/types/resources/PaymentReferenceNumber.d.ts +24 -0
- package/types/resources/PaymentSource.d.ts +1259 -55
- package/types/resources/PaymentVoucher.d.ts +262 -14
- package/types/resources/PortalSession.d.ts +187 -10
- package/types/resources/PromotionalCredit.d.ts +351 -16
- package/types/resources/Purchase.d.ts +274 -5
- package/types/resources/Quote.d.ts +1595 -62
- package/types/resources/QuoteLineGroup.d.ts +134 -5
- package/types/resources/QuotedCharge.d.ts +63 -5
- package/types/resources/QuotedSubscription.d.ts +192 -5
- package/types/resources/ResourceMigration.d.ts +73 -3
- package/types/resources/SiteMigrationDetail.d.ts +98 -5
- package/types/resources/Subscription.d.ts +3462 -137
- package/types/resources/SubscriptionEntitlement.d.ts +116 -8
- package/types/resources/SubscriptionEstimate.d.ts +36 -2
- package/types/resources/TaxWithheld.d.ts +32 -0
- package/types/resources/ThirdPartyPaymentMethod.d.ts +24 -0
- package/types/resources/TimeMachine.d.ts +99 -7
- package/types/resources/Token.d.ts +179 -7
- package/types/resources/Transaction.d.ts +597 -25
- package/types/resources/UnbilledCharge.d.ts +355 -14
- package/types/resources/Usage.d.ts +259 -13
- package/types/resources/VirtualBankAccount.d.ts +255 -17
|
@@ -1,95 +1,164 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface InvoiceEstimate {
|
|
4
|
+
|
|
4
5
|
recurring:boolean;
|
|
6
|
+
|
|
5
7
|
price_type:PriceType;
|
|
8
|
+
|
|
6
9
|
currency_code:string;
|
|
10
|
+
|
|
7
11
|
sub_total:number;
|
|
12
|
+
|
|
8
13
|
total?:number;
|
|
14
|
+
|
|
9
15
|
credits_applied?:number;
|
|
16
|
+
|
|
10
17
|
amount_paid?:number;
|
|
18
|
+
|
|
11
19
|
amount_due?:number;
|
|
20
|
+
|
|
12
21
|
round_off_amount?:number;
|
|
22
|
+
|
|
13
23
|
customer_id?:string;
|
|
24
|
+
|
|
14
25
|
line_items?:InvoiceEstimate.LineItem[];
|
|
26
|
+
|
|
15
27
|
discounts?:InvoiceEstimate.Discount[];
|
|
28
|
+
|
|
16
29
|
taxes?:InvoiceEstimate.Tax[];
|
|
30
|
+
|
|
17
31
|
line_item_taxes?:InvoiceEstimate.LineItemTax[];
|
|
32
|
+
|
|
18
33
|
line_item_tiers?:InvoiceEstimate.LineItemTier[];
|
|
34
|
+
|
|
19
35
|
line_item_discounts?:InvoiceEstimate.LineItemDiscount[];
|
|
20
36
|
}
|
|
21
37
|
export namespace InvoiceEstimate {
|
|
22
38
|
|
|
23
39
|
|
|
24
|
-
export interface LineItem {
|
|
40
|
+
export interface LineItem {
|
|
25
41
|
id?:string;
|
|
42
|
+
|
|
26
43
|
subscription_id?:string;
|
|
44
|
+
|
|
27
45
|
date_from?:number;
|
|
46
|
+
|
|
28
47
|
date_to?:number;
|
|
48
|
+
|
|
29
49
|
unit_amount?:number;
|
|
50
|
+
|
|
30
51
|
quantity?:number;
|
|
52
|
+
|
|
31
53
|
amount?:number;
|
|
54
|
+
|
|
32
55
|
pricing_model?:'volume' | 'per_unit' | 'tiered' | 'flat_fee' | 'stairstep';
|
|
56
|
+
|
|
33
57
|
is_taxed?:boolean;
|
|
58
|
+
|
|
34
59
|
tax_amount?:number;
|
|
60
|
+
|
|
35
61
|
tax_rate?:number;
|
|
62
|
+
|
|
36
63
|
unit_amount_in_decimal?:string;
|
|
64
|
+
|
|
37
65
|
quantity_in_decimal?:string;
|
|
66
|
+
|
|
38
67
|
amount_in_decimal?:string;
|
|
68
|
+
|
|
39
69
|
discount_amount?:number;
|
|
70
|
+
|
|
40
71
|
item_level_discount_amount?:number;
|
|
72
|
+
|
|
41
73
|
reference_line_item_id?:string;
|
|
74
|
+
|
|
42
75
|
description?:string;
|
|
76
|
+
|
|
43
77
|
entity_description?:string;
|
|
78
|
+
|
|
44
79
|
entity_type?:'addon_item_price' | 'plan_item_price' | 'charge_item_price' | 'adhoc';
|
|
80
|
+
|
|
45
81
|
tax_exempt_reason?:'high_value_physical_goods' | 'tax_not_configured' | 'reverse_charge' | 'zero_rated' | 'customer_exempt' | 'region_non_taxable' | 'zero_value_item' | 'export' | 'product_exempt';
|
|
82
|
+
|
|
46
83
|
entity_id?:string;
|
|
84
|
+
|
|
47
85
|
customer_id?:string;
|
|
48
86
|
}
|
|
49
|
-
export interface Discount {
|
|
87
|
+
export interface Discount {
|
|
50
88
|
amount?:number;
|
|
89
|
+
|
|
51
90
|
description?:string;
|
|
91
|
+
|
|
52
92
|
line_item_id?:string;
|
|
93
|
+
|
|
53
94
|
entity_type?:'item_level_coupon' | 'promotional_credits' | 'item_level_discount' | 'prorated_credits' | 'document_level_discount' | 'document_level_coupon';
|
|
95
|
+
|
|
54
96
|
discount_type?:'fixed_amount' | 'percentage';
|
|
97
|
+
|
|
55
98
|
entity_id?:string;
|
|
99
|
+
|
|
56
100
|
coupon_set_code?:string;
|
|
57
101
|
}
|
|
58
|
-
export interface Tax {
|
|
102
|
+
export interface Tax {
|
|
59
103
|
name?:string;
|
|
104
|
+
|
|
60
105
|
amount?:number;
|
|
106
|
+
|
|
61
107
|
description?:string;
|
|
62
108
|
}
|
|
63
|
-
export interface LineItemTax {
|
|
109
|
+
export interface LineItemTax {
|
|
64
110
|
line_item_id?:string;
|
|
111
|
+
|
|
65
112
|
tax_name?:string;
|
|
113
|
+
|
|
66
114
|
tax_rate?:number;
|
|
115
|
+
|
|
67
116
|
is_partial_tax_applied?:boolean;
|
|
117
|
+
|
|
68
118
|
is_non_compliance_tax?:boolean;
|
|
119
|
+
|
|
69
120
|
taxable_amount?:number;
|
|
121
|
+
|
|
70
122
|
tax_amount?:number;
|
|
123
|
+
|
|
71
124
|
tax_juris_type?:'special' | 'country' | 'unincorporated' | 'other' | 'city' | 'federal' | 'county' | 'state';
|
|
125
|
+
|
|
72
126
|
tax_juris_name?:string;
|
|
127
|
+
|
|
73
128
|
tax_juris_code?:string;
|
|
129
|
+
|
|
74
130
|
tax_amount_in_local_currency?:number;
|
|
131
|
+
|
|
75
132
|
local_currency_code?:string;
|
|
76
133
|
}
|
|
77
|
-
export interface LineItemTier {
|
|
134
|
+
export interface LineItemTier {
|
|
78
135
|
line_item_id?:string;
|
|
136
|
+
|
|
79
137
|
starting_unit?:number;
|
|
138
|
+
|
|
80
139
|
ending_unit?:number;
|
|
140
|
+
|
|
81
141
|
quantity_used?:number;
|
|
142
|
+
|
|
82
143
|
unit_amount?:number;
|
|
144
|
+
|
|
83
145
|
starting_unit_in_decimal?:string;
|
|
146
|
+
|
|
84
147
|
ending_unit_in_decimal?:string;
|
|
148
|
+
|
|
85
149
|
quantity_used_in_decimal?:string;
|
|
150
|
+
|
|
86
151
|
unit_amount_in_decimal?:string;
|
|
87
152
|
}
|
|
88
|
-
export interface LineItemDiscount {
|
|
153
|
+
export interface LineItemDiscount {
|
|
89
154
|
line_item_id?:string;
|
|
155
|
+
|
|
90
156
|
discount_type?:'item_level_coupon' | 'promotional_credits' | 'item_level_discount' | 'prorated_credits' | 'document_level_discount' | 'document_level_coupon';
|
|
157
|
+
|
|
91
158
|
coupon_id?:string;
|
|
159
|
+
|
|
92
160
|
entity_id?:string;
|
|
161
|
+
|
|
93
162
|
discount_amount?:number;
|
|
94
163
|
}
|
|
95
164
|
}
|