From a552270a9c2cb35125112ba838d4eb7b1e09edec Mon Sep 17 00:00:00 2001 From: barion-vinczei Date: Tue, 3 May 2022 11:54:15 +0200 Subject: [PATCH 1/2] Added missing properties to API error model --- library/models/ApiErrorModel.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/library/models/ApiErrorModel.php b/library/models/ApiErrorModel.php index 992a1b3..eff1f8a 100755 --- a/library/models/ApiErrorModel.php +++ b/library/models/ApiErrorModel.php @@ -20,12 +20,20 @@ class ApiErrorModel public $ErrorCode; public $Title; public $Description; + public $ErrorCode; + public $HappenedAt; + public $AuthData; + public $EndPoint; function __construct() { $this->ErrorCode = ""; $this->Title = ""; $this->Description = ""; + $this->ErrorCode = ""; + $this->HappenedAt = ""; + $this->AuthData = ""; + $this->EndPoint = ""; } public function fromJson($json) @@ -34,6 +42,10 @@ public function fromJson($json) $this->ErrorCode = $json['ErrorCode']; $this->Title = $json['Title']; $this->Description = $json['Description']; + $this->ErrorCode = $json['ErrorCode']; + $this->HappenedAt = $json['HappenedAt']; + $this->AuthData = $json['AuthData']; + $this->EndPoint = $json['EndPoint']; } } } \ No newline at end of file From e6fc0c517800e0164b4c4d3caece0c972adc4ce9 Mon Sep 17 00:00:00 2001 From: barion-vinczei Date: Tue, 3 May 2022 11:54:48 +0200 Subject: [PATCH 2/2] Added PaymentId to API error model --- library/models/ApiErrorModel.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/models/ApiErrorModel.php b/library/models/ApiErrorModel.php index eff1f8a..2ac7b4a 100755 --- a/library/models/ApiErrorModel.php +++ b/library/models/ApiErrorModel.php @@ -24,6 +24,7 @@ class ApiErrorModel public $HappenedAt; public $AuthData; public $EndPoint; + public $PaymentId; function __construct() { @@ -34,6 +35,7 @@ function __construct() $this->HappenedAt = ""; $this->AuthData = ""; $this->EndPoint = ""; + $this->PaymentId = ""; } public function fromJson($json) @@ -46,6 +48,7 @@ public function fromJson($json) $this->HappenedAt = $json['HappenedAt']; $this->AuthData = $json['AuthData']; $this->EndPoint = $json['EndPoint']; + $this->PaymentId = $json['PaymentId']; } } } \ No newline at end of file