com.ibm.commerce.couponredemption.commands
Interface CheckValidityCmd

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

public interface CheckValidityCmd
extends TaskCommand

The purpose of this command is to check each of the eCoupons for expiry and put the information in expired variable which is used by the calling commands.

The input to this command is :

For each cpwalletId the cppmnId is found out. Then the endDate is found out corresponding to this cppmn and if this endDate is after the current time, the coupon is not expired. These above steps are performed for each cpwalletId.


Field Summary
static java.lang.String COPYRIGHT
          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 defaultCommandClassName
           
static java.lang.String Name
           
 
Method Summary
 TypedProperty getResponseProperties()
          Get the response properties.
 boolean[] getValidCoupons()
          Get the valid eCoupons.
 void setBcIds(java.lang.Long[] paramBcIds)
          Set eCoupon ids.
 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 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

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

getValidCoupons

public boolean[] getValidCoupons()
Get the valid eCoupons.
Returns:
boolean.

setBcIds

public void setBcIds(java.lang.Long[] paramBcIds)
Set eCoupon ids.
Parameters:
paramBcId - java.lang.Long

setRequestProperties

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