123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <?xml version="1.0"?>
- <!--
- /**
- * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
- */
- -->
- <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
- <!-- Managing Delivery Option Selection in Checkout -->
- <route url="/V1/carts/mine/delivery-option" method="POST">
- <service class="Temando\Shipping\Api\Quote\CartDeliveryOptionManagementInterface" method="save"/>
- <resources>
- <resource ref="self" />
- </resources>
- <data>
- <parameter name="cartId" force="true">%cart_id%</parameter>
- </data>
- </route>
- <route url="/V1/guest-carts/:cartId/delivery-option" method="POST">
- <service class="Temando\Shipping\Api\Quote\GuestCartDeliveryOptionManagementInterface" method="save"/>
- <resources>
- <resource ref="anonymous"/>
- </resources>
- </route>
- <!-- Managing Temando RMA Return Shipments -->
- <route url="/V1/temando/rma/:rmaId/shipments" method="PUT">
- <service class="Temando\Shipping\Api\Rma\RmaShipmentManagementInterface" method="assignShipmentIds"/>
- <resources>
- <resource ref="Magento_Rma::magento_rma" />
- </resources>
- </route>
- <!-- Managing Search for Collection Points (Guest Checkout) -->
- <route method="PUT" url="/V1/guest-carts/:cartId/collection-point/search-request">
- <service class="Temando\Shipping\Api\Checkout\GuestCartCollectionPointManagementInterface" method="saveSearchRequest"/>
- <resources>
- <resource ref="anonymous"/>
- </resources>
- </route>
- <route method="DELETE" url="/V1/guest-carts/:cartId/collection-point/search-request">
- <service class="Temando\Shipping\Api\Checkout\GuestCartCollectionPointManagementInterface" method="deleteSearchRequest"/>
- <resources>
- <resource ref="anonymous"/>
- </resources>
- </route>
- <route method="GET" url="/V1/guest-carts/:cartId/collection-point/search-result">
- <service class="Temando\Shipping\Api\Checkout\GuestCartCollectionPointManagementInterface" method="getCollectionPoints"/>
- <resources>
- <resource ref="anonymous"/>
- </resources>
- </route>
- <route method="POST" url="/V1/guest-carts/:cartId/checkout-collection-point/select">
- <service class="Temando\Shipping\Api\Checkout\GuestCartCollectionPointManagementInterface" method="selectCollectionPoint"/>
- <resources>
- <resource ref="anonymous"/>
- </resources>
- </route>
- <!-- @deprecated -->
- <route method="POST" url="/V1/guest-carts/:cartId/collection-point/select">
- <service class="Temando\Shipping\Api\Delivery\GuestCartCollectionPointManagementInterface" method="selectCollectionPoint"/>
- <resources>
- <resource ref="anonymous"/>
- </resources>
- </route>
- <!-- Managing Search for Collection Points (Logged-In Checkout) -->
- <route method="PUT" url="/V1/carts/mine/collection-point/search-request">
- <service class="Temando\Shipping\Api\Checkout\CartCollectionPointManagementInterface" method="saveSearchRequest"/>
- <resources>
- <resource ref="self"/>
- </resources>
- <data>
- <parameter name="cartId" force="true">%cart_id%</parameter>
- </data>
- </route>
- <route method="DELETE" url="/V1/carts/mine/collection-point/search-request">
- <service class="Temando\Shipping\Api\Checkout\CartCollectionPointManagementInterface" method="deleteSearchRequest"/>
- <resources>
- <resource ref="self"/>
- </resources>
- <data>
- <parameter name="cartId" force="true">%cart_id%</parameter>
- </data>
- </route>
- <route method="GET" url="/V1/carts/mine/collection-point/search-result">
- <service class="Temando\Shipping\Api\Checkout\CartCollectionPointManagementInterface" method="getCollectionPoints"/>
- <resources>
- <resource ref="self"/>
- </resources>
- <data>
- <parameter name="cartId" force="true">%cart_id%</parameter>
- </data>
- </route>
- <route method="POST" url="/V1/carts/mine/checkout-collection-point/select">
- <service class="Temando\Shipping\Api\Checkout\CartCollectionPointManagementInterface" method="selectCollectionPoint"/>
- <resources>
- <resource ref="self"/>
- </resources>
- <data>
- <parameter name="cartId" force="true">%cart_id%</parameter>
- </data>
- </route>
- <!-- @deprecated -->
- <route method="POST" url="/V1/carts/mine/collection-point/select">
- <service class="Temando\Shipping\Api\Delivery\CartCollectionPointManagementInterface" method="selectCollectionPoint"/>
- <resources>
- <resource ref="self"/>
- </resources>
- <data>
- <parameter name="cartId" force="true">%cart_id%</parameter>
- </data>
- </route>
- <!-- Managing Service Fields in Checkout (guest checkout)-->
- <route url="/V1/guest-carts/:cartId/checkout-fields" method="POST">
- <service class="Temando\Shipping\Api\Quote\GuestCartCheckoutFieldManagementInterface" method="saveCheckoutFields"/>
- <resources>
- <resource ref="anonymous" />
- </resources>
- </route>
- <!-- Managing Service Fields in Checkout (Logged in customer) -->
- <route url="/V1/carts/mine/checkout-fields" method="POST">
- <service class="Temando\Shipping\Api\Quote\CartCheckoutFieldManagementInterface" method="saveCheckoutFields"/>
- <resources>
- <resource ref="self"/>
- </resources>
- <data>
- <parameter name="cartId" force="true">%cart_id%</parameter>
- </data>
- </route>
- <!-- Managing Pickup Locations in Checkout -->
- <route method="POST" url="/V1/guest-carts/:cartId/checkout-pickup-location/select">
- <service class="Temando\Shipping\Api\Checkout\GuestCartPickupLocationManagementInterface" method="selectPickupLocation"/>
- <resources>
- <resource ref="anonymous"/>
- </resources>
- </route>
- <!-- @deprecated -->
- <route method="POST" url="/V1/guest-carts/:cartId/pickup-location/select">
- <service class="Temando\Shipping\Api\Delivery\GuestCartPickupLocationManagementInterface" method="selectPickupLocation"/>
- <resources>
- <resource ref="anonymous"/>
- </resources>
- </route>
- <route method="POST" url="/V1/carts/mine/checkout-pickup-location/select">
- <service class="Temando\Shipping\Api\Checkout\CartPickupLocationManagementInterface" method="selectPickupLocation"/>
- <resources>
- <resource ref="self"/>
- </resources>
- <data>
- <parameter name="cartId" force="true">%cart_id%</parameter>
- </data>
- </route>
- <!-- @deprecated -->
- <route method="POST" url="/V1/carts/mine/pickup-location/select">
- <service class="Temando\Shipping\Api\Delivery\CartPickupLocationManagementInterface" method="selectPickupLocation"/>
- <resources>
- <resource ref="self"/>
- </resources>
- <data>
- <parameter name="cartId" force="true">%cart_id%</parameter>
- </data>
- </route>
- </routes>
|