v48.0.0
-
#3074 System.Text.Json Serialization Support release to GA
- Add System.Text.Json support for serializing Stripe.net entities and objects for applications running on .NET 6 and above. Now you can pass a Stripe.net object or collection of objects to the System.Text.Json serializer and it will produce the correct JSON string.
-
#3056 Support for APIs in the new API version 2025-03-31.basil
This release changes the pinned API version to
2025-03-31.basil.⚠️ Breaking changes due to changes in the Stripe APIPlease review details for the breaking changes and alternatives in the Stripe API changelog before upgrading.
- Remove support for resources
SubscriptionItemUsageRecordSummaryandSubscriptionItemUsageRecord - Remove support for
Createmethod on resourceSubscriptionItemUsageRecord - Remove support for
List,ListAsync,ListAutoPaginating, andListAutoPaginatingAsyncmethods on resourceSubscriptionItemUsageRecordSummary - Remove support for
UpcomingandUpcomingAsyncmethods on resourceInvoice - Remove support for
InvoiceonChargeandPaymentIntent - Remove support for
ShippingDetailsonCheckoutSession - Remove support for
Carrier,Phone, andTrackingNumberonSessionCollectedInformationShippingDetails - Remove support for
RefundonCreditNoteCreateOptions,CreditNotePreviewLinesListOptions,CreditNotePreviewOptions, andCreditNote - Remove support for
TaxAmountsonCreditNoteLineItem,CreditNote, andInvoiceLineItem - Remove support for
AmountExcludingTaxandUnitAmountExcludingTaxonCreditNoteLineItemandInvoiceLineItem - Remove support for
CoupononCustomerCreateOptions,CustomerUpdateOptions,InvoiceCreatePreviewOptions,InvoiceScheduleDetailsPhasesOptions,SubscriptionCreateOptions,SubscriptionSchedulePhasesOptions,SubscriptionSchedulePhases, andSubscriptionUpdateOptions - Remove support for
PromotionCodeonCustomerCreateOptions,CustomerUpdateOptions,SubscriptionCreateOptions, andSubscriptionUpdateOptions - Remove support for
PriceonInvoiceItemCreateOptions,InvoiceItemUpdateOptions,InvoiceItem,InvoiceLineItemUpdateOptions,InvoiceLineItem, andInvoiceLinesOptions - Remove support for
BillingThresholdsonInvoiceScheduleDetailsPhaseItemOptions,InvoiceScheduleDetailsPhaseOptions,InvoiceSubscriptionDetailsItemOptions,SubscriptionCreateOptions,SubscriptionItemCreateOptions,SubscriptionItemUpdateOptions,SubscriptionItem,SubscriptionItemsOptions,SubscriptionScheduleDefaultSettingsOptions,SubscriptionScheduleDefaultSettings,SubscriptionSchedulePhaseItemOptions,SubscriptionSchedulePhaseItem,SubscriptionSchedulePhaseOptions,SubscriptionSchedulePhase,SubscriptionUpdateOptions, andSubscription - Remove support for
ApplicationFeeAmount,Charge,PaidOutOfBand,Paid,PaymentIntent,Quote,Subscription,SubscriptionDetails,SubscriptionProrationDate,Tax,TotalTaxAmounts, andTransferDataonInvoice - Remove support for
DiscountonInvoiceandSubscription - Remove support for
InvoiceItem,ProrationDetails,Proration,TaxRates, andTypeonInvoiceLineItem - Remove support for
PlanandSubscriptionItemonInvoiceItemandInvoiceLineItem - Remove support for
UnitAmountonInvoiceItemCreateOptions,InvoiceItemUpdateOptions, andInvoiceItem - Remove support for
SubscriptionItemsonInvoiceLineItemListOptionsandInvoiceLineItemsListOptions - Remove support for
SubscriptionandUnitAmountDecimalonInvoiceItem - Remove support for
NaverPayonPaymentMethodUpdateOptions - Remove support for
AggregateUsageonPlanCreateOptions,Plan,PriceRecurringOptions, andPriceRecurring - Remove support for
CurrentPeriodEndandCurrentPeriodStartonSubscription - Remove support for Page on
V2.EventDestinationListOptionsandV2.EventListOptions
Additions
- Add support for new resource
InvoicePayment - Add support for
GetandListmethods on resourceInvoicePayment - Add support for
BilliePayments,NzBankAccountBecsDebitPayments, andSatispayPaymentsonAccountCapabilitiesOptionsandAccountCapabilities - Add support for
HostedPaymentMethodSaveonAccountSettingsInvoicesOptionsandAccountSettingsInvoices - Add support for
InvoicesonAccountSettingsOptions - Add support for
PresentmentDetailsonCharge,CheckoutSession,PaymentIntent, andRefund - Add support for
BillieandSatispayonChargePaymentMethodDetails,ConfirmationTokenPaymentMethodDataOptions,ConfirmationTokenPaymentMethodPreview,CustomerPaymentMethod,PaymentIntentPaymentMethodDataOptions,PaymentMethodConfigurationCreateOptions,PaymentMethodConfigurationUpdateOptions,PaymentMethodConfiguration,PaymentMethodCreateOptions,PaymentMethod, andSetupIntentPaymentMethodDataOptions - Add support for
NzBankAccountonChargePaymentMethodDetails,ConfirmationTokenPaymentMethodDataOptions,ConfirmationTokenPaymentMethodPreview,CustomerPaymentMethod,MandatePaymentMethodDetails,PaymentIntentPaymentMethodDataOptions,PaymentIntentPaymentMethodOptionsOptions,PaymentIntentPaymentMethodOptions,PaymentMethodConfigurationCreateOptions,PaymentMethodConfigurationUpdateOptions,PaymentMethodConfiguration,PaymentMethodCreateOptions,PaymentMethod,SetupAttemptPaymentMethodDetails, andSetupIntentPaymentMethodDataOptions - Add support for
OptionalItemsonCheckout.SessionCreateOptions,CheckoutSession,PaymentLinkCreateOptions, andPaymentLink - Add support for
PermissionsonCheckout.SessionCreateOptionsandCheckoutSession - Add support for
ShippingOptionsonCheckout.SessionUpdateOptions - Add support for
BuyerIdonConfirmationTokenPaymentMethodPreviewNaverPay,CustomerPaymentMethodNaverPay, andPaymentMethodNaverPay - Add support for
RefundsonCreditNoteCreateOptions,CreditNotePreviewLinesListOptions,CreditNotePreviewOptions, andCreditNote - Add support for
TotalTaxesonCreditNoteandInvoice - Add support for
TaxesonCreditNoteLineItemandInvoiceLineItem - Add support for
TaxabilityReasononInvoiceLineItemTaxAmountsOptionsandInvoiceLinesTaxAmountsOptions - Add support for
JurisdictionLevelonInvoiceLineItemTaxAmountsTaxRateDataOptionsandInvoiceLinesTaxAmountsTaxRateDataOptions - Add support for
AmountOverpaid,ConfirmationSecret, andPaymentsonInvoice - Add support for
ParentonInvoiceItem,InvoiceLineItem, andInvoice - Add support for
NaverPayonMandatePaymentMethodDetailsandSetupAttemptPaymentMethodDetails - Add support for
SetupFutureUsageonPaymentIntentPaymentMethodOptionsNaverPayOptionsandPaymentIntentPaymentMethodOptionsNaverPay - Add support for
DefaultValueonPaymentLinkCustomFieldsDropdownOptions,PaymentLinkCustomFieldsDropdown,PaymentLinkCustomFieldsNumericOptions,PaymentLinkCustomFieldsNumeric,PaymentLinkCustomFieldsTextOptions, andPaymentLinkCustomFieldsText - Add support for
NzBankTransferonRefundDestinationDetails - Add support for
CurrentPeriodEndandCurrentPeriodStartonSubscriptionItem - Add support for
WifionTerminal.ConfigurationCreateOptions,Terminal.ConfigurationUpdateOptions, andTerminalConfiguration
⚠️ Other Breaking changes in the SDK - Remove support for resources
-
#3065 Merge breaking changes from sdk-release/next-major branch to master
- Adds
StripeAccountandStripeContexttoStripeClientOptions, so you can specify the Stripe-Account or Stripe-Context header at the client (instead of the individual request) level. See PR #3058 - Removes
ApiModefromRawRequestOptions. ApiMode is automatically determined from the path passed to RawRequest. See PR #3052 - Deprecates
ServiceNestedandService<T>classes. To implement custom services, use the request methods defined onStripeClient. See PR #3051 - Fixes
ListAutoPagingandListAutoPagingAsyncto not mutate options object passed in. See PR #2899
- Adds
-
#3078 and #3085 Remove
ListOptionsWithCreatedand clean up services that incorrectly extendListOptions- Remove
ListOptionsWithCreatedbase class. The classes that use to extend it now extendListOptionsand have the thecreatedfield defined explicitly. - Classes
ReportTypeServiceandAccountCapabilityServiceno longer implement theIListableinterface, and theListAutoPagingandListAutoPagingAsyncmethods are removed. This is because the list APIs here are not pageable. See #2227 for more details.- As a consequence, the classes
ReportTypeOptionsandAccountCapabilityOptionsno longer extendListOptionsas well
- As a consequence, the classes
- Remove