Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
* * *

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 6 additions & 2 deletions src/resources/api_endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4716,7 +4716,9 @@ export const Endpoints: Endpoints = {
false,
null,
false,
{},
{
custom: 0,
},
{
isIdempotent: true,
},
Expand All @@ -4729,7 +4731,9 @@ export const Endpoints: Endpoints = {
false,
null,
false,
{},
{
custom: 0,
},
{
isIdempotent: true,
},
Expand Down
21 changes: 19 additions & 2 deletions types/core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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'
Expand All @@ -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';
Expand All @@ -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 =
Expand Down Expand Up @@ -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';
Expand Down
4 changes: 4 additions & 0 deletions types/resources/CouponCode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions types/resources/CreditNote.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ declare module 'chargebee' {
headers?: ChargebeeRequestHeader,
): Promise<ChargebeeResponse<ListResponse>>;

/**
* @deprecated This method is deprecated and will be removed in a future version.
*/

creditNotesForCustomer(
customer_id: string,
input?: CreditNotesForCustomerInputParam,
Expand Down
26 changes: 24 additions & 2 deletions types/resources/Customer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,30 @@ declare module 'chargebee' {
headers?: ChargebeeRequestHeader,
): Promise<ChargebeeResponse<DeleteContactResponse>>;

/**
* @deprecated This method is deprecated and will be removed in a future version.
*/

addPromotionalCredits(
customer_id: string,
input: AddPromotionalCreditsInputParam,
headers?: ChargebeeRequestHeader,
): Promise<ChargebeeResponse<AddPromotionalCreditsResponse>>;

/**
* @deprecated This method is deprecated and will be removed in a future version.
*/

deductPromotionalCredits(
customer_id: string,
input: DeductPromotionalCreditsInputParam,
headers?: ChargebeeRequestHeader,
): Promise<ChargebeeResponse<DeductPromotionalCreditsResponse>>;

/**
* @deprecated This method is deprecated and will be removed in a future version.
*/

setPromotionalCredits(
customer_id: string,
input: SetPromotionalCreditsInputParam,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
*/
Expand Down
15 changes: 13 additions & 2 deletions types/resources/Estimate.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
14 changes: 12 additions & 2 deletions types/resources/Gift.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions types/resources/HostedPage.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ declare module 'chargebee' {
headers?: ChargebeeRequestHeader,
): Promise<ChargebeeResponse<CheckoutExistingForItemsResponse>>;

/**
* @deprecated This method is deprecated and will be removed in a future version.
*/

updateCard(
input: UpdateCardInputParam,
headers?: ChargebeeRequestHeader,
Expand Down
27 changes: 25 additions & 2 deletions types/resources/Invoice.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ declare module 'chargebee' {
headers?: ChargebeeRequestHeader,
): Promise<ChargebeeResponse<ChargeAddonResponse>>;

/**
* @deprecated This method is deprecated and will be removed in a future version.
*/

createForChargeItem(
input: CreateForChargeItemInputParam,
headers?: ChargebeeRequestHeader,
Expand Down Expand Up @@ -160,12 +164,20 @@ declare module 'chargebee' {
headers?: ChargebeeRequestHeader,
): Promise<ChargebeeResponse<ListResponse>>;

/**
* @deprecated This method is deprecated and will be removed in a future version.
*/

invoicesForCustomer(
customer_id: string,
input?: InvoicesForCustomerInputParam,
headers?: ChargebeeRequestHeader,
): Promise<ChargebeeResponse<InvoicesForCustomerResponse>>;

/**
* @deprecated This method is deprecated and will be removed in a future version.
*/

invoicesForSubscription(
subscription_id: string,
input?: InvoicesForSubscriptionInputParam,
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions types/resources/ItemPrice.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ declare module 'chargebee' {
headers?: ChargebeeRequestHeader,
): Promise<ChargebeeResponse<FindApplicableItemPricesResponse>>;

/**
* @deprecated This method is deprecated and will be removed in a future version.
*/

moveItemPrice(
item_price_id: string,
input: MoveItemPriceInputParam,
Expand Down Expand Up @@ -281,6 +285,7 @@ declare module 'chargebee' {
}
export interface MoveItemPriceInputParam {
destination_item_id: string;
variant_id?: string;
}
export interface TaxDetailCreateInputParam {
tax_profile_id?: string;
Expand Down
4 changes: 4 additions & 0 deletions types/resources/Order.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ declare module 'chargebee' {
headers?: ChargebeeRequestHeader,
): Promise<ChargebeeResponse<ListResponse>>;

/**
* @deprecated This method is deprecated and will be removed in a future version.
*/

ordersForInvoice(
invoice_id: string,
input?: OrdersForInvoiceInputParam,
Expand Down
Loading