@shopgate/engage
Version:
Shopgate's ENGAGE library.
7 lines • 622 B
JavaScript
import{RECEIVE_PRODUCT_INVENTORIES}from"../constants";/**
* Creates the dispatched RECEIVE_PRODUCT_INVENTORIES action object.
* @param {string} productCode The code of the product.
* @param {Array} locationCodes List of location codes.
* @param {Array} inventories List of product invetories.
* @return {Object} The RECEIVE_PRODUCT_LOCATIONS action.
*/var receiveProductInventories=function receiveProductInventories(productCode,locationCodes,inventories){return{type:RECEIVE_PRODUCT_INVENTORIES,productCode:productCode,locationCodes:locationCodes,inventories:inventories};};export default receiveProductInventories;