UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

8 lines 771 B
function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}import{ERROR_PRODUCTS}from"../constants";/** * Dispatches the ERROR_PRODUCTS action object. * @param {Object} payload The action payload. * @param {string} payload.hash The store hash. * @param {Object} payload.params The criteria of the products received. * @param {string} payload.errorCode The error code. * @return {Object} The ERROR_PRODUCTS action. */var errorProducts=function errorProducts(payload){return _extends({type:ERROR_PRODUCTS},payload);};export default errorProducts;