| 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: | |
| 19: | public $paymentProduct1503SpecificInput = null; |
| 20: | |
| 21: | |
| 22: | |
| 23: | |
| 24: | public $paymentProduct1504SpecificInput = null; |
| 25: | |
| 26: | |
| 27: | |
| 28: | |
| 29: | public $paymentProduct1506SpecificInput = null; |
| 30: | |
| 31: | |
| 32: | |
| 33: | |
| 34: | public $paymentProduct1508SpecificInput = null; |
| 35: | |
| 36: | |
| 37: | |
| 38: | |
| 39: | public $paymentProduct1521SpecificInput = null; |
| 40: | |
| 41: | |
| 42: | |
| 43: | |
| 44: | public $paymentProduct1522SpecificInput = null; |
| 45: | |
| 46: | |
| 47: | |
| 48: | |
| 49: | public $paymentProduct1523SpecificInput = null; |
| 50: | |
| 51: | |
| 52: | |
| 53: | |
| 54: | public $paymentProduct1524SpecificInput = null; |
| 55: | |
| 56: | |
| 57: | |
| 58: | |
| 59: | public $paymentProduct1526SpecificInput = null; |
| 60: | |
| 61: | |
| 62: | |
| 63: | |
| 64: | public function toObject() |
| 65: | { |
| 66: | $object = parent::toObject(); |
| 67: | if (!is_null($this->paymentProduct1503SpecificInput)) { |
| 68: | $object->paymentProduct1503SpecificInput = $this->paymentProduct1503SpecificInput->toObject(); |
| 69: | } |
| 70: | if (!is_null($this->paymentProduct1504SpecificInput)) { |
| 71: | $object->paymentProduct1504SpecificInput = $this->paymentProduct1504SpecificInput->toObject(); |
| 72: | } |
| 73: | if (!is_null($this->paymentProduct1506SpecificInput)) { |
| 74: | $object->paymentProduct1506SpecificInput = $this->paymentProduct1506SpecificInput->toObject(); |
| 75: | } |
| 76: | if (!is_null($this->paymentProduct1508SpecificInput)) { |
| 77: | $object->paymentProduct1508SpecificInput = $this->paymentProduct1508SpecificInput->toObject(); |
| 78: | } |
| 79: | if (!is_null($this->paymentProduct1521SpecificInput)) { |
| 80: | $object->paymentProduct1521SpecificInput = $this->paymentProduct1521SpecificInput->toObject(); |
| 81: | } |
| 82: | if (!is_null($this->paymentProduct1522SpecificInput)) { |
| 83: | $object->paymentProduct1522SpecificInput = $this->paymentProduct1522SpecificInput->toObject(); |
| 84: | } |
| 85: | if (!is_null($this->paymentProduct1523SpecificInput)) { |
| 86: | $object->paymentProduct1523SpecificInput = $this->paymentProduct1523SpecificInput->toObject(); |
| 87: | } |
| 88: | if (!is_null($this->paymentProduct1524SpecificInput)) { |
| 89: | $object->paymentProduct1524SpecificInput = $this->paymentProduct1524SpecificInput->toObject(); |
| 90: | } |
| 91: | if (!is_null($this->paymentProduct1526SpecificInput)) { |
| 92: | $object->paymentProduct1526SpecificInput = $this->paymentProduct1526SpecificInput->toObject(); |
| 93: | } |
| 94: | return $object; |
| 95: | } |
| 96: | |
| 97: | |
| 98: | |
| 99: | |
| 100: | |
| 101: | |
| 102: | public function fromObject($object) |
| 103: | { |
| 104: | parent::fromObject($object); |
| 105: | if (property_exists($object, 'paymentProduct1503SpecificInput')) { |
| 106: | if (!is_object($object->paymentProduct1503SpecificInput)) { |
| 107: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1503SpecificInput, true) . '\' is not an object'); |
| 108: | } |
| 109: | $value = new CashPaymentProduct1503SpecificInput(); |
| 110: | $this->paymentProduct1503SpecificInput = $value->fromObject($object->paymentProduct1503SpecificInput); |
| 111: | } |
| 112: | if (property_exists($object, 'paymentProduct1504SpecificInput')) { |
| 113: | if (!is_object($object->paymentProduct1504SpecificInput)) { |
| 114: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1504SpecificInput, true) . '\' is not an object'); |
| 115: | } |
| 116: | $value = new CashPaymentProduct1504SpecificInput(); |
| 117: | $this->paymentProduct1504SpecificInput = $value->fromObject($object->paymentProduct1504SpecificInput); |
| 118: | } |
| 119: | if (property_exists($object, 'paymentProduct1506SpecificInput')) { |
| 120: | if (!is_object($object->paymentProduct1506SpecificInput)) { |
| 121: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1506SpecificInput, true) . '\' is not an object'); |
| 122: | } |
| 123: | $value = new CashPaymentProduct1506SpecificInput(); |
| 124: | $this->paymentProduct1506SpecificInput = $value->fromObject($object->paymentProduct1506SpecificInput); |
| 125: | } |
| 126: | if (property_exists($object, 'paymentProduct1508SpecificInput')) { |
| 127: | if (!is_object($object->paymentProduct1508SpecificInput)) { |
| 128: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1508SpecificInput, true) . '\' is not an object'); |
| 129: | } |
| 130: | $value = new CashPaymentProduct1508SpecificInput(); |
| 131: | $this->paymentProduct1508SpecificInput = $value->fromObject($object->paymentProduct1508SpecificInput); |
| 132: | } |
| 133: | if (property_exists($object, 'paymentProduct1521SpecificInput')) { |
| 134: | if (!is_object($object->paymentProduct1521SpecificInput)) { |
| 135: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1521SpecificInput, true) . '\' is not an object'); |
| 136: | } |
| 137: | $value = new CashPaymentProduct1521SpecificInput(); |
| 138: | $this->paymentProduct1521SpecificInput = $value->fromObject($object->paymentProduct1521SpecificInput); |
| 139: | } |
| 140: | if (property_exists($object, 'paymentProduct1522SpecificInput')) { |
| 141: | if (!is_object($object->paymentProduct1522SpecificInput)) { |
| 142: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1522SpecificInput, true) . '\' is not an object'); |
| 143: | } |
| 144: | $value = new CashPaymentProduct1522SpecificInput(); |
| 145: | $this->paymentProduct1522SpecificInput = $value->fromObject($object->paymentProduct1522SpecificInput); |
| 146: | } |
| 147: | if (property_exists($object, 'paymentProduct1523SpecificInput')) { |
| 148: | if (!is_object($object->paymentProduct1523SpecificInput)) { |
| 149: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1523SpecificInput, true) . '\' is not an object'); |
| 150: | } |
| 151: | $value = new CashPaymentProduct1523SpecificInput(); |
| 152: | $this->paymentProduct1523SpecificInput = $value->fromObject($object->paymentProduct1523SpecificInput); |
| 153: | } |
| 154: | if (property_exists($object, 'paymentProduct1524SpecificInput')) { |
| 155: | if (!is_object($object->paymentProduct1524SpecificInput)) { |
| 156: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1524SpecificInput, true) . '\' is not an object'); |
| 157: | } |
| 158: | $value = new CashPaymentProduct1524SpecificInput(); |
| 159: | $this->paymentProduct1524SpecificInput = $value->fromObject($object->paymentProduct1524SpecificInput); |
| 160: | } |
| 161: | if (property_exists($object, 'paymentProduct1526SpecificInput')) { |
| 162: | if (!is_object($object->paymentProduct1526SpecificInput)) { |
| 163: | throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1526SpecificInput, true) . '\' is not an object'); |
| 164: | } |
| 165: | $value = new CashPaymentProduct1526SpecificInput(); |
| 166: | $this->paymentProduct1526SpecificInput = $value->fromObject($object->paymentProduct1526SpecificInput); |
| 167: | } |
| 168: | return $this; |
| 169: | } |
| 170: | } |
| 171: | |