Subversion Repositories SmartDukaan

Rev

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

Rev 22859 Rev 23019
Line 1... Line 1...
1
package com.spice.profitmandi.service.scheme;
1
package com.spice.profitmandi.service.scheme;
2
 
2
 
-
 
3
import java.time.LocalDateTime;
-
 
4
import java.util.List;
-
 
5
 
3
import org.springframework.stereotype.Service;
6
import org.springframework.stereotype.Service;
4
 
7
 
5
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
8
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
6
import com.spice.profitmandi.common.model.CreateSchemeRequest;
9
import com.spice.profitmandi.common.model.CreateSchemeRequest;
-
 
10
import com.spice.profitmandi.common.model.SchemeModel;
7
import com.spice.profitmandi.dao.entity.catalog.Scheme;
11
import com.spice.profitmandi.dao.entity.catalog.Scheme;
8
 
12
 
9
@Service
13
@Service
10
public interface SchemeService {
14
public interface SchemeService {
11
	public void saveScheme(int creatorId, CreateSchemeRequest createSchemeRequest) throws ProfitMandiBusinessException;
15
	public void saveScheme(int creatorId, CreateSchemeRequest createSchemeRequest) throws ProfitMandiBusinessException;
12
	public Scheme getSchemeById(int schemeId) throws ProfitMandiBusinessException;
16
	public Scheme getSchemeById(int schemeId) throws ProfitMandiBusinessException;
-
 
17
	public List<SchemeModel> getAllSchemeModels(LocalDateTime startDateTime, LocalDateTime endDateTime);
13
	public void activeSchemeById(int schemeId) throws ProfitMandiBusinessException;
18
	public void activeSchemeById(int schemeId) throws ProfitMandiBusinessException;
14
	public void expireSchemeById(int schemeId) throws ProfitMandiBusinessException;
19
	public void expireSchemeById(int schemeId) throws ProfitMandiBusinessException;
15
	public float processSchemeIn(int purchaseId, int retailerId) throws ProfitMandiBusinessException;
20
	public float processSchemeIn(int purchaseId, int retailerId) throws ProfitMandiBusinessException;
16
	public float processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;
21
	public float processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;
17
}
22
}