@@ 270-283 (lines=14) @@ | ||
267 | /** |
|
268 | * {@inheritdoc} |
|
269 | */ |
|
270 | public function listOrders(DateTime $changedSince, $page = null, $carrierStatus = null, $targetWebShop = null) |
|
271 | { |
|
272 | $today = new DateTime(); |
|
273 | $request = new ListOrdersRequest( |
|
274 | $this->security->getHash($today->format('Ymd')), |
|
275 | $this->client->getWebShopId(), |
|
276 | $targetWebShop, |
|
277 | $changedSince, |
|
278 | $page, |
|
279 | $carrierStatus |
|
280 | ); |
|
281 | ||
282 | return $this->client->listOrders($request); |
|
283 | } |
|
284 | } |
|
285 |
@@ 63-77 (lines=15) @@ | ||
60 | /** |
|
61 | * {@inheritdoc} |
|
62 | */ |
|
63 | public function getOrdersToShip(DateTime $date = null, $targetWebShop = null) |
|
64 | { |
|
65 | if ($date === null) { |
|
66 | $date = new DateTime(); |
|
67 | } |
|
68 | ||
69 | $request = new OrdersToShipRequest( |
|
70 | $this->security->getHash($date->format('Ymd')), |
|
71 | $this->client->getWebShopId(), |
|
72 | $targetWebShop, |
|
73 | $date |
|
74 | ); |
|
75 | ||
76 | return $this->client->ordersToShip($request); |
|
77 | } |
|
78 | ||
79 | /** |
|
80 | * {@inheritdoc} |