1
0
mirror of synced 2024-11-25 06:46:07 +03:00

Added skipMyChanges in ordersHistory

This commit is contained in:
Ilyas Salikhov 2014-11-06 17:19:20 +03:00
parent ca2b480a26
commit 65eab8845b

View File

@ -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);
}