Skip to content

Commit 4070866

Browse files
author
Mplus Software
committed
Client v0.8.3
Ondersteuning voor API v0.8.3 Bezig met getButtonLayout inbouwen
1 parent a0a4a01 commit 4070866

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

Mplusqapiclient.php

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
class MplusQAPIclient
44
{
5-
const CLIENT_VERSION = '0.8.2';
5+
const CLIENT_VERSION = '0.8.3';
66

77
var $MIN_API_VERSION_MAJOR = 0;
88
var $MIN_API_VERSION_MINOR = 8;
9-
var $MIN_API_VERSION_REVIS = 2;
9+
var $MIN_API_VERSION_REVIS = 3;
1010

1111
var $MAX_API_VERSION_MAJOR = 0;
1212
var $MAX_API_VERSION_MINOR = 8;
13-
var $MAX_API_VERSION_REVIS = 2;
13+
var $MAX_API_VERSION_REVIS = 3;
1414

1515
var $debug = false;
1616

@@ -361,6 +361,21 @@ public function getAvailableTerminalList()
361361

362362
//----------------------------------------------------------------------------
363363

364+
public function getButtonLayout($terminal)
365+
{
366+
try {
367+
$result = $this->client->getButtonLayout($this->parser->convertTerminal($terminal));
368+
print_r($result);exit;
369+
return $this->parser->parseButtonLayout($result);
370+
} catch (SoapFault $e) {
371+
throw new MplusQAPIException('SoapFault occurred: '.$e->getMessage(), 0, $e);
372+
} catch (Exception $e) {
373+
throw new MplusQAPIException('Exception occurred: '.$e->getMessage(), 0, $e);
374+
}
375+
} // END getAvailableTerminalList()
376+
377+
//----------------------------------------------------------------------------
378+
364379
public function getVatGroupList()
365380
{
366381
try {
@@ -2461,6 +2476,17 @@ public function convertRegisterTerminalRequest($terminal, $forceRegistration)
24612476
} // END convertRegisterTerminalRequest()
24622477

24632478
//----------------------------------------------------------------------------
2479+
2480+
public function convertButtonLayoutRequest($terminal)
2481+
{
2482+
$terminal = $this->convertTerminal($terminal);
2483+
$object = arrayToObject(array(
2484+
'terminal'=>$terminal->terminal,
2485+
));
2486+
return $object;
2487+
} // END convertButtonLayoutRequest()
2488+
2489+
//----------------------------------------------------------------------------
24642490
}
24652491

24662492
//------------------------------------------------------------------------------

0 commit comments

Comments
 (0)