Rev 31205 | Rev 31920 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.service.offers;import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;import com.spice.profitmandi.dao.entity.catalog.Offer;import com.spice.profitmandi.dao.entity.fofo.InventoryItem;import com.spice.profitmandi.dao.model.AmountModel;import com.spice.profitmandi.dao.model.CreateOfferRequest;import org.springframework.stereotype.Service;import java.io.InputStream;import java.time.LocalDate;import java.time.YearMonth;import java.util.List;import java.util.Map;@Servicepublic interface OfferService {void addOfferService(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;List<CreateOfferRequest> getPublishedOffers(int fofoId, YearMonth yearMonth);Map<Integer, CreateOfferRequest> getAllOffers(YearMonth yearMonth);CreateOfferRequest getOffer(int fofoId, int offerId);List<CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, int catalogId);Map<Integer, CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, String brand);void createOffers(InputStream inputStream) throws Exception;Map<Integer, Map<Integer, Long>> getSlabPayoutMap(CreateOfferRequest createOfferRequest);Map<Integer, Map<Integer, AmountModel>> getSlabPayoutMapNew(CreateOfferRequest createOfferRequest);CreateOfferRequest getCreateOfferRequest(Offer fromOffer);void reverseAdditionalSelloutSchemes(int fofoId, List<InventoryItem> inventoryItems) throws ProfitMandiBusinessException;}