static public field O2GResponseType.CREATE_ORDER_RESPONSE

Brief

The constant represents a type of a response to a request for an order creation.

Details

An order creation is a several step process.
First, you must assign the Constants.Commands.CreateOrder value to the O2GRequestParamsEnum.COMMAND parameter by using the O2GValueMap.setString method. For example,

valueMap.setString(O2GRequestParamsEnum.COMMAND, Constants.Commands.CreateOrder);

You must also populate the rest of the O2GValueMap parameters as described in the Create Order section.

Then, you must create a request by passing the value map as an argument to the O2GRequestFactory.createOrderRequest method. For example,

O2GRequest request = requestFactory.createOrderRequest(valueMap);

And finally, you must send the request by using the O2GSession.sendRequest method. For example,

mSession.sendRequest(request);

The response to this request is of the CREATE_ORDER_RESPONSE type. An instance of the O2GResponse class is the response parameter in your implementation of the IO2GResponseListener.onRequestCompleted method.

To process the contents of a response object of the CREATE_ORDER_RESPONSE type, use an instance of the O2GOrderResponseReader class.

Declared in O2GResponseType

back