public class QueryPaymentsInfoCompatiblePolicyCmdImpl extends BusinessPolicyCommandImpl implements QueryPaymentsInfoPolicyCmd
This class is used with classical payment.
Constructor and Description |
---|
QueryPaymentsInfoCompatiblePolicyCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean | checkIfOrderEditable()
This method checks if Order is editable.
|
ActionResults | getActionResults()
This method gets the action results after the corresponding query action is executed.
|
protected com.ibm.commerce.edp.activitylog.ActivityLoggerLocal | getActivityLoggerFacade()
This method gets the local interface of activity logger, which will store the history of payment/refund actions in database.
|
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.
|
java.util.Locale | getLocale()
The method gets the current locale .
|
protected com.ibm.commerce.edp.model.ObjectModelFacadeLocal | getOMF()
This method gets the Object Model Facade.
|
java.lang.String | getOrderChannel()
This method gets the current order channel.
|
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.
|
PaymentInstruction | getPaymentInstruction(java.lang.Long orderId)
This method gets payment instruction by order Id.
|
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 current store id.
|
protected java.math.BigDecimal | getTotalAmount(OrderAccessBean abOrder)
This method gets the total payment amount of the order.
|
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 thisLocale)
This method sets the current locale.
|
void | setOrderChannel(java.lang.String string)
This method sets the current order channel.
|
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 current payment group id.
|
void | setRefundActionData(RefundActionData ac)
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 sets the current store id.
|
void | validate()
This method validates if the query action is valid.
|
public QueryPaymentsInfoCompatiblePolicyCmdImpl()
public final java.util.Locale getLocale()
public void setPaymentActionData(PaymentActionData ac)
public PaymentActionData getPaymentActionData()
public void setRefundActionData(RefundActionData ac)
public RefundActionData getRefundActionData()
protected final com.ibm.commerce.edp.model.ObjectModelFacadeLocal getOMF() throws J2EEException
protected com.ibm.commerce.edp.activitylog.ActivityLoggerLocal getActivityLoggerFacade() throws J2EEException
public boolean isOrderEditable()
public void performExecute() throws ECException
Note that if you need check if order is editable, the result is decided by the deposited amount of current order. This means if the order has not been deposited yet, then the order is editable; otherwise it is not.
public void validate() throws EDPException
public PaymentInstruction getPaymentInstructionWithBackend() throws ECException
public PaymentDataAnalyzer getPaymentWithBackend() throws ObjectCannotBeFoundException, ECException
public PaymentDataAnalyzer getCreditWithBackend() throws ObjectCannotBeFoundException, ECException
public PaymentInstruction getBackendPaymentInstruction()
public ActionResults getActionResults()
public PaymentDataAnalyzer getPaymentDataAnalyzer()
public boolean checkIfOrderEditable() throws ECException
public PaymentInstruction getPaymentInstruction(java.lang.Long orderId) throws ECException
Firstly this method constructs a backend payment instruction through retrieving the properties stored in the table ORDPAYINFO. Then this method analyzes the payment state for this payment instruction, and the criteria are as follows: 1. If actual amount in ORDPAYMTHD is null, and the order status is "M" or "I", it means the payment state is approving. 2. If actual amount in ORDPAYMTHD is null ,and the order status is not "M"/"I"/"D", it means the payment state is approved. 3. If actual amount in ORDPAYMTHD is not null, and the order status is "D", it means the payment state is deposited. 4. If actual amount in ORDPAYMTHD is not null, and the order status is not "D", it means the payment state is depositing.
protected java.math.BigDecimal getTotalAmount(OrderAccessBean abOrder) throws ECException
public java.lang.String getErrorDetail()
public java.lang.String getOrderChannel()
public java.lang.String getPaymentGroupId()
public void setLocale(java.util.Locale thisLocale)
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()