Interface OfferApplicationService
-
- All Known Implementing Classes:
DefaultOfferApplicationService
public interface OfferApplicationServiceThis service adds adjustments to the order- Author:
- Chad Harchar (charchar)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EnhancedOrderapplyAdjustments(OfferProcessingContext context)Applies the adjustments to the EnhancedOrder and returns the order with adjustments applied and totals updated.voidprocessOfferPermutations(OfferProcessingContext context)Calculates the value of each offer permutation and determines the best combination of all offer types.
-
-
-
Method Detail
-
processOfferPermutations
void processOfferPermutations(OfferProcessingContext context)
Calculates the value of each offer permutation and determines the best combination of all offer types. Updates theOfferProcessingContext.setBestOfferPermutation(com.broadleafcommerce.promotion.offer.service.dto.CombinedTypesOfferPermutation)with the results of the offers to apply.- Parameters:
context-
-
applyAdjustments
EnhancedOrder applyAdjustments(OfferProcessingContext context)
Applies the adjustments to the EnhancedOrder and returns the order with adjustments applied and totals updated.- Parameters:
context- Context containing the adjustments that were computed in the previously calledprocessOfferPermutations(OfferProcessingContext)method.- Returns:
- The order with its adjustments and totals updated
-
-