Skip to content

Commit 55650e0

Browse files
Merge branch 'getArticlesPreparationMethodGroups' into 'master'
Added getArticlesPreparationMethodGroups See merge request mpluskassa/mplus-api-client-deprecated!57
2 parents f53fa8c + 5f1d170 commit 55650e0

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

Mplusqapiclient.php

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class MplusQAPIclient
44
{
5-
const CLIENT_VERSION = '1.34.3';
5+
const CLIENT_VERSION = '1.34.4';
66
const WSDL_TTL = 300;
77

88
var $MIN_API_VERSION_MAJOR = 0;
@@ -4464,6 +4464,23 @@ public function getPreparationMethodGroups() {
44644464

44654465
//----------------------------------------------------------------------------
44664466

4467+
public function getArticlesPreparationMethodGroups($articleNumbers) {
4468+
try {
4469+
$result = $this->client->getArticlesPreparationMethodGroups($this->parser->convertGetArticlesPreparationMethodGroupsRequest(
4470+
$articleNumbers
4471+
));
4472+
return $result;
4473+
}
4474+
catch (SoapFault $e) {
4475+
throw new MplusQAPIException('SoapFault occurred: ' . $e->getMessage(), 0, $e);
4476+
}
4477+
catch (Exception $e) {
4478+
throw new MplusQAPIException('Exception occurred: ' . $e->getMessage(), 0, $e);
4479+
}
4480+
}
4481+
4482+
//----------------------------------------------------------------------------
4483+
44674484
}
44684485

44694486
//==============================================================================
@@ -10279,6 +10296,17 @@ public function convertGetArticlesNutritionalCharacteristicsRequest($articleNumb
1027910296

1028010297
//----------------------------------------------------------------------------
1028110298

10299+
public function convertGetArticlesPreparationMethodGroupsRequest($articleNumbers) {
10300+
$request = [];
10301+
if (!is_array($articleNumbers)) {
10302+
$articleNumbers = [$articleNumbers];
10303+
}
10304+
$request['articleNumbers'] = $articleNumbers;
10305+
return arrayToObject(['request'=>$request]);
10306+
}
10307+
10308+
//----------------------------------------------------------------------------
10309+
1028210310
}
1028310311

1028410312
//------------------------------------------------------------------------------

0 commit comments

Comments
 (0)