Skip to content

Release v3.26.0#122

Open
cb-alish wants to merge 1 commit into
masterfrom
release-v3.26.0
Open

Release v3.26.0#122
cb-alish wants to merge 1 commit into
masterfrom
release-v3.26.0

Conversation

@cb-alish

Copy link
Copy Markdown
Collaborator

v3.26.0 (2026-06-12)

New Resources:

New Attributes:

New Parameters:

New Enums:

@snyk-io

snyk-io Bot commented Jun 12, 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

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

@hivel-marco hivel-marco 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.

PR Complexity Score: 4.1 - Moderate

View Breakdown
  • Lines Changed: 479
  • Files Changed: 16
  • Complexity Added: 9
  • Raw Score: 71.08
Overview

This PR releases version 3.26.0 of the Chargebee Node client, introducing support for new ledger and grant-related APIs and several new attributes and enums across existing resources. It wires up new API endpoints and TypeScript typings for GrantBlock, LedgerAccountBalance, LedgerOperation, and PromotionalGrant, along with enhanced querying/sorting capabilities. It also adds minor enhancements to CreditNote and HostedPage resources and updates the client version metadata.

Key Changes
  • Bumps library version from 3.25.0 to 3.26.0 in metadata (VERSION, package manifests, and Environment.clientVersion).
  • Adds new resources and endpoints:
    • GrantBlock: listing grant blocks with filtering/sorting, including new StatusEnum and related enums for grant source, account type, and unit type.
    • LedgerAccountBalance: listing balances per subscription/unit including provisioned and overdraft balances.
    • LedgerOperation: retrieval, listing, and mutation endpoints (capture, authorize, captureAuthorization, releaseAuthorization) with detailed type enums and balance deltas.
    • PromotionalGrant: endpoint to create promotional grants that return associated ledger_operations and grant_blocks.
  • Expands existing resources:
    • CreditNote now supports a notes?: string[] attribute.
    • HostedPage now supports a layout?: LayoutEnum attribute, and the updatePaymentMethod method is marked as deprecated in the typings.
    • OmnichannelSubscription.listOmnichannelSubscriptions input now supports sort_by[asc] and sort_by[desc] query parameters.
  • Adds a general StatusEnum (available, exhausted, scheduled, in_grace_period) to the core typings and wires new resource types into Content and the main chargebee resource map, enabling typed access to the new APIs.
Risks & Considerations
  • Removal of 'update_payment_method' from the HostedPage.type union may cause TypeScript compilation issues for consumers still relying on that enum value.
  • New methods and endpoints (ledgerOperation.capture/authorize/..., promotionalGrant.promotionalGrants, grantBlock.listGrantBlocks, ledgerAccountBalance.listLedgerAccountBalances) should be verified against the backend API for URL correctness and expected request/response shapes.
  • New enums and filters (especially type and sort_by parameters on ledger/grant/omnichannel endpoints) should be checked to confirm they align exactly with backend validation rules to avoid runtime API errors.
  • The new notes array on CreditNote and layout on HostedPage are optional, but downstream code may need updates to leverage them or to avoid assumptions about their absence.
File-level change summary
File Change summary
CHANGELOG.md Adds v3.26.0 release notes describing new resources, attributes, parameters, and enum values.
VERSION Bumps library version from 3.25.0 to 3.26.0.
package-lock.json Updates package version metadata to 3.26.0 in the lockfile.
package.json Updates NPM package version from 3.25.0 to 3.26.0.
src/environment.ts Updates Environment.clientVersion from v3.25.0 to v3.26.0.
src/resources/api_endpoints.ts Registers new API endpoints for ledger account balances, ledger operations (including capture/authorize flows), grant blocks, and promotional grants.
types/core.d.ts Introduces a new StatusEnum union type for grant block status values.
types/index.d.ts Adds references and exported resource handles for GrantBlock, LedgerAccountBalance, LedgerOperation, and PromotionalGrant.
types/resources/Content.d.ts Extends the content map to include grant_block, ledger_account_balance, ledger_operation, and promotional_grant resource types.
types/resources/CreditNote.d.ts Adds an optional notes?: string[] field to the CreditNote interface.
types/resources/GrantBlock.d.ts Introduces the GrantBlock interface and GrantBlockResource with a typed listGrantBlocks method and input/response contracts.
types/resources/HostedPage.d.ts Removes update_payment_method from the type union, adds optional layout attribute, and marks updatePaymentMethod as deprecated via JSDoc.
types/resources/LedgerAccountBalance.d.ts Adds LedgerAccountBalance interfaces and LedgerAccountBalanceResource with a typed listLedgerAccountBalances method.
types/resources/LedgerOperation.d.ts Adds LedgerOperation interfaces and LedgerOperationResource with retrieval, listing, and capture/authorize-related methods and their input/response types.
types/resources/OmnichannelSubscription.d.ts Extends list input params to support sort_by[asc] and sort_by[desc] for omnichannel subscriptions.
types/resources/PromotionalGrant.d.ts Adds PromotionalGrant interfaces and PromotionalGrantResource with a promotionalGrants method and corresponding input/response types.

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.

1 participant