Interface MarketingMessageOfferCandidateService<P extends Offer>
- All Known Implementing Classes:
DefaultMarketingMessageOfferCandidateService
public interface MarketingMessageOfferCandidateService<P extends Offer>
This service is responsible for finding all the active
Offers related to a
EnhancedLineItem in order to provide the ItemMarketingMessageResolver to retrieve
every relevant MarketingMessage.- Author:
- Samarth Dhruva (samarthd)
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisCriteriaMatched(@NonNull EnhancedLineItem item, @NonNull ItemCriteria criteria) Determines whether theEnhancedLineItemmatches theItemCriteria.
-
Method Details
-
isCriteriaMatched
boolean isCriteriaMatched(@NonNull @NonNull EnhancedLineItem item, @NonNull @NonNull ItemCriteria criteria) Determines whether theEnhancedLineItemmatches theItemCriteria. Since there's no order yet, usually, this will only check theItemCriteriaRule#getRule()rule expression} for eachruleand not thenumber of matches required.- Parameters:
item- Item to determine whether it matches the criteriacriteria- Criteria to match- Returns:
- Whether
itemmatchescriteria.
-