Subversion Repositories SmartDukaan

Rev

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

Rev 26684 Rev 26802
Line 16... Line 16...
16
import com.spice.profitmandi.dao.model.CreateSchemeRequest;
16
import com.spice.profitmandi.dao.model.CreateSchemeRequest;
17
 
17
 
18
@Service
18
@Service
19
public interface SchemeService {
19
public interface SchemeService {
20
	public void saveScheme(int creatorId, CreateSchemeRequest createSchemeRequest) throws ProfitMandiBusinessException;
20
	public void saveScheme(int creatorId, CreateSchemeRequest createSchemeRequest) throws ProfitMandiBusinessException;
-
 
21
 
21
	public Scheme getSchemeById(int schemeId) throws ProfitMandiBusinessException;
22
	public Scheme getSchemeById(int schemeId) throws ProfitMandiBusinessException;
-
 
23
 
22
	public List<SchemeModel> getAllSchemeModels(LocalDateTime startDateTime, LocalDateTime endDateTime);
24
	public List<SchemeModel> getAllSchemeModels(LocalDateTime startDateTime, LocalDateTime endDateTime);
-
 
25
 
23
	public void activeSchemeById(int schemeId) throws ProfitMandiBusinessException;
26
	public void activeSchemeById(int schemeId) throws ProfitMandiBusinessException;
-
 
27
 
24
	public void expireSchemeById(int schemeId, LocalDateTime expiryDate) throws ProfitMandiBusinessException;
28
	public void expireSchemeById(int schemeId, LocalDateTime expiryDate) throws ProfitMandiBusinessException;
-
 
29
 
25
	public void processSchemeIn(int purchaseId, int retailerId) throws ProfitMandiBusinessException;
30
	public void processSchemeIn(int purchaseId, int retailerId) throws ProfitMandiBusinessException;
-
 
31
 
26
	public void processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;
32
	public void processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;
-
 
33
 
27
//	public void rollbackSchemeForInventoryItemId(int inventoryItemId);
34
	// public void rollbackSchemeForInventoryItemId(int inventoryItemId);
28
	public void rollbackSchemes(List<Integer> inventoryItemIds, int rollbackReference, String rollbackReason) throws Exception;
35
	public void rollbackSchemes(List<Integer> inventoryItemIds, int rollbackReference, String rollbackReason)
-
 
36
			throws Exception;
-
 
37
 
29
	public Map<String, Object> getSchemes(Set<Integer> roleIds, int offset, int limit) throws ProfitMandiBusinessException;
38
	public Map<String, Object> getSchemes(Set<Integer> roleIds, int offset, int limit)
-
 
39
			throws ProfitMandiBusinessException;
-
 
40
 
30
	public List<Scheme> getPaginatedSchemes(Set<Integer> roleIds, int offset, int limit) throws ProfitMandiBusinessException;
41
	public List<Scheme> getPaginatedSchemes(Set<Integer> roleIds, int offset, int limit)
-
 
42
			throws ProfitMandiBusinessException;
-
 
43
 
31
	void reverseSchemes(List<InventoryItem> inventoryItems, int reversalReference, String reversalReason) throws ProfitMandiBusinessException;
44
	void reverseSchemes(List<InventoryItem> inventoryItems, int reversalReference, String reversalReason)
-
 
45
			throws ProfitMandiBusinessException;
-
 
46
 
32
	void reverseSchemes(List<InventoryItem> inventoryItems, int reversalReference, String reversalReason,
47
	void reverseSchemes(List<InventoryItem> inventoryItems, int reversalReference, String reversalReason,
33
			SchemeType schemeType) throws ProfitMandiBusinessException;
48
			SchemeType schemeType) throws ProfitMandiBusinessException;
34
	
49
 
35
	public double getTotalMargin(int itemId, PartnerType partnerType, LocalDateTime localDateTime);
50
	public double getTotalMargin(int itemId, PartnerType partnerType, LocalDateTime localDateTime);
36
	
51
 
37
	Map<Integer, Float> getItemSchemeCashBack();
52
	Map<Integer, Float> getItemSchemeCashBack();
-
 
53
 
-
 
54
	public List<Scheme> selectSchemeByPartnerType(PartnerType partnerType, int itemId, boolean isAdmin, int offset,
-
 
55
			int limit);
-
 
56
 
38
//	void updateSchmesForModel(int catalogId) throws ProfitMandiBusinessException;
57
	// void updateSchmesForModel(int catalogId) throws ProfitMandiBusinessException;
-
 
58
 
-
 
59
	public long selectSchemeCount(PartnerType partnerType, int itemId, boolean isAdmin);
39
}
60
}