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 MicrosoftFraudResults extends DataObject
15: {
16: /**
17: * @var string
18: */
19: public $clauseName = null;
20:
21: /**
22: * @var string
23: */
24: public $deviceCountryCode = null;
25:
26: /**
27: * @var string
28: */
29: public $deviceId = null;
30:
31: /**
32: * @var int
33: */
34: public $fraudScore = null;
35:
36: /**
37: * @var string
38: */
39: public $policyApplied = null;
40:
41: /**
42: * @var string
43: */
44: public $trueIpAddress = null;
45:
46: /**
47: * @var string
48: */
49: public $userDeviceType = null;
50:
51: /**
52: * @return object
53: */
54: public function toObject()
55: {
56: $object = parent::toObject();
57: if (!is_null($this->clauseName)) {
58: $object->clauseName = $this->clauseName;
59: }
60: if (!is_null($this->deviceCountryCode)) {
61: $object->deviceCountryCode = $this->deviceCountryCode;
62: }
63: if (!is_null($this->deviceId)) {
64: $object->deviceId = $this->deviceId;
65: }
66: if (!is_null($this->fraudScore)) {
67: $object->fraudScore = $this->fraudScore;
68: }
69: if (!is_null($this->policyApplied)) {
70: $object->policyApplied = $this->policyApplied;
71: }
72: if (!is_null($this->trueIpAddress)) {
73: $object->trueIpAddress = $this->trueIpAddress;
74: }
75: if (!is_null($this->userDeviceType)) {
76: $object->userDeviceType = $this->userDeviceType;
77: }
78: return $object;
79: }
80:
81: /**
82: * @param object $object
83: * @return $this
84: * @throws UnexpectedValueException
85: */
86: public function fromObject($object)
87: {
88: parent::fromObject($object);
89: if (property_exists($object, 'clauseName')) {
90: $this->clauseName = $object->clauseName;
91: }
92: if (property_exists($object, 'deviceCountryCode')) {
93: $this->deviceCountryCode = $object->deviceCountryCode;
94: }
95: if (property_exists($object, 'deviceId')) {
96: $this->deviceId = $object->deviceId;
97: }
98: if (property_exists($object, 'fraudScore')) {
99: $this->fraudScore = $object->fraudScore;
100: }
101: if (property_exists($object, 'policyApplied')) {
102: $this->policyApplied = $object->policyApplied;
103: }
104: if (property_exists($object, 'trueIpAddress')) {
105: $this->trueIpAddress = $object->trueIpAddress;
106: }
107: if (property_exists($object, 'userDeviceType')) {
108: $this->userDeviceType = $object->userDeviceType;
109: }
110: return $this;
111: }
112: }
113: