public interface ValidatePaymentMethodCmd extends TaskCommand
BOPIS
(Buy Online Pick In Store) rules.
BOPIS
validating rules: BOPIS
items, only normal payment methods can be used. BOPIS
items, there are three cases:
BOPIS
payment methods can be used.BOPIS
payment method, only BOPIS
payment method can be used.API | Description |
setOrderId(Long orderId) |
This method is mandatory, specifying the order on which the payment method will be validate. |
setPolicyId(Long policyId) |
This method is mandatory, specifying the payment policy ID of the payment method to be validate. |
API | Description |
boolean isValidatePaymentMethod() |
This method will return a boolean value to indicate that whether the passed policyId or paymentMethodId is valid for the given orderId . |
ValidatePaymentMethodCmdImpl
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright note 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 |
setErrorViewName(java.lang.String errorViewName)
This method sets the error view name.
|
void |
setOrderId(java.lang.Long orderId)
This method is mandatory, specifying the order on which the payment method will be validate.
|
void |
setPolicyId(java.lang.Long policyId)
This method is mandatory, specifying the policy ID of the payment method to be validate.
|
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 setOrderId(java.lang.Long orderId)
orderId
- void setPolicyId(java.lang.Long policyId)
setPaymentMethodID(String paymentMethodID)
was not called, this method is mandatory.policyId
- void setErrorViewName(java.lang.String errorViewName)
errorViewName
-