Skip to content

Release v4.14.0 - #113

Merged
cb-alish merged 1 commit into
v4from
release-v4.14.0
Jul 30, 2026
Merged

Release v4.14.0#113
cb-alish merged 1 commit into
v4from
release-v4.14.0

Conversation

@cb-alish

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

Copy link
Copy Markdown
Collaborator

v4.14.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.

Released v4.14.0 with CreditUnit and LedgerEntry resources, LedgerOperation allocation, expanded ledger, alert, grant block, estimate, and subscription APIs, four webhook event models, additional response fields, and broader payment method and event-type enum support.

@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

Version 4.14.0 adds CreditUnit and LedgerEntry resources, LedgerOperation allocation, new webhook payloads, expanded ledger and alert fields, cancellation parameters, and additional enum values across payment, event, and filtering APIs.

Changes

v4.14.0 API expansion

Layer / File(s) Summary
Release metadata and enum contracts
CHANGELOG.md, VERSION, build.gradle.kts, src/main/java/com/chargebee/v4/models/**
The release version is bumped to 4.14.0, with new event, payment method, ledger, alert, filter, and status enum values added across models and request types.
CreditUnit resource and service
src/main/java/com/chargebee/v4/models/creditUnit/**, src/main/java/com/chargebee/v4/services/CreditUnitService.java, src/main/java/com/chargebee/v4/client/*
CreditUnit models, builders, list pagination, typed responses, synchronous and asynchronous CRUD-style operations, and client service accessors are introduced.
Ledger models and allocation operation
src/main/java/com/chargebee/v4/models/ledgerEntry/**, src/main/java/com/chargebee/v4/models/ledgerOperation/**, src/main/java/com/chargebee/v4/services/LedgerOperationService.java
LedgerEntry and allocation request/response models are added; ledger operation responses now parse grant blocks and ledger entries, and allocation is exposed synchronously and asynchronously.
Webhook payloads and endpoint fields
src/main/java/com/chargebee/v4/models/event/**, src/main/java/com/chargebee/v4/models/alert/**, src/main/java/com/chargebee/v4/models/grantBlock/**, src/main/java/com/chargebee/v4/models/subscription/params/**, src/main/java/com/chargebee/v4/models/estimate/params/**
New grant-block and ledger webhook payloads are added, while alert, grant-block, ledger-balance, and cancellation request fields are parsed, serialized, and exposed.

Estimated code review effort: 4 (Complex) | ~60 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Client
  participant CreditUnitService
  participant ChargebeeAPI
  Client->>CreditUnitService: create/list/update CreditUnit
  CreditUnitService->>ChargebeeAPI: send typed request
  ChargebeeAPI-->>CreditUnitService: return JSON response
  CreditUnitService-->>Client: return typed response model
Loading
sequenceDiagram
  participant Client
  participant LedgerOperationService
  participant ChargebeeAPI
  Client->>LedgerOperationService: allocate(params)
  LedgerOperationService->>ChargebeeAPI: POST allocation request
  ChargebeeAPI-->>LedgerOperationService: return ledger response
  LedgerOperationService-->>Client: return allocation response
Loading

Possibly related PRs

🚥 Pre-merge checks | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 12.64% 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 `@src/main/java/com/chargebee/v4/services/CreditUnitService.java`:
- Around line 178-183: Update the CreditUnitService updateRaw and updateAsync
methods to handle null params consistently with listRaw and createRaw: pass an
empty form-data payload when params is null, otherwise use params.toFormData().
Preserve the existing request path and update behavior for non-null parameters.
🪄 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: 6f892fdc-c26c-4ed8-938c-c0efb1dc2f25

📥 Commits

Reviewing files that changed from the base of the PR and between 3830634 and 53ac330.

📒 Files selected for processing (86)
  • CHANGELOG.md
  • VERSION
  • build.gradle.kts
  • src/main/java/com/chargebee/v4/client/ClientMethods.java
  • src/main/java/com/chargebee/v4/client/ClientMethodsImpl.java
  • src/main/java/com/chargebee/v4/client/ServiceRegistry.java
  • src/main/java/com/chargebee/v4/models/alert/Alert.java
  • src/main/java/com/chargebee/v4/models/alert/params/AlertCreateParams.java
  • src/main/java/com/chargebee/v4/models/alert/params/AlertListParams.java
  • src/main/java/com/chargebee/v4/models/alert/params/ApplicationAlertsForSubscriptionParams.java
  • src/main/java/com/chargebee/v4/models/creditNote/params/CreditNoteRecordRefundParams.java
  • src/main/java/com/chargebee/v4/models/creditNote/params/ImportCreditNoteParams.java
  • src/main/java/com/chargebee/v4/models/creditUnit/CreditUnit.java
  • src/main/java/com/chargebee/v4/models/creditUnit/params/CreditUnitArchiveParams.java
  • src/main/java/com/chargebee/v4/models/creditUnit/params/CreditUnitCreateParams.java
  • src/main/java/com/chargebee/v4/models/creditUnit/params/CreditUnitListParams.java
  • src/main/java/com/chargebee/v4/models/creditUnit/params/CreditUnitReactivateParams.java
  • src/main/java/com/chargebee/v4/models/creditUnit/params/CreditUnitUpdateParams.java
  • src/main/java/com/chargebee/v4/models/creditUnit/responses/CreditUnitArchiveResponse.java
  • src/main/java/com/chargebee/v4/models/creditUnit/responses/CreditUnitCreateResponse.java
  • src/main/java/com/chargebee/v4/models/creditUnit/responses/CreditUnitListResponse.java
  • src/main/java/com/chargebee/v4/models/creditUnit/responses/CreditUnitReactivateResponse.java
  • src/main/java/com/chargebee/v4/models/creditUnit/responses/CreditUnitUpdateResponse.java
  • src/main/java/com/chargebee/v4/models/customer/Customer.java
  • src/main/java/com/chargebee/v4/models/customer/params/CustomerCollectPaymentParams.java
  • src/main/java/com/chargebee/v4/models/customer/params/CustomerCreateParams.java
  • src/main/java/com/chargebee/v4/models/customer/params/CustomerRecordExcessPaymentParams.java
  • src/main/java/com/chargebee/v4/models/customer/params/CustomerUpdatePaymentMethodParams.java
  • src/main/java/com/chargebee/v4/models/entitlement/params/EntitlementListParams.java
  • src/main/java/com/chargebee/v4/models/estimate/params/EstimateCancelSubscriptionForItemsParams.java
  • src/main/java/com/chargebee/v4/models/estimate/params/EstimateGiftSubscriptionForItemsParams.java
  • src/main/java/com/chargebee/v4/models/estimate/params/EstimateGiftSubscriptionParams.java
  • src/main/java/com/chargebee/v4/models/event/Event.java
  • src/main/java/com/chargebee/v4/models/event/GrantBlocksCreatedEvent.java
  • src/main/java/com/chargebee/v4/models/event/GrantBlocksUpdatedEvent.java
  • src/main/java/com/chargebee/v4/models/event/LedgerAccountBalanceUpdatedEvent.java
  • src/main/java/com/chargebee/v4/models/event/LedgerUpdatedEvent.java
  • src/main/java/com/chargebee/v4/models/event/params/EventListParams.java
  • src/main/java/com/chargebee/v4/models/export/params/ExportTransactionsParams.java
  • src/main/java/com/chargebee/v4/models/gift/params/GiftCreateForItemsParams.java
  • src/main/java/com/chargebee/v4/models/gift/params/GiftCreateParams.java
  • src/main/java/com/chargebee/v4/models/grantBlock/GrantBlock.java
  • src/main/java/com/chargebee/v4/models/grantBlock/params/ListGrantBlocksParams.java
  • src/main/java/com/chargebee/v4/models/invoice/params/ImportInvoiceParams.java
  • src/main/java/com/chargebee/v4/models/invoice/params/InvoiceCreateForChargeItemsAndChargesParams.java
  • src/main/java/com/chargebee/v4/models/invoice/params/InvoiceCreateParams.java
  • src/main/java/com/chargebee/v4/models/invoice/params/InvoiceRecordPaymentParams.java
  • src/main/java/com/chargebee/v4/models/invoice/params/InvoiceRecordRefundParams.java
  • src/main/java/com/chargebee/v4/models/ledgerAccountBalance/LedgerAccountBalance.java
  • src/main/java/com/chargebee/v4/models/ledgerEntry/LedgerEntry.java
  • src/main/java/com/chargebee/v4/models/ledgerOperation/LedgerOperation.java
  • src/main/java/com/chargebee/v4/models/ledgerOperation/params/LedgerOperationAllocateParams.java
  • src/main/java/com/chargebee/v4/models/ledgerOperation/params/ListLedgerOperationsParams.java
  • src/main/java/com/chargebee/v4/models/ledgerOperation/responses/LedgerOperationAllocateResponse.java
  • src/main/java/com/chargebee/v4/models/ledgerOperation/responses/LedgerOperationAuthorizeResponse.java
  • src/main/java/com/chargebee/v4/models/ledgerOperation/responses/LedgerOperationCaptureAuthorizationResponse.java
  • src/main/java/com/chargebee/v4/models/ledgerOperation/responses/LedgerOperationCaptureResponse.java
  • src/main/java/com/chargebee/v4/models/ledgerOperation/responses/LedgerOperationReleaseAuthorizationResponse.java
  • src/main/java/com/chargebee/v4/models/paymentIntent/PaymentIntent.java
  • src/main/java/com/chargebee/v4/models/paymentIntent/params/PaymentIntentCreateParams.java
  • src/main/java/com/chargebee/v4/models/paymentIntent/params/PaymentIntentUpdateParams.java
  • src/main/java/com/chargebee/v4/models/paymentSource/PaymentSource.java
  • src/main/java/com/chargebee/v4/models/paymentSource/params/PaymentSourceCreateUsingPaymentIntentParams.java
  • src/main/java/com/chargebee/v4/models/paymentSource/params/PaymentSourceCreateUsingPermanentTokenParams.java
  • src/main/java/com/chargebee/v4/models/paymentSource/params/PaymentSourceCreateUsingTempTokenParams.java
  • src/main/java/com/chargebee/v4/models/paymentSource/params/PaymentSourceListParams.java
  • src/main/java/com/chargebee/v4/models/purchase/params/PurchaseCreateParams.java
  • src/main/java/com/chargebee/v4/models/ramp/params/RampListParams.java
  • src/main/java/com/chargebee/v4/models/subscription/params/ImportSubscriptionParams.java
  • src/main/java/com/chargebee/v4/models/subscription/params/SubscriptionCancelForItemsParams.java
  • src/main/java/com/chargebee/v4/models/subscription/params/SubscriptionCreateForCustomerParams.java
  • src/main/java/com/chargebee/v4/models/subscription/params/SubscriptionCreateParams.java
  • src/main/java/com/chargebee/v4/models/subscription/params/SubscriptionCreateWithItemsParams.java
  • src/main/java/com/chargebee/v4/models/subscription/params/SubscriptionImportForCustomerParams.java
  • src/main/java/com/chargebee/v4/models/subscription/params/SubscriptionImportForItemsParams.java
  • src/main/java/com/chargebee/v4/models/subscription/params/SubscriptionReactivateParams.java
  • src/main/java/com/chargebee/v4/models/subscription/params/SubscriptionResumeParams.java
  • src/main/java/com/chargebee/v4/models/subscription/params/SubscriptionUpdateForItemsParams.java
  • src/main/java/com/chargebee/v4/models/subscription/params/SubscriptionUpdateParams.java
  • src/main/java/com/chargebee/v4/models/thirdPartyPaymentMethod/ThirdPartyPaymentMethod.java
  • src/main/java/com/chargebee/v4/models/token/Token.java
  • src/main/java/com/chargebee/v4/models/transaction/Transaction.java
  • src/main/java/com/chargebee/v4/models/transaction/params/TransactionListParams.java
  • src/main/java/com/chargebee/v4/models/transaction/params/TransactionRecordRefundParams.java
  • src/main/java/com/chargebee/v4/services/CreditUnitService.java
  • src/main/java/com/chargebee/v4/services/LedgerOperationService.java

Comment thread src/main/java/com/chargebee/v4/services/CreditUnitService.java
@cb-alish
cb-alish merged commit 26d271e into v4 Jul 30, 2026
9 checks passed
@cb-alish
cb-alish deleted the release-v4.14.0 branch July 30, 2026 09:48
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