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
kevinpapst
changed the title
[Bug]: getAllProducts() returns a paginated result
[Bug]: getAllProducts() returns an array instead of a paginated result
May 18, 2023
To explain why I changed this from a bug to an enhancement, Pagination was defined in the initial Roadmap, and it's not set as Done. I was expecting to work on this by the end of the development, but as you require this, I will make sure to include this after the discounts.
What happened?
The API only returns the first 10 results, see https://docs.lemonsqueezy.com/api#pagination
Instead the API
Product::getAllProducts()
should return aProductPage extends PaginatedResult
.Where
PaginatedResult
is an abstract class with a couple of methods:Additionally
getAllProducts(PageQuery $query)
method should accept a query object with params:How to reproduce the bug
See above
Package Version
x
PHP Version
8.2
Which operating systems does with happen with?
macOS
Notes
No response
The text was updated successfully, but these errors were encountered: