@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
7 lines • 430 B
JavaScript
import{SCANNER_FINISHED}from"../constants";/**
* Creates the dispatched SCANNER_FINISHED action object.
* @param {string} scope scan scope
* @param {string} format data format EAN_13, QR_CODE
* @param {Object} payload scan result
* @returns {Object}
*/var scannerFinished=function scannerFinished(scope,format,payload){return{type:SCANNER_FINISHED,scope:scope,format:format,payload:payload};};export default scannerFinished;