Interface OfferApplicationService
- All Known Implementing Classes:
DefaultOfferApplicationService
public interface OfferApplicationService
This service adds adjustments to the order
- Author:
- Chad Harchar (charchar)
-
Method Summary
Modifier and TypeMethodDescriptionapplyAdjustments
(OfferProcessingContext context) Applies the adjustments to the EnhancedOrder and returns the order with adjustments applied and totals updated.void
Calculates the value of each offer permutation and determines the best combination of all offer types.
-
Method Details
-
processOfferPermutations
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
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
-