|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This command is invoked when the shopper specifies a set of eCoupon codes explicitly while checking out.
The input to this command is :
If the given set of BCIDs aren't valid for this shopper from the CPWALLET, then an error page is send to the user. If the above condition is true then, the following steps are performed. The CheckValidityCmd command is called to find the eCoupons that are not expired and for not expired eCoupons, CheckApplicabilityCmd command is called to find out which eCoupons are applicable for this order. For applicable coupons, CalculateDiscountAmtCmd command is called to calculate the discount amount and CouponDSSTaskCmd command is called to check for any conflict.
Field Summary | |
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
defaultCommandClassName
|
static java.lang.String |
Name
|
Method Summary | |
java.util.Hashtable |
getConflicts()
Return the conflicts. |
java.lang.Integer |
getErrorCode()
Returns the error code. |
java.util.Vector |
getInvalidCoupons()
Returns the invalid coupons. |
int |
getNumCoupons()
Returns the number of coupons. |
boolean |
isValidSelection()
Returns true if the selection was valid. |
void |
setCouponIds(java.lang.Long[] param)
Sets teh couponIds. |
void |
setOrderId(java.lang.Long param)
Set the orderId. |
void |
setRequestProperties(TypedProperty param)
Set the request properties. |
void |
setShopperId(java.lang.Long paramShopperId)
Sets the shopperId. |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
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.Hashtable getConflicts()
public java.lang.Integer getErrorCode()
public java.util.Vector getInvalidCoupons()
public int getNumCoupons()
public boolean isValidSelection()
public void setCouponIds(java.lang.Long[] param)
param
- java.lang.Long[]public void setOrderId(java.lang.Long param)
param
- java.lang.Longpublic void setRequestProperties(TypedProperty param)
param
- com.ibm.commerce.datatype.TypedPropertypublic void setShopperId(java.lang.Long paramShopperId)
paramShopperId
- java.lang.Long
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |