| @@ 128-136 (lines=9) @@ | ||
| 125 | * @param OrderStatus $orderStatus |
|
| 126 | * @return self |
|
| 127 | */ |
|
| 128 | public function setOrderStatus(OrderStatus $orderStatus): self |
|
| 129 | { |
|
| 130 | if (isset($this->params['Order']['OrderStatus'])) { |
|
| 131 | throw new LogicException('OrderStatus is already set.'); |
|
| 132 | } |
|
| 133 | $this->params['Order']['OrderStatus'] = $orderStatus->getValue(); |
|
| 134 | ||
| 135 | return $this; |
|
| 136 | } |
|
| 137 | ||
| 138 | /** |
|
| 139 | * 更新者名(ビジネスID登録氏名) |
|
| @@ 161-170 (lines=10) @@ | ||
| 158 | * @param CancelReason $cancelReason |
|
| 159 | * @return self |
|
| 160 | */ |
|
| 161 | public function setCancelReason(CancelReason $cancelReason): self |
|
| 162 | { |
|
| 163 | if (isset($this->params['Order']['CancelReason'])) { |
|
| 164 | throw new LogicException('CancelReason is already set.'); |
|
| 165 | } |
|
| 166 | ||
| 167 | $this->params['Order']['CancelReason'] = $cancelReason->getValue(); |
|
| 168 | ||
| 169 | return $this; |
|
| 170 | } |
|
| 171 | ||
| 172 | } |
|
| 173 | ||
| @@ 137-146 (lines=10) @@ | ||
| 134 | * @param ShipStatus $shipStatus |
|
| 135 | * @return self |
|
| 136 | */ |
|
| 137 | public function setShipStatus(ShipStatus $shipStatus): self |
|
| 138 | { |
|
| 139 | if (isset($this->params['Order']['Ship']['ShipStatus'])) { |
|
| 140 | throw new LogicException('ShipStatus is already set.'); |
|
| 141 | } |
|
| 142 | ||
| 143 | $this->params['Order']['Ship']['ShipStatus'] = $shipStatus->getValue(); |
|
| 144 | ||
| 145 | return $this; |
|
| 146 | } |
|
| 147 | ||
| 148 | /** |
|
| 149 | * @param ShipMethod $shipMethod |
|
| @@ 152-161 (lines=10) @@ | ||
| 149 | * @param ShipMethod $shipMethod |
|
| 150 | * @return self |
|
| 151 | */ |
|
| 152 | public function setShipMethod(ShipMethod $shipMethod): self |
|
| 153 | { |
|
| 154 | if (isset($this->params['Order']['Ship']['ShipMethod'])) { |
|
| 155 | throw new LogicException('ShipMethod is already set.'); |
|
| 156 | } |
|
| 157 | ||
| 158 | $this->params['Order']['Ship']['ShipMethod'] = $shipMethod->getValue(); |
|
| 159 | ||
| 160 | return $this; |
|
| 161 | } |
|
| 162 | ||
| 163 | /** |
|
| 164 | * @param string $shipNotes |
|
| @@ 72-81 (lines=10) @@ | ||
| 69 | * @param SuspectFlag $suspectFlag |
|
| 70 | * @return UpdateOrderInfoRequest |
|
| 71 | */ |
|
| 72 | public function setSuspect(SuspectFlag $suspectFlag): self |
|
| 73 | { |
|
| 74 | if (isset($this->params['Order']['Suspect'])) { |
|
| 75 | throw new LogicException('Suspect is already set.'); |
|
| 76 | } |
|
| 77 | $this->params['Order']['Suspect'] = $suspectFlag->getValue(); |
|
| 78 | ||
| 79 | return $this; |
|
| 80 | ||
| 81 | } |
|
| 82 | ||
| 83 | /** |
|
| 84 | * 支払い分類 |
|
| @@ 89-98 (lines=10) @@ | ||
| 86 | * @param PayType $payType |
|
| 87 | * @return UpdateOrderInfoRequest |
|
| 88 | */ |
|
| 89 | public function setPayType(PayType $payType): self |
|
| 90 | { |
|
| 91 | if (isset($this->params['Order']['PayType'])) { |
|
| 92 | throw new LogicException('PayType is already set.'); |
|
| 93 | } |
|
| 94 | $this->params['Order']['PayType'] = $payType->getValue(); |
|
| 95 | ||
| 96 | return $this; |
|
| 97 | ||
| 98 | } |
|
| 99 | } |
|