stripe / stripe-js

Loading wrapper for Stripe.js
https://stripe.com/docs/js
MIT License
620 stars 153 forks source link

[BUG]: SetupIntent.NextAction type doesn't have verify_with_microdeposits object type #630

Open honteng opened 1 month ago

honteng commented 1 month ago

What happened?

According to this documentation

https://docs.stripe.com/api/setup_intents/object#setup_intent_object-next_action-verify_with_microdeposits-hosted_verification_url

SetupIntent.NextAction type should have verify_with_microdeposits but the latest type definition of NextAction doesn't have the entity

https://github.com/stripe/stripe-js/blob/21c35045fbd9c8412e8660ee14b656cd273cef61/types/api/setup-intents.d.ts#L133

It would be great to fix the type definition.

Environment

No response

Reproduction

No response

brendanm-stripe commented 3 weeks ago

Hey thanks for reporting this -- I've raised internally to address. In the interim please use ts-ignore to access the necessary properties.

ParthTyagi15 commented 3 weeks ago

Hey @brendanm-stripe I would like to work on this issue.