public class OrdersApi extends Object
| Constructor and Description |
|---|
OrdersApi() |
OrdersApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
PtsV2CreateOrderPost201Response |
createOrder(CreateOrderRequest createOrderRequest)
Create an Order
A create order request enables you to send the itemized details along with the order.
|
okhttp3.Call |
createOrderAsync(CreateOrderRequest createOrderRequest,
ApiCallback<PtsV2CreateOrderPost201Response> callback)
Create an Order (asynchronously)
A create order request enables you to send the itemized details along with the order.
|
okhttp3.Call |
createOrderCall(CreateOrderRequest createOrderRequest,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createOrder
|
ApiResponse<PtsV2CreateOrderPost201Response> |
createOrderWithHttpInfo(CreateOrderRequest createOrderRequest)
Create an Order
A create order request enables you to send the itemized details along with the order.
|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
PtsV2UpdateOrderPatch201Response |
updateOrder(String id,
UpdateOrderRequest updateOrderRequest)
Update an Order
This API can be used in two flavours - for updating the order as well as saving the order.
|
okhttp3.Call |
updateOrderAsync(String id,
UpdateOrderRequest updateOrderRequest,
ApiCallback<PtsV2UpdateOrderPatch201Response> callback)
Update an Order (asynchronously)
This API can be used in two flavours - for updating the order as well as saving the order.
|
okhttp3.Call |
updateOrderCall(String id,
UpdateOrderRequest updateOrderRequest,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updateOrder
|
ApiResponse<PtsV2UpdateOrderPatch201Response> |
updateOrderWithHttpInfo(String id,
UpdateOrderRequest updateOrderRequest)
Update an Order
This API can be used in two flavours - for updating the order as well as saving the order.
|
public OrdersApi()
public OrdersApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call createOrderCall(CreateOrderRequest createOrderRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
createOrderRequest - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic PtsV2CreateOrderPost201Response createOrder(CreateOrderRequest createOrderRequest) throws ApiException
createOrderRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<PtsV2CreateOrderPost201Response> createOrderWithHttpInfo(CreateOrderRequest createOrderRequest) throws ApiException
createOrderRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call createOrderAsync(CreateOrderRequest createOrderRequest, ApiCallback<PtsV2CreateOrderPost201Response> callback) throws ApiException
createOrderRequest - (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call updateOrderCall(String id, UpdateOrderRequest updateOrderRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - The ID returned from the original create order response. (required)updateOrderRequest - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic PtsV2UpdateOrderPatch201Response updateOrder(String id, UpdateOrderRequest updateOrderRequest) throws ApiException
id - The ID returned from the original create order response. (required)updateOrderRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<PtsV2UpdateOrderPatch201Response> updateOrderWithHttpInfo(String id, UpdateOrderRequest updateOrderRequest) throws ApiException
id - The ID returned from the original create order response. (required)updateOrderRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call updateOrderAsync(String id, UpdateOrderRequest updateOrderRequest, ApiCallback<PtsV2UpdateOrderPatch201Response> callback) throws ApiException
id - The ID returned from the original create order response. (required)updateOrderRequest - (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2025. All rights reserved.