Adapter/ShopwareAdapter/ResponseParser/Order/OrderResponseParser.php
private function getShippingCosts(array $entry)
    {
        $shippingCosts = $this->getShippingAmount($entry);
        $vatRateIdentifier = $this->getShippingCostsVatRateIdentifier($entry);

        $orderItem = new OrderItem();
        $orderItem->setType(OrderItem::TYPE_SHIPPING_COSTS);
        $orderItem->setQuantity(1.0);
        $orderItem->setName('ShippingCosts');
        $orderItem->setNumber('ShippingCosts');
        $orderItem->setPrice($shippingCosts);
        $orderItem->setVatRateIdentifier($vatRateIdentifier);

        return $orderItem;
    }
private function getShippingCosts(array $entry)
    {
        $shippingCosts = $this->getShippingAmount($entry);
        $vatRateIdentifier = $this->getShippingCostsVatRateIdentifier($entry);

        $orderItem = new OrderItem();
        $orderItem->setType(OrderItem::TYPE_SHIPPING_COSTS);
        $orderItem->setQuantity(1.0);
        $orderItem->setName('ShippingCosts');
        $orderItem->setNumber('ShippingCosts');
        $orderItem->setPrice($shippingCosts);
        $orderItem->setVatRateIdentifier($vatRateIdentifier);

        return $orderItem;
    }
private function getShippingCosts ( array $ entry ) { $ shippingCosts = $ this -> getShippingAmount ( $ entry ) ; $ vatRateIdentifier = $ this -> getShippingCostsVatRateIdentifier ( $ entry ) ; $ orderItem = new OrderItem ( ) ; $ orderItem -> setType ( OrderItem :: TYPE_SHIPPING_COSTS ) ; $ orderItem -> setQuantity ( 1.0 ) ; $ orderItem -> setName ( 'ShippingCosts' ) ; $ orderItem -> setNumber ( 'ShippingCosts' ) ; $ orderItem -> setPrice ( $ shippingCosts ) ; $ orderItem -> setVatRateIdentifier ( $ vatRateIdentifier ) ; return $ orderItem ; }
@param array $entry

@return OrderItem
@param array $entry