com.ibm.commerce.tools.optools.order.commands
Interface CSROrderAdjustmentUpdateCmd
- All Superinterfaces:
- AccCommand, ControllerCommand, ECCommand, Protectable, ToolsControllerCommand
- All Known Implementing Classes:
- CSROrderAdjustmentUpdateCmdImpl
- public interface CSROrderAdjustmentUpdateCmd
- extends ToolsControllerCommand
Updates the order level menu adjustments, eCoupons, and overrides the shipping charges for the order(s).
URL calling syntax:
Https://host_name/path/CSROrderAdjustmentUpdate?XML=xml_string&URL=return_url
Parameters:
XML
An input xml_string that contains all the required data for updating the order
level menu adjustments, shipping charge and coupons used for the order.
Example xml_string:
<?xml version="1.0" encoding "UTF-8">
<order>
<customerId>10002</customerId>
<firstOrder>
<id>10001</id>
<totalShipping>
<value>90.0</value>
</totalShipping>
<totalAdjustment>
<value>20.0</value>
</totalAdjustment>
<couponIds>
<value>20.0</value>
</couponIds>
<dirtyBit>true</dirtyBit>
</firstOrder>
<secondOrder>
<id>10002</id>
<totalShipping>
<value>11.0</value>
</totalShipping>
<totalAdjustment>
<value>60.0</value>
</totalAdjustment>
<couponIds>
<value>20.0</value>
</couponIds>
<dirtyBit>true</dirtyBit>
</secondOrder>
</order>
<origFirstOrder>
<totalShipping>
<value>0.0</value>
</totalShipping>
<totalAdjustment>
<value>1.0</value>
</totalAdjustment>
</origFirstOrder>
<origSecondOrder>
<totalShipping>
<value>10.0</value>
</totalShipping>
<totalAdjustment>
<value>10.0</value>
</totalAdjustment>
</origSecondOrder>
</xml>
URL
The URL to be called when the command completes successfully
Exceptions:
It will re-throw all the exceptions that the SetOrderLevelParameterCmd and UseCouponIdCmd will throw and
specify the CSROrderAdjustmentUpdateErrorView error view command.
Field Summary |
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
defaultCommandClassName
The default implementation class. |
static java.lang.String |
NAME
The name of this interface is "com.ibm.commerce.tools.optools.order.commands.CSROrderAdjustmentUpdateCmd". |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
defaultCommandClassName
public static final java.lang.String defaultCommandClassName
- The default implementation class.
NAME
public static final java.lang.String NAME
- The name of this interface is "com.ibm.commerce.tools.optools.order.commands.CSROrderAdjustmentUpdateCmd".