public class QueryPaymentsInfoPolicyCmdImpl extends BusinessPolicyCommandImpl implements QueryPaymentsInfoPolicyCmd
This class is used with new payment processing component.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
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.
|
protected Payment | getBackendPayment()
This method gets the payment object from the backend system.
|
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.
|
protected PaymentContext | getPaymentContext()
This method gets the payment context on this 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.
|
protected void | setBackendPayment(Payment localBackendPayment)
This method sets the payment object from the backend system.
|
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.
|
public static final java.lang.String COPYRIGHT
public final java.util.Locale getLocale()
public void setPaymentActionData(PaymentActionData ac)
public PaymentActionData getPaymentActionData()
protected void setBackendPayment(Payment localBackendPayment)
protected Payment getBackendPayment()
public boolean isOrderEditable()
protected PaymentContext getPaymentContext()
public void performExecute() throws ECException
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.
public void validate() throws EDPException
public PaymentInstruction getPaymentInstructionWithBackend() throws ECException
public PaymentDataAnalyzer getPaymentWithBackend() throws ECException
public PaymentDataAnalyzer getCreditWithBackend() throws ECException
public PaymentInstruction getBackendPaymentInstruction()
public ActionResults getActionResults()
public PaymentDataAnalyzer getPaymentDataAnalyzer()
public boolean checkIfOrderEditable()
public RefundActionData getRefundActionData()
public void setRefundActionData(RefundActionData data)
public java.lang.String getErrorDetail()
public java.lang.String getOrderChannel()
public java.lang.String getPaymentGroupId()
public void setLocale(java.util.Locale localLocal)
public void setOrderChannel(java.lang.String string)
public void setPaymentGroupId(java.lang.String string)
public java.lang.Integer getStoreId()
public void setStoreId(java.lang.Integer integer)
public void reset()