Skip to content

Commit b6ee376

Browse files
committed
4.0.0: Verifications model minor fix
1 parent ed4924d commit b6ee376

File tree

1 file changed

+2
-32
lines changed

1 file changed

+2
-32
lines changed

lib/Models/Verifications.php

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,14 @@ class Verifications extends Model
4242
*/
4343
public $avsResponseCode;
4444

45-
/**
46-
* @var \Signifyd\Models\ThreeDsResult
47-
*/
48-
public $threeDsResult;
49-
5045
/**
5146
* The class attributes
5247
*
5348
* @var array $fields The list of class fields
5449
*/
5550
protected $fields = [
5651
'cvvResponseCode',
57-
'avsResponseCode',
58-
'threeDsResult'
52+
'avsResponseCode'
5953
];
6054

6155
/**
@@ -65,8 +59,7 @@ class Verifications extends Model
6559
*/
6660
protected $fieldsValidation = [
6761
'cvvResponseCode' => [],
68-
'avsResponseCode' => [],
69-
'threeDsResult' => []
62+
'avsResponseCode' => []
7063
];
7164

7265
/**
@@ -82,19 +75,6 @@ public function __construct($data = [])
8275
continue;
8376
}
8477

85-
if ($field == 'threeDsResult') {
86-
if (isset($data['threeDsResult'])) {
87-
if ($data['threeDsResult'] instanceof \Signifyd\Models\ThreeDsResult) {
88-
$this->setThreeDsResult($data['threeDsResult']);
89-
} else {
90-
$threeDsResult = new \Signifyd\Models\ThreeDsResult($data['threeDsResult']);
91-
$this->setThreeDsResult($threeDsResult);
92-
}
93-
}
94-
continue;
95-
}
96-
97-
9878
$this->{'set' . ucfirst($field)}($value);
9979
}
10080
}
@@ -132,14 +112,4 @@ public function setAvsResponseCode($avsResponseCode)
132112
{
133113
$this->avsResponseCode = $avsResponseCode;
134114
}
135-
136-
public function getThreeDsResult()
137-
{
138-
return $this->threeDsResult;
139-
}
140-
141-
public function setThreeDsResult($threeDsResult)
142-
{
143-
$this->threeDsResult = $threeDsResult;
144-
}
145115
}

0 commit comments

Comments
 (0)