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 ApiTechnicalReversalResponse extends DataObject
14: {
15: /**
16: * @var string
17: */
18: public $operationId = null;
19:
20: /**
21: * @var string
22: */
23: public $responder = null;
24:
25: /**
26: * @var string
27: */
28: public $responseCode = null;
29:
30: /**
31: * @var string
32: */
33: public $responseCodeCategory = null;
34:
35: /**
36: * @var string
37: */
38: public $responseCodeDescription = null;
39:
40: /**
41: * @return object
42: */
43: public function toObject()
44: {
45: $object = parent::toObject();
46: if (!is_null($this->operationId)) {
47: $object->operationId = $this->operationId;
48: }
49: if (!is_null($this->responder)) {
50: $object->responder = $this->responder;
51: }
52: if (!is_null($this->responseCode)) {
53: $object->responseCode = $this->responseCode;
54: }
55: if (!is_null($this->responseCodeCategory)) {
56: $object->responseCodeCategory = $this->responseCodeCategory;
57: }
58: if (!is_null($this->responseCodeDescription)) {
59: $object->responseCodeDescription = $this->responseCodeDescription;
60: }
61: return $object;
62: }
63:
64: /**
65: * @param object $object
66: * @return $this
67: * @throws UnexpectedValueException
68: */
69: public function fromObject($object)
70: {
71: parent::fromObject($object);
72: if (property_exists($object, 'operationId')) {
73: $this->operationId = $object->operationId;
74: }
75: if (property_exists($object, 'responder')) {
76: $this->responder = $object->responder;
77: }
78: if (property_exists($object, 'responseCode')) {
79: $this->responseCode = $object->responseCode;
80: }
81: if (property_exists($object, 'responseCodeCategory')) {
82: $this->responseCodeCategory = $object->responseCodeCategory;
83: }
84: if (property_exists($object, 'responseCodeDescription')) {
85: $this->responseCodeDescription = $object->responseCodeDescription;
86: }
87: return $this;
88: }
89: }
90: