public function findByOrderId($orderId, $locale)
    {
        $result = array();
        $items = $this->getShippingRepository()->findByOrderId($orderId, $locale);
        foreach ($items as $item) {
            $result[] = $this->shippingFactory->createApiEntity($item, $locale);
        }
        return $result;
    }
public function findByOrderId($orderId, $locale)
    {
        $result = array();
        $items = $this->getShippingRepository()->findByOrderId($orderId, $locale);
        foreach ($items as $item) {
            $result[] = $this->shippingFactory->createApiEntity($item, $locale);
        }
        return $result;
    }
public function findByOrderId ( $ orderId , $ locale ) { $ result = array ( ) ; $ items = $ this -> getShippingRepository ( ) -> findByOrderId ( $ orderId , $ locale ) ; foreach ( $ items as $ item ) { $ result [ ] = $ this -> shippingFactory -> createApiEntity ( $ item , $ locale ) ; } return $ result ; }
Returns shippings by order id
@param $orderId
@param $locale
@return array
Returns shippings by order id