Adapter/ShopwareAdapter/ResponseParser/OrderItem/OrderItemResponseParser.php
public function parse(array $entry, $taxFree = false)
    {
        if (empty($entry['attribute'])) {
            $entry['attribute'] = [];
        }

        /**
         * @var OrderItem $orderItem
         */
        return OrderItem::fromArray([
            'type' => $this->getItemType($entry['mode']),
            'quantity' => (float) $entry['quantity'],
            'name' => $entry['articleName'],
            'number' => $entry['articleNumber'],
            'price' => $this->getPrice($entry, $taxFree),
            'vatRateIdentifier' => $this->getVatRateIdentifier($entry),
            'attributes' => $this->getAttributes($entry['attribute']),
        ]);
    }
public function parse(array $entry, $taxFree = false)
    {
        if (empty($entry['attribute'])) {
            $entry['attribute'] = [];
        }

        /**
         * @var OrderItem $orderItem
         */
        return OrderItem::fromArray([
            'type' => $this->getItemType($entry['mode']),
            'quantity' => (float) $entry['quantity'],
            'name' => $entry['articleName'],
            'number' => $entry['articleNumber'],
            'price' => $this->getPrice($entry, $taxFree),
            'vatRateIdentifier' => $this->getVatRateIdentifier($entry),
            'attributes' => $this->getAttributes($entry['attribute']),
        ]);
    }
{@inheritdoc}