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