We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
missing pagination signature and implementation in getCustomers() results in not getting all customers.
Function should look like:
public function getCustomers($page = 1, $pageSize = 50, \DateTime $minCreatedAt = null) { $query = [ 'page' => max(1, $page), 'pageSize' => max(1, $pageSize), ];
if ($minCreatedAt !== null && $minCreatedAt instanceof \DateTime) { $query['minCreatedAt'] = $minCreatedAt->format('c'); } return $this->client->get( 'customers', $query, Response\GetCustomersResponse::class );
}
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
missing pagination signature and implementation in getCustomers() results in not getting all customers.
Function should look like:
public function getCustomers($page = 1, $pageSize = 50, \DateTime $minCreatedAt = null)
{
$query = [
'page' => max(1, $page),
'pageSize' => max(1, $pageSize),
];
}
The text was updated successfully, but these errors were encountered: