Subversion Repositories SmartDukaan

Rev

Rev 37244 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.service.catalog;

import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.dao.entity.catalog.ModelHotDeal;

import java.time.LocalDate;
import java.util.List;

public interface ModelHotDealService {

    int MAX_ACTIVE_DEALS_PER_BRAND = 15;

    List<ModelHotDeal> getDealsForBrand(int brandId);

    long countActive(int brandId);

    void addDeal(int brandId, int catalogItemId, LocalDate startDate, LocalDate endDate, String user)
            throws ProfitMandiBusinessException;

    void updateDates(int id, LocalDate startDate, LocalDate endDate, String user)
            throws ProfitMandiBusinessException;

    void removeDeal(int id) throws ProfitMandiBusinessException;
}