@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
6 lines • 477 B
JavaScript
import{ERROR_PRODUCT_SHIPPING}from"../constants";/**
* Dispatches the ERROR_PRODUCT_SHIPPING action.
* @param {string} productId The ID of the product for which the shipping is requested.
* @param {string} errorCode errorCode
* @return {Object} The ERROR_PRODUCT_SHIPPING action.
*/var errorProductShipping=function errorProductShipping(productId,errorCode){return{type:ERROR_PRODUCT_SHIPPING,productId:productId,errorCode:errorCode};};export default errorProductShipping;