Merge branch 'v3'
This commit is contained in:
commit
652938ea89
@ -111,10 +111,16 @@ class ApiClient
|
|||||||
* @param \DateTime $endDate (default: null)
|
* @param \DateTime $endDate (default: null)
|
||||||
* @param int $limit (default: 100)
|
* @param int $limit (default: 100)
|
||||||
* @param int $offset (default: 0)
|
* @param int $offset (default: 0)
|
||||||
|
* @param bool $skipMyChanges (default: true)
|
||||||
* @return ApiResponse
|
* @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();
|
$parameters = array();
|
||||||
|
|
||||||
if ($startDate) {
|
if ($startDate) {
|
||||||
@ -129,6 +135,9 @@ class ApiClient
|
|||||||
if ($offset) {
|
if ($offset) {
|
||||||
$parameters['offset'] = (int) $offset;
|
$parameters['offset'] = (int) $offset;
|
||||||
}
|
}
|
||||||
|
if ($skipMyChanges) {
|
||||||
|
$parameters['skipMyChanges'] = (bool) $skipMyChanges;
|
||||||
|
}
|
||||||
|
|
||||||
return $this->client->makeRequest('/orders/history', Client::METHOD_GET, $parameters);
|
return $this->client->makeRequest('/orders/history', Client::METHOD_GET, $parameters);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user