mollie-api-go icon indicating copy to clipboard operation
mollie-api-go copied to clipboard

Create a PaginatedResponse handler.

Open VictorAvelar opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. Every resource hace a list endpoint which returns results paginated, currently the pagination package helps the user handle the pagination themselves.

Describe the solution you'd like A PaginatedResponse type which allows the user to programatically access the following:

  • Next() returns the next page
  • Previous() returns the previous page
  • All() returns all the results possible (might take longer).
  • Pages(n int) returns the number of pages requested.

VictorAvelar avatar Sep 19 '23 10:09 VictorAvelar