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.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)
* * *

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions chargebee/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
EntityType,
EventName,
EventType,
ExcludeTaxType,
ExportType,
FreePeriodUnit,
FriendOfferType,
Expand Down Expand Up @@ -67,6 +68,7 @@
RefundableCreditsHandling,
ReportBy,
ResumeOption,
RetryEngine,
Role,
ScheduleType,
Source,
Expand Down
32 changes: 32 additions & 0 deletions chargebee/models/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions chargebee/models/estimate/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions chargebee/models/invoice/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions chargebee/models/invoice/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ class DunningAttemptResponse(Model):
created_at: int = None
txn_status: str = None
txn_amount: int = None
retry_engine: str = None


@dataclass
Expand Down
1 change: 1 addition & 0 deletions chargebee/models/item_price/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
5 changes: 5 additions & 0 deletions chargebee/models/payment_intent/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions chargebee/models/pricing_page_session/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand All @@ -116,14 +117,17 @@ class CreateForExistingSubscriptionParams(TypedDict):
subscription: Required[
"PricingPageSession.CreateForExistingSubscriptionSubscriptionParams"
]
custom: NotRequired[Dict[Any, Any]]
discounts: Required[
List["PricingPageSession.CreateForExistingSubscriptionDiscountParams"]
]

def create_for_new_subscription(
self, params: CreateForNewSubscriptionParams, headers=None
) -> CreateForNewSubscriptionResponse:
jsonKeys = {}
jsonKeys = {
"custom": 0,
}
options = {
"isIdempotent": True,
}
Expand All @@ -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,
}
Expand Down
2 changes: 1 addition & 1 deletion chargebee/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "3.14.1"
VERSION = "3.15.0"