com.ibm.commerce.payment.commands
Interface DoLuhnCheckCmd

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

public interface DoLuhnCheckCmd
extends TaskCommand

The DoLuhnCheckCmd Task Command checks the validity of the credit card number using the LUHN algorithm. If the number is found to be invalid according to the LUHN Algorithm the command is expected to throw the ECApplicationException specifying the Error View Command named by the errorTaskName command property and the errorCode specified by com.ibm.commerce.DoPaymentCmd.ERR_CODE_BAD_CCNUM.


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String defaultCommandClassName
          The default implementation class.
static java.lang.String NAME
           
 
Method Summary
 void setCardNumber(java.lang.String cardNumber)
          Sets the cardNumber property of the command.
 void setErrorTaskName(java.lang.String errorTaskName)
          Sets the errorTaskName property of the command.
 
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
The default implementation class.

NAME

public static final java.lang.String NAME
Method Detail

setCardNumber

public void setCardNumber(java.lang.String cardNumber)
Sets the cardNumber property of the command.
Parameters:
cardNumber - the card number to be used for setting the command property.

setErrorTaskName

public void setErrorTaskName(java.lang.String errorTaskName)
Sets the errorTaskName property of the command.
Parameters:
errorTaskName - the name of the View Command to be used for displaying error information to the Shopper.