java.lang.Object | +--com.ibm.commerce.couponredemption.databeans.ViewAppliedCouponDataBean
This data bean is used to view the eCoupon that has been chosen successfully to be used with the order.
The input parameter for this data bean is :
This can be queried for the following :
Field Summary | |
---|---|
java.util.Vector |
bcIds Coupons that are applied to the order being considered. |
CommandContext |
commandContext The command context. |
java.util.Vector |
couponThumbNails The nth element of this vector is the path of the thumbnail image for the nth coupon. |
java.lang.String |
currency The currency used in this order. |
java.util.Vector |
discAmts The nth element of this vector is a vector of discount amounts on the items that the nth coupon applies to. |
java.util.Vector |
itemIds The nth element of this vector is a vector of item ids that the nth coupon applies to. |
java.util.Vector |
itemNames The nth element of this vector is a vector of item names that the nth coupon applies to. |
java.lang.Long |
orderId The order for which the applied coupons are being viewed. |
TypedProperty |
requestProperties The request properties. |
Fields inherited from interface com.ibm.commerce.beans. SmartDataBean |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.beans. DataBean |
emptyString |
Fields inherited from interface com.ibm.commerce.couponredemption.databeans. ViewAppliedCouponInputDataBean |
COPYRIGHT |
Constructor Summary | |
---|---|
ViewAppliedCouponDataBean() |
Method Summary | |
---|---|
java.util.Vector |
getBcIds() Gets the eCouponIds. |
CommandContext |
getCommandContext() Gets the command context. |
java.util.Vector |
getCouponThumbNails() Gets the eCoupon thumb nails. |
java.lang.String |
getCurrency() Gets the currency. |
java.util.Vector |
getDiscAmts() Gets the discount amounts. |
FormattedMonetaryAmountDataBean |
getFormattedDiscAmt(java.math.BigDecimal discAmt) Gets the formatted discount amount. |
java.util.Vector |
getItemIds() Gets the itemIds. |
java.util.Vector |
getItemNames() Gets the item names. |
java.lang.Long |
getOrderId() Gets the orderId. |
TypedProperty |
getRequestProperties() Gets the properties of the request. |
void |
populate() This method populates the data bean that is used to view the eCoupon that has been chosen successfully to be used with the order. |
void |
setBcIds(java.util.Vector newBcIds) Sets the eCouponIds. |
void |
setCommandContext(
CommandContext newCommandContext) Sets the command context. |
void |
setCouponThumbNails(java.util.Vector newCouponThumbNails) Sets the eCoupon thumb nails. |
void |
setCurrency(java.lang.String newCurrency) Sets the currency. |
void |
setDiscAmts(java.util.Vector newDiscAmts) Sets the discount amount. |
void |
setItemIds(java.util.Vector newItemIds) Sets the itemIds. |
void |
setItemNames(java.util.Vector newItemNames) Sets the item names. |
void |
setOrderId(java.lang.Long newOrderId) Sets the orderIds. |
void |
setRequestProperties(
TypedProperty newRequestProperties) Sets the properties of the request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public TypedProperty requestProperties
public CommandContext commandContext
public java.lang.Long orderId
public java.util.Vector bcIds
public java.util.Vector itemIds
public java.util.Vector discAmts
public java.util.Vector couponThumbNails
public java.util.Vector itemNames
public java.lang.String currency
Constructor Detail |
---|
public ViewAppliedCouponDataBean()
Method Detail |
---|
public java.util.Vector getBcIds()
public CommandContext getCommandContext()
getCommandContext
in interface
SmartDataBean
public java.util.Vector getCouponThumbNails()
public java.lang.String getCurrency()
public java.util.Vector getDiscAmts()
public FormattedMonetaryAmountDataBean getFormattedDiscAmt(java.math.BigDecimal discAmt) throws ECSystemException
discAmt
- The amount to be formatted.com.ibm.commerce.exception.ECSystemException.
ECSystemException
public java.util.Vector getItemIds()
public java.util.Vector getItemNames()
public java.lang.Long getOrderId()
public TypedProperty getRequestProperties()
getRequestProperties
in interface
InputDataBean
public void populate() throws java.lang.Exception
populate
in interface
SmartDataBean
java.lang.Exception
public void setBcIds(java.util.Vector newBcIds)
newBcIds
- java.lang.Longpublic void setCommandContext(CommandContext newCommandContext)
setCommandContext
in interface
SmartDataBean
newCommandContext
-
com.ibm.commerce.command.CommandContextpublic void setCouponThumbNails(java.util.Vector newCouponThumbNails)
newCouponThumbNails
- java.util.Vectorpublic void setCurrency(java.lang.String newCurrency)
newCurrency
- java.lang.Stringpublic void setDiscAmts(java.util.Vector newDiscAmts)
newDiscAmts
- java.util.Vectorpublic void setItemIds(java.util.Vector newItemIds)
newItemIds
- java.util.Vectorpublic void setItemNames(java.util.Vector newItemNames)
newItemNames
- java.util.Vectorpublic void setOrderId(java.lang.Long newOrderId)
newOrderId
- java.lang.Longpublic void setRequestProperties(TypedProperty newRequestProperties)
setRequestProperties
in interface
InputDataBean
newRequestProperties
-
com.ibm.commerce.datatype.TypedProperty