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, setRequestPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPolicyId, getRequestProperties, setPolicyId, setRequestPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterspublic static final java.lang.String COPYRIGHT
public final java.util.Locale getLocale()
public void setPaymentActionData(PaymentActionData ac)
setPaymentActionData in interface QueryPaymentsInfoPolicyCmdac - The payment action data to be used in
the query payment action.public PaymentActionData getPaymentActionData()
public boolean isOrderEditable()
isOrderEditable in interface QueryPaymentsInfoPolicyCmdpublic 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 ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void validate()
throws EDPException
EDPException
is thrown.EDPException - Thrown if payment id is nullpublic PaymentInstruction getPaymentInstructionWithBackend() throws ECException
ECExceptionpublic PaymentDataAnalyzer getPaymentWithBackend() throws ECException
ECExceptionpublic PaymentDataAnalyzer getCreditWithBackend() throws ECException
ECExceptionpublic PaymentInstruction getBackendPaymentInstruction()
getBackendPaymentInstruction in interface QueryPaymentsInfoPolicyCmdpublic ActionResults getActionResults()
getActionResults in interface QueryPaymentsInfoPolicyCmdpublic PaymentDataAnalyzer getPaymentDataAnalyzer()
PaymentDataAnalyzer as the container of payment/credit information.getPaymentDataAnalyzer in interface QueryPaymentsInfoPolicyCmdpublic boolean checkIfOrderEditable()
public RefundActionData getRefundActionData()
getRefundActionData in interface QueryPaymentsInfoPolicyCmdpublic void setRefundActionData(RefundActionData data)
setRefundActionData in interface QueryPaymentsInfoPolicyCmddata - The refund action data to be used in
the query payment action.public java.lang.String getErrorDetail()
getErrorDetialWithBackEnd().getErrorDetail in interface QueryPaymentsInfoPolicyCmdpublic java.lang.String getOrderChannel()
public java.lang.String getPaymentGroupId()
public void setLocale(java.util.Locale localLocal)
setLocale in interface QueryPaymentsInfoPolicyCmdlocalLocal - The current locale.public void setOrderChannel(java.lang.String string)
setOrderChannel in interface QueryPaymentsInfoPolicyCmdstring - The current order channel.public void setPaymentGroupId(java.lang.String string)
setPaymentGroupId in interface QueryPaymentsInfoPolicyCmdstring - The current payment group id.public java.lang.Integer getStoreId()
getStoreId in interface ECCommandgetStoreId in class AbstractECTargetableCommandpublic void setStoreId(java.lang.Integer integer)
setStoreId in interface QueryPaymentsInfoPolicyCmdinteger - The current payment store id.public void reset()
AbstractECTargetableCommandreset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandCommand.reset()