Open gbsnj opened 3 years ago
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 );
}
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), ];
}