Release v4.14.0 - #113
Merged
Merged
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
WalkthroughVersion 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. Changesv4.14.0 API expansion
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
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
Possibly related PRs
🚥 Pre-merge checks | ❌ 1❌ Failed checks (1 warning)
Comment |
cb-karthikp
approved these changes
Jul 30, 2026
There was a problem hiding this comment.
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
📒 Files selected for processing (86)
CHANGELOG.mdVERSIONbuild.gradle.ktssrc/main/java/com/chargebee/v4/client/ClientMethods.javasrc/main/java/com/chargebee/v4/client/ClientMethodsImpl.javasrc/main/java/com/chargebee/v4/client/ServiceRegistry.javasrc/main/java/com/chargebee/v4/models/alert/Alert.javasrc/main/java/com/chargebee/v4/models/alert/params/AlertCreateParams.javasrc/main/java/com/chargebee/v4/models/alert/params/AlertListParams.javasrc/main/java/com/chargebee/v4/models/alert/params/ApplicationAlertsForSubscriptionParams.javasrc/main/java/com/chargebee/v4/models/creditNote/params/CreditNoteRecordRefundParams.javasrc/main/java/com/chargebee/v4/models/creditNote/params/ImportCreditNoteParams.javasrc/main/java/com/chargebee/v4/models/creditUnit/CreditUnit.javasrc/main/java/com/chargebee/v4/models/creditUnit/params/CreditUnitArchiveParams.javasrc/main/java/com/chargebee/v4/models/creditUnit/params/CreditUnitCreateParams.javasrc/main/java/com/chargebee/v4/models/creditUnit/params/CreditUnitListParams.javasrc/main/java/com/chargebee/v4/models/creditUnit/params/CreditUnitReactivateParams.javasrc/main/java/com/chargebee/v4/models/creditUnit/params/CreditUnitUpdateParams.javasrc/main/java/com/chargebee/v4/models/creditUnit/responses/CreditUnitArchiveResponse.javasrc/main/java/com/chargebee/v4/models/creditUnit/responses/CreditUnitCreateResponse.javasrc/main/java/com/chargebee/v4/models/creditUnit/responses/CreditUnitListResponse.javasrc/main/java/com/chargebee/v4/models/creditUnit/responses/CreditUnitReactivateResponse.javasrc/main/java/com/chargebee/v4/models/creditUnit/responses/CreditUnitUpdateResponse.javasrc/main/java/com/chargebee/v4/models/customer/Customer.javasrc/main/java/com/chargebee/v4/models/customer/params/CustomerCollectPaymentParams.javasrc/main/java/com/chargebee/v4/models/customer/params/CustomerCreateParams.javasrc/main/java/com/chargebee/v4/models/customer/params/CustomerRecordExcessPaymentParams.javasrc/main/java/com/chargebee/v4/models/customer/params/CustomerUpdatePaymentMethodParams.javasrc/main/java/com/chargebee/v4/models/entitlement/params/EntitlementListParams.javasrc/main/java/com/chargebee/v4/models/estimate/params/EstimateCancelSubscriptionForItemsParams.javasrc/main/java/com/chargebee/v4/models/estimate/params/EstimateGiftSubscriptionForItemsParams.javasrc/main/java/com/chargebee/v4/models/estimate/params/EstimateGiftSubscriptionParams.javasrc/main/java/com/chargebee/v4/models/event/Event.javasrc/main/java/com/chargebee/v4/models/event/GrantBlocksCreatedEvent.javasrc/main/java/com/chargebee/v4/models/event/GrantBlocksUpdatedEvent.javasrc/main/java/com/chargebee/v4/models/event/LedgerAccountBalanceUpdatedEvent.javasrc/main/java/com/chargebee/v4/models/event/LedgerUpdatedEvent.javasrc/main/java/com/chargebee/v4/models/event/params/EventListParams.javasrc/main/java/com/chargebee/v4/models/export/params/ExportTransactionsParams.javasrc/main/java/com/chargebee/v4/models/gift/params/GiftCreateForItemsParams.javasrc/main/java/com/chargebee/v4/models/gift/params/GiftCreateParams.javasrc/main/java/com/chargebee/v4/models/grantBlock/GrantBlock.javasrc/main/java/com/chargebee/v4/models/grantBlock/params/ListGrantBlocksParams.javasrc/main/java/com/chargebee/v4/models/invoice/params/ImportInvoiceParams.javasrc/main/java/com/chargebee/v4/models/invoice/params/InvoiceCreateForChargeItemsAndChargesParams.javasrc/main/java/com/chargebee/v4/models/invoice/params/InvoiceCreateParams.javasrc/main/java/com/chargebee/v4/models/invoice/params/InvoiceRecordPaymentParams.javasrc/main/java/com/chargebee/v4/models/invoice/params/InvoiceRecordRefundParams.javasrc/main/java/com/chargebee/v4/models/ledgerAccountBalance/LedgerAccountBalance.javasrc/main/java/com/chargebee/v4/models/ledgerEntry/LedgerEntry.javasrc/main/java/com/chargebee/v4/models/ledgerOperation/LedgerOperation.javasrc/main/java/com/chargebee/v4/models/ledgerOperation/params/LedgerOperationAllocateParams.javasrc/main/java/com/chargebee/v4/models/ledgerOperation/params/ListLedgerOperationsParams.javasrc/main/java/com/chargebee/v4/models/ledgerOperation/responses/LedgerOperationAllocateResponse.javasrc/main/java/com/chargebee/v4/models/ledgerOperation/responses/LedgerOperationAuthorizeResponse.javasrc/main/java/com/chargebee/v4/models/ledgerOperation/responses/LedgerOperationCaptureAuthorizationResponse.javasrc/main/java/com/chargebee/v4/models/ledgerOperation/responses/LedgerOperationCaptureResponse.javasrc/main/java/com/chargebee/v4/models/ledgerOperation/responses/LedgerOperationReleaseAuthorizationResponse.javasrc/main/java/com/chargebee/v4/models/paymentIntent/PaymentIntent.javasrc/main/java/com/chargebee/v4/models/paymentIntent/params/PaymentIntentCreateParams.javasrc/main/java/com/chargebee/v4/models/paymentIntent/params/PaymentIntentUpdateParams.javasrc/main/java/com/chargebee/v4/models/paymentSource/PaymentSource.javasrc/main/java/com/chargebee/v4/models/paymentSource/params/PaymentSourceCreateUsingPaymentIntentParams.javasrc/main/java/com/chargebee/v4/models/paymentSource/params/PaymentSourceCreateUsingPermanentTokenParams.javasrc/main/java/com/chargebee/v4/models/paymentSource/params/PaymentSourceCreateUsingTempTokenParams.javasrc/main/java/com/chargebee/v4/models/paymentSource/params/PaymentSourceListParams.javasrc/main/java/com/chargebee/v4/models/purchase/params/PurchaseCreateParams.javasrc/main/java/com/chargebee/v4/models/ramp/params/RampListParams.javasrc/main/java/com/chargebee/v4/models/subscription/params/ImportSubscriptionParams.javasrc/main/java/com/chargebee/v4/models/subscription/params/SubscriptionCancelForItemsParams.javasrc/main/java/com/chargebee/v4/models/subscription/params/SubscriptionCreateForCustomerParams.javasrc/main/java/com/chargebee/v4/models/subscription/params/SubscriptionCreateParams.javasrc/main/java/com/chargebee/v4/models/subscription/params/SubscriptionCreateWithItemsParams.javasrc/main/java/com/chargebee/v4/models/subscription/params/SubscriptionImportForCustomerParams.javasrc/main/java/com/chargebee/v4/models/subscription/params/SubscriptionImportForItemsParams.javasrc/main/java/com/chargebee/v4/models/subscription/params/SubscriptionReactivateParams.javasrc/main/java/com/chargebee/v4/models/subscription/params/SubscriptionResumeParams.javasrc/main/java/com/chargebee/v4/models/subscription/params/SubscriptionUpdateForItemsParams.javasrc/main/java/com/chargebee/v4/models/subscription/params/SubscriptionUpdateParams.javasrc/main/java/com/chargebee/v4/models/thirdPartyPaymentMethod/ThirdPartyPaymentMethod.javasrc/main/java/com/chargebee/v4/models/token/Token.javasrc/main/java/com/chargebee/v4/models/transaction/Transaction.javasrc/main/java/com/chargebee/v4/models/transaction/params/TransactionListParams.javasrc/main/java/com/chargebee/v4/models/transaction/params/TransactionRecordRefundParams.javasrc/main/java/com/chargebee/v4/services/CreditUnitService.javasrc/main/java/com/chargebee/v4/services/LedgerOperationService.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v4.14.0 (2026-07-30)
New Resources:
CreditUnithas been added.LedgerEntryhas been added.New Actions:
allocatehas been added toLedgerOperation.New Attributes:
unit_idhas been added toAlert.subscription_idhas been added toGrantBlock.modified_athas been added toGrantBlock.resource_versionhas been added toGrantBlock.created_athas been added toLedgerAccountBalance.resource_versionhas been added toLedgerAccountBalance.New Parameters:
account_typehas been added as query parameter tolist_grant_blocksinGrantBlock.unit_idhas been added as request body parameter tocreate_an_alertinAlert.include_cancellation_day_in_billinghas been added as request body parameter tocancel_subscription_for_items_estimateinEstimate.subscription_idhas been added as request body parameter toallocateinLedgerOperation.unit_idhas been added as request body parameter toallocateinLedgerOperation.amounthas been added as request body parameter toallocateinLedgerOperation.expires_athas been added as request body parameter toallocateinLedgerOperation.metadatahas been added as request body parameter toallocateinLedgerOperation.include_cancellation_day_in_billinghas been added as request body parameter tocancel_subscription_for_itemsinSubscription.New Events:
grant_blocks_createdhas been added.ledger_updatedhas been added.ledger_account_balance_updatedhas been added.grant_blocks_updatedhas been added.New Enums:
ledger_account_balance_updated,grant_blocks_created,grant_blocks_updated, andledger_updatedhave been added as new values enumEventType.dana,touch_n_go,tamara, andqpayhave been added as new values enumPaymentMethod.dana,touch_n_go,tamara, andqpayhave been added as new values enumPaymentMethodType.dana,touch_n_go,tamara,qpay,credit_balance_dropped,credit,debit,hold, andunholdhave been added as new values enumType.activeandarchivedhave been added as new values to enum attributestatusinCreditUnit.grant_renewalandsubscription_renewedhave been added as new values to enum attributegrant_sourceinGrantBlock.provisionedandoverdrafthave been added as new values to enum attributeaccount_typeinLedgerEntry.credit_unithas been added as a new value to enum attributeunit_typeinLedgerEntry.dana,touch_n_go,tamara, andqpayhave been added as new values to enum attributepayment_method_typeinPaymentIntent.dana,touch_n_go,tamara, andqpayhave been added as new values to enum attributeactive_payment_attempt.payment_method_typeinPaymentIntent.archivedandactivehave been added as new values to enum query parameterstatus.ininlist_credit_unitsofCreditUnit.archivedandactivehave been added as new values to enum query parameterstatus.isinlist_credit_unitsofCreditUnit.provisionedandoverdrafthave been added as new values to enum query parameteraccount_type.isinlist_grant_blocksofGrantBlock.dana,touch_n_go,tamara, andqpayhave been added as new values to enum request body parameterpayment_method_typeinupdate_a_payment_intentofPaymentIntent.dana,touch_n_go,tamara, andqpayhave been added as new values to enum request body parameterpayment_method_typeincreate_a_payment_intentofPaymentIntent.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.