mollie / mollie-api-python

Mollie API client for Python
http://www.mollie.com
BSD 2-Clause "Simplified" License
113 stars 55 forks source link

New handler for list results #285

Open whyscream opened 1 year ago

whyscream commented 1 year ago

A heavily simplified class to wrap the results of .list() calls. Has cleaner code, implements autopagination handling, and no more features that actually shouldn't be there. See commit message for details.

This should solve #278

whyscream commented 1 year ago

After the work in #333 , we need to see what parts of this work are still relevant. Replacing get_next() and get_previous() with automatic pagination handling still seems useful.

whyscream commented 11 months ago

Idea from https://github.com/mollie/mollie-api-php/pull/701, add a separate iterator() method for the new implementation, in stead of a parameter for the list() method