Skip to content

Commit 3c83e18

Browse files
authored
Merge pull request #108 from chargebee/release/sdk-ruby/v2.65.0
Releasing v2.65.0
2 parents f785564 + 396c989 commit 3c83e18

11 files changed

Lines changed: 105 additions & 16 deletions

File tree

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
### v2.65.0 (2025-11-26)
2+
* * *
3+
4+
### New Resources:
5+
* Einvoice has been added.
6+
* QuotedDeltaRamp has been added.
7+
8+
### New Attributes:
9+
* line_items_next_offset has been added to CreditNote.
10+
* line_items_next_offset has been added to Invoice.
11+
* credit_lines has been added to SalesOrder.
12+
* billable_unit_price has been added to SalesOrder#LineItem.
13+
* billable_quantity has been added to SalesOrder#LineItem.
14+
* billable_amount has been added to SalesOrder#LineItem.
15+
16+
### New Endpoint:
17+
* move has been added to ItemPrice.
18+
19+
### New Parameters:
20+
* line_items_limit has been added to CreditNote#RetrieveRequest.
21+
* line_items_offset has been added to CreditNote#RetrieveRequest.
22+
* line_items_limit has been added to Invoice#RetrieveRequest.
23+
* line_items_offset has been added to Invoice#RetrieveRequest.
24+
* item_tiers has been added to Estimate#GiftSubscriptionForItemsRequest.
25+
* unit_price has been added to Estimate#SubscriptionItems#GiftSubscriptionForItemsRequest.
26+
* unit_price_in_decimal has been added to Estimate#SubscriptionItems#GiftSubscriptionForItemsRequest.
27+
* item_tiers has been added to Gift#CreateForItemsRequest.
28+
* meta_data has been added to Gift#CreateForItemsRequest.
29+
* unit_price has been added to Gift#SubscriptionItems#CreateForItemsRequest.
30+
* unit_price_in_decimal has been added to Gift#SubscriptionItems#CreateForItemsRequest.
31+
* item_tiers has been added to HostedPage#CheckoutGiftForItemsRequest.
32+
* unit_price has been added to HostedPage#SubscriptionItems#CheckoutGiftForItemsRequest.
33+
* unit_price_in_decimal has been added to HostedPage#SubscriptionItems#CheckoutGiftForItemsRequest.
34+
* auto_select_local_currency has been added to PricingPageSession#CreateForNewSubscriptionRequest.
35+
36+
### New Enums:
37+
* EZIDEBIT has been added to GatewayEnum.
38+
* BUSINESS_RULE has been added to EntityTypeEnum.
39+
* RULESET has been added to EntityTypeEnum.
40+
141
### v2.64.0 (2025-11-10)
242
* * *
343

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.64.0)
4+
chargebee (2.65.0)
55
cgi (>= 0.1.0, < 1.0.0)
66

77
GEM

chargebee.gemspec

Lines changed: 4 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.64.0'
8-
s.date = '2025-11-10'
7+
s.version = '2.65.0'
8+
s.date = '2025-11-26'
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 = {
@@ -66,6 +66,7 @@ Gem::Specification.new do |s|
6666
lib/chargebee/models/differential_price.rb
6767
lib/chargebee/models/discount.rb
6868
lib/chargebee/models/download.rb
69+
lib/chargebee/models/einvoice.rb
6970
lib/chargebee/models/entitlement.rb
7071
lib/chargebee/models/entitlement_override.rb
7172
lib/chargebee/models/estimate.rb
@@ -117,6 +118,7 @@ Gem::Specification.new do |s|
117118
lib/chargebee/models/quote.rb
118119
lib/chargebee/models/quote_line_group.rb
119120
lib/chargebee/models/quoted_charge.rb
121+
lib/chargebee/models/quoted_delta_ramp.rb
120122
lib/chargebee/models/quoted_ramp.rb
121123
lib/chargebee/models/quoted_subscription.rb
122124
lib/chargebee/models/ramp.rb

lib/chargebee.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,13 @@
9494
require File.dirname(__FILE__) + '/chargebee/models/personalized_offer'
9595
require File.dirname(__FILE__) + '/chargebee/models/offer_event'
9696
require File.dirname(__FILE__) + '/chargebee/models/offer_fulfillment'
97+
require File.dirname(__FILE__) + '/chargebee/models/quoted_delta_ramp'
98+
require File.dirname(__FILE__) + '/chargebee/models/einvoice'
9799

98100

99101
module ChargeBee
100102

101-
VERSION = '2.64.0'
103+
VERSION = '2.65.0'
102104

103105
@@default_env = nil
104106
@@verify_ca_certs = true

lib/chargebee/models/credit_note.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ class SiteDetailsAtCreation < Model
6060
attr_accessor :id, :customer_id, :subscription_id, :reference_invoice_id, :type, :reason_code,
6161
:status, :vat_number, :date, :price_type, :currency_code, :total, :amount_allocated, :amount_refunded,
6262
:amount_available, :refunded_at, :voided_at, :generated_at, :resource_version, :updated_at,
63-
:channel, :sub_total, :sub_total_in_local_currency, :total_in_local_currency, :local_currency_code,
64-
:round_off_amount, :fractional_correction, :line_items, :line_item_tiers, :line_item_discounts,
65-
:line_item_taxes, :line_item_addresses, :discounts, :taxes, :tax_origin, :linked_refunds, :allocations,
66-
:deleted, :tax_category, :local_currency_exchange_rate, :create_reason_code, :vat_number_prefix,
67-
:business_entity_id, :shipping_address, :billing_address, :einvoice, :site_details_at_creation
63+
:channel, :line_items_next_offset, :sub_total, :sub_total_in_local_currency, :total_in_local_currency,
64+
:local_currency_code, :round_off_amount, :fractional_correction, :line_items, :line_item_tiers,
65+
:line_item_discounts, :line_item_taxes, :line_item_addresses, :discounts, :taxes, :tax_origin,
66+
:linked_refunds, :allocations, :deleted, :tax_category, :local_currency_exchange_rate, :create_reason_code,
67+
:vat_number_prefix, :business_entity_id, :shipping_address, :billing_address, :einvoice, :site_details_at_creation
6868

6969
# OPERATIONS
7070
#-----------

lib/chargebee/models/einvoice.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module ChargeBee
2+
class Einvoice < Model
3+
4+
attr_accessor :id, :reference_number, :status, :message
5+
6+
# OPERATIONS
7+
#-----------
8+
9+
end # ~Einvoice
10+
end # ~ChargeBee

lib/chargebee/models/gift.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def self.create(params, env=nil, headers={})
3131

3232
def self.create_for_items(params, env=nil, headers={})
3333
jsonKeys = {
34+
:meta_data => 0,
3435
:additional_information => 1,
3536
}
3637
options = {

lib/chargebee/models/invoice.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ class SiteDetailsAtCreation < Model
9494
:currency_code, :local_currency_code, :tax, :sub_total, :sub_total_in_local_currency, :total,
9595
:total_in_local_currency, :amount_due, :amount_adjusted, :amount_paid, :paid_at, :write_off_amount,
9696
:credits_applied, :dunning_status, :next_retry_at, :voided_at, :resource_version, :updated_at,
97-
:first_invoice, :new_sales_amount, :has_advance_charges, :term_finalized, :is_gifted, :generated_at,
98-
:expected_payment_date, :amount_to_collect, :round_off_amount, :line_items, :line_item_tiers,
99-
:line_item_discounts, :line_item_taxes, :line_item_credits, :line_item_addresses, :discounts,
100-
:taxes, :tax_origin, :linked_payments, :reference_transactions, :dunning_attempts, :applied_credits,
101-
:adjustment_credit_notes, :issued_credit_notes, :linked_orders, :notes, :shipping_address, :billing_address,
102-
:statement_descriptor, :einvoice, :void_reason_code, :deleted, :tax_category, :vat_number_prefix,
103-
:channel, :business_entity_id, :site_details_at_creation
97+
:line_items_next_offset, :first_invoice, :new_sales_amount, :has_advance_charges, :term_finalized,
98+
:is_gifted, :generated_at, :expected_payment_date, :amount_to_collect, :round_off_amount, :line_items,
99+
:line_item_tiers, :line_item_discounts, :line_item_taxes, :line_item_credits, :line_item_addresses,
100+
:discounts, :taxes, :tax_origin, :linked_payments, :reference_transactions, :dunning_attempts,
101+
:applied_credits, :adjustment_credit_notes, :issued_credit_notes, :linked_orders, :notes, :shipping_address,
102+
:billing_address, :statement_descriptor, :einvoice, :void_reason_code, :deleted, :tax_category,
103+
:vat_number_prefix, :channel, :business_entity_id, :site_details_at_creation
104104

105105
# OPERATIONS
106106
#-----------

lib/chargebee/models/item_price.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,14 @@ def self.find_applicable_item_prices(id, params={}, env=nil, headers={})
8585
Request.send('get', uri_path("item_prices",id.to_s,"applicable_item_prices"), params, env, headers,nil, false, jsonKeys, options)
8686
end
8787

88+
def self.move_item_price(id, params, env=nil, headers={})
89+
jsonKeys = {
90+
}
91+
options = {
92+
:isIdempotent => true
93+
}
94+
Request.send('post', uri_path("item_prices",id.to_s,"move"), params, env, headers,nil, false, jsonKeys, options)
95+
end
96+
8897
end # ~ItemPrice
8998
end # ~ChargeBee
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module ChargeBee
2+
class QuotedDeltaRamp < Model
3+
4+
class LineItem < Model
5+
attr_accessor :item_level_discount_per_billing_cycle_in_decimal
6+
end
7+
8+
attr_accessor :line_items
9+
10+
# OPERATIONS
11+
#-----------
12+
13+
end # ~QuotedDeltaRamp
14+
end # ~ChargeBee

0 commit comments

Comments
 (0)