com.ibm.commerce.returns.commands

Class ReturnItemDeleteCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, ReturnItemDeleteCmd, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class ReturnItemDeleteCmdImpl
    extends ReturnBaseCmdImpl
    implements ReturnItemDeleteCmd
    This is the default implementation of the controller command ReturnItemDeleteCmd interface. It deletes a return merchandise authorization (RMA) item.

    Input parameters:

    Name Description
    RMAItemId(required) RMA item ID (this can be specified multiple times).
    outRMAName(optional) the name to use for the name-value pair which will be passed to the redirected URL.
    URL (required) the URL to be called when the command completes successfully.
    forUserId (optional) it is specified when it is called by a CSR.

    Behaviour:

    • Check to see if RMA exists. If not, return an error.
    • If RMA item has receipts or credits, then don't delete the RMA item and throw com.ibm.commerce.exception.ECApplicationException with ECMessage.ECMessage._ERR_CANNOT_DELETE_RETURN_ITEM.
    • Delete the RMA item.

It utilizes these access beans:

See Also:
Serialized Form