| 1: | <?php |
| 2: | |
| 3: | |
| 4: | |
| 5: | |
| 6: | namespace Worldline\Connect\Sdk\V1\Domain; |
| 7: | |
| 8: | use UnexpectedValueException; |
| 9: | |
| 10: | |
| 11: | |
| 12: | |
| 13: | class CashPaymentMethodSpecificInput extends AbstractCashPaymentMethodSpecificInput |
| 14: | { |
| 15: | |
| 16: | |
| 17: | |
| 18: | public $paymentProduct1502SpecificInput = null; |
| 19: | |
| 20: | |
| 21: | |
| 22: | |
| 23: | |
| 24: | public $paymentProduct1503SpecificInput = null; |
| 25: | |
| 26: | |
| 27: | |
| 28: | |
| 29: | public $paymentProduct1504SpecificInput = null; |
| 30: | |
| 31: | |
| 32: | |
| 33: | |
| 34: | public $paymentProduct1506SpecificInput = null; |
| 35: | |
| 36: | |
| 37: | |
| 38: | |
| 39: | public $paymentProduct1508SpecificInput = null; |
| 40: | |
| 41: | |
| 42: | |
| 43: | |
| 44: | public $paymentProduct1521SpecificInput = null; |
| 45: | |
| 46: | |
| 47: | |
| 48: | |
| 49: | public $paymentProduct1522SpecificInput = null; |
| 50: | |
| 51: | |
| 52: | |
| 53: | |
| 54: | public $paymentProduct1523SpecificInput = null; |
| 55: | |
| 56: | |
| 57: | |
| 58: | |
| 59: | public $paymentProduct1524SpecificInput = null; |
| 60: | |
| 61: | |
| 62: | |
| 63: | |
| 64: | public $paymentProduct1525SpecificInput = null; |
| 65: | |
| 66: | |
| 67: | |
| 68: | |
| 69: | public $paymentProduct1526SpecificInput = null; |
| 70: | |
| 71: | |
| 72: | |
| 73: | |
| 74: | public function toObject() |
| 75: | { |
| 76: | $object = parent::toObject(); |
| 77: | if (!is_null($this->paymentProduct1502SpecificInput)) { |
| 78: | $object->paymentProduct1502SpecificInput = $this->paymentProduct1502SpecificInput->toObject(); |
| 79: | } |
| 80: | if (!is_null($this->paymentProduct1503SpecificInput)) { |
| 81: | $object->paymentProduct1503SpecificInput = $this->paymentProduct1503SpecificInput->toObject(); |
| 82: | } |
| 83: | if (!is_null($this->paymentProduct1504SpecificInput)) { |
| 84: | $object->paymentProduct1504SpecificInput = $this->paymentProduct1504SpecificInput->toObject(); |
| 85: | } |
| 86: | if (!is_null($this->paymentProduct1506SpecificInput)) { |
| 87: | $object->paymentProduct1506SpecificInput = $this->paymentProduct1506SpecificInput->toObject(); |
| 88: | } |
| 89: | if (!is_null($this->paymentProduct1508SpecificInput)) { |
| 90: | $object->paymentProduct1508SpecificInput = $this->paymentProduct1508SpecificInput->toObject(); |
| 91: | } |
| 92: | if (!is_null($this->paymentProduct1521SpecificInput)) { |
| 93: | $object->paymentProduct1521SpecificInput = $this->paymentProduct1521SpecificInput->toObject(); |
| 94: | } |
| 95: | if (!is_null($this->paymentProduct1522SpecificInput)) { |
| 96: | $object->paymentProduct1522SpecificInput = $this->paymentProduct1522SpecificInput->toObject(); |
| 97: | } |
| 98: | if (!is_null($this->paymentProduct1523SpecificInput)) { |
| 99: | $object->paymentProduct1523SpecificInput = $this->paymentProduct1523SpecificInput->toObject(); |
| 100: | } |
| 101: | if (!is_null($this->paymentProduct1524SpecificInput)) { |
| 102: | $object->paymentProduct1524SpecificInput = $this->paymentProduct1524SpecificInput->toObject(); |
| 103: | } |
| 104: | if (!is_null($this->paymentProduct1525SpecificInput)) { |
| 105: | $object->paymentProduct1525SpecificInput = $this->paymentProduct1525SpecificInput->toObject(); |
| 106: | } |
| 107: | if (!is_null($this->paymentProduct1526SpecificInput)) { |
| 108: | $object->paymentProduct1526SpecificInput = $this->paymentProduct1526SpecificInput->toObject(); |
| 109: | } |
| 110: | return $object; |
| 111: | } |
| 112: | |
| 113: | |
| 114: | |
| 115: | |
| 116: | |
| 117: | |
| 118: | public function fromObject($object) |
| 119: | { |
| 120: | parent::fromObject($object); |
| 121: | if (property_exists($object, 'paymentProduct1502SpecificInput')) { |
| 122: | if (!is_object($object->paymentProduct1502SpecificInput)) { |
| 123: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1502SpecificInput, true) . '\' is not an object'); |
| 124: | } |
| 125: | $value = new CashPaymentProduct1502SpecificInput(); |
| 126: | $this->paymentProduct1502SpecificInput = $value->fromObject($object->paymentProduct1502SpecificInput); |
| 127: | } |
| 128: | if (property_exists($object, 'paymentProduct1503SpecificInput')) { |
| 129: | if (!is_object($object->paymentProduct1503SpecificInput)) { |
| 130: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1503SpecificInput, true) . '\' is not an object'); |
| 131: | } |
| 132: | $value = new CashPaymentProduct1503SpecificInput(); |
| 133: | $this->paymentProduct1503SpecificInput = $value->fromObject($object->paymentProduct1503SpecificInput); |
| 134: | } |
| 135: | if (property_exists($object, 'paymentProduct1504SpecificInput')) { |
| 136: | if (!is_object($object->paymentProduct1504SpecificInput)) { |
| 137: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1504SpecificInput, true) . '\' is not an object'); |
| 138: | } |
| 139: | $value = new CashPaymentProduct1504SpecificInput(); |
| 140: | $this->paymentProduct1504SpecificInput = $value->fromObject($object->paymentProduct1504SpecificInput); |
| 141: | } |
| 142: | if (property_exists($object, 'paymentProduct1506SpecificInput')) { |
| 143: | if (!is_object($object->paymentProduct1506SpecificInput)) { |
| 144: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1506SpecificInput, true) . '\' is not an object'); |
| 145: | } |
| 146: | $value = new CashPaymentProduct1506SpecificInput(); |
| 147: | $this->paymentProduct1506SpecificInput = $value->fromObject($object->paymentProduct1506SpecificInput); |
| 148: | } |
| 149: | if (property_exists($object, 'paymentProduct1508SpecificInput')) { |
| 150: | if (!is_object($object->paymentProduct1508SpecificInput)) { |
| 151: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1508SpecificInput, true) . '\' is not an object'); |
| 152: | } |
| 153: | $value = new CashPaymentProduct1508SpecificInput(); |
| 154: | $this->paymentProduct1508SpecificInput = $value->fromObject($object->paymentProduct1508SpecificInput); |
| 155: | } |
| 156: | if (property_exists($object, 'paymentProduct1521SpecificInput')) { |
| 157: | if (!is_object($object->paymentProduct1521SpecificInput)) { |
| 158: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1521SpecificInput, true) . '\' is not an object'); |
| 159: | } |
| 160: | $value = new CashPaymentProduct1521SpecificInput(); |
| 161: | $this->paymentProduct1521SpecificInput = $value->fromObject($object->paymentProduct1521SpecificInput); |
| 162: | } |
| 163: | if (property_exists($object, 'paymentProduct1522SpecificInput')) { |
| 164: | if (!is_object($object->paymentProduct1522SpecificInput)) { |
| 165: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1522SpecificInput, true) . '\' is not an object'); |
| 166: | } |
| 167: | $value = new CashPaymentProduct1522SpecificInput(); |
| 168: | $this->paymentProduct1522SpecificInput = $value->fromObject($object->paymentProduct1522SpecificInput); |
| 169: | } |
| 170: | if (property_exists($object, 'paymentProduct1523SpecificInput')) { |
| 171: | if (!is_object($object->paymentProduct1523SpecificInput)) { |
| 172: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1523SpecificInput, true) . '\' is not an object'); |
| 173: | } |
| 174: | $value = new CashPaymentProduct1523SpecificInput(); |
| 175: | $this->paymentProduct1523SpecificInput = $value->fromObject($object->paymentProduct1523SpecificInput); |
| 176: | } |
| 177: | if (property_exists($object, 'paymentProduct1524SpecificInput')) { |
| 178: | if (!is_object($object->paymentProduct1524SpecificInput)) { |
| 179: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1524SpecificInput, true) . '\' is not an object'); |
| 180: | } |
| 181: | $value = new CashPaymentProduct1524SpecificInput(); |
| 182: | $this->paymentProduct1524SpecificInput = $value->fromObject($object->paymentProduct1524SpecificInput); |
| 183: | } |
| 184: | if (property_exists($object, 'paymentProduct1525SpecificInput')) { |
| 185: | if (!is_object($object->paymentProduct1525SpecificInput)) { |
| 186: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1525SpecificInput, true) . '\' is not an object'); |
| 187: | } |
| 188: | $value = new CashPaymentProduct1525SpecificInput(); |
| 189: | $this->paymentProduct1525SpecificInput = $value->fromObject($object->paymentProduct1525SpecificInput); |
| 190: | } |
| 191: | if (property_exists($object, 'paymentProduct1526SpecificInput')) { |
| 192: | if (!is_object($object->paymentProduct1526SpecificInput)) { |
| 193: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1526SpecificInput, true) . '\' is not an object'); |
| 194: | } |
| 195: | $value = new CashPaymentProduct1526SpecificInput(); |
| 196: | $this->paymentProduct1526SpecificInput = $value->fromObject($object->paymentProduct1526SpecificInput); |
| 197: | } |
| 198: | return $this; |
| 199: | } |
| 200: | } |
| 201: | |