From b6ee3761b897b793a87b9f71f7fe80141835eea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89bano=20Lopes?= Date: Tue, 28 Jun 2022 17:32:18 +0000 Subject: [PATCH] 4.0.0: Verifications model minor fix --- lib/Models/Verifications.php | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/lib/Models/Verifications.php b/lib/Models/Verifications.php index 73719d5..b8af715 100644 --- a/lib/Models/Verifications.php +++ b/lib/Models/Verifications.php @@ -42,11 +42,6 @@ class Verifications extends Model */ public $avsResponseCode; - /** - * @var \Signifyd\Models\ThreeDsResult - */ - public $threeDsResult; - /** * The class attributes * @@ -54,8 +49,7 @@ class Verifications extends Model */ protected $fields = [ 'cvvResponseCode', - 'avsResponseCode', - 'threeDsResult' + 'avsResponseCode' ]; /** @@ -65,8 +59,7 @@ class Verifications extends Model */ protected $fieldsValidation = [ 'cvvResponseCode' => [], - 'avsResponseCode' => [], - 'threeDsResult' => [] + 'avsResponseCode' => [] ]; /** @@ -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); } } @@ -132,14 +112,4 @@ public function setAvsResponseCode($avsResponseCode) { $this->avsResponseCode = $avsResponseCode; } - - public function getThreeDsResult() - { - return $this->threeDsResult; - } - - public function setThreeDsResult($threeDsResult) - { - $this->threeDsResult = $threeDsResult; - } } \ No newline at end of file