Release 10.0.0 - #48
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-ruby-sdk 10.0.0 Changelog
Breaking Changes
unit_balanceis now anInteger | Stringunion. This affectsSubscriptionComponent,CreateSubscriptionComponent,MeteredUsage, andPrepaidUsage. Components that support fractional quantities return a string.GetOneTimeTokenRequest#payment_profilecan now be a bank account profile. The endpoint returnsGetOneTimeTokenPaymentProfileorGetOneTimeTokenBankAccountPaymentProfile. Ruby generates this as a plain any-of with no discriminator, so the object class is the only signal of 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_typeis now nullable. The API can now return nil on a profile that previously always carried a value.ListSubcriptionGroupPrepaymentItemis renamed toListSubscriptionGroupPrepaymentItem. We corrected a typo in the schema title, and Ruby class names come from the title. The properties of the model are unchanged.New Features
update_invoiceanddelete_invoicetoInvoicesController. 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.SubscriptionsController#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 Ruby.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 a single options hash, the reordered query parameters in the spec do not change any call site.New Models
UpdateInvoiceUpdateInvoiceItemUpdateInvoiceRequestGetOneTimeTokenBankAccountPaymentProfileQScope(enum)CollectionMethod1(enum). The1suffix avoids a collision with the existingCollectionMethod.GroupStatus(enum)The new unions are registered in
lib/advanced_billing/utilities/union_type_lookup.rbrather than generated as standalone classes. They cover theunit_balancefields,GetOneTimeTokenRequestPaymentProfile,ListSubscriptionsInputProduct, and sixUpdateInvoiceItemfields.Model Enhancements
Component,EbbComponent,MeteredComponent,OnOffComponent,PrepaidUsageComponent,QuantityBasedComponent,UpdateComponent,Product,CreateOrUpdateProductunspsc_code(String, nullable).Customer,CustomerAttributes,CreateCustomer,UpdateCustomersurcharging(TrueClass | FalseClass).ProductFamily,CreateProductFamilysurcharging(TrueClass | FalseClass).Customer,CreateCustomer,UpdateCustomer,Invoicebranding_theme_id(Integer, nullable).CreateSubscription,UpdateSubscriptionbranding_theme_id(Integer, nullable). Write-only. Create and update accept it, but the subscription response does not return it.SubscriptionProductChangeprevious_product_price_point_id(Integer, nullable).new_product_price_point_id(Integer, nullable).effective_at(DateTime, nullable).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, soEvent#event_specific_dataresolves the payload.Internal / Non-functional Changes
10.0.0.