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

All Superinterfaces:
AccCommand, ControllerCommand, ECCommand, ToolsControllerCommand
All Known Implementing Classes:
CSROrderProcessCmdImpl

public interface CSROrderProcessCmd
extends ToolsControllerCommand

Process an order on behalf of the customer.

Behavior

Parameters

XML
An input xml_string that contains all required data for creating the new order on behalf of the customer.
 Example xml_string:
  <?xml version="1.0" encoding "UTF-8">
  <order>
    <customerId>20000</customerId>
    <originatorId>1000</originatorId>
    <comment>
      <value>This is a comment.</value>
      <sendEmail>true</sendEmail>
      <emailAddress>abc@mail.com</emailAddress>
    </comment>
    <firstOrder>
      <id>10001</id>
      <billingAddressId>10001</billingAddressId>
      <dirtyBit>true</dirtyBit>
      <totalShipping>
        <value>0.0</value>
      </totalShipping>
      <totalAdjustment>
        <value>0.0</value>
      </totalAdjustment>
      <couponIds>
        <value>20.0</value>
      </couponIds>
      <payment>++
        <policyId>200</policyId>
        <paymentTCId>34</paymentTCId>
        <description>Credit Card(Offline) - VISA</description>
        <buyPageInfo>StandardCreditCard</buyPageInfo>
        <cardBrand>VISA</cardBrand>
        <cardNumber>2222222222</cardNumber>
        <cardExpiryMonth>2002</cardExpiryMonth>
        <cardExpiryYear>2002</cardExpiryYear>
      </payment>
    </firstOrder>
    <secondOrder>
      <id>10002</id>
      <billingAddressId>10001</billingAddressId>
      <dirtyBit>false</dirtyBit>
      <totalShipping>
        <value>0.0</value>
      </totalShipping>
      <totalAdjustment>
        <value>0.0</value>
      </totalAdjustment>
      <couponIds>
        <value>20.0</value>
      </couponIds>
      <payment>
        <policyId>200</policyId>
        <paymentTCId>34</paymentTCId>
        <description>Credit Card(Offline) - VISA</description>
        <buyPageInfo>StandardCreditCard</buyPageInfo>
        <cardBrand>VISA</cardBrand>
        <cardNumber>2222222222</cardNumber>
        <cardExpiryMonth>2002</cardExpiryMonth>
        <cardExpiryYear>2002</cardExpiryYear>
      </payment>
    </secondOrder>
  </order>
  <editOrderInfo>true</editOrderInfo>
  </xml>
NOTE: payment object tags will vary depending on the payment method selected.
URL
The URL to be called when the command completes successfully.

Response Parameter:

None.

Exception Conditions

It throws all the exceptions that the OrderProcessCmd will throw.

Error View:


Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
static java.lang.String defaultCommandClassName
          The default implementation class name.
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
 

Field Detail
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 name.
See Also:
Constant Field Values