chargebee 2.68.0 → 2.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1fc0134fd863cafca532aa8b2e4a05c087631d3473197e605479e2dd813b2da
4
- data.tar.gz: 75aff02231b095d3e781b7d86efe895eeb4e026f81a5c8f34137267ecc8d83f3
3
+ metadata.gz: 8ea7abaa2a717c2c42a35f60f47e6f9a6f0911300def9cdb7ec3eb523575dabf
4
+ data.tar.gz: 8aa0e9b2c26acd9859ff9d9a455787bb1b2c5f5f5c765309bd9b307861173fa3
5
5
  SHA512:
6
- metadata.gz: bd541ef721a84ccf6e991e43042ce51193515720ec01cc7b5035410b6dcb5504c775401699b2d4b7b7ae05504a4e25453b0093e2d9718251d5430830d05cce74
7
- data.tar.gz: 64d99d438c593e71c29669c74857841ba8bea72a78b7ff17aec9ac101b6b0e57561611de9fcb5303b2091aa8ce6415159e98c2649f959ca8ab5c67823e4deb16
6
+ metadata.gz: c24f512eb35cc073a5168eda4393c8e33b334da458a016ffe716bef6977918fb6c8b3f8de5eac84ca01983657452ad5d8a07aeb2cbde73a97457c04b2700c288
7
+ data.tar.gz: c76a0414927337ed5753a155f30dbf44b00e5baba25824204f2e55af1c3ab2f1427082793aeea4098199a9d011e3f094ce8b68b354e2e5d9eb27d5bacc02c36d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,86 @@
1
+ ### v2.70.0 (2026-03-27)
2
+ * * *
3
+ ### New Resources:
4
+ - [`Alert`](https://apidocs.chargebee.com/docs/api/alerts) has been added.
5
+ - [`AlertStatus`](https://apidocs.chargebee.com/docs/api/alert_statuses) has been added.
6
+ - [`CpqQuoteSignature`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures) has been added.
7
+
8
+
9
+ ### New Actions:
10
+ - [`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).
11
+ - [`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).
12
+ - [`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).
13
+ - [`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).
14
+ - [`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).
15
+ - [`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).
16
+
17
+
18
+ ### New Attributes:
19
+ - [`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).
20
+ - [`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).
21
+ - [`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).
22
+
23
+
24
+ ### New Parameters:
25
+ - [`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).
26
+ - [`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).
27
+ - [`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).
28
+ - [`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).
29
+ - [`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).
30
+
31
+
32
+ ### New Events:
33
+ - [`alert_status_changed`](https://apidocs.chargebee.com/docs/api/events/webhook/alert_status_changed) has been added.
34
+
35
+
36
+ ### New Enums:
37
+ - `alert_status` has been added as a new value enum `EntityType`.
38
+ - `alert_status_changed` has been added as a new value enum `EventType`.
39
+ - `pix` has been added as a new value enum `PaymentMethod`.
40
+ - `pix` has been added as a new value enum `PaymentMethodType`.
41
+ - `pix` and `usage_exceeded` have been added as new values enum `Type`.
42
+ - `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).
43
+ - `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).
44
+ - `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).
45
+ - `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).
46
+ - `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).
47
+ - `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).
48
+ - `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).
49
+ - `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).
50
+ - `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).
51
+ - `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).
52
+
53
+
54
+
55
+ ### v2.69.0 (2026-03-02)
56
+ * * *
57
+ ### New Resources:
58
+ - [`UsageCharge`](https://apidocs.chargebee.com/docs/api/usage_charges) has been added.
59
+ - [`UsageSummary`](https://apidocs.chargebee.com/docs/api/usage_summaries) has been added.
60
+
61
+
62
+ ### New Attributes:
63
+ - [`free_period`](https://apidocs.chargebee.com/docs/api/quoted_subscriptions/quoted-subscription-object#free_period) has been added to [`QuotedSubscription`](https://apidocs.chargebee.com/docs/api/quoted_subscriptions).
64
+ - [`free_period_unit`](https://apidocs.chargebee.com/docs/api/quoted_subscriptions/quoted-subscription-object#free_period_unit) has been added to [`QuotedSubscription`](https://apidocs.chargebee.com/docs/api/quoted_subscriptions).
65
+
66
+
67
+ ### New Parameters:
68
+ - [`net_term_days`](https://apidocs.chargebee.com/docs/api/invoices/create-invoice-for-items-and-one-time-charges#net_term_days) has been added as request body parameter to [`create_invoice_for_items_and_one-time_charges`](https://apidocs.chargebee.com/docs/api/invoices/create-invoice-for-items-and-one-time-charges) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
69
+ - [`contract_term`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-existing-subscription#contract_term) has been added as request body parameter to [`create_pricing_page_for_existing_subscription`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-existing-subscription) in [`PricingPageSession`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions).
70
+ - [`contract_term`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-new-subscription#contract_term) has been added as request body parameter to [`create_pricing_page_for_new_subscription`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-new-subscription) in [`PricingPageSession`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions).
71
+ - [`subscription.free_period`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-a-new-subscription-items#subscription_free_period) 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).
72
+ - [`subscription.free_period_unit`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-a-new-subscription-items#subscription_free_period_unit) 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).
73
+ - [`subscription.free_period`](https://apidocs.chargebee.com/docs/api/quotes/edit-create-subscription-quote-for-items#subscription_free_period) 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).
74
+ - [`subscription.free_period_unit`](https://apidocs.chargebee.com/docs/api/quotes/edit-create-subscription-quote-for-items#subscription_free_period_unit) 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).
75
+
76
+
77
+ ### New Enums:
78
+ - `month`, `week`, `day`, `hour`, and `minute` have been added as new values enum `WindowSize`.
79
+ - `cancel`, `renew_once`, `renew`, and `evergreen` have been added as new values to enum request body parameter `contract_term.action_at_term_end` in [`create_pricing_page_for_existing_subscription`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-existing-subscription) of [`PricingPageSession`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions).
80
+ - `cancel`, `renew_once`, `renew`, and `evergreen` have been added as new values to enum request body parameter `contract_term.action_at_term_end` in [`create_pricing_page_for_new_subscription`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-new-subscription) of [`PricingPageSession`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions).
81
+
82
+
83
+
1
84
  ### v2.68.0 (2026-02-06)
2
85
  * * *
3
86
  ### New Attributes:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargebee (2.68.0)
4
+ chargebee (2.70.0)
5
5
  cgi (>= 0.1.0, < 1.0.0)
6
6
 
7
7
  GEM
data/Makefile ADDED
@@ -0,0 +1,114 @@
1
+ .PHONY: update-version increment-major increment-minor increment-patch test build clean install check format
2
+
3
+ # Version file location
4
+ VERSION_FILE := VERSION
5
+ GEMSPEC_FILE := chargebee.gemspec
6
+ LIB_FILE := lib/chargebee.rb
7
+
8
+ # Ruby commands
9
+ RUBY := ruby
10
+ GEM := gem
11
+ BUNDLE := bundle
12
+ RSPEC := bundle exec rspec
13
+
14
+ update-version:
15
+ @echo "$(VERSION)" > $(VERSION_FILE)
16
+ @perl -pi -e 's|s\.version\s*=\s*'\''[.\-\d\w]+'\''|s.version = '\''$(VERSION)'\''|' $(GEMSPEC_FILE)
17
+ @perl -pi -e 's|VERSION = '\''[.\-\d\w]+'\''|VERSION = '\''$(VERSION)'\''|' $(LIB_FILE)
18
+ @perl -pi -e "s|s\\.date\\s*=\\s*'[^']*'|s.date = '$(shell date +%Y-%m-%d)'|" $(GEMSPEC_FILE)
19
+ @echo "Updated version to $(VERSION) and date to $(shell date +%Y-%m-%d)"
20
+ @if [ -f "Gemfile.lock" ]; then \
21
+ echo "Updating Gemfile.lock..."; \
22
+ $(BUNDLE) install --quiet; \
23
+ fi
24
+
25
+ increment-major:
26
+ $(eval CURRENT := $(shell cat $(VERSION_FILE)))
27
+ $(eval MAJOR := $(shell echo $(CURRENT) | cut -d. -f1))
28
+ $(eval NEW_VERSION := $(shell echo $$(($(MAJOR) + 1)).0.0))
29
+ @$(MAKE) update-version VERSION=$(NEW_VERSION)
30
+ @echo "Version bumped from $(CURRENT) to $(NEW_VERSION)"
31
+
32
+ increment-minor:
33
+ $(eval CURRENT := $(shell cat $(VERSION_FILE)))
34
+ $(eval MAJOR := $(shell echo $(CURRENT) | cut -d. -f1))
35
+ $(eval MINOR := $(shell echo $(CURRENT) | cut -d. -f2))
36
+ $(eval NEW_VERSION := $(MAJOR).$(shell echo $$(($(MINOR) + 1))).0)
37
+ @$(MAKE) update-version VERSION=$(NEW_VERSION)
38
+ @echo "Version bumped from $(CURRENT) to $(NEW_VERSION)"
39
+
40
+ increment-patch:
41
+ $(eval CURRENT := $(shell cat $(VERSION_FILE)))
42
+ $(eval MAJOR := $(shell echo $(CURRENT) | cut -d. -f1))
43
+ $(eval MINOR := $(shell echo $(CURRENT) | cut -d. -f2))
44
+ $(eval PATCH := $(shell echo $(CURRENT) | cut -d. -f3))
45
+ $(eval NEW_VERSION := $(MAJOR).$(MINOR).$(shell echo $$(($(PATCH) + 1))))
46
+ @$(MAKE) update-version VERSION=$(NEW_VERSION)
47
+ @echo "Version bumped from $(CURRENT) to $(NEW_VERSION)"
48
+
49
+ install:
50
+ @echo "Installing dependencies..."
51
+ @$(BUNDLE) install --without development
52
+
53
+ install-dev:
54
+ @echo "Installing development dependencies..."
55
+ @$(BUNDLE) install
56
+
57
+ test:
58
+ @echo "Running tests..."
59
+ @$(RSPEC)
60
+
61
+ validate:
62
+ @echo "Validating gemspec..."
63
+ @$(GEM) build $(GEMSPEC_FILE) --strict --verbose > /dev/null
64
+ @rm -f *.gem
65
+ @echo "Gemspec is valid"
66
+
67
+ check: test
68
+ @echo "All checks passed!"
69
+
70
+ build: clean update-manifest
71
+ @echo "Building gem..."
72
+ @$(GEM) build $(GEMSPEC_FILE)
73
+
74
+ clean:
75
+ @echo "Cleaning build artifacts..."
76
+ @rm -f *.gem
77
+ @rm -rf pkg/
78
+ @rm -rf coverage/
79
+ @find . -type f -name '.DS_Store' -delete
80
+
81
+ clean-bundle:
82
+ @echo "Cleaning bundle..."
83
+ @rm -rf vendor/bundle
84
+ @rm -f Gemfile.lock
85
+
86
+ update:
87
+ @echo "Updating dependencies..."
88
+ @$(BUNDLE) update
89
+
90
+ security-check:
91
+ @echo "Checking for security vulnerabilities..."
92
+ @$(BUNDLE) audit check --update
93
+
94
+ outdated:
95
+ @echo "Checking for outdated dependencies..."
96
+ @$(BUNDLE) outdated
97
+
98
+ format:
99
+ @echo "Formatter not configured."
100
+
101
+ update-manifest:
102
+ @echo "Staging new model files..."
103
+ @git add lib/chargebee/models/ lib/chargebee.rb lib/chargebee/result.rb 2>/dev/null || true
104
+ @echo "Updating file manifest in $(GEMSPEC_FILE)..."
105
+ @$(RUBY) -e \
106
+ 'files = `git ls-files`.split("\n").sort \
107
+ .reject { |f| f =~ /^\./ } \
108
+ .reject { |f| f =~ /^(rdoc|pkg)/ } \
109
+ .map { |f| " #{f}" } \
110
+ .join("\n"); \
111
+ spec = File.read("$(GEMSPEC_FILE)"); \
112
+ spec.sub!(/s\.files = %w\[.*?\]/m, "s.files = %w[\n#{files}\n ]"); \
113
+ File.write("$(GEMSPEC_FILE)", spec)'
114
+ @echo "Manifest updated."
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 2.70.0
data/chargebee.gemspec CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
  s.required_ruby_version = '>= 1.9.3'
6
6
  s.name = 'chargebee'
7
- s.version = '2.68.0'
8
- s.date = '2026-01-16'
7
+ s.version = '2.70.0'
8
+ s.date = '2026-03-27'
9
9
  s.summary = "Ruby client for Chargebee API."
10
10
  s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
11
11
  s.metadata = {
@@ -32,9 +32,11 @@ Gem::Specification.new do |s|
32
32
  Gemfile
33
33
  Gemfile.lock
34
34
  LICENSE
35
+ Makefile
35
36
  README.md
36
37
  README.rdoc
37
38
  Rakefile
39
+ VERSION
38
40
  chargebee.gemspec
39
41
  lib/chargebee.rb
40
42
  lib/chargebee/environment.rb
@@ -43,6 +45,8 @@ Gem::Specification.new do |s|
43
45
  lib/chargebee/models/addon.rb
44
46
  lib/chargebee/models/address.rb
45
47
  lib/chargebee/models/advance_invoice_schedule.rb
48
+ lib/chargebee/models/alert.rb
49
+ lib/chargebee/models/alert_status.rb
46
50
  lib/chargebee/models/attached_item.rb
47
51
  lib/chargebee/models/attribute.rb
48
52
  lib/chargebee/models/billing_configuration.rb
@@ -57,6 +61,7 @@ Gem::Specification.new do |s|
57
61
  lib/chargebee/models/coupon.rb
58
62
  lib/chargebee/models/coupon_code.rb
59
63
  lib/chargebee/models/coupon_set.rb
64
+ lib/chargebee/models/cpq_quote_signature.rb
60
65
  lib/chargebee/models/credit_note.rb
61
66
  lib/chargebee/models/credit_note_estimate.rb
62
67
  lib/chargebee/models/csv_tax_rule.rb
@@ -138,8 +143,10 @@ Gem::Specification.new do |s|
138
143
  lib/chargebee/models/transaction.rb
139
144
  lib/chargebee/models/unbilled_charge.rb
140
145
  lib/chargebee/models/usage.rb
146
+ lib/chargebee/models/usage_charge.rb
141
147
  lib/chargebee/models/usage_event.rb
142
148
  lib/chargebee/models/usage_file.rb
149
+ lib/chargebee/models/usage_summary.rb
143
150
  lib/chargebee/models/virtual_bank_account.rb
144
151
  lib/chargebee/models/webhook_endpoint.rb
145
152
  lib/chargebee/native_request.rb
@@ -0,0 +1,11 @@
1
+ module ChargeBee
2
+ class Alert < Model
3
+
4
+ attr_accessor :id, :type, :name, :description, :metered_feature_id, :subscription_id, :status,
5
+ :alarm_triggered_at, :scope, :meta, :created_at, :updated_at
6
+
7
+ # OPERATIONS
8
+ #-----------
9
+
10
+ end # ~Alert
11
+ end # ~ChargeBee
@@ -0,0 +1,10 @@
1
+ module ChargeBee
2
+ class AlertStatus < Model
3
+
4
+ attr_accessor :alert_id, :subscription_id, :alert_status, :alarm_triggered_at
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ end # ~AlertStatus
10
+ end # ~ChargeBee
@@ -0,0 +1,11 @@
1
+ module ChargeBee
2
+ class CpqQuoteSignature < Model
3
+
4
+ attr_accessor :id, :status, :name, :document_name, :customer_acceptance_method, :quote_type,
5
+ :expires_at, :timezone, :provider_request_id, :provider_document_id, :created_at, :modified_at
6
+
7
+ # OPERATIONS
8
+ #-----------
9
+
10
+ end # ~CpqQuoteSignature
11
+ end # ~ChargeBee
@@ -50,7 +50,7 @@ module ChargeBee
50
50
  end
51
51
 
52
52
  class Einvoice < Model
53
- attr_accessor :id, :reference_number, :status, :message
53
+ attr_accessor :id, :reference_id, :reference_number, :status, :message, :provider_references
54
54
  end
55
55
 
56
56
  class SiteDetailsAtCreation < Model
@@ -1,7 +1,7 @@
1
1
  module ChargeBee
2
2
  class Einvoice < Model
3
3
 
4
- attr_accessor :id, :reference_number, :status, :message
4
+ attr_accessor :id, :reference_id, :reference_number, :status, :message, :provider_references
5
5
 
6
6
  # OPERATIONS
7
7
  #-----------
@@ -73,11 +73,11 @@ module ChargeBee
73
73
  Request.send('post', uri_path("subscriptions",id.to_s,"regenerate_invoice_estimate"), params, env, headers,nil, false, jsonKeys, options)
74
74
  end
75
75
 
76
- def self.upcoming_invoices_estimate(id, env=nil, headers={})
76
+ def self.upcoming_invoices_estimate(id, params={}, env=nil, headers={})
77
77
  jsonKeys = {
78
78
  }
79
79
  options = {}
80
- Request.send('get', uri_path("customers",id.to_s,"upcoming_invoices_estimate"), {}, env, headers,nil, false, jsonKeys, options)
80
+ Request.send('get', uri_path("customers",id.to_s,"upcoming_invoices_estimate"), params, env, headers,nil, false, jsonKeys, options)
81
81
  end
82
82
 
83
83
  def self.change_term_end(id, params, env=nil, headers={})
@@ -82,7 +82,7 @@ module ChargeBee
82
82
  end
83
83
 
84
84
  class Einvoice < Model
85
- attr_accessor :id, :reference_number, :status, :message
85
+ attr_accessor :id, :reference_id, :reference_number, :status, :message, :provider_references
86
86
  end
87
87
 
88
88
  class SiteDetailsAtCreation < Model
@@ -218,5 +218,63 @@ module ChargeBee
218
218
  Request.send('post', uri_path("quotes",id.to_s,"pdf"), params, env, headers,nil, false, jsonKeys, options)
219
219
  end
220
220
 
221
+ # @deprecated This method is deprecated and will be removed in a future version.
222
+ def self.retrieve_signature(id, env=nil, headers={})
223
+ jsonKeys = {
224
+ }
225
+ options = {}
226
+ Request.send('get', uri_path("quotes",id.to_s,"retrieve_signature"), {}, env, headers,nil, false, jsonKeys, options)
227
+ end
228
+
229
+ # @deprecated This method is deprecated and will be removed in a future version.
230
+ def self.retrieve_signed_pdf(id, env=nil, headers={})
231
+ jsonKeys = {
232
+ }
233
+ options = {
234
+ :isIdempotent => true
235
+ }
236
+ Request.send('post', uri_path("quotes",id.to_s,"retrieve_signed_pdf"), {}, env, headers,nil, false, jsonKeys, options)
237
+ end
238
+
239
+ # @deprecated This method is deprecated and will be removed in a future version.
240
+ def self.create_signature(id, env=nil, headers={})
241
+ jsonKeys = {
242
+ }
243
+ options = {
244
+ :isIdempotent => true
245
+ }
246
+ Request.send('post', uri_path("quotes",id.to_s,"create_signature"), {}, env, headers,nil, false, jsonKeys, options)
247
+ end
248
+
249
+ # @deprecated This method is deprecated and will be removed in a future version.
250
+ def self.update_signature(id, env=nil, headers={})
251
+ jsonKeys = {
252
+ }
253
+ options = {
254
+ :isIdempotent => true
255
+ }
256
+ Request.send('post', uri_path("quotes",id.to_s,"update_signature"), {}, env, headers,nil, false, jsonKeys, options)
257
+ end
258
+
259
+ # @deprecated This method is deprecated and will be removed in a future version.
260
+ def self.update_signature_status(id, params={}, env=nil, headers={})
261
+ jsonKeys = {
262
+ }
263
+ options = {
264
+ :isIdempotent => true
265
+ }
266
+ Request.send('post', uri_path("quotes",id.to_s,"update_signature_status"), params, env, headers,nil, false, jsonKeys, options)
267
+ end
268
+
269
+ # @deprecated This method is deprecated and will be removed in a future version.
270
+ def self.refresh_signature_link(id, env=nil, headers={})
271
+ jsonKeys = {
272
+ }
273
+ options = {
274
+ :isIdempotent => true
275
+ }
276
+ Request.send('post', uri_path("quotes",id.to_s,"refresh_signature_link"), {}, env, headers,nil, false, jsonKeys, options)
277
+ end
278
+
221
279
  end # ~Quote
222
280
  end # ~ChargeBee
@@ -28,8 +28,8 @@ module ChargeBee
28
28
  attr_accessor :id, :plan_id, :plan_quantity, :plan_unit_price, :setup_fee, :billing_period,
29
29
  :billing_period_unit, :start_date, :trial_end, :remaining_billing_cycles, :po_number, :auto_collection,
30
30
  :plan_quantity_in_decimal, :plan_unit_price_in_decimal, :changes_scheduled_at, :change_option,
31
- :contract_term_billing_cycle_on_renewal, :addons, :event_based_addons, :coupons, :subscription_items,
32
- :item_tiers, :quoted_contract_term
31
+ :free_period, :free_period_unit, :contract_term_billing_cycle_on_renewal, :addons, :event_based_addons,
32
+ :coupons, :subscription_items, :item_tiers, :quoted_contract_term
33
33
 
34
34
  # OPERATIONS
35
35
  #-----------
@@ -7,8 +7,8 @@ module ChargeBee
7
7
 
8
8
  attr_accessor :id, :customer_id, :subscription_id, :date_from, :date_to, :unit_amount, :pricing_model,
9
9
  :quantity, :amount, :currency_code, :discount_amount, :description, :entity_type, :entity_id,
10
- :is_voided, :voided_at, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :updated_at,
11
- :tiers, :is_advance_charge, :business_entity_id, :deleted
10
+ :is_voided, :voided_at, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :created_at,
11
+ :updated_at, :tiers, :is_advance_charge, :business_entity_id, :deleted
12
12
 
13
13
  # OPERATIONS
14
14
  #-----------
@@ -0,0 +1,18 @@
1
+ module ChargeBee
2
+ class UsageCharge < Model
3
+
4
+ attr_accessor :subscription_id, :feature_id, :included_usage, :total_usage, :on_demand_usage,
5
+ :metered_item_price_id, :amount, :currency_code, :usage_from, :usage_to
6
+
7
+ # OPERATIONS
8
+ #-----------
9
+
10
+ def self.retrieve_usage_charges_for_subscription(id, params={}, env=nil, headers={})
11
+ jsonKeys = {
12
+ }
13
+ options = {}
14
+ Request.send('get', uri_path("subscriptions",id.to_s,"usage_charges"), params, env, headers,nil, false, jsonKeys, options)
15
+ end
16
+
17
+ end # ~UsageCharge
18
+ end # ~ChargeBee
@@ -0,0 +1,17 @@
1
+ module ChargeBee
2
+ class UsageSummary < Model
3
+
4
+ attr_accessor :subscription_id, :feature_id, :aggregated_value, :aggregated_from, :aggregated_to
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ def self.retrieve_usage_summary_for_subscription(id, params, env=nil, headers={})
10
+ jsonKeys = {
11
+ }
12
+ options = {}
13
+ Request.send('get', uri_path("subscriptions",id.to_s,"usage_summary"), params, env, headers,nil, false, jsonKeys, options)
14
+ end
15
+
16
+ end # ~UsageSummary
17
+ end # ~ChargeBee
@@ -230,6 +230,11 @@ module ChargeBee
230
230
  return quote_line_group;
231
231
  end
232
232
 
233
+ def cpq_quote_signature()
234
+ cpq_quote_signature = get(:cpq_quote_signature, CpqQuoteSignature);
235
+ return cpq_quote_signature;
236
+ end
237
+
233
238
  def plan()
234
239
  plan = get(:plan, Plan,
235
240
  {:tiers => Plan::Tier, :tax_providers_fields => Plan::TaxProvidersField, :applicable_addons => Plan::ApplicableAddon, :attached_addons => Plan::AttachedAddon, :event_based_addons => Plan::EventBasedAddon});
@@ -563,6 +568,26 @@ module ChargeBee
563
568
  return webhook_endpoint;
564
569
  end
565
570
 
571
+ def usage_summary()
572
+ usage_summary = get(:usage_summary, UsageSummary);
573
+ return usage_summary;
574
+ end
575
+
576
+ def usage_charge()
577
+ usage_charge = get(:usage_charge, UsageCharge);
578
+ return usage_charge;
579
+ end
580
+
581
+ def alert()
582
+ alert = get(:alert, Alert);
583
+ return alert;
584
+ end
585
+
586
+ def alert_status()
587
+ alert_status = get(:alert_status, AlertStatus);
588
+ return alert_status;
589
+ end
590
+
566
591
  def impacted_customer()
567
592
  impacted_customer = get(:impacted_customer, ImpactedCustomer,
568
593
  {:download => ImpactedCustomer::Download});
data/lib/chargebee.rb CHANGED
@@ -100,7 +100,7 @@ require File.dirname(__FILE__) + '/chargebee/models/einvoice'
100
100
 
101
101
  module ChargeBee
102
102
 
103
- VERSION = '2.68.0'
103
+ VERSION = '2.70.0'
104
104
 
105
105
  @@default_env = nil
106
106
  @@verify_ca_certs = true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chargebee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.68.0
4
+ version: 2.70.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajaraman S
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-01-16 00:00:00.000000000 Z
12
+ date: 2026-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cgi
@@ -73,9 +73,11 @@ files:
73
73
  - Gemfile
74
74
  - Gemfile.lock
75
75
  - LICENSE
76
+ - Makefile
76
77
  - README.md
77
78
  - README.rdoc
78
79
  - Rakefile
80
+ - VERSION
79
81
  - chargebee.gemspec
80
82
  - lib/chargebee.rb
81
83
  - lib/chargebee/environment.rb
@@ -84,6 +86,8 @@ files:
84
86
  - lib/chargebee/models/addon.rb
85
87
  - lib/chargebee/models/address.rb
86
88
  - lib/chargebee/models/advance_invoice_schedule.rb
89
+ - lib/chargebee/models/alert.rb
90
+ - lib/chargebee/models/alert_status.rb
87
91
  - lib/chargebee/models/attached_item.rb
88
92
  - lib/chargebee/models/attribute.rb
89
93
  - lib/chargebee/models/billing_configuration.rb
@@ -98,6 +102,7 @@ files:
98
102
  - lib/chargebee/models/coupon.rb
99
103
  - lib/chargebee/models/coupon_code.rb
100
104
  - lib/chargebee/models/coupon_set.rb
105
+ - lib/chargebee/models/cpq_quote_signature.rb
101
106
  - lib/chargebee/models/credit_note.rb
102
107
  - lib/chargebee/models/credit_note_estimate.rb
103
108
  - lib/chargebee/models/csv_tax_rule.rb
@@ -179,8 +184,10 @@ files:
179
184
  - lib/chargebee/models/transaction.rb
180
185
  - lib/chargebee/models/unbilled_charge.rb
181
186
  - lib/chargebee/models/usage.rb
187
+ - lib/chargebee/models/usage_charge.rb
182
188
  - lib/chargebee/models/usage_event.rb
183
189
  - lib/chargebee/models/usage_file.rb
190
+ - lib/chargebee/models/usage_summary.rb
184
191
  - lib/chargebee/models/virtual_bank_account.rb
185
192
  - lib/chargebee/models/webhook_endpoint.rb
186
193
  - lib/chargebee/native_request.rb