You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@chladnefazole I looked at the code and I see it defined here as expected.
You said you are on the SDK version 1.21.6 which doesn't make sense as it was years before we added Typescript support. But my guess is that you are either using external types or you are on a version of stripe-node that is too old and predates the addition of that feature in the API.
Describe the bug
TS complains about missing property 'subscription_update' on interface FlowData
To Reproduce
I want customers to be able to upgrade their subscriptions, so I followed the docs to create a portal session: https://docs.stripe.com/api/customer_portal/sessions/create
I try to call the function like this:
But I get a TS error:
And in the FlowData interface I can see there is no property 'subscription_update':
I can get around the error by declaring the flow data object separately, but it's messier than passing the object in directly:
Expected behavior
Property 'subscription_update' should exist on interface FlowData.
Code snippets
No response
OS
Windows 11
Node version
v20.11.0
Library version
1.21.6
API version
2024-09-30.acacia
Additional context
No response
The text was updated successfully, but these errors were encountered: