Process an order on behalf of the customer.
Behavior
Parameters
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.
Response Parameter:
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 |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.