Subversion Repositories SmartDukaan

Rev

Rev 33999 | Rev 35394 | 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;
33999 tejus.loha 8
import org.apache.commons.io.output.ByteArrayOutputStream;
30274 amit.gupta 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
 
33247 ranu 21
    List<CreateOfferRequest> getPublishedOffers(int fofoId, YearMonth yearMonth) throws ProfitMandiBusinessException;
27877 amit.gupta 22
 
33247 ranu 23
    Map<Integer, CreateOfferRequest> getAllOffers(YearMonth yearMonth) throws ProfitMandiBusinessException;
27877 amit.gupta 24
 
33247 ranu 25
    CreateOfferRequest getOffer(int fofoId, int offerId) throws ProfitMandiBusinessException;
27877 amit.gupta 26
 
33247 ranu 27
    List<CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, int catalogId) throws ProfitMandiBusinessException;
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
 
33247 ranu 33
    Map<Integer, Map<Integer, Long>> getSlabPayoutMap(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
29902 amit.gupta 34
 
31205 amit.gupta 35
 
31903 amit.gupta 36
    Map<Integer, Map<Integer, AmountModel>> getSlabPayoutMapNew(CreateOfferRequest createOfferRequest);
37
 
33247 ranu 38
    CreateOfferRequest getCreateOfferRequest(Offer fromOffer) throws ProfitMandiBusinessException;
31903 amit.gupta 39
 
33613 amit.gupta 40
    void reverseAdditionalSelloutSchemes(List<InventoryItem> inventoryItems, String reversalReason) throws ProfitMandiBusinessException;
31920 amit.gupta 41
 
42
    void processSellin(CreateOfferRequest createOfferRequest) throws Exception;
43
    void processActivationtOffer(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
33030 amit.gupta 44
 
33247 ranu 45
    String getPartnerCriteriaString(PartnerCriteria partnerCriteria) throws ProfitMandiBusinessException;
33999 tejus.loha 46
 
47
    ByteArrayOutputStream createCSVOfferReport(CreateOfferRequest createOfferRequest) throws Exception;
35205 amit 48
 
49
    void sendWhatsapp(Offer offer, List<Integer> fofoIds, String imageUrl) throws Exception;
27877 amit.gupta 50
}