| @@ 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 |
|
| @@ 125-134 (lines=10) @@ | ||
| 122 | * @param SuspectFlag $suspectFlag |
|
| 123 | * @return UpdateOrderInfoRequest |
|
| 124 | */ |
|
| 125 | public function setSuspect(SuspectFlag $suspectFlag): self |
|
| 126 | { |
|
| 127 | if (isset($this->params['Order']['Suspect'])) { |
|
| 128 | throw new LogicException('Suspect is already set.'); |
|
| 129 | } |
|
| 130 | $this->params['Order']['Suspect'] = $suspectFlag->getValue(); |
|
| 131 | ||
| 132 | return $this; |
|
| 133 | } |
|
| 134 | ||
| 135 | /** |
|
| 136 | * 支払い分類 |
|
| 137 | * |
|
| @@ 141-150 (lines=10) @@ | ||
| 138 | * @param PayType $payType |
|
| 139 | * @return UpdateOrderInfoRequest |
|
| 140 | */ |
|
| 141 | public function setPayType(PayType $payType): self |
|
| 142 | { |
|
| 143 | if (isset($this->params['Order']['PayType'])) { |
|
| 144 | throw new LogicException('PayType is already set.'); |
|
| 145 | } |
|
| 146 | $this->params['Order']['PayType'] = $payType->getValue(); |
|
| 147 | ||
| 148 | return $this; |
|
| 149 | } |
|
| 150 | ||
| 151 | /** |
|
| 152 | * 支払い種別 |
|
| 153 | * |
|
| @@ 157-165 (lines=9) @@ | ||
| 154 | * @param PayKind $payKind |
|
| 155 | * @return UpdateOrderInfoRequest |
|
| 156 | */ |
|
| 157 | public function setPayKind(PayKind $payKind): self |
|
| 158 | { |
|
| 159 | if (isset($this->params['Order']['PayKind'])) { |
|
| 160 | throw new LogicException('PayKind is already set.'); |
|
| 161 | } |
|
| 162 | $this->params['Order']['PayKind'] = $payKind->getValue(); |
|
| 163 | ||
| 164 | return $this; |
|
| 165 | } |
|
| 166 | ||
| 167 | /** |
|
| 168 | * 支払い方法 |
|
| @@ 173-181 (lines=9) @@ | ||
| 170 | * @param PayMethod $payMethod |
|
| 171 | * @return UpdateOrderInfoRequest |
|
| 172 | */ |
|
| 173 | public function setPayMethod(PayMethod $payMethod): self |
|
| 174 | { |
|
| 175 | if (isset($this->params['Order']['PayMethod'])) { |
|
| 176 | throw new LogicException('PayMethod is already set.'); |
|
| 177 | } |
|
| 178 | $this->params['Order']['PayMethod'] = $payMethod->getValue(); |
|
| 179 | ||
| 180 | return $this; |
|
| 181 | } |
|
| 182 | ||
| 183 | /** |
|
| 184 | * 支払い方法名称 |
|
| @@ 333-341 (lines=9) @@ | ||
| 330 | * @param RefundStatus $refundStatus |
|
| 331 | * @return UpdateOrderInfoRequest |
|
| 332 | */ |
|
| 333 | public function setRefundStatus(RefundStatus $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->getValue(); |
|
| 339 | ||
| 340 | return $this; |
|
| 341 | } |
|
| 342 | ||
| 343 | ||
| 344 | /** |
|