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 @@
### 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)
* * *

Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
chargebee (2.65.0)
chargebee (2.66.0)
cgi (>= 0.1.0, < 1.0.0)

GEM
Expand Down
4 changes: 2 additions & 2 deletions chargebee.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion lib/chargebee.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@

module ChargeBee

VERSION = '2.65.0'
VERSION = '2.66.0'

@@default_env = nil
@@verify_ca_certs = true
Expand Down
1 change: 1 addition & 0 deletions lib/chargebee/models/coupon_code.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
}
Expand Down
1 change: 1 addition & 0 deletions lib/chargebee/models/credit_note.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
}
Expand Down
3 changes: 3 additions & 0 deletions lib/chargebee/models/customer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
}
Expand All @@ -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 = {
}
Expand All @@ -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 = {
}
Expand Down
1 change: 1 addition & 0 deletions lib/chargebee/models/hosted_page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
}
Expand Down
5 changes: 4 additions & 1 deletion lib/chargebee/models/invoice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = {
}
Expand Down Expand Up @@ -233,13 +234,15 @@ 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 = {
}
options = {}
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 = {
}
Expand Down
1 change: 1 addition & 0 deletions lib/chargebee/models/item_price.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
}
Expand Down
1 change: 1 addition & 0 deletions lib/chargebee/models/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
}
Expand Down
2 changes: 2 additions & 0 deletions lib/chargebee/models/pricing_page_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class PricingPageSession < Model

def self.create_for_new_subscription(params, env=nil, headers={})
jsonKeys = {
:custom => 0,
}
options = {
:isIdempotent => true
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/chargebee/models/subscription.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
}
Expand Down
2 changes: 2 additions & 0 deletions lib/chargebee/models/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,15 @@ 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 = {
}
options = {}
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 = {
}
Expand Down