Skip to content

Commit

Permalink
-client from private to protected. To make it possible to extend the
Browse files Browse the repository at this point in the history
client.
-added reportBPE convert and parse
  • Loading branch information
Dennis van den Heerik committed Jan 30, 2020
1 parent 4b48977 commit 1de92a7
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 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.27.3';
const CLIENT_VERSION = '1.27.4';
const WSDL_TTL = 300;

var $MIN_API_VERSION_MAJOR = 0;
Expand Down Expand Up @@ -44,7 +44,7 @@ class MplusQAPIclient
/**
* @var
*/
private $client = null;
protected $client = null;
/**
* @var
*/
Expand Down Expand Up @@ -5841,6 +5841,14 @@ public function parseReportResult($method, $soapReportResult)
}
}
break;
case "reportBPE":
$data = array();
if (isset($soapReportResult->bpeList->bpes)) {
foreach ($soapReportResult->bpeList->bpes as $soapBpes) {
$data[] = $soapBpes;
}
}
break;
}
return $data;
} // END parseReportResult()
Expand Down Expand Up @@ -8108,6 +8116,14 @@ public function convertReportRequest($method, $arguments)
'branchNumbers', 'employeeNumbers',
),
),
'reportBPE' => array(
'required' => array(
'fromFinancialDate', 'throughFinancialDate',
),
'optional' => array(
'branchNumbers', 'articleNumbers', 'perHour',
),
),
);
$request = [];
if (array_key_exists($method, $fields)) {
Expand Down

0 comments on commit 1de92a7

Please sign in to comment.