Release v3.30.0 - #128
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. |
WalkthroughChangesChargebee v3.30.0 API surface
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant LedgerOperationResource
participant ChargebeeAPI
Client->>LedgerOperationResource: allocate(AllocateInputParam)
LedgerOperationResource->>ChargebeeAPI: POST /ledger_operations/allocate
ChargebeeAPI-->>LedgerOperationResource: AllocateResponse
LedgerOperationResource-->>Client: typed ledger operation response
🚥 Pre-merge checks | ✅ 1✅ Passed checks (1 passed)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 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 `@types/core.d.ts`:
- Around line 750-765: Keep TypeEnum resource-specific by removing non-alert
literals from the shared alias used by Alert.type, or introduce a dedicated
alert-type alias and update types/resources/Alert.d.ts to use it. Ensure
Alert.type accepts exactly the values permitted by src/schema/alert.schema.ts,
while preserving unrelated resource-specific enums elsewhere.
In `@types/resources/Event.d.ts`:
- Line 31: Update the Event.content type around GrantBlocksCreatedContent and
the other added payload intersections so unrelated webhook events do not require
every event-specific field. Replace the unconditional & chain with a
discriminated union keyed by the event type, or make those payload fields
optional while preserving required fields for their matching events; apply the
same correction to the related additions.
🪄 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: 54e22f6f-dee8-4716-9add-b7be3a28e0f3
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (53)
CHANGELOG.mdVERSIONpackage.jsonsrc/environment.tssrc/resources/api_endpoints.tssrc/resources/webhook/content.tssrc/resources/webhook/eventType.tssrc/schema/alert.schema.tssrc/schema/coupon.schema.tssrc/schema/credit_note.schema.tssrc/schema/credit_unit.schema.tssrc/schema/customer.schema.tssrc/schema/entitlement.schema.tssrc/schema/estimate.schema.tssrc/schema/event.schema.tssrc/schema/export.schema.tssrc/schema/gift.schema.tssrc/schema/grant_block.schema.tssrc/schema/index.tssrc/schema/invoice.schema.tssrc/schema/item.schema.tssrc/schema/item_family.schema.tssrc/schema/item_price.schema.tssrc/schema/ledger_operation.schema.tssrc/schema/meter.schema.tssrc/schema/payment_intent.schema.tssrc/schema/payment_source.schema.tssrc/schema/price_variant.schema.tssrc/schema/purchase.schema.tssrc/schema/ramp.schema.tssrc/schema/subscription.schema.tssrc/schema/transaction.schema.tssrc/schema/webhook_endpoint.schema.tstypes/core.d.tstypes/index.d.tstypes/resources/Alert.d.tstypes/resources/AttachedItem.d.tstypes/resources/Content.d.tstypes/resources/CreditUnit.d.tstypes/resources/Customer.d.tstypes/resources/Estimate.d.tstypes/resources/Event.d.tstypes/resources/Gift.d.tstypes/resources/GrantBlock.d.tstypes/resources/Invoice.d.tstypes/resources/LedgerAccountBalance.d.tstypes/resources/LedgerEntry.d.tstypes/resources/LedgerOperation.d.tstypes/resources/PaymentIntent.d.tstypes/resources/PaymentSource.d.tstypes/resources/Purchase.d.tstypes/resources/Subscription.d.tstypes/resources/WebhookEvent.d.ts
cb-karthikp
approved these changes
Jul 30, 2026
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.
v3.30.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 v3.30.0 with CreditUnit and LedgerEntry resources, ledger allocation support, expanded payment methods and request attributes, new grant-block and ledger webhook events, updated enums and TypeScript typings, and synchronized package, client, and changelog versions.