1 | <?php |
||
11 | class UpdateItemStockInfoRequest extends AbstractRequest |
||
12 | { |
||
13 | /** |
||
14 | * @return UpdateItemStockInfoApi |
||
15 | */ |
||
16 | public function api() |
||
20 | |||
21 | /** |
||
22 | * @return UpdateItemStockInfoResponse |
||
23 | */ |
||
24 | public function response() |
||
28 | |||
29 | /** |
||
30 | * @throws InvalidRequestException |
||
31 | */ |
||
32 | protected function validateParams(): void |
||
46 | |||
47 | /** |
||
48 | * @param string $sellerId |
||
49 | * @return self |
||
50 | * @throws InvalidRequestException |
||
51 | */ |
||
52 | public function setSellerId(string $sellerId): self |
||
66 | |||
67 | /** |
||
68 | * @param string $itemCode |
||
69 | * @param string $subCode |
||
70 | * @return self |
||
71 | * @throws InvalidRequestException |
||
72 | */ |
||
73 | public function setItemCode(string $itemCode, string $subCode = ''): self |
||
93 | |||
94 | /** |
||
95 | * @param int|string $quantity |
||
96 | * @return self |
||
97 | * @throws InvalidRequestException |
||
98 | */ |
||
99 | public function setQuantity($quantity): self |
||
113 | |||
114 | /** |
||
115 | * @param bool $allowOverdraft |
||
116 | * @return self |
||
117 | */ |
||
118 | public function setAllowOverdraft(bool $allowOverdraft): self |
||
128 | |||
129 | } |
||
130 |