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

All Superinterfaces:
AccCommand, ControllerCommand, ECCommand, Protectable, 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

Parameters

XML
An input xml_string that contains the details of the order which has changes need to be rollbacked.
 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:


Field Summary
static java.lang.String COPYRIGHT
IBM copyright notice field.
static java.lang.String defaultCommandClassName
The default implementation class.
static java.lang.String NAME
The name of this command.
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

COPYRIGHT

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

NAME

public static final java.lang.String NAME
The name of this command.
See Also:
Constant Field Values

defaultCommandClassName

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

Feedback