All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lob.api.client.BankAccountsApi Maven / Gradle / Ivy

The newest version!
/*
 * Lob
 * The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors. 

Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? * * The version of the OpenAPI document: 1.3.0 * Contact: [email protected] * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package com.lob.api.client; import com.lob.api.ApiCallback; import com.lob.api.ApiClient; import com.lob.api.ApiException; import com.lob.api.ApiResponse; import com.lob.api.Configuration; import com.lob.api.Pair; import com.lob.api.ProgressRequestBody; import com.lob.api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.File; import java.io.IOException; import java.nio.file.Files; import com.lob.model.BankAccount; import com.lob.model.BankAccountDeletion; import com.lob.model.BankAccountList; import com.lob.model.BankAccountVerify; import com.lob.model.BankAccountWritable; import com.lob.model.LobError; import java.time.OffsetDateTime; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class BankAccountsApi { private ApiClient localVarApiClient; public BankAccountsApi() { this(Configuration.getDefaultApiClient()); } public BankAccountsApi(ApiClient apiClient) { this.localVarApiClient = apiClient; } public ApiClient getApiClient() { return localVarApiClient; } public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } /** * Build call for create * @param bankAccountWritable (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details

Status Code Description Response Headers
200 Returns a bank_account object * ratelimit-limit -
* ratelimit-remaining -
* ratelimit-reset -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public okhttp3.Call createCall(BankAccountWritable bankAccountWritable, final ApiCallback _callback) throws ApiException { Object localVarPostBody = bankAccountWritable; // create path and map variables String localVarPath = "/bank_accounts"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json", "application/x-www-form-urlencoded", "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basicAuth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createValidateBeforeCall(BankAccountWritable bankAccountWritable, final ApiCallback _callback) throws ApiException { // verify the required parameter 'bankAccountWritable' is set if (bankAccountWritable == null) { throw new ApiException("Missing the required parameter 'bankAccountWritable' when calling create(Async)"); } okhttp3.Call localVarCall = createCall(bankAccountWritable, _callback); return localVarCall; } /** * create * Creates a new bank account with the provided properties. Bank accounts created in live mode will need to be verified via micro deposits before being able to send live checks. The deposits will appear in the bank account in 2-3 business days and have the description \"VERIFICATION\". * @param bankAccountWritable (required) * @return BankAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Returns a bank_account object * ratelimit-limit -
* ratelimit-remaining -
* ratelimit-reset -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public BankAccount create(BankAccountWritable bankAccountWritable) throws ApiException { try { ApiResponse localVarResp = createWithHttpInfo(bankAccountWritable); return localVarResp.getData(); } catch (ApiException e) { throw e; } } /** * create * Creates a new bank account with the provided properties. Bank accounts created in live mode will need to be verified via micro deposits before being able to send live checks. The deposits will appear in the bank account in 2-3 business days and have the description \"VERIFICATION\". * @param bankAccountWritable (required) * @return ApiResponse<BankAccount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Returns a bank_account object * ratelimit-limit -
* ratelimit-remaining -
* ratelimit-reset -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public ApiResponse createWithHttpInfo(BankAccountWritable bankAccountWritable) throws ApiException { try { okhttp3.Call localVarCall = createValidateBeforeCall(bankAccountWritable, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { throw e; } } /** * create (asynchronously) * Creates a new bank account with the provided properties. Bank accounts created in live mode will need to be verified via micro deposits before being able to send live checks. The deposits will appear in the bank account in 2-3 business days and have the description \"VERIFICATION\". * @param bankAccountWritable (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Returns a bank_account object * ratelimit-limit -
* ratelimit-remaining -
* ratelimit-reset -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public okhttp3.Call createAsync(BankAccountWritable bankAccountWritable, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createValidateBeforeCall(bankAccountWritable, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for delete * @param bankId id of the bank account (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Deleted -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public okhttp3.Call deleteCall(String bankId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/bank_accounts/{bank_id}" .replaceAll("\\{" + "bank_id" + "\\}", localVarApiClient.escapeString(bankId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basicAuth" }; return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteValidateBeforeCall(String bankId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'bankId' is set if (bankId == null) { throw new ApiException("Missing the required parameter 'bankId' when calling delete(Async)"); } okhttp3.Call localVarCall = deleteCall(bankId, _callback); return localVarCall; } /** * delete * Permanently deletes a bank account. It cannot be undone. * @param bankId id of the bank account (required) * @return BankAccountDeletion * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Deleted -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public BankAccountDeletion delete(String bankId) throws ApiException { try { ApiResponse localVarResp = deleteWithHttpInfo(bankId); return localVarResp.getData(); } catch (ApiException e) { throw e; } } /** * delete * Permanently deletes a bank account. It cannot be undone. * @param bankId id of the bank account (required) * @return ApiResponse<BankAccountDeletion> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Deleted -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public ApiResponse deleteWithHttpInfo(String bankId) throws ApiException { try { okhttp3.Call localVarCall = deleteValidateBeforeCall(bankId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { throw e; } } /** * delete (asynchronously) * Permanently deletes a bank account. It cannot be undone. * @param bankId id of the bank account (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Deleted -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public okhttp3.Call deleteAsync(String bankId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteValidateBeforeCall(bankId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for get * @param bankId id of the bank account (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Returns a bank account object -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public okhttp3.Call getCall(String bankId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/bank_accounts/{bank_id}" .replaceAll("\\{" + "bank_id" + "\\}", localVarApiClient.escapeString(bankId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basicAuth" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getValidateBeforeCall(String bankId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'bankId' is set if (bankId == null) { throw new ApiException("Missing the required parameter 'bankId' when calling get(Async)"); } okhttp3.Call localVarCall = getCall(bankId, _callback); return localVarCall; } /** * get * Retrieves the details of an existing bank account. You need only supply the unique bank account identifier that was returned upon bank account creation. * @param bankId id of the bank account (required) * @return BankAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Returns a bank account object -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public BankAccount get(String bankId) throws ApiException { try { ApiResponse localVarResp = getWithHttpInfo(bankId); return localVarResp.getData(); } catch (ApiException e) { throw e; } } /** * get * Retrieves the details of an existing bank account. You need only supply the unique bank account identifier that was returned upon bank account creation. * @param bankId id of the bank account (required) * @return ApiResponse<BankAccount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Returns a bank account object -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public ApiResponse getWithHttpInfo(String bankId) throws ApiException { try { okhttp3.Call localVarCall = getValidateBeforeCall(bankId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { throw e; } } /** * get (asynchronously) * Retrieves the details of an existing bank account. You need only supply the unique bank account identifier that was returned upon bank account creation. * @param bankId id of the bank account (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Returns a bank account object -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public okhttp3.Call getAsync(String bankId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getValidateBeforeCall(bankId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for verify * @param bankId id of the bank account to be verified (required) * @param bankAccountVerify (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Returns a bank_account object * ratelimit-limit -
* ratelimit-remaining -
* ratelimit-reset -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public okhttp3.Call verifyCall(String bankId, BankAccountVerify bankAccountVerify, final ApiCallback _callback) throws ApiException { Object localVarPostBody = bankAccountVerify; // create path and map variables String localVarPath = "/bank_accounts/{bank_id}/verify" .replaceAll("\\{" + "bank_id" + "\\}", localVarApiClient.escapeString(bankId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json", "application/x-www-form-urlencoded", "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basicAuth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call verifyValidateBeforeCall(String bankId, BankAccountVerify bankAccountVerify, final ApiCallback _callback) throws ApiException { // verify the required parameter 'bankId' is set if (bankId == null) { throw new ApiException("Missing the required parameter 'bankId' when calling verify(Async)"); } // verify the required parameter 'bankAccountVerify' is set if (bankAccountVerify == null) { throw new ApiException("Missing the required parameter 'bankAccountVerify' when calling verify(Async)"); } okhttp3.Call localVarCall = verifyCall(bankId, bankAccountVerify, _callback); return localVarCall; } /** * verify * Verify a bank account in order to create a check. * @param bankId id of the bank account to be verified (required) * @param bankAccountVerify (required) * @return BankAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Returns a bank_account object * ratelimit-limit -
* ratelimit-remaining -
* ratelimit-reset -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public BankAccount verify(String bankId, BankAccountVerify bankAccountVerify) throws ApiException { try { ApiResponse localVarResp = verifyWithHttpInfo(bankId, bankAccountVerify); return localVarResp.getData(); } catch (ApiException e) { throw e; } } /** * verify * Verify a bank account in order to create a check. * @param bankId id of the bank account to be verified (required) * @param bankAccountVerify (required) * @return ApiResponse<BankAccount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Returns a bank_account object * ratelimit-limit -
* ratelimit-remaining -
* ratelimit-reset -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public ApiResponse verifyWithHttpInfo(String bankId, BankAccountVerify bankAccountVerify) throws ApiException { try { okhttp3.Call localVarCall = verifyValidateBeforeCall(bankId, bankAccountVerify, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { throw e; } } /** * verify (asynchronously) * Verify a bank account in order to create a check. * @param bankId id of the bank account to be verified (required) * @param bankAccountVerify (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Returns a bank_account object * ratelimit-limit -
* ratelimit-remaining -
* ratelimit-reset -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public okhttp3.Call verifyAsync(String bankId, BankAccountVerify bankAccountVerify, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = verifyValidateBeforeCall(bankId, bankAccountVerify, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for list * @param limit How many results to return. (optional, default to 10) * @param before A reference to a list entry used for paginating to the previous set of entries. This field is pre-populated in the `previous_url` field in the return response. (optional) * @param after A reference to a list entry used for paginating to the next set of entries. This field is pre-populated in the `next_url` field in the return response. (optional) * @param include Request that the response include the total count by specifying `include[]=total_count`. (optional) * @param dateCreated Filter by date created. (optional) * @param metadata Filter by metadata key-value pair`. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 A dictionary with a data property that contains an array of up to `limit` bank_accounts. -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/bank_accounts"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (before != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("before", before)); } if (after != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("after", after)); } if (include != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "include", include)); } if (dateCreated != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("date_created", dateCreated)); } if (metadata != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("metadata", metadata)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basicAuth" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCall(limit, before, after, include, dateCreated, metadata, _callback); return localVarCall; } /** * list * Returns a list of your bank accounts. The bank accounts are returned sorted by creation date, with the most recently created bank accounts appearing first. * @param limit How many results to return. (optional, default to 10) * @param before A reference to a list entry used for paginating to the previous set of entries. This field is pre-populated in the `previous_url` field in the return response. (optional) * @param after A reference to a list entry used for paginating to the next set of entries. This field is pre-populated in the `next_url` field in the return response. (optional) * @param include Request that the response include the total count by specifying `include[]=total_count`. (optional) * @param dateCreated Filter by date created. (optional) * @param metadata Filter by metadata key-value pair`. (optional) * @return BankAccountList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A dictionary with a data property that contains an array of up to `limit` bank_accounts. -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public BankAccountList list(Integer limit, String before, String after, List include, Map dateCreated, Map metadata) throws ApiException { try { ApiResponse localVarResp = listWithHttpInfo(limit, before, after, include, dateCreated, metadata); return localVarResp.getData(); } catch (ApiException e) { throw e; } } /** * list * Returns a list of your bank accounts. The bank accounts are returned sorted by creation date, with the most recently created bank accounts appearing first. * @param limit How many results to return. (optional, default to 10) * @param before A reference to a list entry used for paginating to the previous set of entries. This field is pre-populated in the `previous_url` field in the return response. (optional) * @param after A reference to a list entry used for paginating to the next set of entries. This field is pre-populated in the `next_url` field in the return response. (optional) * @param include Request that the response include the total count by specifying `include[]=total_count`. (optional) * @param dateCreated Filter by date created. (optional) * @param metadata Filter by metadata key-value pair`. (optional) * @return ApiResponse<BankAccountList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A dictionary with a data property that contains an array of up to `limit` bank_accounts. -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public ApiResponse listWithHttpInfo(Integer limit, String before, String after, List include, Map dateCreated, Map metadata) throws ApiException { try { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { throw e; } } /** * list (asynchronously) * Returns a list of your bank accounts. The bank accounts are returned sorted by creation date, with the most recently created bank accounts appearing first. * @param limit How many results to return. (optional, default to 10) * @param before A reference to a list entry used for paginating to the previous set of entries. This field is pre-populated in the `previous_url` field in the return response. (optional) * @param after A reference to a list entry used for paginating to the next set of entries. This field is pre-populated in the `next_url` field in the return response. (optional) * @param include Request that the response include the total count by specifying `include[]=total_count`. (optional) * @param dateCreated Filter by date created. (optional) * @param metadata Filter by metadata key-value pair`. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 A dictionary with a data property that contains an array of up to `limit` bank_accounts. -
0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. -
*/ public okhttp3.Call listAsync(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy