Bump Stripe.net from 48.5.0 to 49.0.0 #207
Merged
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.
Updated Stripe.net from 48.5.0 to 49.0.0.
Release notes
Sourced from Stripe.net's releases.
49.0.0
This 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, andPaymentIntentUpdateOptions... (truncated)
48.6.0-beta.1
This release changes the pinned API version to
2025-08-27.preview.GetandListmethods on resourceInvoicePaymentListmethod on resourceMandateAppliedonV2.Core.Account.Configuration.Customer,V2.Core.Account.Configuration.Merchant,V2.Core.Account.Configuration.Recipient,V2.Core.Account.Configuration.Storer,V2CoreAccountConfigurationCustomerOptions,V2CoreAccountConfigurationMerchantOptions,V2CoreAccountConfigurationRecipientOptions, andV2CoreAccountConfigurationStorerOptionsBilling.AlertTriggered.ValuefromlongIntegertodecimal_stringDisplayNameonV2.MoneyManagement.FinancialAccountCreateOptionsandV2.MoneyManagement.FinancialAccountCurrencyConversiononV2.MoneyManagement.Transaction.FlowandV2.MoneyManagement.TransactionEntry.TransactionDetails.FlowPaymentsonBalanceSettingsUpdateOptionsandBalanceSettingsDebitNegativeBalances,Payouts, andSettlementTimingonBalanceSettingsUpdateOptionsandBalanceSettingsMandateonCharge.PaymentMethodDetails.Pix,PaymentAttemptRecord.PaymentMethodDetails.Pix, andPaymentRecord.PaymentMethodDetails.PixCouponDataonCheckoutSessionDiscountOptionsMandateOptionsonCheckout.Session.PaymentMethodOptions.Pix,CheckoutSessionPaymentMethodOptionsPixOptions,PaymentIntent.PaymentMethodOptions.Pix, andPaymentIntentPaymentMethodOptionsPixOptionsCheckout.Session.PaymentMethodOptions.Pix.SetupFutureUsage,CheckoutSessionPaymentMethodOptionsPixOptions.SetupFutureUsage,PaymentIntent.PaymentMethodOptions.Pix.SetupFutureUsage, andPaymentIntentPaymentMethodOptionsPixOptions.SetupFutureUsagefromliteral('none')toenum('none'|'off_session')AmountonMandate.MultiUse,PaymentAttemptRecord, andPaymentRecordCurrencyonMandate.MultiUsePixonMandate.PaymentMethodDetails,SetupAttempt.PaymentMethodDetails,SetupIntent.PaymentMethodOptions, andSetupIntentPaymentMethodOptionsOptionsLimitonPaymentAttemptRecordListOptionsAmountAuthorized,AmountRefunded, andApplicationonPaymentAttemptRecordandPaymentRecordProcessorDetailsonPaymentAttemptRecord,PaymentRecordReportPaymentOptions, andPaymentRecordPaymentReferenceonPaymentAttemptRecord,PaymentRecordReportPaymentOptions, andPaymentRecordInstallmentsonPaymentAttemptRecord.PaymentMethodDetails.AlmaandPaymentRecord.PaymentMethodDetails.AlmaTransactionIdonPaymentAttemptRecord.PaymentMethodDetails.Alma,PaymentAttemptRecord.PaymentMethodDetails.AmazonPay,PaymentAttemptRecord.PaymentMethodDetails.Billie,PaymentAttemptRecord.PaymentMethodDetails.KakaoPay,PaymentAttemptRecord.PaymentMethodDetails.KrCard,PaymentAttemptRecord.PaymentMethodDetails.NaverPay,PaymentAttemptRecord.PaymentMethodDetails.Payco,PaymentAttemptRecord.PaymentMethodDetails.RevolutPay,PaymentAttemptRecord.PaymentMethodDetails.SamsungPay,PaymentAttemptRecord.PaymentMethodDetails.Satispay,PaymentRecord.PaymentMethodDetails.Alma,PaymentRecord.PaymentMethodDetails.AmazonPay,PaymentRecord.PaymentMethodDetails.Billie,PaymentRecord.PaymentMethodDetails.KakaoPay,PaymentRecord.PaymentMethodDetails.KrCard,PaymentRecord.PaymentMethodDetails.NaverPay,PaymentRecord.PaymentMethodDetails.Payco,PaymentRecord.PaymentMethodDetails.RevolutPay,PaymentRecord.PaymentMethodDetails.SamsungPay, andPaymentRecord.PaymentMethodDetails.SatispayLocationandReaderonPaymentAttemptRecord.PaymentMethodDetails.PaynowandPaymentRecord.PaymentMethodDetails.PaynowLatestActiveMandateonPaymentMethodMetadataandPeriodonQuotePreviewSubscriptionSchedule.Phase.AddInvoiceItemPixDisplayQrCodeonSetupIntent.NextActionReaderSecurityonTerminal.ConfigurationCreateOptions,Terminal.ConfigurationUpdateOptions, andTerminal.ConfigurationSee the changelog for more details.
48.6.0-alpha.2
retrievemethod on resourceV2.Core.ClaimableSandboxmonth_of_yearonV2.Billing.Cadence#create.billing_cycle.monthandV2.Billing.Cadence.billing_cycle.monthclaimed_at,expires_at,sandbox_details, andstatusonV2.Core.ClaimableSandboxapi_keysonV2.Core.ClaimableSandboxV2.Core.ClaimableSandbox.claim_urlfromstringtonullable(string)current_billing_period_endon enumsV2.Billing.Intent#create.actions[].deactivate.effective_at.typeandV2.Billing.IntentAction.deactivate.effective_at.typewill_activate_atandwill_cancel_atonV2.Billing.PricingPlanSubscription.servicing_status_transitionsandV2.Billing.RateCardSubscription.servicing_status_transitionscategoryandpriorityonV2.Billing.ServiceAction#create.credit_grant_per_tenant,V2.Billing.ServiceAction#create.credit_grant,V2.Billing.ServiceAction.credit_grant_per_tenant, andV2.Billing.ServiceAction.credit_grantV2.Billing.LicenseFee#update.display_nameto be optionalinvoicesonEventsV2BillingCadenceBilledEventV2CoreClaimableSandboxClaimedEvent,V2CoreClaimableSandboxExpiredEvent,V2CoreClaimableSandboxExpiringEvent, andV2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEventwith related objectV2.Core.ClaimableSandboxV2BillingCadenceErroredEventwith related objectV2.Billing.CadenceSee the changelog for more details.
48.6.0-alpha.1
#3166 Use the right API version 2025-08-27.preview
#3162 Update generated code for private-preview
AttachCadencemethod on resourceSubscriptionCurrencyandExternalCustomerIdonBilling.AlertTriggeredCustomPricingUnitonBilling.AlertTriggered,Billing.CreditBalanceSummary.Balance.AvailableBalance,Billing.CreditBalanceSummary.Balance.LedgerBalance,Billing.CreditBalanceTransaction.Credit.Amount,Billing.CreditBalanceTransaction.Debit.Amount,Billing.CreditGrant.Amount, andBillingCreditGrantAmountOptionsCustomeronBilling.AlertListOptionsBilling.Alert.AlertType,Billing.AlertCreateOptions.AlertType, andBilling.AlertListOptions.AlertTypefromliteral('usage_threshold')toenum('credit_balance_threshold'|'usage_threshold')CreditBalanceThresholdonBilling.AlertCreateOptionsandBilling.AlertBillableItemsonBilling.CreditGrant.ApplicabilityConfig.Scope,BillingCreditBalanceSummaryFilterApplicabilityScopeOptions, andBillingCreditGrantApplicabilityConfigScopeOptionsBilling.CreditBalanceSummary.Balance.AvailableBalance.Type,Billing.CreditBalanceSummary.Balance.LedgerBalance.Type,Billing.CreditBalanceTransaction.Credit.Amount.Type,Billing.CreditBalanceTransaction.Debit.Amount.Type,Billing.CreditGrant.Amount.Type, andBillingCreditGrantAmountOptions.Typefromliteral('monetary')toenum('custom_pricing_unit'|'monetary')LicenseFeeSubscriptionDetailsandRateCardSubscriptionDetailsonInvoiceItem.ParentandInvoiceLineItem.ParentInvoiceItem.Parent.Typefromliteral('subscription_details')toenum('license_fee_subscription_details'|'rate_card_subscription_details'|'subscription_details')LicenseFeeDetailsandRateCardRateDetailsonInvoiceItem.PricingandInvoiceLineItem.PricingInvoiceItem.Pricing.TypeandInvoiceLineItem.Pricing.Typefromliteral('price_details')toenum('license_fee_details'|'price_details'|'rate_card_rate_details')BillingCadenceonInvoiceCreatePreviewOptions,SubscriptionCreateOptions, andSubscriptionBillingCadenceDetailsonInvoice.ParentandQuotePreviewInvoice.ParentV2.AccountLink,V2.Account,V2.Billing.BillSettingVersion,V2.Billing.BillSetting,V2.Billing.Cadence,V2.Billing.CollectionSettingVersion,V2.Billing.CollectionSetting,V2.Billing.CustomPricingUnit,V2.Billing.IntentAction,V2.Billing.Intent,V2.Billing.LicenseFeeSubscription,V2.Billing.LicenseFeeVersion,V2.Billing.LicenseFee,V2.Billing.LicensedItem,V2.Billing.MeteredItem,V2.Billing.PricingPlanComponent,V2.Billing.PricingPlanSubscription,V2.Billing.PricingPlanVersion,V2.Billing.PricingPlan,V2.Billing.Profile,V2.Billing.RateCardRate,V2.Billing.RateCardSubscription,V2.Billing.RateCardVersion,V2.Billing.RateCard,V2.Billing.ServiceAction,V2.Core.ClaimableSandbox,V2.Reporting.ReportRun,V2.Reporting.Report, andV2.Tax.AutomaticRuleCreate,Deactivate,Find,Get, andUpdatemethods on resourceV2.Tax.AutomaticRuleCreateandGetmethods on resourcesV2.Billing.ServiceActionandV2.Reporting.ReportRunGetmethod on resourcesV2.Billing.LicenseFeeSubscriptionandV2.Reporting.ReportCreatemethod on resourcesV2.AccountLinkandV2.Core.ClaimableSandboxCancel,Create,Get,List, andUpdatemethods on resourcesV2.Billing.CadenceandV2.Billing.RateCardSubscriptionCreate,Get,List, andUpdatemethods on resourcesV2.Billing.BillSetting,V2.Billing.CollectionSetting,V2.Billing.CustomPricingUnit,V2.Billing.LicenseFee,V2.Billing.LicensedItem,V2.Billing.MeteredItem,V2.Billing.PricingPlan,V2.Billing.Profile, andV2.Billing.RateCardGetandListmethods on resourcesV2.Billing.BillSettingVersion,V2.Billing.CollectionSettingVersion,V2.Billing.IntentAction,V2.Billing.LicenseFeeVersion,V2.Billing.PricingPlanSubscription,V2.Billing.PricingPlanVersion, andV2.Billing.RateCardVersionCreate,Delete,Get, andListmethods on resourceV2.Billing.RateCardRateCreate,Delete,Get,List, andUpdatemethods on resourceV2.Billing.PricingPlanComponentCancel,Commit,Create,Get,List,ReleaseReservation, andReservemethods on resourceV2.Billing.IntentClose,Create,Get,List, andUpdatemethods on resourceV2.AccountChangesonV2.EventAccountConfigurationRecipientDataAccountLinkCompletedEvent,AccountConfigurationRecipientDataFeatureStatusUpdatedEvent, andAccountRequirementsUpdatedEventwith related objectV2.AccountV2BillingCadenceBilledEvent,V2BillingCadenceCanceledEvent,V2BillingCadenceCreatedEvent, andV2BillingCadenceErroredEventwith related objectV2.Billing.CadenceV2BillingLicenseFeeCreatedEventandV2BillingLicenseFeeUpdatedEventwith related objectV2.Billing.LicenseFeeV2BillingLicenseFeeVersionCreatedEventwith related objectV2.Billing.LicenseFeeVersionV2BillingLicensedItemCreatedEventandV2BillingLicensedItemUpdatedEventwith related objectV2.Billing.LicensedItemV2BillingMeteredItemCreatedEventandV2BillingMeteredItemUpdatedEventwith related objectV2.Billing.MeteredItemV2BillingPricingPlanCreatedEventandV2BillingPricingPlanUpdatedEventwith related objectV2.Billing.PricingPlanV2BillingPricingPlanComponentCreatedEventandV2BillingPricingPlanComponentUpdatedEventwith related objectV2.Billing.PricingPlanComponentV2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent,V2BillingPricingPlanSubscriptionCollectionCurrentEvent,V2BillingPricingPlanSubscriptionCollectionPastDueEvent,V2BillingPricingPlanSubscriptionCollectionPausedEvent,V2BillingPricingPlanSubscriptionCollectionUnpaidEvent,V2BillingPricingPlanSubscriptionServicingActivatedEvent,V2BillingPricingPlanSubscriptionServicingCanceledEvent, andV2BillingPricingPlanSubscriptionServicingPausedEventwith related objectV2.Billing.PricingPlanSubscriptionV2BillingPricingPlanVersionCreatedEventwith related objectV2.Billing.PricingPlanVersionV2BillingRateCardCreatedEventandV2BillingRateCardUpdatedEventwith related objectV2.Billing.RateCardV2BillingRateCardRateCreatedEventwith related objectV2.Billing.RateCardRateV2BillingRateCardSubscriptionActivatedEvent,V2BillingRateCardSubscriptionCanceledEvent,V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent,V2BillingRateCardSubscriptionCollectionCurrentEvent,V2BillingRateCardSubscriptionCollectionPastDueEvent,V2BillingRateCardSubscriptionCollectionPausedEvent,V2BillingRateCardSubscriptionCollectionUnpaidEvent,V2BillingRateCardSubscriptionServicingActivatedEvent,V2BillingRateCardSubscriptionServicingCanceledEvent, andV2BillingRateCardSubscriptionServicingPausedEventwith related objectV2.Billing.RateCardSubscriptionV2BillingRateCardVersionCreatedEventwith related objectV2.Billing.RateCardVersionV2CoreHealthApiErrorFiringEvent,V2CoreHealthApiErrorResolvedEvent,V2CoreHealthApiLatencyFiringEvent,V2CoreHealthApiLatencyResolvedEvent,V2CoreHealthAuthorizationRateDropFiringEvent,V2CoreHealthAuthorizationRateDropResolvedEvent,V2CoreHealthEventGenerationFailureResolvedEvent,V2CoreHealthFraudRateIncreasedEvent,V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent,V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent,V2CoreHealthPaymentMethodErrorFiringEvent,V2CoreHealthPaymentMethodErrorResolvedEvent,V2CoreHealthTrafficVolumeDropFiringEvent,V2CoreHealthTrafficVolumeDropResolvedEvent,V2CoreHealthWebhookLatencyFiringEvent, andV2CoreHealthWebhookLatencyResolvedEventV2ReportingReportRunCreatedEvent,V2ReportingReportRunFailedEvent,V2ReportingReportRunSucceededEvent, andV2ReportingReportRunUpdatedEventwith related objectV2.Reporting.ReportRunRateLimitExceptionSee the changelog for more details.
Commits viewable in compare view.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)