@shopgate/engage
Version:
Shopgate's ENGAGE library.
16 lines (15 loc) • 544 B
JavaScript
import { RECEIVE_PRODUCT_LOCATIONS } from "../constants";
/**
* Creates the dispatched RECEIVE_PRODUCT_LOCATIONS action object.
* @param {string} productCode The ID of the product.
* @param {Object} [filters={}] Additional parameters.
* @param {Array} locations List of product locations.
* @return {Object} The RECEIVE_PRODUCT_LOCATIONS action.
*/
const receiveProductLocations = (productCode, filters, locations) => ({
type: RECEIVE_PRODUCT_LOCATIONS,
productCode,
filters,
locations
});
export default receiveProductLocations;