1: <?php
2: /*
3: * This class was auto-generated from the API references found at
4: * https://apireference.connect.worldline-solutions.com/
5: */
6: namespace Worldline\Connect\Sdk\V1\Domain;
7:
8: use UnexpectedValueException;
9: use Worldline\Connect\Sdk\Domain\DataObject;
10:
11: /**
12: * @package Worldline\Connect\Sdk\V1\Domain
13: */
14: class RedirectPaymentProduct809SpecificInput extends DataObject
15: {
16: /**
17: * @var string
18: * @deprecated Use RedirectPaymentMethodSpecificInput.expirationPeriod instead
19: */
20: public $expirationPeriod = null;
21:
22: /**
23: * @var string
24: */
25: public $issuerId = null;
26:
27: /**
28: * @return object
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: * @param object $object
44: * @return $this
45: * @throws UnexpectedValueException
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: