com.retek.component.customerorder
Interface CustomerOrderPromotionDiscount

All Superinterfaces:
BusinessObject, SecondClassObject
All Known Implementing Classes:
CustomerOrderPromotionDiscountImpl

public interface CustomerOrderPromotionDiscount
extends SecondClassObject


Method Summary
 Money getDiscountAmount()
          Return the discount amount for the discount.
 CustomerOrderPromotionDiscountType getDiscountType()
          Return the promotion discount type identifier for the discount.
 Promotion getPromotion()
          Return the promotion which triggered the discount.
 CustomerOrderServiceLine getServiceLine()
          Return the parent service line for the discount (if it is a service line level promotion discount).
 boolean isLocked()
          Return a boolean indicating if the promotion discount is locked (ie.
 
Methods inherited from interface com.retek.commons.component.BusinessObject
getBusinessInterface
 

Method Detail

getDiscountType

public CustomerOrderPromotionDiscountType getDiscountType()
Return the promotion discount type identifier for the discount.

Returns:
CustomerOrderPromotionDiscountType discount type identifier

getDiscountAmount

public Money getDiscountAmount()
Return the discount amount for the discount.

Returns:
Money discount amount

getPromotion

public Promotion getPromotion()
                       throws SystemException
Return the promotion which triggered the discount.

Returns:
Promotion promotion source
Throws:
SystemException

isLocked

public boolean isLocked()
Return a boolean indicating if the promotion discount is locked (ie. it has been allocated during settlement processing when a line has been shipped). A locked discount record will not be removed from a particular parent business object if discounts are re-applied.

Returns:
boolean true if discount is locked

getServiceLine

public CustomerOrderServiceLine getServiceLine()
                                        throws SystemException
Return the parent service line for the discount (if it is a service line level promotion discount). Returns null if the parent is an order or order line.

Returns:
CustomerOrderServiceLine parent service line
Throws:
SystemException


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