diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ae1d0b..b9b815c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,25 @@ +### v2.66.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. + ### v2.65.0 (2025-11-26) * * * diff --git a/Gemfile.lock b/Gemfile.lock index 9f9accd..2861986 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - chargebee (2.65.0) + chargebee (2.66.0) cgi (>= 0.1.0, < 1.0.0) GEM diff --git a/chargebee.gemspec b/chargebee.gemspec index 3767f61..3fb0f3d 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.65.0' - s.date = '2025-11-26' + s.version = '2.66.0' + s.date = '2025-12-30' 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 d4f90cf..6b73e5b 100644 --- a/lib/chargebee.rb +++ b/lib/chargebee.rb @@ -100,7 +100,7 @@ module ChargeBee - VERSION = '2.65.0' + VERSION = '2.66.0' @@default_env = nil @@verify_ca_certs = true diff --git a/lib/chargebee/models/coupon_code.rb b/lib/chargebee/models/coupon_code.rb index f5091a1..3fc035d 100644 --- a/lib/chargebee/models/coupon_code.rb +++ b/lib/chargebee/models/coupon_code.rb @@ -6,6 +6,7 @@ class CouponCode < Model # OPERATIONS #----------- + # @deprecated This method is deprecated and will be removed in a future version. def self.create(params, env=nil, headers={}) jsonKeys = { } diff --git a/lib/chargebee/models/credit_note.rb b/lib/chargebee/models/credit_note.rb index daf1e02..7cd9895 100644 --- a/lib/chargebee/models/credit_note.rb +++ b/lib/chargebee/models/credit_note.rb @@ -135,6 +135,7 @@ def self.list(params={}, env=nil, headers={}) Request.send_list_request('get', uri_path("credit_notes"), params, env, headers,nil, false, jsonKeys, options) end + # @deprecated This method is deprecated and will be removed in a future version. def self.credit_notes_for_customer(id, params={}, env=nil, headers={}) jsonKeys = { } diff --git a/lib/chargebee/models/customer.rb b/lib/chargebee/models/customer.rb index d2de515..40dcbb3 100644 --- a/lib/chargebee/models/customer.rb +++ b/lib/chargebee/models/customer.rb @@ -157,6 +157,7 @@ def self.delete_contact(id, params, env=nil, headers={}) Request.send('post', uri_path("customers",id.to_s,"delete_contact"), params, env, headers,nil, false, jsonKeys, options) end + # @deprecated This method is deprecated and will be removed in a future version. def self.add_promotional_credits(id, params, env=nil, headers={}) jsonKeys = { } @@ -166,6 +167,7 @@ def self.add_promotional_credits(id, params, env=nil, headers={}) Request.send('post', uri_path("customers",id.to_s,"add_promotional_credits"), params, env, headers,nil, false, jsonKeys, options) end + # @deprecated This method is deprecated and will be removed in a future version. def self.deduct_promotional_credits(id, params, env=nil, headers={}) jsonKeys = { } @@ -175,6 +177,7 @@ def self.deduct_promotional_credits(id, params, env=nil, headers={}) Request.send('post', uri_path("customers",id.to_s,"deduct_promotional_credits"), params, env, headers,nil, false, jsonKeys, options) end + # @deprecated This method is deprecated and will be removed in a future version. def self.set_promotional_credits(id, params, env=nil, headers={}) jsonKeys = { } diff --git a/lib/chargebee/models/hosted_page.rb b/lib/chargebee/models/hosted_page.rb index 5523df1..326392b 100644 --- a/lib/chargebee/models/hosted_page.rb +++ b/lib/chargebee/models/hosted_page.rb @@ -72,6 +72,7 @@ def self.checkout_existing_for_items(params, env=nil, headers={}) Request.send('post', uri_path("hosted_pages","checkout_existing_for_items"), params, env, headers,nil, false, jsonKeys, options) end + # @deprecated This method is deprecated and will be removed in a future version. def self.update_card(params, env=nil, headers={}) jsonKeys = { } diff --git a/lib/chargebee/models/invoice.rb b/lib/chargebee/models/invoice.rb index e56d7de..0bb5104 100644 --- a/lib/chargebee/models/invoice.rb +++ b/lib/chargebee/models/invoice.rb @@ -46,7 +46,7 @@ class ReferenceTransaction < Model end class DunningAttempt < Model - attr_accessor :attempt, :transaction_id, :dunning_type, :created_at, :txn_status, :txn_amount + attr_accessor :attempt, :transaction_id, :dunning_type, :created_at, :txn_status, :txn_amount, :retry_engine end class AppliedCredit < Model @@ -145,6 +145,7 @@ def self.charge_addon(params, env=nil, headers={}) Request.send('post', uri_path("invoices","charge_addon"), params, env, headers,nil, false, jsonKeys, options) end + # @deprecated This method is deprecated and will be removed in a future version. def self.create_for_charge_item(params, env=nil, headers={}) jsonKeys = { } @@ -233,6 +234,7 @@ def self.list(params={}, env=nil, headers={}) Request.send_list_request('get', uri_path("invoices"), params, env, headers,nil, false, jsonKeys, options) end + # @deprecated This method is deprecated and will be removed in a future version. def self.invoices_for_customer(id, params={}, env=nil, headers={}) jsonKeys = { } @@ -240,6 +242,7 @@ def self.invoices_for_customer(id, params={}, env=nil, headers={}) Request.send('get', uri_path("customers",id.to_s,"invoices"), params, env, headers,nil, false, jsonKeys, options) end + # @deprecated This method is deprecated and will be removed in a future version. def self.invoices_for_subscription(id, params={}, env=nil, headers={}) jsonKeys = { } diff --git a/lib/chargebee/models/item_price.rb b/lib/chargebee/models/item_price.rb index afddccf..15eac94 100644 --- a/lib/chargebee/models/item_price.rb +++ b/lib/chargebee/models/item_price.rb @@ -85,6 +85,7 @@ def self.find_applicable_item_prices(id, params={}, env=nil, headers={}) Request.send('get', uri_path("item_prices",id.to_s,"applicable_item_prices"), params, env, headers,nil, false, jsonKeys, options) end + # @deprecated This method is deprecated and will be removed in a future version. def self.move_item_price(id, params, env=nil, headers={}) jsonKeys = { } diff --git a/lib/chargebee/models/order.rb b/lib/chargebee/models/order.rb index def6a52..0602f4d 100644 --- a/lib/chargebee/models/order.rb +++ b/lib/chargebee/models/order.rb @@ -128,6 +128,7 @@ def self.list(params={}, env=nil, headers={}) Request.send_list_request('get', uri_path("orders"), params, env, headers,nil, false, jsonKeys, options) end + # @deprecated This method is deprecated and will be removed in a future version. def self.orders_for_invoice(id, params={}, env=nil, headers={}) jsonKeys = { } diff --git a/lib/chargebee/models/pricing_page_session.rb b/lib/chargebee/models/pricing_page_session.rb index cc5fee0..29c304f 100644 --- a/lib/chargebee/models/pricing_page_session.rb +++ b/lib/chargebee/models/pricing_page_session.rb @@ -8,6 +8,7 @@ class PricingPageSession < Model def self.create_for_new_subscription(params, env=nil, headers={}) jsonKeys = { + :custom => 0, } options = { :isIdempotent => true @@ -17,6 +18,7 @@ def self.create_for_new_subscription(params, env=nil, headers={}) def self.create_for_existing_subscription(params, env=nil, headers={}) jsonKeys = { + :custom => 0, } options = { :isIdempotent => true diff --git a/lib/chargebee/models/subscription.rb b/lib/chargebee/models/subscription.rb index 66ba332..f81985a 100644 --- a/lib/chargebee/models/subscription.rb +++ b/lib/chargebee/models/subscription.rb @@ -113,6 +113,7 @@ def self.list(params={}, env=nil, headers={}) Request.send_list_request('get', uri_path("subscriptions"), params, env, headers,nil, false, jsonKeys, options) end + # @deprecated This method is deprecated and will be removed in a future version. def self.subscriptions_for_customer(id, params={}, env=nil, headers={}) jsonKeys = { } diff --git a/lib/chargebee/models/transaction.rb b/lib/chargebee/models/transaction.rb index 8155d4a..26c976d 100644 --- a/lib/chargebee/models/transaction.rb +++ b/lib/chargebee/models/transaction.rb @@ -85,6 +85,7 @@ def self.list(params={}, env=nil, headers={}) Request.send_list_request('get', uri_path("transactions"), params, env, headers,nil, false, jsonKeys, options) end + # @deprecated This method is deprecated and will be removed in a future version. def self.transactions_for_customer(id, params={}, env=nil, headers={}) jsonKeys = { } @@ -92,6 +93,7 @@ def self.transactions_for_customer(id, params={}, env=nil, headers={}) Request.send('get', uri_path("customers",id.to_s,"transactions"), params, env, headers,nil, false, jsonKeys, options) end + # @deprecated This method is deprecated and will be removed in a future version. def self.transactions_for_subscription(id, params={}, env=nil, headers={}) jsonKeys = { }