Closed klintan closed 3 years ago
Hello!
Ah yeah, at the moment the only expanded field we have for the Price object is product
.
We can add data.tiers
to the above expand
array and that should work. I'm a bit busy at the moment, so feel free to fork this project, add it, and create a PR if you have more bandwidth! Otherwise it may be a week or two.
Thanks!
Ah awesome. Yes I thought about it like the minute after I posted "should've probably just checked the code', but I was lazy .. :P
Thanks for helping out, I created a PR with that one word change, so thanks for making it this easy to add :)
Let me know in the PR if you want me to do any other additional changes (bump the version?). I tested it out on my project and it worked perfect :).
This is live now! Please test with the new npm version and let me know if you run into any issues. Closing this issue for now! Thanks again for the PR!
Awesome thanks for the swift release and everything, i'll try it out :)
Hey, Thanks for an awesome plugin. I might be missing something; I read the documentation that you try to auto-expand as many objects as possible and also that the new Prices API is quite new.
However when running this query:
it seems
tiers
are not available, I triedand only tiers etc, but seems it's not there. Am i missing something or is there no support yet for that /not expanded in the plugin? (This is the object I'm referring to https://stripe.com/docs/api/prices/object#price_object-tiers )