|
2 | 2 |
|
3 | 3 | class MplusQAPIclient
|
4 | 4 | {
|
5 |
| - const CLIENT_VERSION = '1.27.1'; |
| 5 | + const CLIENT_VERSION = '1.27.2'; |
6 | 6 | const WSDL_TTL = 300;
|
7 | 7 |
|
8 | 8 | var $MIN_API_VERSION_MAJOR = 0;
|
@@ -3047,16 +3047,16 @@ public function getTableOrder($terminal, $branchNumber, $tableNumber, $attempts=
|
3047 | 3047 |
|
3048 | 3048 | //----------------------------------------------------------------------------
|
3049 | 3049 |
|
3050 |
| - public function getTableOrderV2($terminal, $tableNumber, $claimTable=null, $attempts=0) |
| 3050 | + public function getTableOrderV2($terminal, $tableNumber, $claimTable=null, $tableSubNumber = null, $attempts=0) |
3051 | 3051 | {
|
3052 | 3052 | try {
|
3053 |
| - $result = $this->client->getTableOrderV2($this->parser->convertGetTableOrderV2Request($terminal, $terminal['branchNumber'], $tableNumber, $claimTable)); |
| 3053 | + $result = $this->client->getTableOrderV2($this->parser->convertGetTableOrderV2Request($terminal, $tableNumber, $tableSubNumber, $claimTable)); |
3054 | 3054 | return $this->parser->parseGetTableOrderResult($result);
|
3055 | 3055 | } catch (SoapFault $e) {
|
3056 | 3056 | $msg = $e->getMessage();
|
3057 | 3057 | if (false !== stripos($msg, 'Could not connect to host') and $attempts < 3) {
|
3058 | 3058 | sleep(1);
|
3059 |
| - return $this->getTableOrderV2($terminal, $branchNumber, $tableNumber, $attempts+1); |
| 3059 | + return $this->getTableOrderV2($terminal, $tableNumber, $claimTable, $tableSubNumber, $attempts+1); |
3060 | 3060 | } else {
|
3061 | 3061 | throw new MplusQAPIException('SoapFault occurred: '.$msg, 0, $e);
|
3062 | 3062 | }
|
@@ -8323,18 +8323,21 @@ public function convertGetTableOrderRequest($terminal, $branchNumber, $tableNumb
|
8323 | 8323 |
|
8324 | 8324 | //----------------------------------------------------------------------------
|
8325 | 8325 |
|
8326 |
| - public function convertGetTableOrderV2Request($terminal, $branchNumber, $tableNumber, $claimTable) |
| 8326 | + public function convertGetTableOrderV2Request($terminal, $tableNumber, $tableSubNumber, $claimTable) |
8327 | 8327 | {
|
8328 | 8328 | $terminal = $this->convertTerminal($terminal);
|
8329 |
| - $branchNumber = $this->convertBranchNumber($branchNumber); |
8330 |
| - $tableNumber = $this->convertTableNumber($tableNumber); |
8331 | 8329 | $array = array(
|
8332 | 8330 | 'terminal'=>$terminal->terminal,
|
8333 |
| - 'request'=>array('tableNumber'=>$tableNumber->tableNumber), |
| 8331 | + 'request'=>array( |
| 8332 | + 'tableNumber'=>intval($tableNumber) |
| 8333 | + ), |
8334 | 8334 | );
|
8335 | 8335 | if ( ! is_null($claimTable)) {
|
8336 | 8336 | $array['request']['claimTable'] = $claimTable;
|
8337 | 8337 | }
|
| 8338 | + if ( ! is_null($tableSubNumber)) { |
| 8339 | + $array['request']['tableSubNumber'] = $tableSubNumber; |
| 8340 | + } |
8338 | 8341 | $object = arrayToObject($array);
|
8339 | 8342 | return $object;
|
8340 | 8343 | } // END convertGetTableOrderV2Request()
|
|
0 commit comments