[deps] Billing: Update Stripe.net to v50 #6703
Open
+1
−1
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:
48.5.0->50.0.0Release Notes
stripe/stripe-dotnet (Stripe.net)
v50.0.0This release changes the pinned API version to
2025-11-17.clover.Gt,Gte,Lt, andLteonV2.Core.EventListOptionsin favor ofCreated.RetrieveandListcalls for/v2endpoints now use indexed format (e.g.,?include[0]=foo&include[1]=bar) instead of repeated parameter format (e.g.,?include=foo&include=bar) when communicating with the Stripe API. This may break any unit tests that expect the latter behavior when setting up a mock server. Instead, they should now expect the former.Tax.AssociationandTerminal.OnboardingLinkFindmethod on resourceTax.AssociationCreatemethod on resourceTerminal.OnboardingLinkPaymentMethodConfigurationonBillingPortal.Configuration.Features.PaymentMethodUpdateTransactionIdonCharge.PaymentMethodDetails.Ideal,PaymentAttemptRecord.PaymentMethodDetails.Ideal, andPaymentRecord.PaymentMethodDetails.IdealCreatedonCustomerCustomerBalanceTransactionListOptionsandInvoicePaymentListOptionsAccountNumbersonFinancialConnections.AccountFraudRiskonIssuingAuthorizationRiskAssessmentOptionsLatestFraudWarningonIssuing.CardHooksonPaymentIntentCaptureOptions,PaymentIntentConfirmOptions,PaymentIntentCreateOptions,PaymentIntentIncrementAuthorizationOptions,PaymentIntentUpdateOptions, andPaymentIntentMbWayandTwintonRefund.DestinationDetailsFinancialConnectionsAccountAccountNumbersUpdatedandFinancialConnectionsAccountUpcomingAccountNumberExpirywith resourceFinancialConnections.Accountv49.2.0CaptureMethodonPaymentIntent.PaymentMethodOptions.CardPresentandPaymentIntentPaymentMethodOptionsCardPresentOptionsv49.1.0This release changes the pinned API version to
2025-10-29.clover.PaymentAttemptRecord,PaymentIntentAmountDetailsLineItem, andPaymentRecordGetandListmethods on resourcePaymentAttemptRecordGet,ReportPaymentAttemptCanceled,ReportPaymentAttemptFailed,ReportPaymentAttemptGuaranteed,ReportPaymentAttemptInformational,ReportPaymentAttempt,ReportPayment, andReportRefundmethods on resourcePaymentRecordListmethod on resourcePaymentIntentAmountDetailsLineItemRepresentativeDeclarationonAccount.Company,AccountCompanyOptions, andTokenAccountCompanyOptionsPaymentMethodConfigurationonBillingPortalConfigurationFeaturesPaymentMethodUpdateOptionsTwintonCheckout.Session.PaymentMethodOptionsandCheckoutSessionPaymentMethodOptionsOptionsPaymentRecordRefundandTypeonCreditNote.RefundandCreditNoteRefundOptionsCustomerSheetandMobilePaymentElementonCustomerSession.ComponentsandCustomerSessionComponentsOptionsProvideronCustomer.TaxPaymentRecordonInvoiceAttachPaymentOptions,InvoicePayment.Payment, andInvoicePaymentPaymentOptionsInvoicePaymentPaymentOptions.Typefromliteral('payment_intent')toenum('payment_intent'|'payment_record')AmountDetailsonPaymentIntentCaptureOptions,PaymentIntentConfirmOptions,PaymentIntentCreateOptions,PaymentIntentIncrementAuthorizationOptions, andPaymentIntentUpdateOptionsPaymentDetailsonPaymentIntentCaptureOptions,PaymentIntentConfirmOptions,PaymentIntentCreateOptions,PaymentIntentIncrementAuthorizationOptions,PaymentIntentUpdateOptions, andPaymentIntentDiscountAmount,LineItems,Shipping, andTaxonPaymentIntent.AmountDetailsNameCollectiononPaymentLinkCreateOptions,PaymentLinkUpdateOptions, andPaymentLinkCryptoonPaymentMethodConfigurationCreateOptions,PaymentMethodConfigurationUpdateOptions,PaymentMethodConfiguration, andRefund.DestinationDetailsMbWayonPaymentMethodConfigurationCreateOptions,PaymentMethodConfigurationUpdateOptions, andPaymentMethodConfigurationCustomonPaymentMethodCreateOptionsandPaymentMethodExcludedPaymentMethodTypesonSetupIntentCreateOptions,SetupIntentUpdateOptions, andSetupIntentTwonTax.Registration.CountryOptionsandTaxRegistrationCountryOptionsOptionsGiponTerminal.Configuration.TippingandTerminalConfigurationTippingOptionsLastSeenAtonTerminal.ReaderGt,Gte,Lt,Lte, andTypesonV2.Core.EventListOptionsBalanceSettingsUpdatedwith resourceBalanceSettingsInvoicePaymentAttemptRequiredwith resourceInvoicev49.0.0This release changes the pinned API version to⚠️ below)
2025-09-30.cloverand contains breaking changes (prefixed with#3168⚠️ 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 afetchEvent()method to retrieve its corresponding event. For events with related objects, there's afetchRelatedObject()method that performs the API call and casts the response to the correct type.StripeClient.parseThinEventtoStripeClient.parseEventNotificationand 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 therelatedObjectproperty and afetchRelatedObject()function. They also have afetchEvent()method to retrieve their correspondingStripe.Event.*Eventinstance.Stripe.Events.UnknownEventNotificationinstead of a more specific type. It has both therelatedObjectproperty and theFetchRelatedObject()function (but they may be/returnnull)#3194 Add
StripeContextobjectStripeContextclass. Previously, one could only pass a string forStripeContextproperty of theRequestOptionsclass. You can now use the new class as well.EventNotification(formerly known asThinEvent)'scontextproperty fromstringtoStripeContext#3200 Move
V2.EventAPI resources toV2.Core.EventsEvent,EventDestination,EventReasonetc) fromStripe.V2toStripe.V2.Core. They now correctly match their API path and are in line with all other resources. To update your code:Stripe.V2.Event->Stripe.V2.Core.EventStripe.V2.EventDestination->Stripe.V2.Core.EventDestinationStripe.V2.EventReason->Stripe.V2.Core.EventReasonStripe.V2.EventReasonRequest->Stripe.V2.Core.EventReasonRequestStripe.V2.EventRelatedObject->Stripe.V2.Core.EventRelatedObject#3206⚠️ Drop support for .NET Core 3.1 & clarify policy
#3197 Remove unused obsolete classes SourceTransactionsListOptions and SourceTransactionsGetOptions
SourceTransactionsListOptionsin favor ofSourceTransactionListOptionsSourceTransactionsGetOptions#3167⚠️ 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.#3171 Adds ability to specify file name and type when calling FileService.Create
FileCreateOptions.Filefrom aStreamto aMultipartFileContenttype. This type lets you optionally specify aNameandTypeto use when creating the file.#3174
just formatformats entire solution#3172 Update generated code
UseStripeSdkinPaymentIntentNextActionandSetupIntentNextActionto beDictionary<string, object>PaymentIntentNextActionUseStripeSdkandSetupIntentNextActionUseStripeSdk#3170 Adds public BaseUrl to RawRequestOptions
BaseUrltoRawRequestOptionsfor raw request calls to endpoints at hosts other thanapi.stripe.com#3175, #3190, #3205 Update generated code based on incoming API changes in the
2025-09-30.cloverAPI version.BalanceReportandPayoutReconciliationReportonAccountSession.ComponentsandAccountSessionComponentsOptionsInvoiceSubscriptionDetailsOptions.CancelAt,SubscriptionCreateOptions.CancelAtandSubscriptionUpdateOptions.CancelAtfromDateTimetoDateTime | enum('max_period_end'|'min_period_end')CoupononDiscount,PromotionCodeCreateOptions, andPromotionCode. UseDiscount.Source.Coupon,PromotionCodeCreateOptions.Promotion.Coupon, andPromotionCode.Promotion.Couponinstead.LinkandPayByBankonPaymentMethodUpdateOptionsBalanceSettingsGetandUpdatemethods on resourceBalanceSettingsSourceonDiscountMbWayPaymentsonAccount.CapabilitiesandAccountCapabilitiesOptionsTrialUpdateBehavioronBillingPortal.Configuration.Features.SubscriptionUpdateandBillingPortalConfigurationFeaturesSubscriptionUpdateOptionsMbWayonCharge.PaymentMethodDetails,ConfirmationToken.PaymentMethodPreview,ConfirmationTokenPaymentMethodDataOptions,PaymentIntent.PaymentMethodOptions,PaymentIntentPaymentMethodDataOptions,PaymentIntentPaymentMethodOptionsOptions,PaymentMethodCreateOptions,PaymentMethod, andSetupIntentPaymentMethodDataOptionsBrandingSettingsandNameCollectiononCheckout.SessionCreateOptionsandCheckout.SessionExcludedPaymentMethodTypesonCheckout.SessionCreateOptions,Checkout.Session,PaymentIntentConfirmOptions, andPaymentIntentUpdateOptionsUnitLabelonCheckoutSessionLineItemPriceDataProductDataOptions,InvoiceLineItemPriceDataProductDataOptions,InvoiceLinePriceDataProductDataOptions, andPaymentLinkLineItemPriceDataProductDataOptionsAlma,Billie, andSatispayonCheckout.Session.PaymentMethodOptionsandCheckoutSessionPaymentMethodOptionsOptionsDemoPayonCheckoutSessionPaymentMethodOptionsOptionsCaptureMethodonCheckout.Session.PaymentMethodOptions.Affirm,Checkout.Session.PaymentMethodOptions.AfterpayClearpay,Checkout.Session.PaymentMethodOptions.AmazonPay,Checkout.Session.PaymentMethodOptions.Card,Checkout.Session.PaymentMethodOptions.Cashapp,Checkout.Session.PaymentMethodOptions.Klarna,Checkout.Session.PaymentMethodOptions.Link,Checkout.Session.PaymentMethodOptions.Mobilepay,Checkout.Session.PaymentMethodOptions.RevolutPay,CheckoutSessionPaymentMethodOptionsAffirmOptions,CheckoutSessionPaymentMethodOptionsAfterpayClearpayOptions,CheckoutSessionPaymentMethodOptionsAmazonPayOptions,CheckoutSessionPaymentMethodOptionsCardOptions,CheckoutSessionPaymentMethodOptionsCashappOptions,CheckoutSessionPaymentMethodOptionsKlarnaOptions,CheckoutSessionPaymentMethodOptionsLinkOptions,CheckoutSessionPaymentMethodOptionsMobilepayOptions, andCheckoutSessionPaymentMethodOptionsRevolutPayOptionsFlexibleonCheckoutSessionSubscriptionDataBillingModeOptions,InvoiceScheduleDetailsBillingModeOptions,InvoiceSubscriptionDetailsBillingModeOptions,Quote.SubscriptionData.BillingMode,QuoteSubscriptionDataBillingModeOptions,Subscription.BillingMode,SubscriptionBillingModeOptions,SubscriptionSchedule.BillingMode, andSubscriptionScheduleBillingModeOptionsBusinessNameandIndividualNameonCheckout.Session.CollectedInformation,Checkout.Session.CustomerDetails,CustomerCreateOptions,CustomerUpdateOptions, andCustomerChargebackLossReasonCodeonDispute.PaymentMethodDetails.KlarnaNetAmountandProrationDetailsonInvoiceItemIterationsonInvoiceScheduleDetailsPhaseOptionsandSubscriptionSchedulePhaseOptionsFraudDisputabilityLikelihoodandRiskAssessmentonIssuing.TestHelpersAuthorizationCreateOptionsSecondLineonIssuing.CardFrMealVoucherConecsonPaymentMethodConfigurationCreateOptionsandPaymentMethodConfigurationUpdateOptionsPromotiononPromotionCodeCreateOptionsandPromotionCodeProvideronTax.Settings.DefaultsBbposWisepad3onTerminal.ConfigurationCreateOptions,Terminal.ConfigurationUpdateOptions, andTerminal.ConfigurationAddressKana,AddressKanji,DisplayNameKana,DisplayNameKanji, andPhoneonTerminal.LocationCreateOptions,Terminal.LocationUpdateOptions, andTerminal.LocationConfiguration
📅 Schedule: Branch creation - "every 2nd week starting on the 2 week of the year before 4am on Monday" (UTC), 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.