Skip to content

Commit

Permalink
4.0.0: Verifications model minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ebanolopes committed Jun 28, 2022
1 parent ed4924d commit b6ee376
Showing 1 changed file with 2 additions and 32 deletions.
34 changes: 2 additions & 32 deletions lib/Models/Verifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,14 @@ class Verifications extends Model
*/
public $avsResponseCode;

/**
* @var \Signifyd\Models\ThreeDsResult
*/
public $threeDsResult;

/**
* The class attributes
*
* @var array $fields The list of class fields
*/
protected $fields = [
'cvvResponseCode',
'avsResponseCode',
'threeDsResult'
'avsResponseCode'
];

/**
Expand All @@ -65,8 +59,7 @@ class Verifications extends Model
*/
protected $fieldsValidation = [
'cvvResponseCode' => [],
'avsResponseCode' => [],
'threeDsResult' => []
'avsResponseCode' => []
];

/**
Expand All @@ -82,19 +75,6 @@ public function __construct($data = [])
continue;
}

if ($field == 'threeDsResult') {
if (isset($data['threeDsResult'])) {
if ($data['threeDsResult'] instanceof \Signifyd\Models\ThreeDsResult) {
$this->setThreeDsResult($data['threeDsResult']);
} else {
$threeDsResult = new \Signifyd\Models\ThreeDsResult($data['threeDsResult']);
$this->setThreeDsResult($threeDsResult);
}
}
continue;
}


$this->{'set' . ucfirst($field)}($value);
}
}
Expand Down Expand Up @@ -132,14 +112,4 @@ public function setAvsResponseCode($avsResponseCode)
{
$this->avsResponseCode = $avsResponseCode;
}

public function getThreeDsResult()
{
return $this->threeDsResult;
}

public function setThreeDsResult($threeDsResult)
{
$this->threeDsResult = $threeDsResult;
}
}

0 comments on commit b6ee376

Please sign in to comment.