Subversion Repositories SmartDukaan

Rev

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

Rev 36103 Rev 36305
Line 12... Line 12...
12
import java.io.InputStream;
12
import java.io.InputStream;
13
import java.time.LocalDate;
13
import java.time.LocalDate;
14
import java.time.YearMonth;
14
import java.time.YearMonth;
15
import java.util.List;
15
import java.util.List;
16
import java.util.Map;
16
import java.util.Map;
-
 
17
import java.util.LinkedHashMap;
17
 
18
 
18
@Service
19
@Service
19
public interface OfferService {
20
public interface OfferService {
20
	void evictOfferCaches(int offerId);
21
	void evictOfferCaches(int offerId);
21
 
22
 
Line 52... Line 53...
52
 
53
 
53
    Map<Integer, QtyAmountModel> getCriteriaQtyAmounModelMap(CreateOfferRequest createOfferRequest, int fofoId) throws ProfitMandiBusinessException;
54
    Map<Integer, QtyAmountModel> getCriteriaQtyAmounModelMap(CreateOfferRequest createOfferRequest, int fofoId) throws ProfitMandiBusinessException;
54
 
55
 
55
    void processActivationtOffer(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
56
    void processActivationtOffer(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
56
 
57
 
-
 
58
    /**
-
 
59
     * Read-only calculation of offer payouts per partner. Returns a list of payout data
-
 
60
     * without persisting anything. Used by batch processing to separate read from write.
-
 
61
     */
-
 
62
    List<OfferPartnerPayoutData> calculateOfferPayouts(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
-
 
63
 
-
 
64
    List<SellinPartnerPayoutData> calculateSellinPayouts(CreateOfferRequest createOfferRequest) throws Exception;
-
 
65
 
57
    String getPartnerCriteriaString(PartnerCriteria partnerCriteria) throws ProfitMandiBusinessException;
66
    String getPartnerCriteriaString(PartnerCriteria partnerCriteria) throws ProfitMandiBusinessException;
58
 
67
 
59
    ByteArrayOutputStream createCSVOfferReport(CreateOfferRequest createOfferRequest) throws Exception;
68
    ByteArrayOutputStream createCSVOfferReport(CreateOfferRequest createOfferRequest) throws Exception;
60
 
69
 
61
    void sendWhatsapp(Offer offer, List<Integer> fofoIds, String imageUrl) throws Exception;
70
    void sendWhatsapp(Offer offer, List<Integer> fofoIds, String imageUrl) throws Exception;