-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Refunds on Charge object is nullable #456
Comments
I am hitting the same problem in the webhook |
Im currently working with 0.31.0 and having the same issue.
It looks like in the PR above they have a fix The last comment on the PR was to release so hopefully it goes out soon. |
I have a PR for this here: #503 |
Describe the bug
According to the stripe docs refunds on the charge object is nullable.
In situations when trying to deserialize the object to a Charge struct we get an error of
To Reproduce
In my specific scenario, I am listening to the
charge.succeeded
webhook that is equivalent to the example as part of the repoListen to stripe webhooks locally using stripe cli
charge.succeeded
event will fail with the example setup.Added additional logging for debugging
Expected Error:
Expected behavior
I'd expect refunds to be of type
Option<List<Refund>>
and be able to parse correctly if refunds is not provided in the payload.Code snippets
No response
OS
macOs
Rust version
1.74.0
Library version
async-stripe 0.22.2
API version
2022-11-15
Additional context
No response
The text was updated successfully, but these errors were encountered: