Interface QualifierAndTargetMarker
- All Known Implementing Classes:
DefaultQualifierAndTargetMarker
public interface QualifierAndTargetMarker
This service is responsible for marking
an order's order
items
as either targets or qualifiers for a given CandidateItemOffer
. This process will
generate LineItemOfferDetails
for each EnhancedLineItem
to
keep track of applicable Offers
and their discounts.- Author:
- Nathan Moore (nathanmoore).
-
Method Summary
Modifier and TypeMethodDescriptionvoid
markQualifiersAndTargets
(EnhancedOrder order, CandidateItemOffer itemOffer, boolean isForFulfillment) MarksEnhancedOrder.getOrderLineItems()
as either targets or qualifiers for a givenCandidateItemOffer
.
-
Method Details
-
markQualifiersAndTargets
void markQualifiersAndTargets(@NonNull EnhancedOrder order, @NonNull CandidateItemOffer itemOffer, boolean isForFulfillment) MarksEnhancedOrder.getOrderLineItems()
as either targets or qualifiers for a givenCandidateItemOffer
. This will generateLineItemOfferDetails
for eachEnhancedLineItem
to keep track of applicableOffers
and their discounts.- Parameters:
order
- TheEnhancedOrder
whose items are to be marked as qualifiers or targets for the givenCandidateItemOffer
itemOffer
- TheCandidateItemOffer
for which to mark targets and qualifiersisForFulfillment
- whether this calculation should useEnhancedOrder.getFulfillmentLineItems()
instead ofEnhancedOrder.getOrderLineItems()
-