You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I see here that caption is a required property on Product, but I do not see it in the docs here and it does not seem to come back from the API.
So when I copy a response from a Products list response, and type it as Stripe.ApiList<Stripe.Product>, TS complains because caption is required, but is not returned.
Describe the solution you'd like
I think caption may be incorrect or a deprecated type? If it is deprecated - should the type be optional?
Describe alternatives you've considered
I did a search on open/closed issues for regarding caption but could not find anything.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Thanks for the report @JarrodMFlesch and sorry you're experiencing issues!
The type should indeed be optional, since it's only included for products with type set to good. The team will look into a fix and get back to you as soon as possible!
This is actually a broader issue, where a number of types that are both nullable and optional should be marked as such. As an example, Product.unit_label is also in this category.
Is your feature request related to a problem? Please describe.
I see here that caption is a required property on Product, but I do not see it in the docs here and it does not seem to come back from the API.
So when I copy a response from a Products list response, and type it as
Stripe.ApiList<Stripe.Product>
, TS complains because caption is required, but is not returned.Describe the solution you'd like
I think caption may be incorrect or a deprecated type? If it is deprecated - should the type be optional?
Describe alternatives you've considered
I did a search on open/closed issues for regarding
caption
but could not find anything.Additional context
No response
The text was updated successfully, but these errors were encountered: