com.ibm.commerce.returns.commands
Interface CalculateReturnItemAdjustmentPolicyCmd

All Superinterfaces:
BusinessPolicyCommand, ECCommand, TaskCommand
All Known Implementing Classes:
CalculateReturnItemAdjustmentFlatPolicyCmdImpl, CalculateReturnItemAdjustmentPolicyCmdImpl, CalculateReturnItemAdjustmentPercentagePolicyCmdImpl

public interface CalculateReturnItemAdjustmentPolicyCmd
extends BusinessPolicyCommand

Interface for the command used for calculating the adjustment for a return mechandise authorization (RMA) item based on policy.


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String defaultCommandClassName
           
static java.lang.String NAME
           
 
Method Summary
 java.math.BigDecimal getAdjustment()
          Get the automatically calculated adjustment for the returned/refunded item.
 void setOrderItemAB(OrderItemAccessBean anOrderItemAB)
          (Optional) Set the orderItem being returned/refunded.
 void setRMAItemAB(RMAItemAccessBean anRMAItemAB)
          Set the RMA Item access bean which will have its adjustment updated.
 
Methods inherited from interface com.ibm.commerce.command.BusinessPolicyCommand
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

defaultCommandClassName

public static final java.lang.String defaultCommandClassName

NAME

public static final java.lang.String NAME
Method Detail

getAdjustment

public java.math.BigDecimal getAdjustment()
Get the automatically calculated adjustment for the returned/refunded item.
Returns:
The amount of the adjustment (in the same currency of the orderItem).

setOrderItemAB

public void setOrderItemAB(OrderItemAccessBean anOrderItemAB)
(Optional) Set the orderItem being returned/refunded.
Parameters:
anOrderItemAB - The orderItem access bean.

setRMAItemAB

public void setRMAItemAB(RMAItemAccessBean anRMAItemAB)
Set the RMA Item access bean which will have its adjustment updated.
Parameters:
anRMAItemAB - The RMA item access bean.