| Line 7... |
Line 7... |
| 7 |
|
7 |
|
| 8 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
8 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 9 |
import com.spice.profitmandi.common.model.CreateSchemeRequest;
|
9 |
import com.spice.profitmandi.common.model.CreateSchemeRequest;
|
| 10 |
import com.spice.profitmandi.common.model.SchemeModel;
|
10 |
import com.spice.profitmandi.common.model.SchemeModel;
|
| 11 |
import com.spice.profitmandi.dao.entity.catalog.Scheme;
|
11 |
import com.spice.profitmandi.dao.entity.catalog.Scheme;
|
| - |
|
12 |
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
|
| 12 |
|
13 |
|
| 13 |
@Service
|
14 |
@Service
|
| 14 |
public interface SchemeService {
|
15 |
public interface SchemeService {
|
| 15 |
public void saveScheme(int creatorId, CreateSchemeRequest createSchemeRequest) throws ProfitMandiBusinessException;
|
16 |
public void saveScheme(int creatorId, CreateSchemeRequest createSchemeRequest) throws ProfitMandiBusinessException;
|
| 16 |
public Scheme getSchemeById(int schemeId) throws ProfitMandiBusinessException;
|
17 |
public Scheme getSchemeById(int schemeId) throws ProfitMandiBusinessException;
|
| 17 |
public List<SchemeModel> getAllSchemeModels(LocalDateTime startDateTime, LocalDateTime endDateTime);
|
18 |
public List<SchemeModel> getAllSchemeModels(LocalDateTime startDateTime, LocalDateTime endDateTime);
|
| 18 |
public void activeSchemeById(int schemeId) throws ProfitMandiBusinessException;
|
19 |
public void activeSchemeById(int schemeId) throws ProfitMandiBusinessException;
|
| 19 |
public void expireSchemeById(int schemeId) throws ProfitMandiBusinessException;
|
20 |
public void expireSchemeById(int schemeId) throws ProfitMandiBusinessException;
|
| 20 |
public void processSchemeIn(int purchaseId, int retailerId) throws ProfitMandiBusinessException;
|
21 |
public void processSchemeIn(int purchaseId, int retailerId) throws ProfitMandiBusinessException;
|
| 21 |
public void processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;
|
22 |
public void processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;
|
| - |
|
23 |
public void rollbackSchemeForInventoryItemId(int inventoryItemId);
|
| - |
|
24 |
public void rollbackSchemes(List<InventoryItem> inventoryItems, int rollbackReference, String rollbackReason);
|
| 22 |
}
|
25 |
}
|