From 61ebdd9b8bc9d040abe3827d0bd0b867375bfa1e Mon Sep 17 00:00:00 2001 From: markernst97 Date: Wed, 28 Feb 2024 14:51:18 +0100 Subject: [PATCH] fix: force tracked shipment option --- src/Services/ConsignmentEncode.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Services/ConsignmentEncode.php b/src/Services/ConsignmentEncode.php index c0b0f46a..d711a78a 100644 --- a/src/Services/ConsignmentEncode.php +++ b/src/Services/ConsignmentEncode.php @@ -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);