diff --git a/CHANGELOG.md b/CHANGELOG.md index 156a02b..2c00390 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,57 @@ +### v2.70.0 (2026-03-27) +* * * +### New Resources: +- [`Alert`](https://apidocs.chargebee.com/docs/api/alerts) has been added. +- [`AlertStatus`](https://apidocs.chargebee.com/docs/api/alert_statuses) has been added. +- [`CpqQuoteSignature`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures) has been added. + + +### New Actions: +- [`update_a_quote_signature_status`](https://apidocs.chargebee.com/docs/api/quotes/update-a-quote-signature-status) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes). +- [`update_a_quote_signature`](https://apidocs.chargebee.com/docs/api/quotes/update-a-quote-signature) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes). +- [`retrieve_a_quote_signature_signed_pdf`](https://apidocs.chargebee.com/docs/api/quotes/retrieve-a-quote-signature-signed-pdf) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes). +- [`retrieve_a_quote_signature`](https://apidocs.chargebee.com/docs/api/quotes/retrieve-a-quote-signature) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes). +- [`create_a_quote_signature`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-signature) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes). +- [`refresh_a_quote_signature_link`](https://apidocs.chargebee.com/docs/api/quotes/refresh-a-quote-signature-link) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes). + + +### New Attributes: +- [`reference_id`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#reference_id) has been added to [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`provider_references`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#provider_references) has been added to [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`created_at`](https://apidocs.chargebee.com/docs/api/unbilled_charges/unbilled-charge-object#created_at) has been added to [`UnbilledCharge`](https://apidocs.chargebee.com/docs/api/unbilled_charges). + + +### New Parameters: +- [`include_usage_charges`](https://apidocs.chargebee.com/docs/api/estimates/upcoming-invoices-estimate#include_usage_charges) has been added as query parameter to [`upcoming_invoices_estimate`](https://apidocs.chargebee.com/docs/api/estimates/upcoming-invoices-estimate) in [`Estimate`](https://apidocs.chargebee.com/docs/api/estimates). +- [`business_entity_id`](https://apidocs.chargebee.com/docs/api/hosted_pages/manage-payment-sources#business_entity_id) has been added as request body parameter to [`manage_payment_sources`](https://apidocs.chargebee.com/docs/api/hosted_pages/manage-payment-sources) in [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages). +- [`cpq_quote_signature`](https://apidocs.chargebee.com/docs/api/quotes/update-a-quote-signature-status#cpq_quote_signature) has been added as request body parameter to [`update_a_quote_signature_status`](https://apidocs.chargebee.com/docs/api/quotes/update-a-quote-signature-status) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes). +- [`gateway_account_id`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts/create-a-virtual-bank-account#gateway_account_id) has been added as request body parameter to [`create_a_virtual_bank_account`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts/create-a-virtual-bank-account) in [`VirtualBankAccount`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts). +- [`gateway_account_id`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts/create-a-virtual-bank-account-using-permanent-token#gateway_account_id) has been added as request body parameter to [`create_a_virtual_bank_account_using_permanent_token`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts/create-a-virtual-bank-account-using-permanent-token) in [`VirtualBankAccount`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts). + + +### New Events: +- [`alert_status_changed`](https://apidocs.chargebee.com/docs/api/events/webhook/alert_status_changed) has been added. + + +### New Enums: +- `alert_status` has been added as a new value enum `EntityType`. +- `alert_status_changed` has been added as a new value enum `EventType`. +- `pix` has been added as a new value enum `PaymentMethod`. +- `pix` has been added as a new value enum `PaymentMethodType`. +- `pix` and `usage_exceeded` have been added as new values enum `Type`. +- `enabled` and `disabled` have been added as new values to enum attribute [`status`](https://apidocs.chargebee.com/docs/api/alerts/alert-object#status) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts). +- `global` and `subscription` have been added as new values to enum attribute [`scope`](https://apidocs.chargebee.com/docs/api/alerts/alert-object#scope) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts). +- `draft`, `active`, `signed`, `expired`, `cancelled`, and `declined` have been added as new values to enum attribute [`status`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures/cpq-quote-signature-object#status) in [`CpqQuoteSignature`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures). +- `esign_and_pay`, `esign`, and `pay` have been added as new values to enum attribute [`customer_acceptance_method`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures/cpq-quote-signature-object#customer_acceptance_method) in [`CpqQuoteSignature`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures). +- `consolidated` and `detailed` have been added as new values to enum attribute [`quote_type`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures/cpq-quote-signature-object#quote_type) in [`CpqQuoteSignature`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures). +- `pix` has been added as a new value to enum attribute [`payment_method_type`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#payment_method_type) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). +- `pix` has been added as a new value to enum attribute [`active_payment_attempt.payment_method_type`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#active_payment_attempt_payment_method_type) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). +- `pix` has been added as a new value to enum request body parameter `payment_method_type` in [`update_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/update-a-payment-intent) of [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). +- `pix` has been added as a new value to enum request body parameter `payment_method_type` in [`create_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/create-a-payment-intent) of [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). +- `expired`, `declined`, `draft`, `active`, `signed`, and `cancelled` have been added as new values to enum request body parameter `cpq_quote_signature.status` in [`update_a_quote_signature_status`](https://apidocs.chargebee.com/docs/api/quotes/update-a-quote-signature-status) of [`Quote`](https://apidocs.chargebee.com/docs/api/quotes). + + + ### v2.69.0 (2026-03-02) * * * ### New Resources: diff --git a/Gemfile.lock b/Gemfile.lock index a8f7d31..ca75e31 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - chargebee (2.69.0) + chargebee (2.70.0) cgi (>= 0.1.0, < 1.0.0) GEM diff --git a/Makefile b/Makefile index 671cbcd..43b4e65 100644 --- a/Makefile +++ b/Makefile @@ -99,6 +99,8 @@ format: @echo "Formatter not configured." update-manifest: + @echo "Staging new model files..." + @git add lib/chargebee/models/ lib/chargebee.rb lib/chargebee/result.rb 2>/dev/null || true @echo "Updating file manifest in $(GEMSPEC_FILE)..." @$(RUBY) -e \ 'files = `git ls-files`.split("\n").sort \ diff --git a/VERSION b/VERSION index a740b92..38a7743 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.69.0 +2.70.0 diff --git a/chargebee.gemspec b/chargebee.gemspec index c39affb..fbf0132 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.69.0' - s.date = '2026-03-02' + s.version = '2.70.0' + s.date = '2026-03-27' s.summary = "Ruby client for Chargebee API." s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com." s.metadata = { @@ -45,6 +45,8 @@ Gem::Specification.new do |s| lib/chargebee/models/addon.rb lib/chargebee/models/address.rb lib/chargebee/models/advance_invoice_schedule.rb + lib/chargebee/models/alert.rb + lib/chargebee/models/alert_status.rb lib/chargebee/models/attached_item.rb lib/chargebee/models/attribute.rb lib/chargebee/models/billing_configuration.rb @@ -59,6 +61,7 @@ Gem::Specification.new do |s| lib/chargebee/models/coupon.rb lib/chargebee/models/coupon_code.rb lib/chargebee/models/coupon_set.rb + lib/chargebee/models/cpq_quote_signature.rb lib/chargebee/models/credit_note.rb lib/chargebee/models/credit_note_estimate.rb lib/chargebee/models/csv_tax_rule.rb @@ -140,8 +143,10 @@ Gem::Specification.new do |s| lib/chargebee/models/transaction.rb lib/chargebee/models/unbilled_charge.rb lib/chargebee/models/usage.rb + lib/chargebee/models/usage_charge.rb lib/chargebee/models/usage_event.rb lib/chargebee/models/usage_file.rb + lib/chargebee/models/usage_summary.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 514d662..e71ae30 100644 --- a/lib/chargebee.rb +++ b/lib/chargebee.rb @@ -100,7 +100,7 @@ module ChargeBee - VERSION = '2.69.0' + VERSION = '2.70.0' @@default_env = nil @@verify_ca_certs = true diff --git a/lib/chargebee/models/alert.rb b/lib/chargebee/models/alert.rb new file mode 100644 index 0000000..f8944c0 --- /dev/null +++ b/lib/chargebee/models/alert.rb @@ -0,0 +1,11 @@ +module ChargeBee + class Alert < Model + + attr_accessor :id, :type, :name, :description, :metered_feature_id, :subscription_id, :status, + :alarm_triggered_at, :scope, :meta, :created_at, :updated_at + + # OPERATIONS + #----------- + + end # ~Alert +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/alert_status.rb b/lib/chargebee/models/alert_status.rb new file mode 100644 index 0000000..69e1d01 --- /dev/null +++ b/lib/chargebee/models/alert_status.rb @@ -0,0 +1,10 @@ +module ChargeBee + class AlertStatus < Model + + attr_accessor :alert_id, :subscription_id, :alert_status, :alarm_triggered_at + + # OPERATIONS + #----------- + + end # ~AlertStatus +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/cpq_quote_signature.rb b/lib/chargebee/models/cpq_quote_signature.rb new file mode 100644 index 0000000..6b6f903 --- /dev/null +++ b/lib/chargebee/models/cpq_quote_signature.rb @@ -0,0 +1,11 @@ +module ChargeBee + class CpqQuoteSignature < Model + + attr_accessor :id, :status, :name, :document_name, :customer_acceptance_method, :quote_type, + :expires_at, :timezone, :provider_request_id, :provider_document_id, :created_at, :modified_at + + # OPERATIONS + #----------- + + end # ~CpqQuoteSignature +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/credit_note.rb b/lib/chargebee/models/credit_note.rb index 7cd9895..74e441d 100644 --- a/lib/chargebee/models/credit_note.rb +++ b/lib/chargebee/models/credit_note.rb @@ -50,7 +50,7 @@ class BillingAddress < Model end class Einvoice < Model - attr_accessor :id, :reference_number, :status, :message + attr_accessor :id, :reference_id, :reference_number, :status, :message, :provider_references end class SiteDetailsAtCreation < Model diff --git a/lib/chargebee/models/einvoice.rb b/lib/chargebee/models/einvoice.rb index 3be9ae2..6c996c3 100644 --- a/lib/chargebee/models/einvoice.rb +++ b/lib/chargebee/models/einvoice.rb @@ -1,7 +1,7 @@ module ChargeBee class Einvoice < Model - attr_accessor :id, :reference_number, :status, :message + attr_accessor :id, :reference_id, :reference_number, :status, :message, :provider_references # OPERATIONS #----------- diff --git a/lib/chargebee/models/estimate.rb b/lib/chargebee/models/estimate.rb index 8b86074..fa16121 100644 --- a/lib/chargebee/models/estimate.rb +++ b/lib/chargebee/models/estimate.rb @@ -73,11 +73,11 @@ def self.regenerate_invoice_estimate(id, params={}, env=nil, headers={}) Request.send('post', uri_path("subscriptions",id.to_s,"regenerate_invoice_estimate"), params, env, headers,nil, false, jsonKeys, options) end - def self.upcoming_invoices_estimate(id, env=nil, headers={}) + def self.upcoming_invoices_estimate(id, params={}, env=nil, headers={}) jsonKeys = { } options = {} - Request.send('get', uri_path("customers",id.to_s,"upcoming_invoices_estimate"), {}, env, headers,nil, false, jsonKeys, options) + Request.send('get', uri_path("customers",id.to_s,"upcoming_invoices_estimate"), params, env, headers,nil, false, jsonKeys, options) end def self.change_term_end(id, params, env=nil, headers={}) diff --git a/lib/chargebee/models/invoice.rb b/lib/chargebee/models/invoice.rb index 0bb5104..46474a6 100644 --- a/lib/chargebee/models/invoice.rb +++ b/lib/chargebee/models/invoice.rb @@ -82,7 +82,7 @@ class StatementDescriptor < Model end class Einvoice < Model - attr_accessor :id, :reference_number, :status, :message + attr_accessor :id, :reference_id, :reference_number, :status, :message, :provider_references end class SiteDetailsAtCreation < Model diff --git a/lib/chargebee/models/quote.rb b/lib/chargebee/models/quote.rb index 4b82d37..cc95563 100644 --- a/lib/chargebee/models/quote.rb +++ b/lib/chargebee/models/quote.rb @@ -218,5 +218,63 @@ def self.pdf(id, params={}, env=nil, headers={}) Request.send('post', uri_path("quotes",id.to_s,"pdf"), params, env, headers,nil, false, jsonKeys, options) end + # @deprecated This method is deprecated and will be removed in a future version. + def self.retrieve_signature(id, env=nil, headers={}) + jsonKeys = { + } + options = {} + Request.send('get', uri_path("quotes",id.to_s,"retrieve_signature"), {}, env, headers,nil, false, jsonKeys, options) + end + + # @deprecated This method is deprecated and will be removed in a future version. + def self.retrieve_signed_pdf(id, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("quotes",id.to_s,"retrieve_signed_pdf"), {}, env, headers,nil, false, jsonKeys, options) + end + + # @deprecated This method is deprecated and will be removed in a future version. + def self.create_signature(id, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("quotes",id.to_s,"create_signature"), {}, env, headers,nil, false, jsonKeys, options) + end + + # @deprecated This method is deprecated and will be removed in a future version. + def self.update_signature(id, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("quotes",id.to_s,"update_signature"), {}, env, headers,nil, false, jsonKeys, options) + end + + # @deprecated This method is deprecated and will be removed in a future version. + def self.update_signature_status(id, params={}, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("quotes",id.to_s,"update_signature_status"), params, env, headers,nil, false, jsonKeys, options) + end + + # @deprecated This method is deprecated and will be removed in a future version. + def self.refresh_signature_link(id, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("quotes",id.to_s,"refresh_signature_link"), {}, env, headers,nil, false, jsonKeys, options) + end + end # ~Quote end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/unbilled_charge.rb b/lib/chargebee/models/unbilled_charge.rb index 07ec58a..a5b7916 100644 --- a/lib/chargebee/models/unbilled_charge.rb +++ b/lib/chargebee/models/unbilled_charge.rb @@ -7,8 +7,8 @@ class Tier < Model attr_accessor :id, :customer_id, :subscription_id, :date_from, :date_to, :unit_amount, :pricing_model, :quantity, :amount, :currency_code, :discount_amount, :description, :entity_type, :entity_id, - :is_voided, :voided_at, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :updated_at, - :tiers, :is_advance_charge, :business_entity_id, :deleted + :is_voided, :voided_at, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :created_at, + :updated_at, :tiers, :is_advance_charge, :business_entity_id, :deleted # OPERATIONS #----------- diff --git a/lib/chargebee/models/usage_charge.rb b/lib/chargebee/models/usage_charge.rb index 889075f..bd61e67 100644 --- a/lib/chargebee/models/usage_charge.rb +++ b/lib/chargebee/models/usage_charge.rb @@ -7,7 +7,6 @@ class UsageCharge < Model # OPERATIONS #----------- - # @deprecated This method is deprecated and will be removed in a future version. def self.retrieve_usage_charges_for_subscription(id, params={}, env=nil, headers={}) jsonKeys = { } diff --git a/lib/chargebee/models/usage_summary.rb b/lib/chargebee/models/usage_summary.rb index e89dba3..aae1a37 100644 --- a/lib/chargebee/models/usage_summary.rb +++ b/lib/chargebee/models/usage_summary.rb @@ -6,7 +6,6 @@ class UsageSummary < Model # OPERATIONS #----------- - # @deprecated This method is deprecated and will be removed in a future version. def self.retrieve_usage_summary_for_subscription(id, params, env=nil, headers={}) jsonKeys = { } diff --git a/lib/chargebee/result.rb b/lib/chargebee/result.rb index dd6821e..1958faa 100644 --- a/lib/chargebee/result.rb +++ b/lib/chargebee/result.rb @@ -230,6 +230,11 @@ def quote_line_group() return quote_line_group; end + def cpq_quote_signature() + cpq_quote_signature = get(:cpq_quote_signature, CpqQuoteSignature); + return cpq_quote_signature; + end + def plan() plan = get(:plan, Plan, {:tiers => Plan::Tier, :tax_providers_fields => Plan::TaxProvidersField, :applicable_addons => Plan::ApplicableAddon, :attached_addons => Plan::AttachedAddon, :event_based_addons => Plan::EventBasedAddon}); @@ -573,6 +578,16 @@ def usage_charge() return usage_charge; end + def alert() + alert = get(:alert, Alert); + return alert; + end + + def alert_status() + alert_status = get(:alert_status, AlertStatus); + return alert_status; + end + def impacted_customer() impacted_customer = get(:impacted_customer, ImpactedCustomer, {:download => ImpactedCustomer::Download});