com.ibm.commerce.inventory.commands

Interface ReturnReasonCodeCreateCmd

  • 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, ToolsControllerCommand
    All Known Implementing Classes:
    ReturnReasonCodeCreateCmdImpl


    public interface ReturnReasonCodeCreateCmd
    extends ToolsControllerCommand
    Create a new return reason.

    This command requires to have the store entity id and language id set in the command context.

    Parameters

    EC_XMLObject
    An input xml_string that contains all required data for creating a new return reason.

    Example xml_string for return reason:

    
     <?xml version="1.0" encoding="UTF-8"?>
     <XML>
            <XMLFile>inventory.ReturnReasonDetail</XMLFile>
            <code>Return reason code1</code>
            <description>Return reason code description</description>
            <reasonType>B</reasonType>
     </XML>
    
     
    URL
    The URL to be called when the command completes successfully.

    Response Parameters

    rtnreasonId
    Return the identifier of the return reason code.

    Exceptions

    When the required fields are missing or not in the right data type, this command will throw exception to indicate which field is missing or bad.

    • Method Detail

      • setReturnReasonCode

        void setReturnReasonCode(java.lang.String newReturnReasonCode)
        Set the return reason code.
        Parameters:
        newReturnReasonCode - java.lang.String
      • setReturnReasonDescription

        void setReturnReasonDescription(java.lang.String newReturnReasonDescription)
        Set the description of the reason for the return.
        Parameters:
        newReturnReasonDescription - java.lang.String
      • setReturnReasonType

        void setReturnReasonType(java.lang.String newReturnReasonType)
        Set the type of return reason code.
        Parameters:
        newReturnReasonType - java.lang.String