Release 10.0.0 - #108
Merged
Merged
Conversation
lucassus
previously approved these changes
Aug 13, 2026
lucassus
approved these changes
Aug 14, 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.
ab-typescript-sdk 10.0.0 Changelog
Breaking Changes
unit_balanceis now anumber | stringunion. This affectsSubscriptionComponent,CreateSubscriptionComponent,MeteredUsage, andPrepaidUsage. Code that assumed a number no longer type-checks without narrowing. The runtime schema also accepts strings now.GetOneTimeTokenRequest.paymentProfileis now a union of credit card and bank account profiles. The endpoint can return either variant, keyed onpayment_type. The profile fields are not reachable until the value is narrowed, and the container ships narrowing helpers for each variant.listSubscriptionsnow takesListSubscriptionsInputProductfor theproductfilter. The filter accepts a product ID or an exact product name. Product handles are not supported.ListSubcriptionGroupPrepaymentItemis renamed toListSubscriptionGroupPrepaymentItem. We corrected a typo in the schema title, and the generated type name follows the title. The properties of the interface are unchanged.CreditCardPaymentProfile.cardTypeis now nullable. The API can now return null on a profile that previously always carried a value.The reordered query parameters in the spec do not affect TypeScript.
listSubscriptionstakes an options object, so parameter order does not change any call site.New Features
updateInvoiceanddeleteInvoiceto the invoices controller. Both act only on ad hoc invoices indraftstatus.subscription_product_change_scheduledwebhook event, asEventKey.SubscriptionProductChangeScheduledandWebhookSubscription.SubscriptionProductChangeScheduled. The payload deserializes into the existingSubscriptionProductChangemodel.listSubscriptions:q,qScope,customerId,collectionMethod,groupStatus,dunningExemption,paymentGateways,currencies, andbrandingThemeId.SubscriptionListIncludemembers:CurrentAccountBalanceInCents,CurrentBillingAmount, andCoupons.SubscriptionStateFiltermembers:EnumExpiredCardsLiveSubscriptions,EnumExpiredCardsAllSubscriptions,AwaitingSignup,AwaitingSignupDate, andPrepaidDunning.New Models
UpdateInvoiceUpdateInvoiceItemUpdateInvoiceRequestGetOneTimeTokenBankAccountPaymentProfileQScope(enum)GroupStatus(enum)CollectionMethod1(enum). The1suffix avoids a collision with the existingCollectionMethod, which is unchanged.New union types, each with narrowing helpers:
SubscriptionComponentUnitBalanceCreateSubscriptionComponentUnitBalanceMeteredUsageNewUnitBalancePrepaidUsageNewUnitBalancePrepaidUsageNewOverageUnitBalanceGetOneTimeTokenRequestPaymentProfileListSubscriptionsInputProductUpdateInvoiceItemQuantityUpdateInvoiceItemUnitPriceUpdateInvoiceItemProductIdUpdateInvoiceItemComponentIdUpdateInvoiceItemPricePointIdUpdateInvoiceItemProductPricePointIdModel Enhancements
Component,CreateOrUpdateProduct,Product,EBBComponent,MeteredComponent,OnOffComponent,PrepaidUsageComponent,QuantityBasedComponent,UpdateComponentunspscCode(string | null).Customersurcharging(boolean).brandingThemeId(number | null).CustomerAttributessurcharging(boolean).CreateCustomersurcharging(boolean).brandingThemeId(number | null).UpdateCustomersurcharging(boolean).brandingThemeId(number | null).ProductFamilysurcharging(boolean).CreateProductFamilysurcharging(boolean).CreateSubscriptionbrandingThemeId(number | null). Write-only. The subscription response does not return it.UpdateSubscriptionbrandingThemeId(number | null). Write-only. The subscription response does not return it.InvoicebrandingThemeId(number | null).SubscriptionProductChangepreviousProductPricePointId(number | null).newProductPricePointId(number | null).effectiveAt(string | null).subscription_product_change_scheduledevent populates these three fields.Bug Fixes
subscription_product_change_scheduledevents no longer fail schema validation. The payload carriesprevious_product_price_point_id,new_product_price_point_id, andeffective_at.SubscriptionProductChangedid not model these fields. They are now part of the interface and the runtime schema.Internal / Non-functional Changes
10.0.0.@apimatic/corebumped to0.10.30.