| 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;
|
|
|
8 |
import org.springframework.stereotype.Service;
|
|
|
9 |
|
| 29684 |
amit.gupta |
10 |
import java.io.InputStream;
|
| 27877 |
amit.gupta |
11 |
import java.time.LocalDate;
|
|
|
12 |
import java.time.YearMonth;
|
|
|
13 |
import java.util.List;
|
| 29785 |
amit.gupta |
14 |
import java.util.Map;
|
| 27877 |
amit.gupta |
15 |
|
|
|
16 |
@Service
|
|
|
17 |
public interface OfferService {
|
|
|
18 |
void addOfferService(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
|
|
|
19 |
|
|
|
20 |
List<CreateOfferRequest> getPublishedOffers(int fofoId, YearMonth yearMonth);
|
|
|
21 |
|
| 29785 |
amit.gupta |
22 |
Map<Integer, CreateOfferRequest> getAllOffers(YearMonth yearMonth);
|
| 27877 |
amit.gupta |
23 |
|
| 29785 |
amit.gupta |
24 |
CreateOfferRequest getOffer(int fofoId, int offerId);
|
| 27877 |
amit.gupta |
25 |
|
| 31903 |
amit.gupta |
26 |
List<CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, int catalogId);
|
| 29684 |
amit.gupta |
27 |
|
| 31903 |
amit.gupta |
28 |
Map<Integer, CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, String brand);
|
| 29785 |
amit.gupta |
29 |
|
| 31903 |
amit.gupta |
30 |
void createOffers(InputStream inputStream) throws Exception;
|
| 29785 |
amit.gupta |
31 |
|
| 31903 |
amit.gupta |
32 |
Map<Integer, Map<Integer, Long>> getSlabPayoutMap(CreateOfferRequest createOfferRequest);
|
| 29902 |
amit.gupta |
33 |
|
| 31205 |
amit.gupta |
34 |
|
| 31903 |
amit.gupta |
35 |
Map<Integer, Map<Integer, AmountModel>> getSlabPayoutMapNew(CreateOfferRequest createOfferRequest);
|
|
|
36 |
|
|
|
37 |
CreateOfferRequest getCreateOfferRequest(Offer fromOffer);
|
|
|
38 |
|
|
|
39 |
void reverseAdditionalSelloutSchemes(int fofoId, List<InventoryItem> inventoryItems) throws ProfitMandiBusinessException;
|
| 31920 |
amit.gupta |
40 |
|
|
|
41 |
void processSellin(CreateOfferRequest createOfferRequest) throws Exception;
|
|
|
42 |
void processActivationtOffer(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
|
| 27877 |
amit.gupta |
43 |
}
|