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

fix: Transform error StripeObjects to ErrorObject. #1357

Closed
wants to merge 2 commits into from

Conversation

dcr-stripe
Copy link
Contributor

r? kamil-stripe

Summary

Include the error types in the object type mapping and start transforming API objects returned with these types to ErrorObject.

Motivation

Fixes #1353

We explicitly state in the type annotation that these are ErrorObjects but they weren't getting transformed appropriately.

@stripe-ci stripe-ci assigned dcr-stripe and unassigned kamil-stripe Aug 23, 2022
@dcr-stripe
Copy link
Contributor Author

Closing this out - we opted for fixing the type hints (#1361) and then re-visiting this as part of the next major to handle this consistently across all SDKs.

@dcr-stripe dcr-stripe closed this Aug 25, 2022
@remi-stripe remi-stripe deleted the dcr-php-errors branch September 28, 2023 23:01
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.

PaymentIntent "last_payment_error" property is not an ErrorObject
2 participants