Class CombinedTypesOfferPermutation
java.lang.Object
com.broadleafcommerce.promotion.offer.service.dto.CombinedTypesOfferPermutation
- All Implemented Interfaces:
Serializable
DTO containing a permutation for each offer type
- Author:
- Brian Polster (bpolster)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPermutation
(String targetType, Set<OffersPermutation> offersPermutations) void
initializeOrderTotals
(OrderTotals totals) Returns a copy of this object with a copy of all the contained permutation structures and a reinitialized totals object.void
setAllFulfillmentGroupPermutations
(Set<OffersPermutation> allFulfillmentGroupPermutations) void
setAllFulfillmentItemPermutations
(Set<OffersPermutation> allFulfillmentItemPermutations) void
setAllItemPermutations
(Set<OffersPermutation> allItemPermutations) void
setAllOrderPermutations
(Set<OffersPermutation> allOrderPermutations) void
setAllVoucherPermutations
(Set<OffersPermutation> allVoucherPermutations) void
setBestVoucherOfferPermutation
(OffersPermutation bestVoucherOfferPermutation) void
void
void
updateBestOrderItemPermutation
(ItemOfferPermutationResult permutation) void
updateBestOrderItemPermutation
(ItemOfferPermutationResult oldPermutation, ItemOfferPermutationResult newPermutation) This method is intended to be used to replace an ItemPermutation with another where certain LineItemOfferDetails have been replaced.void
-
Constructor Details
-
CombinedTypesOfferPermutation
public CombinedTypesOfferPermutation()
-
-
Method Details
-
initializeOrderTotals
-
addPermutation
-
getBestOrderOfferPermutation
-
getBestItemOfferPermutation
-
getBestFulfillmentGroupOfferPermutation
-
getBestFulfillmentItemOfferPermutation
-
getBestVoucherOfferPermutation
-
getAllOrderPermutations
-
getAllItemPermutations
-
getAllFulfillmentGroupPermutations
-
getAllFulfillmentItemPermutations
-
getAllVoucherPermutations
-
updateBestOrderItemPermutation
-
updateBestOrderItemPermutation
public void updateBestOrderItemPermutation(ItemOfferPermutationResult oldPermutation, ItemOfferPermutationResult newPermutation) This method is intended to be used to replace an ItemPermutation with another where certain LineItemOfferDetails have been replaced.- Parameters:
oldPermutation
-newPermutation
-
-
updateBestOrderOfferPermutation
-
updateBestFulfillmentItemPermutation
-
updateBestFulfillmentGroupPermutation
public void updateBestFulfillmentGroupPermutation(FulfillmentGroupOfferPermutationResult permutation) -
partialCopy
Returns a copy of this object with a copy of all the contained permutation structures and a reinitialized totals object. Intended for use to be used to handle edge cases that are slight variances to an existing permutation run. For an example, seeDefaultOfferApplicationService.processItemOfferEdgeCases(OfferProcessingContext)
.- Returns:
-
setBestVoucherOfferPermutation
-
setAllOrderPermutations
-
setAllItemPermutations
-
setAllFulfillmentGroupPermutations
public void setAllFulfillmentGroupPermutations(Set<OffersPermutation> allFulfillmentGroupPermutations) -
setAllFulfillmentItemPermutations
public void setAllFulfillmentItemPermutations(Set<OffersPermutation> allFulfillmentItemPermutations) -
setAllVoucherPermutations
-
getOrderTotals
-
getInitialOrderTotals
-