Subversion Repositories SmartDukaan

Rev

Rev 29902 | Rev 31205 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 29902 Rev 30274
Line 1... Line 1...
1
package com.spice.profitmandi.service.offers;
1
package com.spice.profitmandi.service.offers;
2
 
2
 
-
 
3
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
-
 
4
import com.spice.profitmandi.dao.entity.catalog.Offer;
-
 
5
import com.spice.profitmandi.dao.model.CreateOfferRequest;
-
 
6
import org.springframework.stereotype.Service;
-
 
7
 
3
import java.io.InputStream;
8
import java.io.InputStream;
4
import java.time.LocalDate;
9
import java.time.LocalDate;
5
import java.time.YearMonth;
10
import java.time.YearMonth;
6
import java.util.List;
11
import java.util.List;
7
import java.util.Map;
12
import java.util.Map;
8
 
13
 
9
import org.springframework.stereotype.Service;
-
 
10
 
-
 
11
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
-
 
12
import com.spice.profitmandi.dao.entity.catalog.Offer;
-
 
13
import com.spice.profitmandi.dao.model.CreateOfferRequest;
-
 
14
 
-
 
15
@Service
14
@Service
16
public interface OfferService {
15
public interface OfferService {
17
	void addOfferService(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
16
	void addOfferService(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
18
 
17
 
19
    List<CreateOfferRequest> getPublishedOffers(int fofoId, YearMonth yearMonth);
18
    List<CreateOfferRequest> getPublishedOffers(int fofoId, YearMonth yearMonth);
20
 
19
 
21
    Map<Integer, CreateOfferRequest> getAllOffers(YearMonth yearMonth);
20
    Map<Integer, CreateOfferRequest> getAllOffers(YearMonth yearMonth);
22
 
21
 
23
    CreateOfferRequest getOffer(int fofoId, int offerId);
22
    CreateOfferRequest getOffer(int fofoId, int offerId);
24
 
23
 
25
	List<CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, int itemId);
24
	List<CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, int catalogId);
26
 
25
 
27
	Map<Integer, CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, String brand);
26
	Map<Integer, CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, String brand);
28
 
27
 
29
	void createOffers(InputStream inputStream) throws Exception;
28
	void createOffers(InputStream inputStream) throws Exception;
30
 
29