| Line 9... |
Line 9... |
| 9 |
|
9 |
|
| 10 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
10 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 11 |
import com.spice.profitmandi.common.model.CreateSchemeRequest;
|
11 |
import com.spice.profitmandi.common.model.CreateSchemeRequest;
|
| 12 |
import com.spice.profitmandi.common.model.SchemeModel;
|
12 |
import com.spice.profitmandi.common.model.SchemeModel;
|
| 13 |
import com.spice.profitmandi.dao.entity.catalog.Scheme;
|
13 |
import com.spice.profitmandi.dao.entity.catalog.Scheme;
|
| - |
|
14 |
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
|
| 14 |
|
15 |
|
| 15 |
@Service
|
16 |
@Service
|
| 16 |
public interface SchemeService {
|
17 |
public interface SchemeService {
|
| 17 |
public void saveScheme(int creatorId, CreateSchemeRequest createSchemeRequest) throws ProfitMandiBusinessException;
|
18 |
public void saveScheme(int creatorId, CreateSchemeRequest createSchemeRequest) throws ProfitMandiBusinessException;
|
| 18 |
public Scheme getSchemeById(int schemeId) throws ProfitMandiBusinessException;
|
19 |
public Scheme getSchemeById(int schemeId) throws ProfitMandiBusinessException;
|
| Line 23... |
Line 24... |
| 23 |
public void processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;
|
24 |
public void processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;
|
| 24 |
// public void rollbackSchemeForInventoryItemId(int inventoryItemId);
|
25 |
// public void rollbackSchemeForInventoryItemId(int inventoryItemId);
|
| 25 |
public void rollbackSchemes(List<Integer> inventoryItemIds, int rollbackReference, String rollbackReason) throws Exception;
|
26 |
public void rollbackSchemes(List<Integer> inventoryItemIds, int rollbackReference, String rollbackReason) throws Exception;
|
| 26 |
public Map<String, Object> getSchemes(Set<Integer> roleIds, int offset, int limit) throws ProfitMandiBusinessException;
|
27 |
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;
|
28 |
public List<Scheme> getPaginatedSchemes(Set<Integer> roleIds, int offset, int limit) throws ProfitMandiBusinessException;
|
| - |
|
29 |
void reverseSchemes(List<InventoryItem> inventoryItems, int reversalReference, String reversalReason) throws Exception;
|
| 28 |
}
|
30 |
}
|