Release v3.29.0#127
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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (23)
💤 Files with no reviewable changes (1)
WalkthroughThe 3.29.0 release adds metering resources and endpoints, expands webhook and resource typings, updates API enums and parameters, removes deprecated attributes, changes telemetry error mapping, and synchronizes package version metadata. ChangesAPI resources and release wiring
Webhook and type contracts
Telemetry error attributes
Estimated code review effort: 3 (Moderate) | ~25 minutes 🚥 Pre-merge checks | ✅ 1✅ Passed checks (1 passed)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 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/resources/webhook/content.ts`:
- Around line 801-805: Update the PaymentSourceBusinessEntityChangedContent
interface to use the webhook payload’s snake_case property names, changing
BusinessEntityTransfer to business_entity_transfer and PaymentSource to
payment_source while preserving their existing Chargebee types.
In `@src/telemetry/TelemetryAdapter.ts`:
- Around line 168-181: Update the error-normalization logic in TelemetryAdapter
so the Error instance check occurs before the null/object-type guard. Return `{
message: err.message }` immediately for native Error instances, then apply the
existing object extraction only to non-Error objects and preserve the current
undefined behavior for null and non-object values.
In `@types/resources/MeteredFeature.d.ts`:
- Around line 9-10: Update the type and status properties in MeteredFeature to
derive their types from Meter: use Meter['type'] for type and
NonNullable<Meter['status']> for status, replacing the broader TypeEnum and
StatusEnum references.
🪄 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: Enterprise
Run ID: da1a3574-12e1-46ee-ac1b-9ebf66574e6c
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (42)
CHANGELOG.mdVERSIONpackage.jsonsrc/chargebee.cjs.tssrc/environment.tssrc/resources/api_endpoints.tssrc/resources/webhook/content.tssrc/resources/webhook/eventType.tssrc/telemetry/TelemetryAdapter.tstest/requestWrapper.test.tstypes/core.d.tstypes/index.d.tstypes/resources/Alert.d.tstypes/resources/AsyncResponse.d.tstypes/resources/AsyncResponseList.d.tstypes/resources/ColumnDefinition.d.tstypes/resources/Content.d.tstypes/resources/CreditNote.d.tstypes/resources/CreditNoteEstimate.d.tstypes/resources/Customer.d.tstypes/resources/Estimate.d.tstypes/resources/Event.d.tstypes/resources/Export.d.tstypes/resources/Feature.d.tstypes/resources/Gift.d.tstypes/resources/GrantBlock.d.tstypes/resources/Invoice.d.tstypes/resources/InvoiceEstimate.d.tstypes/resources/LedgerOperation.d.tstypes/resources/Meter.d.tstypes/resources/MeteredFeature.d.tstypes/resources/PaymentIntent.d.tstypes/resources/PaymentSource.d.tstypes/resources/PromotionalGrant.d.tstypes/resources/Purchase.d.tstypes/resources/Quote.d.tstypes/resources/QuoteLineGroup.d.tstypes/resources/QuotedCharge.d.tstypes/resources/Ramp.d.tstypes/resources/RecordedPurchase.d.tstypes/resources/Subscription.d.tstypes/resources/WebhookEvent.d.ts
v3.29.0 (2026-07-21)
New Resources:
AsyncResponsehas been added.AsyncResponseListhas been added.ColumnDefinitionhas been added.Meterhas been added.MeteredFeaturehas been added.New Attributes:
currency_codehas been added toAlert.thresholdhas been added toAlert.filter_conditionshas been added toAlert.exchange_rateshas been added toCreditNote.meteredhas been added toFeature.exchange_rateshas been added toInvoice.payment_intent_metadatahas been added toPaymentIntent.New Parameters:
meteredhas been added as query parameter tolist_featuresinFeature.decommissionedhas been added as query parameter tolist_subscriptionsinSubscription.currency_codehas been added as request body parameter tocreate_an_alertinAlert.line_items.proration_modehas been added as request body parameter toimport_credit_noteinCreditNote.item_prices.descriptionhas been added as request body parameter tocreate_invoice_for_items_estimateinEstimate.item_prices.entity_descriptionhas been added as request body parameter tocreate_invoice_for_items_estimateinEstimate.charges.entity_descriptionhas been added as request body parameter tocreate_invoice_for_items_estimateinEstimate.subscription.decommissionedhas been added as request body parameter toexport_subscriptionsinExport.item_prices.descriptionhas been added as request body parameter tocreate_invoice_for_items_and_one-time_chargesinInvoice.item_prices.entity_descriptionhas been added as request body parameter tocreate_invoice_for_items_and_one-time_chargesinInvoice.charges.entity_descriptionhas been added as request body parameter tocreate_invoice_for_items_and_one-time_chargesinInvoice.create_pending_invoicehas been added as request body parameter tocreate_invoice_for_items_and_one-time_chargesinInvoice.line_items.proration_modehas been added as request body parameter toimport_invoiceinInvoice.paid_athas been added as request body parameter toimport_invoiceinInvoice.discounts_to_add.quantityhas been added as request body parameter tocreate_a_rampinRamp.discounts_to_add.quantityhas been added as request body parameter toupdate_a_subscription_rampinRamp.customer.emailhas been added as request body parameter torecord_a_purchaseinRecordedPurchase.customer.first_namehas been added as request body parameter torecord_a_purchaseinRecordedPurchase.customer.last_namehas been added as request body parameter torecord_a_purchaseinRecordedPurchase.Parameter Updates:
metered_feature_idhas been changed from required to optional increate_an_alertofAlert.New Events:
payment_source_business_entity_changedhas been added.Deleted Attributes:
start_balancehas been removed fromLedgerOperation.end_balancehas been removed fromLedgerOperation.New Enums:
real_time_paymentshas been added as a new value enumDunningType.payment_source_business_entity_changedhas been added as a new value enumEventType.paynow,bizum, andpromptpayhave been added as new values enumPaymentMethod.paynow,bizum, andpromptpayhave been added as new values enumPaymentMethodType.active,archived, anddeletedhave been added as new values enumStatus.zero_rated,region_non_taxable,product_exempt,high_value_physical_goods,zero_value_item, andtax_not_configured_external_providerhave been added as new values enumTaxOverrideReason.paynow,bizum,promptpay,simple,compound, andspend_exceededhave been added as new values enumType.successandfailedhave been added as new values to enum attributestatusinAsyncResponse.numberandstringhave been added as new values to enum attributedata_typeinColumnDefinition.simpleandcompoundhave been added as new values to enum attributetypeinMeter.active,archived, anddeletedhave been added as new values to enum attributestatusinMeter.paynow,bizum, andpromptpayhave been added as new values to enum attributepayment_method_typeinPaymentIntent.paynow,bizum, andpromptpayhave been added as new values to enum attributeactive_payment_attempt.payment_method_typeinPaymentIntent.cb_js,components_fields,checkout_v3,paynow_v3,portal_v3,gift_v3,checkout_v4,payment_component,pc_inapp_v4, andpc_fpc_v4have been added as new values to enum attributepayment_intent_metadata.sourceinPaymentIntent.adjusted_term,service_period_revision,delta, andresethave been added as new values to enum request body parameterline_items.proration_modeinimport_credit_noteofCreditNote.trueandfalsehave been added as new values to enum query parametermetered.isinlist_featuresofFeature.adjusted_term,service_period_revision,delta, andresethave been added as new values to enum request body parameterline_items.proration_modeinimport_invoiceofInvoice.updated_at,name,created_at, andidhave been added as new values to enum query parametersort_by.ascinlist_all_available_metersofMeter.updated_at,name,created_at, andidhave been added as new values to enum query parametersort_by.descinlist_all_available_metersofMeter.numberandstringhave been added as new values to enum request body parametercolumn_definitions.data_typeincreate_a_metered_featureofMeteredFeature.paynow,bizum, andpromptpayhave been added as new values to enum request body parameterpayment_method_typeinupdate_a_payment_intentofPaymentIntent.paynow,bizum, andpromptpayhave been added as new values to enum request body parameterpayment_method_typeincreate_a_payment_intentofPaymentIntent.trueandfalsehave been added as new values to enum query parameterdecommissioned.isinlist_subscriptionsofSubscription.Released v3.29.0 with new AsyncResponse, AsyncResponseList, ColumnDefinition, Meter, and MeteredFeature resources, expanded request/response typings and enum values (including payment-method and proration support), added webhook typing for payment_source_business_entity_changed, and removed LedgerOperation start/end balances; also adjusted telemetry error handling.