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 TypeMethodDescriptionboolean
isCriteriaMatched
(@NonNull EnhancedLineItem item, @NonNull ItemCriteria criteria) Determines whether theEnhancedLineItem
matches theItemCriteria
.
-
Method Details
-
isCriteriaMatched
boolean isCriteriaMatched(@NonNull @NonNull EnhancedLineItem item, @NonNull @NonNull ItemCriteria criteria) Determines whether theEnhancedLineItem
matches theItemCriteria
. Since there's no order yet, usually, this will only check theItemCriteriaRule#getRule()
rule expression} for eachrule
and not thenumber of matches required
.- Parameters:
item
- Item to determine whether it matches the criteriacriteria
- Criteria to match- Returns:
- Whether
item
matchescriteria
.
-