Interface ItemOfferProcessor
- All Known Implementing Classes:
DefaultItemOfferProcessor
public interface ItemOfferProcessor
A service for calculating, determining, and applying the best
order item
offers.- Author:
- Chad Harchar (charchar), Brian Polster (bpolster)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyItemAdjustments
(OfferProcessingContext context, ItemOfferPermutationResult result) For item processing, the adjustments are stored onLineItemOfferDetail
records.void
findBestItemOffersForPermutation
(OfferProcessingContext context, CombinedTypesOfferPermutation combinedPermutation) void
prepareForItemOfferProcessing
(EnhancedOrder order, List<CandidateItemOffer> candidateItemOffers) Item offer processing can benefit from setup activities that are used by all of the permutations.
-
Method Details
-
prepareForItemOfferProcessing
void prepareForItemOfferProcessing(EnhancedOrder order, List<CandidateItemOffer> candidateItemOffers) Item offer processing can benefit from setup activities that are used by all of the permutations. Most notably, finding the maximum savings for a given offer which can be used to prioritize the order in which offers are attempted within a cart.- Parameters:
order
-candidateItemOffers
-
-
findBestItemOffersForPermutation
void findBestItemOffersForPermutation(OfferProcessingContext context, CombinedTypesOfferPermutation combinedPermutation) -
applyItemAdjustments
For item processing, the adjustments are stored onLineItemOfferDetail
records. These detail records are stored in theItemOfferPermutationResult.getLineItemDetailMap()
- Parameters:
context
-result
-
-