Subversion Repositories SmartDukaan

Rev

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

Rev 31205 Rev 31903
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.dao.entity.catalog.Offer;
4
import com.spice.profitmandi.dao.entity.catalog.Offer;
5
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
5
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
-
 
6
import com.spice.profitmandi.dao.model.AmountModel;
6
import com.spice.profitmandi.dao.model.CreateOfferRequest;
7
import com.spice.profitmandi.dao.model.CreateOfferRequest;
7
import org.springframework.stereotype.Service;
8
import org.springframework.stereotype.Service;
8
 
9
 
9
import java.io.InputStream;
10
import java.io.InputStream;
10
import java.time.LocalDate;
11
import java.time.LocalDate;
Line 20... Line 21...
20
 
21
 
21
    Map<Integer, CreateOfferRequest> getAllOffers(YearMonth yearMonth);
22
    Map<Integer, CreateOfferRequest> getAllOffers(YearMonth yearMonth);
22
 
23
 
23
    CreateOfferRequest getOffer(int fofoId, int offerId);
24
    CreateOfferRequest getOffer(int fofoId, int offerId);
24
 
25
 
25
	List<CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, int catalogId);
26
    List<CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, int catalogId);
26
 
27
 
27
	Map<Integer, CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, String brand);
28
    Map<Integer, CreateOfferRequest> getPublishedOffers(LocalDate date, int fofoId, String brand);
28
 
29
 
29
	void createOffers(InputStream inputStream) throws Exception;
30
    void createOffers(InputStream inputStream) throws Exception;
30
 
31
 
31
	Map<Integer, Map<Integer, Long>> getSlabPayoutMap(CreateOfferRequest createOfferRequest);
32
    Map<Integer, Map<Integer, Long>> getSlabPayoutMap(CreateOfferRequest createOfferRequest);
32
 
33
 
33
	CreateOfferRequest getCreateOfferRequest(Offer fromOffer);
-
 
34
 
34
 
-
 
35
    Map<Integer, Map<Integer, AmountModel>> getSlabPayoutMapNew(CreateOfferRequest createOfferRequest);
-
 
36
 
-
 
37
    CreateOfferRequest getCreateOfferRequest(Offer fromOffer);
-
 
38
 
35
	void reverseAdditionalSelloutSchemes(int fofoId, List<InventoryItem> inventoryItems) throws ProfitMandiBusinessException;
39
    void reverseAdditionalSelloutSchemes(int fofoId, List<InventoryItem> inventoryItems) throws ProfitMandiBusinessException;
36
}
40
}