Skip to content

Commit 42f19fd

Browse files
committed
Releasing v2.78.0
1 parent 899cd84 commit 42f19fd

12 files changed

Lines changed: 168 additions & 14 deletions

CHANGELOG.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,61 @@
1+
### v2.78.0 (2026-07-30)
2+
* * *
3+
### New Resources:
4+
- [`CreditUnit`](https://apidocs.chargebee.com/docs/api/credit_units) has been added.
5+
- [`LedgerEntry`](https://apidocs.chargebee.com/docs/api/ledger_entries) has been added.
6+
7+
8+
### New Actions:
9+
- [`allocate`](https://apidocs.chargebee.com/docs/api/ledger_operations/allocate) has been added to [`LedgerOperation`](https://apidocs.chargebee.com/docs/api/ledger_operations).
10+
11+
12+
### New Attributes:
13+
- [`unit_id`](https://apidocs.chargebee.com/docs/api/alerts/alert-object#unit_id) has been added to [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
14+
- [`subscription_id`](https://apidocs.chargebee.com/docs/api/grant_blocks/grant-block-object#subscription_id) has been added to [`GrantBlock`](https://apidocs.chargebee.com/docs/api/grant_blocks).
15+
- [`modified_at`](https://apidocs.chargebee.com/docs/api/grant_blocks/grant-block-object#modified_at) has been added to [`GrantBlock`](https://apidocs.chargebee.com/docs/api/grant_blocks).
16+
- [`resource_version`](https://apidocs.chargebee.com/docs/api/grant_blocks/grant-block-object#resource_version) has been added to [`GrantBlock`](https://apidocs.chargebee.com/docs/api/grant_blocks).
17+
- [`created_at`](https://apidocs.chargebee.com/docs/api/ledger_account_balances/ledger-account-balance-object#created_at) has been added to [`LedgerAccountBalance`](https://apidocs.chargebee.com/docs/api/ledger_account_balances).
18+
- [`resource_version`](https://apidocs.chargebee.com/docs/api/ledger_account_balances/ledger-account-balance-object#resource_version) has been added to [`LedgerAccountBalance`](https://apidocs.chargebee.com/docs/api/ledger_account_balances).
19+
20+
21+
### New Parameters:
22+
- [`account_type`](https://apidocs.chargebee.com/docs/api/grant_blocks/list-grant-blocks#account_type) has been added as query parameter to [`list_grant_blocks`](https://apidocs.chargebee.com/docs/api/grant_blocks/list-grant-blocks) in [`GrantBlock`](https://apidocs.chargebee.com/docs/api/grant_blocks).
23+
- [`unit_id`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert#unit_id) has been added as request body parameter to [`create_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
24+
- [`include_cancellation_day_in_billing`](https://apidocs.chargebee.com/docs/api/estimates/cancel-subscription-for-items-estimate#include_cancellation_day_in_billing) has been added as request body parameter to [`cancel_subscription_for_items_estimate`](https://apidocs.chargebee.com/docs/api/estimates/cancel-subscription-for-items-estimate) in [`Estimate`](https://apidocs.chargebee.com/docs/api/estimates).
25+
- [`subscription_id`](https://apidocs.chargebee.com/docs/api/ledger_operations/allocate#subscription_id) has been added as request body parameter to [`allocate`](https://apidocs.chargebee.com/docs/api/ledger_operations/allocate) in [`LedgerOperation`](https://apidocs.chargebee.com/docs/api/ledger_operations).
26+
- [`unit_id`](https://apidocs.chargebee.com/docs/api/ledger_operations/allocate#unit_id) has been added as request body parameter to [`allocate`](https://apidocs.chargebee.com/docs/api/ledger_operations/allocate) in [`LedgerOperation`](https://apidocs.chargebee.com/docs/api/ledger_operations).
27+
- [`amount`](https://apidocs.chargebee.com/docs/api/ledger_operations/allocate#amount) has been added as request body parameter to [`allocate`](https://apidocs.chargebee.com/docs/api/ledger_operations/allocate) in [`LedgerOperation`](https://apidocs.chargebee.com/docs/api/ledger_operations).
28+
- [`expires_at`](https://apidocs.chargebee.com/docs/api/ledger_operations/allocate#expires_at) has been added as request body parameter to [`allocate`](https://apidocs.chargebee.com/docs/api/ledger_operations/allocate) in [`LedgerOperation`](https://apidocs.chargebee.com/docs/api/ledger_operations).
29+
- [`metadata`](https://apidocs.chargebee.com/docs/api/ledger_operations/allocate#metadata) has been added as request body parameter to [`allocate`](https://apidocs.chargebee.com/docs/api/ledger_operations/allocate) in [`LedgerOperation`](https://apidocs.chargebee.com/docs/api/ledger_operations).
30+
- [`include_cancellation_day_in_billing`](https://apidocs.chargebee.com/docs/api/subscriptions/cancel-subscription-for-items#include_cancellation_day_in_billing) has been added as request body parameter to [`cancel_subscription_for_items`](https://apidocs.chargebee.com/docs/api/subscriptions/cancel-subscription-for-items) in [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions).
31+
32+
33+
### New Events:
34+
- [`grant_blocks_created`](https://apidocs.chargebee.com/docs/api/events/webhook/grant_blocks_created) has been added.
35+
- [`ledger_updated`](https://apidocs.chargebee.com/docs/api/events/webhook/ledger_updated) has been added.
36+
- [`ledger_account_balance_updated`](https://apidocs.chargebee.com/docs/api/events/webhook/ledger_account_balance_updated) has been added.
37+
- [`grant_blocks_updated`](https://apidocs.chargebee.com/docs/api/events/webhook/grant_blocks_updated) has been added.
38+
39+
40+
### New Enums:
41+
- `ledger_account_balance_updated`, `grant_blocks_created`, `grant_blocks_updated`, and `ledger_updated` have been added as new values enum `EventType`.
42+
- `dana`, `touch_n_go`, `tamara`, and `qpay` have been added as new values enum `PaymentMethod`.
43+
- `dana`, `touch_n_go`, `tamara`, and `qpay` have been added as new values enum `PaymentMethodType`.
44+
- `dana`, `touch_n_go`, `tamara`, `qpay`, `credit_balance_dropped`, `credit`, `debit`, `hold`, and `unhold` have been added as new values enum `Type`.
45+
- `active` and `archived` have been added as new values to enum attribute [`status`](https://apidocs.chargebee.com/docs/api/credit_units/credit-unit-object#status) in [`CreditUnit`](https://apidocs.chargebee.com/docs/api/credit_units).
46+
- `grant_renewal` and `subscription_renewed` have been added as new values to enum attribute [`grant_source`](https://apidocs.chargebee.com/docs/api/grant_blocks/grant-block-object#grant_source) in [`GrantBlock`](https://apidocs.chargebee.com/docs/api/grant_blocks).
47+
- `provisioned` and `overdraft` have been added as new values to enum attribute [`account_type`](https://apidocs.chargebee.com/docs/api/ledger_entries/ledger-entry-object#account_type) in [`LedgerEntry`](https://apidocs.chargebee.com/docs/api/ledger_entries).
48+
- `credit_unit` has been added as a new value to enum attribute [`unit_type`](https://apidocs.chargebee.com/docs/api/ledger_entries/ledger-entry-object#unit_type) in [`LedgerEntry`](https://apidocs.chargebee.com/docs/api/ledger_entries).
49+
- `dana`, `touch_n_go`, `tamara`, and `qpay` have been added as new values 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).
50+
- `dana`, `touch_n_go`, `tamara`, and `qpay` have been added as new values 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).
51+
- `archived` and `active` have been added as new values to enum query parameter `status.in` in [`list_credit_units`](https://apidocs.chargebee.com/docs/api/credit_units/list-credit-units) of [`CreditUnit`](https://apidocs.chargebee.com/docs/api/credit_units).
52+
- `archived` and `active` have been added as new values to enum query parameter `status.is` in [`list_credit_units`](https://apidocs.chargebee.com/docs/api/credit_units/list-credit-units) of [`CreditUnit`](https://apidocs.chargebee.com/docs/api/credit_units).
53+
- `provisioned` and `overdraft` have been added as new values to enum query parameter `account_type.is` in [`list_grant_blocks`](https://apidocs.chargebee.com/docs/api/grant_blocks/list-grant-blocks) of [`GrantBlock`](https://apidocs.chargebee.com/docs/api/grant_blocks).
54+
- `dana`, `touch_n_go`, `tamara`, and `qpay` have been added as new values 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).
55+
- `dana`, `touch_n_go`, `tamara`, and `qpay` have been added as new values 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).
56+
57+
58+
159
### v2.77.0 (2026-07-21)
260
* * *
361
### New Resources:

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
chargebee (2.77.0)
4+
chargebee (2.78.0)
55
cgi (>= 0.1.0, < 1.0.0)
66

77
GEM

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.77.0
1+
2.78.0

chargebee.gemspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
44
s.rubygems_version = '1.3.5'
55
s.required_ruby_version = '>= 1.9.3'
66
s.name = 'chargebee'
7-
s.version = '2.77.0'
8-
s.date = '2026-07-21'
7+
s.version = '2.78.0'
8+
s.date = '2026-07-30'
99
s.summary = "Ruby client for Chargebee API."
1010
s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
1111
s.metadata = {
@@ -67,6 +67,7 @@ Gem::Specification.new do |s|
6767
lib/chargebee/models/cpq_quote_signature.rb
6868
lib/chargebee/models/credit_note.rb
6969
lib/chargebee/models/credit_note_estimate.rb
70+
lib/chargebee/models/credit_unit.rb
7071
lib/chargebee/models/csv_tax_rule.rb
7172
lib/chargebee/models/currency.rb
7273
lib/chargebee/models/customer.rb
@@ -99,6 +100,7 @@ Gem::Specification.new do |s|
99100
lib/chargebee/models/item_family.rb
100101
lib/chargebee/models/item_price.rb
101102
lib/chargebee/models/ledger_account_balance.rb
103+
lib/chargebee/models/ledger_entry.rb
102104
lib/chargebee/models/ledger_operation.rb
103105
lib/chargebee/models/metadata.rb
104106
lib/chargebee/models/meter.rb

lib/chargebee.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
require File.dirname(__FILE__) + '/chargebee/models/cpq_quote_signature'
4242
require File.dirname(__FILE__) + '/chargebee/models/credit_note'
4343
require File.dirname(__FILE__) + '/chargebee/models/credit_note_estimate'
44+
require File.dirname(__FILE__) + '/chargebee/models/credit_unit'
4445
require File.dirname(__FILE__) + '/chargebee/models/currency'
4546
require File.dirname(__FILE__) + '/chargebee/models/customer'
4647
require File.dirname(__FILE__) + '/chargebee/models/customer_entitlement'
@@ -72,6 +73,7 @@
7273
require File.dirname(__FILE__) + '/chargebee/models/item_family'
7374
require File.dirname(__FILE__) + '/chargebee/models/item_price'
7475
require File.dirname(__FILE__) + '/chargebee/models/ledger_account_balance'
76+
require File.dirname(__FILE__) + '/chargebee/models/ledger_entry'
7577
require File.dirname(__FILE__) + '/chargebee/models/ledger_operation'
7678
require File.dirname(__FILE__) + '/chargebee/models/metadata'
7779
require File.dirname(__FILE__) + '/chargebee/models/meter'
@@ -134,7 +136,7 @@
134136

135137
module ChargeBee
136138

137-
VERSION = '2.77.0'
139+
VERSION = '2.78.0'
138140

139141
@@default_env = nil
140142
@@verify_ca_certs = true

lib/chargebee/models/alert.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class FilterCondition < Model
99
attr_accessor :field, :operator, :value
1010
end
1111

12-
attr_accessor :id, :type, :name, :description, :metered_feature_id, :currency_code, :subscription_id,
13-
:status, :meta, :created_at, :updated_at, :threshold, :filter_conditions
12+
attr_accessor :id, :type, :name, :description, :metered_feature_id, :currency_code, :unit_id,
13+
:subscription_id, :status, :meta, :created_at, :updated_at, :threshold, :filter_conditions
1414

1515
# OPERATIONS
1616
#-----------
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
module ChargeBee
2+
class CreditUnit < Model
3+
4+
attr_accessor :id, :name, :external_name, :status, :resource_version, :updated_at, :created_at,
5+
:created_by, :updated_by, :is_unlimited, :overdraft_amount
6+
7+
# OPERATIONS
8+
#-----------
9+
10+
def self.list(params={}, env=nil, headers={})
11+
jsonKeys = {
12+
}
13+
options = {}
14+
Request.send_list_request('get', uri_path("credit_units"), params, env, headers,nil, false, jsonKeys, options, "creditUnit", "list")
15+
end
16+
17+
def self.create(params, env=nil, headers={})
18+
jsonKeys = {
19+
}
20+
options = {
21+
:isIdempotent => true
22+
}
23+
Request.send('post', uri_path("credit_units"), params, env, headers,nil, false, jsonKeys, options, "creditUnit", "create")
24+
end
25+
26+
def self.update(id, params={}, env=nil, headers={})
27+
jsonKeys = {
28+
}
29+
options = {
30+
:isIdempotent => true
31+
}
32+
Request.send('post', uri_path("credit_units",id.to_s), params, env, headers,nil, false, jsonKeys, options, "creditUnit", "update")
33+
end
34+
35+
def self.archive(id, env=nil, headers={})
36+
jsonKeys = {
37+
}
38+
options = {
39+
:isIdempotent => true
40+
}
41+
Request.send('post', uri_path("credit_units",id.to_s,"archive_command"), {}, env, headers,nil, false, jsonKeys, options, "creditUnit", "archive")
42+
end
43+
44+
def self.reactivate(id, env=nil, headers={})
45+
jsonKeys = {
46+
}
47+
options = {
48+
:isIdempotent => true
49+
}
50+
Request.send('post', uri_path("credit_units",id.to_s,"reactivate_command"), {}, env, headers,nil, false, jsonKeys, options, "creditUnit", "reactivate")
51+
end
52+
53+
end # ~CreditUnit
54+
end # ~ChargeBee

lib/chargebee/models/grant_block.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
module ChargeBee
22
class GrantBlock < Model
33

4-
attr_accessor :id, :granted_amount, :effective_from, :expires_at, :balance, :hold_amount, :used_amount,
5-
:expired_amount, :rolled_over_amount, :voided_amount, :origin_grant_block_id, :status, :grant_source,
6-
:created_at, :account_type, :unit_id, :unit_type, :metadata
4+
attr_accessor :id, :subscription_id, :account_type, :unit_id, :unit_type, :granted_amount, :effective_from,
5+
:expires_at, :balance, :hold_amount, :used_amount, :expired_amount, :rolled_over_amount, :voided_amount,
6+
:origin_grant_block_id, :status, :grant_source, :created_at, :modified_at, :resource_version,
7+
:metadata
78

89
# OPERATIONS
910
#-----------

lib/chargebee/models/ledger_account_balance.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ class OverdraftBalance < Model
99
attr_accessor :is_unlimited, :limit, :total_balance, :usable_balance, :used_amount, :hold_amount
1010
end
1111

12-
attr_accessor :subscription_id, :unit_id, :unit_type, :modified_at, :provisioned_balance, :overdraft_balance
12+
attr_accessor :subscription_id, :unit_id, :unit_type, :created_at, :modified_at, :resource_version,
13+
:provisioned_balance, :overdraft_balance
1314

1415
# OPERATIONS
1516
#-----------
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module ChargeBee
2+
class LedgerEntry < Model
3+
4+
attr_accessor :id, :subscription_id, :account_type, :unit_id, :unit_type, :amount, :grant_block_start_balance,
5+
:grant_block_end_balance, :account_start_balance, :account_end_balance, :type, :ledger_operation_id,
6+
:grant_block_id, :created_at, :modified_at
7+
8+
# OPERATIONS
9+
#-----------
10+
11+
end # ~LedgerEntry
12+
end # ~ChargeBee

0 commit comments

Comments
 (0)