Skip to content

Release v2.78.0 - #131

Merged
cb-alish merged 1 commit into
masterfrom
release-v2.78.0
Jul 30, 2026
Merged

Release v2.78.0#131
cb-alish merged 1 commit into
masterfrom
release-v2.78.0

Conversation

@cb-alish

@cb-alish cb-alish commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

v2.78.0 (2026-07-30)

New Resources:

New Actions:

New Attributes:

New Parameters:

New Events:

New Enums:

  • ledger_account_balance_updated, grant_blocks_created, grant_blocks_updated, and ledger_updated have been added as new values enum EventType.
  • dana, touch_n_go, tamara, and qpay have been added as new values enum PaymentMethod.
  • dana, touch_n_go, tamara, and qpay have been added as new values enum PaymentMethodType.
  • dana, touch_n_go, tamara, qpay, credit_balance_dropped, credit, debit, hold, and unhold have been added as new values enum Type.
  • active and archived have been added as new values to enum attribute status in CreditUnit.
  • grant_renewal and subscription_renewed have been added as new values to enum attribute grant_source in GrantBlock.
  • provisioned and overdraft have been added as new values to enum attribute account_type in LedgerEntry.
  • credit_unit has been added as a new value to enum attribute unit_type in LedgerEntry.
  • dana, touch_n_go, tamara, and qpay have been added as new values to enum attribute payment_method_type in PaymentIntent.
  • dana, touch_n_go, tamara, and qpay have been added as new values to enum attribute active_payment_attempt.payment_method_type in PaymentIntent.
  • archived and active have been added as new values to enum query parameter status.in in list_credit_units of CreditUnit.
  • archived and active have been added as new values to enum query parameter status.is in list_credit_units of CreditUnit.
  • provisioned and overdraft have been added as new values to enum query parameter account_type.is in list_grant_blocks of GrantBlock.
  • 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 of PaymentIntent.
  • 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 of PaymentIntent.

Releases Chargebee Ruby SDK v2.78.0 with new CreditUnit and LedgerEntry resources, LedgerOperation allocation, expanded model attributes and API parameters, additional webhook events and enum values, updated result accessors, and refreshed package/version metadata.

@snyk-io

snyk-io Bot commented Jul 30, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues
Secrets 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

Changes

API model and release updates

Layer / File(s) Summary
CreditUnit resource and integration
lib/chargebee/models/credit_unit.rb, lib/chargebee.rb, chargebee.gemspec, lib/chargebee/result.rb
Adds the CreditUnit model, list/create/update/archive/reactivate requests, loading, packaging, and result conversion.
Ledger models and allocation flow
lib/chargebee/models/ledger_entry.rb, lib/chargebee/models/ledger_operation.rb, lib/chargebee/result.rb, lib/chargebee.rb, chargebee.gemspec
Adds LedgerEntry, exposes ledger entry results, and adds LedgerOperation allocation.
Existing model attributes and release metadata
lib/chargebee/models/{alert,grant_block,ledger_account_balance}.rb, VERSION, lib/chargebee.rb, chargebee.gemspec, CHANGELOG.md
Adds model attributes and updates version, package metadata, user-agent version, and changelog entries for v2.78.0.

Estimated code review effort: 2 (Simple) | ~10 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Client
  participant LedgerOperation
  participant Request
  participant Result
  Client->>LedgerOperation: invoke allocate(params)
  LedgerOperation->>Request: POST ledger_operations/allocate
  Request-->>LedgerOperation: return ledgerOperation response
  Client->>Result: read ledgerEntry or ledgerEntries
  Result-->>Client: construct LedgerEntry objects
Loading

Suggested reviewers: cb-karthikp

🚥 Pre-merge checks | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@lib/chargebee/models/ledger_operation.rb`:
- Around line 57-63: Rename the class method self.allocate in
ChargeBee::LedgerOperation to a distinct wrapper name such as
allocate_ledger_operation, updating any references to it while preserving its
existing request behavior. Do not override Ruby’s zero-argument Class#allocate.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b60177a7-c7d0-43a4-a752-1ebe74d2c2b9

📥 Commits

Reviewing files that changed from the base of the PR and between 899cd84 and 42f19fd.

⛔ Files ignored due to path filters (1)
  • Gemfile.lock is excluded by !**/*.lock
📒 Files selected for processing (11)
  • CHANGELOG.md
  • VERSION
  • chargebee.gemspec
  • lib/chargebee.rb
  • lib/chargebee/models/alert.rb
  • lib/chargebee/models/credit_unit.rb
  • lib/chargebee/models/grant_block.rb
  • lib/chargebee/models/ledger_account_balance.rb
  • lib/chargebee/models/ledger_entry.rb
  • lib/chargebee/models/ledger_operation.rb
  • lib/chargebee/result.rb

Comment thread lib/chargebee/models/ledger_operation.rb
@cb-alish
cb-alish merged commit 6e0dcaa into master Jul 30, 2026
11 checks passed
@cb-alish
cb-alish deleted the release-v2.78.0 branch July 30, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants