Subversion Repositories SmartDukaan

Rev

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