public class CancelOrderCmdImpl extends AEDPPaymentTaskCmdImpl implements CancelOrderCmd
commandContext | The command context. |
orderId | A Long that specifies the order id. |
forceFlag | A Boolean that indicates if the request will be forced or no. |
Constructor and Description |
---|
CancelOrderCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.math.BigDecimal | calculateRefundAmount(Payment payment)
Calculate the amount needs to be refund for the payment.
|
java.lang.Boolean | getForcedCancel()
This method returns the forced flag that shows if this request will be forced or not.
|
protected boolean | isForcedCancelWithRefund()
Check whether the refund action will be triggered.
|
boolean | isReadyToCallExecute()
This method is called by the Command Framework to check if all basic mandatory parameters have been set for this command.
|
void | performExecute()
Executes the business logic of this command implementation.
|
void | processBG()
This method actually executes the approve reversal action, and cancels the active payment instructions of current EDP order.
|
void | processFG()
This method is the main method to process the current cancel order request.
|
protected void | refundForDepositedPayments(java.lang.Long piId)
When canceling the order, do the refund action for the deposited payments.
|
void | reset()
This method resets the command fields.
|
void | setForcedCancel(java.lang.Boolean paramFlag)
This method sets the forced flag that shows if the cancel request will be forced or not.
|
public void setForcedCancel(java.lang.Boolean paramFlag)
public java.lang.Boolean getForcedCancel()
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
public void reset()
public void processBG() throws EDPException, ECException
public void processFG() throws ECException, EDPException
protected void refundForDepositedPayments(java.lang.Long piId) throws ECException, EDPException
protected java.math.BigDecimal calculateRefundAmount(Payment payment)
protected boolean isForcedCancelWithRefund()