|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CouponInfo is an interface which encapsulates the information for a coupon in a transaction.
Field Summary | |
---|---|
static java.lang.String |
CLASS_KEY
|
Method Summary | |
---|---|
void |
addRestrictedPeriod(com.ibm.retail.AEF.event.TimeInterval period)
Adds a restricted period for the coupon. |
int |
getAgeRestriction()
Returns the age restriction (in years) for this item. |
java.lang.String |
getCouponType()
Get the coupon type. |
java.lang.String |
getDealPrice()
Returns the deal price for this coupon if the pricing method utilizes any kind of deal price. |
int |
getDealQuantity()
Returns the deal quantity for this coupon if the pricing method utilizes any kind of deal price. |
com.ibm.retail.AEF.automation.ItemIdentifier |
getItemID()
Gets the coupon identifier. |
java.lang.String |
getItemModifier()
Gets the coupon modifier. |
java.lang.String |
getManufacturerNumber()
Returns the manufacturer number for this coupon. |
java.lang.String |
getMultiPricingGroup()
Returns the multi-pricing group for this coupon if the pricing method utilizes multi-pricing. |
java.lang.String |
getPricingMethod()
Returns the pricing method for this coupon. |
int |
getQuantity()
Get the quantity |
java.lang.String |
getReducedPrice()
Returns the reduced price for this coupon if the pricing method utilizes a reduced price. |
java.util.Collection |
getRestrictedPeriods()
Returns the restricted time periods associated with this coupon. |
java.lang.String |
getUnitPrice()
Get the unit price |
java.lang.String |
getValue()
Get the coupon value. |
java.lang.String |
getWeight()
Get the weight |
boolean |
isItemRepeatAllowed()
Returns whether redeeming another coupon by using item repeat is allowed for this coupon. |
boolean |
isTimeRestricted()
Is this coupon time restricted |
boolean |
reducesFoodstampBalanceDue()
Indicates whether the coupon reduces the foodstamp balance. |
boolean |
reducesTaxDue()
Indicates whether the coupon reduces the transaction tax due. |
void |
setAgeRestriction(int years)
Sets the age restriction (in years) for this item. |
void |
setCouponType(java.lang.String type)
Set the coupon type |
void |
setDealPrice(java.lang.String dealPrice)
Set the deal price for this coupon. |
void |
setDealQuantity(int dealQuantity)
Set the deal quantity for this coupon. |
void |
setItemID(com.ibm.retail.AEF.automation.ItemIdentifier itemID)
Sets the coupon identifier. |
void |
setItemModifier(java.lang.String itemModifier)
Sets the coupon modifier. |
void |
setItemRepeatAllowed(boolean repeatAllowed)
Set whether redeeming another item by using item repeat is allowed for this coupon. |
void |
setManufacturerNumber(java.lang.String manufacturerNumber)
Set the manufacturer number for this coupon. |
void |
setMultiPricingGroup(java.lang.String multiPricingGroup)
Set the multi-pricing group for this coupon. |
void |
setPricingMethod(java.lang.String pricingMethod)
Set the pricing method for this coupon. |
void |
setQuantity(int qty)
Set the quantity |
void |
setReducedPrice(java.lang.String reducedPrice)
Set the reduced price for this coupon. |
void |
setReducesFoodstampBalanceDue(boolean reduces)
Sets whether the coupon reduces the foodstamp balance. |
void |
setReducesTaxDue(boolean reduces)
Set whether the coupon reduces the transaction tax due. |
void |
setRestrictedPeriods(java.util.Collection periods)
Sets the restricted time periods associated with this coupon. |
void |
setUnitPrice(java.lang.String value)
Set the unit price |
void |
setValue(java.lang.String netValue)
Set the coupon net value. |
void |
setWeight(java.lang.String weight)
Set the weight |
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 |
public static final java.lang.String CLASS_KEY
Method Detail |
public void setItemID(com.ibm.retail.AEF.automation.ItemIdentifier itemID)
itemID
- The unique item identifier.public com.ibm.retail.AEF.automation.ItemIdentifier getItemID()
public void setItemModifier(java.lang.String itemModifier)
itemModifier
- public java.lang.String getItemModifier()
public java.lang.String getCouponType()
public void setCouponType(java.lang.String type)
type
- public java.lang.String getUnitPrice()
public void setUnitPrice(java.lang.String value)
public int getQuantity()
public void setQuantity(int qty)
public java.lang.String getWeight()
public void setWeight(java.lang.String weight)
weight
-
java.lang.NumberFormatException
public java.lang.String getValue()
public void setValue(java.lang.String netValue)
netValue
- public int getAgeRestriction()
public void setAgeRestriction(int years)
years
- The number of years old the customer must be to redeem the item.
Use zero for no age restriction.public boolean reducesFoodstampBalanceDue()
public void setReducesFoodstampBalanceDue(boolean reduces)
public boolean isTimeRestricted()
public java.util.Collection getRestrictedPeriods()
public void setRestrictedPeriods(java.util.Collection periods)
public void addRestrictedPeriod(com.ibm.retail.AEF.event.TimeInterval period)
public int getDealQuantity()
public void setDealQuantity(int dealQuantity)
dealQuantity
- The quantity required for the deal pricing method.public java.lang.String getDealPrice()
public void setDealPrice(java.lang.String dealPrice)
dealPrice
- The deal price for the item if a deal pricing
method applies.public java.lang.String getReducedPrice()
public void setReducedPrice(java.lang.String reducedPrice)
reducedPrice
- The reduced price for the coupon if a reduced price pricing
method applies.public java.lang.String getMultiPricingGroup()
public void setMultiPricingGroup(java.lang.String multiPricingGroup)
multiPricingGroup
- The multi-pricing group for the coupon if
the pricing method utilizes a multi-group pricing method.public boolean isItemRepeatAllowed()
public void setItemRepeatAllowed(boolean repeatAllowed)
repeatAllowed
- public boolean reducesTaxDue()
public void setReducesTaxDue(boolean reduces)
reduces
- public java.lang.String getPricingMethod()
public void setPricingMethod(java.lang.String pricingMethod)
pricingMethod
- public java.lang.String getManufacturerNumber()
public void setManufacturerNumber(java.lang.String manufacturerNumber)
manufacturerNumber
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |