public interface CheckCCNumberCmd extends TaskCommand
CheckCCNumberCmd
Task Command performs various checks on
the supplied credit card number. The checks may include length and prefix
checks and the industry standard Mod-10 check (also known as the LUHN
Algorithm).
If the number is found to be invalid. 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.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
defaultCommandClassName
The default implementation of this command.
|
static java.lang.String |
NAME
The name of this command.
|
Modifier and Type | Method and Description |
---|---|
void |
setCardBrand(java.lang.String cardBrand)
Sets the cardBrand property of the command.
|
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.
|
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
void setCardBrand(java.lang.String cardBrand)
cardBrand
- the card brand to be used for setting the command
property. (This value is used to compare against the values specified
in credit card type column in the CCCHECK Table.)void setCardNumber(java.lang.String cardNumber)
cardNumber
- the card number to be used for setting the command
property.void setErrorTaskName(java.lang.String errorTaskName)
errorTaskName
- the name of the Error View to be used for
displaying error information to the Shopper.