UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

7 lines 463 B
import{SUCCESS_HANDLE_SCANNER}from"../constants";/** * Creates the dispatched SUCCESS_HANDLE_SCANNER action object. * @param {string} scope scan scope * @param {string} format data format EAN_13, QR_CODE * @param {Object} payload scan result * @returns {Object} */var successHandleScanner=function successHandleScanner(scope,format,payload){return{type:SUCCESS_HANDLE_SCANNER,scope:scope,format:format,payload:payload};};export default successHandleScanner;