<?xml version="1.0"?>
<!--
/**
 * Copyright © MageWorx. All rights reserved.
 * See LICENSE.txt for license details.
 */
-->
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
    <!-- Customer Prices -->
    <route url="/V1/customer/mw-customer-prices-information" method="POST">
        <service class="MageWorx\CustomerPrices\Api\CustomerPriceStorageInterface" method="get"/>
        <resources>
            <resource ref="Magento_Catalog::catalog"/>
        </resources>
    </route>
    <route url="/V1/customer/mw-customer-prices" method="POST">
        <service class="MageWorx\CustomerPrices\Api\CustomerPriceStorageInterface" method="replace"/>
        <resources>
            <resource ref="Magento_Catalog::catalog"/>
        </resources>
    </route>
    <route url="/V1/customer/mw-customer-prices-delete" method="POST">
        <service class="MageWorx\CustomerPrices\Api\CustomerPriceStorageInterface" method="delete"/>
        <resources>
            <resource ref="Magento_Catalog::catalog"/>
        </resources>
    </route>

    <!-- Customer Product Prices -->
    <route url="/V1/products/mw-customer-prices-information" method="POST">
        <service class="MageWorx\CustomerPrices\Api\CustomerProductPriceStorageInterface" method="get"/>
        <resources>
            <resource ref="Magento_Catalog::catalog"/>
        </resources>
    </route>
    <route url="/V1/products/mw-customer-prices-information-by-customers" method="POST">
        <service class="MageWorx\CustomerPrices\Api\CustomerProductPriceStorageInterface" method="getByCustomers"/>
        <resources>
            <resource ref="Magento_Catalog::catalog"/>
        </resources>
    </route>
    <route url="/V1/products/mw-customer-prices" method="POST">
        <service class="MageWorx\CustomerPrices\Api\CustomerProductPriceStorageInterface" method="update"/>
        <resources>
            <resource ref="Magento_Catalog::catalog"/>
        </resources>
    </route>
    <route url="/V1/products/mw-customer-prices" method="PUT">
        <service class="MageWorx\CustomerPrices\Api\CustomerProductPriceStorageInterface" method="replace"/>
        <resources>
            <resource ref="Magento_Catalog::catalog"/>
        </resources>
    </route>
    <route url="/V1/products/mw-customer-prices-delete" method="POST">
        <service class="MageWorx\CustomerPrices\Api\CustomerProductPriceStorageInterface" method="delete"/>
        <resources>
            <resource ref="Magento_Catalog::catalog"/>
        </resources>
    </route>
    <route url="/V1/products/mw-customer-prices-delete-by-products" method="POST">
        <service class="MageWorx\CustomerPrices\Api\CustomerProductPriceStorageInterface" method="deleteByProducts"/>
        <resources>
            <resource ref="Magento_Catalog::catalog"/>
        </resources>
    </route>
    <route url="/V1/products/mw-customer-prices-delete-by-customers" method="POST">
        <service class="MageWorx\CustomerPrices\Api\CustomerProductPriceStorageInterface" method="deleteByCustomers"/>
        <resources>
            <resource ref="Magento_Catalog::catalog"/>
        </resources>
    </route>
</routes>
