Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add verify microdeposits type to SetupIntent next action object #656

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

bdaily-stripe
Copy link
Contributor

@bdaily-stripe bdaily-stripe commented Oct 1, 2024

Summary & motivation

Add a missing hash to SetupIntent.NextAction for microdeposits. Also updates the documentation for type.

Testing & documentation

Added type tests

Fixes #630

@bdaily-stripe bdaily-stripe changed the title Add additional next action types to Setup Intent object Add additional next action types to SetupIntent object Oct 1, 2024
@bdaily-stripe bdaily-stripe force-pushed the bdaily-fix-gaps-in-si-next-actions branch from 27cdd86 to 31722f3 Compare October 1, 2024 19:49
@bdaily-stripe bdaily-stripe force-pushed the bdaily-fix-gaps-in-si-next-actions branch from 31722f3 to 7b92acd Compare October 1, 2024 21:21
@bdaily-stripe bdaily-stripe force-pushed the bdaily-fix-gaps-in-si-next-actions branch from 7b92acd to 85f6186 Compare October 1, 2024 21:22
@bdaily-stripe bdaily-stripe changed the title Add additional next action types to SetupIntent object Add verify microdeposits type to SetupIntent next action object Oct 1, 2024
/**
* Type of the next action to perform, one of `redirect_to_url` or `use_stripe_sdk`.
* Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, or `verify_with_microdeposits`.
*/
type: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this point it's likely not worth fixing, especially since it would be a breaking change, but I wonder why we used string instead of hardcoding type: 'redirect_to_url' | 'use_stripe_sdk' | 'verify_with_microdeposits'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: SetupIntent.NextAction type doesn't have verify_with_microdeposits object type
2 participants