| @@ 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 |
|
| @@ 139-148 (lines=10) @@ | ||
| 136 | * @param SuspectFlag $suspectFlag |
|
| 137 | * @return self |
|
| 138 | */ |
|
| 139 | public function setSuspect(SuspectFlag $suspectFlag): self |
|
| 140 | { |
|
| 141 | if (isset($this->params['Order']['Suspect'])) { |
|
| 142 | throw new LogicException('Suspect is already set.'); |
|
| 143 | } |
|
| 144 | $this->params['Order']['Suspect'] = $suspectFlag->getValue(); |
|
| 145 | ||
| 146 | return $this; |
|
| 147 | } |
|
| 148 | ||
| 149 | /** |
|
| 150 | * 支払い分類 |
|
| 151 | * |
|
| @@ 155-164 (lines=10) @@ | ||
| 152 | * @param PayType $payType |
|
| 153 | * @return self |
|
| 154 | */ |
|
| 155 | public function setPayType(PayType $payType): self |
|
| 156 | { |
|
| 157 | if (isset($this->params['Order']['PayType'])) { |
|
| 158 | throw new LogicException('PayType is already set.'); |
|
| 159 | } |
|
| 160 | $this->params['Order']['PayType'] = $payType->getValue(); |
|
| 161 | ||
| 162 | return $this; |
|
| 163 | } |
|
| 164 | ||
| 165 | /** |
|
| 166 | * 支払い種別 |
|
| 167 | * |
|
| @@ 171-179 (lines=9) @@ | ||
| 168 | * @param PayKind $payKind |
|
| 169 | * @return self |
|
| 170 | */ |
|
| 171 | public function setPayKind(PayKind $payKind): self |
|
| 172 | { |
|
| 173 | if (isset($this->params['Order']['PayKind'])) { |
|
| 174 | throw new LogicException('PayKind is already set.'); |
|
| 175 | } |
|
| 176 | $this->params['Order']['PayKind'] = $payKind->getValue(); |
|
| 177 | ||
| 178 | return $this; |
|
| 179 | } |
|
| 180 | ||
| 181 | /** |
|
| 182 | * 支払い方法 |
|
| @@ 187-195 (lines=9) @@ | ||
| 184 | * @param PayMethod $payMethod |
|
| 185 | * @return self |
|
| 186 | */ |
|
| 187 | public function setPayMethod(PayMethod $payMethod): self |
|
| 188 | { |
|
| 189 | if (isset($this->params['Order']['PayMethod'])) { |
|
| 190 | throw new LogicException('PayMethod is already set.'); |
|
| 191 | } |
|
| 192 | $this->params['Order']['PayMethod'] = $payMethod->getValue(); |
|
| 193 | ||
| 194 | return $this; |
|
| 195 | } |
|
| 196 | ||
| 197 | /** |
|
| 198 | * 支払い方法名称 |
|
| @@ 347-355 (lines=9) @@ | ||
| 344 | * @param RefundStatus $refundStatus |
|
| 345 | * @return self |
|
| 346 | */ |
|
| 347 | public function setRefundStatus(RefundStatus $refundStatus): self |
|
| 348 | { |
|
| 349 | if (isset($this->params['Order']['RefundStatus'])) { |
|
| 350 | throw new LogicException('RefundStatus is already set.'); |
|
| 351 | } |
|
| 352 | $this->params['Order']['RefundStatus'] = $refundStatus->getValue(); |
|
| 353 | ||
| 354 | return $this; |
|
| 355 | } |
|
| 356 | ||
| 357 | /** |
|
| 358 | * @param \DateTimeImmutable $payDate |
|