com.ibm.commerce.tools.optools.returns.commands
Interface CSRReturnItemUpdateCmd
- All Superinterfaces:
- AccCommand, ControllerCommand, ECCommand, Protectable, ToolsControllerCommand
- All Known Implementing Classes:
- CSRReturnItemUpdateCmdImpl
- public interface CSRReturnItemUpdateCmd
- extends ToolsControllerCommand
Brief Description:
Updates one or more return items in a return.
This command is a wrapper for ReturnItemUpdateCmd command.
See the command class com.ibm.commerce.returns.commands.ReturnItemUpdateCmd for more detail
information of the behavior.
Input parameters:
1) XML - An xml input stream representing a list of return items to add to a return.
The following is a sample value for the XML parameter.
<XML>
<customerId>1234</customerId>
<returnItem>
<returnItemId>10051</orderItemId>
<returnQuantity>1</returnQuantity>
<creditAdjustment>29.99</creditAdjustment>
<returnToWarehouse>yes</returnToWarehouse>
<reasonForReturnCode>defective</reasonForReturnCode>
<comment>The product does not work</comment>
</returnItem>
<returnItem>
...
</returnItem>
</XML>
The mandatory data in the xml stream are the following:
- customerId
- returnItemId
2) URL - The URL to redirect to if the command completes successfully.
Output parameters:
None.
Exceptions:
ECApplicationException - if ReturnItemUpdateCmd throws an exception
Commands called:
1) ReturnItemUpdateCmd
Special behavior:
1) When the ReturnItemUpdateCmd command is called the forUserId paremeter is set in the request
properties to the value in the <customerId> xml tag.
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
defaultCommandClassName
public static final java.lang.String defaultCommandClassName
- The default implementation class.
NAME
public static final java.lang.String NAME
- Interface name