| 1: | <?php |
| 2: | |
| 3: | |
| 4: | |
| 5: | |
| 6: | namespace Worldline\Connect\Sdk\V1\Domain; |
| 7: | |
| 8: | use UnexpectedValueException; |
| 9: | use Worldline\Connect\Sdk\Domain\DataObject; |
| 10: | |
| 11: | |
| 12: | |
| 13: | |
| 14: | class RedirectPaymentProduct809SpecificInput extends DataObject |
| 15: | { |
| 16: | |
| 17: | |
| 18: | |
| 19: | |
| 20: | public $expirationPeriod = null; |
| 21: | |
| 22: | |
| 23: | |
| 24: | |
| 25: | public $issuerId = null; |
| 26: | |
| 27: | |
| 28: | |
| 29: | |
| 30: | public function toObject() |
| 31: | { |
| 32: | $object = parent::toObject(); |
| 33: | if (!is_null($this->expirationPeriod)) { |
| 34: | $object->expirationPeriod = $this->expirationPeriod; |
| 35: | } |
| 36: | if (!is_null($this->issuerId)) { |
| 37: | $object->issuerId = $this->issuerId; |
| 38: | } |
| 39: | return $object; |
| 40: | } |
| 41: | |
| 42: | |
| 43: | |
| 44: | |
| 45: | |
| 46: | |
| 47: | public function fromObject($object) |
| 48: | { |
| 49: | parent::fromObject($object); |
| 50: | if (property_exists($object, 'expirationPeriod')) { |
| 51: | $this->expirationPeriod = $object->expirationPeriod; |
| 52: | } |
| 53: | if (property_exists($object, 'issuerId')) { |
| 54: | $this->issuerId = $object->issuerId; |
| 55: | } |
| 56: | return $this; |
| 57: | } |
| 58: | } |
| 59: | |