diff --git a/src/Services/ConsignmentEncode.php b/src/Services/ConsignmentEncode.php index 6dbff040..0ef6032f 100644 --- a/src/Services/ConsignmentEncode.php +++ b/src/Services/ConsignmentEncode.php @@ -265,6 +265,13 @@ private function encodePhysicalProperties(): self throw new MissingFieldException('Weight in physical properties must be set for digital stamp shipments.'); } + if (CarrierDHLForYou::NAME === $consignment->getCarrier()->getName()) { + $consignment->setPhysicalProperties([ + 'weight' => $consignment->getTotalWeight(), + 'volume' => 1, + ]); + } + $this->consignmentEncoded['physical_properties'] = $consignment->getPhysicalProperties(); return $this;