Skip to content

Commit

Permalink
Merge pull request #46 from nickkraakman/main
Browse files Browse the repository at this point in the history
Add endpoints related to fulfilment customers
  • Loading branch information
casperbakker authored Aug 14, 2024
2 parents bfb019f + 1a8889b commit 7d89744
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,34 @@ public function deleteCustomerTag($idcustomer, $idtag)
return $this->sendRequest('/customers/' . $idcustomer . '/tags/' . $idtag, [], self::METHOD_DELETE);
}

/**
* Fulfilment customers
*/
public function getFulfilmentCustomers($filters = [])
{
return $this->sendRequest('/fulfilment/customers', null, null, $filters);
}

public function getAllFulfilmentCustomers($filters = [])
{
return $this->getAllResults('fulfilmentCustomer', $filters);
}

public function getFulfilmentCustomer($idfulfilmentcustomer)
{
return $this->sendRequest('/fulfilment/customers/' . $idfulfilmentcustomer);
}

public function addFulfilmentCustomer($params)
{
return $this->sendRequest('/fulfilment/customers', $params, self::METHOD_POST);
}

public function updateFulfilmentCustomer($idfulfilmentcustomer, $params)
{
return $this->sendRequest('/fulfilment/customers/' . $idfulfilmentcustomer, $params, self::METHOD_PUT);
}

/*
* Products
*/
Expand Down

0 comments on commit 7d89744

Please sign in to comment.