com.ibm.commerce.tools.optools.order.commands
Interface CSROrderAdjustmentUpdateCmd
-
- 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:
- CSROrderAdjustmentUpdateCmdImpl
public interface CSROrderAdjustmentUpdateCmd extends ToolsControllerCommand
Updates the order level CSR adjustments, eCoupons, and overrides the shipping charges for the order(s).Behavior
- Applies eCoupons to the order. Previous coupons will be removed and replaced by the new ones.
- Applies order level CSR adjustment and overrides the shipping charge for the order(s).
- Prepares the order again.
Parameters
- XML
- An input xml_string that contains all the required data for updating the order level 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.
Exception Conditions
Throws all exceptions that thrown byUseCouponIdTaskCmd
,SetOrderLevelParameterCmd
andCSROrderPrepareCmd
.Error View:
- CSROrderAdjustmentUpdateErrorView
-
-
Field Summary
Fields Modifier and Type Field and Description 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.
-
Method Summary
-
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.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
-
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, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
-
-
-
-
Field Detail
-
COPYRIGHT
static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
NAME
static final java.lang.String NAME
The name of this command.- See Also:
- Constant Field Values
-
defaultCommandClassName
static final java.lang.String defaultCommandClassName
The default implementation class.- See Also:
- Constant Field Values
-
-