com.ibm.commerce.returns.commands
Interface CalculateReturnItemProductCreditCmd
- All Superinterfaces:
- ECCommand, TaskCommand
- All Known Implementing Classes:
- CalculateReturnItemProductCreditCmdImpl
- public interface CalculateReturnItemProductCreditCmd
- extends TaskCommand
Interface for the command used for calculating the automatic product credit for the return mechandise authorization (RMA) item.
This is the amount of the product price that the RMA item qualifies for.
Method Summary |
java.math.BigDecimal |
getProductCredit()
Get the automatically calculated product credit for the returned/refunded item. |
void |
setOrderItemAB(OrderItemAccessBean anOrderItemAB)
Set the orderItem being returned/refunded. |
void |
setQuantity(java.lang.Double aQuantity)
Set the quantity to be credited. |
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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
defaultCommandClassName
public static final java.lang.String defaultCommandClassName
NAME
public static final java.lang.String NAME
getProductCredit
public java.math.BigDecimal getProductCredit()
- Get the automatically calculated product credit for the returned/refunded item.
This does not include any adjustment credit.
- Returns:
- The amount of the credit (in the same currency of the orderItem).
setOrderItemAB
public void setOrderItemAB(OrderItemAccessBean anOrderItemAB)
- Set the orderItem being returned/refunded.
- Parameters:
anOrderItemAB
- The orderItem access bean.
setQuantity
public void setQuantity(java.lang.Double aQuantity)
- Set the quantity to be credited.
- Parameters:
aQuantity
- The quantity to be credited.