com.ibm.commerce.returns.commands
Interface RefundPaymentPolicyCmd

All Superinterfaces:
BusinessPolicyCommand, TaskCommand
All Known Implementing Classes:
RefundByCreditPolicyCmdImpl, RefundByOriginalPaymentPolicyCmdImpl, RefundPaymentPolicyCmdImpl

public interface RefundPaymentPolicyCmd
extends BusinessPolicyCommand

Interface for the command used for performing the refund. Interface for the task command used for determining if a return mechandise authorization (RMA) item may be approved programatically.

Input Parameters

sEVN (optional)
Error view name
ab (required)
OrderAccessbean of the Order
aPolicyId (required)
id of the policy used to pay for the order orignally
refundAmount (required)
amount to be refunded
anRMA (required)
RMAAccessBean of the RMA

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String defaultCommandClassName
          The default implementation class name is "com.ibm.commerce.returns.commands.RefundByOriginalPaymentPolicyCmdImpl" .
static java.lang.String NAME
          The name of this interface is "com.ibm.commerce.returns.commands.RefundPaymentPolicyCmd ".
 
Method Summary
 void setErrorViewName(java.lang.String sEVN)
          (Optional) error view name passed in by the caller.
 void setOrder( OrderAccessBean ab)
          The order to be refunded.
 void setPaymentPolicyId(java.lang.Long aPolicyId)
          The id of the policy used to pay for the order originally.
 void setRefundAmount(java.math.BigDecimal refundAmount)
          The amount to refund.
 void setRMA( RMAAccessBean anRMA)
          The RMA to refund to.
 
Methods inherited from interface com.ibm.commerce.command. BusinessPolicyCommand
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
 

Field Detail
public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
The name of this interface is "com.ibm.commerce.returns.commands.RefundPaymentPolicyCmd ".
See Also:
Constant Field Values

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The default implementation class name is "com.ibm.commerce.returns.commands.RefundByOriginalPaymentPolicyCmdImpl" .
See Also:
Constant Field Values
Method Detail

setErrorViewName

public void setErrorViewName(java.lang.String sEVN)
(Optional) error view name passed in by the caller. This is passed to the doRefundPolicyCmd policy command.
Parameters:
sEVN - The error view name.

setOrder

public void setOrder(OrderAccessBean ab)
The order to be refunded.
Parameters:
ab - The order access bean.

setPaymentPolicyId

public void setPaymentPolicyId(java.lang.Long aPolicyId)
The id of the policy used to pay for the order originally.
Parameters:
aPolicyId - The payment policy Id.

setRefundAmount

public void setRefundAmount(java.math.BigDecimal refundAmount)
The amount to refund.
Parameters:
refundAmount - The amount to refund.

setRMA

public void setRMA(RMAAccessBean anRMA)
The RMA to refund to.
Parameters:
anRMA - The RMA access bean.