public class OrderRecordResourceApi extends Object
| Constructor and Description |
|---|
OrderRecordResourceApi() |
OrderRecordResourceApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
OrderRecordDTO |
createOrderRecord(OrderRecordDTO orderRecordDto)
createOrderRecord
1) Cellphone number must be in E.164 format;<br/>2) «PricePaid» is a price for 1 product;<br/>3) Required permissions: CAN_CREATE_ORDER.
|
com.squareup.okhttp.Call |
createOrderRecordAsync(OrderRecordDTO orderRecordDto,
ApiCallback<OrderRecordDTO> callback)
createOrderRecord (asynchronously)
1) Cellphone number must be in E.164 format;<br/>2) «PricePaid» is a price for 1 product;<br/>3) Required permissions: CAN_CREATE_ORDER.
|
com.squareup.okhttp.Call |
createOrderRecordCall(OrderRecordDTO orderRecordDto,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createOrderRecord
|
ApiResponse<OrderRecordDTO> |
createOrderRecordWithHttpInfo(OrderRecordDTO orderRecordDto)
createOrderRecord
1) Cellphone number must be in E.164 format;<br/>2) «PricePaid» is a price for 1 product;<br/>3) Required permissions: CAN_CREATE_ORDER.
|
List<OrderRecordExtendDTO> |
getAllOrderRecords(String query,
String from,
String till,
String timeZone,
String deliveryMethod,
String deliveryStatus,
Integer size,
Integer page,
String sortBy,
String sortOrder)
getAllOrderRecords
Required permissions: CAN_GET_ORDERS
|
com.squareup.okhttp.Call |
getAllOrderRecordsAsync(String query,
String from,
String till,
String timeZone,
String deliveryMethod,
String deliveryStatus,
Integer size,
Integer page,
String sortBy,
String sortOrder,
ApiCallback<List<OrderRecordExtendDTO>> callback)
getAllOrderRecords (asynchronously)
Required permissions: CAN_GET_ORDERS
|
com.squareup.okhttp.Call |
getAllOrderRecordsCall(String query,
String from,
String till,
String timeZone,
String deliveryMethod,
String deliveryStatus,
Integer size,
Integer page,
String sortBy,
String sortOrder,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getAllOrderRecords
|
ApiResponse<List<OrderRecordExtendDTO>> |
getAllOrderRecordsWithHttpInfo(String query,
String from,
String till,
String timeZone,
String deliveryMethod,
String deliveryStatus,
Integer size,
Integer page,
String sortBy,
String sortOrder)
getAllOrderRecords
Required permissions: CAN_GET_ORDERS
|
ApiClient |
getApiClient() |
OrderRecordExtendDTO |
getOrderRecord(Long id)
getOrderRecord
Required permissions: CAN_GET_ORDERS
|
com.squareup.okhttp.Call |
getOrderRecordAsync(Long id,
ApiCallback<OrderRecordExtendDTO> callback)
getOrderRecord (asynchronously)
Required permissions: CAN_GET_ORDERS
|
com.squareup.okhttp.Call |
getOrderRecordCall(Long id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getOrderRecord
|
ApiResponse<OrderRecordExtendDTO> |
getOrderRecordWithHttpInfo(Long id)
getOrderRecord
Required permissions: CAN_GET_ORDERS
|
GenericStatusDTO |
mergeVouchers(Long orderId,
String newVoucherId)
mergeVouchers
Replaces voucher IDs of order items with new voucher ID in the specified order.
|
com.squareup.okhttp.Call |
mergeVouchersAsync(Long orderId,
String newVoucherId,
ApiCallback<GenericStatusDTO> callback)
mergeVouchers (asynchronously)
Replaces voucher IDs of order items with new voucher ID in the specified order.
|
com.squareup.okhttp.Call |
mergeVouchersCall(Long orderId,
String newVoucherId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for mergeVouchers
|
ApiResponse<GenericStatusDTO> |
mergeVouchersWithHttpInfo(Long orderId,
String newVoucherId)
mergeVouchers
Replaces voucher IDs of order items with new voucher ID in the specified order.
|
void |
setApiClient(ApiClient apiClient) |
OrderRecordDTO |
updateOrderRecord(OrderRecordDTO orderRecordDto)
updateOrderRecord
1) Cellphone number must be in E.164 format;<br/>2) «PricePaid» is a price for 1 product;<br/>3) Required permissions: CAN_EDIT_ORDER.
|
com.squareup.okhttp.Call |
updateOrderRecordAsync(OrderRecordDTO orderRecordDto,
ApiCallback<OrderRecordDTO> callback)
updateOrderRecord (asynchronously)
1) Cellphone number must be in E.164 format;<br/>2) «PricePaid» is a price for 1 product;<br/>3) Required permissions: CAN_EDIT_ORDER.
|
com.squareup.okhttp.Call |
updateOrderRecordCall(OrderRecordDTO orderRecordDto,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updateOrderRecord
|
ApiResponse<OrderRecordDTO> |
updateOrderRecordWithHttpInfo(OrderRecordDTO orderRecordDto)
updateOrderRecord
1) Cellphone number must be in E.164 format;<br/>2) «PricePaid» is a price for 1 product;<br/>3) Required permissions: CAN_EDIT_ORDER.
|
public OrderRecordResourceApi()
public OrderRecordResourceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call createOrderRecordCall(OrderRecordDTO orderRecordDto, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
orderRecordDto - the OrderRecord Dto (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic OrderRecordDTO createOrderRecord(OrderRecordDTO orderRecordDto) throws ApiException
orderRecordDto - the OrderRecord Dto (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<OrderRecordDTO> createOrderRecordWithHttpInfo(OrderRecordDTO orderRecordDto) throws ApiException
orderRecordDto - the OrderRecord Dto (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createOrderRecordAsync(OrderRecordDTO orderRecordDto, ApiCallback<OrderRecordDTO> callback) throws ApiException
orderRecordDto - the OrderRecord Dto (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 com.squareup.okhttp.Call getAllOrderRecordsCall(String query, String from, String till, String timeZone, String deliveryMethod, String deliveryStatus, Integer size, Integer page, String sortBy, String sortOrder, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
query - query text (optional)from - Begin the of date range, format: YYYY-MM-DD (e.g. 2016-01-25) (optional)till - End the of date range, format: YYYY-MM-DD (e.g. 2016-01-25) (optional)timeZone - A timezone for date/time representation. Example: America/Chicago or EST. If zone is not set, then UTC timezone will be used. (optional)deliveryMethod - delivery method (optional)deliveryStatus - status of delivery (optional)size - quantity of listed records on page (optional)page - listing starts from page value (optional)sortBy - sort by (optional)sortOrder - sort order (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic List<OrderRecordExtendDTO> getAllOrderRecords(String query, String from, String till, String timeZone, String deliveryMethod, String deliveryStatus, Integer size, Integer page, String sortBy, String sortOrder) throws ApiException
query - query text (optional)from - Begin the of date range, format: YYYY-MM-DD (e.g. 2016-01-25) (optional)till - End the of date range, format: YYYY-MM-DD (e.g. 2016-01-25) (optional)timeZone - A timezone for date/time representation. Example: America/Chicago or EST. If zone is not set, then UTC timezone will be used. (optional)deliveryMethod - delivery method (optional)deliveryStatus - status of delivery (optional)size - quantity of listed records on page (optional)page - listing starts from page value (optional)sortBy - sort by (optional)sortOrder - sort order (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<OrderRecordExtendDTO>> getAllOrderRecordsWithHttpInfo(String query, String from, String till, String timeZone, String deliveryMethod, String deliveryStatus, Integer size, Integer page, String sortBy, String sortOrder) throws ApiException
query - query text (optional)from - Begin the of date range, format: YYYY-MM-DD (e.g. 2016-01-25) (optional)till - End the of date range, format: YYYY-MM-DD (e.g. 2016-01-25) (optional)timeZone - A timezone for date/time representation. Example: America/Chicago or EST. If zone is not set, then UTC timezone will be used. (optional)deliveryMethod - delivery method (optional)deliveryStatus - status of delivery (optional)size - quantity of listed records on page (optional)page - listing starts from page value (optional)sortBy - sort by (optional)sortOrder - sort order (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getAllOrderRecordsAsync(String query, String from, String till, String timeZone, String deliveryMethod, String deliveryStatus, Integer size, Integer page, String sortBy, String sortOrder, ApiCallback<List<OrderRecordExtendDTO>> callback) throws ApiException
query - query text (optional)from - Begin the of date range, format: YYYY-MM-DD (e.g. 2016-01-25) (optional)till - End the of date range, format: YYYY-MM-DD (e.g. 2016-01-25) (optional)timeZone - A timezone for date/time representation. Example: America/Chicago or EST. If zone is not set, then UTC timezone will be used. (optional)deliveryMethod - delivery method (optional)deliveryStatus - status of delivery (optional)size - quantity of listed records on page (optional)page - listing starts from page value (optional)sortBy - sort by (optional)sortOrder - sort order (optional)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 com.squareup.okhttp.Call getOrderRecordCall(Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - the internal id of order (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic OrderRecordExtendDTO getOrderRecord(Long id) throws ApiException
id - the internal id of order (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<OrderRecordExtendDTO> getOrderRecordWithHttpInfo(Long id) throws ApiException
id - the internal id of order (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getOrderRecordAsync(Long id, ApiCallback<OrderRecordExtendDTO> callback) throws ApiException
id - the internal id of order (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 com.squareup.okhttp.Call mergeVouchersCall(Long orderId, String newVoucherId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
orderId - the internal id of order (required)newVoucherId - newVoucherId (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic GenericStatusDTO mergeVouchers(Long orderId, String newVoucherId) throws ApiException
orderId - the internal id of order (required)newVoucherId - newVoucherId (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<GenericStatusDTO> mergeVouchersWithHttpInfo(Long orderId, String newVoucherId) throws ApiException
orderId - the internal id of order (required)newVoucherId - newVoucherId (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call mergeVouchersAsync(Long orderId, String newVoucherId, ApiCallback<GenericStatusDTO> callback) throws ApiException
orderId - the internal id of order (required)newVoucherId - newVoucherId (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 com.squareup.okhttp.Call updateOrderRecordCall(OrderRecordDTO orderRecordDto, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
orderRecordDto - the OrderRecord Dto (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic OrderRecordDTO updateOrderRecord(OrderRecordDTO orderRecordDto) throws ApiException
orderRecordDto - the OrderRecord Dto (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<OrderRecordDTO> updateOrderRecordWithHttpInfo(OrderRecordDTO orderRecordDto) throws ApiException
orderRecordDto - the OrderRecord Dto (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateOrderRecordAsync(OrderRecordDTO orderRecordDto, ApiCallback<OrderRecordDTO> callback) throws ApiException
orderRecordDto - the OrderRecord Dto (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 © 2018. All rights reserved.