Subversion Repositories SmartDukaan

Rev

Rev 23752 | Rev 23968 | 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;
14
 
22608 ashik.ali 15
@Service
16
public interface SchemeService {
22859 ashik.ali 17
	public void saveScheme(int creatorId, CreateSchemeRequest createSchemeRequest) throws ProfitMandiBusinessException;
18
	public Scheme getSchemeById(int schemeId) throws ProfitMandiBusinessException;
23019 ashik.ali 19
	public List<SchemeModel> getAllSchemeModels(LocalDateTime startDateTime, LocalDateTime endDateTime);
22653 ashik.ali 20
	public void activeSchemeById(int schemeId) throws ProfitMandiBusinessException;
21
	public void expireSchemeById(int schemeId) throws ProfitMandiBusinessException;
23365 ashik.ali 22
	public void processSchemeIn(int purchaseId, int retailerId) throws ProfitMandiBusinessException;
23
	public void processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;
23638 amit.gupta 24
//	public void rollbackSchemeForInventoryItemId(int inventoryItemId);
25
	public void rollbackSchemes(List<Integer> inventoryItemIds, int rollbackReference, String rollbackReason) throws Exception;
23781 ashik.ali 26
	public Map<String, Object> getSchemes(Set<Integer> roleIds, int offset, int limit) throws ProfitMandiBusinessException;
27
	public List<Scheme> getPaginatedSchemes(Set<Integer> roleIds, int offset, int limit) throws ProfitMandiBusinessException;
22608 ashik.ali 28
}