public class FlashSwapApi extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
FlashSwapApi.APIlistFlashSwapOrdersRequest |
| Constructor and Description |
|---|
FlashSwapApi() |
FlashSwapApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
FlashSwapOrder |
createFlashSwapOrder(FlashSwapOrderRequest flashSwapOrderRequest)
Create a flash swap order
Initiate a flash swap preview in advance because order creation requires a preview result
|
okhttp3.Call |
createFlashSwapOrderAsync(FlashSwapOrderRequest flashSwapOrderRequest,
ApiCallback<FlashSwapOrder> _callback)
Create a flash swap order (asynchronously)
Initiate a flash swap preview in advance because order creation requires a preview result
|
okhttp3.Call |
createFlashSwapOrderCall(FlashSwapOrderRequest flashSwapOrderRequest,
ApiCallback _callback)
Build call for createFlashSwapOrder
|
ApiResponse<FlashSwapOrder> |
createFlashSwapOrderWithHttpInfo(FlashSwapOrderRequest flashSwapOrderRequest)
Create a flash swap order
Initiate a flash swap preview in advance because order creation requires a preview result
|
ApiClient |
getApiClient() |
FlashSwapOrder |
getFlashSwapOrder(Integer orderId)
Get a single flash swap order's detail
|
okhttp3.Call |
getFlashSwapOrderAsync(Integer orderId,
ApiCallback<FlashSwapOrder> _callback)
Get a single flash swap order's detail (asynchronously)
|
okhttp3.Call |
getFlashSwapOrderCall(Integer orderId,
ApiCallback _callback)
Build call for getFlashSwapOrder
|
ApiResponse<FlashSwapOrder> |
getFlashSwapOrderWithHttpInfo(Integer orderId)
Get a single flash swap order's detail
|
List<FlashSwapCurrency> |
listFlashSwapCurrencies()
List all supported currencies in flash swap
|
okhttp3.Call |
listFlashSwapCurrenciesAsync(ApiCallback<List<FlashSwapCurrency>> _callback)
List all supported currencies in flash swap (asynchronously)
|
okhttp3.Call |
listFlashSwapCurrenciesCall(ApiCallback _callback)
Build call for listFlashSwapCurrencies
|
ApiResponse<List<FlashSwapCurrency>> |
listFlashSwapCurrenciesWithHttpInfo()
List all supported currencies in flash swap
|
FlashSwapApi.APIlistFlashSwapOrdersRequest |
listFlashSwapOrders()
List all flash swap orders
|
FlashSwapOrderPreview |
previewFlashSwapOrder(FlashSwapPreviewRequest flashSwapPreviewRequest)
Initiate a flash swap order preview
|
okhttp3.Call |
previewFlashSwapOrderAsync(FlashSwapPreviewRequest flashSwapPreviewRequest,
ApiCallback<FlashSwapOrderPreview> _callback)
Initiate a flash swap order preview (asynchronously)
|
okhttp3.Call |
previewFlashSwapOrderCall(FlashSwapPreviewRequest flashSwapPreviewRequest,
ApiCallback _callback)
Build call for previewFlashSwapOrder
|
ApiResponse<FlashSwapOrderPreview> |
previewFlashSwapOrderWithHttpInfo(FlashSwapPreviewRequest flashSwapPreviewRequest)
Initiate a flash swap order preview
|
void |
setApiClient(ApiClient apiClient) |
public FlashSwapApi()
public FlashSwapApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call listFlashSwapCurrenciesCall(ApiCallback _callback) throws ApiException
_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public List<FlashSwapCurrency> listFlashSwapCurrencies() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public ApiResponse<List<FlashSwapCurrency>> listFlashSwapCurrenciesWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call listFlashSwapCurrenciesAsync(ApiCallback<List<FlashSwapCurrency>> _callback) throws ApiException
_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public FlashSwapApi.APIlistFlashSwapOrdersRequest listFlashSwapOrders()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call createFlashSwapOrderCall(FlashSwapOrderRequest flashSwapOrderRequest, ApiCallback _callback) throws ApiException
flashSwapOrderRequest - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 201 | The flash swap order is created successfully | - |
public FlashSwapOrder createFlashSwapOrder(FlashSwapOrderRequest flashSwapOrderRequest) throws ApiException
flashSwapOrderRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | The flash swap order is created successfully | - |
public ApiResponse<FlashSwapOrder> createFlashSwapOrderWithHttpInfo(FlashSwapOrderRequest flashSwapOrderRequest) throws ApiException
flashSwapOrderRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | The flash swap order is created successfully | - |
public okhttp3.Call createFlashSwapOrderAsync(FlashSwapOrderRequest flashSwapOrderRequest, ApiCallback<FlashSwapOrder> _callback) throws ApiException
flashSwapOrderRequest - (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 object| Status Code | Description | Response Headers |
| 201 | The flash swap order is created successfully | - |
public okhttp3.Call getFlashSwapOrderCall(Integer orderId, ApiCallback _callback) throws ApiException
orderId - Flash swap order ID (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public FlashSwapOrder getFlashSwapOrder(Integer orderId) throws ApiException
orderId - Flash swap order ID (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public ApiResponse<FlashSwapOrder> getFlashSwapOrderWithHttpInfo(Integer orderId) throws ApiException
orderId - Flash swap order ID (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call getFlashSwapOrderAsync(Integer orderId, ApiCallback<FlashSwapOrder> _callback) throws ApiException
orderId - Flash swap order ID (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 object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call previewFlashSwapOrderCall(FlashSwapPreviewRequest flashSwapPreviewRequest, ApiCallback _callback) throws ApiException
flashSwapPreviewRequest - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | The flash swap order successfully previewed | - |
public FlashSwapOrderPreview previewFlashSwapOrder(FlashSwapPreviewRequest flashSwapPreviewRequest) throws ApiException
flashSwapPreviewRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | The flash swap order successfully previewed | - |
public ApiResponse<FlashSwapOrderPreview> previewFlashSwapOrderWithHttpInfo(FlashSwapPreviewRequest flashSwapPreviewRequest) throws ApiException
flashSwapPreviewRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | The flash swap order successfully previewed | - |
public okhttp3.Call previewFlashSwapOrderAsync(FlashSwapPreviewRequest flashSwapPreviewRequest, ApiCallback<FlashSwapOrderPreview> _callback) throws ApiException
flashSwapPreviewRequest - (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 object| Status Code | Description | Response Headers |
| 200 | The flash swap order successfully previewed | - |
Copyright © 2023. All rights reserved.