Executes the appliesToOrderRules in the Offer to determine if this offer
can be applied to the Order, OrderItem, or FulfillmentGroup.
- true if offer can be applied, otherwise false
Takes a list of sorted CandidateOrderOffers and determines if each offer can be
applied based on the restrictions (stackable and/or combinable) on that offer. OrderAdjustments
are create on the Order for each applied CandidateOrderOffer. An offer with stackable equals false
cannot be applied to an Order that already contains an OrderAdjustment. An offer with combinable
equals false cannot be applied to the Order if the Order already contains an OrderAdjustment.
orderOffers a sorted list of CandidateOrderOffer
order the Order to apply the CandidateOrderOffers
Takes the adjustments and PriceDetails from the passed in PromotableOrder and transfers them to the
actual order first checking to see if they already exist.
Set the offerDao (primarily for unit testing)
Set the orderItemDao (primarily for unit testing)