chargebee 2.48.0 → 2.49.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 +146 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +15 -2
- package/package.json +1 -1
- package/types/core.d.ts +5 -4
- package/types/index.d.ts +6 -0
- package/types/resources/Addon.d.ts +440 -0
- package/types/resources/CreditNote.d.ts +40 -1
- package/types/resources/CreditNoteEstimate.d.ts +8 -2
- package/types/resources/DifferentialPrice.d.ts +6 -2
- package/types/resources/Estimate.d.ts +6 -4
- package/types/resources/HostedPage.d.ts +227 -893
- package/types/resources/Invoice.d.ts +43 -4
- package/types/resources/InvoiceEstimate.d.ts +40 -1
- package/types/resources/Item.d.ts +5 -1
- package/types/resources/ItemPrice.d.ts +6 -2
- package/types/resources/OmnichannelSubscription.d.ts +5 -5
- package/types/resources/OmnichannelSubscriptionItem.d.ts +42 -1
- package/types/resources/OmnichannelSubscriptionItemScheduledChange.d.ts +36 -0
- package/types/resources/OmnichannelTransaction.d.ts +4 -4
- package/types/resources/PaymentSource.d.ts +7 -0
- package/types/resources/Plan.d.ts +554 -0
- package/types/resources/Quote.d.ts +18 -12
- package/types/resources/QuoteLineGroup.d.ts +12 -322
- package/types/resources/QuotedCharge.d.ts +23 -219
- package/types/resources/QuotedSubscription.d.ts +4 -0
- package/types/resources/Ramp.d.ts +48 -542
- package/types/resources/RecordedPurchase.d.ts +5 -3
- package/types/resources/Subscription.d.ts +7 -3
- package/types/resources/Transaction.d.ts +1 -1
- package/types/resources/UnbilledCharge.d.ts +31 -25
|
@@ -10,9 +10,9 @@ declare module 'chargebee' {
|
|
|
10
10
|
|
|
11
11
|
app_id:string;
|
|
12
12
|
|
|
13
|
-
source:'apple_app_store';
|
|
13
|
+
source:'apple_app_store' | 'google_play_store';
|
|
14
14
|
|
|
15
|
-
status:'in_process' | 'completed' | 'failed';
|
|
15
|
+
status:'in_process' | 'completed' | 'failed' | 'ignored';
|
|
16
16
|
|
|
17
17
|
omnichannel_transaction_id?:string;
|
|
18
18
|
|
|
@@ -40,7 +40,9 @@ declare module 'chargebee' {
|
|
|
40
40
|
|
|
41
41
|
customer:{id:string};
|
|
42
42
|
|
|
43
|
-
apple_app_store?:{transaction_id?:string};
|
|
43
|
+
apple_app_store?:{product_id?:string,receipt?:string,transaction_id?:string};
|
|
44
|
+
|
|
45
|
+
google_play_store?:{purchase_token?:string};
|
|
44
46
|
|
|
45
47
|
app_id:string;
|
|
46
48
|
}
|
|
@@ -458,7 +458,7 @@ declare module 'chargebee' {
|
|
|
458
458
|
|
|
459
459
|
discounts:{amount?:number,apply_on:ApplyOn,duration_type:DurationType,included_in_mrr?:boolean,item_price_id?:string,percentage?:number,period?:number,period_unit?:PeriodUnit}[];
|
|
460
460
|
|
|
461
|
-
item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
461
|
+
item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,package_size?:number,price?:number,price_in_decimal?:string,pricing_type?:PricingType,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
462
462
|
|
|
463
463
|
coupons?:{apply_till?:number,coupon_id?:string}[];
|
|
464
464
|
|
|
@@ -954,7 +954,7 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
|
|
|
954
954
|
|
|
955
955
|
discounts:{amount?:number,apply_on:ApplyOn,duration_type:DurationType,id?:string,included_in_mrr?:boolean,item_price_id?:string,operation_type:OperationType,percentage?:number,period?:number,period_unit?:PeriodUnit}[];
|
|
956
956
|
|
|
957
|
-
item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
957
|
+
item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,package_size?:number,price?:number,price_in_decimal?:string,pricing_type?:PricingType,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
958
958
|
|
|
959
959
|
coupons?:{apply_till?:number,coupon_id?:string}[];
|
|
960
960
|
|
|
@@ -1405,7 +1405,7 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
|
|
|
1405
1405
|
|
|
1406
1406
|
charged_items?:{item_price_id?:string,last_charged_at?:number}[];
|
|
1407
1407
|
|
|
1408
|
-
item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
1408
|
+
item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,package_size?:number,price?:number,price_in_decimal?:string,pricing_type?:PricingType,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
1409
1409
|
|
|
1410
1410
|
coupons?:{apply_till?:number,coupon_id?:string}[];
|
|
1411
1411
|
|
|
@@ -1699,6 +1699,10 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
|
|
|
1699
1699
|
|
|
1700
1700
|
price_in_decimal?:string;
|
|
1701
1701
|
|
|
1702
|
+
pricing_type?:'per_unit' | 'flat_fee' | 'package';
|
|
1703
|
+
|
|
1704
|
+
package_size?:number;
|
|
1705
|
+
|
|
1702
1706
|
index:number;
|
|
1703
1707
|
}
|
|
1704
1708
|
export interface ChargedItem {
|
|
@@ -243,7 +243,7 @@ declare module 'chargebee' {
|
|
|
243
243
|
|
|
244
244
|
*/
|
|
245
245
|
|
|
246
|
-
gateway?:{in?:string,is?:'chargebee' | 'chargebee_payments' | 'stripe' | 'wepay' | 'braintree' | 'authorize_net' | 'paypal_pro' | 'pin' | 'eway' | 'eway_rapid' | 'worldpay' | 'balanced_payments' | 'beanstream' | 'bluepay' | 'elavon' | 'first_data_global' | 'hdfc' | 'migs' | 'nmi' | 'ogone' | 'paymill' | 'paypal_payflow_pro' | 'sage_pay' | 'tco' | 'wirecard' | 'amazon_payments' | 'paypal_express_checkout' | 'gocardless' | '
|
|
246
|
+
gateway?:{in?:string,is?:'chargebee' | 'chargebee_payments' | 'adyen' | 'stripe' | 'wepay' | 'braintree' | 'authorize_net' | 'paypal_pro' | 'pin' | 'eway' | 'eway_rapid' | 'worldpay' | 'balanced_payments' | 'beanstream' | 'bluepay' | 'elavon' | 'first_data_global' | 'hdfc' | 'migs' | 'nmi' | 'ogone' | 'paymill' | 'paypal_payflow_pro' | 'sage_pay' | 'tco' | 'wirecard' | 'amazon_payments' | 'paypal_express_checkout' | 'gocardless' | 'orbital' | 'moneris_us' | 'moneris' | 'bluesnap' | 'cybersource' | 'vantiv' | 'checkout_com' | 'paypal' | 'ingenico_direct' | 'exact' | 'mollie' | 'quickbooks' | 'razorpay' | 'global_payments' | 'bank_of_america' | 'ecentric' | 'metrics_global' | 'windcave' | 'pay_com' | 'ebanx' | 'dlocal' | 'nuvei' | 'paystack' | 'jp_morgan' | 'not_applicable',is_not?:'chargebee' | 'chargebee_payments' | 'adyen' | 'stripe' | 'wepay' | 'braintree' | 'authorize_net' | 'paypal_pro' | 'pin' | 'eway' | 'eway_rapid' | 'worldpay' | 'balanced_payments' | 'beanstream' | 'bluepay' | 'elavon' | 'first_data_global' | 'hdfc' | 'migs' | 'nmi' | 'ogone' | 'paymill' | 'paypal_payflow_pro' | 'sage_pay' | 'tco' | 'wirecard' | 'amazon_payments' | 'paypal_express_checkout' | 'gocardless' | 'orbital' | 'moneris_us' | 'moneris' | 'bluesnap' | 'cybersource' | 'vantiv' | 'checkout_com' | 'paypal' | 'ingenico_direct' | 'exact' | 'mollie' | 'quickbooks' | 'razorpay' | 'global_payments' | 'bank_of_america' | 'ecentric' | 'metrics_global' | 'windcave' | 'pay_com' | 'ebanx' | 'dlocal' | 'nuvei' | 'paystack' | 'jp_morgan' | 'not_applicable',not_in?:string};
|
|
247
247
|
|
|
248
248
|
/**
|
|
249
249
|
* @description The gateway account used for this transaction
|
|
@@ -3,53 +3,55 @@
|
|
|
3
3
|
declare module 'chargebee' {
|
|
4
4
|
export interface UnbilledCharge {
|
|
5
5
|
|
|
6
|
+
|
|
6
7
|
id?:string;
|
|
7
|
-
|
|
8
|
+
|
|
8
9
|
customer_id?:string;
|
|
9
|
-
|
|
10
|
+
|
|
10
11
|
subscription_id?:string;
|
|
11
|
-
|
|
12
|
+
|
|
12
13
|
date_from?:number;
|
|
13
|
-
|
|
14
|
+
|
|
14
15
|
date_to?:number;
|
|
15
|
-
|
|
16
|
+
|
|
16
17
|
unit_amount?:number;
|
|
17
|
-
|
|
18
|
+
|
|
18
19
|
pricing_model?:PricingModel;
|
|
19
|
-
|
|
20
|
+
|
|
20
21
|
quantity?:number;
|
|
21
|
-
|
|
22
|
+
|
|
22
23
|
amount?:number;
|
|
23
|
-
|
|
24
|
+
|
|
24
25
|
currency_code:string;
|
|
25
|
-
|
|
26
|
+
|
|
26
27
|
discount_amount?:number;
|
|
27
|
-
|
|
28
|
+
|
|
28
29
|
description?:string;
|
|
29
|
-
|
|
30
|
-
entity_type:'
|
|
31
|
-
|
|
30
|
+
|
|
31
|
+
entity_type:'adhoc' | 'plan_item_price' | 'addon_item_price' | 'charge_item_price' | 'plan_setup' | 'plan' | 'addon';
|
|
32
|
+
|
|
32
33
|
entity_id?:string;
|
|
33
|
-
|
|
34
|
+
|
|
34
35
|
is_voided:boolean;
|
|
35
|
-
|
|
36
|
+
|
|
36
37
|
voided_at?:number;
|
|
37
|
-
|
|
38
|
+
|
|
38
39
|
unit_amount_in_decimal?:string;
|
|
39
|
-
|
|
40
|
+
|
|
40
41
|
quantity_in_decimal?:string;
|
|
41
|
-
|
|
42
|
+
|
|
42
43
|
amount_in_decimal?:string;
|
|
43
|
-
|
|
44
|
+
|
|
44
45
|
updated_at:number;
|
|
45
|
-
|
|
46
|
+
|
|
46
47
|
tiers?:UnbilledCharge.Tier[];
|
|
47
|
-
|
|
48
|
+
|
|
48
49
|
is_advance_charge?:boolean;
|
|
49
|
-
|
|
50
|
+
|
|
50
51
|
business_entity_id?:string;
|
|
51
|
-
|
|
52
|
+
|
|
52
53
|
deleted:boolean;
|
|
54
|
+
|
|
53
55
|
}
|
|
54
56
|
export namespace UnbilledCharge {
|
|
55
57
|
export class UnbilledChargeResource {
|
|
@@ -87,7 +89,7 @@ declare module 'chargebee' {
|
|
|
87
89
|
|
|
88
90
|
item_prices?:{date_from?:number,date_to?:number,item_price_id?:string,quantity?:number,quantity_in_decimal?:string,unit_price?:number,unit_price_in_decimal?:string}[];
|
|
89
91
|
|
|
90
|
-
item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
92
|
+
item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,package_size?:number,price?:number,price_in_decimal?:string,pricing_type?:PricingType,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
91
93
|
|
|
92
94
|
charges?:{amount?:number,amount_in_decimal?:string,avalara_sale_type?:AvalaraSaleType,avalara_service_type?:number,avalara_tax_code?:string,avalara_transaction_type?:number,date_from?:number,date_to?:number,description?:string,hsn_code?:string,tax_profile_id?:string,taxable?:boolean,taxjar_product_code?:string}[];
|
|
93
95
|
|
|
@@ -179,6 +181,10 @@ declare module 'chargebee' {
|
|
|
179
181
|
quantity_used_in_decimal?:string;
|
|
180
182
|
|
|
181
183
|
unit_amount_in_decimal?:string;
|
|
184
|
+
|
|
185
|
+
pricing_type?:'per_unit' | 'flat_fee' | 'package';
|
|
186
|
+
|
|
187
|
+
package_size?:number;
|
|
182
188
|
}
|
|
183
189
|
}
|
|
184
190
|
}
|