|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The purpose of the task command is to computes the discount amount for each eCoupon that satisfy the purchase order conditions of the of the eCoupon.
The input to this command are :
First the orderItems for a order are found out and for each cpwalletId, corresponding promoId is found out from the CPWALLET table. The corresponding calcodeId are found out from CPPMNDISC table by using the obtained promoId. A mapping is computed between OrderItemAccessBean ( corresponding to the items qualified for this cpwalletId) and the Categorized MonetaryAmount(Set to zero). The task command CalculationCodeCalculate command with usage type as eCoupons and the mapping created above are called and the discount amounts are stored in TCPITMAP table. These above steps are performed for each cpwalletId.
Field Summary | |
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
defaultCommandClassName
|
static java.lang.String |
Name
|
Method Summary | |
TypedProperty |
getResponseProperties()
Get the response properties. |
java.util.Hashtable |
getReturnTable()
Get the return table. |
TypedProperty |
getRspProp()
Get the responce properties. |
void |
setAppItems(java.util.Vector[] paramAppItems)
Set the applied items. |
void |
setBcIds(java.lang.Long[] paramBcIds)
Set the BCIds. |
void |
setOrderId(java.lang.Long paramOrderId)
Set the orderids. |
void |
setProcessingContext(CommandContext newProcessingContext)
It set the processing context. |
void |
setReqProp(TypedProperty paramReqProp)
Set the request properties. |
void |
setRequestProperties(TypedProperty param)
Set the request properties. |
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 TypedProperty getResponseProperties()
public java.util.Hashtable getReturnTable()
public TypedProperty getRspProp()
public void setAppItems(java.util.Vector[] paramAppItems)
paramAppItems
- java.util.Vectorpublic void setBcIds(java.lang.Long[] paramBcIds)
paramBcIds
- java.lang.Longpublic void setOrderId(java.lang.Long paramOrderId)
paramOrderId
- java.lang.Longpublic void setProcessingContext(CommandContext newProcessingContext)
newProcessingContext
- com.ibm.commerce.command.CommandContextpublic void setReqProp(TypedProperty paramReqProp)
paramReqProp
- com.ibm.commerce.datatype.TypedPropertypublic void setRequestProperties(TypedProperty param)
param
- com.ibm.commerce.datatype.TypedProperty
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |