Skip to content

Commit

Permalink
Merge pull request #14 from JanGalek/master
Browse files Browse the repository at this point in the history
Fixed: Flags list
  • Loading branch information
Salamek committed Sep 12, 2017
2 parents 61341cd + 8fcd439 commit 24f12b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,14 +351,16 @@ public function createPackages(array $packages, $customerUniqueImportId = null)
}


$flags = [];
$flagList = [];
foreach ($package->getFlags() AS $flag) {
$flags[]['MyApiFlag'] = [
$flagList[] = [
'Code' => $flag->getCode(),
'Value' => $flag->isValue()
];
}

$flags = ['MyApiFlag' => $flagList];

$palletInfo = null;
if ($package->getPalletInfo()) {
$collies = [];
Expand Down

0 comments on commit 24f12b1

Please sign in to comment.