public class QueryPaymentsInfoPolicyCmdImpl extends BusinessPolicyCommandImpl implements QueryPaymentsInfoPolicyCmd
QueryPaymentsInfoPolicyCmd
implementation class when
new payment processing component is used. When the payment rules component wants to get the
up to date backend payment information, it calls this command by
QueryHandler
. And this command gets the payment information through calling the query
API of payment processing component. It further calls the corresponding API of Plugin to get the
up to date payment information from financial transaction.
This class is used with new payment processing component.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
QueryPaymentsInfoPolicyCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkIfOrderEditable()
This method checks if the order is editable.
|
ActionResults |
getActionResults()
This method gets the action results after the corresponding query action
is executed.
|
PaymentInstruction |
getBackendPaymentInstruction()
This method gets the backend payment instruction.
|
PaymentDataAnalyzer |
getCreditWithBackend()
This method gets the backend credit information.
|
java.lang.String |
getErrorDetail()
This method gets the detailed error information that returned by the method
getErrorDetialWithBackEnd() . |
java.util.Locale |
getLocale()
This method sets the current locale, which will be put into payment
context where there is a corresponding attribute.
|
java.lang.String |
getOrderChannel()
This method gets the current order channel, which will be put into
payment context where there is a corresponding attribute.
|
PaymentActionData |
getPaymentActionData()
This method gets the payment action data that contains the necessary
information for the payment query action.
|
PaymentDataAnalyzer |
getPaymentDataAnalyzer()
This method gets the object of
PaymentDataAnalyzer as the container of payment/credit information. |
java.lang.String |
getPaymentGroupId()
This method gets the current payment group id, which will be put into
payment context where there is a corresponding attribute.
|
PaymentInstruction |
getPaymentInstructionWithBackend()
This method gets the backend payment instruction.
|
PaymentDataAnalyzer |
getPaymentWithBackend()
This method gets the backend payment information.
|
RefundActionData |
getRefundActionData()
This method gets the refund action data that contains the necessary
information for the credit query action.
|
java.lang.Integer |
getStoreId()
This method gets the store id, which will be put into
payment context where there is a corresponding attribute.
|
boolean |
isOrderEditable()
This method gets the OrderEditable flag.
|
void |
performExecute()
This method executes the query action.
|
void |
reset()
This method is called after a command has been executed.
|
void |
setLocale(java.util.Locale localLocal)
This method sets the current locale, which will be put into payment
context where there is a corresponding attribute.
|
void |
setOrderChannel(java.lang.String string)
This method sets the current order channel, which will be put into
payment context where there is a corresponding attribute.
|
void |
setPaymentActionData(PaymentActionData ac)
This method sets the payment action data that contains the necessary
information for the payment query action.
|
void |
setPaymentGroupId(java.lang.String string)
This method sets the payment group id, which will be put into
payment context where there is a corresponding attribute.
|
void |
setRefundActionData(RefundActionData data)
This method sets the refund action data that contains the necessary
information for the credit query action.
|
void |
setStoreId(java.lang.Integer integer)
This method gets the store id, which will be put into
payment context where there is a corresponding attribute.
|
void |
validate()
This method validates if the query action is valid.
|
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, isReadyToCallExecute, 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, toString, wait, wait, wait
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
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, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public final java.util.Locale getLocale()
public void setPaymentActionData(PaymentActionData ac)
setPaymentActionData
in interface QueryPaymentsInfoPolicyCmd
ac
- The payment action data to be used in
the query payment action.public PaymentActionData getPaymentActionData()
public boolean isOrderEditable()
isOrderEditable
in interface QueryPaymentsInfoPolicyCmd
public void performExecute() throws ECException
QueryHandler
that further calls this command. And by the
action name in the action data, the corresponding API of payment
processing component is called to get the up to date payment information.
It does this through calling the API of Plugin from financial transaction.
Note that if you just check if the order is editable. Then in this command true is always returned since here order is always editable even there are non-zero deposited amount.
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void validate() throws EDPException
EDPException
is thrown.EDPException
- Thrown if payment id is nullpublic PaymentInstruction getPaymentInstructionWithBackend() throws ECException
ECException
public PaymentDataAnalyzer getPaymentWithBackend() throws ECException
ECException
public PaymentDataAnalyzer getCreditWithBackend() throws ECException
ECException
public PaymentInstruction getBackendPaymentInstruction()
getBackendPaymentInstruction
in interface QueryPaymentsInfoPolicyCmd
public ActionResults getActionResults()
getActionResults
in interface QueryPaymentsInfoPolicyCmd
public PaymentDataAnalyzer getPaymentDataAnalyzer()
PaymentDataAnalyzer
as the container of payment/credit information.getPaymentDataAnalyzer
in interface QueryPaymentsInfoPolicyCmd
public boolean checkIfOrderEditable()
public RefundActionData getRefundActionData()
getRefundActionData
in interface QueryPaymentsInfoPolicyCmd
public void setRefundActionData(RefundActionData data)
setRefundActionData
in interface QueryPaymentsInfoPolicyCmd
data
- The refund action data to be used in
the query payment action.public java.lang.String getErrorDetail()
getErrorDetialWithBackEnd()
.getErrorDetail
in interface QueryPaymentsInfoPolicyCmd
public java.lang.String getOrderChannel()
public java.lang.String getPaymentGroupId()
public void setLocale(java.util.Locale localLocal)
setLocale
in interface QueryPaymentsInfoPolicyCmd
localLocal
- The current locale.public void setOrderChannel(java.lang.String string)
setOrderChannel
in interface QueryPaymentsInfoPolicyCmd
string
- The current order channel.public void setPaymentGroupId(java.lang.String string)
setPaymentGroupId
in interface QueryPaymentsInfoPolicyCmd
string
- The current payment group id.public java.lang.Integer getStoreId()
getStoreId
in interface ECCommand
getStoreId
in class AbstractECTargetableCommand
public void setStoreId(java.lang.Integer integer)
setStoreId
in interface QueryPaymentsInfoPolicyCmd
integer
- The current payment store id.public void reset()
AbstractECTargetableCommand
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
Command.reset()