Closed samuela closed 5 months ago
@samuela Thanks for flagging. The refunds
property has been made optional since the API version 2022-11-15 as it's not returned by default anymore. The spec should definitely not mark this one as required. We'll investigate and push a fix to make sure it's marked as optional.
The refunds
property, along a few other properties that had been incorrectly marked as required, have been made optional starting in v998. Thanks again for flagging!
Thanks @anniel-stripe !
See for context https://github.com/arlyon/async-stripe/issues/482.
The spec defines the
refunds
field on Charge objects as being required. However, this is not the case as evidenced by the following payload from Stripe: