BaseApi.RequestExecutor, BaseApi.RequestSupplier, BaseApi.ResponseHandler<T>authManagers, config, httpCallback, internalUserAgent| Constructor and Description |
|---|
DefaultOrdersApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers)
Initializes the controller.
|
DefaultOrdersApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers,
HttpCallback httpCallback)
Initializes the controller with HTTPCallback.
|
| Modifier and Type | Method and Description |
|---|---|
BatchRetrieveOrdersResponse |
batchRetrieveOrders(BatchRetrieveOrdersRequest body)
Retrieves a set of [orders]($m/Order) by their IDs.
|
CompletableFuture<BatchRetrieveOrdersResponse> |
batchRetrieveOrdersAsync(BatchRetrieveOrdersRequest body)
Retrieves a set of [orders]($m/Order) by their IDs.
|
CalculateOrderResponse |
calculateOrder(CalculateOrderRequest body)
Enables applications to preview order pricing without creating an order.
|
CompletableFuture<CalculateOrderResponse> |
calculateOrderAsync(CalculateOrderRequest body)
Enables applications to preview order pricing without creating an order.
|
CloneOrderResponse |
cloneOrder(CloneOrderRequest body)
Creates a new order, in the `DRAFT` state, by duplicating an existing order.
|
CompletableFuture<CloneOrderResponse> |
cloneOrderAsync(CloneOrderRequest body)
Creates a new order, in the `DRAFT` state, by duplicating an existing order.
|
CreateOrderResponse |
createOrder(CreateOrderRequest body)
Creates a new [order]($m/Order) that can include information about products for purchase and
settings to apply to the purchase.
|
CompletableFuture<CreateOrderResponse> |
createOrderAsync(CreateOrderRequest body)
Creates a new [order]($m/Order) that can include information about products for purchase and
settings to apply to the purchase.
|
PayOrderResponse |
payOrder(String orderId,
PayOrderRequest body)
Pay for an [order]($m/Order) using one or more approved [payments]($m/Payment) or settle an
order with a total of `0`.
|
CompletableFuture<PayOrderResponse> |
payOrderAsync(String orderId,
PayOrderRequest body)
Pay for an [order]($m/Order) using one or more approved [payments]($m/Payment) or settle an
order with a total of `0`.
|
RetrieveOrderResponse |
retrieveOrder(String orderId)
Retrieves an [Order]($m/Order) by ID.
|
CompletableFuture<RetrieveOrderResponse> |
retrieveOrderAsync(String orderId)
Retrieves an [Order]($m/Order) by ID.
|
SearchOrdersResponse |
searchOrders(SearchOrdersRequest body)
Search all orders for one or more locations.
|
CompletableFuture<SearchOrdersResponse> |
searchOrdersAsync(SearchOrdersRequest body)
Search all orders for one or more locations.
|
UpdateOrderResponse |
updateOrder(String orderId,
UpdateOrderRequest body)
Updates an open [order]($m/Order) by adding, replacing, or deleting fields.
|
CompletableFuture<UpdateOrderResponse> |
updateOrderAsync(String orderId,
UpdateOrderRequest body)
Updates an open [order]($m/Order) by adding, replacing, or deleting fields.
|
getClientInstance, getHttpCallback, makeHttpCallAsync, validateResponsepublic DefaultOrdersApi(Configuration config, HttpClient httpClient, Map<String,AuthManager> authManagers)
config - Configurations added in client.httpClient - Send HTTP requests and read the responses.authManagers - Apply authorization to requests.public DefaultOrdersApi(Configuration config, HttpClient httpClient, Map<String,AuthManager> authManagers, HttpCallback httpCallback)
config - Configurations added in client.httpClient - Send HTTP requests and read the responses.authManagers - Apply authorization to requests.httpCallback - Callback to be called before and after the HTTP call.public CreateOrderResponse createOrder(CreateOrderRequest body) throws ApiException, IOException
createOrder in interface OrdersApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<CreateOrderResponse> createOrderAsync(CreateOrderRequest body)
createOrderAsync in interface OrdersApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public BatchRetrieveOrdersResponse batchRetrieveOrders(BatchRetrieveOrdersRequest body) throws ApiException, IOException
batchRetrieveOrders in interface OrdersApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<BatchRetrieveOrdersResponse> batchRetrieveOrdersAsync(BatchRetrieveOrdersRequest body)
batchRetrieveOrdersAsync in interface OrdersApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public CalculateOrderResponse calculateOrder(CalculateOrderRequest body) throws ApiException, IOException
calculateOrder in interface OrdersApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<CalculateOrderResponse> calculateOrderAsync(CalculateOrderRequest body)
calculateOrderAsync in interface OrdersApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public CloneOrderResponse cloneOrder(CloneOrderRequest body) throws ApiException, IOException
cloneOrder in interface OrdersApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<CloneOrderResponse> cloneOrderAsync(CloneOrderRequest body)
cloneOrderAsync in interface OrdersApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public SearchOrdersResponse searchOrders(SearchOrdersRequest body) throws ApiException, IOException
searchOrders in interface OrdersApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<SearchOrdersResponse> searchOrdersAsync(SearchOrdersRequest body)
searchOrdersAsync in interface OrdersApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public RetrieveOrderResponse retrieveOrder(String orderId) throws ApiException, IOException
retrieveOrder in interface OrdersApiorderId - Required parameter: The ID of the order to retrieve.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<RetrieveOrderResponse> retrieveOrderAsync(String orderId)
retrieveOrderAsync in interface OrdersApiorderId - Required parameter: The ID of the order to retrieve.public UpdateOrderResponse updateOrder(String orderId, UpdateOrderRequest body) throws ApiException, IOException
updateOrder in interface OrdersApiorderId - Required parameter: The ID of the order to update.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<UpdateOrderResponse> updateOrderAsync(String orderId, UpdateOrderRequest body)
updateOrderAsync in interface OrdersApiorderId - Required parameter: The ID of the order to update.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public PayOrderResponse payOrder(String orderId, PayOrderRequest body) throws ApiException, IOException
payOrder in interface OrdersApiorderId - Required parameter: The ID of the order being paid.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<PayOrderResponse> payOrderAsync(String orderId, PayOrderRequest body)
payOrderAsync in interface OrdersApiorderId - Required parameter: The ID of the order being paid.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.Copyright © 2022. All rights reserved.