@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
6 lines • 644 B
JavaScript
import{DELETE_PRODUCTS_BY_IDS}from"../constants";/**
* Creates the dispatched DELETE_PRODUCTS_BY_IDS action object.
* @param {string[]} productIds Ids of the products to be set as expired.
* @param {boolean} [complete=false] if product should be removed from lists.
* @returns {Object} The dispatched action object.
*/var deleteProductsByIds=function deleteProductsByIds(){var productIds=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var complete=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;return{type:DELETE_PRODUCTS_BY_IDS,productIds:productIds,complete:complete};};export default deleteProductsByIds;