From 65eab8845b1b131dcd0890cd6a29b4acce32697f Mon Sep 17 00:00:00 2001 From: Ilyas Salikhov Date: Thu, 6 Nov 2014 17:19:20 +0300 Subject: [PATCH] Added skipMyChanges in ordersHistory --- lib/RetailCrm/ApiClient.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/RetailCrm/ApiClient.php b/lib/RetailCrm/ApiClient.php index 6316363..471ef48 100644 --- a/lib/RetailCrm/ApiClient.php +++ b/lib/RetailCrm/ApiClient.php @@ -111,10 +111,16 @@ class ApiClient * @param \DateTime $endDate (default: null) * @param int $limit (default: 100) * @param int $offset (default: 0) + * @param bool $skipMyChanges (default: true) * @return ApiResponse */ - public function ordersHistory(\DateTime $startDate = null, \DateTime $endDate = null, $limit = 100, $offset = 0) - { + public function ordersHistory( + \DateTime $startDate = null, + \DateTime $endDate = null, + $limit = 100, + $offset = 0, + $skipMyChanges = true + ) { $parameters = array(); if ($startDate) { @@ -129,6 +135,9 @@ class ApiClient if ($offset) { $parameters['offset'] = (int) $offset; } + if ($skipMyChanges) { + $parameters['skipMyChanges'] = (bool) $skipMyChanges; + } return $this->client->makeRequest('/orders/history', Client::METHOD_GET, $parameters); }