| 22608 |
ashik.ali |
1 |
package com.spice.profitmandi.service.scheme;
|
|
|
2 |
|
| 22653 |
ashik.ali |
3 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 23019 |
ashik.ali |
4 |
import com.spice.profitmandi.common.model.SchemeModel;
|
| 22653 |
ashik.ali |
5 |
import com.spice.profitmandi.dao.entity.catalog.Scheme;
|
| 23968 |
amit.gupta |
6 |
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
|
| 26332 |
amit.gupta |
7 |
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
|
| 24264 |
amit.gupta |
8 |
import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;
|
| 25503 |
amit.gupta |
9 |
import com.spice.profitmandi.dao.model.CreateSchemeRequest;
|
| 30121 |
amit.gupta |
10 |
import org.springframework.stereotype.Service;
|
| 22653 |
ashik.ali |
11 |
|
| 30121 |
amit.gupta |
12 |
import java.time.LocalDate;
|
|
|
13 |
import java.time.LocalDateTime;
|
|
|
14 |
import java.util.List;
|
|
|
15 |
import java.util.Map;
|
|
|
16 |
import java.util.Set;
|
|
|
17 |
|
| 22608 |
ashik.ali |
18 |
@Service
|
|
|
19 |
public interface SchemeService {
|
| 34221 |
tejus.loha |
20 |
List<String> getBlockedImeis();
|
| 26802 |
tejbeer |
21 |
|
| 34221 |
tejus.loha |
22 |
public void saveScheme(int creatorId, CreateSchemeRequest createSchemeRequest) throws ProfitMandiBusinessException;
|
|
|
23 |
|
| 22859 |
ashik.ali |
24 |
public Scheme getSchemeById(int schemeId) throws ProfitMandiBusinessException;
|
| 26802 |
tejbeer |
25 |
|
| 33248 |
ranu |
26 |
public List<SchemeModel> getAllSchemeModels(LocalDateTime startDateTime, LocalDateTime endDateTime) throws ProfitMandiBusinessException;
|
| 26802 |
tejbeer |
27 |
|
| 22653 |
ashik.ali |
28 |
public void activeSchemeById(int schemeId) throws ProfitMandiBusinessException;
|
| 26802 |
tejbeer |
29 |
|
| 34568 |
vikas.jang |
30 |
public void activeSchemeByIds(List<Scheme> schemeIds) throws ProfitMandiBusinessException;
|
|
|
31 |
|
| 35252 |
aman |
32 |
public void expireSchemeByIds(List<Scheme> schemeIds) throws ProfitMandiBusinessException;
|
|
|
33 |
|
| 25071 |
amit.gupta |
34 |
public void expireSchemeById(int schemeId, LocalDateTime expiryDate) throws ProfitMandiBusinessException;
|
| 26802 |
tejbeer |
35 |
|
| 35060 |
amit |
36 |
void sendCombinedSchemesNotification(List<Scheme> schemes) throws ProfitMandiBusinessException;
|
| 26802 |
tejbeer |
37 |
|
| 35060 |
amit |
38 |
public void processSchemeIn(int purchaseId, int retailerId) throws ProfitMandiBusinessException;
|
|
|
39 |
|
| 30454 |
amit.gupta |
40 |
public float processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;
|
| 26802 |
tejbeer |
41 |
|
| 30463 |
amit.gupta |
42 |
float getSpecialSupportAmount(float supportAmount, PartnerType partnerType, LocalDate onDate, int catalogId) throws ProfitMandiBusinessException;
|
|
|
43 |
|
| 30572 |
amit.gupta |
44 |
float getSpecialSupportAmount(float supportAmount, PartnerType partnerType, LocalDate onDate, int catalogId, float taxRate) throws ProfitMandiBusinessException;
|
|
|
45 |
|
| 26802 |
tejbeer |
46 |
// public void rollbackSchemeForInventoryItemId(int inventoryItemId);
|
| 33614 |
amit.gupta |
47 |
public void rollbackSchemes(List<Integer> inventoryItemIds, String rollbackReason)
|
| 26802 |
tejbeer |
48 |
throws Exception;
|
|
|
49 |
|
|
|
50 |
public Map<String, Object> getSchemes(Set<Integer> roleIds, int offset, int limit)
|
|
|
51 |
throws ProfitMandiBusinessException;
|
|
|
52 |
|
|
|
53 |
public List<Scheme> getPaginatedSchemes(Set<Integer> roleIds, int offset, int limit)
|
|
|
54 |
throws ProfitMandiBusinessException;
|
|
|
55 |
|
|
|
56 |
void reverseSchemes(List<InventoryItem> inventoryItems, int reversalReference, String reversalReason)
|
|
|
57 |
throws ProfitMandiBusinessException;
|
|
|
58 |
|
| 24264 |
amit.gupta |
59 |
void reverseSchemes(List<InventoryItem> inventoryItems, int reversalReference, String reversalReason,
|
| 30454 |
amit.gupta |
60 |
List<SchemeType> schemeTypes) throws ProfitMandiBusinessException;
|
| 26802 |
tejbeer |
61 |
|
| 26332 |
amit.gupta |
62 |
public double getTotalMargin(int itemId, PartnerType partnerType, LocalDateTime localDateTime);
|
| 26802 |
tejbeer |
63 |
|
|
|
64 |
|
| 34709 |
amit.gupta |
65 |
//void processPartialCD(String invoiceNumber) throws ProfitMandiBusinessException;
|
|
|
66 |
|
|
|
67 |
//void processNoCD(String invoiceNumber) throws ProfitMandiBusinessException;
|
|
|
68 |
|
| 32309 |
amit.gupta |
69 |
Scheme getStaticScheme(int fofoId) throws ProfitMandiBusinessException;
|
|
|
70 |
|
| 27877 |
amit.gupta |
71 |
public List<Scheme> selectSchemeByPartnerType(PartnerType partnerType, LocalDate onDate, int itemId, boolean isAdmin, int offset,
|
| 30454 |
amit.gupta |
72 |
int limit) throws ProfitMandiBusinessException;
|
| 26802 |
tejbeer |
73 |
|
| 30454 |
amit.gupta |
74 |
List<Scheme> selectPercentageScheme(PartnerType partnerType, LocalDate onDate, int catalogId,
|
|
|
75 |
boolean isAdmin, int offset, int limit) throws ProfitMandiBusinessException;
|
|
|
76 |
|
| 27395 |
amit.gupta |
77 |
void processActivation() throws ProfitMandiBusinessException;
|
| 30454 |
amit.gupta |
78 |
|
| 34317 |
amit.gupta |
79 |
//public static List<SchemeType> OUT_SCHEME_TYPES = Arrays.asList(SchemeType.CATEGORY, SchemeType.HYGEINE, SchemeType.OUT, SchemeType.TERTIARY);
|
| 30897 |
amit.gupta |
80 |
|
|
|
81 |
void processActivatedImeisForSchemes() throws ProfitMandiBusinessException;
|
| 31170 |
amit.gupta |
82 |
|
| 33248 |
ranu |
83 |
Map<Integer, Float> getCatalogSchemeCashBack(int fofoId, List<Integer> catalogIds) throws ProfitMandiBusinessException;
|
| 32972 |
amit.gupta |
84 |
|
| 31170 |
amit.gupta |
85 |
List<Scheme> selectSchemeByPartnerTypeFofoId(PartnerType partnerType, LocalDate onDate, int catalogId,
|
|
|
86 |
int fofoId, int offset, int limit) throws ProfitMandiBusinessException;
|
| 32309 |
amit.gupta |
87 |
|
| 33432 |
amit.gupta |
88 |
void processSchemeIn(List<InventoryItem> approvedList) throws ProfitMandiBusinessException;
|
| 34709 |
amit.gupta |
89 |
|
|
|
90 |
//void processFullCD(String invoiceNumber) throws ProfitMandiBusinessException;
|
| 22608 |
ashik.ali |
91 |
}
|