We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, the API responses delete the association data.
For example, it would be helpful to be able to retrieve an Order and ask for it's associated subscriptions. Same for all the other associations.
order = LemonSqueezy::Order.retrieve(id: "x") order.subscriptions => [<LemonSqueezy::Subscription>, ...}
If this is implemented using the JSON API data, this can be future proofed for any other associations added.
The text was updated successfully, but these errors were encountered:
I remove relationships and links as they don't contain any useful information really.
relationships
links
An example of a product:
"relationships"=> {"store"=> {"links"=> {"related"=>"https://api.lemonsqueezy.com/v1/products/166741/store", "self"=>"https://api.lemonsqueezy.com/v1/products/166741/relationships/store"}}, "variants"=> {"links"=> {"related"=>"https://api.lemonsqueezy.com/v1/products/166741/variants", "self"=>"https://api.lemonsqueezy.com/v1/products/166741/relationships/variants"}}}, "links"=>{"self"=>"https://api.lemonsqueezy.com/v1/products/166741"}}}
Sorry, something went wrong.
You can use that to generate the associations and connect them to the other models.
No branches or pull requests
Currently, the API responses delete the association data.
For example, it would be helpful to be able to retrieve an Order and ask for it's associated subscriptions. Same for all the other associations.
If this is implemented using the JSON API data, this can be future proofed for any other associations added.
The text was updated successfully, but these errors were encountered: