Skip to content

Commit

Permalink
lastId data type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
holdmann committed Sep 1, 2023
1 parent 3eed5b4 commit 002be30
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Service/V3/ReturnService.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ class ReturnService extends AbstractService
* @see https://api-seller.ozon.ru/v3/returns/company/fbo
*
* @param array $filter
* @param string|null $lastId
* @param int $lastId
* @param int $limit
*
* @return array
*/
public function fbo(array $filter, ?string $lastId = '', int $limit = 100): array
public function fbo(array $filter, int $lastId = 0, int $limit = 100): array
{
assert($limit > 0 && $limit <= 1000);

$body = [
'filter' => ArrayHelper::pick($filter, ['posting_number', 'status']),
'last_id' => $lastId ?? '',
'last_id' => $lastId,
'limit' => $limit,
];

Expand All @@ -38,12 +38,12 @@ public function fbo(array $filter, ?string $lastId = '', int $limit = 100): arra
* @see https://api-seller.ozon.ru/v3/returns/company/fbs
*
* @param array $filter
* @param string|null $lastId
* @param int $lastId
* @param int $limit
*
* @return array
*/
public function fbs(array $filter, ?string $lastId = '', int $limit = 100): array
public function fbs(array $filter, int $lastId = 0, int $limit = 100): array
{
assert($limit > 0 && $limit <= 1000);

Expand All @@ -52,7 +52,7 @@ public function fbs(array $filter, ?string $lastId = '', int $limit = 100): arra
'accepted_from_customer_moment', 'last_free_waiting_day', 'posting_number',
'product_name', 'product_offer_id', 'status'
]),
'last_id' => $lastId ?? '',
'last_id' => $lastId,
'limit' => $limit,
];

Expand Down

0 comments on commit 002be30

Please sign in to comment.