diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a74923..1c7a9ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +### v3.17.0 (2026-01-16) +* * * + +### New Parameters: +* `applicable_item_price_ids` has been added to Coupon#CouponListRequest. +* `applicable_item_price_ids` has been added to Export#CouponRequest. + +### New Enums: +* `Twikey` has been added to GatewayEnum. + +### Deleted Action: +* `move` action has been removed from the ItemPrice. + ### v3.16.0 (2026-01-12) * * * diff --git a/chargebee/models/coupon/operations.py b/chargebee/models/coupon/operations.py index 8d4e015..54eb348 100644 --- a/chargebee/models/coupon/operations.py +++ b/chargebee/models/coupon/operations.py @@ -252,6 +252,7 @@ class ListParams(TypedDict): updated_at: NotRequired[Filters.TimestampFilter] sort_by: NotRequired[Filters.SortFilter] currency_code: NotRequired[Filters.StringFilter] + applicable_item_price_ids: NotRequired[Filters.StringFilter] class UpdateParams(TypedDict): name: NotRequired[str] diff --git a/chargebee/models/enums.py b/chargebee/models/enums.py index e148054..e91828f 100644 --- a/chargebee/models/enums.py +++ b/chargebee/models/enums.py @@ -754,6 +754,7 @@ class Gateway(Enum): JP_MORGAN = "jp_morgan" DEUTSCHE_BANK = "deutsche_bank" EZIDEBIT = "ezidebit" + TWIKEY = "twikey" GOCARDLESS = "gocardless" NOT_APPLICABLE = "not_applicable" diff --git a/chargebee/models/export/operations.py b/chargebee/models/export/operations.py index 28266bd..5263828 100644 --- a/chargebee/models/export/operations.py +++ b/chargebee/models/export/operations.py @@ -402,6 +402,7 @@ class AddonsParams(TypedDict): class CouponsParams(TypedDict): coupon: NotRequired["Export.CouponsCouponParams"] currency_code: NotRequired[Filters.StringFilter] + applicable_item_price_ids: NotRequired[Filters.StringFilter] class CustomersParams(TypedDict): customer: NotRequired["Export.CustomersCustomerParams"] diff --git a/chargebee/models/item_price/operations.py b/chargebee/models/item_price/operations.py index 29e5278..9733854 100644 --- a/chargebee/models/item_price/operations.py +++ b/chargebee/models/item_price/operations.py @@ -258,10 +258,6 @@ class FindApplicableItemPricesParams(TypedDict): item_id: NotRequired[str] sort_by: NotRequired[Filters.SortFilter] - class MoveItemPriceParams(TypedDict): - destination_item_id: Required[str] - variant_id: NotRequired[str] - def create(self, params: CreateParams, headers=None) -> CreateResponse: jsonKeys = { "metadata": 0, @@ -387,23 +383,3 @@ def find_applicable_item_prices( jsonKeys, options, ) - - def move_item_price( - self, id, params: MoveItemPriceParams, headers=None - ) -> MoveItemPriceResponse: - jsonKeys = {} - options = { - "isIdempotent": True, - } - return request.send( - "post", - request.uri_path("item_prices", id, "move"), - self.env, - cast(Dict[Any, Any], params), - headers, - MoveItemPriceResponse, - None, - False, - jsonKeys, - options, - ) diff --git a/chargebee/models/item_price/responses.py b/chargebee/models/item_price/responses.py index 9b2502f..790b717 100644 --- a/chargebee/models/item_price/responses.py +++ b/chargebee/models/item_price/responses.py @@ -151,9 +151,3 @@ class FindApplicableItemPricesItemPriceResponse: class FindApplicableItemPricesResponse(Response): list: List[FindApplicableItemPricesItemPriceResponse] next_offset: str = None - - -@dataclass -class MoveItemPriceResponse(Response): - is_idempotency_replayed: bool - item_price: ItemPriceResponse diff --git a/chargebee/version.py b/chargebee/version.py index 76caab7..8bc0d97 100644 --- a/chargebee/version.py +++ b/chargebee/version.py @@ -1 +1 @@ -VERSION = "3.16.0" +VERSION = "3.17.0"