chargebee 2.35.1 → 2.37.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 +78 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +78 -1
- package/package.json +1 -1
- package/types/core.d.ts +53 -50
- package/types/index.d.ts +9 -0
- package/types/resources/BusinessEntity.d.ts +83 -0
- package/types/resources/BusinessEntityTransfer.d.ts +21 -0
- package/types/resources/CreditNote.d.ts +14 -0
- package/types/resources/CreditNoteEstimate.d.ts +11 -15
- package/types/resources/Currency.d.ts +78 -0
- package/types/resources/Customer.d.ts +161 -1627
- package/types/resources/Estimate.d.ts +186 -1154
- package/types/resources/Invoice.d.ts +15 -0
- package/types/resources/ItemPrice.d.ts +3 -0
- package/types/resources/PaymentIntent.d.ts +4 -4
- package/types/resources/Purchase.d.ts +1 -0
- package/types/resources/Quote.d.ts +289 -1399
- package/types/resources/Subscription.d.ts +2 -0
- package/types/resources/UnbilledCharge.d.ts +28 -275
- package/.github/workflows/greeting.yml +0 -47
|
@@ -473,6 +473,8 @@ In-App Subscriptions is currently in early access. Contact [eap@chargebee.com](m
|
|
|
473
473
|
*/
|
|
474
474
|
|
|
475
475
|
linked_taxes_withheld?:Invoice.LinkedTaxWithheld[];
|
|
476
|
+
site_details_at_creation?:Invoice.SiteDetailsAtCreation;
|
|
477
|
+
tax_origin?:Invoice.TaxOrigin;
|
|
476
478
|
}
|
|
477
479
|
export namespace Invoice {
|
|
478
480
|
export class InvoiceResource {
|
|
@@ -951,6 +953,7 @@ This endpoint schedules e-invoices manually. This operation is not allowed when
|
|
|
951
953
|
*/
|
|
952
954
|
|
|
953
955
|
notes_to_remove?:{entity_id?:string,entity_type?:EntityType}[];
|
|
956
|
+
tax_providers_fields?: { field_id?: string, field_value?: string, provider_name?: string }[];
|
|
954
957
|
}
|
|
955
958
|
export interface CreateForChargeItemsAndChargesResponse {
|
|
956
959
|
invoice:Invoice;
|
|
@@ -1146,6 +1149,7 @@ The invoice is [linked](/docs/api?prod_cat_ver=2#mbe-linked-be) to the same
|
|
|
1146
1149
|
*/
|
|
1147
1150
|
|
|
1148
1151
|
discounts:{amount?:number,apply_on:ApplyOn,item_price_id?:string,percentage?:number}[];
|
|
1152
|
+
tax_providers_fields?: { field_id?: string, field_value?: string, provider_name?: string }[];
|
|
1149
1153
|
}
|
|
1150
1154
|
export interface StopDunningResponse {
|
|
1151
1155
|
invoice:Invoice;
|
|
@@ -1819,6 +1823,7 @@ The [invoice](/docs/api/invoices?prod_cat_ver=1#invoice_status) is yet to b
|
|
|
1819
1823
|
*/
|
|
1820
1824
|
|
|
1821
1825
|
item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
1826
|
+
tax_providers_fields?: { field_id?: string, field_value?: string, provider_name?: string }[];
|
|
1822
1827
|
}
|
|
1823
1828
|
export interface CloseResponse {
|
|
1824
1829
|
invoice:Invoice;
|
|
@@ -3245,5 +3250,15 @@ If you have enabled [EU VAT](https://www.chargebee.com/docs/eu-vat.html) in 2021
|
|
|
3245
3250
|
|
|
3246
3251
|
reference_number?:string;
|
|
3247
3252
|
}
|
|
3253
|
+
|
|
3254
|
+
export interface SiteDetailsAtCreation {
|
|
3255
|
+
timezone?: string;
|
|
3256
|
+
organization_address?: object;
|
|
3257
|
+
}
|
|
3258
|
+
export interface TaxOrigin {
|
|
3259
|
+
country?:string;
|
|
3260
|
+
|
|
3261
|
+
registration_number?:string;
|
|
3262
|
+
}
|
|
3248
3263
|
}
|
|
3249
3264
|
}
|
|
@@ -578,6 +578,8 @@ If subscriptions, invoices or [differential prices](./differential_prices?prod_c
|
|
|
578
578
|
*/
|
|
579
579
|
|
|
580
580
|
tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
581
|
+
tax_providers_fields?: { field_id?: string, field_value?: string, provider_name?: string }[];
|
|
582
|
+
|
|
581
583
|
}
|
|
582
584
|
export interface RetrieveResponse {
|
|
583
585
|
item_price:ItemPrice;
|
|
@@ -808,6 +810,7 @@ If subscriptions, invoices or [differential prices](./differential_prices?prod_c
|
|
|
808
810
|
*/
|
|
809
811
|
|
|
810
812
|
tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
813
|
+
tax_providers_fields?: { field_id?: string, field_value?: string, provider_name?: string }[];
|
|
811
814
|
}
|
|
812
815
|
export interface ListResponse {
|
|
813
816
|
/**
|
|
@@ -56,7 +56,7 @@ declare module 'chargebee' {
|
|
|
56
56
|
|
|
57
57
|
*/
|
|
58
58
|
|
|
59
|
-
payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card';
|
|
59
|
+
payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card' | 'online_banking_poland';
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* @description The URL the customer will be directed to once 3DS verification is successful. Applicable only when `payment_method_type` is `ideal`, `sofort`, `dotpay` or `giropay`.
|
|
@@ -226,7 +226,7 @@ An alternative way of passing this parameter is by means of a [custom HTTP heade
|
|
|
226
226
|
|
|
227
227
|
*/
|
|
228
228
|
|
|
229
|
-
payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card';
|
|
229
|
+
payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card' | 'online_banking_poland';
|
|
230
230
|
|
|
231
231
|
/**
|
|
232
232
|
* @description The URL the customer will be directed to once 3DS verification is successful. Applicable only when `payment_method_type` is `ideal`, `sofort`, `dotpay` or `giropay`.
|
|
@@ -273,7 +273,7 @@ An alternative way of passing this parameter is by means of a [custom HTTP heade
|
|
|
273
273
|
|
|
274
274
|
*/
|
|
275
275
|
|
|
276
|
-
payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card';
|
|
276
|
+
payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card' | 'online_banking_poland';
|
|
277
277
|
|
|
278
278
|
/**
|
|
279
279
|
* @description The URL the customer will be directed to once 3DS verification is successful. Applicable only when `payment_method_type` is `ideal`, `sofort`, `dotpay` or `giropay`.
|
|
@@ -313,7 +313,7 @@ An alternative way of passing this parameter is by means of a [custom HTTP heade
|
|
|
313
313
|
|
|
314
314
|
*/
|
|
315
315
|
|
|
316
|
-
payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card';
|
|
316
|
+
payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card' | 'online_banking_poland';
|
|
317
317
|
|
|
318
318
|
/**
|
|
319
319
|
* @description Reference of PaymentIntent at gateway
|
|
@@ -250,6 +250,7 @@ Discounts, both [manual discounts](discounts) and <coupons>, can be applie
|
|
|
250
250
|
*/
|
|
251
251
|
|
|
252
252
|
contract_terms:{action_at_term_end?:'cancel' | 'renew_once' | 'renew' | 'evergreen',cancellation_cutoff_period?:number,index:number}[];
|
|
253
|
+
statement_descriptor?:{descriptor?:string};
|
|
253
254
|
}
|
|
254
255
|
export interface EstimateResponse {
|
|
255
256
|
estimate:Estimate;
|