Adds the item to the rule variables map.
Called by pricing engine to reset the state of this item.
Returns true if this item can receive item level discounts.
Returns true if this PromotableOrderItem contains other items
Returns an OrderItemContainer for this OrderItem or null if this item is not
an instance of OrderItemContainer.
Returns the salePrice without adjustments
Returns the retailPrice without adjustments
Returns true if the item has a sale price that is lower than the retail price.
Returns the list of priceDetails associated with this item.
Return the salePriceBeforeAdjustments if the passed in param is true.
Otherwise return the retailPriceBeforeAdjustments.
Returns the basePrice of the item (baseSalePrice or baseRetailPrice)
Returns the quantity for this orderItem
Returns the currency of the related order.
Effectively deletes all priceDetails associated with this item and r
Merges any priceDetails that share the same adjustments.
Returns the id of the contained OrderItem
Returns the value of all adjustments.
Returns the final total for this item taking into account the finalized
adjustments. Intended to be called after the adjustments have been
Returns the total for this item if not adjustments applied.
Creates a new detail with the associated quantity. Intended for use as part of the PriceDetail split.
Returns the underlying orderItem. Manipulation of the underlying orderItem is not recommended.
This method is intended for unit test and read only access although that is not strictly enforced.
Map available to implementations to store data needed for custom logic.