| @@ 78-86 (lines=9) @@ | ||
| 75 | * @param OrderStatus $orderStatus |
|
| 76 | * @return self |
|
| 77 | */ |
|
| 78 | public function setOrderStatus(OrderStatus $orderStatus): self |
|
| 79 | { |
|
| 80 | if (isset($this->params['Order']['OrderStatus'])) { |
|
| 81 | throw new LogicException('OrderStatus is already set.'); |
|
| 82 | } |
|
| 83 | $this->params['Order']['OrderStatus'] = $orderStatus->getValue(); |
|
| 84 | ||
| 85 | return $this; |
|
| 86 | } |
|
| 87 | ||
| 88 | /** |
|
| 89 | * 更新者名(ビジネスID登録氏名) |
|
| @@ 111-120 (lines=10) @@ | ||
| 108 | * @param CancelReason $cancelReason |
|
| 109 | * @return self |
|
| 110 | */ |
|
| 111 | public function setCancelReason(CancelReason $cancelReason): self |
|
| 112 | { |
|
| 113 | if (isset($this->params['Order']['CancelReason'])) { |
|
| 114 | throw new LogicException('CancelReason is already set.'); |
|
| 115 | } |
|
| 116 | ||
| 117 | $this->params['Order']['CancelReason'] = $cancelReason->getValue(); |
|
| 118 | ||
| 119 | return $this; |
|
| 120 | } |
|
| 121 | ||
| 122 | /** |
|
| 123 | * @return string |
|