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