1: <?php
2: /*
3: * This file was automatically generated.
4: */
5: namespace Worldline\Acquiring\Sdk\V1\Domain;
6:
7: use UnexpectedValueException;
8: use Worldline\Acquiring\Sdk\Domain\DataObject;
9:
10: /**
11: * @package Worldline\Acquiring\Sdk\V1\Domain
12: */
13: class DisputeMerchantDataBase extends DataObject
14: {
15: /**
16: * @var string|null
17: */
18: public ?string $acquirerId = null;
19:
20: /**
21: * @var string|null
22: */
23: public ?string $merchantId = null;
24:
25: /**
26: * @var string|null
27: */
28: public ?string $merchantRootId = null;
29:
30: /**
31: * @return object
32: */
33: public function toObject(): object
34: {
35: $object = parent::toObject();
36: if (!is_null($this->acquirerId)) {
37: $object->acquirerId = $this->acquirerId;
38: }
39: if (!is_null($this->merchantId)) {
40: $object->merchantId = $this->merchantId;
41: }
42: if (!is_null($this->merchantRootId)) {
43: $object->merchantRootId = $this->merchantRootId;
44: }
45: return $object;
46: }
47:
48: /**
49: * @param object $object
50: *
51: * @return $this
52: * @throws UnexpectedValueException
53: */
54: public function fromObject(object $object): DisputeMerchantDataBase
55: {
56: parent::fromObject($object);
57: if (property_exists($object, 'acquirerId')) {
58: $this->acquirerId = $object->acquirerId;
59: }
60: if (property_exists($object, 'merchantId')) {
61: $this->merchantId = $object->merchantId;
62: }
63: if (property_exists($object, 'merchantRootId')) {
64: $this->merchantRootId = $object->merchantRootId;
65: }
66: return $this;
67: }
68: }
69: