| 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 |
|
| 37244 |
amit |
17 |
void addDeal(int brandId, int catalogItemId, LocalDate startDate, LocalDate endDate,
|
|
|
18 |
HotDealAttributes attributes, String user) throws ProfitMandiBusinessException;
|
| 37211 |
amit |
19 |
|
| 37244 |
amit |
20 |
void updateDeal(int id, LocalDate startDate, LocalDate endDate,
|
|
|
21 |
HotDealAttributes attributes, String user) throws ProfitMandiBusinessException;
|
| 37211 |
amit |
22 |
|
|
|
23 |
void removeDeal(int id) throws ProfitMandiBusinessException;
|
|
|
24 |
}
|