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|null
18: *
19: * @deprecated Use RedirectPaymentMethodSpecificInput.expirationPeriod instead
20: */
21: public ?string $expirationPeriod = null;
22:
23: /**
24: * @var string|null
25: */
26: public ?string $issuerId = null;
27:
28: /**
29: * @return object
30: */
31: public function toObject(): object
32: {
33: $object = parent::toObject();
34: if (!is_null($this->expirationPeriod)) {
35: $object->expirationPeriod = $this->expirationPeriod;
36: }
37: if (!is_null($this->issuerId)) {
38: $object->issuerId = $this->issuerId;
39: }
40: return $object;
41: }
42:
43: /**
44: * @param object $object
45: *
46: * @return $this
47: * @throws UnexpectedValueException
48: */
49: public function fromObject(object $object): RedirectPaymentProduct809SpecificInput
50: {
51: parent::fromObject($object);
52: if (property_exists($object, 'expirationPeriod')) {
53: $this->expirationPeriod = $object->expirationPeriod;
54: }
55: if (property_exists($object, 'issuerId')) {
56: $this->issuerId = $object->issuerId;
57: }
58: return $this;
59: }
60: }
61: