Subversion Repositories SmartDukaan

Rev

Rev 23509 | Rev 23752 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23509 Rev 23638
Line 7... Line 7...
7
 
7
 
8
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
8
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
9
import com.spice.profitmandi.common.model.CreateSchemeRequest;
9
import com.spice.profitmandi.common.model.CreateSchemeRequest;
10
import com.spice.profitmandi.common.model.SchemeModel;
10
import com.spice.profitmandi.common.model.SchemeModel;
11
import com.spice.profitmandi.dao.entity.catalog.Scheme;
11
import com.spice.profitmandi.dao.entity.catalog.Scheme;
12
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
-
 
13
 
12
 
14
@Service
13
@Service
15
public interface SchemeService {
14
public interface SchemeService {
16
	public void saveScheme(int creatorId, CreateSchemeRequest createSchemeRequest) throws ProfitMandiBusinessException;
15
	public void saveScheme(int creatorId, CreateSchemeRequest createSchemeRequest) throws ProfitMandiBusinessException;
17
	public Scheme getSchemeById(int schemeId) throws ProfitMandiBusinessException;
16
	public Scheme getSchemeById(int schemeId) throws ProfitMandiBusinessException;
18
	public List<SchemeModel> getAllSchemeModels(LocalDateTime startDateTime, LocalDateTime endDateTime);
17
	public List<SchemeModel> getAllSchemeModels(LocalDateTime startDateTime, LocalDateTime endDateTime);
19
	public void activeSchemeById(int schemeId) throws ProfitMandiBusinessException;
18
	public void activeSchemeById(int schemeId) throws ProfitMandiBusinessException;
20
	public void expireSchemeById(int schemeId) throws ProfitMandiBusinessException;
19
	public void expireSchemeById(int schemeId) throws ProfitMandiBusinessException;
21
	public void processSchemeIn(int purchaseId, int retailerId) throws ProfitMandiBusinessException;
20
	public void processSchemeIn(int purchaseId, int retailerId) throws ProfitMandiBusinessException;
22
	public void processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;
21
	public void processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;
23
	public void rollbackSchemeForInventoryItemId(int inventoryItemId);
22
//	public void rollbackSchemeForInventoryItemId(int inventoryItemId);
24
	public void rollbackSchemes(List<InventoryItem> inventoryItems, int rollbackReference, String rollbackReason);
23
	public void rollbackSchemes(List<Integer> inventoryItemIds, int rollbackReference, String rollbackReason) throws Exception;
25
}
24
}