Subversion Repositories SmartDukaan

Rev

Rev 33030 | Rev 33613 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33030 Rev 33247
Line 1... Line 1...
1
package com.spice.profitmandi.service.offers;
1
package com.spice.profitmandi.service.offers;
2
 
2
 
3
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
3
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
4
import com.spice.profitmandi.common.model.CustomRetailer;
-
 
5
import com.spice.profitmandi.dao.entity.catalog.Offer;
4
import com.spice.profitmandi.dao.entity.catalog.Offer;
6
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
5
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
7
import com.spice.profitmandi.dao.model.AmountModel;
6
import com.spice.profitmandi.dao.model.AmountModel;
8
import com.spice.profitmandi.dao.model.CreateOfferRequest;
7
import com.spice.profitmandi.dao.model.CreateOfferRequest;
9
import org.springframework.stereotype.Service;
8
import org.springframework.stereotype.Service;
Line 16... Line 15...
16
 
15
 
17
@Service
16
@Service
18
public interface OfferService {
17
public interface OfferService {
19
	void addOfferService(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
18
	void addOfferService(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
20
 
19
 
21
    List<CreateOfferRequest> getPublishedOffers(int fofoId, YearMonth yearMonth);
20
    List<CreateOfferRequest> getPublishedOffers(int fofoId, YearMonth yearMonth) throws ProfitMandiBusinessException;
22
 
21
 
23
    Map<Integer, CreateOfferRequest> getAllOffers(YearMonth yearMonth);
22
    Map<Integer, CreateOfferRequest> getAllOffers(YearMonth yearMonth) throws ProfitMandiBusinessException;
24
 
23
 
25
    CreateOfferRequest getOffer(int fofoId, int offerId);
24
    CreateOfferRequest getOffer(int fofoId, int offerId) throws ProfitMandiBusinessException;
26
 
25
 
27
    List<CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, int catalogId);
26
    List<CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, int catalogId) throws ProfitMandiBusinessException;
28
 
27
 
29
    Map<Integer, CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, String brand);
28
    Map<Integer, CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, String brand);
30
 
29
 
31
    void createOffers(InputStream inputStream) throws Exception;
30
    void createOffers(InputStream inputStream) throws Exception;
32
 
31
 
33
    Map<Integer, Map<Integer, Long>> getSlabPayoutMap(CreateOfferRequest createOfferRequest);
32
    Map<Integer, Map<Integer, Long>> getSlabPayoutMap(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
34
 
33
 
35
 
34
 
36
    Map<Integer, Map<Integer, AmountModel>> getSlabPayoutMapNew(CreateOfferRequest createOfferRequest);
35
    Map<Integer, Map<Integer, AmountModel>> getSlabPayoutMapNew(CreateOfferRequest createOfferRequest);
37
 
36
 
38
    CreateOfferRequest getCreateOfferRequest(Offer fromOffer);
37
    CreateOfferRequest getCreateOfferRequest(Offer fromOffer) throws ProfitMandiBusinessException;
39
 
38
 
40
    void reverseAdditionalSelloutSchemes(int fofoId, List<InventoryItem> inventoryItems) throws ProfitMandiBusinessException;
39
    void reverseAdditionalSelloutSchemes(int fofoId, List<InventoryItem> inventoryItems) throws ProfitMandiBusinessException;
41
 
40
 
42
    void processSellin(CreateOfferRequest createOfferRequest) throws Exception;
41
    void processSellin(CreateOfferRequest createOfferRequest) throws Exception;
43
    void processActivationtOffer(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
42
    void processActivationtOffer(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
44
 
43
 
45
    String getPartnerCriteriaString(PartnerCriteria partnerCriteria);
44
    String getPartnerCriteriaString(PartnerCriteria partnerCriteria) throws ProfitMandiBusinessException;
46
}
45
}