| 27877 |
amit.gupta |
1 |
package com.spice.profitmandi.service.offers;
|
|
|
2 |
|
| 30274 |
amit.gupta |
3 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
|
|
4 |
import com.spice.profitmandi.dao.entity.catalog.Offer;
|
| 31205 |
amit.gupta |
5 |
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
|
| 31903 |
amit.gupta |
6 |
import com.spice.profitmandi.dao.model.AmountModel;
|
| 30274 |
amit.gupta |
7 |
import com.spice.profitmandi.dao.model.CreateOfferRequest;
|
| 35394 |
amit |
8 |
import com.spice.profitmandi.dao.model.QtyAmountModel;
|
| 33999 |
tejus.loha |
9 |
import org.apache.commons.io.output.ByteArrayOutputStream;
|
| 30274 |
amit.gupta |
10 |
import org.springframework.stereotype.Service;
|
|
|
11 |
|
| 29684 |
amit.gupta |
12 |
import java.io.InputStream;
|
| 27877 |
amit.gupta |
13 |
import java.time.LocalDate;
|
|
|
14 |
import java.time.YearMonth;
|
|
|
15 |
import java.util.List;
|
| 29785 |
amit.gupta |
16 |
import java.util.Map;
|
| 27877 |
amit.gupta |
17 |
|
|
|
18 |
@Service
|
|
|
19 |
public interface OfferService {
|
|
|
20 |
void addOfferService(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
|
|
|
21 |
|
| 33247 |
ranu |
22 |
List<CreateOfferRequest> getPublishedOffers(int fofoId, YearMonth yearMonth) throws ProfitMandiBusinessException;
|
| 27877 |
amit.gupta |
23 |
|
| 33247 |
ranu |
24 |
Map<Integer, CreateOfferRequest> getAllOffers(YearMonth yearMonth) throws ProfitMandiBusinessException;
|
| 27877 |
amit.gupta |
25 |
|
| 33247 |
ranu |
26 |
CreateOfferRequest getOffer(int fofoId, int offerId) throws ProfitMandiBusinessException;
|
| 27877 |
amit.gupta |
27 |
|
| 33247 |
ranu |
28 |
List<CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, int catalogId) throws ProfitMandiBusinessException;
|
| 29684 |
amit.gupta |
29 |
|
| 31903 |
amit.gupta |
30 |
Map<Integer, CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, String brand);
|
| 29785 |
amit.gupta |
31 |
|
| 31903 |
amit.gupta |
32 |
void createOffers(InputStream inputStream) throws Exception;
|
| 29785 |
amit.gupta |
33 |
|
| 33247 |
ranu |
34 |
Map<Integer, Map<Integer, Long>> getSlabPayoutMap(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
|
| 29902 |
amit.gupta |
35 |
|
| 31205 |
amit.gupta |
36 |
|
| 31903 |
amit.gupta |
37 |
Map<Integer, Map<Integer, AmountModel>> getSlabPayoutMapNew(CreateOfferRequest createOfferRequest);
|
|
|
38 |
|
| 33247 |
ranu |
39 |
CreateOfferRequest getCreateOfferRequest(Offer fromOffer) throws ProfitMandiBusinessException;
|
| 31903 |
amit.gupta |
40 |
|
| 33613 |
amit.gupta |
41 |
void reverseAdditionalSelloutSchemes(List<InventoryItem> inventoryItems, String reversalReason) throws ProfitMandiBusinessException;
|
| 31920 |
amit.gupta |
42 |
|
|
|
43 |
void processSellin(CreateOfferRequest createOfferRequest) throws Exception;
|
| 35394 |
amit |
44 |
|
|
|
45 |
Map<Integer, QtyAmountModel> getCriteriaQtyAmounModelMap(CreateOfferRequest createOfferRequest, int fofoId) throws ProfitMandiBusinessException;
|
|
|
46 |
|
| 31920 |
amit.gupta |
47 |
void processActivationtOffer(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
|
| 33030 |
amit.gupta |
48 |
|
| 33247 |
ranu |
49 |
String getPartnerCriteriaString(PartnerCriteria partnerCriteria) throws ProfitMandiBusinessException;
|
| 33999 |
tejus.loha |
50 |
|
|
|
51 |
ByteArrayOutputStream createCSVOfferReport(CreateOfferRequest createOfferRequest) throws Exception;
|
| 35205 |
amit |
52 |
|
|
|
53 |
void sendWhatsapp(Offer offer, List<Integer> fofoIds, String imageUrl) throws Exception;
|
| 35856 |
amit |
54 |
|
|
|
55 |
void deleteOffer(int offerId) throws ProfitMandiBusinessException;
|
|
|
56 |
|
|
|
57 |
List<Offer> publishAllUnpublished(YearMonth yearMonth) throws ProfitMandiBusinessException;
|
| 27877 |
amit.gupta |
58 |
}
|