Subversion Repositories SmartDukaan

Rev

Rev 33030 | Rev 33613 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
 
33247 ranu 20
    List<CreateOfferRequest> getPublishedOffers(int fofoId, YearMonth yearMonth) throws ProfitMandiBusinessException;
27877 amit.gupta 21
 
33247 ranu 22
    Map<Integer, CreateOfferRequest> getAllOffers(YearMonth yearMonth) throws ProfitMandiBusinessException;
27877 amit.gupta 23
 
33247 ranu 24
    CreateOfferRequest getOffer(int fofoId, int offerId) throws ProfitMandiBusinessException;
27877 amit.gupta 25
 
33247 ranu 26
    List<CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, int catalogId) throws ProfitMandiBusinessException;
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
 
33247 ranu 32
    Map<Integer, Map<Integer, Long>> getSlabPayoutMap(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
29902 amit.gupta 33
 
31205 amit.gupta 34
 
31903 amit.gupta 35
    Map<Integer, Map<Integer, AmountModel>> getSlabPayoutMapNew(CreateOfferRequest createOfferRequest);
36
 
33247 ranu 37
    CreateOfferRequest getCreateOfferRequest(Offer fromOffer) throws ProfitMandiBusinessException;
31903 amit.gupta 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;
33030 amit.gupta 43
 
33247 ranu 44
    String getPartnerCriteriaString(PartnerCriteria partnerCriteria) throws ProfitMandiBusinessException;
27877 amit.gupta 45
}