com.ibm.commerce.returns.commands

Interface ReturnItemAddCmd

  • All Superinterfaces:
    AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ControllerCommand, ECCommand, Protectable, java.io.Serializable, com.ibm.websphere.command.TargetableCommand
    All Known Implementing Classes:
    ReturnItemAddCmdImpl, ReturnItemBaseCmdImpl, ReturnItemUpdateCmdImpl


    public interface ReturnItemAddCmd
    extends ControllerCommand
    This controller command is used to used to add an item to a return merchandise authorization (RMA).

    Controller command URL calling syntax

    https://host_name/path/ReturnItemAddCmd?RMAId=RMAId_value&URL=redirect_url&orderId_i=orderId_value&catEntryId_i=catEntryId_value&attrName_i=attrName_value&attrValue_i=attrValue_value&quantity_t=quantity_value&UOM_i=UOM_value&commment_i=comment_value&reason_i&outRMANname=outRMANname_value&creditAdjustment_i=creditAdjustment_value&forUserId=forUserId_value

    Parameters

    orderItemId_i
    order item id, if not specified must specify a catEntryId
    catEntryId_i
    catalog entry being returned if order item is not provided. This must be a product or an item
    attrName_i (optional)
    (only if catEntry_id is specified) any distinct attribute defined for the product
    attrValue_i (optional)
    (only if catEntry_id is specified) the value of the attribute
    RMAId
    RMA ID or '**' to create one. If this is not specified, '**' is assumed.
    quantity_i (mandatory)
    quantity being returned (in CATENTRY units)
    UOM_i(optional)
    UOM for the quantity being returned (in CATENTRY units)
    comment_i (optional)
    comment for item being returned
    reason_i (mandatory)
    purchaser provided reason for return (CODE column of the RTNREASON table with reasontype in ('B', 'C'))
    outRMAName (optional)
    the name to use for the name-value pair which will be passed to the redirected URL. This parameter is useful for chaining commands. If this parameter is not specified then "RMAId" will be used as the name portion of the RMA id name-value pair. And passed to the redirected URL.
    URL (optional)
    the URL to be called when the command completes successfully.
    creditAdjustment_i (optional and only valid if forUserId is set)
    the amount to adjust the product credit amount by. The format of this number must fit the rules for a java.math.BigDecimal object. The number must use a period for the decimal place. This amount will override any amount calculated by the CalculateReturnItemAdjustment task command.
    forUser(when called by a CSR)
    The logon ID of the customer on whose behalf the command will be run
    forUserId (when called by a CSR)
    userid of the customer
    The default implementation of this command is ReturnItemAddCmdImpl. The ReturnItemAdd URL is mapped to this command by default.
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        The IBM copyright notice field.
        See Also:
        Constant Field Values
      • NAME

        static final java.lang.String NAME
        The full name of this command.
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default implementation of this command.
        See Also:
        Constant Field Values