@@ -1436,11 +1436,12 @@ protected function _getQuotesRest()
1436
1436
"packages " => [
1437
1437
[
1438
1438
"typeCode " => "3BX " ,
1439
- "weight " => (int ) $ this ->_getWeight ($ rawRequest ->getWeight ()),
1439
+ "weight " => (float ) $ this ->_getWeight ($ rawRequest ->getWeight ()),
1440
1440
"dimensions " => [
1441
- "length " => $ this ->_getDimension ($ this ->getConfigData ('depth ' )),
1442
- "width " => $ this ->_getDimension ($ this ->getConfigData ('width ' )),
1443
- "height " => $ this ->_getDimension ($ this ->getConfigData ('height ' ))
1441
+ // If no value is provided for the dimension, a default size of 3 will be used
1442
+ "length " => $ this ->_getDimension (max (3 , $ this ->getConfigData ('depth ' ))),
1443
+ "width " => $ this ->_getDimension (max (3 , $ this ->getConfigData ('width ' ))),
1444
+ "height " => $ this ->_getDimension (max (3 , $ this ->getConfigData ('height ' )))
1444
1445
]
1445
1446
]
1446
1447
]
@@ -1575,7 +1576,7 @@ protected function _addRestRate(array $product, array $exchangeRates): self
1575
1576
$ dhlProduct = (string )$ product ['productCode ' ];
1576
1577
$ totalPrice = $ product ['totalPrice ' ];
1577
1578
$ billic_price = array_column (
1578
- array_filter ($ totalPrice , fn ($ price ) => $ price ['currencyType ' ] === 'BILLC ' ),
1579
+ array_filter ($ totalPrice , fn ($ price ) => $ price ['currencyType ' ] === 'BILLC ' ),
1579
1580
'price '
1580
1581
);
1581
1582
@@ -2245,7 +2246,7 @@ protected function _doShipmentRequestRest(): DataObject
2245
2246
"invoice " => [
2246
2247
"number " => $ rawRequest ->getOrderShipment ()->getOrder ()->getIncrementId (),
2247
2248
"date " => date ('Y-m-d ' )
2248
- ]
2249
+ ]
2249
2250
]
2250
2251
];
2251
2252
}
0 commit comments