|
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; |
@@ -3014,16 +3014,16 @@ public function getTableOrder($terminal, $branchNumber, $tableNumber, $attempts= |
3014 | 3014 |
|
3015 | 3015 | //---------------------------------------------------------------------------- |
3016 | 3016 |
|
3017 | | - public function getTableOrderV2($terminal, $tableNumber, $claimTable=null, $attempts=0) |
| 3017 | + public function getTableOrderV2($terminal, $tableNumber, $claimTable=null, $tableSubNumber = null, $attempts=0) |
3018 | 3018 | { |
3019 | 3019 | try { |
3020 | | - $result = $this->client->getTableOrderV2($this->parser->convertGetTableOrderV2Request($terminal, $terminal['branchNumber'], $tableNumber, $claimTable)); |
| 3020 | + $result = $this->client->getTableOrderV2($this->parser->convertGetTableOrderV2Request($terminal, $tableNumber, $tableSubNumber, $claimTable)); |
3021 | 3021 | return $this->parser->parseGetTableOrderResult($result); |
3022 | 3022 | } catch (SoapFault $e) { |
3023 | 3023 | $msg = $e->getMessage(); |
3024 | 3024 | if (false !== stripos($msg, 'Could not connect to host') and $attempts < 3) { |
3025 | 3025 | sleep(1); |
3026 | | - return $this->getTableOrderV2($terminal, $branchNumber, $tableNumber, $attempts+1); |
| 3026 | + return $this->getTableOrderV2($terminal, $tableNumber, $claimTable, $tableSubNumber, $attempts+1); |
3027 | 3027 | } else { |
3028 | 3028 | throw new MplusQAPIException('SoapFault occurred: '.$msg, 0, $e); |
3029 | 3029 | } |
@@ -8271,18 +8271,21 @@ public function convertGetTableOrderRequest($terminal, $branchNumber, $tableNumb |
8271 | 8271 |
|
8272 | 8272 | //---------------------------------------------------------------------------- |
8273 | 8273 |
|
8274 | | - public function convertGetTableOrderV2Request($terminal, $branchNumber, $tableNumber, $claimTable) |
| 8274 | + public function convertGetTableOrderV2Request($terminal, $tableNumber, $tableSubNumber, $claimTable) |
8275 | 8275 | { |
8276 | 8276 | $terminal = $this->convertTerminal($terminal); |
8277 | | - $branchNumber = $this->convertBranchNumber($branchNumber); |
8278 | | - $tableNumber = $this->convertTableNumber($tableNumber); |
8279 | 8277 | $array = array( |
8280 | 8278 | 'terminal'=>$terminal->terminal, |
8281 | | - 'request'=>array('tableNumber'=>$tableNumber->tableNumber), |
| 8279 | + 'request'=>array( |
| 8280 | + 'tableNumber'=>intval($tableNumber) |
| 8281 | + ), |
8282 | 8282 | ); |
8283 | 8283 | if ( ! is_null($claimTable)) { |
8284 | 8284 | $array['request']['claimTable'] = $claimTable; |
8285 | 8285 | } |
| 8286 | + if ( ! is_null($tableSubNumber)) { |
| 8287 | + $array['request']['tableSubNumber'] = $tableSubNumber; |
| 8288 | + } |
8286 | 8289 | $object = arrayToObject($array); |
8287 | 8290 | return $object; |
8288 | 8291 | } // END convertGetTableOrderV2Request() |
|
0 commit comments