diff --git a/.changeset/fluffy-eels-happen.md b/.changeset/fluffy-eels-happen.md new file mode 100644 index 00000000..839b5eeb --- /dev/null +++ b/.changeset/fluffy-eels-happen.md @@ -0,0 +1,5 @@ +--- +"@rebilly/client-php": patch +--- + +docs(api-definitions): Add expand to KYC request get Rebilly/rebilly#6306 diff --git a/src/Api/KycRequestsApi.php b/src/Api/KycRequestsApi.php index 2e5f17fc..6ea9e324 100644 --- a/src/Api/KycRequestsApi.php +++ b/src/Api/KycRequestsApi.php @@ -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); @@ -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(