From 1a8889b4a2ebd4b3004fe4bd4218cf61a555c464 Mon Sep 17 00:00:00 2001 From: Nick Kraakman Date: Mon, 10 Jun 2024 15:01:42 +0200 Subject: [PATCH] Add endpoints related to fulfilment customers --- src/Client.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/Client.php b/src/Client.php index c77f9e2..d273348 100644 --- a/src/Client.php +++ b/src/Client.php @@ -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 */