Skip to content

Commit

Permalink
chore: update SDK from api-definitions (#705)
Browse files Browse the repository at this point in the history
Co-authored-by: rebilly-machine-user <[email protected]>
  • Loading branch information
1 parent 95e8a29 commit 7bd40cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-eels-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

docs(api-definitions): Add expand to KYC request get Rebilly/rebilly#6306
4 changes: 4 additions & 0 deletions src/Api/KycRequestsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@ public function getAll(
?int $offset = null,
?string $filter = null,
?array $sort = null,
?string $expand = null,
): Collection {
$queryParams = [
'limit' => $limit,
'offset' => $offset,
'filter' => $filter,
'sort' => $sort ? implode(',', $sort) : null,
'expand' => $expand,
];
$uri = '/kyc-requests?' . http_build_query($queryParams);

Expand All @@ -111,12 +113,14 @@ public function getAllPaginator(
?int $offset = null,
?string $filter = null,
?array $sort = null,
?string $expand = null,
): Paginator {
$closure = fn (?int $limit, ?int $offset): Collection => $this->getAll(
limit: $limit,
offset: $offset,
filter: $filter,
sort: $sort,
expand: $expand,
);

return new Paginator(
Expand Down

0 comments on commit 7bd40cd

Please sign in to comment.