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