From 34f68a3ef12bf6826d4146ee485ebb4ab7255b24 Mon Sep 17 00:00:00 2001 From: Kruglov Kirill Date: Mon, 8 Jul 2013 15:30:47 +0400 Subject: [PATCH] New methods orderStatusesList and orderStatusGroupsList are added. --- lib/IntaroCrm/RestApi.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/lib/IntaroCrm/RestApi.php b/lib/IntaroCrm/RestApi.php index e18f2b8..7a76dd9 100644 --- a/lib/IntaroCrm/RestApi.php +++ b/lib/IntaroCrm/RestApi.php @@ -390,6 +390,30 @@ class RestApi return $result; } + /** + * Получение списка статусов заказа + * + * @return array - массив статусов заказа + */ + public function orderStatusesList() + { + $url = $this->apiUrl.'reference/statuses'; + $result = $this->curlRequest($url); + return $result; + } + + /** + * Получение списка групп статусов заказа + * + * @return array - массив групп статусов заказа + */ + public function orderStatusGroupsList() + { + $url = $this->apiUrl.'reference/status-groups'; + $result = $this->curlRequest($url); + return $result; + } +