public class DoRefundCmdImpl extends TaskCommandImpl implements DoRefundCmd
This command handles the refund for the given order and Return Merchandise Authorization (RMA).
Parameters:
Parameter Name | Type | Descriptions |
abRMA | RMAAccessBean | The RMAAccessBean for the Return Merchandise Authorization (RMA) record |
abOrder | OrderAccessBean | The OrderAccessBean of the order associated with the RMA |
bdRefundAmount | BigDecimal | The amount of the refund in the currency specified in the RMA |
nReturnPolicyId | Long | The ID of the Return Business Policy |
Behavior:
Error View Name:
ErrorCodes:
This command uses the following AccessBeans:
This command calls the following TaskCommands:
This command calls the following BusinessPolicyCommands:
Constructor and Description |
---|
DoRefundCmdImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected OrderAccessBean | getOrder()
Deprecated.
Returns the OrderAccessBean representing the Order.
|
protected java.lang.Long | getPaymentPolicyId()
Deprecated.
Returns the ID of the Payment Business Policy used for the purchase.
|
protected java.math.BigDecimal | getRefundAmount()
Deprecated.
Returns the amount to be refunded.
|
protected java.lang.Long | getReturnPolicyId()
Deprecated.
Returns the ID of the Return Business Policy.
|
protected RMAAccessBean | getRMA()
Deprecated.
Returns the RMA AccessBean representing the Return Merchandise Authorization record that authorizes the return of the merchandise.
|
boolean | isReadyToCallExecute()
Deprecated.
This method is called by the Command Framework to check if all basic mandatory parameters have been set for this command.
|
void | performExecute()
Deprecated.
Performs the main business logic of the command.
|
void | reset()
Deprecated.
Resets the instance variables of the command.
|
void | setOrder(OrderAccessBean ab)
Deprecated.
Sets the order property of the command.
|
protected void | setPaymentPolicyId(java.lang.Long nPaymentPolicyId)
Deprecated.
Sets the paymentPolicyId property of the command.
|
void | setRefundAmount(java.math.BigDecimal refundAmount)
Deprecated.
Sets the refundAmount property of the command.
|
void | setReturnPolicyId(java.lang.Long nReturnPolicyId)
Deprecated.
Sets the returnPolicyId property of the command.
|
void | setRMA(RMAAccessBean ab)
Deprecated.
Sets the Return Merchandise Authorization record that authorizes the return of the merchandise.
|
protected OrderAccessBean getOrder()
protected java.lang.Long getPaymentPolicyId()
protected java.math.BigDecimal getRefundAmount()
protected java.lang.Long getReturnPolicyId()
protected RMAAccessBean getRMA()
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
public void reset()
This is useful if the command instance is to be called multiple times with different command parameters.
public void setOrder(OrderAccessBean ab)
protected void setPaymentPolicyId(java.lang.Long nPaymentPolicyId)
public void setRefundAmount(java.math.BigDecimal refundAmount)
public void setReturnPolicyId(java.lang.Long nReturnPolicyId)
public void setRMA(RMAAccessBean ab)