com.ibm.commerce.returns.commands
Interface CalculateReturnItemAdjustmentPolicyCmd
-
- All Superinterfaces:
- BusinessPolicyCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
- All Known Implementing Classes:
- CalculateReturnItemAdjustmentFlatPolicyCmdImpl, CalculateReturnItemAdjustmentPercentagePolicyCmdImpl, CalculateReturnItemAdjustmentPolicyCmdImpl
public interface CalculateReturnItemAdjustmentPolicyCmd extends BusinessPolicyCommand
Interface for the command used for calculating the adjustment for a return merchandise authorization (RMA) item based on policy.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
static java.lang.String
defaultCommandClassName
static java.lang.String
NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description 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.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
-
-
-
Field Detail
-
COPYRIGHT
static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
-
defaultCommandClassName
static final java.lang.String defaultCommandClassName
- See Also:
- Constant Field Values
-
NAME
static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAdjustment
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
void setOrderItemAB(OrderItemAccessBean anOrderItemAB)
(Optional) Set the orderItem being returned/refunded.- Parameters:
anOrderItemAB
- The orderItem access bean.
-
setRMAItemAB
void setRMAItemAB(RMAItemAccessBean anRMAItemAB)
Set the RMA Item access bean which will have its adjustment updated.- Parameters:
anRMAItemAB
- The RMA item access bean.
-
-