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: * @deprecated No replacement
15: */
16: class CashPaymentProduct1503SpecificInput extends DataObject
17: {
18: /**
19: * @var string|null
20: *
21: * @deprecated No replacement, since Boleto Bancario no longer needs a return URL
22: */
23: public ?string $returnUrl = null;
24:
25: /**
26: * @return object
27: */
28: public function toObject(): object
29: {
30: $object = parent::toObject();
31: if (!is_null($this->returnUrl)) {
32: $object->returnUrl = $this->returnUrl;
33: }
34: return $object;
35: }
36:
37: /**
38: * @param object $object
39: *
40: * @return $this
41: * @throws UnexpectedValueException
42: */
43: public function fromObject(object $object): CashPaymentProduct1503SpecificInput
44: {
45: parent::fromObject($object);
46: if (property_exists($object, 'returnUrl')) {
47: $this->returnUrl = $object->returnUrl;
48: }
49: return $this;
50: }
51: }
52: