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