Subversion Repositories SmartDukaan

Rev

Rev 23781 | Rev 24264 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22608 ashik.ali 1
package com.spice.profitmandi.service.scheme;
2
 
23019 ashik.ali 3
import java.time.LocalDateTime;
4
import java.util.List;
23752 govind 5
import java.util.Map;
23781 ashik.ali 6
import java.util.Set;
23019 ashik.ali 7
 
22608 ashik.ali 8
import org.springframework.stereotype.Service;
9
 
22653 ashik.ali 10
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
22859 ashik.ali 11
import com.spice.profitmandi.common.model.CreateSchemeRequest;
23019 ashik.ali 12
import com.spice.profitmandi.common.model.SchemeModel;
22653 ashik.ali 13
import com.spice.profitmandi.dao.entity.catalog.Scheme;
23968 amit.gupta 14
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
22653 ashik.ali 15
 
22608 ashik.ali 16
@Service
17
public interface SchemeService {
22859 ashik.ali 18
	public void saveScheme(int creatorId, CreateSchemeRequest createSchemeRequest) throws ProfitMandiBusinessException;
19
	public Scheme getSchemeById(int schemeId) throws ProfitMandiBusinessException;
23019 ashik.ali 20
	public List<SchemeModel> getAllSchemeModels(LocalDateTime startDateTime, LocalDateTime endDateTime);
22653 ashik.ali 21
	public void activeSchemeById(int schemeId) throws ProfitMandiBusinessException;
22
	public void expireSchemeById(int schemeId) throws ProfitMandiBusinessException;
23365 ashik.ali 23
	public void processSchemeIn(int purchaseId, int retailerId) throws ProfitMandiBusinessException;
24
	public void processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;
23638 amit.gupta 25
//	public void rollbackSchemeForInventoryItemId(int inventoryItemId);
26
	public void rollbackSchemes(List<Integer> inventoryItemIds, int rollbackReference, String rollbackReason) throws Exception;
23781 ashik.ali 27
	public Map<String, Object> getSchemes(Set<Integer> roleIds, int offset, int limit) throws ProfitMandiBusinessException;
28
	public List<Scheme> getPaginatedSchemes(Set<Integer> roleIds, int offset, int limit) throws ProfitMandiBusinessException;
23968 amit.gupta 29
	void reverseSchemes(List<InventoryItem> inventoryItems, int reversalReference, String reversalReason) throws Exception;
22608 ashik.ali 30
}