The purpose of this command is to check for applicability of the coupons on the shopping cart. The purchase condition are evaluated and the information is put in applicable variable which is used by the calling command.
The input to this command are:
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
static java.lang.String |
defaultCommandClassName defaultCommandClassName is the default implementation class used by command factory to instantiate this command if the interface com.ibm.commerce.template.commands.TaskCmdTemplate is not defined in the CMDREG table |
static java.lang.String |
Name Name of this interface. |
Method Summary | |
---|---|
java.util.Vector[] |
getApplicableItems() Returns an array of Vector where the nth element is the
Vector of order items that satisfy the purchase conditions of the nth
coupon. |
TypedProperty |
getResponseProperties() Gets the response properties. |
boolean[] |
getValidCoupons() Gets the array indicating whether the Coupons are applicable or not. |
void |
setApplicableItems(java.util.Vector[] newApplicableItems) Sets the applicable items. |
void |
setBcIds(java.lang.Long[] paramBcIds) Sets the eCoupon IDs. |
void |
setOrderId(java.lang.Long newOrderId) Sets the order IDs. |
void |
setProcessingContext(
CommandContext newProcessingContext) Sets the processing context. |
void |
setRequestProperties(
TypedProperty param)
Sets the request properties. |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String defaultCommandClassName
public static final java.lang.String Name
Method Detail |
---|
public java.util.Vector[] getApplicableItems()
Vector
where the nth element is the Vector
of order items that satisfy the purchase conditions of the nth coupon.
public TypedProperty getResponseProperties()
public boolean[] getValidCoupons()
public void setBcIds(java.lang.Long[] paramBcIds)
public void setOrderId(java.lang.Long newOrderId)
newOrderId
- the order on which the coupons are to be
applied.public void setProcessingContext(CommandContext newProcessingContext)
newProcessingContext
- the command context to be used in this
task command.public void setRequestProperties(TypedProperty param)
param
- the new request properties.public void setApplicableItems(java.util.Vector[] newApplicableItems)
newApplicableItems
- the applicable items.