diff --git a/src/PlentymarketsRestClient/PlentymarketsRestClient.php b/src/PlentymarketsRestClient/PlentymarketsRestClient.php index addceb9..9de6e04 100644 --- a/src/PlentymarketsRestClient/PlentymarketsRestClient.php +++ b/src/PlentymarketsRestClient/PlentymarketsRestClient.php @@ -13,6 +13,8 @@ class PlentymarketsRestClient const METHOD_GET = 'GET'; const METHOD_POST = 'POST'; const METHOD_PUT = 'PUT'; + const METHOD_PATCH = 'PATCH'; + const METHOD_DELETE = 'DELETE'; const THROTTLING_PREFIX_LONG_PERIOD = 'X-Plenty-Global-Long-Period'; const THROTTLING_PREFIX_SHORT_PERIOD = 'X-Plenty-Global-Short-Period'; @@ -100,6 +102,11 @@ public function put($path, $array = []) return $this->singleCall(self::METHOD_PUT, $path, ['json' => $array]); } + public function patch($path, $array = []) + { + return $this->singleCall(self::METHOD_PATCH, $path, ['json' => $array]); + } + public function delete($path, $array = []) { return $this->singleCall(self::METHOD_DELETE, $path, ['json' => $array]);