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 AbstractSepaDirectDebitPaymentProduct771SpecificInput extends DataObject
15: {
16: /**
17: * @var string|null
18: *
19: * @deprecated Use existingUniqueMandateReference or mandate.uniqueMandateReference instead
20: */
21: public ?string $mandateReference = null;
22:
23: /**
24: * @return object
25: */
26: public function toObject(): object
27: {
28: $object = parent::toObject();
29: if (!is_null($this->mandateReference)) {
30: $object->mandateReference = $this->mandateReference;
31: }
32: return $object;
33: }
34:
35: /**
36: * @param object $object
37: *
38: * @return $this
39: * @throws UnexpectedValueException
40: */
41: public function fromObject(object $object): AbstractSepaDirectDebitPaymentProduct771SpecificInput
42: {
43: parent::fromObject($object);
44: if (property_exists($object, 'mandateReference')) {
45: $this->mandateReference = $object->mandateReference;
46: }
47: return $this;
48: }
49: }
50: