@@ 169-184 (lines=16) @@ | ||
166 | * @param int $limit (default: null) |
|
167 | * @return ApiResponse |
|
168 | */ |
|
169 | public function ordersList(array $filter = array(), $page = null, $limit = null) |
|
170 | { |
|
171 | $parameters = array(); |
|
172 | ||
173 | if (sizeof($filter)) { |
|
174 | $parameters['filter'] = $filter; |
|
175 | } |
|
176 | if (null !== $page) { |
|
177 | $parameters['page'] = (int) $page; |
|
178 | } |
|
179 | if (null !== $limit) { |
|
180 | $parameters['limit'] = (int) $limit; |
|
181 | } |
|
182 | ||
183 | return $this->client->makeRequest('/orders', Client::METHOD_GET, $parameters); |
|
184 | } |
|
185 | ||
186 | /** |
|
187 | * Returns statuses of the orders |
|
@@ 232-247 (lines=16) @@ | ||
229 | * @param int $limit (default: null) |
|
230 | * @return ApiResponse |
|
231 | */ |
|
232 | public function ordersPacksHistory(array $filter = array(), $page = null, $limit = null) |
|
233 | { |
|
234 | $parameters = array(); |
|
235 | ||
236 | if (sizeof($filter)) { |
|
237 | $parameters['filter'] = $filter; |
|
238 | } |
|
239 | if (null !== $page) { |
|
240 | $parameters['page'] = (int) $page; |
|
241 | } |
|
242 | if (null !== $limit) { |
|
243 | $parameters['limit'] = (int) $limit; |
|
244 | } |
|
245 | ||
246 | return $this->client->makeRequest('/orders/packs/history', Client::METHOD_GET, $parameters); |
|
247 | } |
|
248 | ||
249 | /** |
|
250 | * Create a customer |
|
@@ 343-358 (lines=16) @@ | ||
340 | * @param int $limit (default: null) |
|
341 | * @return ApiResponse |
|
342 | */ |
|
343 | public function customersList(array $filter = array(), $page = null, $limit = null) |
|
344 | { |
|
345 | $parameters = array(); |
|
346 | ||
347 | if (sizeof($filter)) { |
|
348 | $parameters['filter'] = $filter; |
|
349 | } |
|
350 | if (null !== $page) { |
|
351 | $parameters['page'] = (int) $page; |
|
352 | } |
|
353 | if (null !== $limit) { |
|
354 | $parameters['limit'] = (int) $limit; |
|
355 | } |
|
356 | ||
357 | return $this->client->makeRequest('/customers', Client::METHOD_GET, $parameters); |
|
358 | } |
|
359 | ||
360 | /** |
|
361 | * Save customer IDs' (id and externalId) association in the CRM |
|
@@ 386-401 (lines=16) @@ | ||
383 | * @param string $site (default: null) |
|
384 | * @return ApiResponse |
|
385 | */ |
|
386 | public function storeInventories(array $filter = array(), $page = null, $limit = null, $site = null) |
|
387 | { |
|
388 | $parameters = array(); |
|
389 | ||
390 | if (sizeof($filter)) { |
|
391 | $parameters['filter'] = $filter; |
|
392 | } |
|
393 | if (null !== $page) { |
|
394 | $parameters['page'] = (int) $page; |
|
395 | } |
|
396 | if (null !== $limit) { |
|
397 | $parameters['limit'] = (int) $limit; |
|
398 | } |
|
399 | ||
400 | return $this->client->makeRequest('/store/inventories', Client::METHOD_GET, $this->fillSite($site, $parameters)); |
|
401 | } |
|
402 | ||
403 | /** |
|
404 | * Upload store inventories |