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
The Openapi spec actually does have a definition for Price.recurring, and we have full types for this in other libraries but the problem our generator for stripe-php only generate classes for top-level resources and doesn't generate classes yet for the nested data structures inside.
This is definitely on our radar and an improvement we plan to make to the library, but I am reclassifying as a feature request and editing the issue name! We'll keep you posted.
richardm-stripe
changed the title
Incomplete OpenAPI spec for price (maybe others ?)
Add specific classes for nested objects (instead of StripeObject)
Aug 26, 2024
Describe the bug
This is what the spec says for
Price->recurring
* @property null|\Stripe\StripeObject $recurring The recurring components of a price such as <code>interval</code> and <code>usage_type</code>.
So the IDE have no idea what's inside
According to the doc, we know what's inside https://docs.stripe.com/api/prices/object
To Reproduce
Just lookup doc
Expected behavior
Complete doc
Code snippets
No response
OS
windows
PHP version
8.3
Library version
v15.7.0
API version
2024-06-20
Additional context
No response
The text was updated successfully, but these errors were encountered: