feat(deps): update dependency stripe to v12.5.1#56
Open
renovate[bot] wants to merge 1 commit intodevfrom
Open
Conversation
98d8f43 to
458e5dd
Compare
458e5dd to
94fab46
Compare
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.
This PR contains the following updates:
==12.3.0→==12.5.1Release Notes
stripe/stripe-python (stripe)
v12.5.1Compare Source
starting_after == Nonestarting_afterwas set toNonebut backwards if it was not set at all. Now, it will paginate backwards in both cases.v12.5.0Compare Source
This release changes the pinned API version to⚠️ below)
2025-09-30.cloverand contains breaking changes (prefixed with#1604 Fixed InvoiceLineItem method definition
InvoiceLineItem.modifyandInvoiceLineItem.modify_asyncnow requireinvoiceandline_item_idas method parameters.InvoiceLineItem.ModifyParamclass. Use atyping.dictto type hint instead.#1538⚠️ Add strongly typed EventNotifications
We've overhauled how V2 Events are handled in the SDK! This approach should provide a lot more information at authoring and compile time, leading to more robust integrations. As part of this process, there are a number of changes to be aware of.
EventNotificationclasses to every v2Event. For example, there's now aV1BillingMeterErrorReportTriggeredEventNotificationto match the existingV1BillingMeterErrorReportTriggeredEvent. Each notification class defines afetch_event()method to retrieve its corresponding event. For events with related objects, there's afetch_related_object()method that performs the API call and casts the response to the correct type.StripeClient.parse_thin_eventtoStripeClient.parse_event_notificationand remove theStripe.ThinEventclass.stripe.v2.core.EventNotification(which is the shared base class that all of the more specificstripe.events.*EventNotificationclasses share) instead ofStripe.ThinEvent. When applicable, these event notifications will have therelated_objectproperty and afetch_related_object()function. They also have afetch_()method to retrieve their correspondingstripe.events.*Eventinstance.Stripe.Events.UnknownEventNotificationinstead of a more specific type. It has both therelatedObjectproperty and theFetchRelatedObject()function (but they may be/returnnull)#1602 Move
V2.EventAPI resources toV2.Core.Eventsstripe.v2._eventandstripe.v2._event_destinationtostripe.v2.core._eventandstripe.v2.core._event_destinationrespectively. They now correctly match their API path#1589 Add
StripeContextobjectStripeContextclass. Previously, one could only pass a string forstripe_context. You can now use the new class as well.EventNotification(formerly known asThinEvent)'scontextproperty fromstringtoStripeContext#1565⚠️ Build SDK w/ V2 OpenAPI spec
StripeClient.v2namespace) now return aV2DeletedObjectwhich has the id of the object that has been deleted and a string representing the type of the object that has been deleted.Dict[str, Any]. Because there were no params, it's unlikely you were using these classes.#1569 Renamed Urllib2Client to UrllibClient
http_client.Urllib2Clienttohttp_client.UrllibClientas Pythonurllib2was renamed tourllibin Python 3.#1606⚠️ drop support for Python 3.6 & clarify version policy
#1596⚠️ Unify resource and service method parameters into one class
_stripe._account.Account.CreateParamsand_stripe._account_service.CreateParamshave moved to_stripe.params._account_create_params.AccountCreateParams#1572 migrate from
setup.pytopyproject.tomlsetup.pytopyproject.toml. As a result, we're dropping support forpip < 10.0.0(released April 2018).#1570 Don't use mutable default arguments
Noneas the default function argument instead of{}client = StripeClient("sk_test...") # Accessing V1 Stripe services on a StripeClient should be through the V1 namespace - client.customers.list() + client.v1.customers.list()Refer to the migration guide for help upgrading.
#1603⚠️ Remove deprecated compatibility exports
stripemodule directly; now that's the only place to import them. Specifically, we removed:stripe.stripe_responsestripe.stripe_objectstripe.error_objectstripe.errorstripe.http_clientstripe.utilstripe.oauthstripe.webhookstripe.multipart_data_generatorstripe.request_metricsstripe.api_resources.abstractstripe.api_resourcesTo update your code, follow this pattern:
FileUploadaliasTo update your code:
ioimport fromstripe._util. If you had code relying onstripe.util.io, you'll need to import theiopackage directly yourself.UrllibClienttostripeto make creating your own HTTP client easier.#1567, #1593, #1607, #1605 Update generated code based on incoming API changes in the
2025-09-30.cloverAPI version.balance_reportandpayout_reconciliation_reportonAccountSession.ComponentandAccountSession.CreateParamsComponentsaturdayandsundayfrom enumsAccount.CreateParamsSettingPayoutSchedule.weekly_payout_days,Account.ModifyParamsSettingPayoutSchedule.weekly_payout_days, andAccount.Setting.Payout.Schedule.weekly_payout_daysiterationsonInvoice.CreatePreviewParamsScheduleDetailPhase,SubscriptionSchedule.CreateParamsPhase, andSubscriptionSchedule.ModifyParamsPhaselinkandpay_by_bankonPaymentMethod.ModifyParamscoupononDiscount,PromotionCode.CreateParams, andPromotionCode. UseDiscount.source.coupon,PromotionCode.CreateParams.promotion.coupon, andPromotionCode.promotion.couponinstead.preventedon enumDispute.statusInvoice.idto be required.BalanceSettingsmodifyandretrievemethods on resourceBalanceSettingsexternal_requestandunsupported_business_typeon enumsAccount.FutureRequirement.Error.code,Account.Requirement.Error.code,BankAccount.FutureRequirement.Error.code,BankAccount.Requirement.Error.code,Capability.FutureRequirement.Error.code,Capability.Requirement.Error.code,Person.FutureRequirement.Error.code, andPerson.Requirement.Error.codesourceonDiscountmb_way_paymentsonAccount.Capability,Account.CreateParamsCapability, andAccount.ModifyParamsCapabilitytrial_update_behavioronBillingPortal.Configuration.Feature.SubscriptionUpdate,billing_portal.Configuration.CreateParamsFeatureSubscriptionUpdate, andbilling_portal.Configuration.ModifyParamsFeatureSubscriptionUpdatemb_wayonCharge.PaymentMethodDetail,ConfirmationToken.CreateParamsPaymentMethodDatum,ConfirmationToken.PaymentMethodPreview,PaymentIntent.ConfirmParamsPaymentMethodDatum,PaymentIntent.ConfirmParamsPaymentMethodOption,PaymentIntent.CreateParamsPaymentMethodDatum,PaymentIntent.CreateParamsPaymentMethodOption,PaymentIntent.ModifyParamsPaymentMethodDatum,PaymentIntent.ModifyParamsPaymentMethodOption,PaymentIntent.PaymentMethodOption,PaymentMethod.CreateParams,PaymentMethod,SetupIntent.ConfirmParamsPaymentMethodDatum,SetupIntent.CreateParamsPaymentMethodDatum, andSetupIntent.ModifyParamsPaymentMethodDatumbranding_settingsandname_collectiononCheckout.Sessionandcheckout.Session.CreateParamsexcluded_payment_method_typesonCheckout.Session,PaymentIntent.ConfirmParams,PaymentIntent.ModifyParams, andcheckout.Session.CreateParamsunit_labelonInvoice.AddLinesParamsLinePriceDatumProductDatum,Invoice.UpdateLinesParamsLinePriceDatumProductDatum,InvoiceLineItem.ModifyParamsPriceDatumProductDatum,PaymentLink.CreateParamsLineItemPriceDatumProductDatum, andcheckout.Session.CreateParamsLineItemPriceDatumProductDatumalma,billie, andsatispayonCheckout.Session.PaymentMethodOptionandcheckout.Session.CreateParamsPaymentMethodOptiondemo_payoncheckout.Session.CreateParamsPaymentMethodOptioncapture_methodonCheckout.Session.PaymentMethodOption.Affirm,Checkout.Session.PaymentMethodOption.AfterpayClearpay,Checkout.Session.PaymentMethodOption.AmazonPay,Checkout.Session.PaymentMethodOption.Card,Checkout.Session.PaymentMethodOption.Cashapp,Checkout.Session.PaymentMethodOption.Klarna,Checkout.Session.PaymentMethodOption.Link,Checkout.Session.PaymentMethodOption.Mobilepay,Checkout.Session.PaymentMethodOption.RevolutPay,checkout.Session.CreateParamsPaymentMethodOptionAffirm,checkout.Session.CreateParamsPaymentMethodOptionAfterpayClearpay,checkout.Session.CreateParamsPaymentMethodOptionAmazonPay,checkout.Session.CreateParamsPaymentMethodOptionCard,checkout.Session.CreateParamsPaymentMethodOptionCashapp,checkout.Session.CreateParamsPaymentMethodOptionKlarna,checkout.Session.CreateParamsPaymentMethodOptionLink,checkout.Session.CreateParamsPaymentMethodOptionMobilepay, andcheckout.Session.CreateParamsPaymentMethodOptionRevolutPayflexibleonInvoice.CreatePreviewParamsScheduleDetailBillingMode,Invoice.CreatePreviewParamsSubscriptionDetailBillingMode,Quote.CreateParamsSubscriptionDatumBillingMode,Quote.SubscriptionDatum.BillingMode,Subscription.BillingMode,Subscription.CreateParamsBillingMode,Subscription.MigrateParamsBillingMode,SubscriptionSchedule.BillingMode,SubscriptionSchedule.CreateParamsBillingMode, andcheckout.Session.CreateParamsSubscriptionDatumBillingModebusiness_nameandindividual_nameonCheckout.Session.CollectedInformation,Checkout.Session.CustomerDetail,Customer.CreateParams,Customer.ModifyParams, andCustomermb_wayon enumsConfirmationToken.CreateParamsPaymentMethodDatum.type,PaymentIntent.ConfirmParamsPaymentMethodDatum.type,PaymentIntent.CreateParamsPaymentMethodDatum.type,PaymentIntent.ModifyParamsPaymentMethodDatum.type,SetupIntent.ConfirmParamsPaymentMethodDatum.type,SetupIntent.CreateParamsPaymentMethodDatum.type, andSetupIntent.ModifyParamsPaymentMethodDatum.typemb_wayon enumsConfirmationToken.PaymentMethodPreview.typeandPaymentMethod.typemb_wayon enumsCustomer.ListPaymentMethodsParams.type,PaymentMethod.CreateParams.type, andPaymentMethod.ListParams.typechargeback_loss_reason_codeonDispute.PaymentMethodDetail.Klarnanet_amountandproration_detailsonInvoiceItemfraud_disputability_likelihoodandrisk_assessmentonissuing.Authorization.CreateParamssecond_lineonIssuing.Cardmb_wayon enumsPaymentIntent.CreateParams.excluded_payment_method_typesandPaymentIntent.excluded_payment_method_typesfr_meal_voucher_conecsonPaymentMethodConfiguration.CreateParamsandPaymentMethodConfiguration.ModifyParamspromotiononPromotionCode.CreateParamsandPromotionCodeacknowledgedandpayment_never_settledon enumReview.closed_reasonprovideronTax.Settings.Defaultbbpos_wisepad3onTerminal.Configuration,terminal.Configuration.CreateParams, andterminal.Configuration.ModifyParamsaddress_kana,address_kanji,display_name_kana,display_name_kanji, andphoneonTerminal.Location,terminal.Location.CreateParams, andterminal.Location.ModifyParamsterminal.Location.CreateParams.addressto be optionalterminal.Location.CreateParams.display_nameto be optional2025-09-30.cloveron enumWebhookEndpoint.CreateParams.api_versionfinancial_connections_account_pending_account_numbersandfinancial_connections_account_unavailable_account_numbersonInvoice.LastFinalizationError,PaymentIntent.LastPaymentError,SetupAttempt.SetupError,SetupIntent.LastSetupError, andStripeErrorv12.4.0Compare Source
This release changes the pinned API version to
2025-07-30.basil.instant_payouts_promotiononAccountSession.ComponentandAccountSession.CreateParamsComponentadjustable_quantityonBillingPortal.Configuration.Feature.SubscriptionUpdate.Product,billing_portal.Configuration.CreateParamsFeatureSubscriptionUpdateProduct, andbilling_portal.Configuration.ModifyParamsFeatureSubscriptionUpdateProductdisabledfrom enumCapability.statustransaction_idonCharge.PaymentMethodDetail.Cashapporigin_contextonCheckout.Sessionandcheckout.Session.CreateParamstemplateonCheckout.Session.InvoiceCreation.InvoiceDatum.RenderingOption,PaymentLink.CreateParamsInvoiceCreationInvoiceDatumRenderingOption,PaymentLink.InvoiceCreation.InvoiceDatum.RenderingOption,PaymentLink.ModifyParamsInvoiceCreationInvoiceDatumRenderingOption, andcheckout.Session.CreateParamsInvoiceCreationInvoiceDatumRenderingOptionsetup_future_usageonCheckout.Session.PaymentMethodOption.Pixandcheckout.Session.CreateParamsPaymentMethodOptionPixnz_bank_accounton enumcheckout.Session.CreateParams.payment_method_typesIdentity.VerificationSession.RelatedPerson.accountto be requiredIdentity.VerificationSession.RelatedPerson.personto be requireddurationonInvoice.CreatePreviewParamsScheduleDetailPhase,SubscriptionSchedule.CreateParamsPhase, andSubscriptionSchedule.ModifyParamsPhaseInvoice.CreatePreviewParamsSubscriptionDetail.cancel_at,Subscription.CreateParams.cancel_at, andSubscription.ModifyParams.cancel_atfromDateTimetoDateTime | enum('max_period_end'|'min_period_end')price_dataonPaymentLink.CreateParamsLineItemPaymentLink.CreateParamsLineItem.priceto be optionalAmerica/Coyhaiqueon enumreporting.ReportRun.CreateParamsParameter.timezonestandardonTax.Registration.CountryOption.Ae,Tax.Registration.CountryOption.Au,Tax.Registration.CountryOption.Ch,Tax.Registration.CountryOption.Gb,Tax.Registration.CountryOption.Jp,Tax.Registration.CountryOption.No,Tax.Registration.CountryOption.Nz,Tax.Registration.CountryOption.Sg,tax.Registration.CreateParamsCountryOptionAe,tax.Registration.CreateParamsCountryOptionAl,tax.Registration.CreateParamsCountryOptionAo,tax.Registration.CreateParamsCountryOptionAu,tax.Registration.CreateParamsCountryOptionAw,tax.Registration.CreateParamsCountryOptionB,tax.Registration.CreateParamsCountryOptionBa,tax.Registration.CreateParamsCountryOptionBb,tax.Registration.CreateParamsCountryOptionBd,tax.Registration.CreateParamsCountryOptionBf,tax.Registration.CreateParamsCountryOptionBh,tax.Registration.CreateParamsCountryOptionCd,tax.Registration.CreateParamsCountryOptionCh,tax.Registration.CreateParamsCountryOptionEt,tax.Registration.CreateParamsCountryOptionGb,tax.Registration.CreateParamsCountryOptionGn,tax.Registration.CreateParamsCountryOptionIs,tax.Registration.CreateParamsCountryOptionJp,tax.Registration.CreateParamsCountryOptionMe,tax.Registration.CreateParamsCountryOptionMk,tax.Registration.CreateParamsCountryOptionMr,tax.Registration.CreateParamsCountryOptionNo,tax.Registration.CreateParamsCountryOptionNz,tax.Registration.CreateParamsCountryOptionOm,tax.Registration.CreateParamsCountryOptionR,tax.Registration.CreateParamsCountryOptionSg,tax.Registration.CreateParamsCountryOptionSr,tax.Registration.CreateParamsCountryOptionUy,tax.Registration.CreateParamsCountryOptionZa, andtax.Registration.CreateParamsCountryOptionZwinbound_goodson enumsTax.Registration.CountryOption.At.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Be.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Bg.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Cy.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Cz.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.De.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Dk.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.E.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Ee.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Fi.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Fr.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Gr.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Hr.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Hu.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Ie.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.It.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Lt.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Lu.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Lv.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Mt.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Nl.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Pl.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Pt.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Ro.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Se.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Si.Standard.place_of_supply_scheme,Tax.Registration.CountryOption.Sk.Standard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionAtStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionBeStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionBgStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionCyStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionCzStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionDeStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionDkStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionEStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionEeStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionFiStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionFrStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionGrStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionHrStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionHuStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionIeStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionItStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionLtStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionLuStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionLvStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionMtStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionNlStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionPlStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionPtStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionRoStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionSeStandard.place_of_supply_scheme,tax.Registration.CreateParamsCountryOptionSiStandard.place_of_supply_scheme, andtax.Registration.CreateParamsCountryOptionSkStandard.place_of_supply_schemeaed,bgn,huf, andrononTerminal.Configuration.Tipping,terminal.Configuration.CreateParamsTipping, andterminal.Configuration.ModifyParamsTipping2025-07-30.basilon enumWebhookEndpoint.CreateParams.api_versionConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.