Skip to content

Commit

Permalink
Merge branch 'added_errorMessage' into 'master'
Browse files Browse the repository at this point in the history
added errorMessage to :

See merge request mpluskassa/mplus-api-client!19
  • Loading branch information
dennismpluskassa committed Mar 19, 2020
2 parents c0b1cf9 + e978fbe commit 4f5b33d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Mplusqapiclient.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class MplusQAPIclient
{
const CLIENT_VERSION = '1.28.2';
const CLIENT_VERSION = '1.28.3';
const WSDL_TTL = 300;

var $MIN_API_VERSION_MAJOR = 0;
Expand Down Expand Up @@ -6325,9 +6325,11 @@ public function parseReloadGiftcardResult($soapReloadGiftcardResult) {
public function parseGetGiftcardResult($soapGetGiftcardResult) {
if (property_exists($soapGetGiftcardResult, "giftcard")) {
return $soapGetGiftcardResult->giftcard;
} else {
return false;
}
if (!empty($soapGetGiftcardResult->errorMessage)) {
$this->lastErrorMessage = $soapGetGiftcardResult->errorMessage;
}
return false;
}
// END parseGetGiftcardResult()

Expand All @@ -6336,9 +6338,11 @@ public function parseGetGiftcardHistoryResult($soapGetGiftcardHistoryResult) {
if (property_exists($soapGetGiftcardHistoryResult, "giftcardHistoryList") &&
property_exists($soapGetGiftcardHistoryResult->giftcardHistoryList, "giftcardHistory")) {
return $soapGetGiftcardHistoryResult->giftcardHistoryList->giftcardHistory;
} else {
return false;
}
if (!empty($soapGetGiftcardHistoryResult->errorMessage)) {
$this->lastErrorMessage = $soapGetGiftcardHistoryResult->errorMessage;
}
return false;
}
// END parseGetGiftcardHistoryResult()

Expand Down

0 comments on commit 4f5b33d

Please sign in to comment.