Rev 23781 | Rev 24264 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.service.scheme;import java.time.LocalDateTime;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.CreateSchemeRequest;import com.spice.profitmandi.common.model.SchemeModel;import com.spice.profitmandi.dao.entity.catalog.Scheme;import com.spice.profitmandi.dao.entity.fofo.InventoryItem;@Servicepublic interface SchemeService {public void saveScheme(int creatorId, CreateSchemeRequest createSchemeRequest) throws ProfitMandiBusinessException;public Scheme getSchemeById(int schemeId) throws ProfitMandiBusinessException;public List<SchemeModel> getAllSchemeModels(LocalDateTime startDateTime, LocalDateTime endDateTime);public void activeSchemeById(int schemeId) throws ProfitMandiBusinessException;public void expireSchemeById(int schemeId) throws ProfitMandiBusinessException;public void processSchemeIn(int purchaseId, int retailerId) throws ProfitMandiBusinessException;public void processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;// public void rollbackSchemeForInventoryItemId(int inventoryItemId);public void rollbackSchemes(List<Integer> inventoryItemIds, int rollbackReference, String rollbackReason) throws Exception;public Map<String, Object> getSchemes(Set<Integer> roleIds, int offset, int limit) throws ProfitMandiBusinessException;public List<Scheme> getPaginatedSchemes(Set<Integer> roleIds, int offset, int limit) throws ProfitMandiBusinessException;void reverseSchemes(List<InventoryItem> inventoryItems, int reversalReference, String reversalReason) throws Exception;}