UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

6 lines 520 B
import{RECEIVE_PRODUCT_SHIPPING}from"../constants";/** * Dispatches the RECEIVE_PRODUCT_SHIPPING action. * @param {string} productId The ID of the product for which the shipping is requested. * @param {Object} shipping The data of the received product shipping. * @return {Object} The RECEIVE_PRODUCT_SHIPPING action. */var receiveProductShipping=function receiveProductShipping(productId,shipping){return{type:RECEIVE_PRODUCT_SHIPPING,productId:productId,shipping:shipping};};export default receiveProductShipping;