| @@ 36-45 (lines=10) @@ | ||
| 33 | $this->serializer = $serializer; |
|
| 34 | } |
|
| 35 | ||
| 36 | public function poolStatus(string $token, string $orderId, string $orderLineId): PoolStatusResponse |
|
| 37 | { |
|
| 38 | $result = $this->request($token, 'GET', '/api/poolStatus', [ |
|
| 39 | 'orderId' => $orderId, |
|
| 40 | 'orderLineId' => $orderLineId, |
|
| 41 | ]); |
|
| 42 | ||
| 43 | /* @noinspection PhpIncompatibleReturnTypeInspection */ |
|
| 44 | return $this->serializer->deserialize(PoolStatusResponse::class, $result); |
|
| 45 | } |
|
| 46 | ||
| 47 | public function codes(string $token, string $orderId, string $orderLineId, int $quantity): array |
|
| 48 | { |
|
| @@ 35-49 (lines=15) @@ | ||
| 32 | $this->serializer = $serializer; |
|
| 33 | } |
|
| 34 | ||
| 35 | public function getICBufferStatus( |
|
| 36 | string $token, |
|
| 37 | string $omsId, |
|
| 38 | string $orderId, |
|
| 39 | string $gtin |
|
| 40 | ): GetICBufferStatusResponse { |
|
| 41 | $result = $this->request($token, 'GET', '/api/v2/buffer/status', [ |
|
| 42 | 'omsId' => $omsId, |
|
| 43 | 'orderId' => $orderId, |
|
| 44 | 'gtin' => $gtin, |
|
| 45 | ]); |
|
| 46 | ||
| 47 | /* @noinspection PhpIncompatibleReturnTypeInspection */ |
|
| 48 | return $this->serializer->deserialize(GetICBufferStatusResponse::class, $result); |
|
| 49 | } |
|
| 50 | ||
| 51 | public function getICsFromOrder( |
|
| 52 | string $token, |
|
| @@ 71-81 (lines=11) @@ | ||
| 68 | return $this->serializer->deserialize(GetICsFromOrderResponse::class, $result); |
|
| 69 | } |
|
| 70 | ||
| 71 | public function closeICArray(string $token, string $omsId, string $orderId, string $gtin): CloseICArrayResponse |
|
| 72 | { |
|
| 73 | $result = $this->request($token, 'GET', '/api/v2/buffer/close', [ |
|
| 74 | 'omsId' => $omsId, |
|
| 75 | 'orderId' => $orderId, |
|
| 76 | 'gtin' => $gtin, |
|
| 77 | ]); |
|
| 78 | ||
| 79 | /* @noinspection PhpIncompatibleReturnTypeInspection */ |
|
| 80 | return $this->serializer->deserialize(CloseICArrayResponse::class, $result); |
|
| 81 | } |
|
| 82 | ||
| 83 | /** |
|
| 84 | * @throws OmsRequestErrorException |
|