1 | <?php |
||
17 | class BolComRetailerService |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Max retry counts for the API requests. |
||
22 | * |
||
23 | * @var int |
||
24 | */ |
||
25 | protected $maxRetries; |
||
26 | |||
27 | /** |
||
28 | * Holds the retry counts. |
||
29 | * @var int |
||
30 | */ |
||
31 | protected $retriesCount = 0; |
||
32 | |||
33 | /** |
||
34 | * BolComRetailer constructor. |
||
35 | */ |
||
36 | public function __construct() |
||
46 | |||
47 | /** |
||
48 | * Returns a collection of the open orders. |
||
49 | * |
||
50 | * @return Collection |
||
51 | */ |
||
52 | public function getOpenOrders(): Collection |
||
73 | |||
74 | /** |
||
75 | * Returns a Bol.com order. |
||
76 | * Null if order not found. |
||
77 | * |
||
78 | * @param string $orderId |
||
79 | * @return Order|null |
||
80 | */ |
||
81 | public function getOrder(string $orderId) |
||
89 | |||
90 | /** |
||
91 | * Ships a order item |
||
92 | * |
||
93 | * @param OrderItem $orderItem |
||
94 | * @param Transport $transport |
||
95 | * @return ProcessStatus |
||
96 | */ |
||
97 | public function shipOrderItem(OrderItem $orderItem, Transport $transport): ProcessStatus |
||
120 | |||
121 | } |
||
122 |