Subversion Repositories SmartDukaan

Rev

Rev 23638 | Rev 23781 | 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;
23019 ashik.ali 6
 
22608 ashik.ali 7
import org.springframework.stereotype.Service;
8
 
22653 ashik.ali 9
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
22859 ashik.ali 10
import com.spice.profitmandi.common.model.CreateSchemeRequest;
23019 ashik.ali 11
import com.spice.profitmandi.common.model.SchemeModel;
22653 ashik.ali 12
import com.spice.profitmandi.dao.entity.catalog.Scheme;
13
 
22608 ashik.ali 14
@Service
15
public interface SchemeService {
22859 ashik.ali 16
	public void saveScheme(int creatorId, CreateSchemeRequest createSchemeRequest) throws ProfitMandiBusinessException;
17
	public Scheme getSchemeById(int schemeId) throws ProfitMandiBusinessException;
23019 ashik.ali 18
	public List<SchemeModel> getAllSchemeModels(LocalDateTime startDateTime, LocalDateTime endDateTime);
22653 ashik.ali 19
	public void activeSchemeById(int schemeId) throws ProfitMandiBusinessException;
20
	public void expireSchemeById(int schemeId) throws ProfitMandiBusinessException;
23365 ashik.ali 21
	public void processSchemeIn(int purchaseId, int retailerId) throws ProfitMandiBusinessException;
22
	public void processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;
23638 amit.gupta 23
//	public void rollbackSchemeForInventoryItemId(int inventoryItemId);
24
	public void rollbackSchemes(List<Integer> inventoryItemIds, int rollbackReference, String rollbackReason) throws Exception;
22608 ashik.ali 25
}