| 1: | <?php |
| 2: | |
| 3: | |
| 4: | |
| 5: | |
| 6: | namespace Worldline\Connect\Sdk\V1\Domain; |
| 7: | |
| 8: | use UnexpectedValueException; |
| 9: | |
| 10: | |
| 11: | |
| 12: | |
| 13: | class RedirectPaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput |
| 14: | { |
| 15: | |
| 16: | |
| 17: | |
| 18: | public $bankAccountBban = null; |
| 19: | |
| 20: | |
| 21: | |
| 22: | |
| 23: | public $bankAccountIban = null; |
| 24: | |
| 25: | |
| 26: | |
| 27: | |
| 28: | public $bic = null; |
| 29: | |
| 30: | |
| 31: | |
| 32: | |
| 33: | public $fraudResults = null; |
| 34: | |
| 35: | |
| 36: | |
| 37: | |
| 38: | public $paymentProduct3201SpecificOutput = null; |
| 39: | |
| 40: | |
| 41: | |
| 42: | |
| 43: | public $paymentProduct806SpecificOutput = null; |
| 44: | |
| 45: | |
| 46: | |
| 47: | |
| 48: | public $paymentProduct836SpecificOutput = null; |
| 49: | |
| 50: | |
| 51: | |
| 52: | |
| 53: | public $paymentProduct840SpecificOutput = null; |
| 54: | |
| 55: | |
| 56: | |
| 57: | |
| 58: | public $paymentProduct866SpecificOutput = null; |
| 59: | |
| 60: | |
| 61: | |
| 62: | |
| 63: | public $token = null; |
| 64: | |
| 65: | |
| 66: | |
| 67: | |
| 68: | public function toObject() |
| 69: | { |
| 70: | $object = parent::toObject(); |
| 71: | if (!is_null($this->bankAccountBban)) { |
| 72: | $object->bankAccountBban = $this->bankAccountBban->toObject(); |
| 73: | } |
| 74: | if (!is_null($this->bankAccountIban)) { |
| 75: | $object->bankAccountIban = $this->bankAccountIban->toObject(); |
| 76: | } |
| 77: | if (!is_null($this->bic)) { |
| 78: | $object->bic = $this->bic; |
| 79: | } |
| 80: | if (!is_null($this->fraudResults)) { |
| 81: | $object->fraudResults = $this->fraudResults->toObject(); |
| 82: | } |
| 83: | if (!is_null($this->paymentProduct3201SpecificOutput)) { |
| 84: | $object->paymentProduct3201SpecificOutput = $this->paymentProduct3201SpecificOutput->toObject(); |
| 85: | } |
| 86: | if (!is_null($this->paymentProduct806SpecificOutput)) { |
| 87: | $object->paymentProduct806SpecificOutput = $this->paymentProduct806SpecificOutput->toObject(); |
| 88: | } |
| 89: | if (!is_null($this->paymentProduct836SpecificOutput)) { |
| 90: | $object->paymentProduct836SpecificOutput = $this->paymentProduct836SpecificOutput->toObject(); |
| 91: | } |
| 92: | if (!is_null($this->paymentProduct840SpecificOutput)) { |
| 93: | $object->paymentProduct840SpecificOutput = $this->paymentProduct840SpecificOutput->toObject(); |
| 94: | } |
| 95: | if (!is_null($this->paymentProduct866SpecificOutput)) { |
| 96: | $object->paymentProduct866SpecificOutput = $this->paymentProduct866SpecificOutput->toObject(); |
| 97: | } |
| 98: | if (!is_null($this->token)) { |
| 99: | $object->token = $this->token; |
| 100: | } |
| 101: | return $object; |
| 102: | } |
| 103: | |
| 104: | |
| 105: | |
| 106: | |
| 107: | |
| 108: | |
| 109: | public function fromObject($object) |
| 110: | { |
| 111: | parent::fromObject($object); |
| 112: | if (property_exists($object, 'bankAccountBban')) { |
| 113: | if (!is_object($object->bankAccountBban)) { |
| 114: | throw new UnexpectedValueException('value \'' . print_r($object->bankAccountBban, true) . '\' is not an object'); |
| 115: | } |
| 116: | $value = new BankAccountBban(); |
| 117: | $this->bankAccountBban = $value->fromObject($object->bankAccountBban); |
| 118: | } |
| 119: | if (property_exists($object, 'bankAccountIban')) { |
| 120: | if (!is_object($object->bankAccountIban)) { |
| 121: | throw new UnexpectedValueException('value \'' . print_r($object->bankAccountIban, true) . '\' is not an object'); |
| 122: | } |
| 123: | $value = new BankAccountIban(); |
| 124: | $this->bankAccountIban = $value->fromObject($object->bankAccountIban); |
| 125: | } |
| 126: | if (property_exists($object, 'bic')) { |
| 127: | $this->bic = $object->bic; |
| 128: | } |
| 129: | if (property_exists($object, 'fraudResults')) { |
| 130: | if (!is_object($object->fraudResults)) { |
| 131: | throw new UnexpectedValueException('value \'' . print_r($object->fraudResults, true) . '\' is not an object'); |
| 132: | } |
| 133: | $value = new FraudResults(); |
| 134: | $this->fraudResults = $value->fromObject($object->fraudResults); |
| 135: | } |
| 136: | if (property_exists($object, 'paymentProduct3201SpecificOutput')) { |
| 137: | if (!is_object($object->paymentProduct3201SpecificOutput)) { |
| 138: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct3201SpecificOutput, true) . '\' is not an object'); |
| 139: | } |
| 140: | $value = new PaymentProduct3201SpecificOutput(); |
| 141: | $this->paymentProduct3201SpecificOutput = $value->fromObject($object->paymentProduct3201SpecificOutput); |
| 142: | } |
| 143: | if (property_exists($object, 'paymentProduct806SpecificOutput')) { |
| 144: | if (!is_object($object->paymentProduct806SpecificOutput)) { |
| 145: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct806SpecificOutput, true) . '\' is not an object'); |
| 146: | } |
| 147: | $value = new PaymentProduct806SpecificOutput(); |
| 148: | $this->paymentProduct806SpecificOutput = $value->fromObject($object->paymentProduct806SpecificOutput); |
| 149: | } |
| 150: | if (property_exists($object, 'paymentProduct836SpecificOutput')) { |
| 151: | if (!is_object($object->paymentProduct836SpecificOutput)) { |
| 152: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct836SpecificOutput, true) . '\' is not an object'); |
| 153: | } |
| 154: | $value = new PaymentProduct836SpecificOutput(); |
| 155: | $this->paymentProduct836SpecificOutput = $value->fromObject($object->paymentProduct836SpecificOutput); |
| 156: | } |
| 157: | if (property_exists($object, 'paymentProduct840SpecificOutput')) { |
| 158: | if (!is_object($object->paymentProduct840SpecificOutput)) { |
| 159: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct840SpecificOutput, true) . '\' is not an object'); |
| 160: | } |
| 161: | $value = new PaymentProduct840SpecificOutput(); |
| 162: | $this->paymentProduct840SpecificOutput = $value->fromObject($object->paymentProduct840SpecificOutput); |
| 163: | } |
| 164: | if (property_exists($object, 'paymentProduct866SpecificOutput')) { |
| 165: | if (!is_object($object->paymentProduct866SpecificOutput)) { |
| 166: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct866SpecificOutput, true) . '\' is not an object'); |
| 167: | } |
| 168: | $value = new PaymentProduct866SpecificOutput(); |
| 169: | $this->paymentProduct866SpecificOutput = $value->fromObject($object->paymentProduct866SpecificOutput); |
| 170: | } |
| 171: | if (property_exists($object, 'token')) { |
| 172: | $this->token = $object->token; |
| 173: | } |
| 174: | return $this; |
| 175: | } |
| 176: | } |
| 177: | |