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

Merge branch 'v3'

This commit is contained in:
Ilyas Salikhov 2014-11-06 17:20:07 +03:00
commit 652938ea89

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