public class MarginApi extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
MarginApi.APIlistFundingAccountsRequest |
class |
MarginApi.APIlistLoanRecordsRequest |
class |
MarginApi.APIlistLoansRequest |
class |
MarginApi.APIlistMarginAccountBookRequest |
class |
MarginApi.APIlistMarginAccountsRequest |
| Constructor and Description |
|---|
MarginApi() |
MarginApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
Loan |
cancelLoan(String loanId,
String currency)
Cancel lending loan
Only lending loans can be cancelled
|
okhttp3.Call |
cancelLoanAsync(String loanId,
String currency,
ApiCallback<Loan> _callback)
Cancel lending loan (asynchronously)
Only lending loans can be cancelled
|
okhttp3.Call |
cancelLoanCall(String loanId,
String currency,
ApiCallback _callback)
Build call for cancelLoan
|
ApiResponse<Loan> |
cancelLoanWithHttpInfo(String loanId,
String currency)
Cancel lending loan
Only lending loans can be cancelled
|
Loan |
createLoan(Loan loan)
Lend or borrow
|
okhttp3.Call |
createLoanAsync(Loan loan,
ApiCallback<Loan> _callback)
Lend or borrow (asynchronously)
|
okhttp3.Call |
createLoanCall(Loan loan,
ApiCallback _callback)
Build call for createLoan
|
ApiResponse<Loan> |
createLoanWithHttpInfo(Loan loan)
Lend or borrow
|
ApiClient |
getApiClient() |
AutoRepaySetting |
getAutoRepayStatus()
Retrieve user auto repayment setting
|
okhttp3.Call |
getAutoRepayStatusAsync(ApiCallback<AutoRepaySetting> _callback)
Retrieve user auto repayment setting (asynchronously)
|
okhttp3.Call |
getAutoRepayStatusCall(ApiCallback _callback)
Build call for getAutoRepayStatus
|
ApiResponse<AutoRepaySetting> |
getAutoRepayStatusWithHttpInfo()
Retrieve user auto repayment setting
|
Loan |
getLoan(String loanId,
String side)
Retrieve one single loan detail
|
okhttp3.Call |
getLoanAsync(String loanId,
String side,
ApiCallback<Loan> _callback)
Retrieve one single loan detail (asynchronously)
|
okhttp3.Call |
getLoanCall(String loanId,
String side,
ApiCallback _callback)
Build call for getLoan
|
LoanRecord |
getLoanRecord(String loanRecordId,
String loanId)
Get one single loan record
|
okhttp3.Call |
getLoanRecordAsync(String loanRecordId,
String loanId,
ApiCallback<LoanRecord> _callback)
Get one single loan record (asynchronously)
|
okhttp3.Call |
getLoanRecordCall(String loanRecordId,
String loanId,
ApiCallback _callback)
Build call for getLoanRecord
|
ApiResponse<LoanRecord> |
getLoanRecordWithHttpInfo(String loanRecordId,
String loanId)
Get one single loan record
|
ApiResponse<Loan> |
getLoanWithHttpInfo(String loanId,
String side)
Retrieve one single loan detail
|
MarginCurrencyPair |
getMarginCurrencyPair(String currencyPair)
Query one single margin currency pair
|
okhttp3.Call |
getMarginCurrencyPairAsync(String currencyPair,
ApiCallback<MarginCurrencyPair> _callback)
Query one single margin currency pair (asynchronously)
|
okhttp3.Call |
getMarginCurrencyPairCall(String currencyPair,
ApiCallback _callback)
Build call for getMarginCurrencyPair
|
ApiResponse<MarginCurrencyPair> |
getMarginCurrencyPairWithHttpInfo(String currencyPair)
Query one single margin currency pair
|
MarginApi.APIlistFundingAccountsRequest |
listFundingAccounts()
Funding account list
|
List<FundingBookItem> |
listFundingBook(String currency)
Order book of lending loans
|
okhttp3.Call |
listFundingBookAsync(String currency,
ApiCallback<List<FundingBookItem>> _callback)
Order book of lending loans (asynchronously)
|
okhttp3.Call |
listFundingBookCall(String currency,
ApiCallback _callback)
Build call for listFundingBook
|
ApiResponse<List<FundingBookItem>> |
listFundingBookWithHttpInfo(String currency)
Order book of lending loans
|
MarginApi.APIlistLoanRecordsRequest |
listLoanRecords(String loanId)
List repayment records of specified loan
|
List<Repayment> |
listLoanRepayments(String loanId)
List loan repayment records
|
okhttp3.Call |
listLoanRepaymentsAsync(String loanId,
ApiCallback<List<Repayment>> _callback)
List loan repayment records (asynchronously)
|
okhttp3.Call |
listLoanRepaymentsCall(String loanId,
ApiCallback _callback)
Build call for listLoanRepayments
|
ApiResponse<List<Repayment>> |
listLoanRepaymentsWithHttpInfo(String loanId)
List loan repayment records
|
MarginApi.APIlistLoansRequest |
listLoans(String status,
String side)
List all loans
|
MarginApi.APIlistMarginAccountBookRequest |
listMarginAccountBook()
List margin account balance change history
Only transferring from or to margin account are provided for now.
|
MarginApi.APIlistMarginAccountsRequest |
listMarginAccounts()
Margin account list
|
List<MarginCurrencyPair> |
listMarginCurrencyPairs()
List all supported currency pairs supported in margin trading
|
okhttp3.Call |
listMarginCurrencyPairsAsync(ApiCallback<List<MarginCurrencyPair>> _callback)
List all supported currency pairs supported in margin trading (asynchronously)
|
okhttp3.Call |
listMarginCurrencyPairsCall(ApiCallback _callback)
Build call for listMarginCurrencyPairs
|
ApiResponse<List<MarginCurrencyPair>> |
listMarginCurrencyPairsWithHttpInfo()
List all supported currency pairs supported in margin trading
|
Loan |
mergeLoans(String currency,
String ids)
Merge multiple lending loans
|
okhttp3.Call |
mergeLoansAsync(String currency,
String ids,
ApiCallback<Loan> _callback)
Merge multiple lending loans (asynchronously)
|
okhttp3.Call |
mergeLoansCall(String currency,
String ids,
ApiCallback _callback)
Build call for mergeLoans
|
ApiResponse<Loan> |
mergeLoansWithHttpInfo(String currency,
String ids)
Merge multiple lending loans
|
Loan |
repayLoan(String loanId,
RepayRequest repayRequest)
Repay a loan
|
okhttp3.Call |
repayLoanAsync(String loanId,
RepayRequest repayRequest,
ApiCallback<Loan> _callback)
Repay a loan (asynchronously)
|
okhttp3.Call |
repayLoanCall(String loanId,
RepayRequest repayRequest,
ApiCallback _callback)
Build call for repayLoan
|
ApiResponse<Loan> |
repayLoanWithHttpInfo(String loanId,
RepayRequest repayRequest)
Repay a loan
|
void |
setApiClient(ApiClient apiClient) |
AutoRepaySetting |
setAutoRepay(String status)
Update user's auto repayment setting
|
okhttp3.Call |
setAutoRepayAsync(String status,
ApiCallback<AutoRepaySetting> _callback)
Update user's auto repayment setting (asynchronously)
|
okhttp3.Call |
setAutoRepayCall(String status,
ApiCallback _callback)
Build call for setAutoRepay
|
ApiResponse<AutoRepaySetting> |
setAutoRepayWithHttpInfo(String status)
Update user's auto repayment setting
|
Loan |
updateLoan(String loanId,
LoanPatch loanPatch)
Modify a loan
Only `auto_renew` modification is supported currently
|
okhttp3.Call |
updateLoanAsync(String loanId,
LoanPatch loanPatch,
ApiCallback<Loan> _callback)
Modify a loan (asynchronously)
Only `auto_renew` modification is supported currently
|
okhttp3.Call |
updateLoanCall(String loanId,
LoanPatch loanPatch,
ApiCallback _callback)
Build call for updateLoan
|
LoanRecord |
updateLoanRecord(String loanRecordId,
LoanPatch loanPatch)
Modify a loan record
Only `auto_renew` modification is supported currently
|
okhttp3.Call |
updateLoanRecordAsync(String loanRecordId,
LoanPatch loanPatch,
ApiCallback<LoanRecord> _callback)
Modify a loan record (asynchronously)
Only `auto_renew` modification is supported currently
|
okhttp3.Call |
updateLoanRecordCall(String loanRecordId,
LoanPatch loanPatch,
ApiCallback _callback)
Build call for updateLoanRecord
|
ApiResponse<LoanRecord> |
updateLoanRecordWithHttpInfo(String loanRecordId,
LoanPatch loanPatch)
Modify a loan record
Only `auto_renew` modification is supported currently
|
ApiResponse<Loan> |
updateLoanWithHttpInfo(String loanId,
LoanPatch loanPatch)
Modify a loan
Only `auto_renew` modification is supported currently
|
public MarginApi()
public MarginApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call listMarginCurrencyPairsCall(ApiCallback _callback) throws ApiException
_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public List<MarginCurrencyPair> listMarginCurrencyPairs() 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 | List retrieved | - |
public ApiResponse<List<MarginCurrencyPair>> listMarginCurrencyPairsWithHttpInfo() 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 | List retrieved | - |
public okhttp3.Call listMarginCurrencyPairsAsync(ApiCallback<List<MarginCurrencyPair>> _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 | List retrieved | - |
public okhttp3.Call getMarginCurrencyPairCall(String currencyPair, ApiCallback _callback) throws ApiException
currencyPair - Margin currency pair (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public MarginCurrencyPair getMarginCurrencyPair(String currencyPair) throws ApiException
currencyPair - Margin currency pair (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<MarginCurrencyPair> getMarginCurrencyPairWithHttpInfo(String currencyPair) throws ApiException
currencyPair - Margin currency pair (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 getMarginCurrencyPairAsync(String currencyPair, ApiCallback<MarginCurrencyPair> _callback) throws ApiException
currencyPair - Margin currency pair (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 listFundingBookCall(String currency, ApiCallback _callback) throws ApiException
currency - Retrieved specified currency related data (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Order book retrieved | - |
public List<FundingBookItem> listFundingBook(String currency) throws ApiException
currency - Retrieved specified currency related data (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Order book retrieved | - |
public ApiResponse<List<FundingBookItem>> listFundingBookWithHttpInfo(String currency) throws ApiException
currency - Retrieved specified currency related data (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Order book retrieved | - |
public okhttp3.Call listFundingBookAsync(String currency, ApiCallback<List<FundingBookItem>> _callback) throws ApiException
currency - Retrieved specified currency related data (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 | Order book retrieved | - |
public MarginApi.APIlistMarginAccountsRequest listMarginAccounts()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public MarginApi.APIlistMarginAccountBookRequest listMarginAccountBook()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public MarginApi.APIlistFundingAccountsRequest listFundingAccounts()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public MarginApi.APIlistLoansRequest listLoans(String status, String side)
status - Loan status (required)side - Lend or borrow (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call createLoanCall(Loan loan, ApiCallback _callback) throws ApiException
loan - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 201 | Loan created | - |
public Loan createLoan(Loan loan) throws ApiException
loan - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Loan created | - |
public ApiResponse<Loan> createLoanWithHttpInfo(Loan loan) throws ApiException
loan - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Loan created | - |
public okhttp3.Call createLoanAsync(Loan loan, ApiCallback<Loan> _callback) throws ApiException
loan - (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 | Loan created | - |
public okhttp3.Call mergeLoansCall(String currency, String ids, ApiCallback _callback) throws ApiException
currency - Retrieved specified currency related data (required)ids - Lending loan ID list separated by `,`. Maximum of 20 IDs are allowed in one request (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 201 | Loans merged | - |
public Loan mergeLoans(String currency, String ids) throws ApiException
currency - Retrieved specified currency related data (required)ids - Lending loan ID list separated by `,`. Maximum of 20 IDs are allowed in one request (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Loans merged | - |
public ApiResponse<Loan> mergeLoansWithHttpInfo(String currency, String ids) throws ApiException
currency - Retrieved specified currency related data (required)ids - Lending loan ID list separated by `,`. Maximum of 20 IDs are allowed in one request (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Loans merged | - |
public okhttp3.Call mergeLoansAsync(String currency, String ids, ApiCallback<Loan> _callback) throws ApiException
currency - Retrieved specified currency related data (required)ids - Lending loan ID list separated by `,`. Maximum of 20 IDs are allowed in one request (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 | Loans merged | - |
public okhttp3.Call getLoanCall(String loanId, String side, ApiCallback _callback) throws ApiException
loanId - Loan ID (required)side - Lend or borrow (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public Loan getLoan(String loanId, String side) throws ApiException
loanId - Loan ID (required)side - Lend or borrow (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public ApiResponse<Loan> getLoanWithHttpInfo(String loanId, String side) throws ApiException
loanId - Loan ID (required)side - Lend or borrow (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call getLoanAsync(String loanId, String side, ApiCallback<Loan> _callback) throws ApiException
loanId - Loan ID (required)side - Lend or borrow (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 | List retrieved | - |
public okhttp3.Call cancelLoanCall(String loanId, String currency, ApiCallback _callback) throws ApiException
loanId - Loan ID (required)currency - Retrieved specified currency related data (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Order cancelled | - |
public Loan cancelLoan(String loanId, String currency) throws ApiException
loanId - Loan ID (required)currency - Retrieved specified currency related data (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Order cancelled | - |
public ApiResponse<Loan> cancelLoanWithHttpInfo(String loanId, String currency) throws ApiException
loanId - Loan ID (required)currency - Retrieved specified currency related data (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Order cancelled | - |
public okhttp3.Call cancelLoanAsync(String loanId, String currency, ApiCallback<Loan> _callback) throws ApiException
loanId - Loan ID (required)currency - Retrieved specified currency related data (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 | Order cancelled | - |
public okhttp3.Call updateLoanCall(String loanId, LoanPatch loanPatch, ApiCallback _callback) throws ApiException
loanId - Loan ID (required)loanPatch - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Updated | - |
public Loan updateLoan(String loanId, LoanPatch loanPatch) throws ApiException
loanId - Loan ID (required)loanPatch - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Updated | - |
public ApiResponse<Loan> updateLoanWithHttpInfo(String loanId, LoanPatch loanPatch) throws ApiException
loanId - Loan ID (required)loanPatch - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Updated | - |
public okhttp3.Call updateLoanAsync(String loanId, LoanPatch loanPatch, ApiCallback<Loan> _callback) throws ApiException
loanId - Loan ID (required)loanPatch - (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 | Updated | - |
public okhttp3.Call listLoanRepaymentsCall(String loanId, ApiCallback _callback) throws ApiException
loanId - Loan ID (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public List<Repayment> listLoanRepayments(String loanId) throws ApiException
loanId - Loan 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 | List retrieved | - |
public ApiResponse<List<Repayment>> listLoanRepaymentsWithHttpInfo(String loanId) throws ApiException
loanId - Loan 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 | List retrieved | - |
public okhttp3.Call listLoanRepaymentsAsync(String loanId, ApiCallback<List<Repayment>> _callback) throws ApiException
loanId - Loan 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 | List retrieved | - |
public okhttp3.Call repayLoanCall(String loanId, RepayRequest repayRequest, ApiCallback _callback) throws ApiException
loanId - Loan ID (required)repayRequest - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Loan repaid | - |
public Loan repayLoan(String loanId, RepayRequest repayRequest) throws ApiException
loanId - Loan ID (required)repayRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Loan repaid | - |
public ApiResponse<Loan> repayLoanWithHttpInfo(String loanId, RepayRequest repayRequest) throws ApiException
loanId - Loan ID (required)repayRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Loan repaid | - |
public okhttp3.Call repayLoanAsync(String loanId, RepayRequest repayRequest, ApiCallback<Loan> _callback) throws ApiException
loanId - Loan ID (required)repayRequest - (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 | Loan repaid | - |
public MarginApi.APIlistLoanRecordsRequest listLoanRecords(String loanId)
loanId - Loan ID (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call getLoanRecordCall(String loanRecordId, String loanId, ApiCallback _callback) throws ApiException
loanRecordId - Loan record ID (required)loanId - Loan ID (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Detail retrieved | - |
public LoanRecord getLoanRecord(String loanRecordId, String loanId) throws ApiException
loanRecordId - Loan record ID (required)loanId - Loan 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 | Detail retrieved | - |
public ApiResponse<LoanRecord> getLoanRecordWithHttpInfo(String loanRecordId, String loanId) throws ApiException
loanRecordId - Loan record ID (required)loanId - Loan 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 | Detail retrieved | - |
public okhttp3.Call getLoanRecordAsync(String loanRecordId, String loanId, ApiCallback<LoanRecord> _callback) throws ApiException
loanRecordId - Loan record ID (required)loanId - Loan 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 | Detail retrieved | - |
public okhttp3.Call updateLoanRecordCall(String loanRecordId, LoanPatch loanPatch, ApiCallback _callback) throws ApiException
loanRecordId - Loan record ID (required)loanPatch - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Loan record updated | - |
public LoanRecord updateLoanRecord(String loanRecordId, LoanPatch loanPatch) throws ApiException
loanRecordId - Loan record ID (required)loanPatch - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Loan record updated | - |
public ApiResponse<LoanRecord> updateLoanRecordWithHttpInfo(String loanRecordId, LoanPatch loanPatch) throws ApiException
loanRecordId - Loan record ID (required)loanPatch - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Loan record updated | - |
public okhttp3.Call updateLoanRecordAsync(String loanRecordId, LoanPatch loanPatch, ApiCallback<LoanRecord> _callback) throws ApiException
loanRecordId - Loan record ID (required)loanPatch - (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 | Loan record updated | - |
public okhttp3.Call getAutoRepayStatusCall(ApiCallback _callback) throws ApiException
_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Current auto repayment setting | - |
public AutoRepaySetting getAutoRepayStatus() 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 | Current auto repayment setting | - |
public ApiResponse<AutoRepaySetting> getAutoRepayStatusWithHttpInfo() 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 | Current auto repayment setting | - |
public okhttp3.Call getAutoRepayStatusAsync(ApiCallback<AutoRepaySetting> _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 | Current auto repayment setting | - |
public okhttp3.Call setAutoRepayCall(String status, ApiCallback _callback) throws ApiException
status - New auto repayment status. `on` - enabled, `off` - disabled (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Current auto repayment setting | - |
public AutoRepaySetting setAutoRepay(String status) throws ApiException
status - New auto repayment status. `on` - enabled, `off` - disabled (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Current auto repayment setting | - |
public ApiResponse<AutoRepaySetting> setAutoRepayWithHttpInfo(String status) throws ApiException
status - New auto repayment status. `on` - enabled, `off` - disabled (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Current auto repayment setting | - |
public okhttp3.Call setAutoRepayAsync(String status, ApiCallback<AutoRepaySetting> _callback) throws ApiException
status - New auto repayment status. `on` - enabled, `off` - disabled (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 | Current auto repayment setting | - |
Copyright © 2021. All rights reserved.