関数
State::getErrorResponseFromNonChargeableState()
GenericError instance created from a NonChargeable state.説明 説明
This method returns an UNKNOWN_ERROR GenericError instance if the state is not NonChargeable.
ファイル: src/Models/ChargePermission/State.php
public function getErrorResponseFromNonChargeableState() {
$error = $this->getErrorResponse(self::UNKNOWN_ERROR);
if ($this->state !== self::NON_CHARGEABLE) {
return $error;
}
return $this->getErrorResponse($this->reasonCode, [$this->reasonDescription]);
}