Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 2, 2025

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 2025-09-30.clover and contains breaking changes (prefixed with ⚠️ below)

  • #​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.

    • Added matching EventNotification classes to every v2 Event. For example, there's now a V1BillingMeterErrorReportTriggeredEventNotification to match the existing V1BillingMeterErrorReportTriggeredEvent. Each notification class defines a fetchEvent() method to retrieve its corresponding event. For events with related objects, there's a fetchRelatedObject() method that performs the API call and casts the response to the correct type.
    • ⚠️ Rename function StripeClient.parseThinEvent to StripeClient.parseEventNotification and remove the Stripe.ThinEvent class.
      • This function now returns a Stripe.V2.Core.EventNotification (which is the shared base class that all of the more specific Stripe..Events.*EventNotification classes share) instead of Stripe.ThinEvent. When applicable, these event notifications will have the relatedObject property and a fetchRelatedObject() function. They also have a fetchEvent() method to retrieve their corresponding Stripe.Event.*Event instance.
      • If you parse an event the SDK doesn't have types for (e.g. it's newer than the SDK you're using), you'll get an instance of Stripe.Events.UnknownEventNotification instead of a more specific type. It has both the relatedObject property and the FetchRelatedObject() function (but they may be/return null)
  • #​3194 Add StripeContext object

    • Add the StripeContext class. Previously, one could only pass a string for StripeContext property of the RequestOptions class. You can now use the new class as well.
    • ⚠️ Change EventNotification (formerly known as ThinEvent)'s context property from string to StripeContext
  • #​3200 Move V2.Event API resources to V2.Core.Events

    • ⚠️ Move all V2 Event-related classes (Event, EventDestination,EventReason etc) from Stripe.V2 to Stripe.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.Event
      • Stripe.V2.EventDestination -> Stripe.V2.Core.EventDestination
      • Stripe.V2.EventReason -> Stripe.V2.Core.EventReason
      • Stripe.V2.EventReasonRequest -> Stripe.V2.Core.EventReasonRequest
      • Stripe.V2.EventRelatedObject -> Stripe.V2.Core.EventRelatedObject
  • #​3206 ⚠️ Drop support for .NET Core 3.1 & clarify policy

    • Read our new language version support policy
      • ⚠️ In this release, we drop support for .NET Core 3.1.
      • Support for .NET Core versions 5 & 7 are deprecated and will be removed in the next major version scheduled for March 2026
  • #​3197 Remove unused obsolete classes SourceTransactionsListOptions and SourceTransactionsGetOptions

    • ⚠️ Removed class SourceTransactionsListOptions in favor of SourceTransactionListOptions
    • ⚠️ Removed unused class SourceTransactionsGetOptions
  • #​3167 ⚠️ Build SDK w/ V2 OpenAPI spec

    • ⚠️ The delete methods for v2 APIs (the ones in the StripeClient.v2 namespace) now return a V2DeletedObject which 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

    • ⚠️ Changes FileCreateOptions.File from a Stream to a MultipartFileContent type. This type lets you optionally specify a Name and Type to use when creating the file.
  • #​3174 just format formats entire solution

  • #​3172 Update generated code

    • ⚠️ Changes type of UseStripeSdk in PaymentIntentNextAction and SetupIntentNextAction to be Dictionary<string, object>
    • ⚠️ Removes PaymentIntentNextActionUseStripeSdk and SetupIntentNextActionUseStripeSdk
  • #​3170 Adds public BaseUrl to RawRequestOptions

    • Adds BaseUrl to RawRequestOptions for raw request calls to endpoints at hosts other than api.stripe.com
  • #​3175, #​3190, #​3205 Update generated code based on incoming API changes in the 2025-09-30.clover API version.

    • ⚠️ Remove support for BalanceReport and PayoutReconciliationReport on AccountSession.Components and AccountSessionComponentsOptions
    • ⚠️ Change type of InvoiceSubscriptionDetailsOptions.CancelAt, SubscriptionCreateOptions.CancelAt and SubscriptionUpdateOptions.CancelAt from DateTime to DateTime | enum('max_period_end'|'min_period_end')
    • ⚠️ Remove support for Coupon on Discount, PromotionCodeCreateOptions, and PromotionCode. Use Discount.Source.Coupon, PromotionCodeCreateOptions.Promotion.Coupon, and PromotionCode.Promotion.Coupon instead.
    • ⚠️ Remove support for Link and PayByBank on PaymentMethodUpdateOptions
    • Add support for new resource BalanceSettings
    • Add support for Get and Update methods on resource BalanceSettings
    • Add support for Source on Discount
    • Add support for MbWayPayments on Account.Capabilities and AccountCapabilitiesOptions
    • Add support for TrialUpdateBehavior on BillingPortal.Configuration.Features.SubscriptionUpdate and BillingPortalConfigurationFeaturesSubscriptionUpdateOptions
    • Add support for MbWay on Charge.PaymentMethodDetails, ConfirmationToken.PaymentMethodPreview, ConfirmationTokenPaymentMethodDataOptions, PaymentIntent.PaymentMethodOptions, PaymentIntentPaymentMethodDataOptions, PaymentIntentPaymentMethodOptionsOptions, PaymentMethodCreateOptions, PaymentMethod, and SetupIntentPaymentMethodDataOptions
    • Add support for BrandingSettings and NameCollection on Checkout.SessionCreateOptions and Checkout.Session
    • Add support for ExcludedPaymentMethodTypes on Checkout.SessionCreateOptions, Checkout.Session, PaymentIntentConfirmOptions, and PaymentIntentUpdateOptions
      ... (truncated)

48.6.0-beta.1

This release changes the pinned API version to 2025-08-27.preview.

  • #​3156 Update generated code for beta
    • Add support for Get and List methods on resource InvoicePayment
    • Add support for List method on resource Mandate
    • Add support for Applied on V2.Core.Account.Configuration.Customer, V2.Core.Account.Configuration.Merchant, V2.Core.Account.Configuration.Recipient, V2.Core.Account.Configuration.Storer, V2CoreAccountConfigurationCustomerOptions, V2CoreAccountConfigurationMerchantOptions, V2CoreAccountConfigurationRecipientOptions, and V2CoreAccountConfigurationStorerOptions
    • Change type of Billing.AlertTriggered.Value from longInteger to decimal_string
    • Add support for DisplayName on V2.MoneyManagement.FinancialAccountCreateOptions and V2.MoneyManagement.FinancialAccount
    • Add support for CurrencyConversion on V2.MoneyManagement.Transaction.Flow and V2.MoneyManagement.TransactionEntry.TransactionDetails.Flow
    • Add support for Payments on BalanceSettingsUpdateOptions and BalanceSettings
    • Remove support for DebitNegativeBalances, Payouts, and SettlementTiming on BalanceSettingsUpdateOptions and BalanceSettings
    • Add support for Mandate on Charge.PaymentMethodDetails.Pix, PaymentAttemptRecord.PaymentMethodDetails.Pix, and PaymentRecord.PaymentMethodDetails.Pix
    • Add support for CouponData on CheckoutSessionDiscountOptions
    • Add support for MandateOptions on Checkout.Session.PaymentMethodOptions.Pix, CheckoutSessionPaymentMethodOptionsPixOptions, PaymentIntent.PaymentMethodOptions.Pix, and PaymentIntentPaymentMethodOptionsPixOptions
    • Change type of Checkout.Session.PaymentMethodOptions.Pix.SetupFutureUsage, CheckoutSessionPaymentMethodOptionsPixOptions.SetupFutureUsage, PaymentIntent.PaymentMethodOptions.Pix.SetupFutureUsage, and PaymentIntentPaymentMethodOptionsPixOptions.SetupFutureUsage from literal('none') to enum('none'|'off_session')
    • Add support for Amount on Mandate.MultiUse, PaymentAttemptRecord, and PaymentRecord
    • Add support for Currency on Mandate.MultiUse
    • Add support for Pix on Mandate.PaymentMethodDetails, SetupAttempt.PaymentMethodDetails, SetupIntent.PaymentMethodOptions, and SetupIntentPaymentMethodOptionsOptions
    • Add support for Limit on PaymentAttemptRecordListOptions
    • Add support for AmountAuthorized, AmountRefunded, and Application on PaymentAttemptRecord and PaymentRecord
    • Add support for ProcessorDetails on PaymentAttemptRecord, PaymentRecordReportPaymentOptions, and PaymentRecord
    • Remove support for PaymentReference on PaymentAttemptRecord, PaymentRecordReportPaymentOptions, and PaymentRecord
    • Add support for Installments on PaymentAttemptRecord.PaymentMethodDetails.Alma and PaymentRecord.PaymentMethodDetails.Alma
    • Add support for TransactionId on PaymentAttemptRecord.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, and PaymentRecord.PaymentMethodDetails.Satispay
    • Add support for Location and Reader on PaymentAttemptRecord.PaymentMethodDetails.Paynow and PaymentRecord.PaymentMethodDetails.Paynow
    • Add support for LatestActiveMandate on PaymentMethod
    • Add support for Metadata and Period on QuotePreviewSubscriptionSchedule.Phase.AddInvoiceItem
    • Add support for PixDisplayQrCode on SetupIntent.NextAction
    • Add support for ReaderSecurity on Terminal.ConfigurationCreateOptions, Terminal.ConfigurationUpdateOptions, and Terminal.Configuration

See the changelog for more details.

48.6.0-alpha.2

  • #​3173 generate private-preview SDK w/ mid Sept changes
    • Add support for retrieve method on resource V2.Core.ClaimableSandbox
    • Add support for month_of_year on V2.Billing.Cadence#create.billing_cycle.month and V2.Billing.Cadence.billing_cycle.month
    • Add support for claimed_at, expires_at, sandbox_details, and status on V2.Core.ClaimableSandbox
    • Remove support for api_keys on V2.Core.ClaimableSandbox
    • Change type of V2.Core.ClaimableSandbox.claim_url from string to nullable(string)
    • Add support for new value current_billing_period_end on enums V2.Billing.Intent#create.actions[].deactivate.effective_at.type and V2.Billing.IntentAction.deactivate.effective_at.type
    • Add support for will_activate_at and will_cancel_at on V2.Billing.PricingPlanSubscription.servicing_status_transitions and V2.Billing.RateCardSubscription.servicing_status_transitions
    • Add support for category and priority on V2.Billing.ServiceAction#create.credit_grant_per_tenant, V2.Billing.ServiceAction#create.credit_grant, V2.Billing.ServiceAction.credit_grant_per_tenant, and V2.Billing.ServiceAction.credit_grant
    • Change V2.Billing.LicenseFee#update.display_name to be optional
    • Add support for invoices on EventsV2BillingCadenceBilledEvent
    • Add support for thin events V2CoreClaimableSandboxClaimedEvent, V2CoreClaimableSandboxExpiredEvent, V2CoreClaimableSandboxExpiringEvent, and V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent with related object V2.Core.ClaimableSandbox
    • Remove support for thin event V2BillingCadenceErroredEvent with related object V2.Billing.Cadence

See 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

    • Add support for AttachCadence method on resource Subscription
    • Add support for Currency and ExternalCustomerId on Billing.AlertTriggered
    • Add support for CustomPricingUnit on Billing.AlertTriggered, Billing.CreditBalanceSummary.Balance.AvailableBalance, Billing.CreditBalanceSummary.Balance.LedgerBalance, Billing.CreditBalanceTransaction.Credit.Amount, Billing.CreditBalanceTransaction.Debit.Amount, Billing.CreditGrant.Amount, and BillingCreditGrantAmountOptions
    • Add support for Customer on Billing.AlertListOptions
    • Change type of Billing.Alert.AlertType, Billing.AlertCreateOptions.AlertType, and Billing.AlertListOptions.AlertType from literal('usage_threshold') to enum('credit_balance_threshold'|'usage_threshold')
    • Add support for CreditBalanceThreshold on Billing.AlertCreateOptions and Billing.Alert
    • Add support for BillableItems on Billing.CreditGrant.ApplicabilityConfig.Scope, BillingCreditBalanceSummaryFilterApplicabilityScopeOptions, and BillingCreditGrantApplicabilityConfigScopeOptions
    • Change type of Billing.CreditBalanceSummary.Balance.AvailableBalance.Type, Billing.CreditBalanceSummary.Balance.LedgerBalance.Type, Billing.CreditBalanceTransaction.Credit.Amount.Type, Billing.CreditBalanceTransaction.Debit.Amount.Type, Billing.CreditGrant.Amount.Type, and BillingCreditGrantAmountOptions.Type from literal('monetary') to enum('custom_pricing_unit'|'monetary')
    • Add support for LicenseFeeSubscriptionDetails and RateCardSubscriptionDetails on InvoiceItem.Parent and InvoiceLineItem.Parent
    • Change type of InvoiceItem.Parent.Type from literal('subscription_details') to enum('license_fee_subscription_details'|'rate_card_subscription_details'|'subscription_details')
    • Add support for LicenseFeeDetails and RateCardRateDetails on InvoiceItem.Pricing and InvoiceLineItem.Pricing
    • Change type of InvoiceItem.Pricing.Type and InvoiceLineItem.Pricing.Type from literal('price_details') to enum('license_fee_details'|'price_details'|'rate_card_rate_details')
    • Add support for BillingCadence on InvoiceCreatePreviewOptions, SubscriptionCreateOptions, and Subscription
    • Add support for BillingCadenceDetails on Invoice.Parent and QuotePreviewInvoice.Parent
    • Add support for new resources V2.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, and V2.Tax.AutomaticRule
    • Add support for Create, Deactivate, Find, Get, and Update methods on resource V2.Tax.AutomaticRule
    • Add support for Create and Get methods on resources V2.Billing.ServiceAction and V2.Reporting.ReportRun
    • Add support for Get method on resources V2.Billing.LicenseFeeSubscription and V2.Reporting.Report
    • Add support for Create method on resources V2.AccountLink and V2.Core.ClaimableSandbox
    • Add support for Cancel, Create, Get, List, and Update methods on resources V2.Billing.Cadence and V2.Billing.RateCardSubscription
    • Add support for Create, Get, List, and Update methods on resources V2.Billing.BillSetting, V2.Billing.CollectionSetting, V2.Billing.CustomPricingUnit, V2.Billing.LicenseFee, V2.Billing.LicensedItem, V2.Billing.MeteredItem, V2.Billing.PricingPlan, V2.Billing.Profile, and V2.Billing.RateCard
    • Add support for Get and List methods on resources V2.Billing.BillSettingVersion, V2.Billing.CollectionSettingVersion, V2.Billing.IntentAction, V2.Billing.LicenseFeeVersion, V2.Billing.PricingPlanSubscription, V2.Billing.PricingPlanVersion, and V2.Billing.RateCardVersion
    • Add support for Create, Delete, Get, and List methods on resource V2.Billing.RateCardRate
    • Add support for Create, Delete, Get, List, and Update methods on resource V2.Billing.PricingPlanComponent
    • Add support for Cancel, Commit, Create, Get, List, ReleaseReservation, and Reserve methods on resource V2.Billing.Intent
    • Add support for Close, Create, Get, List, and Update methods on resource V2.Account
    • Add support for Changes on V2.Event
    • Add support for thin events AccountConfigurationRecipientDataAccountLinkCompletedEvent, AccountConfigurationRecipientDataFeatureStatusUpdatedEvent, and AccountRequirementsUpdatedEvent with related object V2.Account
    • Add support for thin events V2BillingCadenceBilledEvent, V2BillingCadenceCanceledEvent, V2BillingCadenceCreatedEvent, and V2BillingCadenceErroredEvent with related object V2.Billing.Cadence
    • Add support for thin events V2BillingLicenseFeeCreatedEvent and V2BillingLicenseFeeUpdatedEvent with related object V2.Billing.LicenseFee
    • Add support for thin event V2BillingLicenseFeeVersionCreatedEvent with related object V2.Billing.LicenseFeeVersion
    • Add support for thin events V2BillingLicensedItemCreatedEvent and V2BillingLicensedItemUpdatedEvent with related object V2.Billing.LicensedItem
    • Add support for thin events V2BillingMeteredItemCreatedEvent and V2BillingMeteredItemUpdatedEvent with related object V2.Billing.MeteredItem
    • Add support for thin events V2BillingPricingPlanCreatedEvent and V2BillingPricingPlanUpdatedEvent with related object V2.Billing.PricingPlan
    • Add support for thin events V2BillingPricingPlanComponentCreatedEvent and V2BillingPricingPlanComponentUpdatedEvent with related object V2.Billing.PricingPlanComponent
    • Add support for thin events V2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent, V2BillingPricingPlanSubscriptionCollectionCurrentEvent, V2BillingPricingPlanSubscriptionCollectionPastDueEvent, V2BillingPricingPlanSubscriptionCollectionPausedEvent, V2BillingPricingPlanSubscriptionCollectionUnpaidEvent, V2BillingPricingPlanSubscriptionServicingActivatedEvent, V2BillingPricingPlanSubscriptionServicingCanceledEvent, and V2BillingPricingPlanSubscriptionServicingPausedEvent with related object V2.Billing.PricingPlanSubscription
    • Add support for thin event V2BillingPricingPlanVersionCreatedEvent with related object V2.Billing.PricingPlanVersion
    • Add support for thin events V2BillingRateCardCreatedEvent and V2BillingRateCardUpdatedEvent with related object V2.Billing.RateCard
    • Add support for thin event V2BillingRateCardRateCreatedEvent with related object V2.Billing.RateCardRate
    • Add support for thin events V2BillingRateCardSubscriptionActivatedEvent, V2BillingRateCardSubscriptionCanceledEvent, V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent, V2BillingRateCardSubscriptionCollectionCurrentEvent, V2BillingRateCardSubscriptionCollectionPastDueEvent, V2BillingRateCardSubscriptionCollectionPausedEvent, V2BillingRateCardSubscriptionCollectionUnpaidEvent, V2BillingRateCardSubscriptionServicingActivatedEvent, V2BillingRateCardSubscriptionServicingCanceledEvent, and V2BillingRateCardSubscriptionServicingPausedEvent with related object V2.Billing.RateCardSubscription
    • Add support for thin event V2BillingRateCardVersionCreatedEvent with related object V2.Billing.RateCardVersion
    • Add support for thin events V2CoreHealthApiErrorFiringEvent, V2CoreHealthApiErrorResolvedEvent, V2CoreHealthApiLatencyFiringEvent, V2CoreHealthApiLatencyResolvedEvent, V2CoreHealthAuthorizationRateDropFiringEvent, V2CoreHealthAuthorizationRateDropResolvedEvent, V2CoreHealthEventGenerationFailureResolvedEvent, V2CoreHealthFraudRateIncreasedEvent, V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent, V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent, V2CoreHealthPaymentMethodErrorFiringEvent, V2CoreHealthPaymentMethodErrorResolvedEvent, V2CoreHealthTrafficVolumeDropFiringEvent, V2CoreHealthTrafficVolumeDropResolvedEvent, V2CoreHealthWebhookLatencyFiringEvent, and V2CoreHealthWebhookLatencyResolvedEvent
    • Add support for thin events V2ReportingReportRunCreatedEvent, V2ReportingReportRunFailedEvent, V2ReportingReportRunSucceededEvent, and V2ReportingReportRunUpdatedEvent with related object V2.Reporting.ReportRun
    • Add support for error type RateLimitException

See the changelog for more details.

Commits viewable in compare view.

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

---
updated-dependencies:
- dependency-name: Stripe.net
  dependency-version: 49.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added .NET Pull requests that update .net code dependencies Pull requests that update a dependency file labels Oct 2, 2025
@github-actions github-actions bot merged commit 9d2df3f into main Oct 2, 2025
16 checks passed
@dependabot dependabot bot deleted the dependabot/nuget/server/dotnet/Stripe.net-49.0.0 branch October 2, 2025 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant