com.ibm.commerce.tools.optools.order.commands

Interface CSROrderItemUpdateCmd

  • 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:
    CSROrderItemUpdateCmdImpl


    public interface CSROrderItemUpdateCmd
    extends ToolsControllerCommand
    Updates one or more order items in an order.

    Behavior

    • Updates order items by calling OrderItemUpdateCmd.
    • If the new quantity of an item is zero, the item will be removed from the order.
    • Returns the firstOrderId and SecondOrderId that are specified in the xml_string.

    Parameters

    XML
    An input xml_string that contains all the required data for one or many order items.
     Example xml_string:
     <?xml version="1.0" encoding "UTF-8">
            <order>
                    <customerId>10001</customerId>
                    <billingAddressId>1001</billingAddressId>
                    <firstOrder>
                            <id>20001</id>
                    </firstOrder>
                    <secondOrder>
                            <id>20002</id>
                    <secondOrder>
            </order>
            <orderItem>
                    <orderItemId>10001</orderItemId>
                    <tradingId>1.0</tradingId>
                    <quantity>1.0</quantity>
                    <shipAddrId>10001</shipAddrId>
                    <shipModeId>30001</shipModeId>
                    <orderId>10001</orderId>
            </orderItem>
     </xml>           
     
    URL
    The URL to be called when the command completes successfully.

    Response Parameter:

    firstOrderId
    The order ID of the first order.
    secondOrderId
    The order ID of the second order.

    Exception Conditions

    Throws all exceptions that thrown by OrderItemUpdateCmd.

    Error View:

    • CSROrderItemUpdateErrorView
    • Field Detail

      • COPYRIGHT

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

        static final java.lang.String defaultCommandClassName
        The default implementation class name.
        See Also:
        Constant Field Values