com.retek.component.customerorder.impl.command
Class CustomerOrderApplyPromotionsHelper

java.lang.Object
  extended bycom.retek.component.customerorder.impl.command.CustomerOrderApplyPromotionsHelper

public class CustomerOrderApplyPromotionsHelper
extends java.lang.Object

Class providing utilities and computations for applying promotions.


Constructor Summary
CustomerOrderApplyPromotionsHelper(CustomerOrderImpl order)
           
 
Method Summary
 void applyNewPromotionDiscount(PromotionDiscountable promotionDiscountable, CustomerOrderPromotionDiscountImpl discount)
           
 java.util.List getAppliedPromotionDiscounts(PromotionDiscountable promotionDiscountable)
           
 Money getExtendedAdditionalShippingChargeLessDiscountsForOrderLine(CustomerOrderLineImpl orderLine)
           
 Money getExtendedPriceLessDiscountsForOrderLine(CustomerOrderLineImpl orderLine)
           
 Money getExtendedPriceLessDiscountsForServiceLine(CustomerOrderServiceLineImpl serviceLine)
           
 PromotionThreshold getQualifyingThreshold(Promotion promotion)
           
 Money getTotalExtendedItemPriceLessDiscounts(Promotion promotion, ThresholdableItem thresholdableItem)
           
 Money getTotalSaleExtendedPrice(Promotion promotion)
           
 Money getTotalStandardShippingChargeLessDiscounts(CustomerOrderImpl order)
           
 java.util.List getUnappliedLockedPromotionDiscounts(PromotionDiscountable promotionDiscountable, Promotion promotion)
           
 boolean isApplicable(Promotion promotion)
           
 void reapplyLockedPromotionDiscount(CustomerOrderPromotionDiscountImpl discount)
           
 void setUnappliedLockedPromotionDiscounts(java.util.List promotionDiscounts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerOrderApplyPromotionsHelper

public CustomerOrderApplyPromotionsHelper(CustomerOrderImpl order)
Method Detail

isApplicable

public boolean isApplicable(Promotion promotion)
                     throws SystemException
Throws:
SystemException

getQualifyingThreshold

public PromotionThreshold getQualifyingThreshold(Promotion promotion)
                                          throws SystemException
Throws:
SystemException

getTotalExtendedItemPriceLessDiscounts

public Money getTotalExtendedItemPriceLessDiscounts(Promotion promotion,
                                                    ThresholdableItem thresholdableItem)
                                             throws SystemException
Throws:
SystemException

getTotalSaleExtendedPrice

public Money getTotalSaleExtendedPrice(Promotion promotion)
                                throws SystemException
Throws:
SystemException

getExtendedPriceLessDiscountsForOrderLine

public Money getExtendedPriceLessDiscountsForOrderLine(CustomerOrderLineImpl orderLine)
                                                throws SystemException
Throws:
SystemException

getExtendedAdditionalShippingChargeLessDiscountsForOrderLine

public Money getExtendedAdditionalShippingChargeLessDiscountsForOrderLine(CustomerOrderLineImpl orderLine)
                                                                   throws SystemException
Throws:
SystemException

getExtendedPriceLessDiscountsForServiceLine

public Money getExtendedPriceLessDiscountsForServiceLine(CustomerOrderServiceLineImpl serviceLine)
                                                  throws SystemException
Throws:
SystemException

getTotalStandardShippingChargeLessDiscounts

public Money getTotalStandardShippingChargeLessDiscounts(CustomerOrderImpl order)
                                                  throws SystemException,
                                                         BusinessException
Throws:
SystemException
BusinessException

getUnappliedLockedPromotionDiscounts

public java.util.List getUnappliedLockedPromotionDiscounts(PromotionDiscountable promotionDiscountable,
                                                           Promotion promotion)
                                                    throws SystemException
Throws:
SystemException

setUnappliedLockedPromotionDiscounts

public void setUnappliedLockedPromotionDiscounts(java.util.List promotionDiscounts)
                                          throws SystemException
Throws:
SystemException

getAppliedPromotionDiscounts

public java.util.List getAppliedPromotionDiscounts(PromotionDiscountable promotionDiscountable)
                                            throws SystemException
Throws:
SystemException

reapplyLockedPromotionDiscount

public void reapplyLockedPromotionDiscount(CustomerOrderPromotionDiscountImpl discount)
                                    throws SystemException
Throws:
SystemException

applyNewPromotionDiscount

public void applyNewPromotionDiscount(PromotionDiscountable promotionDiscountable,
                                      CustomerOrderPromotionDiscountImpl discount)
                               throws SystemException
Throws:
SystemException


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28