com.ibm.retail.AEF.automation
Interface DiscountInfo

All Superinterfaces:
BaseInfo, LineItemInfo, java.io.Serializable

public interface DiscountInfo
extends LineItemInfo

DiscountInfo is an interface which encapsulates the item information for a line item or transaction discount.


Field Summary
static java.lang.String CLASS_KEY
           
 
Method Summary
 java.lang.String getAmount()
          Gets the discount amount.
 java.lang.String getAppliesTo()
          For line item discounts, get a value indicating the line item the discount applies to.
 java.lang.String getMethod()
          Gets the discount method.
 java.lang.String getRate()
          Gets the discount rate if the discount method is "percent".
 java.lang.String getReason()
          Gets the discount reason.
 java.lang.String getType()
          Gets the discount type.
 boolean isTransactionDiscount()
          Indicates whether the discount is a transaction discount.
 boolean reducesTaxBalanceDue()
          Indicates whether the discount reduces the tax balance due.
 void setAmount(java.lang.String amount)
          Sets the discount amount.
 void setAppliesTo(java.lang.String appliesTo)
          For line item discounts, sets a value indicating the line item the discount applies to.
 void setMethod(java.lang.String method)
          Sets the discount method.
 void setRate(java.lang.String rate)
          Sets the discount rate if the discount method is "percent".
 void setReason(java.lang.String reason)
          Sets the discount reason.
 void setReducesTaxBalanceDue(boolean flag)
          Sets whether the discount reduces the tax balance due.
 void setTransactionDiscount(boolean flag)
          Sets whether the discount is a transaction discount.
 void setType(java.lang.String type)
          Sets the discount type.
 
Methods inherited from interface com.ibm.retail.AEF.automation.LineItemInfo
addRawReceiptLine, addReceiptLine, getDescription, getRawReceiptLines, getReceiptLines, getTransaction, isDeposit, isRefunded, isVoided, setDeposit, setDescription, setRawReceiptLines, setReceiptLines, setRefunded, setTransaction, setVoided
 
Methods inherited from interface com.ibm.retail.AEF.automation.BaseInfo
getBooleanPropertyValue, getIntegerPropertyValue, getProperty, getPropertyEntries, setProperty, update
 

Field Detail

CLASS_KEY

public static final java.lang.String CLASS_KEY
See Also:
Constant Field Values
Method Detail

getAppliesTo

public java.lang.String getAppliesTo()
For line item discounts, get a value indicating the line item the discount applies to. For example, may be "previous", "next", "1", "10".

Returns:
String

setAppliesTo

public void setAppliesTo(java.lang.String appliesTo)
For line item discounts, sets a value indicating the line item the discount applies to. For example, may be "previous", "next", "1", "10".

Returns:
param

getMethod

public java.lang.String getMethod()
Gets the discount method. For example, "percent" or "allowance".

Returns:
String

setMethod

public void setMethod(java.lang.String method)
Sets the discount method. For example, "percent" or "allowance".


getRate

public java.lang.String getRate()
Gets the discount rate if the discount method is "percent".

Returns:
String

setRate

public void setRate(java.lang.String rate)
Sets the discount rate if the discount method is "percent".


getAmount

public java.lang.String getAmount()
Gets the discount amount.

Returns:
String

setAmount

public void setAmount(java.lang.String amount)
Sets the discount amount.


getType

public java.lang.String getType()
Gets the discount type. This value is application specific. For IBM Supermarket, it corresponds to the discount group.

Returns:
String

setType

public void setType(java.lang.String type)
Sets the discount type.


getReason

public java.lang.String getReason()
Gets the discount reason. This value is application specific. For IBM GSA, it corresponds to the discount reason code.

Returns:
String

setReason

public void setReason(java.lang.String reason)
Sets the discount reason.


reducesTaxBalanceDue

public boolean reducesTaxBalanceDue()
Indicates whether the discount reduces the tax balance due.

Returns:
boolean

setReducesTaxBalanceDue

public void setReducesTaxBalanceDue(boolean flag)
Sets whether the discount reduces the tax balance due.


isTransactionDiscount

public boolean isTransactionDiscount()
Indicates whether the discount is a transaction discount.

Returns:
boolean

setTransactionDiscount

public void setTransactionDiscount(boolean flag)
Sets whether the discount is a transaction discount.



Copyright © 2004 IBM. All Rights Reserved.
Generated: July 19 2004