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

Interface CSROrderRollBackCmd

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


    public interface CSROrderRollBackCmd
    extends ToolsControllerCommand
    Rollback all the changes to the order based on the information in the backup order.

    Behavior

    • Changes the first order so that it will contain the same order items as those order items in the backup order. Sets the shipping charge and menu adjustment of the first order as those values provided by the XML.
    • Re-process the first order.
    • If the second order exists, it will be canceled.
    • Deletes the backup order

    Parameters

    XML
    An input xml_string that contains the details of the order which has changes need to be rolled back.
     Example xml_string:
            <?xml version="1.0" encoding "UTF-8">
                    <order>
                            <customerId>              20000   </customerId>
                            <billingAddressId>        1000    </billingAddressId>
                            <firstOrder>
                                    <id>              10001   </id>
                            </firstOrder>
                            <secondOrder>
                                    <id>              10002   </id>
                            </secondOrder>
                            <backupOrder>
                                    <id>              10002   </id>
                                    <totalShipping>
                                            <value>0.0</value>
                                    </totalShipping>
                                    <totalAdjustment>
                                        <value>0.0</value>
                                    </totalAdjustment>
                                    <couponIds>123456</couponIds>
                                    <grandTotal>10000</grandTotal>
    
                            </backupOrder>
                    </order>
            </xml>
     
    URL
    The URL to be called when the command completes successfully.

    Response Parameter:

    None.

    Exception Conditions

    It throws all the exceptions thrown by OrderItemAdd, OrderItemUpdate, OrderItemDelete, OrderPrepare, OrderProcess, OrderProcess, CSROrderCancel and DoCancel commands will throw.

    Error View:

    • CSROrderRollBackErrorView
    • 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.
        See Also:
        Constant Field Values