Release 10.0.0 - #56
Merged
Merged
Conversation
lucassus
approved these changes
Aug 13, 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-dotnet-sdk 10.0.0 Changelog
Breaking Changes
unit_balanceis now a union container instead of an integer. This affectsSubscriptionComponent,CreateSubscriptionComponent,MeteredUsage, andPrepaidUsage. Each container exposesFromNumberandFromStringfactory methods, and aMatchmethod that takes a handler for each case.GetOneTimeTokenRequest.PaymentProfileis now a discriminated union. The endpoint can return a credit card profile or a bank account profile, keyed onpayment_type. Direct property access no longer reaches the profile fields, andGetOneTimeTokenRequestPaymentProfileexposesMatchfor both variants.ListSubscriptionsInput.Productis now a union container. The filter accepts a product ID or an exact product name. Product handles are not supported.ListSubscriptionsInputProductexposesFromNumberandFromStringfactory methods.ListSubcriptionGroupPrepaymentItemis renamed toListSubscriptionGroupPrepaymentItem. We corrected a typo in the schema title, and the generated class name follows the title. The properties of the model are unchanged.ListSubscriptionsInputconstructor argument order changed. The parameter count went from 16 to 25.sortanddirectionmoved to positions 3 and 4.Surchargingwas inserted mid-list in four customer constructors. The new parameter sits directly aftertaxExemptonCustomer,CustomerAttributes,CreateCustomer, andUpdateCustomer. Every parameter after it shifted by one position. For positional calls, a type mismatch usually causes a compile error, but a positionalnullcan bind toSurchargingsilently.CreditCardPaymentProfile.CardTypecan now be null. The C# type is unchanged atModels.CardType?, so this does not break compilation. The API can now return null on a profile that previously always carried a value.New Features
UpdateInvoiceandDeleteInvoicetoInvoicesController, with async variants. Both act only on ad hoc invoices indraftstatus.subscription_product_change_scheduledwebhook event, asEventKey.SubscriptionProductChangeScheduledandWebhookSubscription.SubscriptionProductChangeScheduled. The payload deserializes into the existingSubscriptionProductChangemodel.ListSubscriptionsInput:Q,QScope,CustomerId,CollectionMethod,GroupStatus,DunningExemption,PaymentGateways,Currencies, andBrandingThemeId.SubscriptionListIncludevalues:CurrentAccountBalanceInCents,CurrentBillingAmount, andCoupons.SubscriptionStateFiltervalues:EnumExpiredCardsLiveSubscriptions,EnumExpiredCardsAllSubscriptions,AwaitingSignup,AwaitingSignupDate, andPrepaidDunning.New Models
UpdateInvoiceUpdateInvoiceItemUpdateInvoiceRequestGetOneTimeTokenBankAccountPaymentProfileQScope(enum)GroupStatus(enum)CollectionMethod1(enum). The1suffix avoids a collision with the existingCollectionMethod.New container types under
AdvancedBilling.Standard.Models.Containers:SubscriptionComponentUnitBalanceCreateSubscriptionComponentUnitBalanceMeteredUsageNewUnitBalancePrepaidUsageNewUnitBalancePrepaidUsageNewOverageUnitBalanceGetOneTimeTokenRequestPaymentProfileListSubscriptionsInputProductUpdateInvoiceItemQuantityUpdateInvoiceItemUnitPriceUpdateInvoiceItemProductIdUpdateInvoiceItemProductPricePointIdUpdateInvoiceItemComponentIdUpdateInvoiceItemPricePointIdModel Enhancements
Component,CreateOrUpdateProduct,Product,EBBComponent,MeteredComponent,OnOffComponent,PrepaidUsageComponent,QuantityBasedComponent,UpdateComponentUnspscCode(string?).CustomerSurcharging(bool?).BrandingThemeId(int?).CustomerAttributesSurcharging(bool?).CreateCustomerSurcharging(bool?).BrandingThemeId(int?).UpdateCustomerSurcharging(bool?).BrandingThemeId(int?).ProductFamilySurcharging(bool?).CreateProductFamilySurcharging(bool?).CreateSubscriptionBrandingThemeId(int?). Write-only. The subscription response does not return it.UpdateSubscriptionBrandingThemeId(int?). Write-only. The subscription response does not return it.InvoiceBrandingThemeId(int?).SubscriptionProductChangePreviousProductPricePointId(int?).NewProductPricePointId(int?).EffectiveAt(DateTimeOffset?).subscription_product_change_scheduledevent populates these three fields.Bug Fixes
subscription_product_change_scheduledevents no longer fail to deserialize. The payload carriesprevious_product_price_point_id,new_product_price_point_id, andeffective_at.SubscriptionProductChangedid not model these fields. It now does.Internal / Non-functional Changes