Skip to content

Commit

Permalink
fix: force tracked shipment option
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Ernst committed Feb 28, 2024
1 parent 30d9c54 commit 61ebdd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Services/ConsignmentEncode.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ public static function encodeExtraOptions(array $consignmentEncoded, AbstractCon
];
}

if (AbstractConsignment::PACKAGE_TYPE_PACKAGE_SMALL === $consignment->getPackageType()) {
$consignmentEncoded['options']['tracked'] = 1;
}

foreach ($consignment->getMandatoryShipmentOptions() as $option) {
$key = "options.$option";
$value = Arr::get($consignmentEncoded, $key);
Expand Down

0 comments on commit 61ebdd9

Please sign in to comment.