com.ibm.commerce.couponredemption.commands
Interface CalculateDiscountAmtCmd

All Superinterfaces:
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 :

The IDs of the eCoupons.
The order under consideration.

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
  TypedProperty getResponseProperties()
          Gets the response properties.
 java.util.Hashtable getReturnTable()
          Gets the return table.
  TypedProperty getRspProp()
          Gets the responce properties.
 void setAppItems(java.util.Vector[] paramAppItems)
          Sets the applied items.
 void setBcIds(java.lang.Long[] paramBcIds)
          Sets the BCIds.
 void setOrderId(java.lang.Long paramOrderId)
          Sets the orderIds.
 void setProcessingContext( CommandContext newProcessingContext)
          Sets the processing context.
 void setReqProp( TypedProperty paramReqProp)
          Sets the request properties.
 void setRequestProperties( TypedProperty param)           Sets the request properties.
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

defaultCommandClassName

public static final 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
See Also:
Constant Field Values

Name

public static final java.lang.String Name
Name of this interface.
See Also:
Constant Field Values
Method Detail

getResponseProperties

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

getReturnTable

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

getRspProp

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

setAppItems

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

setBcIds

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

setOrderId

public void setOrderId(java.lang.Long paramOrderId)
Sets the orderIds.
Parameters:
paramOrderId - java.lang.Long

setProcessingContext

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

setReqProp

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

setRequestProperties

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