Subversion Repositories SmartDukaan

Rev

Rev 23443 | Rev 23569 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.service.inventory;

import java.util.List;
import java.util.Map;
import java.util.Set;

import org.springframework.stereotype.Service;

import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.common.model.CustomCurrentInventorySnapshot;
import com.spice.profitmandi.common.model.InventoryItemAgingModel;
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;

@Service
public interface InventoryService {
        public Map<Integer, String> getItemIdDescriptionMap(Set<Integer> itemIds);
        public Set<String> getAllBrands();
        public Map<Integer, String> getAllItemIdItemDescriptionMap(String brand);
        public Set<String> getAllTagListingBrands();
        public Set<String> getAllTagListingBrands(int categoryId);
        public Map<Integer, String> getAllTagListingItemIdItemDescriptionMap(String brand);
        public int getCachedAvailabilityByItemIdWarehouseIds(int itemId, int[] warehouseIds);
        public Map<String, Object> getCurrentInventorySnapshot(int fofoId, int offset, int limit, String searchTerm);
        public Map<String, Object> getBadInventorySnapshot(int fofoId, int offset, int limit, String searchTerm);
        public Map<String, Object> getPaginatedCurrentInventorySnapshot(int fofoId, int offset, int limit, String searchTerm);
        public Map<String, Object> getCatalog(int fofoId, int offset, int limit, String searchTerm);
        public Map<String, Object> getPaginatedCatalog(int fofoId, int offset, int limit, String searchTerm);
        public CustomCurrentInventorySnapshot checkItemAvailability(int itemId, int fofoId) throws ProfitMandiBusinessException;
        public Map<String, Object> getGrnHistory(int fofoId, String startTimeString, String endTimeString, int offset, int limit, String purchaseReference, String searchType) throws ProfitMandiBusinessException;
        public Map<String, Object> getPaginatedGrnHistory(int fofoId, String startTimeString, String endTimeString, int offset, int limit) throws ProfitMandiBusinessException;
        public Map<String, Object> getGrnHistoryDetail(int fofoId, int purchaseId, String host, int port, String webapp) throws ProfitMandiBusinessException;
        public Map<String, Object> getGrnHistoryDetail(int fofoId, String purchaseReference, String host, int port, String webapp) throws ProfitMandiBusinessException;
        public List<InventoryItemAgingModel> getItemAgingByInterval(int fofoId, List<Integer> intervals) throws ProfitMandiBusinessException;
        public Map<String, Object> getPaginatedItemAgingByInterval(int fofoId, List<Integer> intervals, String searchContent, int offset, int limit) throws ProfitMandiBusinessException;
        public Map<String, Object> addToCart(String cartJson, int fofoId) throws ProfitMandiBusinessException;
        public Map<String, Object> validateCart(String cartJson, int fofoId) throws ProfitMandiBusinessException;
        public void returnInventory(InventoryItem inventoryItem);
        public void returnInventoryItems(List<InventoryItem> inventoryItems);
}