com.ibm.commerce.couponredemption.commands
Interface CalculateDiscountAmtCmd

All Superinterfaces:
ECCommand, TaskCommand
All Known Implementing Classes:
CalculateDiscountAmtCmdImpl

public interface CalculateDiscountAmtCmd
extends TaskCommand

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

COPYRIGHT

public static final java.lang.String COPYRIGHT

defaultCommandClassName

public static final java.lang.String defaultCommandClassName

Name

public static final java.lang.String Name
Method Detail

getResponseProperties

public TypedProperty getResponseProperties()
Get the response properties.
Returns:
com.ibm.commerce.datatype.TypedProperty

getReturnTable

public java.util.Hashtable getReturnTable()
Get the return table.
Returns:
java.util.Hashtable

getRspProp

public TypedProperty getRspProp()
Get the responce properties.
Returns:
com.ibm.commerce.datatype.TypedProperty

setAppItems

public void setAppItems(java.util.Vector[] paramAppItems)
Set the applied items.
Parameters:
paramAppItems - java.util.Vector

setBcIds

public void setBcIds(java.lang.Long[] paramBcIds)
Set the BCIds.
Parameters:
paramBcIds - java.lang.Long

setOrderId

public void setOrderId(java.lang.Long paramOrderId)
Set the orderids.
Parameters:
paramOrderId - java.lang.Long

setProcessingContext

public void setProcessingContext(CommandContext newProcessingContext)
It set the processing context.
Parameters:
newProcessingContext - com.ibm.commerce.command.CommandContext

setReqProp

public void setReqProp(TypedProperty paramReqProp)
Set the request properties.
Parameters:
paramReqProp - com.ibm.commerce.datatype.TypedProperty

setRequestProperties

public void setRequestProperties(TypedProperty param)
Set the request properties.
Parameters:
param - com.ibm.commerce.datatype.TypedProperty