Subversion Repositories SmartDukaan

Rev

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