@@ 186-195 (lines=10) @@ | ||
183 | * @param string $shipInvoiceNumber1 |
|
184 | * @return self |
|
185 | */ |
|
186 | public function setShipInvoiceNumber1(string $shipInvoiceNumber1): self |
|
187 | { |
|
188 | if (isset($this->params['Order']['Ship']['ShipInvoiceNumber1'])) { |
|
189 | throw new LogicException('ShipInvoiceNumber1 is already set.'); |
|
190 | } |
|
191 | ||
192 | $this->params['Order']['Ship']['ShipInvoiceNumber1'] = $shipInvoiceNumber1; |
|
193 | ||
194 | return $this; |
|
195 | } |
|
196 | ||
197 | /** |
|
198 | * @param string $shipInvoiceNumber2 |
|
@@ 201-210 (lines=10) @@ | ||
198 | * @param string $shipInvoiceNumber2 |
|
199 | * @return self |
|
200 | */ |
|
201 | public function setShipInvoiceNumber2(string $shipInvoiceNumber2): self |
|
202 | { |
|
203 | if (isset($this->params['Order']['Ship']['ShipInvoiceNumber2'])) { |
|
204 | throw new LogicException('ShipInvoiceNumber2 is already set.'); |
|
205 | } |
|
206 | ||
207 | $this->params['Order']['Ship']['ShipInvoiceNumber2'] = $shipInvoiceNumber2; |
|
208 | ||
209 | return $this; |
|
210 | } |
|
211 | ||
212 | /** |
|
213 | * @param string $shipUrl |
|
@@ 216-225 (lines=10) @@ | ||
213 | * @param string $shipUrl |
|
214 | * @return self |
|
215 | */ |
|
216 | public function setShipUrl(string $shipUrl): self |
|
217 | { |
|
218 | if (isset($this->params['Order']['Ship']['ShipUrl'])) { |
|
219 | throw new LogicException('ShipUrl is already set.'); |
|
220 | } |
|
221 | ||
222 | $this->params['Order']['Ship']['ShipUrl'] = '![CDATA[' . $shipUrl . ']]'; |
|
223 | ||
224 | return $this; |
|
225 | } |
|
226 | ||
227 | /** |
|
228 | * @param \DateTimeImmutable $shipDate |
@@ 189-197 (lines=9) @@ | ||
186 | * @param string $payMethodName |
|
187 | * @return UpdateOrderInfoRequest |
|
188 | */ |
|
189 | public function setPayMethodName(string $payMethodName): self |
|
190 | { |
|
191 | if (isset($this->params['Order']['PayMethodName'])) { |
|
192 | throw new LogicException('PayMethodName is already set.'); |
|
193 | } |
|
194 | $this->params['Order']['PayMethodName'] = $payMethodName; |
|
195 | ||
196 | return $this; |
|
197 | } |
|
198 | ||
199 | /** |
|
200 | * ストアステータス |
|
@@ 207-215 (lines=9) @@ | ||
204 | * @param string $storeStatus |
|
205 | * @return UpdateOrderInfoRequest |
|
206 | */ |
|
207 | public function setStoreStatus(string $storeStatus): self |
|
208 | { |
|
209 | if (isset($this->params['Order']['StoreStatus'])) { |
|
210 | throw new LogicException('StoreStatus is already set.'); |
|
211 | } |
|
212 | $this->params['Order']['StoreStatus'] = $storeStatus; |
|
213 | ||
214 | return $this; |
|
215 | } |
|
216 | ||
217 | /** |
|
218 | * 注文伝票出力時刻 |
|
@@ 279-287 (lines=9) @@ | ||
276 | * @param string $buyerComments |
|
277 | * @return UpdateOrderInfoRequest |
|
278 | */ |
|
279 | public function setBuyerComments(string $buyerComments): self |
|
280 | { |
|
281 | if (isset($this->params['Order']['BuyerComments'])) { |
|
282 | throw new LogicException('BuyerComments is already set.'); |
|
283 | } |
|
284 | $this->params['Order']['BuyerComments'] = $buyerComments; |
|
285 | ||
286 | return $this; |
|
287 | } |
|
288 | ||
289 | /** |
|
290 | * セラーコメント |
|
@@ 297-305 (lines=9) @@ | ||
294 | * @param string $sellerComments |
|
295 | * @return UpdateOrderInfoRequest |
|
296 | */ |
|
297 | public function setSellerComments(string $sellerComments): self |
|
298 | { |
|
299 | if (isset($this->params['Order']['SellerComments'])) { |
|
300 | throw new LogicException('SellerComments is already set.'); |
|
301 | } |
|
302 | $this->params['Order']['SellerComments'] = $sellerComments; |
|
303 | ||
304 | return $this; |
|
305 | } |
|
306 | ||
307 | /** |
|
308 | * 社内メモ |
|
@@ 333-341 (lines=9) @@ | ||
330 | * @param string $refundStatus |
|
331 | * @return UpdateOrderInfoRequest |
|
332 | */ |
|
333 | public function setRefundStatus(string $refundStatus): self |
|
334 | { |
|
335 | if (isset($this->params['Order']['RefundStatus'])) { |
|
336 | throw new LogicException('RefundStatus is already set.'); |
|
337 | } |
|
338 | $this->params['Order']['RefundStatus'] = $refundStatus; |
|
339 | ||
340 | return $this; |
|
341 | } |
|
342 | ||
343 | } |
|
344 |