From 329065e66599df1ed7e0a500eb0e204e8a4b7567 Mon Sep 17 00:00:00 2001 From: cb-alish Date: Mon, 8 Jun 2026 10:43:17 +0530 Subject: [PATCH] Releasing v2.72.0 --- CHANGELOG.md | 60 +++++++++++++++++++ Gemfile.lock | 2 +- VERSION | 2 +- chargebee.gemspec | 4 +- lib/chargebee.rb | 2 +- lib/chargebee/models/gift.rb | 2 +- .../models/omnichannel_subscription.rb | 4 +- .../models/omnichannel_subscription_item.rb | 4 +- lib/chargebee/result.rb | 17 ++---- 9 files changed, 76 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97ff28d..d692786 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,63 @@ +### v2.72.0 (2026-06-08) +* * * +### New Attributes: +- [`purchased_at`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/omnichannel-subscription-object#purchased_at) has been added to [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions). +- [`updated_at`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/omnichannel-subscription-object#updated_at) has been added to [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions). +- [`updated_at`](https://apidocs.chargebee.com/docs/api/omnichannel_subscription_items/omnichannel-subscription-item-object#updated_at) has been added to [`OmnichannelSubscriptionItem`](https://apidocs.chargebee.com/docs/api/omnichannel_subscription_items). + + +### New Parameters: +- [`customer_id.in`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#customer_id_in) has been added as query parameter to [`list_omnichannel_subscriptions`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions) in [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions). +- [`customer_id.not_in`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#customer_id_not_in) has been added as query parameter to [`list_omnichannel_subscriptions`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions) in [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions). +- [`id`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#id) has been added as query parameter to [`list_omnichannel_subscriptions`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions) in [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions). +- [`id_at_source`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#id_at_source) has been added as query parameter to [`list_omnichannel_subscriptions`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions) in [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions). +- [`updated_at`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#updated_at) has been added as query parameter to [`list_omnichannel_subscriptions`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions) in [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions). +- [`purchased_at`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#purchased_at) has been added as query parameter to [`list_omnichannel_subscriptions`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions) in [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions). +- [`gift_receiver`](https://apidocs.chargebee.com/docs/api/gifts/update-a-gift#gift_receiver) has been added as request body parameter to [`update_a_gift`](https://apidocs.chargebee.com/docs/api/gifts/update-a-gift) in [`Gift`](https://apidocs.chargebee.com/docs/api/gifts). +- [`layout`](https://apidocs.chargebee.com/docs/api/hosted_pages/checkout-gift-subscription-for-items#layout) has been added as request body parameter to [`checkout_gift_subscription_for_items`](https://apidocs.chargebee.com/docs/api/hosted_pages/checkout-gift-subscription-for-items) in [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages). + + +### Parameter Updates: +- [`scheduled_at`](https://apidocs.chargebee.com/docs/api/gifts/update-a-gift#scheduled_at) has been changed from required to optional in [`update_a_gift`](https://apidocs.chargebee.com/docs/api/gifts/update-a-gift) of [`Gift`](https://apidocs.chargebee.com/docs/api/gifts). + + +### New Events: +- [`omnichannel_subscription_item_updated`](https://apidocs.chargebee.com/docs/api/events/webhook/omnichannel_subscription_item_updated) has been added. +- [`omnichannel_subscription_item_recovered`](https://apidocs.chargebee.com/docs/api/events/webhook/omnichannel_subscription_item_recovered) has been added. + + +### Deleted Resources: +- QuoteEntitlement has been removed. + + +### Deleted Attributes: +- `entity_id` has been removed from `QuoteEntitlement`. +- `entity_type` has been removed from `QuoteEntitlement`. +- `feature_id` has been removed from `QuoteEntitlement`. +- `value` has been removed from `QuoteEntitlement`. +- `is_enabled` has been removed from `QuoteEntitlement`. +- `start_date` has been removed from `QuoteEntitlement`. +- `end_date` has been removed from `QuoteEntitlement`. +- `created_at` has been removed from `QuoteEntitlement`. +- `modified_at` has been removed from `QuoteEntitlement`. + + +### Deleted Parameters: +- `exclude` has been removed as query parameter from [`list_invoices`](https://apidocs.chargebee.com/docs/api/invoices/list-invoices) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices). + + +### New Enums: +- `omnichannel_subscription_item_updated` and `omnichannel_subscription_item_recovered` have been added as new values enum `EventType`. +- `klarna`, `alipay_hk`, `paypay`, `gcash`, and `south_korean_cards` have been added as new values enum `PaymentMethod`. +- `klarna`, `alipay_hk`, `paypay`, `gcash`, and `south_korean_cards` have been added as new values enum `PaymentMethodType`. +- `klarna`, `alipay_hk`, `paypay`, `gcash`, and `south_korean_cards` have been added as new values enum `Type`. +- `klarna`, `alipay_hk`, `paypay`, `gcash`, and `south_korean_cards` have been added as new values to enum attribute [`payment_method_type`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#payment_method_type) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). +- `klarna`, `alipay_hk`, `paypay`, `gcash`, and `south_korean_cards` have been added as new values to enum attribute [`active_payment_attempt.payment_method_type`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#active_payment_attempt_payment_method_type) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). +- `klarna`, `alipay_hk`, `paypay`, `gcash`, and `south_korean_cards` have been added as new values to enum request body parameter `payment_method_type` in [`update_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/update-a-payment-intent) of [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). +- `klarna`, `alipay_hk`, `paypay`, `gcash`, and `south_korean_cards` have been added as new values to enum request body parameter `payment_method_type` in [`create_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/create-a-payment-intent) of [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). + + + ### v2.71.0 (2026-05-04) * * * ### New Resources: diff --git a/Gemfile.lock b/Gemfile.lock index bff5093..5f5a192 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - chargebee (2.71.0) + chargebee (2.72.0) cgi (>= 0.1.0, < 1.0.0) GEM diff --git a/VERSION b/VERSION index 6ab6ec3..9e0b850 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.71.0 +2.72.0 diff --git a/chargebee.gemspec b/chargebee.gemspec index 9488b73..93c99e7 100644 --- a/chargebee.gemspec +++ b/chargebee.gemspec @@ -4,8 +4,8 @@ Gem::Specification.new do |s| s.rubygems_version = '1.3.5' s.required_ruby_version = '>= 1.9.3' s.name = 'chargebee' - s.version = '2.71.0' - s.date = '2026-05-04' + s.version = '2.72.0' + s.date = '2026-06-08' s.summary = "Ruby client for Chargebee API." s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com." s.metadata = { diff --git a/lib/chargebee.rb b/lib/chargebee.rb index f63f834..93108b3 100644 --- a/lib/chargebee.rb +++ b/lib/chargebee.rb @@ -100,7 +100,7 @@ module ChargeBee - VERSION = '2.71.0' + VERSION = '2.72.0' @@default_env = nil @@verify_ca_certs = true diff --git a/lib/chargebee/models/gift.rb b/lib/chargebee/models/gift.rb index 5aa3f0d..8a74af9 100644 --- a/lib/chargebee/models/gift.rb +++ b/lib/chargebee/models/gift.rb @@ -72,7 +72,7 @@ def self.cancel(id, env=nil, headers={}) Request.send('post', uri_path("gifts",id.to_s,"cancel"), {}, env, headers,nil, false, jsonKeys, options) end - def self.update_gift(id, params, env=nil, headers={}) + def self.update_gift(id, params={}, env=nil, headers={}) jsonKeys = { } options = { diff --git a/lib/chargebee/models/omnichannel_subscription.rb b/lib/chargebee/models/omnichannel_subscription.rb index b27909e..ada18e6 100644 --- a/lib/chargebee/models/omnichannel_subscription.rb +++ b/lib/chargebee/models/omnichannel_subscription.rb @@ -1,8 +1,8 @@ module ChargeBee class OmnichannelSubscription < Model - attr_accessor :id, :id_at_source, :app_id, :source, :customer_id, :created_at, :resource_version, - :omnichannel_subscription_items, :initial_purchase_transaction + attr_accessor :id, :id_at_source, :app_id, :source, :customer_id, :created_at, :purchased_at, + :updated_at, :resource_version, :omnichannel_subscription_items, :initial_purchase_transaction # OPERATIONS #----------- diff --git a/lib/chargebee/models/omnichannel_subscription_item.rb b/lib/chargebee/models/omnichannel_subscription_item.rb index 5dbb8d8..5fb8654 100644 --- a/lib/chargebee/models/omnichannel_subscription_item.rb +++ b/lib/chargebee/models/omnichannel_subscription_item.rb @@ -11,8 +11,8 @@ class LinkedItem < Model attr_accessor :id, :item_id_at_source, :item_parent_id_at_source, :status, :auto_renew_status, :current_term_start, :current_term_end, :expired_at, :expiration_reason, :cancelled_at, :cancellation_reason, - :grace_period_expires_at, :resumes_at, :has_scheduled_changes, :resource_version, :omnichannel_subscription_item_offers, - :upcoming_renewal, :linked_item + :grace_period_expires_at, :resumes_at, :has_scheduled_changes, :updated_at, :resource_version, + :omnichannel_subscription_item_offers, :upcoming_renewal, :linked_item # OPERATIONS #----------- diff --git a/lib/chargebee/result.rb b/lib/chargebee/result.rb index a02d457..c7e3a95 100644 --- a/lib/chargebee/result.rb +++ b/lib/chargebee/result.rb @@ -230,11 +230,6 @@ def quote_line_group() return quote_line_group; end - def quote_entitlement() - quote_entitlement = get(:quote_entitlement, QuoteEntitlement); - return quote_entitlement; - end - def cpq_quote_signature() cpq_quote_signature = get(:cpq_quote_signature, CpqQuoteSignature); return cpq_quote_signature; @@ -479,6 +474,12 @@ def pricing_page_session() return pricing_page_session; end + def omnichannel_subscription_item_scheduled_change() + omnichannel_subscription_item_scheduled_change = get(:omnichannel_subscription_item_scheduled_change, OmnichannelSubscriptionItemScheduledChange, + {:current_state => OmnichannelSubscriptionItemScheduledChange::CurrentState, :scheduled_state => OmnichannelSubscriptionItemScheduledChange::ScheduledState}); + return omnichannel_subscription_item_scheduled_change; + end + def omnichannel_subscription() omnichannel_subscription = get(:omnichannel_subscription, OmnichannelSubscription, {}, {:omnichannel_subscription_items => OmnichannelSubscriptionItem, :initial_purchase_transaction => OmnichannelTransaction}); @@ -534,12 +535,6 @@ def usage_event() return usage_event; end - def omnichannel_subscription_item_scheduled_change() - omnichannel_subscription_item_scheduled_change = get(:omnichannel_subscription_item_scheduled_change, OmnichannelSubscriptionItemScheduledChange, - {:current_state => OmnichannelSubscriptionItemScheduledChange::CurrentState, :scheduled_state => OmnichannelSubscriptionItemScheduledChange::ScheduledState}); - return omnichannel_subscription_item_scheduled_change; - end - def usage_file() usage_file = get(:usage_file, UsageFile, {:upload_detail => UsageFile::UploadDetail});