public interface PromotableOrder extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
addCandidateOrderAdjustment(PromotableOrderAdjustment orderAdjustment)
Adds the adjustment to the order's adjustment list and discounts the
order's adjustment price by the value of the adjustment.
|
Money |
calculateItemAdjustmentTotal()
Calculates the total adjustment to be received from the item adjustments.
|
Money |
calculateOrderAdjustmentTotal()
Calculates the total adjustment to be received from the order adjustments.
|
Money |
calculateSubtotalWithAdjustments()
Returns the price of the order with adjustments.
|
Money |
calculateSubtotalWithoutAdjustments()
Returns the price of the order without adjustments.
|
boolean |
canApplyOrderOffer(PromotableCandidateOrderOffer offer)
Returns true if this order can apply another order promotion.
|
List<PromotableOrderItem> |
getAllOrderItems()
Returns all OrderItems for the order wrapped with PromotableOrderItem
|
List<PromotableOrderItemPriceDetail> |
getAllPromotableOrderItemPriceDetails()
Returns all of the price detail items for this order.
|
List<PromotableOrderAdjustment> |
getCandidateOrderAdjustments()
Returns the list of orderAdjustments being proposed for the order.
|
List<PromotableOrderItem> |
getDiscountableOrderItems()
Returns all OrderItems that can receive discounts.
|
List<PromotableOrderItem> |
getDiscountableOrderItems(boolean sortBySalePrice)
Returns all OrderItems that can receive discounts.
|
Map<String,Object> |
getExtraDataMap()
Map available to implementations to store data needed for custom logic.
|
List<PromotableFulfillmentGroup> |
getFulfillmentGroups()
Returns the fulfillmentGroups associated with the order after converting them to
promotableFulfillmentGroups.
|
Order |
getOrder()
Returns the associated order.
|
BroadleafCurrency |
getOrderCurrency()
Returns the
BroadleafCurrency for the current order. |
boolean |
isHasOrderAdjustments()
Returns true if this promotableOrder has any order adjustments.
|
boolean |
isIncludeOrderAndItemAdjustments()
Returns true if this order was created in a way that existing order and item adjustments
were copied over to this item.
|
boolean |
isTotalitarianFgOfferApplied() |
boolean |
isTotalitarianItemOfferApplied() |
boolean |
isTotalitarianOfferApplied()
Returns true if a totalitarian offer has been applied.
|
boolean |
isTotalitarianOrderOfferApplied() |
void |
removeAllCandidateFulfillmentOfferAdjustments()
Removes all adjustments from the order's fulfillment items and resets the
adjustment price for each item.
|
void |
removeAllCandidateItemOfferAdjustments()
Removes all adjustments from the order's order items and resets the
adjustment price for each item.
|
void |
removeAllCandidateOfferAdjustments()
Removes all order, order item, and fulfillment adjustments from the order
and resets the adjustment price.
|
void |
removeAllCandidateOrderOfferAdjustments()
Removes all order adjustments from the order and resets the adjustment
price.
|
void |
setOrderSubTotalToPriceWithAdjustments()
Sets the order subTotal to the sum of item total prices without
adjustments.
|
void |
setOrderSubTotalToPriceWithoutAdjustments()
Sets the order subTotal to the sum of item total prices without
adjustments.
|
void |
setTotalFufillmentCharges(Money totalFulfillmentCharges)
Sets the total fulfillmentCharges the order.
|
void |
updateRuleVariables(Map<String,Object> ruleVars)
Adds the underlying order to the rule variable map.
|
void setOrderSubTotalToPriceWithoutAdjustments()
void setOrderSubTotalToPriceWithAdjustments()
List<PromotableOrderItem> getAllOrderItems()
List<PromotableOrderItem> getDiscountableOrderItems(boolean sortBySalePrice)
sortBySalePrice - List<PromotableOrderItem> getDiscountableOrderItems()
applyDiscountToSalePrice - List<PromotableFulfillmentGroup> getFulfillmentGroups()
boolean isHasOrderAdjustments()
List<PromotableOrderAdjustment> getCandidateOrderAdjustments()
void addCandidateOrderAdjustment(PromotableOrderAdjustment orderAdjustment)
orderAdjustment - void removeAllCandidateOfferAdjustments()
void removeAllCandidateOrderOfferAdjustments()
void removeAllCandidateItemOfferAdjustments()
void removeAllCandidateFulfillmentOfferAdjustments()
void updateRuleVariables(Map<String,Object> ruleVars)
Order getOrder()
boolean isTotalitarianOfferApplied()
Money calculateOrderAdjustmentTotal()
Money calculateItemAdjustmentTotal()
List<PromotableOrderItemPriceDetail> getAllPromotableOrderItemPriceDetails()
boolean canApplyOrderOffer(PromotableCandidateOrderOffer offer)
BroadleafCurrency getOrderCurrency()
BroadleafCurrency for the current order.void setTotalFufillmentCharges(Money totalFulfillmentCharges)
totalFulfillmentCharges - Money calculateSubtotalWithoutAdjustments()
Money calculateSubtotalWithAdjustments()
boolean isIncludeOrderAndItemAdjustments()
boolean isTotalitarianOrderOfferApplied()
boolean isTotalitarianItemOfferApplied()
boolean isTotalitarianFgOfferApplied()
Copyright © 2015. All Rights Reserved.