public class PaymentProcessFinancialTransactionCmdImpl extends ControllerCommandImpl implements PaymentProcessFinancialTransactionCmd
PaymentProcessFinancialTransactionCmd
controller command.
Name | XPath | Description |
---|---|---|
channelId |
ApplicationArea/BusinessContext/ContextData[@name='channelId']
|
The order channel ID used currently. Mandatory. |
locale |
ApplicationArea/BusinessContext/ContextData[@name='locale']
|
The locale used currently. Such as: CA, EN, and US and so forth. Mandatory. |
paymentConfigurationGroupId |
DataArea/FinancialTransaction/Payment/PaymentInstruction/PaymentConfigurationID
or
DataArea/FinancialTransaction/Credit/PaymentInstruction/PaymentConfigurationID
|
The current payment configuration group ID. Default it is "default".
Optional. If it is not defined in the input parameters, there are two alternatives. 1) If the
Payment/Credit ID or the Payment Instruction ID is defined in the input parameters,
it will be retrieved from the corresponding Payment Instruction . 2) If the
paymentMethodName is defined, it will be retrieved via the
configuration in Payment Rules. |
storeId |
DataArea/FinancialTransaction/Payment/PaymentInstruction/StoreID
or
DataArea/FinancialTransaction/Credit/PaymentInstruction/StoreID
|
The current store ID. Optional. If it is not defined in the input
parameters, and the Payment/Credit ID or Payment Instruction ID is defined in
the input parameters. Then it will be retrieved from the corresponding
Payment Instruction . |
paymentMethodName |
DataArea/FinancialTransaction/Payment/PaymentInstruction/PaymentMethodName
or
DataArea/FinancialTransaction/Credit/PaymentInstruction/PaymentMethodName
|
The payment method name used by current financial transaction. Optional. |
action |
DataArea/FinancialTransaction@type |
The financial type of current financial transaction. Possible values
include "approve" ,"deposit" ,
credit ,reverseApproval ,
reverseDeposit , and reverseCredit . Mandatory.
|
amount |
DataArea/FinancialTransaction/RequestedAmount |
The requested amount needs to process of current financial transaction. Mandatory. |
currency |
DataArea/FinancialTransaction/RequestedAmount@currency |
The current used by current financial transaction. Mandatory. |
extendedDataName |
DataArea/FinancialTransaction/Payment/PaymentInstruction/ExtendedData@name |
The extended data name. Optional. |
extendedDataValue |
DataArea/FinancialTransaction/Payment/PaymentInstruction/ExtendedData@value |
The extended data value. Optional. |
orderId |
DataArea/FinancialTransaction/Payment/PaymentInstruction/OrderIdentifier/OrderID |
The order ID of current financial transaction. Optional. |
rmaId |
DataArea/FinancialTransaction/Credit/PaymentInstruction/RMAIdentifier/RMAID |
The RMA ID of current financial transaction. Optional. |
paymentSystemName |
DataArea/FinancialTransaction/Payment/PaymentInstruction/PaymentSystemName
or
DataArea/FinancialTransaction/Credit/PaymentInstruction/PaymentSystemName
|
The current payment system name.
Optional. If it is not defined in the input parameters, there are two alternatives. 1) If the
Payment/Credit ID or the Payment Instruction ID is defined in the input parameters,
it will be retrieved from the corresponding Payment Instruction . 2) If the
paymentMethodName is defined, it will be retrieved via the
configuration in Payment Rules. |
paymentId or creditId |
DataArea/FinancialTransaction/Payment/PaymentIdentifier/PaymentID
or
DataArea/FinancialTransaction/Credit/PaymentIdentifier/CreditID
|
The Payment ID of current financial transaction. Optional. |
paymentInstructionId |
DataArea/FinancialTransaction/Payment/PaymentInstruction/PaymentInstructionIdentifier/PaymentInstructionID |
The Payment Instruction ID of current financial transaction. Optional. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this command is
"com.ibm.commerce.payment.ppc.commands.PaymentProcessFinancialTransactionCmdImpl".
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
PaymentProcessFinancialTransactionCmdImpl()
This is the class constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChannelId(java.lang.Integer i)
This method returns input parameter channel id with enumeration group i.
|
java.util.Locale |
getLocale(java.lang.Integer i)
This method returns input parameter locale with enumeration group i.
|
java.lang.String |
getOrderId(java.lang.Integer i)
This method returns input parameter order id with enumeration group i.
|
java.lang.String |
getPaymentConfigurationGroupId(java.lang.Integer i)
This method returns input parameter payment configuration group id with
enumeration group i.
|
java.lang.String |
getPaymentMethodName(java.lang.Integer i)
This method returns input parameter payment method name with enumeration
group i.
|
AccessVector |
getResources()
This method returns command resources for access control.
|
java.lang.String |
getRMAId(java.lang.Integer i)
This method returns input parameter RMA id with enumeration group i.
|
java.lang.Integer |
getStoreId(java.lang.Integer i)
This method returns input parameter store id with enumeration group i.
|
void |
performExecute()
This method contains the actual business logic of the command as per the
WebSphere Commerce command framework.It calls WebSphere Commerce Payments
to process payment actions.
|
void |
reset()
This method resets the command fields.
|
void |
setRequestProperties(TypedProperty reqProperties)
This method sets the input parameters from the request properties.
|
void |
validateParameters()
This method verifies that required input parameters are present and
correct.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
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, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public PaymentProcessFinancialTransactionCmdImpl()
public void setRequestProperties(TypedProperty reqProperties) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqProperties
- The input parameters from the request propertiesECException
- if something failspublic void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- if something failspublic void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- If something input is invalid or missingpublic AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
AccessVector
object containing the
StoreAccessBeanECException
- For a failure to obtain the StoreAccessBeanpublic java.lang.String getChannelId(java.lang.Integer i)
i
- The index that the channel id locates atpublic java.util.Locale getLocale(java.lang.Integer i)
i
- The index that the locale locates atpublic java.lang.String getOrderId(java.lang.Integer i)
i
- The index that the order id locates atpublic java.lang.String getRMAId(java.lang.Integer i)
i
- The index that the RMA id locates atpublic java.lang.String getPaymentConfigurationGroupId(java.lang.Integer i)
i
- The index that the payment configuration id locates atpublic java.lang.Integer getStoreId(java.lang.Integer i)
i
- The index that the store id locates atpublic java.lang.String getPaymentMethodName(java.lang.Integer i)
i
- The index that the payment method name locates atpublic 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 AbstractECTargetableCommand