chore(deps): update dependency stripe to v19 #812
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.
This PR contains the following updates:
18.5.0
->19.1.0
Release Notes
stripe/stripe-node (stripe)
v19.1.0
Compare Source
#2453 add missing fetchEvent type for UnknownEventNotification
fetchEvent()
declaration to theStripe.Events.UnknownEventNotification
interfaceStripe.Events.fetchRelatedObject
so that it's always defined and returnsnull
if there's norelated_object
. This fixes the situation where theUnknownEventNotification
says 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
v19.0.0
Compare Source
This release changes the pinned API version to⚠️ below)
2025-09-30.clover
and contains breaking changes (prefixed with#2427 Move
V2.Event
API resources toV2.Core.Events
Stripe.V2
toStripe.V2.Core
. This enables us to correctly match the API path to the namespaceStripe.V2.EventDestination
->Stripe.V2.Core.EventDestination
Stripe.V2.Event
->Stripe.V2.Core.Event
Stripe.V2.EventBase
->Stripe.V2.Core.EventBase
Stripe.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.parseThinEvent
toStripeClient.parseEventNotification
and remove theStripe.ThinEvent
interface.Stripe.V2.EventNotification
which is a union of all possible event notifications instead ofStripe.ThinEvent
. When applicable, these event notifications will have therelatedObject
field and a functionfetchRelatedObject()
. They also have afetchEvent()
method to retrieve their corresponding event.UnknownEventNotification
to then access therelatedObject
field and the functionfetchRelatedObject()
#2432 Drop support for Node < 16 & clarify policy
#2426 Add
StripeContext
objectStripeContext
class. It can be used anywhere the context option is supplied and gets serialized to a string when making requests.EventNotification
(formerly known asThinEvent
)'scontext
property fromstring
toStripeContext
#2398⚠️ Build SDK w/ V2 OpenAPI spec
StripeClient.v2
namespace) now return aV2DeletedObject
which has the id of the object that has been deleted and a string representing the type of the object that has been deleted.StripeClient.v2
namespace) 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
beta
npm tag. Instead, we'll uselatest
,public-preview
, orprivate-preview
to 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.clover
API version.balance_report
andpayout_reconciliation_report
onAccountSession.components
andAccountSessionCreateParams.components
saturday
andsunday
from enumsAccount.settings.payouts.schedule.weekly_payout_days
,AccountCreateParams.settings.payouts.schedule.weekly_payout_days
, andAccountUpdateParams.settings.payouts.schedule.weekly_payout_days
external_request
andunsupported_business_type
on 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[].code
link
andpay_by_bank
onPaymentMethodUpdateParams
coupon
onDiscount
,PromotionCodeCreateParams
, andPromotionCode
. UseDiscount.source.coupon
,PromotionCodeCreateParams.promotion.coupon
andPromotionCode.coupon
instead.Invoice.id
to be required.prevented
on enumDispute.status
BalanceSettings
retrieve
andupdate
methods on resourceBalanceSettings
mb_way_payments
onAccount.capabilities
,AccountCreateParams.capabilities
, andAccountUpdateParams.capabilities
source
onDiscount
trial_update_behavior
onBillingPortal.Configuration.features.subscription_update
,BillingPortal.ConfigurationCreateParams.features.subscription_update
, andBillingPortal.ConfigurationUpdateParams.features.subscription_update
mb_way
onCharge.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_data
branding_settings
andname_collection
onCheckout.SessionCreateParams
andCheckout.Session
excluded_payment_method_types
onCheckout.SessionCreateParams
,Checkout.Session
,PaymentIntentConfirmParams
, andPaymentIntentUpdateParams
unit_label
onCheckout.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_data
alma
,billie
, andsatispay
onCheckout.Session.payment_method_options
andCheckout.SessionCreateParams.payment_method_options
demo_pay
onCheckout.SessionCreateParams.payment_method_options
capture_method
onCheckout.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_pay
flexible
onCheckout.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_mode
business_name
andindividual_name
onCheckout.Session.collected_information
,Checkout.Session.customer_details
,CustomerCreateParams
,CustomerUpdateParams
, andCustomer
mb_way
on 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.type
mb_way
on enumsConfirmationToken.payment_method_preview.type
andPaymentMethod.type
mb_way
on enumsCustomerListPaymentMethodsParams.type
,PaymentMethodCreateParams.type
, andPaymentMethodListParams.type
chargeback_loss_reason_code
onDispute.payment_method_details.klarna
net_amount
andproration_details
onInvoiceItem
iterations
onInvoiceCreatePreviewParams.schedule_details.phases[]
,SubscriptionScheduleCreateParams.phases[]
, andSubscriptionScheduleUpdateParams.phases[]
fraud_disputability_likelihood
andrisk_assessment
onIssuing.AuthorizationCreateParams.testHelpers
second_line
onIssuing.Card
mb_way
on enumsPaymentIntent.excluded_payment_method_types
andPaymentIntentCreateParams.excluded_payment_method_types
fr_meal_voucher_conecs
onPaymentMethodConfigurationCreateParams
andPaymentMethodConfigurationUpdateParams
promotion
onPromotionCodeCreateParams
andPromotionCode
acknowledged
andpayment_never_settled
on enumReview.closed_reason
provider
onTax.Settings.defaults
bbpos_wisepad3
onTerminal.ConfigurationCreateParams
,Terminal.ConfigurationUpdateParams
, andTerminal.Configuration
address_kana
,address_kanji
,display_name_kana
,display_name_kanji
, andphone
onTerminal.LocationCreateParams
,Terminal.LocationUpdateParams
, andTerminal.Location
Terminal.LocationCreateParams.address
to be optionalTerminal.LocationCreateParams.display_name
to be optional2025-09-30.clover
on enumWebhookEndpointCreateParams.api_version
financial_connections_account_pending_account_numbers
andfinancial_connections_account_unavailable_account_numbers
onInvoice.last_finalization_error
,PaymentIntent.last_payment_error
,SetupAttempt.setup_error
,SetupIntent.last_setup_error
, andStripeError
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.