Skip to content

Add paginated voucher list #49

New issue

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

Merged
merged 3 commits into from
Jan 23, 2025
Merged

Conversation

iDiegoNL
Copy link
Contributor

This PR makes it possible to use and retrieve pagination details for the voucher list endpoint.

Usage example:

OAuth / Register API:

$list = $client->voucher->paginatedList($page, $limit);

// Get the vouchers
$vouchers = $list->getData();

// Get the last page
$lastPage = $list->getLastPage();

OAuth with static classes:

$list = Voucher::paginatedList($page, $limit);

// Get the vouchers
$vouchers = $list->getData();

// Get the last page
$lastPage = $list->getLastPage();

@iDiegoNL iDiegoNL requested a review from EdingerMike January 22, 2025 12:57
@iDiegoNL iDiegoNL self-assigned this Jan 22, 2025
@iDiegoNL iDiegoNL merged commit 0e9a680 into master Jan 23, 2025
12 checks passed
@iDiegoNL iDiegoNL deleted the feature/add-paginated-voucher-list branch January 23, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant