public class StoreAndValidatePaymentCmdImpl extends AEDPStoreTaskCmdImpl implements StoreAndValidatePaymentCmd
StoreAndValidatePaymentCmd
task command.
commandContext |
The command context. |
orderId |
A Long that indicates the id of the current order. |
orderAmount |
A BigDecimal that indicates the total amount of the current order. |
currency |
A String that specifies the currency associated with the refund currently being processed. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM Copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
StoreAndValidatePaymentCmdImpl() |
Modifier and Type | Method and Description |
---|---|
OrderAccessBean |
getOrderAccessBean()
This method gets a reference to the order access bean.
|
java.lang.String |
getPaymentMethodId()
This method gets the payment method ID to used for the payment instruction of the order.
|
java.math.BigDecimal |
getWCOrderAmount()
This method returns the total order amount.
|
java.util.ArrayList |
getWCPaymentInstructions()
This method gets the list of payment instructions to be created in the payment subcomponent.
|
boolean |
isReadyToCallExecute()
This method is called by the Command Framework to check if all basic mandatory parameters
have been set for this command.
|
void |
performExecute()
This method executes the business logic of this command implementation.
|
void |
reset()
This method resets the command fields.
|
void |
setPaymentAttributes(TypedProperty requestProperties)
This method sets the protocol data when creating a single payment instruction.
|
void |
setPaymentMethodId(java.lang.String nPayMthdId)
This method sets the payment method ID to be used for the payment instruction of the order.
|
getCurrency, getOrderAmount, getPaymentInstructions, setCurrency, setOrderAmount, setPaymentInstructions, validateInsideProcessFG
getErrorMessageMap, getStoreId, insertActionListToActionDetailHash, insertActionListToEditActionDetailHash, isBgJobInWorking, isProcessBGExecutableInFG, setBgJobStatusInDb, setErrorMessageMap, setStoreId, toString
getEdpException, getEDPOrderId, getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, getStatus, isIdempotent, isProcessBGTasksRequired, resetServices, setBGProcessFinished, setEdpException, setEDPOrderId, setEDPResults, setOrderChannel, setOrderId, setProcessBGTasksRequired, setStatus
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
setCurrency, setOrderAmount
getCurrency, getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, setEDPResults, setOrderId
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public OrderAccessBean getOrderAccessBean()
OrderAccessBean
that corresponds to the Order to paid for.public java.math.BigDecimal getWCOrderAmount()
null
value may be returned.public void setPaymentAttributes(TypedProperty requestProperties)
PIAddCmd
.setPaymentAttributes
in interface StoreAndValidatePaymentCmd
requestProperties
- A TypedProperty which is the protocol data representing a single payment instruction.public java.util.ArrayList getWCPaymentInstructions() throws ParameterNotFoundException
ArrayList
that represents the list of PaymentInstructions.ParameterNotFoundException
- This exception is thrown by TypedProperty.public void setPaymentMethodId(java.lang.String nPayMthdId)
This method sets the payment method ID to be used for the payment instruction of the order.
It is to be used when there is only a single payment method for the entire order.
nPayMthdId
- A String that specifies the payment method ID.public java.lang.String getPaymentMethodId()
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- This exception is thrown in case of any failure.public void reset()
This method resets the command fields.
After this method is invoked, and proper attributes are set, the command can be executed again.
reset
in interface com.ibm.websphere.command.Command
reset
in class AEDPPaymentTaskCmdImpl