1 | <?php |
||
14 | class BolComRetailerClient |
||
15 | { |
||
16 | /** |
||
17 | * Max retry counts for the API requests. |
||
18 | * |
||
19 | * @var int |
||
20 | */ |
||
21 | protected $maxRetries; |
||
22 | |||
23 | /** |
||
24 | * Holds the retry counts. |
||
25 | * @var int |
||
26 | */ |
||
27 | protected $retriesCount = 0; |
||
28 | |||
29 | /** |
||
30 | * BolComRetailerClient constructor. |
||
31 | */ |
||
32 | public function __construct() |
||
36 | |||
37 | /** |
||
38 | * Returns a collection of the open orders. |
||
39 | * |
||
40 | * @return Collection |
||
41 | */ |
||
42 | public function getOpenOrders(): Collection |
||
63 | |||
64 | /** |
||
65 | * Returns a Bol.com order. |
||
66 | * Null if order not found. |
||
67 | * |
||
68 | * @param string $orderId |
||
69 | * @return Order|null |
||
70 | */ |
||
71 | public function getOrder(string $orderId) |
||
79 | |||
80 | /** |
||
81 | * Ships a order item |
||
82 | * |
||
83 | * @param OrderItem $orderItem |
||
84 | * @param Transport $transport |
||
85 | * @return ProcessStatus |
||
86 | */ |
||
87 | public function shipOrderItem(OrderItem $orderItem, Transport $transport): ProcessStatus |
||
111 | } |
||
112 |