From 445fb1062e2a8d5dc973c053edb796a1c5bf1750 Mon Sep 17 00:00:00 2001 From: chargebee-ci Date: Wed, 12 Aug 2026 11:47:27 +0000 Subject: [PATCH] Releasing v2.79.0 --- CHANGELOG.md | 51 +++++++++++++++++++ Gemfile.lock | 2 +- VERSION | 2 +- chargebee.gemspec | 7 ++- lib/chargebee.rb | 5 +- lib/chargebee/models/credit_note.rb | 9 ++++ lib/chargebee/models/export.rb | 9 ++++ .../models/gateway_payment_method_token.rb | 11 ++++ .../omnichannel_subscription_item_metric.rb | 12 +++++ lib/chargebee/models/payment_source.rb | 9 +++- lib/chargebee/models/quoted_ramp.rb | 2 +- .../models/vaulted_payment_method.rb | 17 +++++++ lib/chargebee/result.rb | 15 ++++++ 13 files changed, 144 insertions(+), 7 deletions(-) create mode 100644 lib/chargebee/models/gateway_payment_method_token.rb create mode 100644 lib/chargebee/models/omnichannel_subscription_item_metric.rb create mode 100644 lib/chargebee/models/vaulted_payment_method.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index 63af661..b365b6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,54 @@ +### v2.79.0 (2026-08-12) +* * * +### New Resources: +- [`GatewayPaymentMethodToken`](https://apidocs.chargebee.com/docs/api/gateway_payment_method_tokens) has been added. +- [`OmnichannelSubscriptionItemMetric`](https://apidocs.chargebee.com/docs/api/omnichannel_subscription_item_metrics) has been added. +- [`VaultedPaymentMethod`](https://apidocs.chargebee.com/docs/api/vaulted_payment_methods) has been added. + + +### New Actions: +- [`update_credit_note_details`](https://apidocs.chargebee.com/docs/api/credit_notes/update-credit-note-details) has been added to [`CreditNote`](https://apidocs.chargebee.com/docs/api/credit_notes). +- [`export_subscription_ramps`](https://apidocs.chargebee.com/docs/api/exports/export-subscription-ramps) has been added to [`Export`](https://apidocs.chargebee.com/docs/api/exports). +- [`list_gateway_payment_method_tokens_for_a_payment_source`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source) has been added to [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources). + + +### New Attributes: +- [`vault_token`](https://apidocs.chargebee.com/docs/api/payment_sources/payment-source-object#vault_token) has been added to [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources). + + +### New Parameters: +- [`updated_at.between`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#updated_at_between) has been added as query parameter to [`list_omnichannel_subscriptions`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions) in [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions). +- [`updated_at.on`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#updated_at_on) has been added as query parameter to [`list_omnichannel_subscriptions`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions) in [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions). +- [`purchased_at.between`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#purchased_at_between) has been added as query parameter to [`list_omnichannel_subscriptions`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions) in [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions). +- [`purchased_at.on`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#purchased_at_on) has been added as query parameter to [`list_omnichannel_subscriptions`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions) in [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions). +- [`limit`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source#limit) has been added as query parameter to [`list_gateway_payment_method_tokens_for_a_payment_source`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources). +- [`offset`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source#offset) has been added as query parameter to [`list_gateway_payment_method_tokens_for_a_payment_source`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources). +- [`include_deleted`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source#include_deleted) has been added as query parameter to [`list_gateway_payment_method_tokens_for_a_payment_source`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources). +- [`comment`](https://apidocs.chargebee.com/docs/api/credit_notes/update-credit-note-details#comment) has been added as request body parameter to [`update_credit_note_details`](https://apidocs.chargebee.com/docs/api/credit_notes/update-credit-note-details) in [`CreditNote`](https://apidocs.chargebee.com/docs/api/credit_notes). +- [`ramp`](https://apidocs.chargebee.com/docs/api/exports/export-subscription-ramps#ramp) has been added as request body parameter to [`export_subscription_ramps`](https://apidocs.chargebee.com/docs/api/exports/export-subscription-ramps) in [`Export`](https://apidocs.chargebee.com/docs/api/exports). +- [`export_type`](https://apidocs.chargebee.com/docs/api/exports/export-subscription-ramps#export_type) has been added as request body parameter to [`export_subscription_ramps`](https://apidocs.chargebee.com/docs/api/exports/export-subscription-ramps) in [`Export`](https://apidocs.chargebee.com/docs/api/exports). +- [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-a-new-subscription-items#subscription_items_description) has been added as request body parameter to [`create_a_quote_for_a_new_subscription_items`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-a-new-subscription-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes). +- [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/quotes/edit-update-subscription-quote-for-items#subscription_items_description) has been added as request body parameter to [`edit_update_subscription_quote_for_items`](https://apidocs.chargebee.com/docs/api/quotes/edit-update-subscription-quote-for-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes). +- [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/quotes/edit-create-subscription-quote-for-items#subscription_items_description) has been added as request body parameter to [`edit_create_subscription_quote_for_items`](https://apidocs.chargebee.com/docs/api/quotes/edit-create-subscription-quote-for-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes). +- [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-update-subscription-items#subscription_items_description) has been added as request body parameter to [`create_a_quote_for_update_subscription_items`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-update-subscription-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes). + + +### New Events: +- [`vault_token_updated`](https://apidocs.chargebee.com/docs/api/events/webhook/vault_token_updated) has been added. +- [`vault_token_deleted`](https://apidocs.chargebee.com/docs/api/events/webhook/vault_token_deleted) has been added. +- [`omnichannel_subscription_item_mrr_updated`](https://apidocs.chargebee.com/docs/api/events/webhook/omnichannel_subscription_item_mrr_updated) has been added. +- [`vault_token_created`](https://apidocs.chargebee.com/docs/api/events/webhook/vault_token_created) has been added. + + +### New Enums: +- `omnichannel_subscription_item_metric` has been added as a new value enum `EntityType`. +- `omnichannel_subscription_item_mrr_updated`, `vault_token_created`, `vault_token_updated`, and `vault_token_deleted` have been added as new values enum `EventType`. +- `chargebee`, `chargebee_payments`, `adyen`, `stripe`, `wepay`, `braintree`, `authorize_net`, `paypal_pro`, `pin`, `eway`, `eway_rapid`, `worldpay`, `balanced_payments`, `beanstream`, `bluepay`, `elavon`, `first_data_global`, `hdfc`, `migs`, `nmi`, `ogone`, `paymill`, `paypal_payflow_pro`, `sage_pay`, `tco`, `wirecard`, `amazon_payments`, `paypal_express_checkout`, `gocardless`, `orbital`, `moneris_us`, `moneris`, `bluesnap`, `cybersource`, `vantiv`, `checkout_com`, `paypal`, `ingenico_direct`, `exact`, `mollie`, `quickbooks`, `razorpay`, `global_payments`, `bank_of_america`, `ecentric`, `metrics_global`, `windcave`, `pay_com`, `ebanx`, `dlocal`, `nuvei`, `solidgate`, `paystack`, `jp_morgan`, `deutsche_bank`, `ezidebit`, `twikey`, `tempus`, `moyasar`, `payway`, and `not_applicable` have been added as new values enum `GatewayName`. +- `active`, `inactive`, and `pending_verification` have been added as new values to enum attribute [`status`](https://apidocs.chargebee.com/docs/api/gateway_payment_method_tokens/gateway-payment-method-token-object#status) in [`GatewayPaymentMethodToken`](https://apidocs.chargebee.com/docs/api/gateway_payment_method_tokens). +- `payment_method_helper`, `card_components`, `checkout`, `collect_now`, `portal`, and `payment_components` have been added as new values to enum attribute [`payment_intent_metadata.source`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#payment_intent_metadata_source) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). + + + ### v2.78.0 (2026-07-30) * * * ### New Resources: diff --git a/Gemfile.lock b/Gemfile.lock index f7752ad..f2d8b7d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - chargebee (2.78.0) + chargebee (2.79.0) cgi (>= 0.1.0, < 1.0.0) GEM diff --git a/VERSION b/VERSION index 63221e3..45cc88f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.78.0 +2.79.0 diff --git a/chargebee.gemspec b/chargebee.gemspec index 3adb72f..18c783a 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.78.0' - s.date = '2026-07-30' + s.version = '2.79.0' + s.date = '2026-08-12' s.summary = "Ruby client for Chargebee API." s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com." s.metadata = { @@ -84,6 +84,7 @@ Gem::Specification.new do |s| lib/chargebee/models/feature.rb lib/chargebee/models/filter_condition.rb lib/chargebee/models/gateway_error_detail.rb + lib/chargebee/models/gateway_payment_method_token.rb lib/chargebee/models/gift.rb lib/chargebee/models/grant_block.rb lib/chargebee/models/hierarchy.rb @@ -113,6 +114,7 @@ Gem::Specification.new do |s| lib/chargebee/models/omnichannel_one_time_order_item.rb lib/chargebee/models/omnichannel_subscription.rb lib/chargebee/models/omnichannel_subscription_item.rb + lib/chargebee/models/omnichannel_subscription_item_metric.rb lib/chargebee/models/omnichannel_subscription_item_offer.rb lib/chargebee/models/omnichannel_subscription_item_scheduled_change.rb lib/chargebee/models/omnichannel_transaction.rb @@ -160,6 +162,7 @@ Gem::Specification.new do |s| lib/chargebee/models/usage_event.rb lib/chargebee/models/usage_file.rb lib/chargebee/models/usage_summary.rb + lib/chargebee/models/vaulted_payment_method.rb lib/chargebee/models/virtual_bank_account.rb lib/chargebee/models/webhook_endpoint.rb lib/chargebee/native_request.rb diff --git a/lib/chargebee.rb b/lib/chargebee.rb index 504af93..832f362 100644 --- a/lib/chargebee.rb +++ b/lib/chargebee.rb @@ -57,6 +57,7 @@ require File.dirname(__FILE__) + '/chargebee/models/feature' require File.dirname(__FILE__) + '/chargebee/models/filter_condition' require File.dirname(__FILE__) + '/chargebee/models/gateway_error_detail' +require File.dirname(__FILE__) + '/chargebee/models/gateway_payment_method_token' require File.dirname(__FILE__) + '/chargebee/models/gift' require File.dirname(__FILE__) + '/chargebee/models/grant_block' require File.dirname(__FILE__) + '/chargebee/models/hierarchy' @@ -85,6 +86,7 @@ require File.dirname(__FILE__) + '/chargebee/models/omnichannel_one_time_order_item' require File.dirname(__FILE__) + '/chargebee/models/omnichannel_subscription' require File.dirname(__FILE__) + '/chargebee/models/omnichannel_subscription_item' +require File.dirname(__FILE__) + '/chargebee/models/omnichannel_subscription_item_metric' require File.dirname(__FILE__) + '/chargebee/models/omnichannel_subscription_item_offer' require File.dirname(__FILE__) + '/chargebee/models/omnichannel_subscription_item_scheduled_change' require File.dirname(__FILE__) + '/chargebee/models/omnichannel_transaction' @@ -131,12 +133,13 @@ require File.dirname(__FILE__) + '/chargebee/models/usage_event' require File.dirname(__FILE__) + '/chargebee/models/usage_file' require File.dirname(__FILE__) + '/chargebee/models/usage_summary' +require File.dirname(__FILE__) + '/chargebee/models/vaulted_payment_method' require File.dirname(__FILE__) + '/chargebee/models/virtual_bank_account' require File.dirname(__FILE__) + '/chargebee/models/webhook_endpoint' module ChargeBee - VERSION = '2.78.0' + VERSION = '2.79.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 3cea6a6..63ad421 100644 --- a/lib/chargebee/models/credit_note.rb +++ b/lib/chargebee/models/credit_note.rb @@ -157,6 +157,15 @@ def self.delete(id, params={}, env=nil, headers={}) Request.send('post', uri_path("credit_notes",id.to_s,"delete"), params, env, headers,nil, false, jsonKeys, options, "creditNote", "delete") end + def self.update(id, params={}, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("credit_notes",id.to_s,"update"), params, env, headers,nil, false, jsonKeys, options, "creditNote", "update") + end + def self.remove_tax_withheld_refund(id, params, env=nil, headers={}) jsonKeys = { } diff --git a/lib/chargebee/models/export.rb b/lib/chargebee/models/export.rb index af2ea09..f7e02ea 100644 --- a/lib/chargebee/models/export.rb +++ b/lib/chargebee/models/export.rb @@ -196,5 +196,14 @@ def self.price_variants(params={}, env=nil, headers={}) Request.send('post', uri_path("exports","price_variants"), params, env, headers,nil, false, jsonKeys, options, "export", "priceVariants") end + def self.ramps(params={}, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("exports","ramps"), params, env, headers,nil, false, jsonKeys, options, "export", "ramps") + end + end # ~Export end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/gateway_payment_method_token.rb b/lib/chargebee/models/gateway_payment_method_token.rb new file mode 100644 index 0000000..3c18631 --- /dev/null +++ b/lib/chargebee/models/gateway_payment_method_token.rb @@ -0,0 +1,11 @@ +module ChargeBee + class GatewayPaymentMethodToken < Model + + attr_accessor :id, :gateway_account_id, :gateway_name, :gateway_customer_id, :gateway_token, + :status, :created_at, :updated_at + + # OPERATIONS + #----------- + + end # ~GatewayPaymentMethodToken +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/omnichannel_subscription_item_metric.rb b/lib/chargebee/models/omnichannel_subscription_item_metric.rb new file mode 100644 index 0000000..84b36f4 --- /dev/null +++ b/lib/chargebee/models/omnichannel_subscription_item_metric.rb @@ -0,0 +1,12 @@ +module ChargeBee + class OmnichannelSubscriptionItemMetric < Model + + attr_accessor :customer_id, :omnichannel_subscription_id, :omnichannel_subscription_item_id, + :item_id_at_source, :mrr_currency, :mrr_units, :mrr_nanos, :effective_from, :calculated_at, + :created_at, :resource_version + + # OPERATIONS + #----------- + + end # ~OmnichannelSubscriptionItemMetric +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/payment_source.rb b/lib/chargebee/models/payment_source.rb index 0f6d455..df7efbb 100644 --- a/lib/chargebee/models/payment_source.rb +++ b/lib/chargebee/models/payment_source.rb @@ -44,7 +44,7 @@ class Mandate < Model attr_accessor :id, :resource_version, :updated_at, :created_at, :customer_id, :type, :reference_id, :status, :gateway, :gateway_account_id, :ip_address, :issuing_country, :card, :bank_account, :boleto, :billing_address, :amazon_payment, :upi, :paypal, :venmo, :klarna_pay_now, :mandates, - :deleted, :business_entity_id + :vault_token, :deleted, :business_entity_id # OPERATIONS #----------- @@ -148,6 +148,13 @@ def self.verify_bank_account(id, params, env=nil, headers={}) Request.send('post', uri_path("payment_sources",id.to_s,"verify_bank_account"), params, env, headers,nil, false, jsonKeys, options, "paymentSource", "verifyBankAccount") end + def self.list_gateway_tokens_for_payment_source(id, params={}, env=nil, headers={}) + jsonKeys = { + } + options = {} + Request.send('get', uri_path("payment_sources",id.to_s,"gateway_payment_method_tokens"), params, env, headers,nil, false, jsonKeys, options, "paymentSource", "listGatewayTokensForPaymentSource") + end + def self.retrieve(id, env=nil, headers={}) jsonKeys = { } diff --git a/lib/chargebee/models/quoted_ramp.rb b/lib/chargebee/models/quoted_ramp.rb index 54aaa7a..bb6448e 100644 --- a/lib/chargebee/models/quoted_ramp.rb +++ b/lib/chargebee/models/quoted_ramp.rb @@ -2,7 +2,7 @@ module ChargeBee class QuotedRamp < Model class LineItem < Model - attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :start_date, :end_date, :ramp_tier_id, :discount_per_billing_cycle, :discount_per_billing_cycle_in_decimal, :item_level_discount_per_billing_cycle, :item_level_discount_per_billing_cycle_in_decimal, :amount_per_billing_cycle, :amount_per_billing_cycle_in_decimal, :net_amount_per_billing_cycle, :net_amount_per_billing_cycle_in_decimal + attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :start_date, :end_date, :ramp_tier_id, :discount_per_billing_cycle, :discount_per_billing_cycle_in_decimal, :item_level_discount_per_billing_cycle, :item_level_discount_per_billing_cycle_in_decimal, :amount_per_billing_cycle, :amount_per_billing_cycle_in_decimal, :net_amount_per_billing_cycle, :net_amount_per_billing_cycle_in_decimal, :description end class Discount < Model diff --git a/lib/chargebee/models/vaulted_payment_method.rb b/lib/chargebee/models/vaulted_payment_method.rb new file mode 100644 index 0000000..ee46b8d --- /dev/null +++ b/lib/chargebee/models/vaulted_payment_method.rb @@ -0,0 +1,17 @@ +module ChargeBee + class VaultedPaymentMethod < Model + + attr_accessor :id, :customer_id, :credit_card_id, :created_at, :modified_at + + # OPERATIONS + #----------- + + def self.retrieve(id, env=nil, headers={}) + jsonKeys = { + } + options = {} + Request.send('get', uri_path("vaulted_payment_methods",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "vaultedPaymentMethod", "retrieve") + end + + end # ~VaultedPaymentMethod +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/result.rb b/lib/chargebee/result.rb index 1b029b7..3c31ceb 100644 --- a/lib/chargebee/result.rb +++ b/lib/chargebee/result.rb @@ -98,11 +98,21 @@ def payment_source() return payment_source; end + def gateway_payment_method_token() + gateway_payment_method_token = get(:gateway_payment_method_token, GatewayPaymentMethodToken); + return gateway_payment_method_token; + end + def third_party_payment_method() third_party_payment_method = get(:third_party_payment_method, ThirdPartyPaymentMethod); return third_party_payment_method; end + def vaulted_payment_method() + vaulted_payment_method = get(:vaulted_payment_method, VaultedPaymentMethod); + return vaulted_payment_method; + end + def virtual_bank_account() virtual_bank_account = get(:virtual_bank_account, VirtualBankAccount); return virtual_bank_account; @@ -499,6 +509,11 @@ def omnichannel_subscription_item_scheduled_change() return omnichannel_subscription_item_scheduled_change; end + def omnichannel_subscription_item_metric() + omnichannel_subscription_item_metric = get(:omnichannel_subscription_item_metric, OmnichannelSubscriptionItemMetric); + return omnichannel_subscription_item_metric; + end + def omnichannel_subscription() omnichannel_subscription = get(:omnichannel_subscription, OmnichannelSubscription, {}, {:omnichannel_subscription_items => OmnichannelSubscriptionItem, :initial_purchase_transaction => OmnichannelTransaction});