@shopgate/engage
Version:
Shopgate's ENGAGE library.
6 lines • 513 B
JavaScript
import{PipelineRequest}from"../../core";/**
* pipeline call to shopgate.user.sendDefaultLocationCodeCode.v1
* to set user default location in data base
* @param {string} locationCode The location code to send to backend
* @returns {Function} redux thunk
*/var sendDefaultLocationCode=function sendDefaultLocationCode(locationCode){return function(){return new PipelineRequest('shopgate.user.setDefaultLocationCode').setInput({locationCode:locationCode}).dispatch();};};export default sendDefaultLocationCode;