UNPKG

@shopgate/engage

Version:
7 lines 733 B
import{SET_USER_SEARCH_POSTAL_CODE}from"../constants";/** * Creates the dispatched SET_USER_SEARCH_POSTAL_CODE action object. * @param {string} postalCode The postalCode. * @param {string} [productId=null] An optional product code. * @param {boolean} [isStoreFinder=false] Was the actions dispatched for the store finder * @returns {Object} */var setUserSearchPostalCode=function setUserSearchPostalCode(postalCode){var productId=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var isStoreFinder=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;return{type:SET_USER_SEARCH_POSTAL_CODE,postalCode:postalCode,productId:productId,isStoreFinder:isStoreFinder};};export default setUserSearchPostalCode;