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
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
### v2.63.0 (2025-10-28)
* * *

### New Attributes:
* reference_transactions has been added to Invoice.
* payment_attempts[] has been added to PaymentIntent.
* checkout_details has been added to PaymentIntent#PaymentAttempt.
* line_item_id has been added to CreditNoteEstimate#Discount.
* line_item_id has been added to CreditNote#Discount.
* line_item_id has been added to InvoiceEstimate#Discount.
* line_item_id has been added to Invoice#Discount.
* line_item_id has been added to InvoiceEstimate#Discount.
* line_item_id has been added to Quote#Discount.
* line_item_id has been added to QuoteLineGroup#Discount.

### Modified Attributes:
* omnichannel_subscription_item_offers has been made optional attribute from required attribute.

### New Input Parameters:
* discount[line_item_id] has been added to CreditNote#ImportCreditNoteRequest.
* discount[line_item_id] has been added to CreditNote#ImportInvoiceRequest.

### New Enums:
* OMNICHANNEL_TRANSACTION_CREATED has been added to EventTypeEnum.
* DEUTSCHE_BANK has been added to Gateway.

### v2.62.0 ( 2025-09-23)
* * *

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.62.0)
chargebee (2.63.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.62.0'
s.date = '2025-09-23'
s.version = '2.63.0'
s.date = '2025-10-28'
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 @@ -98,7 +98,7 @@

module ChargeBee

VERSION = '2.62.0'
VERSION = '2.63.0'

@@default_env = nil
@@verify_ca_certs = true
Expand Down
2 changes: 1 addition & 1 deletion lib/chargebee/models/credit_note.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class LineItemAddress < Model
end

class Discount < Model
attr_accessor :amount, :description, :entity_type, :discount_type, :entity_id, :coupon_set_code
attr_accessor :amount, :description, :line_item_id, :entity_type, :discount_type, :entity_id, :coupon_set_code
end

class Tax < Model
Expand Down
2 changes: 1 addition & 1 deletion lib/chargebee/models/credit_note_estimate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class LineItemTax < Model
end

class Discount < Model
attr_accessor :amount, :description, :entity_type, :discount_type, :entity_id, :coupon_set_code
attr_accessor :amount, :description, :line_item_id, :entity_type, :discount_type, :entity_id, :coupon_set_code
end

class Tax < Model
Expand Down
14 changes: 9 additions & 5 deletions lib/chargebee/models/invoice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class LineItemAddress < Model
end

class Discount < Model
attr_accessor :amount, :description, :entity_type, :discount_type, :entity_id, :coupon_set_code
attr_accessor :amount, :description, :line_item_id, :entity_type, :discount_type, :entity_id, :coupon_set_code
end

class Tax < Model
Expand All @@ -41,6 +41,10 @@ class LinkedPayment < Model
attr_accessor :txn_id, :applied_amount, :applied_at, :txn_status, :txn_date, :txn_amount
end

class ReferenceTransaction < Model
attr_accessor :applied_amount, :applied_at, :txn_id, :txn_status, :txn_date, :txn_amount, :txn_type, :amount_capturable, :authorization_reason
end

class DunningAttempt < Model
attr_accessor :attempt, :transaction_id, :dunning_type, :created_at, :txn_status, :txn_amount
end
Expand Down Expand Up @@ -93,10 +97,10 @@ class SiteDetailsAtCreation < Model
:first_invoice, :new_sales_amount, :has_advance_charges, :term_finalized, :is_gifted, :generated_at,
:expected_payment_date, :amount_to_collect, :round_off_amount, :line_items, :line_item_tiers,
:line_item_discounts, :line_item_taxes, :line_item_credits, :line_item_addresses, :discounts,
:taxes, :tax_origin, :linked_payments, :dunning_attempts, :applied_credits, :adjustment_credit_notes,
:issued_credit_notes, :linked_orders, :notes, :shipping_address, :billing_address, :statement_descriptor,
:einvoice, :void_reason_code, :deleted, :tax_category, :vat_number_prefix, :channel, :business_entity_id,
:site_details_at_creation
:taxes, :tax_origin, :linked_payments, :reference_transactions, :dunning_attempts, :applied_credits,
:adjustment_credit_notes, :issued_credit_notes, :linked_orders, :notes, :shipping_address, :billing_address,
:statement_descriptor, :einvoice, :void_reason_code, :deleted, :tax_category, :vat_number_prefix,
:channel, :business_entity_id, :site_details_at_creation

# OPERATIONS
#-----------
Expand Down
2 changes: 1 addition & 1 deletion lib/chargebee/models/invoice_estimate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class LineItemAddress < Model
end

class Discount < Model
attr_accessor :amount, :description, :entity_type, :discount_type, :entity_id, :coupon_set_code
attr_accessor :amount, :description, :line_item_id, :entity_type, :discount_type, :entity_id, :coupon_set_code
end

class Tax < Model
Expand Down
8 changes: 6 additions & 2 deletions lib/chargebee/models/payment_intent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ module ChargeBee
class PaymentIntent < Model

class PaymentAttempt < Model
attr_accessor :id, :status, :payment_method_type, :id_at_gateway, :error_code, :error_text, :created_at, :modified_at, :error_detail
attr_accessor :id, :status, :payment_method_type, :id_at_gateway, :error_code, :error_text, :checkout_details, :created_at, :modified_at, :error_detail
end

class PaymentAttempt < Model
attr_accessor :id, :status, :payment_method_type, :id_at_gateway, :error_code, :error_text, :checkout_details, :created_at, :modified_at, :error_detail
end

attr_accessor :id, :status, :currency_code, :amount, :gateway_account_id, :expires_at, :reference_id,
:payment_method_type, :success_url, :failure_url, :created_at, :modified_at, :resource_version,
:updated_at, :customer_id, :gateway, :active_payment_attempt, :business_entity_id
:updated_at, :customer_id, :gateway, :active_payment_attempt, :payment_attempts, :business_entity_id

# OPERATIONS
#-----------
Expand Down
2 changes: 1 addition & 1 deletion lib/chargebee/models/quote.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class LineItemTax < Model
end

class Discount < Model
attr_accessor :amount, :description, :entity_type, :discount_type, :entity_id, :coupon_set_code
attr_accessor :amount, :description, :line_item_id, :entity_type, :discount_type, :entity_id, :coupon_set_code
end

class Tax < Model
Expand Down
2 changes: 1 addition & 1 deletion lib/chargebee/models/quote_line_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LineItemTax < Model
end

class Discount < Model
attr_accessor :amount, :description, :entity_type, :discount_type, :entity_id, :coupon_set_code
attr_accessor :amount, :description, :line_item_id, :entity_type, :discount_type, :entity_id, :coupon_set_code
end

class Tax < Model
Expand Down
6 changes: 3 additions & 3 deletions lib/chargebee/result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def promotional_credit()

def invoice()
invoice = get(:invoice, Invoice,
{:line_items => Invoice::LineItem, :line_item_tiers => Invoice::LineItemTier, :line_item_discounts => Invoice::LineItemDiscount, :line_item_taxes => Invoice::LineItemTax, :line_item_credits => Invoice::LineItemCredit, :line_item_addresses => Invoice::LineItemAddress, :discounts => Invoice::Discount, :taxes => Invoice::Tax, :tax_origin => Invoice::TaxOrigin, :linked_payments => Invoice::LinkedPayment, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress, :statement_descriptor => Invoice::StatementDescriptor, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation});
{:line_items => Invoice::LineItem, :line_item_tiers => Invoice::LineItemTier, :line_item_discounts => Invoice::LineItemDiscount, :line_item_taxes => Invoice::LineItemTax, :line_item_credits => Invoice::LineItemCredit, :line_item_addresses => Invoice::LineItemAddress, :discounts => Invoice::Discount, :taxes => Invoice::Tax, :tax_origin => Invoice::TaxOrigin, :linked_payments => Invoice::LinkedPayment, :reference_transactions => Invoice::ReferenceTransaction, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress, :statement_descriptor => Invoice::StatementDescriptor, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation});
return invoice;
end

Expand Down Expand Up @@ -302,7 +302,7 @@ def export()

def payment_intent()
payment_intent = get(:payment_intent, PaymentIntent,
{:payment_attempt => PaymentIntent::PaymentAttempt});
{:payment_attempt => PaymentIntent::PaymentAttempt, :payment_attempts => PaymentIntent::PaymentAttempt});
return payment_intent;
end

Expand Down Expand Up @@ -582,7 +582,7 @@ def hierarchies()

def invoices()
invoices = get_list(:invoices, Invoice,
{:line_items => Invoice::LineItem, :line_item_tiers => Invoice::LineItemTier, :line_item_discounts => Invoice::LineItemDiscount, :line_item_taxes => Invoice::LineItemTax, :line_item_credits => Invoice::LineItemCredit, :line_item_addresses => Invoice::LineItemAddress, :discounts => Invoice::Discount, :taxes => Invoice::Tax, :tax_origin => Invoice::TaxOrigin, :linked_payments => Invoice::LinkedPayment, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress, :statement_descriptor => Invoice::StatementDescriptor, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation});
{:line_items => Invoice::LineItem, :line_item_tiers => Invoice::LineItemTier, :line_item_discounts => Invoice::LineItemDiscount, :line_item_taxes => Invoice::LineItemTax, :line_item_credits => Invoice::LineItemCredit, :line_item_addresses => Invoice::LineItemAddress, :discounts => Invoice::Discount, :taxes => Invoice::Tax, :tax_origin => Invoice::TaxOrigin, :linked_payments => Invoice::LinkedPayment, :reference_transactions => Invoice::ReferenceTransaction, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress, :statement_descriptor => Invoice::StatementDescriptor, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation});
return invoices;
end

Expand Down