You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 23, 2021. It is now read-only.
String locationId ="locationId_example"; // String | The ID of the order's associated location.
257
+
String orderId ="orderId_example"; // String | The ID of the order to update.
256
258
UpdateOrderRequest body =newUpdateOrderRequest(); // UpdateOrderRequest | An object containing the fields to POST for the request. See the corresponding object definition for field details.
257
259
try {
258
-
UpdateOrderResponse result = apiInstance.updateOrder(body);
260
+
UpdateOrderResponse result = apiInstance.updateOrder(locationId, orderId, body);
259
261
System.out.println(result);
260
262
} catch (ApiException e) {
261
263
System.err.println("Exception when calling OrdersApi#updateOrder");
**locationId** | **String**| The ID of the order's associated location. |
273
+
**orderId** | **String**| The ID of the order to update. |
270
274
**body** | [**UpdateOrderRequest**](UpdateOrderRequest.md)| An object containing the fields to POST for the request. See the corresponding object definition for field details. |
Copy file name to clipboardExpand all lines: src/main/java/com/squareup/connect/api/OrdersApi.java
+32-4
Original file line number
Diff line number
Diff line change
@@ -421,19 +421,33 @@ public void setApiClient(ApiClient apiClient) {
421
421
/**
422
422
* UpdateOrder
423
423
* Updates an open [Order](#type-order) by adding, replacing, or deleting fields. Orders with a `COMPLETED` or `CANCELED` state cannot be updated. An UpdateOrder request requires the following: - The `order_id` in the endpoint path, identifying the order to update. - The latest `version` of the order to update. - The [sparse order](/orders-api/manage-orders#sparse-order-objects) containing only the fields to update and the version the update is being applied to. - If deleting fields, the [dot notation paths](/orders-api/manage-orders#on-dot-notation) identifying fields to clear. To pay for an order, please refer to the [Pay for Orders](/orders-api/pay-for-orders) guide. To learn more about the Orders API, see the [Orders API Overview](/orders-api/what-it-does).
424
+
* @param locationId The ID of the order's associated location. (required)
425
+
* @param orderId The ID of the order to update. (required)
424
426
* @param body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required)
@@ -463,20 +477,34 @@ public void setApiClient(ApiClient apiClient) {
463
477
/**
464
478
* UpdateOrder
465
479
* Updates an open [Order](#type-order) by adding, replacing, or deleting fields. Orders with a `COMPLETED` or `CANCELED` state cannot be updated. An UpdateOrder request requires the following: - The `order_id` in the endpoint path, identifying the order to update. - The latest `version` of the order to update. - The [sparse order](/orders-api/manage-orders#sparse-order-objects) containing only the fields to update and the version the update is being applied to. - If deleting fields, the [dot notation paths](/orders-api/manage-orders#on-dot-notation) identifying fields to clear. To pay for an order, please refer to the [Pay for Orders](/orders-api/pay-for-orders) guide. To learn more about the Orders API, see the [Orders API Overview](/orders-api/what-it-does).
480
+
* @param locationId The ID of the order's associated location. (required)
481
+
* @param orderId The ID of the order to update. (required)
466
482
* @param body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required)
0 commit comments