Subversion Repositories SmartDukaan

Rev

Rev 23638 | Rev 23781 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.service.scheme;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.common.model.CreateSchemeRequest;
import com.spice.profitmandi.common.model.SchemeModel;
import com.spice.profitmandi.dao.entity.catalog.Scheme;

@Service
public interface SchemeService {
        public void saveScheme(int creatorId, CreateSchemeRequest createSchemeRequest) throws ProfitMandiBusinessException;
        public Scheme getSchemeById(int schemeId) throws ProfitMandiBusinessException;
        public List<SchemeModel> getAllSchemeModels(LocalDateTime startDateTime, LocalDateTime endDateTime);
        public void activeSchemeById(int schemeId) throws ProfitMandiBusinessException;
        public void expireSchemeById(int schemeId) throws ProfitMandiBusinessException;
        public void processSchemeIn(int purchaseId, int retailerId) throws ProfitMandiBusinessException;
        public void processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;
//      public void rollbackSchemeForInventoryItemId(int inventoryItemId);
        public void rollbackSchemes(List<Integer> inventoryItemIds, int rollbackReference, String rollbackReason) throws Exception;
}