| @@ 89-98 (lines=10) @@ | ||
| 86 | * @param ShipStatus $shipStatus |
|
| 87 | * @return self |
|
| 88 | */ |
|
| 89 | public function setShipStatus(ShipStatus $shipStatus): self |
|
| 90 | { |
|
| 91 | if (isset($this->params['Order']['Ship']['ShipStatus'])) { |
|
| 92 | throw new LogicException('ShipStatus is already set.'); |
|
| 93 | } |
|
| 94 | ||
| 95 | $this->params['Order']['Ship']['ShipStatus'] = $shipStatus->getValue(); |
|
| 96 | ||
| 97 | return $this; |
|
| 98 | } |
|
| 99 | ||
| 100 | /** |
|
| 101 | * @param ShipMethod $shipMethod |
|
| @@ 104-113 (lines=10) @@ | ||
| 101 | * @param ShipMethod $shipMethod |
|
| 102 | * @return self |
|
| 103 | */ |
|
| 104 | public function setShipMethod(ShipMethod $shipMethod): self |
|
| 105 | { |
|
| 106 | if (isset($this->params['Order']['Ship']['ShipMethod'])) { |
|
| 107 | throw new LogicException('ShipMethod is already set.'); |
|
| 108 | } |
|
| 109 | ||
| 110 | $this->params['Order']['Ship']['ShipMethod'] = $shipMethod->getValue(); |
|
| 111 | ||
| 112 | return $this; |
|
| 113 | } |
|
| 114 | ||
| 115 | /** |
|
| 116 | * @param string $shipNotes |
|
| @@ 98-106 (lines=9) @@ | ||
| 95 | * @param OrderStatus $orderStatus |
|
| 96 | * @return self |
|
| 97 | */ |
|
| 98 | public function setOrderStatus(OrderStatus $orderStatus): self |
|
| 99 | { |
|
| 100 | if (isset($this->params['Order']['OrderStatus'])) { |
|
| 101 | throw new LogicException('OrderStatus is already set.'); |
|
| 102 | } |
|
| 103 | $this->params['Order']['OrderStatus'] = $orderStatus->getValue(); |
|
| 104 | ||
| 105 | return $this; |
|
| 106 | } |
|
| 107 | ||
| 108 | /** |
|
| 109 | * 更新者名(ビジネスID登録氏名) |
|
| @@ 131-140 (lines=10) @@ | ||
| 128 | * @param CancelReason $cancelReason |
|
| 129 | * @return self |
|
| 130 | */ |
|
| 131 | public function setCancelReason(CancelReason $cancelReason): self |
|
| 132 | { |
|
| 133 | if (isset($this->params['Order']['CancelReason'])) { |
|
| 134 | throw new LogicException('CancelReason is already set.'); |
|
| 135 | } |
|
| 136 | ||
| 137 | $this->params['Order']['CancelReason'] = $cancelReason->getValue(); |
|
| 138 | ||
| 139 | return $this; |
|
| 140 | } |
|
| 141 | ||
| 142 | /** |
|
| 143 | * @return string |
|