From 396c989a99de80c157b04e42674f86c3b045445a Mon Sep 17 00:00:00 2001 From: cb-alish Date: Wed, 26 Nov 2025 10:31:36 +0530 Subject: [PATCH] Releasing v2.65.0 --- CHANGELOG.md | 40 +++++++++++++++++++++++ Gemfile.lock | 2 +- chargebee.gemspec | 6 ++-- lib/chargebee.rb | 4 ++- lib/chargebee/models/credit_note.rb | 10 +++--- lib/chargebee/models/einvoice.rb | 10 ++++++ lib/chargebee/models/gift.rb | 1 + lib/chargebee/models/invoice.rb | 14 ++++---- lib/chargebee/models/item_price.rb | 9 +++++ lib/chargebee/models/quoted_delta_ramp.rb | 14 ++++++++ lib/chargebee/result.rb | 11 +++++++ 11 files changed, 105 insertions(+), 16 deletions(-) create mode 100644 lib/chargebee/models/einvoice.rb create mode 100644 lib/chargebee/models/quoted_delta_ramp.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index 7789701..1ae1d0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,43 @@ +### v2.65.0 (2025-11-26) +* * * + +### New Resources: +* Einvoice has been added. +* QuotedDeltaRamp has been added. + +### New Attributes: +* line_items_next_offset has been added to CreditNote. +* line_items_next_offset has been added to Invoice. +* credit_lines has been added to SalesOrder. +* billable_unit_price has been added to SalesOrder#LineItem. +* billable_quantity has been added to SalesOrder#LineItem. +* billable_amount has been added to SalesOrder#LineItem. + +### New Endpoint: +* move has been added to ItemPrice. + +### New Parameters: +* line_items_limit has been added to CreditNote#RetrieveRequest. +* line_items_offset has been added to CreditNote#RetrieveRequest. +* line_items_limit has been added to Invoice#RetrieveRequest. +* line_items_offset has been added to Invoice#RetrieveRequest. +* item_tiers has been added to Estimate#GiftSubscriptionForItemsRequest. +* unit_price has been added to Estimate#SubscriptionItems#GiftSubscriptionForItemsRequest. +* unit_price_in_decimal has been added to Estimate#SubscriptionItems#GiftSubscriptionForItemsRequest. +* item_tiers has been added to Gift#CreateForItemsRequest. +* meta_data has been added to Gift#CreateForItemsRequest. +* unit_price has been added to Gift#SubscriptionItems#CreateForItemsRequest. +* unit_price_in_decimal has been added to Gift#SubscriptionItems#CreateForItemsRequest. +* item_tiers has been added to HostedPage#CheckoutGiftForItemsRequest. +* unit_price has been added to HostedPage#SubscriptionItems#CheckoutGiftForItemsRequest. +* unit_price_in_decimal has been added to HostedPage#SubscriptionItems#CheckoutGiftForItemsRequest. +* auto_select_local_currency has been added to PricingPageSession#CreateForNewSubscriptionRequest. + +### New Enums: +* EZIDEBIT has been added to GatewayEnum. +* BUSINESS_RULE has been added to EntityTypeEnum. +* RULESET has been added to EntityTypeEnum. + ### v2.64.0 (2025-11-10) * * * diff --git a/Gemfile.lock b/Gemfile.lock index ae975cb..9f9accd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - chargebee (2.64.0) + chargebee (2.65.0) cgi (>= 0.1.0, < 1.0.0) GEM diff --git a/chargebee.gemspec b/chargebee.gemspec index ec41e17..3767f61 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.64.0' - s.date = '2025-11-10' + s.version = '2.65.0' + s.date = '2025-11-26' s.summary = "Ruby client for Chargebee API." s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com." s.metadata = { @@ -66,6 +66,7 @@ Gem::Specification.new do |s| lib/chargebee/models/differential_price.rb lib/chargebee/models/discount.rb lib/chargebee/models/download.rb + lib/chargebee/models/einvoice.rb lib/chargebee/models/entitlement.rb lib/chargebee/models/entitlement_override.rb lib/chargebee/models/estimate.rb @@ -117,6 +118,7 @@ Gem::Specification.new do |s| lib/chargebee/models/quote.rb lib/chargebee/models/quote_line_group.rb lib/chargebee/models/quoted_charge.rb + lib/chargebee/models/quoted_delta_ramp.rb lib/chargebee/models/quoted_ramp.rb lib/chargebee/models/quoted_subscription.rb lib/chargebee/models/ramp.rb diff --git a/lib/chargebee.rb b/lib/chargebee.rb index d632490..d4f90cf 100644 --- a/lib/chargebee.rb +++ b/lib/chargebee.rb @@ -94,11 +94,13 @@ require File.dirname(__FILE__) + '/chargebee/models/personalized_offer' require File.dirname(__FILE__) + '/chargebee/models/offer_event' require File.dirname(__FILE__) + '/chargebee/models/offer_fulfillment' +require File.dirname(__FILE__) + '/chargebee/models/quoted_delta_ramp' +require File.dirname(__FILE__) + '/chargebee/models/einvoice' module ChargeBee - VERSION = '2.64.0' + VERSION = '2.65.0' @@default_env = nil @@verify_ca_certs = true diff --git a/lib/chargebee/models/credit_note.rb b/lib/chargebee/models/credit_note.rb index 9fab57a..daf1e02 100644 --- a/lib/chargebee/models/credit_note.rb +++ b/lib/chargebee/models/credit_note.rb @@ -60,11 +60,11 @@ class SiteDetailsAtCreation < Model attr_accessor :id, :customer_id, :subscription_id, :reference_invoice_id, :type, :reason_code, :status, :vat_number, :date, :price_type, :currency_code, :total, :amount_allocated, :amount_refunded, :amount_available, :refunded_at, :voided_at, :generated_at, :resource_version, :updated_at, - :channel, :sub_total, :sub_total_in_local_currency, :total_in_local_currency, :local_currency_code, - :round_off_amount, :fractional_correction, :line_items, :line_item_tiers, :line_item_discounts, - :line_item_taxes, :line_item_addresses, :discounts, :taxes, :tax_origin, :linked_refunds, :allocations, - :deleted, :tax_category, :local_currency_exchange_rate, :create_reason_code, :vat_number_prefix, - :business_entity_id, :shipping_address, :billing_address, :einvoice, :site_details_at_creation + :channel, :line_items_next_offset, :sub_total, :sub_total_in_local_currency, :total_in_local_currency, + :local_currency_code, :round_off_amount, :fractional_correction, :line_items, :line_item_tiers, + :line_item_discounts, :line_item_taxes, :line_item_addresses, :discounts, :taxes, :tax_origin, + :linked_refunds, :allocations, :deleted, :tax_category, :local_currency_exchange_rate, :create_reason_code, + :vat_number_prefix, :business_entity_id, :shipping_address, :billing_address, :einvoice, :site_details_at_creation # OPERATIONS #----------- diff --git a/lib/chargebee/models/einvoice.rb b/lib/chargebee/models/einvoice.rb new file mode 100644 index 0000000..3be9ae2 --- /dev/null +++ b/lib/chargebee/models/einvoice.rb @@ -0,0 +1,10 @@ +module ChargeBee + class Einvoice < Model + + attr_accessor :id, :reference_number, :status, :message + + # OPERATIONS + #----------- + + end # ~Einvoice +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/gift.rb b/lib/chargebee/models/gift.rb index 4350d23..5aa3f0d 100644 --- a/lib/chargebee/models/gift.rb +++ b/lib/chargebee/models/gift.rb @@ -31,6 +31,7 @@ def self.create(params, env=nil, headers={}) def self.create_for_items(params, env=nil, headers={}) jsonKeys = { + :meta_data => 0, :additional_information => 1, } options = { diff --git a/lib/chargebee/models/invoice.rb b/lib/chargebee/models/invoice.rb index 9eb503a..e56d7de 100644 --- a/lib/chargebee/models/invoice.rb +++ b/lib/chargebee/models/invoice.rb @@ -94,13 +94,13 @@ class SiteDetailsAtCreation < Model :currency_code, :local_currency_code, :tax, :sub_total, :sub_total_in_local_currency, :total, :total_in_local_currency, :amount_due, :amount_adjusted, :amount_paid, :paid_at, :write_off_amount, :credits_applied, :dunning_status, :next_retry_at, :voided_at, :resource_version, :updated_at, - :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, :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 + :line_items_next_offset, :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, :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 #----------- diff --git a/lib/chargebee/models/item_price.rb b/lib/chargebee/models/item_price.rb index cb76f2d..afddccf 100644 --- a/lib/chargebee/models/item_price.rb +++ b/lib/chargebee/models/item_price.rb @@ -85,5 +85,14 @@ 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 + def self.move_item_price(id, params, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("item_prices",id.to_s,"move"), params, env, headers,nil, false, jsonKeys, options) + end + end # ~ItemPrice end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/quoted_delta_ramp.rb b/lib/chargebee/models/quoted_delta_ramp.rb new file mode 100644 index 0000000..4d7e859 --- /dev/null +++ b/lib/chargebee/models/quoted_delta_ramp.rb @@ -0,0 +1,14 @@ +module ChargeBee + class QuotedDeltaRamp < Model + + class LineItem < Model + attr_accessor :item_level_discount_per_billing_cycle_in_decimal + end + + attr_accessor :line_items + + # OPERATIONS + #----------- + + end # ~QuotedDeltaRamp +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/result.rb b/lib/chargebee/result.rb index e325fbe..e57c4fd 100644 --- a/lib/chargebee/result.rb +++ b/lib/chargebee/result.rb @@ -121,6 +121,11 @@ def payment_schedule() return payment_schedule; end + def einvoice() + einvoice = get(:einvoice, Einvoice); + return einvoice; + end + def tax_withheld() tax_withheld = get(:tax_withheld, TaxWithheld); return tax_withheld; @@ -207,6 +212,12 @@ def quoted_ramp() return quoted_ramp; end + def quoted_delta_ramp() + quoted_delta_ramp = get(:quoted_delta_ramp, QuotedDeltaRamp, + {:line_items => QuotedDeltaRamp::LineItem}); + return quoted_delta_ramp; + end + def billing_configuration() billing_configuration = get(:billing_configuration, BillingConfiguration, {:billing_dates => BillingConfiguration::BillingDate});