Adds the adjustment to the item's adjustment list and discounts the
item's prices by the value of the adjustment.
Returns true if this detail has nonCombinable adjustments. Used primarily with legacy offers (prior to 2.0)
Returns true if a notCombinableOffer or totalitarian offer was applied to this priceDetail.
Returns true if a non-combinable offer has been applied to this item.
This method will check to see if the salePriceAdjustments or retailPriceAdjustments are better
and remove those that should not apply.
Removes all adjustments from this detail. Typically called when it has been determined
that another "totalitarian" offer has been applied.
Returns the promotion discounts applied to this detail object.
Returns the times this item is being used as a promotionQualifier
Returns the quantity associated with this priceDetail.
Sets the quantity for this price detail.
Return the parent promotableOrderItem
Returns the quantity of this item that can be used as a qualifier for the passed in itemOffer
Returns the quantity of this item that can be used as a target for the passed in itemOffer
Adds a promotionQualifier entry to this itemDetail. PromotionQualifiers record the fact that this item has been
marked to be used as a qualifier for other items to receive a discount.
If other conditions are met this qualifier will be finalized.
Adds a promotionDiscount entry to this itemDetail. PromotionDiscounts record the fact that this item has been
targeted to receive a discount. If other conditions are met this discount will be finalized so that it can
then be set on the underlying orderItem.
Returns the price to be used for this priceDetail taking into account whether or not the
sales price can be used.
Updates the target and qualifier quantities to indicate the number that are being used.
Clears target and qualifier quantities that were marked for a promotion that did not have
enough qualifiers or targets to get applied.
Creates a key that represents a unique priceDetail
Returns the final total for this item taking into account the finalized
adjustments. Intended to be called after the adjustments have been
finalized with a call
Returns the total adjustment value as the sum of the adjustments times the
quantity represented by this PriceDetail
Checks to see that the discount quantities match the target quantities. If not, splits this item
Returns true if the sale adjustments should be used.