[Snyk] Upgrade stripe from 15.8.0 to 19.1.0 #279
      
        
          +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.
  
    
  
    
Snyk has created this PR to upgrade stripe from 15.8.0 to 19.1.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 79 versions ahead of your current version.
The recommended version was released 24 days ago.
Issues fixed by the recommended upgrade:
SNYK-JS-UNDICI-8641354
SNYK-JS-VITE-9512410
SNYK-JS-VITE-9653016
SNYK-JS-WS-7266574
SNYK-JS-CROSSSPAWN-8303230
SNYK-JS-MONGOOSE-8446504
SNYK-JS-MONGOOSE-8623536
SNYK-JS-NUXT-7640974
SNYK-JS-NUXT-9486043
SNYK-JS-NUXTDEVTOOLS-7640977
SNYK-JS-SUPABASEAUTHJS-10255365
SNYK-JS-VALIDATOR-13395830
SNYK-JS-VITE-8023174
SNYK-JS-VITE-8648411
SNYK-JS-VITE-9576207
SNYK-JS-VITE-9685035
SNYK-JS-VITE-9919777
SNYK-JS-VUETEMPLATECOMPILER-7554675
SNYK-JS-BABELHELPERS-9397697
SNYK-JS-BABELRUNTIME-10044504
SNYK-JS-KOA-10944994
SNYK-JS-KOA-12143256
SNYK-JS-MICROMATCH-6838728
SNYK-JS-NANOID-8492085
SNYK-JS-NANOID-8492085
SNYK-JS-NUXT-7640972
SNYK-JS-NUXTVITEBUILDER-8663232
SNYK-JS-PARSEGITCONFIG-9403763
SNYK-JS-PATHTOREGEXP-7925106
SNYK-JS-ROLLUP-8073097
SNYK-JS-SERVESTATIC-7926865
SNYK-JS-SIRV-12558119
SNYK-JS-UNDICI-10176064
SNYK-JS-VITE-12558116
SNYK-JS-VITE-8022916
SNYK-JS-VUETEMPLATECOMPILER-8219888
SNYK-JS-BRACEEXPANSION-9789073
SNYK-JS-BRACEEXPANSION-9789073
SNYK-JS-DEVALUE-12205530
SNYK-JS-KOA-8720152
SNYK-JS-KOA-9679272
SNYK-JS-NUXT-12878602
SNYK-JS-SEND-7926862
Release notes
Package name: stripe
#2453 add missing fetchEvent type for UnknownEventNotification
fetchEvent()declaration to theStripe.Events.UnknownEventNotificationinterfaceStripe.Events.fetchRelatedObjectso that it's always defined and returnsnullif there's norelated_object. This fixes the situation where theUnknownEventNotificationsays thatfetchRelatedObject()is defined, but calling it throws an error.#2447 Update param in deprecation docs link
#2444 Update CHANGELOG.md to point to right API version
See the changelog for more details.
This release changes the pinned API version to
2025-09-30.preview. It is built on top of SDK version 19.0.0 which contains breaking changes. Please review the changelog for 19.0.0 if upgrading from older SDK versions.attach_cadencemethod on resourceSubscriptionbilling_cadenceonInvoiceCreatePreviewParams,SubscriptionCreateParams,SubscriptionUpdateParams, andSubscriptionbilling_cadence_detailsonInvoice.parentandQuotePreviewInvoice.parentbilling_cadence_detailson enumsInvoice.parent.typeandQuotePreviewInvoice.parent.typeV2.Billing.BillSettingVersion,V2.Billing.BillSetting,V2.Billing.Cadence,V2.Billing.CollectionSettingVersion,V2.Billing.CollectionSetting, andV2.Billing.Profilecreate,list,retrieve, andupdatemethods on resourcesV2.Billing.BillSetting,V2.Billing.CollectionSetting, andV2.Billing.Profilelistandretrievemethods on resourcesV2.Billing.BillSettingVersionandV2.Billing.CollectionSettingVersioncancel,create,list,retrieve, andupdatemethods on resourceV2.Billing.Cadencecrypto_walleton enumV2.Core.Account.configuration.recipient.default_outbound_destination.typeprofileonV2.Core.Account.defaults,V2.Core.AccountCreateParams.defaults, andV2.Core.AccountUpdateParams.defaultsi_ponV2.Core.Account.identity.attestations.directorship_declaration,V2.Core.Account.identity.attestations.ownership_declaration,V2.Core.Account.identity.attestations.terms_of_service.account,V2.Core.Account.identity.attestations.terms_of_service.storer,V2.Core.Account.identity.individual.additional_terms_of_service.account,V2.Core.AccountCreateParams.identity.attestations.terms_of_service.account,V2.Core.AccountCreateParams.identity.attestations.terms_of_service.storer,V2.Core.AccountUpdateParams.identity.attestations.terms_of_service.account,V2.Core.AccountUpdateParams.identity.attestations.terms_of_service.storer,V2.Core.Person.additional_terms_of_service.account,V2.Core.PersonCreateParams.additional_terms_of_service.account, andV2.Core.PersonUpdateParams.additional_terms_of_service.accountiponV2.Core.Account.identity.attestations.directorship_declaration,V2.Core.Account.identity.attestations.ownership_declaration,V2.Core.Account.identity.attestations.terms_of_service.account,V2.Core.Account.identity.attestations.terms_of_service.storer,V2.Core.Account.identity.individual.additional_terms_of_service.account,V2.Core.AccountCreateParams.identity.attestations.terms_of_service.account,V2.Core.AccountCreateParams.identity.attestations.terms_of_service.storer,V2.Core.AccountUpdateParams.identity.attestations.terms_of_service.account,V2.Core.AccountUpdateParams.identity.attestations.terms_of_service.storer,V2.Core.Person.additional_terms_of_service.account,V2.Core.PersonCreateParams.additional_terms_of_service.account, andV2.Core.PersonUpdateParams.additional_terms_of_service.accountdoing_business_as,product_description, andurlonV2.Core.Account.identity.business_details,V2.Core.AccountCreateParams.identity.business_details, andV2.Core.AccountUpdateParams.identity.business_detailssettlement_currencyonV2.MoneyManagement.FinancialAddresssepa_bank_accountonV2.MoneyManagement.FinancialAddress.credentialsandV2.MoneyManagement.ReceivedCredit.bank_transfersepa_bank_accounton enumV2.MoneyManagement.FinancialAddress.credentials.typeamount_detailsandpayments_orchestrationonV2.Payments.OffSessionPaymentCreateParamsandV2.Payments.OffSessionPaymentauthorization_expiredon enumV2.Payments.OffSessionPayment.failure_reasonretry_policyonV2.Payments.OffSessionPayment.retry_detailsandV2.Payments.OffSessionPaymentCreateParams.retry_detailsheuristicandscheduledon enumsV2.Payments.OffSessionPayment.retry_details.retry_strategyandV2.Payments.OffSessionPaymentCreateParams.retry_details.retry_strategyV2.MoneyManagement.OutboundPaymentQuote.fx_quote.lock_durationfromliteral('five_minutes')toenum('five_minutes'|'none')V2.MoneyManagement.OutboundPaymentQuote.fx_quote.lock_expires_atfromDateTimetoDateTime | nullnoneon enumV2.MoneyManagement.OutboundPaymentQuote.fx_quote.lock_statuscrypto_walleton enumsV2.MoneyManagement.OutboundSetupIntentCreateParams.payout_method_data.type,V2.MoneyManagement.OutboundSetupIntentUpdateParams.payout_method_data.type, andV2.MoneyManagement.PayoutMethod.typeorigin_typeonV2.MoneyManagement.ReceivedCredit.bank_transferpayment_method_typeonV2.MoneyManagement.ReceivedCredit.bank_transferpreventedon enumDispute.statusmandate_dataandpayment_method_optionsonV2.Payments.OffSessionPaymentCreateParamstypeonV2.MoneyManagement.FinancialAddressCreateParamscurrencyonV2.MoneyManagement.FinancialAddressCreateParamsfinancial_addressses.crypto_wallets,holds_currencies.usdc,outbound_payments.crypto_wallets, andoutbound_transfers.crypto_walletson enumEventsV2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.updated_capabilityV2BillingBillSettingUpdatedEventwith related objectV2.Billing.BillSettingRateLimitErrorinvalid_payout_method_crypto_walletonInvalidPayoutMethodErrorBilling.Analytics.MeterUsageRowandBilling.Analytics.MeterUsageBilling.MeterUsageRowandBilling.MeterUsageretrievemethod on resourceBilling.Analytics.MeterUsageretrievemethod on resourceBilling.MeterUsagereport_payment_attempt_informationalmethod on resourcePaymentRecordminimum_balance_by_currencyonBalanceSettingUpdateParams.payments.payoutsandBalanceSettings.payments.payoutssaturdayandsundayfrom enumsBalanceSettingUpdateParams.payments.payouts.schedule.weekly_payout_daysandBalanceSettings.payments.payouts.schedule.weekly_payout_daysBalanceSettingUpdateParams.payments.settlement_timing.delay_days_overridefromlongIntegertoemptyable(longInteger)BalanceSettingUpdateParams.paymentsto be optionaldelay_days_overrideonBalanceSettings.payments.settlement_timingautomatic_taxandinvoice_creationonCheckout.SessionUpdateParamsunit_labelonCheckout.SessionUpdateParams.line_items[].price_data.product_datainvoice_settingsonCheckout.SessionUpdateParams.subscription_dataCheckout.Session.collected_information.business_nameto be requiredintended_submission_methodonDisputeUpdateParamsandDisputeDispute.smart_disputes.recommended_evidencefromstringtoarray(string)pixonInvoice.payment_settings.payment_method_options,InvoiceCreateParams.payment_settings.payment_method_options,InvoiceUpdateParams.payment_settings.payment_method_options,QuotePreviewInvoice.payment_settings.payment_method_options,Subscription.payment_settings.payment_method_options,SubscriptionCreateParams.payment_settings.payment_method_options, andSubscriptionUpdateParams.payment_settings.payment_method_optionspixon enumsInvoice.payment_settings.payment_method_types,InvoiceCreateParams.payment_settings.payment_method_types,InvoiceUpdateParams.payment_settings.payment_method_types,QuotePreviewInvoice.payment_settings.payment_method_types,Subscription.payment_settings.payment_method_types,SubscriptionCreateParams.payment_settings.payment_method_types, andSubscriptionUpdateParams.payment_settings.payment_method_typesbilling_schedulesonInvoiceCreatePreviewParams.subscription_details,SubscriptionCreateParams,SubscriptionUpdateParams, andSubscriptionpaypayonPaymentAttemptRecord.payment_method_detailsandPaymentRecord.payment_method_detailswalletonPaymentAttemptRecord.payment_method_details.cardandPaymentRecord.payment_method_details.cardPaymentAttemptRecord.processor_details.custom.payment_referenceandPaymentRecord.processor_details.custom.payment_referencefromstringtostring | nullflexibleonQuotePreviewSubscriptionSchedule.billing_modebilled_untilonSubscriptionItemfinancial_connections_account_pending_account_numbersandfinancial_connections_account_unavailable_account_numbersonQuotePreviewInvoice.last_finalization_errorSee the changelog for more details.
This release changes the pinned API version to
2025-09-30.preview. It is built on top of SDK version 19.0.0 and 19.1.0-beta.1 which contain breaking changes. Please review the changelog for these versions if upgrading from older SDK versions.StripeClient.parseThinEvent__experimentalandPushedThinEventclasses. They've been replaced withStripeClient.parseEventNotificationand the *EventNotificationclasses respectively.V2.MoneyManagement.RecipientVerificationacknowledge,create,recipient_verifications, andretrievemethods on resourceV2.MoneyManagement.RecipientVerificationupdatemethod on resourcesV2.Billing.PricingPlanSubscriptionandV2.Billing.ServiceActioncrypto_walletsonV2.Account.configuration.recipient_data.features,V2.AccountCreateParams.configuration.recipient_data.features,V2.AccountUpdateParams.configuration.recipient_data.features,V2.Core.Account.configuration.recipient.capabilities,V2.Core.AccountCreateParams.configuration.recipient.capabilities, andV2.Core.AccountUpdateParams.configuration.recipient.capabilitiescryptoon enumV2.Core.Account.requirements.entries[].impact.restricts_capabilities[].capabilitycrypto_walleton enumV2.Account.configuration.recipient_data.default_outbound_destination.typecrypto_walletson enumV2.Account.configuration.supportable_features.recipient_datacrypto_walletson enumV2.Account.requirements[].impact.required_for_featureslookup_keyonV2.Billing.CadenceCreateParams,V2.Billing.CadenceUpdateParams, andV2.Billing.Cadencesettings_dataonV2.Billing.CadenceV2.Billing.Cadence.payer.billing_profilefromstring | nulltostringv1_event_idonV2.Core.Eventrecipient_verificationonV2.MoneyManagement.OutboundPaymentCreateParams,V2.MoneyManagement.OutboundPayment,V2.MoneyManagement.OutboundTransferCreateParams, andV2.MoneyManagement.OutboundTransfercrypto_walletonV2.MoneyManagement.OutboundSetupIntentCreateParams.payout_method_dataandV2.MoneyManagement.PayoutMethodcustom_pricing_unit_detailsonV2.Billing.RateCardRate.custom_pricing_unit_amount,V2.Billing.ServiceAction.credit_grant.amount.custom_pricing_unit, andV2.Billing.ServiceAction.credit_grant_per_tenant.amount.custom_pricing_unitorigin_typeonV2.MoneyManagement.ReceivedDebit.bank_transfersepa_credit_transferon enumV2.FinancialAddressCreditSimulationCreditParams.networkcredentials.sepa_bank_account.ibanon enumsV2.MoneyManagement.FinancialAddressListParams.includeandV2.MoneyManagement.FinancialAddressRetrieveParams.includesepa_bank_accountonV2.MoneyManagement.FinancialAddressCreateParamspriceonV2.Billing.RateCardRateCreateParamsV2.Billing.LicenseFeeUpdateParams.display_nameto be optionallookup_keysonV2.Billing.CadenceListParamsV2.Billing.CadenceCancelParams.include,V2.Billing.CadenceCreateParams.include,V2.Billing.CadenceListParams.include,V2.Billing.CadenceRetrieveParams.include, andV2.Billing.CadenceUpdateParams.includefromliteral('invoice_discount_rules')toenum('invoice_discount_rules'|'settings_data')customerandtypeonV2.Billing.CadenceCreateParams.payerV2.Billing.CadenceCreateParams.payer.billing_profileto be requiredcrypto_walletson enumEventsAccountConfigurationRecipientDataFeatureStatusUpdatedEvent.feature_namecrypto_wallets_v2on enumEventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capabilityalert_idonEventsV2CoreHealthApiErrorResolvedEvent,EventsV2CoreHealthApiLatencyResolvedEvent,EventsV2CoreHealthAuthorizationRateDropResolvedEvent,EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent,EventsV2CoreHealthPaymentMethodErrorResolvedEvent,EventsV2CoreHealthTrafficVolumeDropResolvedEvent, andEventsV2CoreHealthWebhookLatencyResolvedEventV1AccountUpdatedEventwith related objectV2.AccountV1ApplicationFeeCreatedEvent,V1ApplicationFeeRefundedEvent,V1BillingPortalConfigurationCreatedEvent,V1BillingPortalConfigurationUpdatedEvent,V1CapabilityUpdatedEvent,V1ChargeCapturedEvent,V1ChargeDisputeClosedEvent,V1ChargeDisputeCreatedEvent,V1ChargeDisputeFundsReinstatedEvent,V1ChargeDisputeFundsWithdrawnEvent,V1ChargeDisputeUpdatedEvent,V1ChargeExpiredEvent,V1ChargeFailedEvent,V1ChargePendingEvent,V1ChargeRefundUpdatedEvent,V1ChargeRefundedEvent,V1ChargeSucceededEvent,V1ChargeUpdatedEvent,V1CheckoutSessionAsyncPaymentFailedEvent,V1CheckoutSessionAsyncPaymentSucceededEvent,V1CheckoutSessionCompletedEvent,V1CheckoutSessionExpiredEvent,V1ClimateOrderCanceledEvent,V1ClimateOrderCreatedEvent,V1ClimateOrderDelayedEvent,V1ClimateOrderDeliveredEvent,V1ClimateOrderProductSubstitutedEvent,V1ClimateProductCreatedEvent,V1ClimateProductPricingUpdatedEvent,V1CouponCreatedEvent,V1CouponDeletedEvent,V1CouponUpdatedEvent,V1CreditNoteCreatedEvent,V1CreditNoteUpdatedEvent,V1CreditNoteVoidedEvent,V1CustomerCreatedEvent,V1CustomerDeletedEvent,V1CustomerDiscountCreatedEvent,V1CustomerDiscountDeletedEvent,V1CustomerDiscountUpdatedEvent,V1CustomerSubscriptionCreatedEvent,V1CustomerSubscriptionDeletedEvent,V1CustomerSubscriptionPausedEvent,V1CustomerSubscriptionPendingUpdateAppliedEvent,V1CustomerSubscriptionPendingUpdateExpiredEvent,V1CustomerSubscriptionResumedEvent,V1CustomerSubscriptionTrialWillEndEvent,V1CustomerSubscriptionUpdatedEvent,V1CustomerTaxIdCreatedEvent,V1CustomerTaxIdDeletedEvent,V1CustomerTaxIdUpdatedEvent,V1CustomerUpdatedEvent,V1FileCreatedEvent,V1FinancialConnectionsAccountCreatedEvent,V1FinancialConnectionsAccountDeactivatedEvent,V1FinancialConnectionsAccountDisconnectedEvent,V1FinancialConnectionsAccountReactivatedEvent,V1FinancialConnectionsAccountRefreshedBalanceEvent,V1FinancialConnectionsAccountRefreshedOwnershipEvent,V1FinancialConnectionsAccountRefreshedTransactionsEvent,V1IdentityVerificationSessionCanceledEvent,V1IdentityVerificationSessionCreatedEvent,V1IdentityVerificationSessionProcessingEvent,V1IdentityVerificationSessionRedactedEvent,V1IdentityVerificationSessionRequiresInputEvent,V1IdentityVerificationSessionVerifiedEvent,V1InvoiceCreatedEvent,V1InvoiceDeletedEvent,V1InvoiceFinalizationFailedEvent,V1InvoiceFinalizedEvent,V1InvoiceMarkedUncollectibleEvent,V1InvoiceOverdueEvent,V1InvoiceOverpaidEvent,V1InvoicePaidEvent,V1InvoicePaymentActionRequiredEvent,V1InvoicePaymentFailedEvent,V1InvoicePaymentPaidEvent,V1InvoicePaymentSucceededEvent,V1InvoiceSentEvent,V1InvoiceUpcomingEvent,V1InvoiceUpdatedEvent,V1InvoiceVoidedEvent,V1InvoiceWillBeDueEvent,V1InvoiceitemCreatedEvent,V1InvoiceitemDeletedEvent,V1IssuingAuthorizationCreatedEvent,V1IssuingAuthorizationRequestEvent,V1IssuingAuthorizationUpdatedEvent,V1IssuingCardCreatedEvent,V1IssuingCardUpdatedEvent,V1IssuingCardholderCreatedEvent,V1IssuingCardholderUpdatedEvent,V1IssuingDisputeClosedEvent,V1IssuingDisputeCreatedEvent,V1IssuingDisputeFundsReinstatedEvent,V1IssuingDisputeFundsRescindedEvent,V1IssuingDisputeSubmittedEvent,V1IssuingDisputeUpdatedEvent,V1IssuingPersonalizationDesignActivatedEvent,V1IssuingPersonalizationDesignDeactivatedEvent,V1IssuingPersonalizationDesignRejectedEvent,V1IssuingPersonalizationDesignUpdatedEvent,V1IssuingTokenCreatedEvent,V1IssuingTokenUpdatedEvent,V1IssuingTransactionCreatedEvent,V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent,V1IssuingTransactionUpdatedEvent,V1MandateUpdatedEvent,V1PaymentIntentAmountCapturableUpdatedEvent,V1PaymentIntentCanceledEvent,V1PaymentIntentCreatedEvent,V1PaymentIntentPartiallyFundedEvent,V1PaymentIntentPaymentFailedEvent,V1PaymentIntentProcessingEvent,V1PaymentIntentRequiresActionEvent,V1PaymentIntentSucceededEvent,V1PaymentLinkCreatedEvent,V1PaymentLinkUpdatedEvent,V1PaymentMethodAttachedEvent,V1PaymentMethodAutomaticallyUpdatedEvent,V1PaymentMethodDetachedEvent,V1PaymentMethodUpdatedEvent,V1PayoutCanceledEvent,V1PayoutCreatedEvent,V1PayoutFailedEvent,V1PayoutPaidEvent,V1PayoutReconciliationCompletedEvent,V1PayoutUpdatedEvent,V1PersonCreatedEvent,V1PersonDeletedEvent,V1PersonUpdatedEvent,V1PlanCreatedEvent,V1PlanDeletedEvent,V1PlanUpdatedEvent,V1PriceCreatedEvent,V1PriceDeletedEvent,V1PriceUpdatedEvent,V1ProductCreatedEvent,V1ProductDeletedEvent,V1ProductUpdatedEvent,V1PromotionCodeCreatedEvent,V1PromotionCodeUpdatedEvent,V1QuoteAcceptedEvent,V1QuoteCanceledEvent,V1QuoteCreatedEvent,V1QuoteFinalizedEvent,V1RadarEarlyFraudWarningCreatedEvent,V1RadarEarlyFraudWarningUpdatedEvent,V1RefundCreatedEvent,V1RefundFailedEvent,V1RefundUpdatedEvent,V1ReviewClosedEvent,V1ReviewOpenedEvent,V1SetupIntentCanceledEvent,V1SetupIntentCreatedEvent,V1SetupIntentRequiresActionEvent,V1SetupIntentSetupFailedEvent,V1SetupIntentSucceededEvent,V1SigmaScheduledQueryRunCreatedEvent,V1SourceCanceledEvent,V1SourceChargeableEvent,V1SourceFailedEvent,V1SourceRefundAttributesRequiredEvent,V1SubscriptionScheduleAbortedEvent,V1SubscriptionScheduleCanceledEvent,V1SubscriptionScheduleCompletedEvent,V1SubscriptionScheduleCreatedEvent,V1SubscriptionScheduleExpiringEvent,V1SubscriptionScheduleReleasedEvent,V1SubscriptionScheduleUpdatedEvent,V1TaxRateCreatedEvent,V1TaxRateUpdatedEvent,V1TerminalReaderActionFailedEvent,V1TerminalReaderActionSucceededEvent,V1TerminalReaderActionUpdatedEvent,V1TestHelpersTestClockAdvancingEvent,V1TestHelpersTestClockCreatedEvent,V1TestHelpersTestClockDeletedEvent,V1TestHelpersTestClockInternalFailureEvent,V1TestHelpersTestClockReadyEvent,V1TopupCanceledEvent,V1TopupCreatedEvent,V1TopupFailedEvent,V1TopupReversedEvent,V1TopupSucceededEvent,V1TransferCreatedEvent,V1TransferReversedEvent,V1TransferUpdatedEvent,V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent, andV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventV2CoreClaimableSandboxCreatedEventwith related objectV2.Core.ClaimableSandboxV2MoneyManagementRecipientVerificationCreatedEventandV2MoneyManagementRecipientVerificationUpdatedEventwith related objectV2.MoneyManagement.RecipientVerificationaccount_rate_limit_exceededonRateLimitErrorSee the changelog for more details.
This release changes the pinned API version to⚠️  below)
2025-09-30.cloverand contains breaking changes (prefixed with#2427 Move
V2.EventAPI resources toV2.Core.EventsStripe.V2toStripe.V2.Core. This enables us to correctly match the API path to the namespaceStripe.V2.EventDestination->Stripe.V2.Core.EventDestinationStripe.V2.Event->Stripe.V2.Core.EventStripe.V2.EventBase->Stripe.V2.Core.EventBaseStripe.V2.Events.RelatedObject->Stripe.V2.Core.Events.RelatedObject#2370 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.
StripeClient.parseThinEventtoStripeClient.parseEventNotificationand remove theStripe.ThinEventinterface.Stripe.V2.EventNotificationwhich is a union of all possible event notifications instead ofStripe.ThinEvent. When applicable, these event notifications will have therelatedObjectfield and a functionfetchRelatedObject(). They also have afetchEvent()method to retrieve their corresponding event.UnknownEventNotificationto then access therelatedObjectfield and the functionfetchRelatedObject()#2432 Drop support for Node < 16 & clarify policy
#2426 Add
StripeContextobjectStripeContextclass. It can be used anywhere the context option is supplied and gets serialized to a string when making requests.EventNotification(formerly known asThinEvent)'scontextproperty fromstringtoStripeContext#2398⚠️  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.StripeClient.v2namespace) from a null union to optional (e.g.prop: string | null->prop?: string).#2420 Fixed file uploading in Bun runtimes
FetchHttpClient(e.g. Bun). This bug affected Node SDK versions between 18.1.0 to 18.5.0.#2405 support more npm tags
betanpm tag. Instead, we'll uselatest,public-preview, orprivate-previewto more closely align with Stripe's release phases#2402, #2413, #2430, #2428 Update generated code based on incoming API changes in the
2025-09-30.cloverAPI version.balance_reportandpayout_reconciliation_reportonAccountSession.componentsandAccountSessionCreateParams.componentssaturdayandsundayfrom enumsAccount.settings.payouts.schedule.weekly_payout_days,AccountCreateParams.settings.payouts.schedule.weekly_payout_days, andAccountUpdateParams.settings.payouts.schedule.weekly_payout_daysexternal_requestandunsupported_business_typeon enumsAccount.future_requirements.errors[].code,Account.requirements.errors[].code,BankAccount.future_requirements.errors[].code,BankAccount.requirements.errors[].code,Capability.future_requirements.errors[].code,Capability.requirements.errors[].code,Person.future_requirements.errors[].code, andPerson.requirements.errors[].codelinkandpay_by_bankonPaymentMethodUpdateParamscoupononDiscount,PromotionCodeCreateParams, andPromotionCode. UseDiscount.source.coupon,PromotionCodeCreateParams.promotion.couponandPromotionCode.couponinstead.Invoice.idto be required.preventedon enumDispute.statusBalanceSettingsretrieveandupdatemethods on resourceBalanceSettingsmb_way_paymentsonAccount.capabilities,AccountCreateParams.capabilities, andAccountUpdateParams.capabilitiessourceonDiscounttrial_update_behavioronBillingPortal.Configuration.features.subscription_update,BillingPortal.ConfigurationCreateParams.features.subscription_update, andBillingPortal.ConfigurationUpdateParams.features.subscription_updatemb_wayonCharge.payment_method_details,ConfirmationToken.payment_method_preview,ConfirmationTokenCreateParams.testHelpers.payment_method_data,PaymentIntent.payment_method_options,PaymentIntentConfirmParams.payment_method_data,PaymentIntentConfirmParams.payment_method_options,PaymentIntentCreateParams.payment_method_data,PaymentIntentCreateParams.payment_method_options,PaymentIntentUpdateParams.payment_method_data,PaymentIntentUpdateParams.payment_method_options,PaymentMethodCreateParams,PaymentMethod,SetupIntentConfirmParams.payment_method_data,SetupIntentCreateParams.payment_method_data, andSetupIntentUpdateParams.payment_method_databranding_settingsandname_collectiononCheckout.SessionCreateParamsandCheckout.Sessionexcluded_payment_method_typesonCheckout.SessionCreateParams,Checkout.Session,PaymentIntentConfirmParams, andPaymentIntentUpdateParamsunit_labelonCheckout.SessionCreateParams.line_items[].price_data.product_data,InvoiceAddLinesParams.lines[].price_data.product_data,InvoiceLineItemUpdateParams.price_data.product_data,InvoiceUpdateLinesParams.lines[].price_data.product_data, andPaymentLinkCreateParams.line_items[].price_data.product_dataalma,billie, andsatispayonCheckout.Session.payment_method_optionsandCheckout.SessionCreateParams.payment_method_optionsdemo_payonCheckout.SessionCreateParams.payment_method_optionscapture_methodonCheckout.Session.payment_method_options.affirm,Checkout.Session.payment_method_options.afterpay_clearpay,Checkout.Session.payment_method_options.amazon_pay,Checkout.Session.payment_method_options.card,Checkout.Session.payment_method_options.cashapp,Checkout.Session.payment_method_options.klarna,Checkout.Session.payment_method_options.link,Checkout.Session.payment_method_options.mobilepay,Checkout.Session.payment_method_options.revolut_pay,Checkout.SessionCreateParams.payment_method_options.affirm,Checkout.SessionCreateParams.payment_method_options.afterpay_clearpay,Checkout.SessionCreateParams.payment_method_options.amazon_pay,Checkout.SessionCreateParams.payment_method_options.card,Checkout.SessionCreateParams.payment_method_options.cashapp,Checkout.SessionCreateParams.payment_method_options.klarna,Checkout.SessionCreateParams.payment_method_options.link,Checkout.SessionCreateParams.payment_method_options.mobilepay, andCheckout.SessionCreateParams.payment_method_options.revolut_payflexibleonCheckout.SessionCreateParams.subscription_data.billing_mode,InvoiceCreatePreviewParams.schedule_details.billing_mode,InvoiceCreatePreviewParams.subscription_details.billing_mode,Quote.subscription_data.billing_mode,QuoteCreateParams.subscription_data.billing_mode,Subscription.billing_mode,SubscriptionCreateParams.billing_mode,SubscriptionMigrateParams.billing_mode,SubscriptionSchedule.billing_mode, andSubscriptionScheduleCreateParams.billing_modebusiness_nameandindividual_nameonCheckout.Session.collected_information,Checkout.Session.customer_details,CustomerCreateParams,CustomerUpdateParams, andCustomermb_wayon enumsConfirmationTokenCreateParams.testHelpers.payment_method_data.type,PaymentIntentConfirmParams.payment_method_data.type,PaymentIntentCreateParams.payment_method_data.type,PaymentIntentUpdateParams.payment_method_data.type,SetupIntentConfirmParams.payment_method_data.type,SetupIntentCreateParams.payment_method_data.type, andSetupIntentUpdateParams.payment_method_data.typemb_wayon enumsConfirmationToken.payment_method_preview.typeandPaymentMethod.typemb_wayon enumsCustomerListPaymentMethodsParams.type,PaymentMethodCreateParams.type, andPaymentMethodListParams.typechargeback_loss_reason_codeonDispute.payment_method_details.klarnanet_amountandproration_detailsonInvoiceItemiterationsonInvoiceCreatePreviewParams.schedule_details.phases[],SubscriptionScheduleCreateParams.phases[], andSubscriptionScheduleUpdateParams.phases[]fraud_disputability_likelihoodandrisk_assessmentonIssuing.AuthorizationCreateParams.testHelperssecond_lineonIssuing.Cardmb_wayon enumsPaymentIntent.excluded_payment_method_typesandPaymentIntentCreateParams.excluded_payment_method_typesfr_meal_voucher_conecsonPaymentMethodConfigurationCreateParamsandPaymentMethodConfigurationUpdateParamspromotiononPromotionCodeCreateParamsandPromotionCodeacknowledgedandpayment_never_settledon enumReview.closed_reasonprovideronTax.Settings.defaultsbbpos_wisepad3onTerminal.ConfigurationCreateParams,Terminal.ConfigurationUpdateParams, andTerminal.Configurationaddress_kana,address_kanji,display_name_kana,display_name_kanji, andphoneonTerminal.LocationCreateParams,Terminal.LocationUpdateParams, andTerminal.LocationTerminal.LocationCreateParams.addressto be optionalTerminal.LocationCreateParams.display_nameto be optional2025-09-30.cloveron enumWebhookEndpointCreateParams.api_versionfinancial_connections_account_pending_account_numbersandfinancial_connections_account_unavailable_account_numbersonInvoice.last_finalization_error,PaymentIntent.last_payment_error,SetupAttempt.setup_error,SetupIntent.last_setup_error, andStripeErrorSee the changelog for more details.
This release changes the pinned API version to
2025-08-27.preview.listandretrievemethods on resourceInvoicePaymentlistmethod on resourceMandateappliedonV2.Core.Account.configuration.customer,V2.Core.Account.configuration.merchant,V2.Core.Account.configuration.recipient,V2.Core.Account.configuration.storer,V2.Core.AccountUpdateParams.configuration.customer,V2.Core.AccountUpdateParams.configuration.merchant,V2.Core.AccountUpdateParams.configuration.recipient, andV2.Core.AccountUpdateParams.configuration.storerao_nif,az_tin,bd_etin,cr_cpj,cr_nite,do_rcn,gt_nit,kz_bin,mz_nuit,pe_ruc,pk_ntn,sa_crn, andsa_tinon enumsV2.Core.Account.identity.business_details.id_numbers[].type,V2.Core.AccountCreateParams.identity.business_details.id_numbers[].type, andV2.Core.AccountUpdateParams.identity.business_details.id_numbers[].typeao_nif,az_tin,bd_brc,bd_etin,bd_nid,cr_cpf,cr_dimex,cr_nite,do_rcn,gt_nit,kz_iin,mz_nuit,pe_dni,pk_cnic,pk_snic, andsa_tinon enumsV2.Core.Account.identity.individual.id_numbers[].type,V2.Core.AccountCreateParams.identity.individual.id_numbers[].type,V2.Core.AccountUpdateParams.identity.individual.id_numbers[].type,V2.Core.Person.id_numbers[].type,V2.Core.PersonCreateParams.id_numbers[].type, andV2.Core.PersonUpdateParams.id_numbers[].typeBilling.AlertTriggered.valuefromlongIntegertodecimal_stringdisplay_nameonV2.MoneyManagement.FinancialAccountCreateParamsandV2.MoneyManagement.FinancialAccountcurrency_conversionon enumsV2.MoneyManagement.Transaction.categoryandV2.MoneyManagement.TransactionEntry.transaction_details.categorycurrency_conversiononV2.MoneyManagement.Transaction.flowandV2.MoneyManagement.TransactionEntry.transaction_details.flowcurrency_conversionon enumsV2.MoneyManagement.Transaction.flow.typeandV2.MoneyManagement.TransactionEntry.transaction_details.flow.typepaymentsonBalanceSettingUpdateParamsandBalanceSettingsdebit_negative_balances,payouts, andsettlement_timingonBalanceSettingUpdateParamsandBalanceSettingsmandateonCharge.payment_method_details.pix,PaymentAttemptRecord.payment_method_details.pix, andPaymentRecord.payment_method_details.pixcoupon_dataonCheckout.SessionCreateParams.discounts[]mandate_optionsonCheckout.Session.payment_method_options.pix,Checkout.SessionCreateParams.payment_method_options.pix,PaymentIntent.payment_method_options.pix,PaymentIntentConfirmParams.payment_method_options.pix,PaymentIntentCreateParams.payment_method_options.pix, andPaymentIntentUpdateParams.payment_method_options.pixCheckout.Session.payment_method_options.pix.setu...