chargebee 2.51.0 → 2.53.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 +83 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +103 -5
- package/package.json +1 -1
- package/types/core.d.ts +6 -6
- package/types/index.d.ts +10 -0
- package/types/resources/Addon.d.ts +3 -3
- package/types/resources/Address.d.ts +2 -194
- package/types/resources/AdvanceInvoiceSchedule.d.ts +5 -67
- package/types/resources/AttachedItem.d.ts +1 -1
- package/types/resources/Attribute.d.ts +4 -1
- package/types/resources/BillingConfiguration.d.ts +21 -0
- package/types/resources/Brand.d.ts +12 -0
- package/types/resources/BusinessEntity.d.ts +10 -8
- package/types/resources/BusinessEntityTransfer.d.ts +10 -7
- package/types/resources/Card.d.ts +11 -311
- package/types/resources/Comment.d.ts +10 -125
- package/types/resources/Contact.d.ts +2 -44
- package/types/resources/ContractTerm.d.ts +4 -72
- package/types/resources/Coupon.d.ts +4 -41
- package/types/resources/CouponCode.d.ts +67 -35
- package/types/resources/CouponSet.d.ts +12 -121
- package/types/resources/CreditNote.d.ts +89 -95
- package/types/resources/Currency.d.ts +8 -5
- package/types/resources/Customer.d.ts +96 -95
- package/types/resources/CustomerEntitlement.d.ts +3 -1
- package/types/resources/DifferentialPrice.d.ts +1 -1
- package/types/resources/Discount.d.ts +5 -90
- package/types/resources/Download.d.ts +2 -14
- package/types/resources/Entitlement.d.ts +15 -103
- package/types/resources/EntitlementOverride.d.ts +4 -89
- package/types/resources/Estimate.d.ts +6 -14
- package/types/resources/Event.d.ts +24 -109
- package/types/resources/Export.d.ts +116 -432
- package/types/resources/Feature.d.ts +19 -321
- package/types/resources/GatewayErrorDetail.d.ts +6 -48
- package/types/resources/Gift.d.ts +34 -294
- package/types/resources/Hierarchy.d.ts +4 -24
- package/types/resources/HostedPage.d.ts +4 -4
- package/types/resources/ImpactedCustomer.d.ts +23 -0
- package/types/resources/ImpactedItem.d.ts +4 -36
- package/types/resources/ImpactedItemPrice.d.ts +5 -2
- package/types/resources/ImpactedSubscription.d.ts +3 -30
- package/types/resources/InAppSubscription.d.ts +13 -355
- package/types/resources/Invoice.d.ts +112 -126
- package/types/resources/InvoiceEstimate.d.ts +1 -1
- package/types/resources/Item.d.ts +4 -11
- package/types/resources/ItemEntitlement.d.ts +15 -155
- package/types/resources/ItemFamily.d.ts +3 -3
- package/types/resources/ItemPrice.d.ts +7 -7
- package/types/resources/NonSubscription.d.ts +9 -6
- package/types/resources/OmnichannelOneTimeOrder.d.ts +90 -0
- package/types/resources/OmnichannelOneTimeOrderItem.d.ts +24 -0
- package/types/resources/OmnichannelSubscription.d.ts +2 -2
- package/types/resources/OmnichannelSubscriptionItem.d.ts +1 -1
- package/types/resources/OmnichannelSubscriptionItemScheduledChange.d.ts +1 -1
- package/types/resources/Order.d.ts +3 -3
- package/types/resources/PaymentIntent.d.ts +9 -255
- package/types/resources/PaymentReferenceNumber.d.ts +3 -20
- package/types/resources/PaymentSource.d.ts +4 -4
- package/types/resources/PaymentVoucher.d.ts +22 -205
- package/types/resources/Plan.d.ts +3 -3
- package/types/resources/PortalSession.d.ts +4 -146
- package/types/resources/PriceVariant.d.ts +2 -2
- package/types/resources/PricingPageSession.d.ts +2 -2
- package/types/resources/PromotionalCredit.d.ts +12 -215
- package/types/resources/Purchase.d.ts +5 -3
- package/types/resources/Quote.d.ts +32 -14
- package/types/resources/QuotedCharge.d.ts +7 -0
- package/types/resources/QuotedRamp.d.ts +11 -16
- package/types/resources/Ramp.d.ts +7 -7
- package/types/resources/RecordedPurchase.d.ts +8 -1
- package/types/resources/ResourceMigration.d.ts +2 -54
- package/types/resources/SiteMigrationDetail.d.ts +13 -55
- package/types/resources/Subscription.d.ts +33 -29
- package/types/resources/SubscriptionEntitlement.d.ts +6 -106
- package/types/resources/SubscriptionEntitlementsCreatedDetail.d.ts +12 -0
- package/types/resources/SubscriptionEntitlementsUpdatedDetail.d.ts +12 -0
- package/types/resources/SubscriptionEstimate.d.ts +14 -11
- package/types/resources/TaxWithheld.d.ts +14 -26
- package/types/resources/ThirdPartyPaymentMethod.d.ts +2 -19
- package/types/resources/TimeMachine.d.ts +3 -64
- package/types/resources/Token.d.ts +3 -60
- package/types/resources/Transaction.d.ts +8 -8
- package/types/resources/UnbilledCharge.d.ts +1 -1
- package/types/resources/Usage.d.ts +21 -165
- package/types/resources/UsageFile.d.ts +5 -5
- package/types/resources/VirtualBankAccount.d.ts +1 -1
- package/types/resources/WebhookEndpoint.d.ts +117 -0
|
@@ -6,44 +6,58 @@ declare module 'chargebee' {
|
|
|
6
6
|
|
|
7
7
|
id:string;
|
|
8
8
|
|
|
9
|
-
po_number?:string;
|
|
10
|
-
|
|
11
9
|
customer_id:string;
|
|
12
10
|
|
|
11
|
+
payment_owner?:string;
|
|
12
|
+
|
|
13
13
|
subscription_id?:string;
|
|
14
14
|
|
|
15
15
|
recurring:boolean;
|
|
16
16
|
|
|
17
17
|
status:'paid' | 'posted' | 'payment_due' | 'not_paid' | 'voided' | 'pending';
|
|
18
18
|
|
|
19
|
-
vat_number?:string;
|
|
20
|
-
|
|
21
|
-
price_type:PriceType;
|
|
22
|
-
|
|
23
19
|
date?:number;
|
|
24
20
|
|
|
25
21
|
due_date?:number;
|
|
26
22
|
|
|
27
23
|
net_term_days?:number;
|
|
28
24
|
|
|
25
|
+
po_number?:string;
|
|
26
|
+
|
|
27
|
+
vat_number?:string;
|
|
28
|
+
|
|
29
|
+
price_type:PriceType;
|
|
30
|
+
|
|
29
31
|
exchange_rate?:number;
|
|
30
32
|
|
|
33
|
+
local_currency_exchange_rate?:number;
|
|
34
|
+
|
|
31
35
|
currency_code:string;
|
|
32
36
|
|
|
33
|
-
|
|
37
|
+
local_currency_code?:string;
|
|
34
38
|
|
|
35
|
-
|
|
39
|
+
tax:number;
|
|
36
40
|
|
|
37
|
-
|
|
41
|
+
sub_total:number;
|
|
38
42
|
|
|
39
|
-
|
|
43
|
+
sub_total_in_local_currency?:number;
|
|
40
44
|
|
|
41
|
-
|
|
45
|
+
total?:number;
|
|
46
|
+
|
|
47
|
+
total_in_local_currency?:number;
|
|
42
48
|
|
|
43
49
|
amount_due?:number;
|
|
44
50
|
|
|
51
|
+
amount_adjusted?:number;
|
|
52
|
+
|
|
53
|
+
amount_paid?:number;
|
|
54
|
+
|
|
45
55
|
paid_at?:number;
|
|
46
56
|
|
|
57
|
+
write_off_amount?:number;
|
|
58
|
+
|
|
59
|
+
credits_applied?:number;
|
|
60
|
+
|
|
47
61
|
dunning_status?:'in_progress' | 'exhausted' | 'stopped' | 'success';
|
|
48
62
|
|
|
49
63
|
next_retry_at?:number;
|
|
@@ -54,18 +68,6 @@ declare module 'chargebee' {
|
|
|
54
68
|
|
|
55
69
|
updated_at?:number;
|
|
56
70
|
|
|
57
|
-
sub_total:number;
|
|
58
|
-
|
|
59
|
-
sub_total_in_local_currency?:number;
|
|
60
|
-
|
|
61
|
-
total_in_local_currency?:number;
|
|
62
|
-
|
|
63
|
-
local_currency_code?:string;
|
|
64
|
-
|
|
65
|
-
tax:number;
|
|
66
|
-
|
|
67
|
-
local_currency_exchange_rate?:number;
|
|
68
|
-
|
|
69
71
|
first_invoice?:boolean;
|
|
70
72
|
|
|
71
73
|
new_sales_amount?:number;
|
|
@@ -86,17 +88,21 @@ declare module 'chargebee' {
|
|
|
86
88
|
|
|
87
89
|
line_items?:Invoice.LineItem[];
|
|
88
90
|
|
|
89
|
-
|
|
91
|
+
line_item_tiers?:Invoice.LineItemTier[];
|
|
90
92
|
|
|
91
93
|
line_item_discounts?:Invoice.LineItemDiscount[];
|
|
92
94
|
|
|
93
|
-
taxes?:Invoice.Tax[];
|
|
94
|
-
|
|
95
95
|
line_item_taxes?:Invoice.LineItemTax[];
|
|
96
96
|
|
|
97
97
|
line_item_credits?:Invoice.LineItemCredit[];
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
line_item_addresses?:Invoice.LineItemAddress[];
|
|
100
|
+
|
|
101
|
+
discounts?:Invoice.Discount[];
|
|
102
|
+
|
|
103
|
+
taxes?:Invoice.Tax[];
|
|
104
|
+
|
|
105
|
+
tax_origin?:Invoice.TaxOrigin;
|
|
100
106
|
|
|
101
107
|
linked_payments?:Invoice.LinkedPayment[];
|
|
102
108
|
|
|
@@ -114,13 +120,11 @@ declare module 'chargebee' {
|
|
|
114
120
|
|
|
115
121
|
shipping_address?:Invoice.ShippingAddress;
|
|
116
122
|
|
|
117
|
-
statement_descriptor?:Invoice.StatementDescriptor;
|
|
118
|
-
|
|
119
123
|
billing_address?:Invoice.BillingAddress;
|
|
120
124
|
|
|
121
|
-
|
|
125
|
+
statement_descriptor?:Invoice.StatementDescriptor;
|
|
122
126
|
|
|
123
|
-
|
|
127
|
+
einvoice?:Invoice.Einvoice;
|
|
124
128
|
|
|
125
129
|
void_reason_code?:string;
|
|
126
130
|
|
|
@@ -136,10 +140,6 @@ declare module 'chargebee' {
|
|
|
136
140
|
|
|
137
141
|
site_details_at_creation?:Invoice.SiteDetailsAtCreation;
|
|
138
142
|
|
|
139
|
-
tax_origin?:Invoice.TaxOrigin;
|
|
140
|
-
|
|
141
|
-
line_item_addresses?:Invoice.LineItemAddress[];
|
|
142
|
-
|
|
143
143
|
}
|
|
144
144
|
export namespace Invoice {
|
|
145
145
|
export class InvoiceResource {
|
|
@@ -238,7 +238,7 @@ declare module 'chargebee' {
|
|
|
238
238
|
|
|
239
239
|
payment_method?:{additional_information?:object,gateway?:Gateway,gateway_account_id?:string,issuing_country?:string,reference_id?:string,tmp_token?:string,type?:Type};
|
|
240
240
|
|
|
241
|
-
payment_intent?:{additional_information?:object,gateway_account_id?:string,gw_payment_method_id?:string,gw_token?:string,id?:string,payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland',reference_id?:string};
|
|
241
|
+
payment_intent?:{additional_information?:object,gateway_account_id?:string,gw_payment_method_id?:string,gw_token?:string,id?:string,payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' | 'payconiq_by_bancontact',reference_id?:string};
|
|
242
242
|
|
|
243
243
|
addons?:{date_from?:number,date_to?:number,id?:string,quantity?:number,quantity_in_decimal?:string,unit_price?:number,unit_price_in_decimal?:string}[];
|
|
244
244
|
|
|
@@ -295,7 +295,7 @@ declare module 'chargebee' {
|
|
|
295
295
|
|
|
296
296
|
payment_method?:{additional_information?:object,gateway?:Gateway,gateway_account_id?:string,issuing_country?:string,reference_id?:string,tmp_token?:string,type?:Type};
|
|
297
297
|
|
|
298
|
-
payment_intent?:{additional_information?:object,gateway_account_id?:string,gw_payment_method_id?:string,gw_token?:string,id?:string,payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland',reference_id?:string};
|
|
298
|
+
payment_intent?:{additional_information?:object,gateway_account_id?:string,gw_payment_method_id?:string,gw_token?:string,id?:string,payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' | 'payconiq_by_bancontact',reference_id?:string};
|
|
299
299
|
|
|
300
300
|
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}[];
|
|
301
301
|
|
|
@@ -307,7 +307,7 @@ declare module 'chargebee' {
|
|
|
307
307
|
|
|
308
308
|
tax_providers_fields?:{field_id?:string,field_value?:string,provider_name?:string}[];
|
|
309
309
|
|
|
310
|
-
discounts:{amount?:number,apply_on:ApplyOn,item_price_id?:string,percentage?:number}[];
|
|
310
|
+
discounts:{amount?:number,apply_on:ApplyOn,item_price_id?:string,percentage?:number,quantity?:number}[];
|
|
311
311
|
|
|
312
312
|
customer_id?:string;
|
|
313
313
|
|
|
@@ -476,7 +476,7 @@ declare module 'chargebee' {
|
|
|
476
476
|
|
|
477
477
|
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};
|
|
478
478
|
|
|
479
|
-
line_items:{amount?:number,amount_in_decimal?:string,created_at?:number,date_from?:number,date_to?:number,description:string,entity_id?:string,entity_type?:'adhoc' | 'plan_item_price' | 'addon_item_price' | 'charge_item_price',id?:string,item_level_discount1_amount?:number,item_level_discount1_entity_id?:string,item_level_discount2_amount?:number,item_level_discount2_entity_id?:string,quantity?:number,quantity_in_decimal?:string,subscription_id?:string,tax10_amount?:number,tax10_name?:string,tax1_amount?:number,tax1_name?:string,tax2_amount?:number,tax2_name?:string,tax3_amount?:number,tax3_name?:string,tax4_amount?:number,tax4_name?:string,tax5_amount?:number,tax5_name?:string,tax6_amount?:number,tax6_name?:string,tax7_amount?:number,tax7_name?:string,tax8_amount?:number,tax8_name?:string,tax9_amount?:number,tax9_name?:string,unit_amount?:number,unit_amount_in_decimal?:string}[];
|
|
479
|
+
line_items:{amount?:number,amount_in_decimal?:string,created_at?:number,date_from?:number,date_to?:number,description:string,entity_id?:string,entity_type?:'adhoc' | 'plan_item_price' | 'addon_item_price' | 'charge_item_price' | 'plan_setup' | 'plan' | 'addon',id?:string,item_level_discount1_amount?:number,item_level_discount1_entity_id?:string,item_level_discount2_amount?:number,item_level_discount2_entity_id?:string,quantity?:number,quantity_in_decimal?:string,subscription_id?:string,tax10_amount?:number,tax10_name?:string,tax1_amount?:number,tax1_name?:string,tax2_amount?:number,tax2_name?:string,tax3_amount?:number,tax3_name?:string,tax4_amount?:number,tax4_name?:string,tax5_amount?:number,tax5_name?:string,tax6_amount?:number,tax6_name?:string,tax7_amount?:number,tax7_name?:string,tax8_amount?:number,tax8_name?:string,tax9_amount?:number,tax9_name?:string,unit_amount?:number,unit_amount_in_decimal?:string}[];
|
|
480
480
|
|
|
481
481
|
payment_reference_numbers:{id?:string,number:string,type:'kid' | 'ocr' | 'frn' | 'fik' | 'swiss_reference'}[];
|
|
482
482
|
|
|
@@ -486,9 +486,9 @@ declare module 'chargebee' {
|
|
|
486
486
|
|
|
487
487
|
taxes:{amount?:number,description?:string,juris_code?:string,juris_name?:string,juris_type?:'country' | 'federal' | 'state' | 'county' | 'city' | 'special' | 'unincorporated' | 'other',name:string,rate:number}[];
|
|
488
488
|
|
|
489
|
-
payments:{amount:number,date?:number,payment_method:PaymentMethod,reference_number?:string}[];
|
|
489
|
+
payments:{amount:number,date?:number,id?:string,payment_method:PaymentMethod,reference_number?:string}[];
|
|
490
490
|
|
|
491
|
-
notes?:{entity_id?:string,entity_type?:'coupon' | 'plan_item_price' | 'addon_item_price' | 'charge_item_price',note?:string}[];
|
|
491
|
+
notes?:{entity_id?:string,entity_type?:'coupon' | 'plan_item_price' | 'addon_item_price' | 'charge_item_price' | 'plan' | 'addon',note?:string}[];
|
|
492
492
|
|
|
493
493
|
line_item_addresses?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,line_item_id?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string}[];
|
|
494
494
|
|
|
@@ -580,7 +580,7 @@ declare module 'chargebee' {
|
|
|
580
580
|
limit?:number;
|
|
581
581
|
|
|
582
582
|
/**
|
|
583
|
-
* @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set
|
|
583
|
+
* @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.
|
|
584
584
|
|
|
585
585
|
*/
|
|
586
586
|
|
|
@@ -602,16 +602,6 @@ declare module 'chargebee' {
|
|
|
602
602
|
|
|
603
603
|
include_deleted?:boolean;
|
|
604
604
|
|
|
605
|
-
hide_zero_line_item?:boolean;
|
|
606
|
-
|
|
607
|
-
show_zero_tax_lines?:boolean;
|
|
608
|
-
|
|
609
|
-
show_exempted_tax_lines?:boolean;
|
|
610
|
-
|
|
611
|
-
include_consolidated_invoices?:boolean;
|
|
612
|
-
|
|
613
|
-
ignore_imported_invoice?:boolean;
|
|
614
|
-
|
|
615
605
|
/**
|
|
616
606
|
* @description The invoice number. Acts as a identifier for invoice and typically generated sequentially.
|
|
617
607
|
|
|
@@ -746,7 +736,7 @@ NOTE: Not to be used if *consolidated invoicing* is enabled.
|
|
|
746
736
|
|
|
747
737
|
void_reason_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
748
738
|
|
|
749
|
-
sort_by?:
|
|
739
|
+
sort_by?:object;
|
|
750
740
|
}
|
|
751
741
|
export interface InvoicesForCustomerResponse {
|
|
752
742
|
list:{invoice:Invoice}[];
|
|
@@ -763,7 +753,7 @@ NOTE: Not to be used if *consolidated invoicing* is enabled.
|
|
|
763
753
|
limit?:number;
|
|
764
754
|
|
|
765
755
|
/**
|
|
766
|
-
* @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set
|
|
756
|
+
* @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.
|
|
767
757
|
|
|
768
758
|
*/
|
|
769
759
|
|
|
@@ -784,7 +774,7 @@ NOTE: Not to be used if *consolidated invoicing* is enabled.
|
|
|
784
774
|
limit?:number;
|
|
785
775
|
|
|
786
776
|
/**
|
|
787
|
-
* @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set
|
|
777
|
+
* @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.
|
|
788
778
|
|
|
789
779
|
*/
|
|
790
780
|
|
|
@@ -796,10 +786,6 @@ NOTE: Not to be used if *consolidated invoicing* is enabled.
|
|
|
796
786
|
export interface RetrieveInputParam {
|
|
797
787
|
|
|
798
788
|
line_item?:{customer_id?:{is?:string},subscription_id?:{is?:string}};
|
|
799
|
-
|
|
800
|
-
line_items_limit?:number;
|
|
801
|
-
|
|
802
|
-
line_items_offset?:string;
|
|
803
789
|
}
|
|
804
790
|
export interface PdfResponse {
|
|
805
791
|
download:Download;
|
|
@@ -827,7 +813,7 @@ NOTE: Not to be used if *consolidated invoicing* is enabled.
|
|
|
827
813
|
limit?:number;
|
|
828
814
|
|
|
829
815
|
/**
|
|
830
|
-
* @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set
|
|
816
|
+
* @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.
|
|
831
817
|
|
|
832
818
|
*/
|
|
833
819
|
|
|
@@ -1136,18 +1122,28 @@ NOTE: Not to be used if *consolidated invoicing* is enabled.
|
|
|
1136
1122
|
|
|
1137
1123
|
customer_id?:string;
|
|
1138
1124
|
}
|
|
1139
|
-
export interface
|
|
1140
|
-
|
|
1125
|
+
export interface LineItemTier {
|
|
1126
|
+
line_item_id?:string;
|
|
1141
1127
|
|
|
1142
|
-
|
|
1128
|
+
starting_unit:number;
|
|
1143
1129
|
|
|
1144
|
-
|
|
1130
|
+
ending_unit?:number;
|
|
1145
1131
|
|
|
1146
|
-
|
|
1132
|
+
quantity_used:number;
|
|
1147
1133
|
|
|
1148
|
-
|
|
1134
|
+
unit_amount:number;
|
|
1149
1135
|
|
|
1150
|
-
|
|
1136
|
+
starting_unit_in_decimal?:string;
|
|
1137
|
+
|
|
1138
|
+
ending_unit_in_decimal?:string;
|
|
1139
|
+
|
|
1140
|
+
quantity_used_in_decimal?:string;
|
|
1141
|
+
|
|
1142
|
+
unit_amount_in_decimal?:string;
|
|
1143
|
+
|
|
1144
|
+
pricing_type?:'per_unit' | 'flat_fee' | 'package';
|
|
1145
|
+
|
|
1146
|
+
package_size?:number;
|
|
1151
1147
|
}
|
|
1152
1148
|
export interface LineItemDiscount {
|
|
1153
1149
|
line_item_id:string;
|
|
@@ -1160,13 +1156,6 @@ NOTE: Not to be used if *consolidated invoicing* is enabled.
|
|
|
1160
1156
|
|
|
1161
1157
|
discount_amount:number;
|
|
1162
1158
|
}
|
|
1163
|
-
export interface Tax {
|
|
1164
|
-
name:string;
|
|
1165
|
-
|
|
1166
|
-
amount:number;
|
|
1167
|
-
|
|
1168
|
-
description?:string;
|
|
1169
|
-
}
|
|
1170
1159
|
export interface LineItemTax {
|
|
1171
1160
|
line_item_id?:string;
|
|
1172
1161
|
|
|
@@ -1205,28 +1194,61 @@ NOTE: Not to be used if *consolidated invoicing* is enabled.
|
|
|
1205
1194
|
|
|
1206
1195
|
line_item_id?:string;
|
|
1207
1196
|
}
|
|
1208
|
-
export interface
|
|
1197
|
+
export interface LineItemAddress {
|
|
1209
1198
|
line_item_id?:string;
|
|
1210
1199
|
|
|
1211
|
-
|
|
1200
|
+
first_name?:string;
|
|
1212
1201
|
|
|
1213
|
-
|
|
1202
|
+
last_name?:string;
|
|
1214
1203
|
|
|
1215
|
-
|
|
1204
|
+
email?:string;
|
|
1216
1205
|
|
|
1217
|
-
|
|
1206
|
+
company?:string;
|
|
1218
1207
|
|
|
1219
|
-
|
|
1208
|
+
phone?:string;
|
|
1220
1209
|
|
|
1221
|
-
|
|
1210
|
+
line1?:string;
|
|
1222
1211
|
|
|
1223
|
-
|
|
1212
|
+
line2?:string;
|
|
1224
1213
|
|
|
1225
|
-
|
|
1214
|
+
line3?:string;
|
|
1226
1215
|
|
|
1227
|
-
|
|
1216
|
+
city?:string;
|
|
1228
1217
|
|
|
1229
|
-
|
|
1218
|
+
state_code?:string;
|
|
1219
|
+
|
|
1220
|
+
state?:string;
|
|
1221
|
+
|
|
1222
|
+
country?:string;
|
|
1223
|
+
|
|
1224
|
+
zip?:string;
|
|
1225
|
+
|
|
1226
|
+
validation_status?:'not_validated' | 'valid' | 'partially_valid' | 'invalid';
|
|
1227
|
+
}
|
|
1228
|
+
export interface Discount {
|
|
1229
|
+
amount:number;
|
|
1230
|
+
|
|
1231
|
+
description?:string;
|
|
1232
|
+
|
|
1233
|
+
entity_type:'item_level_coupon' | 'document_level_coupon' | 'promotional_credits' | 'prorated_credits' | 'item_level_discount' | 'document_level_discount';
|
|
1234
|
+
|
|
1235
|
+
discount_type?:'fixed_amount' | 'percentage';
|
|
1236
|
+
|
|
1237
|
+
entity_id?:string;
|
|
1238
|
+
|
|
1239
|
+
coupon_set_code?:string;
|
|
1240
|
+
}
|
|
1241
|
+
export interface Tax {
|
|
1242
|
+
name:string;
|
|
1243
|
+
|
|
1244
|
+
amount:number;
|
|
1245
|
+
|
|
1246
|
+
description?:string;
|
|
1247
|
+
}
|
|
1248
|
+
export interface TaxOrigin {
|
|
1249
|
+
country?:string;
|
|
1250
|
+
|
|
1251
|
+
registration_number?:string;
|
|
1230
1252
|
}
|
|
1231
1253
|
export interface LinkedPayment {
|
|
1232
1254
|
txn_id:string;
|
|
@@ -1352,11 +1374,6 @@ NOTE: Not to be used if *consolidated invoicing* is enabled.
|
|
|
1352
1374
|
|
|
1353
1375
|
index:number;
|
|
1354
1376
|
}
|
|
1355
|
-
export interface StatementDescriptor {
|
|
1356
|
-
id:string;
|
|
1357
|
-
|
|
1358
|
-
descriptor?:string;
|
|
1359
|
-
}
|
|
1360
1377
|
export interface BillingAddress {
|
|
1361
1378
|
first_name?:string;
|
|
1362
1379
|
|
|
@@ -1386,6 +1403,11 @@ NOTE: Not to be used if *consolidated invoicing* is enabled.
|
|
|
1386
1403
|
|
|
1387
1404
|
validation_status?:ValidationStatus;
|
|
1388
1405
|
}
|
|
1406
|
+
export interface StatementDescriptor {
|
|
1407
|
+
id:string;
|
|
1408
|
+
|
|
1409
|
+
descriptor?:string;
|
|
1410
|
+
}
|
|
1389
1411
|
export interface Einvoice {
|
|
1390
1412
|
id:string;
|
|
1391
1413
|
|
|
@@ -1400,41 +1422,5 @@ NOTE: Not to be used if *consolidated invoicing* is enabled.
|
|
|
1400
1422
|
|
|
1401
1423
|
organization_address?:object;
|
|
1402
1424
|
}
|
|
1403
|
-
export interface TaxOrigin {
|
|
1404
|
-
country?:string;
|
|
1405
|
-
|
|
1406
|
-
registration_number?:string;
|
|
1407
|
-
}
|
|
1408
|
-
export interface LineItemAddress {
|
|
1409
|
-
line_item_id?:string;
|
|
1410
|
-
|
|
1411
|
-
first_name?:string;
|
|
1412
|
-
|
|
1413
|
-
last_name?:string;
|
|
1414
|
-
|
|
1415
|
-
email?:string;
|
|
1416
|
-
|
|
1417
|
-
company?:string;
|
|
1418
|
-
|
|
1419
|
-
phone?:string;
|
|
1420
|
-
|
|
1421
|
-
line1?:string;
|
|
1422
|
-
|
|
1423
|
-
line2?:string;
|
|
1424
|
-
|
|
1425
|
-
line3?:string;
|
|
1426
|
-
|
|
1427
|
-
city?:string;
|
|
1428
|
-
|
|
1429
|
-
state_code?:string;
|
|
1430
|
-
|
|
1431
|
-
state?:string;
|
|
1432
|
-
|
|
1433
|
-
country?:string;
|
|
1434
|
-
|
|
1435
|
-
zip?:string;
|
|
1436
|
-
|
|
1437
|
-
validation_status?:'not_validated' | 'valid' | 'partially_valid' | 'invalid';
|
|
1438
|
-
}
|
|
1439
1425
|
}
|
|
1440
1426
|
}
|
|
@@ -79,7 +79,7 @@ declare module 'chargebee' {
|
|
|
79
79
|
item:Item;
|
|
80
80
|
}
|
|
81
81
|
export interface CreateInputParam {
|
|
82
|
-
|
|
82
|
+
|
|
83
83
|
bundle_configuration?:{type?:'fixed'};
|
|
84
84
|
|
|
85
85
|
bundle_items_to_add?:{item_id?:string,item_type?:ItemType,price_allocation?:number,quantity?:number}[];
|
|
@@ -134,7 +134,7 @@ declare module 'chargebee' {
|
|
|
134
134
|
item:Item;
|
|
135
135
|
}
|
|
136
136
|
export interface UpdateInputParam {
|
|
137
|
-
|
|
137
|
+
|
|
138
138
|
bundle_configuration?:{type?:'fixed'};
|
|
139
139
|
|
|
140
140
|
bundle_items_to_add?:{item_id?:string,item_type?:ItemType,price_allocation?:number,quantity?:number}[];
|
|
@@ -192,7 +192,7 @@ declare module 'chargebee' {
|
|
|
192
192
|
limit?:number;
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
|
-
* @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set
|
|
195
|
+
* @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.
|
|
196
196
|
|
|
197
197
|
*/
|
|
198
198
|
|
|
@@ -290,13 +290,6 @@ declare module 'chargebee' {
|
|
|
290
290
|
|
|
291
291
|
usage_calculation?:{in?:string,is?:'sum_of_usages' | 'last_usage' | 'max_usage',is_not?:'sum_of_usages' | 'last_usage' | 'max_usage',not_in?:string};
|
|
292
292
|
|
|
293
|
-
/**
|
|
294
|
-
* @description Indicates Whether a plan is grouped(bundle) or not. If it is grouped, it gives us the type of group.
|
|
295
|
-
|
|
296
|
-
*/
|
|
297
|
-
|
|
298
|
-
item_grouping_category?:{in?:string,is?:'non_bundle' | 'fixed',is_not?:'non_bundle' | 'fixed',not_in?:string};
|
|
299
|
-
|
|
300
293
|
/**
|
|
301
294
|
* @description The subscription channel this object originated from and is maintained in.
|
|
302
295
|
|
|
@@ -317,7 +310,7 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
|
|
|
317
310
|
|
|
318
311
|
include_site_level_resources?:{is?:'true' | 'false'};
|
|
319
312
|
|
|
320
|
-
sort_by?:
|
|
313
|
+
sort_by?:object;
|
|
321
314
|
}
|
|
322
315
|
export interface DeleteResponse {
|
|
323
316
|
item:Item;
|