src/test/java/com/squareup/connect/api/OrdersApiTest.java
@Test
    public void createOrderTest() throws ApiException {
        String locationId = null;
        CreateOrderRequest body = null;
        CreateOrderResponse response = api.createOrder(locationId, body);

        // TODO: test validations
    }
/**
     * CreateOrder
     *
     * Creates an [Order](#type-order) that can then be referenced as &#x60;order_id&#x60; in a request to the [Charge](#endpoint-charge) endpoint. Orders specify products for purchase, along with discounts, taxes, and other settings to apply to the purchase.  To associate a created order with a request to the Charge endpoint, provide the order&#39;s &#x60;id&#x60; in the &#x60;order_id&#x60; field of your request.  You cannot modify an order after you create it. If you need to modify an order, instead create a new order with modified details.  To learn more about the Orders API, see the [Orders API Overview](https://docs.connect.squareup.com/articles/orders-api-overview).
     *
     * @throws ApiException
     *          if the Api call fails
     */
CreateOrder
Creates an [Order](#type-order) that can then be referenced as `order_id` in a request to the [Charge](#endpoint-charge) endpoint. Orders specify products for purchase, along with discounts, taxes, and other settings to apply to the purchase.  To associate a created order with a request to the Charge endpoint, provide the order's `id` in the `order_id` field of your request.  You cannot modify an order after you create it. If you need to modify an order, instead create a new order with modified details.  To learn more about the Orders API, see the [Orders API Overview].

@throws ApiException
if the Api call fails
CreateOrder Creates an [ Order ] ( #type - order ) that can then be referenced as ` order_id ` in a request to the [ Charge ] ( #endpoint - charge ) endpoint . Orders specify products for purchase along with discounts taxes and other settings to apply to the purchase . To associate a created order with a request to the Charge endpoint provide the order ' s ` id ` in the ` order_id ` field of your request . You cannot modify an order after you create it . If you need to modify an order instead create a new order with modified details . To learn more about the Orders API see the [ Orders API Overview ] . @throws ApiException if the Api call fails
@Test
    public void createOrderTest() throws ApiException {
        String locationId = null;
        CreateOrderRequest body = null;
        CreateOrderResponse response = api.createOrder(locationId, body);
    }
@ Test public void createOrderTest ( ) throws ApiException { String locationId = null ; CreateOrderRequest body = null ; CreateOrderResponse response = api . createOrder ( locationId , body ) ; }
CreateOrder
 Creates an [Order](#type-order) that can then be referenced as &#x60;order_id&#x60; in a request to the [Charge](#endpoint-charge) endpoint.
CreateOrder Creates an [ Order ] ( #type - order ) that can then be referenced as &#x60 ; order_id&#x60 ; in a request to the [ Charge ] ( #endpoint - charge ) endpoint .
// TODO: test validations