Rev 22859 | Rev 23365 | 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 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;@Servicepublic 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 float processSchemeIn(int purchaseId, int retailerId) throws ProfitMandiBusinessException;public float processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException;}