From a7e13706203ab801f15bcc84a28b319bb320ec4f Mon Sep 17 00:00:00 2001 From: cb-alish Date: Tue, 30 Dec 2025 12:33:06 +0530 Subject: [PATCH 1/2] Releasing v3.15.0 --- CHANGELOG.md | 22 +++++++++++++ chargebee/models/__init__.py | 2 ++ chargebee/models/enums.py | 32 +++++++++++++++++++ chargebee/models/estimate/operations.py | 1 + chargebee/models/invoice/operations.py | 1 + chargebee/models/invoice/responses.py | 1 + chargebee/models/item_price/operations.py | 1 + chargebee/models/payment_intent/operations.py | 5 +++ .../models/pricing_page_session/operations.py | 10 ++++-- chargebee/version.py | 2 +- 10 files changed, 74 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e74163..4c05176 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,25 @@ +### v3.15.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.14.1 (2025-12-18) * * * diff --git a/chargebee/models/__init__.py b/chargebee/models/__init__.py index 8f2cfab..97a9c6a 100644 --- a/chargebee/models/__init__.py +++ b/chargebee/models/__init__.py @@ -38,6 +38,7 @@ EntityType, EventName, EventType, + ExcludeTaxType, ExportType, FreePeriodUnit, FriendOfferType, @@ -67,6 +68,7 @@ RefundableCreditsHandling, ReportBy, ResumeOption, + RetryEngine, Role, ScheduleType, Source, diff --git a/chargebee/models/enums.py b/chargebee/models/enums.py index 692c802..e148054 100644 --- a/chargebee/models/enums.py +++ b/chargebee/models/enums.py @@ -663,6 +663,14 @@ def __str__(self): return self.value +class ExcludeTaxType(Enum): + EXCLUSIVE = "exclusive" + NONE = "none" + + def __str__(self): + return self.value + + class ExportType(Enum): DATA = "data" IMPORT_FRIENDLY_DATA = "import_friendly_data" @@ -895,6 +903,11 @@ class PaymentMethod(Enum): KLARNA_PAY_NOW = "klarna_pay_now" ONLINE_BANKING_POLAND = "online_banking_poland" PAYCONIQ_BY_BANCONTACT = "payconiq_by_bancontact" + ELECTRONIC_PAYMENT_STANDARD = "electronic_payment_standard" + KBC_PAYMENT_BUTTON = "kbc_payment_button" + PAY_BY_BANK = "pay_by_bank" + TRUSTLY = "trustly" + STABLECOIN = "stablecoin" def __str__(self): return self.value @@ -926,6 +939,11 @@ class PaymentMethodType(Enum): KLARNA_PAY_NOW = "klarna_pay_now" ONLINE_BANKING_POLAND = "online_banking_poland" PAYCONIQ_BY_BANCONTACT = "payconiq_by_bancontact" + ELECTRONIC_PAYMENT_STANDARD = "electronic_payment_standard" + KBC_PAYMENT_BUTTON = "kbc_payment_button" + PAY_BY_BANK = "pay_by_bank" + TRUSTLY = "trustly" + STABLECOIN = "stablecoin" def __str__(self): return self.value @@ -1038,6 +1056,15 @@ def __str__(self): return self.value +class RetryEngine(Enum): + CHARGEBEE = "chargebee" + FLEXPAY = "flexpay" + SUCCESSPLUS = "successplus" + + def __str__(self): + return self.value + + class Role(Enum): PRIMARY = "primary" BACKUP = "backup" @@ -1165,6 +1192,11 @@ class Type(Enum): KLARNA_PAY_NOW = "klarna_pay_now" ONLINE_BANKING_POLAND = "online_banking_poland" PAYCONIQ_BY_BANCONTACT = "payconiq_by_bancontact" + ELECTRONIC_PAYMENT_STANDARD = "electronic_payment_standard" + KBC_PAYMENT_BUTTON = "kbc_payment_button" + PAY_BY_BANK = "pay_by_bank" + TRUSTLY = "trustly" + STABLECOIN = "stablecoin" FREE_TRIAL = "free_trial" PAY_UP_FRONT = "pay_up_front" PAY_AS_YOU_GO = "pay_as_you_go" diff --git a/chargebee/models/estimate/operations.py b/chargebee/models/estimate/operations.py index a6ca7cb..219c681 100644 --- a/chargebee/models/estimate/operations.py +++ b/chargebee/models/estimate/operations.py @@ -937,6 +937,7 @@ class RenewalEstimateParams(TypedDict): use_existing_balances: NotRequired[bool] ignore_scheduled_cancellation: NotRequired[bool] ignore_scheduled_changes: NotRequired[bool] + exclude_tax_type: NotRequired[enums.ExcludeTaxType] class AdvanceInvoiceEstimateParams(TypedDict): terms_to_charge: NotRequired[int] diff --git a/chargebee/models/invoice/operations.py b/chargebee/models/invoice/operations.py index 6dd7b8c..14197a7 100644 --- a/chargebee/models/invoice/operations.py +++ b/chargebee/models/invoice/operations.py @@ -264,6 +264,7 @@ class DunningAttempt(TypedDict): created_at: NotRequired[int] txn_status: NotRequired["transaction.Transaction.Status"] txn_amount: NotRequired[int] + retry_engine: NotRequired[enums.RetryEngine] class AppliedCredit(TypedDict): cn_id: Required[str] diff --git a/chargebee/models/invoice/responses.py b/chargebee/models/invoice/responses.py index 83f4af7..d081d43 100644 --- a/chargebee/models/invoice/responses.py +++ b/chargebee/models/invoice/responses.py @@ -181,6 +181,7 @@ class DunningAttemptResponse(Model): created_at: int = None txn_status: str = None txn_amount: int = None + retry_engine: str = None @dataclass diff --git a/chargebee/models/item_price/operations.py b/chargebee/models/item_price/operations.py index 3e7437c..29e5278 100644 --- a/chargebee/models/item_price/operations.py +++ b/chargebee/models/item_price/operations.py @@ -260,6 +260,7 @@ class FindApplicableItemPricesParams(TypedDict): class MoveItemPriceParams(TypedDict): destination_item_id: Required[str] + variant_id: NotRequired[str] def create(self, params: CreateParams, headers=None) -> CreateResponse: jsonKeys = { diff --git a/chargebee/models/payment_intent/operations.py b/chargebee/models/payment_intent/operations.py index e8154c3..be64e18 100644 --- a/chargebee/models/payment_intent/operations.py +++ b/chargebee/models/payment_intent/operations.py @@ -41,6 +41,11 @@ class PaymentMethodType(Enum): KLARNA_PAY_NOW = "klarna_pay_now" ONLINE_BANKING_POLAND = "online_banking_poland" PAYCONIQ_BY_BANCONTACT = "payconiq_by_bancontact" + ELECTRONIC_PAYMENT_STANDARD = "electronic_payment_standard" + KBC_PAYMENT_BUTTON = "kbc_payment_button" + PAY_BY_BANK = "pay_by_bank" + TRUSTLY = "trustly" + STABLECOIN = "stablecoin" def __str__(self): return self.value diff --git a/chargebee/models/pricing_page_session/operations.py b/chargebee/models/pricing_page_session/operations.py index 68173a6..887d53e 100644 --- a/chargebee/models/pricing_page_session/operations.py +++ b/chargebee/models/pricing_page_session/operations.py @@ -95,6 +95,7 @@ class CreateForNewSubscriptionParams(TypedDict): ] business_entity_id: NotRequired[str] auto_select_local_currency: NotRequired[bool] + custom: NotRequired[Dict[Any, Any]] customer: NotRequired[ "PricingPageSession.CreateForNewSubscriptionCustomerParams" ] @@ -116,6 +117,7 @@ class CreateForExistingSubscriptionParams(TypedDict): subscription: Required[ "PricingPageSession.CreateForExistingSubscriptionSubscriptionParams" ] + custom: NotRequired[Dict[Any, Any]] discounts: Required[ List["PricingPageSession.CreateForExistingSubscriptionDiscountParams"] ] @@ -123,7 +125,9 @@ class CreateForExistingSubscriptionParams(TypedDict): def create_for_new_subscription( self, params: CreateForNewSubscriptionParams, headers=None ) -> CreateForNewSubscriptionResponse: - jsonKeys = {} + jsonKeys = { + "custom": 0, + } options = { "isIdempotent": True, } @@ -143,7 +147,9 @@ def create_for_new_subscription( def create_for_existing_subscription( self, params: CreateForExistingSubscriptionParams, headers=None ) -> CreateForExistingSubscriptionResponse: - jsonKeys = {} + jsonKeys = { + "custom": 0, + } options = { "isIdempotent": True, } diff --git a/chargebee/version.py b/chargebee/version.py index 06136e4..567cda1 100644 --- a/chargebee/version.py +++ b/chargebee/version.py @@ -1 +1 @@ -VERSION = "3.14.1" +VERSION = "3.15.0" From 4ff04d9712e4fff50f165df329c502e6b0b058df Mon Sep 17 00:00:00 2001 From: cb-alish Date: Tue, 30 Dec 2025 12:46:49 +0530 Subject: [PATCH 2/2] Updating the copyright year --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index c3f3edf..8eef1eb 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License -Copyright (c) 2011-2025 ChargeBee, Inc. +Copyright (c) 2011-2026 ChargeBee, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation