@@ -1275,15 +1275,17 @@ protected function _formShipmentRequest(\Magento\Framework\DataObject $request)
12751275 ],
12761276 ],
12771277 'commodities ' => [
1278- 'weight ' => ['units ' => $ weightUnits , 'value ' => $ request ->getPackageWeight ()],
1279- 'numberOfPieces ' => 1 ,
1280- 'countryOfManufacture ' => implode (', ' , array_unique ($ countriesOfManufacture )),
1281- 'description ' => implode (', ' , $ itemsDesc ),
1282- 'quantity ' => ceil ($ itemsQty ),
1283- 'quantityUnits ' => 'pcs ' ,
1284- 'unitPrice ' => ['currency ' => $ request ->getBaseCurrencyCode (), 'amount ' => $ unitPrice ],
1285- 'customsValue ' => ['currency ' => $ request ->getBaseCurrencyCode (), 'amount ' => $ customsValue ],
1286- ],
1278+ [
1279+ 'weight ' => ['units ' => $ weightUnits , 'value ' => $ request ->getPackageWeight ()],
1280+ 'numberOfPieces ' => 1 ,
1281+ 'countryOfManufacture ' => implode (', ' , array_unique ($ countriesOfManufacture )),
1282+ 'description ' => implode (', ' , $ itemsDesc ),
1283+ 'quantity ' => ceil ($ itemsQty ),
1284+ 'quantityUnits ' => 'pcs ' ,
1285+ 'unitPrice ' => ['currency ' => $ request ->getBaseCurrencyCode (), 'amount ' => $ unitPrice ],
1286+ 'customsValue ' => ['currency ' => $ request ->getBaseCurrencyCode (), 'amount ' => $ customsValue ],
1287+ ]
1288+ ]
12871289 ];
12881290 }
12891291
0 commit comments