diff --git a/CHANGELOG.md b/CHANGELOG.md index ec54a65..678da66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,25 @@ +### v3.17.0 (2025-12-30) +* * * + +### New Attributes: +* retry_engine has been added to Invoice#DunningAttempt. + +### New Endpoint: +* move action has been added to ItemPrice. + +### New Parameters: +* exclude_tax_type has been added to Estimate#RenewalEstimateInputParam. +* variant_id has been added to ItemPrice#MoveInputParam. +* custom has been added to PricingPageSession#CreateForNewSubscriptionInputParam. +* custom has been added to PricingPageSession#CreateForExistingSubscriptionInputParam. + +### New Enums: +* ELECTRONIC_PAYMENT_STANDARD has been added to PaymentMethodTypeEnum. +* KBC_PAYMENT_BUTTON has been added to PaymentMethodTypeEnum. +* PAY_BY_BANK has been added to PaymentMethodTypeEnum. +* TRUSTLY has been added to PaymentMethodTypeEnum. +* STABLECOIN has been added to PaymentMethodTypeEnum. + ### v3.16.2 (2025-12-17) * * * diff --git a/package-lock.json b/package-lock.json index 9a1d0e5..d6632b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "chargebee", - "version": "3.16.2", + "version": "3.17.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "chargebee", - "version": "3.16.2", + "version": "3.17.0", "devDependencies": { "@types/node": "20.0.0", "prettier": "^3.3.3", diff --git a/package.json b/package.json index eab377d..1b0a9cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chargebee", - "version": "3.16.2", + "version": "3.17.0", "description": "A library for integrating with Chargebee.", "scripts": { "prepack": "npm install && npm run build", diff --git a/src/environment.ts b/src/environment.ts index 4fea9ed..d12c956 100644 --- a/src/environment.ts +++ b/src/environment.ts @@ -9,7 +9,7 @@ export const Environment = { hostSuffix: '.chargebee.com', apiPath: '/api/v2', timeout: DEFAULT_TIME_OUT, - clientVersion: 'v3.16.2', + clientVersion: 'v3.17.0', port: DEFAULT_PORT, timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT, exportWaitInMillis: DEFAULT_EXPORT_WAIT, diff --git a/src/resources/api_endpoints.ts b/src/resources/api_endpoints.ts index db8ab95..0094b32 100644 --- a/src/resources/api_endpoints.ts +++ b/src/resources/api_endpoints.ts @@ -4716,7 +4716,9 @@ export const Endpoints: Endpoints = { false, null, false, - {}, + { + custom: 0, + }, { isIdempotent: true, }, @@ -4729,7 +4731,9 @@ export const Endpoints: Endpoints = { false, null, false, - {}, + { + custom: 0, + }, { isIdempotent: true, }, diff --git a/types/core.d.ts b/types/core.d.ts index 17f48a0..be49e80 100644 --- a/types/core.d.ts +++ b/types/core.d.ts @@ -369,6 +369,7 @@ declare module 'chargebee' { | 'addon_created' | 'addon_updated' | 'addon_deleted'; + type ExcludeTaxTypeEnum = 'exclusive' | 'none'; type ExportTypeEnum = 'data' | 'import_friendly_data'; type FreePeriodUnitEnum = 'day' | 'week' | 'month' | 'year'; type FriendOfferTypeEnum = 'none' | 'coupon' | 'coupon_code'; @@ -502,7 +503,12 @@ declare module 'chargebee' { | 'automated_bank_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; type PaymentMethodTypeEnum = | 'card' | 'paypal_express_checkout' @@ -528,7 +534,12 @@ declare module 'chargebee' { | 'automated_bank_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; type PaymentVoucherTypeEnum = 'boleto'; type PeriodUnitEnum = 'day' | 'week' | 'month' | 'year'; type PriceTypeEnum = 'tax_exclusive' | 'tax_inclusive'; @@ -553,6 +564,7 @@ declare module 'chargebee' { type RefundableCreditsHandlingEnum = 'no_action' | 'schedule_refund'; type ReportByEnum = 'customer' | 'invoice' | 'product' | 'subscription'; type ResumeOptionEnum = 'immediately' | 'specific_date'; + type RetryEngineEnum = 'chargebee' | 'flexpay' | 'successplus'; type RoleEnum = 'primary' | 'backup' | 'none'; type ScheduleTypeEnum = 'immediate' | 'specific_dates' | 'fixed_intervals'; type SourceEnum = @@ -621,6 +633,11 @@ declare module 'chargebee' { | 'klarna_pay_now' | 'online_banking_poland' | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin' | 'free_trial' | 'pay_up_front' | 'pay_as_you_go'; diff --git a/types/resources/CouponCode.d.ts b/types/resources/CouponCode.d.ts index 3d0a6a8..d149c81 100644 --- a/types/resources/CouponCode.d.ts +++ b/types/resources/CouponCode.d.ts @@ -12,6 +12,10 @@ declare module 'chargebee' { export namespace CouponCode { export class CouponCodeResource { + /** + * @deprecated This method is deprecated and will be removed in a future version. + */ + create( input: CreateInputParam, headers?: ChargebeeRequestHeader, diff --git a/types/resources/CreditNote.d.ts b/types/resources/CreditNote.d.ts index fa5ea10..29cd6be 100644 --- a/types/resources/CreditNote.d.ts +++ b/types/resources/CreditNote.d.ts @@ -113,6 +113,10 @@ declare module 'chargebee' { headers?: ChargebeeRequestHeader, ): Promise>; + /** + * @deprecated This method is deprecated and will be removed in a future version. + */ + creditNotesForCustomer( customer_id: string, input?: CreditNotesForCustomerInputParam, diff --git a/types/resources/Customer.d.ts b/types/resources/Customer.d.ts index 7db41dd..7a041aa 100644 --- a/types/resources/Customer.d.ts +++ b/types/resources/Customer.d.ts @@ -150,18 +150,30 @@ declare module 'chargebee' { headers?: ChargebeeRequestHeader, ): Promise>; + /** + * @deprecated This method is deprecated and will be removed in a future version. + */ + addPromotionalCredits( customer_id: string, input: AddPromotionalCreditsInputParam, headers?: ChargebeeRequestHeader, ): Promise>; + /** + * @deprecated This method is deprecated and will be removed in a future version. + */ + deductPromotionalCredits( customer_id: string, input: DeductPromotionalCreditsInputParam, headers?: ChargebeeRequestHeader, ): Promise>; + /** + * @deprecated This method is deprecated and will be removed in a future version. + */ + setPromotionalCredits( customer_id: string, input: SetPromotionalCreditsInputParam, @@ -738,7 +750,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; reference_id?: string; /** * @deprecated Please refer API docs to use other attributes @@ -911,7 +928,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; /** * @deprecated Please refer API docs to use other attributes */ diff --git a/types/resources/Estimate.d.ts b/types/resources/Estimate.d.ts index 05a8070..e47c732 100644 --- a/types/resources/Estimate.d.ts +++ b/types/resources/Estimate.d.ts @@ -340,6 +340,7 @@ declare module 'chargebee' { use_existing_balances?: boolean; ignore_scheduled_cancellation?: boolean; ignore_scheduled_changes?: boolean; + exclude_tax_type?: 'exclusive' | 'none'; } export interface AdvanceInvoiceEstimateInputParam { terms_to_charge?: number; @@ -1041,7 +1042,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; reference_id?: string; /** * @deprecated Please refer API docs to use other attributes @@ -1119,7 +1125,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; reference_id?: string; /** * @deprecated Please refer API docs to use other attributes diff --git a/types/resources/Gift.d.ts b/types/resources/Gift.d.ts index 0353ffc..8303828 100644 --- a/types/resources/Gift.d.ts +++ b/types/resources/Gift.d.ts @@ -203,7 +203,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; reference_id?: string; /** * @deprecated Please refer API docs to use other attributes @@ -275,7 +280,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; reference_id?: string; /** * @deprecated Please refer API docs to use other attributes diff --git a/types/resources/HostedPage.d.ts b/types/resources/HostedPage.d.ts index 982c88e..3144063 100644 --- a/types/resources/HostedPage.d.ts +++ b/types/resources/HostedPage.d.ts @@ -68,6 +68,10 @@ declare module 'chargebee' { headers?: ChargebeeRequestHeader, ): Promise>; + /** + * @deprecated This method is deprecated and will be removed in a future version. + */ + updateCard( input: UpdateCardInputParam, headers?: ChargebeeRequestHeader, diff --git a/types/resources/Invoice.d.ts b/types/resources/Invoice.d.ts index f65909f..7388bd5 100644 --- a/types/resources/Invoice.d.ts +++ b/types/resources/Invoice.d.ts @@ -104,6 +104,10 @@ declare module 'chargebee' { headers?: ChargebeeRequestHeader, ): Promise>; + /** + * @deprecated This method is deprecated and will be removed in a future version. + */ + createForChargeItem( input: CreateForChargeItemInputParam, headers?: ChargebeeRequestHeader, @@ -160,12 +164,20 @@ declare module 'chargebee' { headers?: ChargebeeRequestHeader, ): Promise>; + /** + * @deprecated This method is deprecated and will be removed in a future version. + */ + invoicesForCustomer( customer_id: string, input?: InvoicesForCustomerInputParam, headers?: ChargebeeRequestHeader, ): Promise>; + /** + * @deprecated This method is deprecated and will be removed in a future version. + */ + invoicesForSubscription( subscription_id: string, input?: InvoicesForSubscriptionInputParam, @@ -687,6 +699,7 @@ declare module 'chargebee' { | 'needs_attention' | 'late_failure'; txn_amount?: number; + retry_engine?: 'chargebee' | 'flexpay' | 'successplus'; } export interface AppliedCredit { cn_id: string; @@ -1247,7 +1260,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; reference_id?: string; /** * @deprecated Please refer API docs to use other attributes @@ -1394,7 +1412,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; reference_id?: string; /** * @deprecated Please refer API docs to use other attributes diff --git a/types/resources/ItemPrice.d.ts b/types/resources/ItemPrice.d.ts index a517734..a45586e 100644 --- a/types/resources/ItemPrice.d.ts +++ b/types/resources/ItemPrice.d.ts @@ -92,6 +92,10 @@ declare module 'chargebee' { headers?: ChargebeeRequestHeader, ): Promise>; + /** + * @deprecated This method is deprecated and will be removed in a future version. + */ + moveItemPrice( item_price_id: string, input: MoveItemPriceInputParam, @@ -281,6 +285,7 @@ declare module 'chargebee' { } export interface MoveItemPriceInputParam { destination_item_id: string; + variant_id?: string; } export interface TaxDetailCreateInputParam { tax_profile_id?: string; diff --git a/types/resources/Order.d.ts b/types/resources/Order.d.ts index 960a7fa..e2ec5ae 100644 --- a/types/resources/Order.d.ts +++ b/types/resources/Order.d.ts @@ -143,6 +143,10 @@ declare module 'chargebee' { headers?: ChargebeeRequestHeader, ): Promise>; + /** + * @deprecated This method is deprecated and will be removed in a future version. + */ + ordersForInvoice( invoice_id: string, input?: OrdersForInvoiceInputParam, diff --git a/types/resources/PaymentIntent.d.ts b/types/resources/PaymentIntent.d.ts index 20d3709..79e6c1e 100644 --- a/types/resources/PaymentIntent.d.ts +++ b/types/resources/PaymentIntent.d.ts @@ -31,7 +31,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; success_url?: string; failure_url?: string; created_at: number; @@ -107,7 +112,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; id_at_gateway?: string; error_code?: string; error_text?: string; @@ -147,7 +157,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; id_at_gateway?: string; error_code?: string; error_text?: string; @@ -187,7 +202,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; success_url?: string; failure_url?: string; } @@ -216,7 +236,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; success_url?: string; failure_url?: string; } diff --git a/types/resources/PaymentSource.d.ts b/types/resources/PaymentSource.d.ts index 051012b..f09652d 100644 --- a/types/resources/PaymentSource.d.ts +++ b/types/resources/PaymentSource.d.ts @@ -453,7 +453,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; reference_id?: string; /** * @deprecated Please refer API docs to use other attributes diff --git a/types/resources/PricingPageSession.d.ts b/types/resources/PricingPageSession.d.ts index 98ce74a..f1130e7 100644 --- a/types/resources/PricingPageSession.d.ts +++ b/types/resources/PricingPageSession.d.ts @@ -37,6 +37,7 @@ declare module 'chargebee' { redirect_url?: string; business_entity_id?: string; auto_select_local_currency?: boolean; + custom?: any; pricing_page?: PricingPageCreateForNewSubscriptionInputParam; subscription?: SubscriptionCreateForNewSubscriptionInputParam; customer?: CustomerCreateForNewSubscriptionInputParam; @@ -46,6 +47,7 @@ declare module 'chargebee' { } export interface CreateForExistingSubscriptionInputParam { redirect_url?: string; + custom?: any; pricing_page?: PricingPageCreateForExistingSubscriptionInputParam; subscription?: SubscriptionCreateForExistingSubscriptionInputParam; discounts?: DiscountsCreateForExistingSubscriptionInputParam[]; diff --git a/types/resources/Purchase.d.ts b/types/resources/Purchase.d.ts index ce56c86..64c1d9d 100644 --- a/types/resources/Purchase.d.ts +++ b/types/resources/Purchase.d.ts @@ -98,7 +98,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; reference_id?: string; /** * @deprecated Please refer API docs to use other attributes diff --git a/types/resources/Subscription.d.ts b/types/resources/Subscription.d.ts index cd84f84..82b1f74 100644 --- a/types/resources/Subscription.d.ts +++ b/types/resources/Subscription.d.ts @@ -122,6 +122,10 @@ declare module 'chargebee' { headers?: ChargebeeRequestHeader, ): Promise>; + /** + * @deprecated This method is deprecated and will be removed in a future version. + */ + subscriptionsForCustomer( customer_id: string, input?: SubscriptionsForCustomerInputParam, @@ -1401,7 +1405,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; reference_id?: string; /** * @deprecated Please refer API docs to use other attributes @@ -1529,7 +1538,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; reference_id?: string; /** * @deprecated Please refer API docs to use other attributes @@ -1624,7 +1638,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; reference_id?: string; /** * @deprecated Please refer API docs to use other attributes @@ -1774,7 +1793,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; reference_id?: string; /** * @deprecated Please refer API docs to use other attributes @@ -1938,7 +1962,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; reference_id?: string; /** * @deprecated Please refer API docs to use other attributes @@ -2058,7 +2087,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; reference_id?: string; /** * @deprecated Please refer API docs to use other attributes @@ -2484,7 +2518,12 @@ declare module 'chargebee' { | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' - | 'payconiq_by_bancontact'; + | 'payconiq_by_bancontact' + | 'electronic_payment_standard' + | 'kbc_payment_button' + | 'pay_by_bank' + | 'trustly' + | 'stablecoin'; reference_id?: string; /** * @deprecated Please refer API docs to use other attributes diff --git a/types/resources/Transaction.d.ts b/types/resources/Transaction.d.ts index 7ded5e1..db84a87 100644 --- a/types/resources/Transaction.d.ts +++ b/types/resources/Transaction.d.ts @@ -96,12 +96,20 @@ declare module 'chargebee' { headers?: ChargebeeRequestHeader, ): Promise>; + /** + * @deprecated This method is deprecated and will be removed in a future version. + */ + transactionsForCustomer( customer_id: string, input?: TransactionsForCustomerInputParam, headers?: ChargebeeRequestHeader, ): Promise>; + /** + * @deprecated This method is deprecated and will be removed in a future version. + */ + transactionsForSubscription( subscription_id: string, input?: TransactionsForSubscriptionInputParam,