UNPKG

@shopgate/engage

Version:
7 lines 622 B
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;