Skip to content

Commit

Permalink
Add handling of deleted customer groups via the V2 API
Browse files Browse the repository at this point in the history
  • Loading branch information
szeber committed Mar 7, 2020
1 parent 6cab68b commit b1e2804
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ShoppinPal/Vend/Api/V2/CustomerGroups.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@ class CustomerGroups extends V2ApiAbstract
* @param int $pageSize The number of items to return per page.
* @param null $before The version to succeed the last returned version.
* @param null $after The version to precede the first returned version
* @param bool $includeDeleted If TRUE, deleted items will be returned as well. (required to synchronise deletions)
*
* @return CollectionResult
*/
public function getCollection(
$pageSize = 50,
$before = null,
$after = null
$after = null,
$includeDeleted = false
)
{
$params = $this->getCollectionGetterParams($pageSize, $before, $after);
$params = $this->getCollectionGetterParams($pageSize, $before, $after, $includeDeleted);

$request = $this->getAuthenticatedRequestForUri('api/2.0/customer_groups', $params, true);
$request->setMethod(CurlHttpRequest::METHOD_GET);
Expand Down

0 comments on commit b1e2804

Please sign in to comment.