Skip to content

Commit bba2db4

Browse files
authored
Merge pull request chargebee#102 from chargebee/release/sdk-ruby/v2.61.0
Releasing v2.61.0
2 parents 7f553ee + 1c59198 commit bba2db4

30 files changed

+281
-89
lines changed

CHANGELOG.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,59 @@
1+
### v2.61.0 ( 2025-09-23)
2+
* * *
3+
4+
### New Resources:
5+
* PersonalizedOffer has been added.
6+
* OfferFulfillment has been added.
7+
* OfferEvent has been added.
8+
* OmnichannelSubscriptionItemOffer has been added.
9+
10+
### New Attributes:
11+
* business_entity_id has been added to Customer#Balance.
12+
* processor_advice_code has been added to GatewayErrorDetail.
13+
* processor_advice_code has been added to Transaction#GatewayErrorDetail.
14+
* omnichannel_subscription_item_offers has been added to OmnichannelSubscriptionItem.
15+
* linked_omnichannel_subscriptions has been added to OmnichannelTransaction.
16+
* linked_omnichannel_one_time_orders has been added to OmnichannelTransaction.
17+
* contract_term has been added to Ramp.
18+
* charge_once has been added to Ramp#ItemsToAdd.
19+
* charge_on_option has been added to Ramp#ItemsToAdd.
20+
* charge_on_event has been added to Ramp#ItemsToAdd.
21+
* charge_once has been added to Ramp#ItemsToUpdate.
22+
* charge_on_option has been added to Ramp#ItemsToUpdate.
23+
* charge_on_event has been added to Ramp#ItemsToUpdate.
24+
* error_file_path has been added to UsageFile.
25+
* error_file_url has been added to UsageFile.
26+
27+
### New Endpoint:
28+
* move has been added to OmnichannelSubscription.
29+
30+
### New Parameters:
31+
* offline_payment_method has been added to Estimate#CreateSubItemEstimateRequest.
32+
* offline_payment_method has been added to Estimate#CreateSubItemForCustomerEstimateRequest.
33+
* offline_payment_method has been added to HostedPage#CheckoutNewForItemsRequest.
34+
* offline_payment_method has been added to Quote#SubscriptionCreateSubItemsForCustomerQuoteRequest.
35+
* offline_payment_method has been added to Quote#SubscriptionEditCreateSubCustomerQuoteForItemsRequest.
36+
* contract_term has been added to Ramp#CreateForSubscriptionRequest.
37+
* items_to_add has been added to Ramp#CreateForSubscriptionRequest.
38+
* items_to_update has been added to Ramp#CreateForSubscriptionRequest.
39+
* contract_term has been added to Ramp#UpdateRequest.
40+
* items_to_add has been added to Ramp#UpdateRequest.
41+
* items_to_update has been added to Ramp#UpdateRequest.
42+
43+
### New Enums:
44+
* DUNNING_UPDATED has been added EventType.
45+
* OMNICHANNEL_SUBSCRIPTION_MOVED_IN has been added to EventType.
46+
47+
48+
### Bug Fixes:
49+
* currency list action has been marked as ListRequest.
50+
* index has been removed from CreditNote#ShippingAddress.
51+
* index has been removed from Invoice#ShippingAddress
52+
* index has been removed from Order#ShippingAddress.
53+
* index has been removed from Quote#ShippingAddress.
54+
* index has been removed from SubscriptionEstimate#ShippingAddress.
55+
* index has been removed from Subscription#ShippingAddress.
56+
157
### v2.60.0 (2025-08-25)
258
* * *
359

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
chargebee (2.60.0)
4+
chargebee (2.61.0)
55
cgi (>= 0.1.0, < 1.0.0)
66

77
GEM

chargebee.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
44
s.rubygems_version = '1.3.5'
55
s.required_ruby_version = '>= 1.9.3'
66
s.name = 'chargebee'
7-
s.version = '2.60.0'
8-
s.date = '2025-08-25'
7+
s.version = '2.61.0'
8+
s.date = '2025-09-23'
99
s.summary = "Ruby client for Chargebee API."
1010
s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
1111
s.metadata = {

lib/chargebee.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,14 @@
9191
require File.dirname(__FILE__) + '/chargebee/models/webhook_endpoint'
9292
require File.dirname(__FILE__) + '/chargebee/models/omnichannel_one_time_order'
9393
require File.dirname(__FILE__) + '/chargebee/models/omnichannel_one_time_order_item'
94+
require File.dirname(__FILE__) + '/chargebee/models/personalized_offer'
95+
require File.dirname(__FILE__) + '/chargebee/models/offer_event'
96+
require File.dirname(__FILE__) + '/chargebee/models/offer_fulfillment'
97+
9498

9599
module ChargeBee
96100

97-
VERSION = '2.60.0'
101+
VERSION = '2.61.0'
98102

99103
@@default_env = nil
100104
@@verify_ca_certs = true

lib/chargebee/models/credit_note.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Allocation < Model
4242
end
4343

4444
class ShippingAddress < Model
45-
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status, :index
45+
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
4646
end
4747

4848
class BillingAddress < Model

lib/chargebee/models/credit_note_estimate.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,29 @@ class LineItem < Model
55
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :metered, :is_percentage_pricing, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
66
end
77

8-
class Discount < Model
9-
attr_accessor :amount, :description, :entity_type, :discount_type, :entity_id, :coupon_set_code
8+
class LineItemTier < Model
9+
attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount, :starting_unit_in_decimal, :ending_unit_in_decimal, :quantity_used_in_decimal, :unit_amount_in_decimal, :pricing_type, :package_size
1010
end
1111

12-
class Tax < Model
13-
attr_accessor :name, :amount, :description
12+
class LineItemDiscount < Model
13+
attr_accessor :line_item_id, :discount_type, :coupon_id, :entity_id, :discount_amount
1414
end
1515

1616
class LineItemTax < Model
1717
attr_accessor :line_item_id, :tax_name, :tax_rate, :date_to, :date_from, :prorated_taxable_amount, :is_partial_tax_applied, :is_non_compliance_tax, :taxable_amount, :tax_amount, :tax_juris_type, :tax_juris_name, :tax_juris_code, :tax_amount_in_local_currency, :local_currency_code
1818
end
1919

20-
class LineItemDiscount < Model
21-
attr_accessor :line_item_id, :discount_type, :coupon_id, :entity_id, :discount_amount
20+
class Discount < Model
21+
attr_accessor :amount, :description, :entity_type, :discount_type, :entity_id, :coupon_set_code
2222
end
2323

24-
class LineItemTier < Model
25-
attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount, :starting_unit_in_decimal, :ending_unit_in_decimal, :quantity_used_in_decimal, :unit_amount_in_decimal, :pricing_type, :package_size
24+
class Tax < Model
25+
attr_accessor :name, :amount, :description
2626
end
2727

2828
attr_accessor :reference_invoice_id, :type, :price_type, :currency_code, :sub_total, :total,
29-
:amount_allocated, :amount_available, :line_items, :discounts, :taxes, :line_item_taxes, :line_item_discounts,
30-
:line_item_tiers, :round_off_amount, :customer_id
29+
:amount_allocated, :amount_available, :line_items, :line_item_tiers, :line_item_discounts, :line_item_taxes,
30+
:discounts, :taxes, :round_off_amount, :customer_id
3131

3232
# OPERATIONS
3333
#-----------

lib/chargebee/models/currency.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ class Currency < Model
66
# OPERATIONS
77
#-----------
88

9-
def self.list(env=nil, headers={})
9+
def self.list(params={}, env=nil, headers={})
1010
jsonKeys = {
1111
}
1212
options = {}
13-
Request.send_list_request('get', uri_path("currencies","list"), {}, env, headers,nil, false, jsonKeys, options)
13+
Request.send_list_request('get', uri_path("currencies","list"), params, env, headers,nil, false, jsonKeys, options)
1414
end
1515

1616
def self.retrieve(id, env=nil, headers={})

lib/chargebee/models/customer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class PaymentMethod < Model
1818
end
1919

2020
class Balance < Model
21-
attr_accessor :promotional_credits, :excess_payments, :refundable_credits, :unbilled_charges, :currency_code, :balance_currency_code
21+
attr_accessor :promotional_credits, :excess_payments, :refundable_credits, :unbilled_charges, :currency_code, :balance_currency_code, :business_entity_id
2222
end
2323

2424
class EntityIdentifier < Model

lib/chargebee/models/gateway_error_detail.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class GatewayErrorDetail < Model
33

44
attr_accessor :request_id, :error_category, :error_code, :error_message, :decline_code, :decline_message,
55
:network_error_code, :network_error_message, :error_field, :recommendation_code, :recommendation_message,
6-
:processor_error_code, :processor_error_message, :error_cause_id
6+
:processor_error_code, :processor_error_message, :error_cause_id, :processor_advice_code
77

88
# OPERATIONS
99
#-----------

lib/chargebee/models/invoice.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Note < Model
6666
end
6767

6868
class ShippingAddress < Model
69-
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status, :index
69+
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
7070
end
7171

7272
class BillingAddress < Model

0 commit comments

Comments
 (0)