UNPKG

@shopgate/engage

Version:
14 lines (13 loc) 509 B
import { REQUEST_PRODUCT_INVENTORIES } from "../constants"; /** * Dispatches the REQUEST_PRODUCT_INVENTORIES action. * @param {string} productCode The code of the product to request the inventories for. * @param {Array} locationCodes Array of location codes. * @return {Object} The REQUEST_PRODUCT_INVENTORIES action. */ const requestProductInventories = (productCode, locationCodes) => ({ type: REQUEST_PRODUCT_INVENTORIES, productCode, locationCodes }); export default requestProductInventories;