Uh oh!
There was an error while loading. Please reload this page.
Release 10.0.0 - #65
Merged
Merged
Conversation
lucassus
approved these changes
Aug 13, 2026
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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-python-sdk 10.0.0 Changelog
Breaking Changes
unit_balancevalues are nowint | str. This affectsSubscriptionComponent,CreateSubscriptionComponent,MeteredUsage, andPrepaidUsage. Components that support fractional quantities return a string.GetOneTimeTokenRequest.payment_profileis now a union. The endpoint can returnGetOneTimeTokenPaymentProfileorGetOneTimeTokenBankAccountPaymentProfile. The concrete class identifies which variant came back. The credit card class keeps its old name, because the spec file was renamed but the schema title was not.CreditCardPaymentProfile.card_typecan now beNone. The API can now returnNoneon a profile that previously always carried a value.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.New Features
update_invoiceanddelete_invoiceto the invoices controller. Both act only on ad hoc invoices indraftstatus.subscription_product_change_scheduledwebhook event, asEventKey.SUBSCRIPTION_PRODUCT_CHANGE_SCHEDULEDandWebhookSubscription.SUBSCRIPTION_PRODUCT_CHANGE_SCHEDULED. The payload deserializes into the existingSubscriptionProductChangemodel.list_subscriptions:q,q_scope,customer_id,collection_method,group_status,dunning_exemption,payment_gateways,currencies, andbranding_theme_id.productfilter onlist_subscriptionsnow also accepts a string. It takes a product ID or an exact product name, but not a handle. Existing integer values keep working, so this is not a breaking change in Python.SubscriptionListIncludevalues:CURRENT_ACCOUNT_BALANCE_IN_CENTS,CURRENT_BILLING_AMOUNT, andCOUPONS.SubscriptionStateFiltervalues:ENUM_EXPIRED_CARDS_LIVE_SUBSCRIPTIONS,ENUM_EXPIRED_CARDS_ALL_SUBSCRIPTIONS,AWAITING_SIGNUP,AWAITING_SIGNUP_DATE, andPREPAID_DUNNING.Because
list_subscriptionstakes keyword options, the reordered query parameters in the spec do not change any call site.New Models
UpdateInvoiceUpdateInvoiceItemUpdateInvoiceRequestGetOneTimeTokenBankAccountPaymentProfileQScope(enum)GroupStatus(enum)CollectionMethod1(enum). The1suffix avoids a collision with the existingCollectionMethod.CollectionMethod1,GroupStatus, andQScopeare registered inadvancedbilling/models/__init__.pyand are importable from the models package. The new unions are registered inadvancedbilling/utilities/union_type_lookup.pyrather than generated as standalone classes.Model Enhancements
Component,CreateOrUpdateProduct,Product,EBBComponent,MeteredComponent,OnOffComponent,PrepaidUsageComponent,QuantityBasedComponent,UpdateComponentunspsc_code(Optional[str], nullable). This holds a custom UNSPSC commodity code.Customersurcharging(Optional[bool]).branding_theme_id(Optional[int], nullable).CustomerAttributessurcharging(Optional[bool]).CreateCustomersurcharging(Optional[bool]).branding_theme_id(Optional[int], nullable).UpdateCustomersurcharging(Optional[bool]).branding_theme_id(Optional[int], nullable).ProductFamilysurcharging(Optional[bool]).CreateProductFamilysurcharging(Optional[bool]).CreateSubscriptionbranding_theme_id(Optional[int], nullable). Write-only. The subscription response does not return it.UpdateSubscriptionbranding_theme_id(Optional[int], nullable). Write-only. The subscription response does not return it.Invoicebranding_theme_id(Optional[int], nullable).SubscriptionProductChangeprevious_product_price_point_id(Optional[int], nullable).new_product_price_point_id(Optional[int], nullable).effective_at(Optional[datetime], nullable).subscription_product_change_scheduledevent populates these three fields.GetOneTimeTokenPaymentProfilevalidate()classmethod so the model can take part in the newpayment_profileunion.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, soEvent.event_specific_dataresolves the payload.Internal / Non-functional Changes
10.0.0.