org.broadleafcommerce.core.offer.service.discount.domain
Interface PromotableOrder

All Known Implementing Classes:
PromotableOrderImpl

public interface PromotableOrder


Method Summary
 void addCandidateOrderOffer(PromotableCandidateOrderOffer candidateOrderOffer)
           
 void addOrderAdjustments(PromotableOrderAdjustment orderAdjustment)
          Adds the adjustment to the order's adjustment list and discounts the order's adjustment price by the value of the adjustment.
 void assignOrderItemsFinalPrice()
           
 Money calculateOrderItemsCurrentPrice()
           
 Money calculateOrderItemsFinalPrice(boolean includeNonTaxableItems)
           
 Money calculateOrderItemsPriceWithoutAdjustments()
           
 boolean containsNotStackableFulfillmentGroupOffer()
           
 boolean containsNotStackableOrderOffer()
           
 Money getAdjustmentPrice()
          Returns the price of the order with the order offers applied (item offers are not applied).
 List<PromotableOrderItem> getAllSplitItems()
           
 List<BundleOrderItemSplitContainer> getBundleSplitItems()
           
 Customer getCustomer()
           
 Order getDelegate()
           
 List<PromotableOrderItem> getDiscountableDiscreteOrderItems()
           
 List<PromotableOrderItem> getDiscountableDiscreteOrderItems(boolean applyDiscountToSalePrice)
           
 List<PromotableOrderItem> getDiscreteOrderItems()
           
 List<PromotableFulfillmentGroup> getFulfillmentGroups()
           
 List<OrderMultishipOption> getMultiShipOptions()
           
 List<OrderItemSplitContainer> getSplitItems()
           
 Money getSubTotal()
           
 boolean isHasMultiShipOptions()
           
 boolean isHasOrderAdjustments()
           
 boolean isNotCombinableOfferApplied()
           
 boolean isNotCombinableOfferAppliedAtAnyLevel()
           
 boolean isTotalitarianOfferApplied()
           
 void removeAllAddedOfferCodes()
           
 void removeAllAdjustments()
          Removes all order, order item, and fulfillment adjustments from the order and resets the adjustment price.
 void removeAllCandidateFulfillmentGroupOffers()
           
 void removeAllCandidateOffers()
           
 void removeAllCandidateOrderOffers()
           
 void removeAllFulfillmentAdjustments()
           
 void removeAllItemAdjustments()
          Removes all adjustments from the order's order items and resets the adjustment price for each item.
 void removeAllOrderAdjustments()
          Removes all order adjustments from the order and resets the adjustment price.
 void resetDiscreteOrderItems()
           
 void resetFulfillmentGroups()
           
 void resetTotalitarianOfferApplied()
           
 List<BundleOrderItem> searchBundleSplitItems(BundleOrderItem key)
           
 List<PromotableOrderItem> searchSplitItems(PromotableOrderItem key)
           
 OrderItem searchSplitItemsForKey(OrderItem orderItem)
           
 void setAdjustmentPrice(Money adjustmentPrice)
           
 void setBundleSplitItems(List<BundleOrderItemSplitContainer> bundleSplitItems)
           
 void setHasMultiShipOptions(boolean hasMultiShipOptions)
           
 void setMultiShipOptions(List<OrderMultishipOption> multiShipOptions)
           
 void setNotCombinableOfferAppliedAtAnyLevel(boolean notCombinableOfferAppliedAtAnyLevel)
           
 void setSplitItems(List<OrderItemSplitContainer> splitItems)
           
 void setSubTotal(Money subTotal)
           
 void setTotalitarianOfferApplied(boolean totalitarianOfferApplied)
           
 void setTotalShipping(Money totalShipping)
           
 

Method Detail

isNotCombinableOfferAppliedAtAnyLevel

boolean isNotCombinableOfferAppliedAtAnyLevel()

isNotCombinableOfferApplied

boolean isNotCombinableOfferApplied()

resetTotalitarianOfferApplied

void resetTotalitarianOfferApplied()

addOrderAdjustments

void addOrderAdjustments(PromotableOrderAdjustment orderAdjustment)
Adds the adjustment to the order's adjustment list and discounts the order's adjustment price by the value of the adjustment.

Parameters:
orderAdjustment -

removeAllAdjustments

void removeAllAdjustments()
Removes all order, order item, and fulfillment adjustments from the order and resets the adjustment price.


removeAllOrderAdjustments

void removeAllOrderAdjustments()
Removes all order adjustments from the order and resets the adjustment price. This method does not remove order item or fulfillment adjustments from the order.


removeAllItemAdjustments

void removeAllItemAdjustments()
Removes all adjustments from the order's order items and resets the adjustment price for each item. This method does not remove order or fulfillment adjustments from the order.


removeAllFulfillmentAdjustments

void removeAllFulfillmentAdjustments()

getAdjustmentPrice

Money getAdjustmentPrice()
Returns the price of the order with the order offers applied (item offers are not applied).

Returns:
the order price with the order offers applied (item offers are not applied)

setAdjustmentPrice

void setAdjustmentPrice(Money adjustmentPrice)

isHasOrderAdjustments

boolean isHasOrderAdjustments()

isTotalitarianOfferApplied

boolean isTotalitarianOfferApplied()

setTotalitarianOfferApplied

void setTotalitarianOfferApplied(boolean totalitarianOfferApplied)

setNotCombinableOfferAppliedAtAnyLevel

void setNotCombinableOfferAppliedAtAnyLevel(boolean notCombinableOfferAppliedAtAnyLevel)

getSplitItems

List<OrderItemSplitContainer> getSplitItems()

setSplitItems

void setSplitItems(List<OrderItemSplitContainer> splitItems)

searchSplitItems

List<PromotableOrderItem> searchSplitItems(PromotableOrderItem key)

removeAllCandidateOffers

void removeAllCandidateOffers()

removeAllCandidateOrderOffers

void removeAllCandidateOrderOffers()

removeAllCandidateFulfillmentGroupOffers

void removeAllCandidateFulfillmentGroupOffers()

containsNotStackableOrderOffer

boolean containsNotStackableOrderOffer()

containsNotStackableFulfillmentGroupOffer

boolean containsNotStackableFulfillmentGroupOffer()

removeAllAddedOfferCodes

void removeAllAddedOfferCodes()

addCandidateOrderOffer

void addCandidateOrderOffer(PromotableCandidateOrderOffer candidateOrderOffer)

getDelegate

Order getDelegate()

calculateOrderItemsCurrentPrice

Money calculateOrderItemsCurrentPrice()

calculateOrderItemsPriceWithoutAdjustments

Money calculateOrderItemsPriceWithoutAdjustments()

getAllSplitItems

List<PromotableOrderItem> getAllSplitItems()

getDiscountableDiscreteOrderItems

List<PromotableOrderItem> getDiscountableDiscreteOrderItems()

getDiscountableDiscreteOrderItems

List<PromotableOrderItem> getDiscountableDiscreteOrderItems(boolean applyDiscountToSalePrice)

resetFulfillmentGroups

void resetFulfillmentGroups()

resetDiscreteOrderItems

void resetDiscreteOrderItems()

getSubTotal

Money getSubTotal()

getFulfillmentGroups

List<PromotableFulfillmentGroup> getFulfillmentGroups()

setTotalShipping

void setTotalShipping(Money totalShipping)

calculateOrderItemsFinalPrice

Money calculateOrderItemsFinalPrice(boolean includeNonTaxableItems)

setSubTotal

void setSubTotal(Money subTotal)

assignOrderItemsFinalPrice

void assignOrderItemsFinalPrice()

getCustomer

Customer getCustomer()

getDiscreteOrderItems

List<PromotableOrderItem> getDiscreteOrderItems()

getBundleSplitItems

List<BundleOrderItemSplitContainer> getBundleSplitItems()

setBundleSplitItems

void setBundleSplitItems(List<BundleOrderItemSplitContainer> bundleSplitItems)

searchBundleSplitItems

List<BundleOrderItem> searchBundleSplitItems(BundleOrderItem key)

searchSplitItemsForKey

OrderItem searchSplitItemsForKey(OrderItem orderItem)

getMultiShipOptions

List<OrderMultishipOption> getMultiShipOptions()

setMultiShipOptions

void setMultiShipOptions(List<OrderMultishipOption> multiShipOptions)

isHasMultiShipOptions

boolean isHasMultiShipOptions()

setHasMultiShipOptions

void setHasMultiShipOptions(boolean hasMultiShipOptions)


Copyright © 2013. All Rights Reserved.