Subversion Repositories SmartDukaan

Rev

Rev 37244 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
37211 amit 1
package com.spice.profitmandi.service.catalog;
2
 
3
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
4
import com.spice.profitmandi.dao.entity.catalog.ModelHotDeal;
5
 
6
import java.time.LocalDate;
7
import java.util.List;
8
 
9
public interface ModelHotDealService {
10
 
11
    int MAX_ACTIVE_DEALS_PER_BRAND = 15;
12
 
13
    List<ModelHotDeal> getDealsForBrand(int brandId);
14
 
15
    long countActive(int brandId);
16
 
17
    void addDeal(int brandId, int catalogItemId, LocalDate startDate, LocalDate endDate, String user)
18
            throws ProfitMandiBusinessException;
19
 
20
    void updateDates(int id, LocalDate startDate, LocalDate endDate, String user)
21
            throws ProfitMandiBusinessException;
22
 
23
    void removeDeal(int id) throws ProfitMandiBusinessException;
24
}