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
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
* * *

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

GEM
Expand Down
6 changes: 4 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.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 = {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion lib/chargebee.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions lib/chargebee/models/credit_note.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
#-----------
Expand Down
10 changes: 10 additions & 0 deletions lib/chargebee/models/einvoice.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module ChargeBee
class Einvoice < Model

attr_accessor :id, :reference_number, :status, :message

# OPERATIONS
#-----------

end # ~Einvoice
end # ~ChargeBee
1 change: 1 addition & 0 deletions lib/chargebee/models/gift.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
14 changes: 7 additions & 7 deletions lib/chargebee/models/invoice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
#-----------
Expand Down
9 changes: 9 additions & 0 deletions lib/chargebee/models/item_price.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions lib/chargebee/models/quoted_delta_ramp.rb
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions lib/chargebee/result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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});
Expand Down