<?xml version="1.0" ?>

<!--

 This file is part of the Sylius package.

 (c) Sylius Sp. z o.o.

 For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.

-->

<serializer xmlns="http://symfony.com/schema/dic/serializer-mapping"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://symfony.com/schema/dic/serializer-mapping https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd"
>
    <class name="Sylius\Component\Core\Model\OrderItem">
        <attribute name="id">
            <group>admin:order:index</group>
            <group>sylius:admin:order:index</group>
            <group>admin:order:show</group>
            <group>sylius:admin:order:show</group>
            <group>admin:order_item:show</group>
            <group>sylius:admin:order_item:show</group>
            <group>shop:cart:show</group>
            <group>sylius:shop:cart:show</group>
            <group>shop:order:account:show</group>
            <group>sylius:shop:order:account:show</group>
            <group>shop:order_item:show</group>
            <group>sylius:shop:order_item:show</group>
        </attribute>
        <attribute name="order">
            <group>admin:order_item:show</group>
            <group>sylius:admin:order_item:show</group>
            <group>shop:order_item:show</group>
            <group>sylius:shop:order_item:show</group>
        </attribute>
        <attribute name="variant">
            <group>admin:order:index</group>
            <group>sylius:admin:order:index</group>
            <group>admin:order:show</group>
            <group>sylius:admin:order:show</group>
            <group>admin:order_item:show</group>
            <group>sylius:admin:order_item:show</group>
            <group>shop:cart:show</group>
            <group>sylius:shop:cart:show</group>
            <group>shop:order:account:show</group>
            <group>sylius:shop:order:account:show</group>
            <group>shop:order_item:show</group>
            <group>sylius:shop:order_item:show</group>
        </attribute>
        <attribute name="quantity">
            <group>admin:order:index</group>
            <group>sylius:admin:order:index</group>
            <group>admin:order:show</group>
            <group>sylius:admin:order:show</group>
            <group>admin:order_item:show</group>
            <group>sylius:admin:order_item:show</group>
            <group>shop:cart:show</group>
            <group>sylius:shop:cart:show</group>
            <group>shop:order:account:show</group>
            <group>sylius:shop:order:account:show</group>
            <group>shop:order_item:show</group>
            <group>sylius:shop:order_item:show</group>
        </attribute>
        <attribute name="unitPrice">
            <group>admin:order:index</group>
            <group>sylius:admin:order:index</group>
            <group>admin:order:show</group>
            <group>sylius:admin:order:show</group>
            <group>admin:order_item:show</group>
            <group>sylius:admin:order_item:show</group>
            <group>shop:order_item:show</group>
            <group>sylius:shop:order_item:show</group>
            <group>shop:cart:show</group>
            <group>sylius:shop:cart:show</group>
        </attribute>
        <attribute name="originalUnitPrice">
            <group>admin:order:index</group>
            <group>sylius:admin:order:index</group>
            <group>admin:order:show</group>
            <group>sylius:admin:order:show</group>
            <group>admin:order_item:show</group>
            <group>sylius:admin:order_item:show</group>
            <group>shop:order_item:show</group>
            <group>sylius:shop:order_item:show</group>
            <group>shop:cart:show</group>
            <group>sylius:shop:cart:show</group>
        </attribute>
        <attribute name="discountedUnitPrice">
            <group>shop:order_item:show</group>
            <group>sylius:shop:order_item:show</group>
            <group>shop:cart:show</group>
            <group>sylius:shop:cart:show</group>
        </attribute>
        <attribute name="units">
            <group>admin:order:index</group>
            <group>sylius:admin:order:index</group>
            <group>admin:order:show</group>
            <group>sylius:admin:order:show</group>
            <group>admin:order_item:show</group>
            <group>sylius:admin:order_item:show</group>
            <group>shop:order_item:show</group>
            <group>sylius:shop:order_item:show</group>
        </attribute>
        <attribute name="adjustments">
            <group>admin:order_item:show</group>
            <group>sylius:admin:order_item:show</group>
            <group>shop:order_item:show</group>
            <group>sylius:shop:order_item:show</group>
        </attribute>
        <attribute name="adjustmentsRecursively">
            <group>admin:order_item:show</group>
            <group>sylius:admin:order_item:show</group>
            <group>shop:order_item:show</group>
            <group>sylius:shop:order_item:show</group>
        </attribute>
        <attribute name="adjustmentsTotal">
            <group>admin:order_item:show</group>
            <group>sylius:admin:order_item:show</group>
            <group>shop:order_item:show</group>
            <group>sylius:shop:order_item:show</group>
        </attribute>
        <attribute name="adjustmentsTotalRecursively">
            <group>admin:order_item:show</group>
            <group>sylius:admin:order_item:show</group>
            <group>shop:order_item:show</group>
            <group>sylius:shop:order_item:show</group>
        </attribute>
        <attribute name="product">
            <group>admin:order_item:show</group>
            <group>sylius:admin:order_item:show</group>
            <group>shop:order_item:show</group>
            <group>sylius:shop:order_item:show</group>
        </attribute>
        <attribute name="productName">
            <group>admin:order:index</group>
            <group>sylius:admin:order:index</group>
            <group>admin:order:show</group>
            <group>sylius:admin:order:show</group>
            <group>admin:order_item:show</group>
            <group>sylius:admin:order_item:show</group>
            <group>shop:cart:show</group>
            <group>sylius:shop:cart:show</group>
            <group>shop:order:account:show</group>
            <group>sylius:shop:order:account:show</group>
            <group>shop:order_item:show</group>
            <group>sylius:shop:order_item:show</group>
        </attribute>
        <attribute name="subtotal">
            <group>admin:order:index</group>
            <group>sylius:admin:order:index</group>
            <group>admin:order:show</group>
            <group>sylius:admin:order:show</group>
            <group>admin:order_item:show</group>
            <group>sylius:admin:order_item:show</group>
            <group>shop:cart:show</group>
            <group>sylius:shop:cart:show</group>
            <group>shop:order_item:show</group>
            <group>sylius:shop:order_item:show</group>
        </attribute>
        <attribute name="total">
            <group>admin:order:index</group>
            <group>sylius:admin:order:index</group>
            <group>admin:order:show</group>
            <group>sylius:admin:order:show</group>
            <group>admin:order_item:show</group>
            <group>sylius:admin:order_item:show</group>
            <group>shop:order_item:show</group>
            <group>sylius:shop:order_item:show</group>
            <group>shop:cart:show</group>
            <group>sylius:shop:cart:show</group>
        </attribute>
        <attribute name="fullDiscountedUnitPrice">
            <group>admin:order:index</group>
            <group>sylius:admin:order:index</group>
            <group>admin:order:show</group>
            <group>sylius:admin:order:show</group>
            <group>admin:order_item:show</group>
            <group>sylius:admin:order_item:show</group>
        </attribute>
    </class>
</serializer>
