Package api
Class TransfersApi
- java.lang.Object
-
- api.TransfersApi
-
public class TransfersApi extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classTransfersApi.APIlistTransferReversalsRequestclassTransfersApi.APIlistTransfersRequest
-
Constructor Summary
Constructors Constructor Description TransfersApi()TransfersApi(FinixClient finixClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Transfercreate(CreateTransferRequest createTransferRequest)Create a Transfer Create a `Transfer`.okhttp3.CallcreateTransferAsync(CreateTransferRequest createTransferRequest, ApiCallback<Transfer> _callback)Create a Transfer (asynchronously) Create a `Transfer`.okhttp3.CallcreateTransferCall(CreateTransferRequest createTransferRequest, ApiCallback _callback)Build call for createTransferTransfercreateTransferReversal(String transferId, CreateReversalRequest createReversalRequest)Refund or Reverse a Transfer Reverse a transfer with a `type` of **DEBIT**.okhttp3.CallcreateTransferReversalAsync(String transferId, CreateReversalRequest createReversalRequest, ApiCallback<Transfer> _callback)Refund or Reverse a Transfer (asynchronously) Reverse a transfer with a `type` of **DEBIT**.okhttp3.CallcreateTransferReversalCall(String transferId, CreateReversalRequest createReversalRequest, ApiCallback _callback)Build call for createTransferReversalApiResponse<Transfer>createTransferReversalWithHttpInfo(String transferId, CreateReversalRequest createReversalRequest)Refund or Reverse a Transfer Reverse a transfer with a `type` of **DEBIT**.ApiResponse<Transfer>createTransferWithHttpInfo(CreateTransferRequest createTransferRequest)Create a Transfer Create a `Transfer`.Transferget(String transferId)Fetch a Transfer Retrieve a `Transfer`.StringgetCustomBaseUrl()FinixClientgetFinixClient()intgetHostIndex()okhttp3.CallgetTransferAsync(String transferId, ApiCallback<Transfer> _callback)Fetch a Transfer (asynchronously) Retrieve a `Transfer`.okhttp3.CallgetTransferCall(String transferId, ApiCallback _callback)Build call for getTransferApiResponse<Transfer>getTransferWithHttpInfo(String transferId)Fetch a Transfer Retrieve a `Transfer`.FinixListlist(ListTransfersQueryParams listTransfersQueryParams)List Transfers Retrieve a list of `Transfers`.FinixListlistTransfersReversals(String transferId, ListTransferReversalsQueryParams listTransferReversalsQueryParams)List Reversals on a Transfer Retrieve a list of reversals for a `Transfer`.voidsetCustomBaseUrl(String customBaseUrl)voidsetFinixClient(FinixClient finixClient)voidsetHostIndex(int hostIndex)Transferupdate(String transferId, UpdateTransferRequest updateTransferRequest)Update a Transfer Update a `Transfer`.okhttp3.CallupdateTransferAsync(String transferId, UpdateTransferRequest updateTransferRequest, ApiCallback<Transfer> _callback)Update a Transfer (asynchronously) Update a `Transfer`.okhttp3.CallupdateTransferCall(String transferId, UpdateTransferRequest updateTransferRequest, ApiCallback _callback)Build call for updateTransferApiResponse<Transfer>updateTransferWithHttpInfo(String transferId, UpdateTransferRequest updateTransferRequest)Update a Transfer Update a `Transfer`.
-
-
-
Constructor Detail
-
TransfersApi
public TransfersApi()
-
TransfersApi
public TransfersApi(FinixClient finixClient)
-
-
Method Detail
-
getFinixClient
public FinixClient getFinixClient()
-
setFinixClient
public void setFinixClient(FinixClient finixClient)
-
getHostIndex
public int getHostIndex()
-
setHostIndex
public void setHostIndex(int hostIndex)
-
getCustomBaseUrl
public String getCustomBaseUrl()
-
setCustomBaseUrl
public void setCustomBaseUrl(String customBaseUrl)
-
createTransferCall
public okhttp3.Call createTransferCall(CreateTransferRequest createTransferRequest, ApiCallback _callback) throws ApiException
Build call for createTransfer- Parameters:
createTransferRequest- (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 201 Single Transfer object * finix-apiuser-role -
* date -
* x-request-id -
400 Error * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
402 402 - Payment required * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
422 Invalid field * finix-apiuser-role -
* date -
* x-request-id -
-
create
public Transfer create(CreateTransferRequest createTransferRequest) throws ApiException
Create a Transfer Create a `Transfer`. > By default, Finix implements a 3 (business) day delay when debiting bank accounts (i.e. eChecks).- Parameters:
createTransferRequest- (optional)- Returns:
- Transfer
- 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 201 Single Transfer object * finix-apiuser-role -
* date -
* x-request-id -
400 Error * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
402 402 - Payment required * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
422 Invalid field * finix-apiuser-role -
* date -
* x-request-id -
-
createTransferWithHttpInfo
public ApiResponse<Transfer> createTransferWithHttpInfo(CreateTransferRequest createTransferRequest) throws ApiException
Create a Transfer Create a `Transfer`. > By default, Finix implements a 3 (business) day delay when debiting bank accounts (i.e. eChecks).- Parameters:
createTransferRequest- (optional)- Returns:
- ApiResponse<Transfer>
- 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 201 Single Transfer object * finix-apiuser-role -
* date -
* x-request-id -
400 Error * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
402 402 - Payment required * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
422 Invalid field * finix-apiuser-role -
* date -
* x-request-id -
-
createTransferAsync
public okhttp3.Call createTransferAsync(CreateTransferRequest createTransferRequest, ApiCallback<Transfer> _callback) throws ApiException
Create a Transfer (asynchronously) Create a `Transfer`. > By default, Finix implements a 3 (business) day delay when debiting bank accounts (i.e. eChecks).- Parameters:
createTransferRequest- (optional)_callback- The callback to be executed when the API call finishes- Returns:
- 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 201 Single Transfer object * finix-apiuser-role -
* date -
* x-request-id -
400 Error * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
402 402 - Payment required * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
422 Invalid field * finix-apiuser-role -
* date -
* x-request-id -
-
createTransferReversalCall
public okhttp3.Call createTransferReversalCall(String transferId, CreateReversalRequest createReversalRequest, ApiCallback _callback) throws ApiException
Build call for createTransferReversal- Parameters:
transferId- ID of `Transfer` object. (required)createReversalRequest- (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 201 Single Transfer object * finix-apiuser-role -
* date -
* x-request-id -
400 Error * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
422 Error * finix-apiuser-role -
* date -
* x-request-id -
-
createTransferReversal
public Transfer createTransferReversal(String transferId, CreateReversalRequest createReversalRequest) throws ApiException
Refund or Reverse a Transfer Reverse a transfer with a `type` of **DEBIT**. This reversal creates a new `Transfer` resource with a `type` of **REVERSAL**. The refund can get delivered in most cases without the physical card. The card only needs to be swiped (to receive the refund) when: - The payment type is **DEBIT**, and the transaction is no longer in the Settlement batch. - The payment type is **CREDIT**, and the transaction is no longer in the batch and is older than 45 days.- Parameters:
transferId- ID of `Transfer` object. (required)createReversalRequest- (optional)- Returns:
- Transfer
- 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 201 Single Transfer object * finix-apiuser-role -
* date -
* x-request-id -
400 Error * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
422 Error * finix-apiuser-role -
* date -
* x-request-id -
-
createTransferReversalWithHttpInfo
public ApiResponse<Transfer> createTransferReversalWithHttpInfo(String transferId, CreateReversalRequest createReversalRequest) throws ApiException
Refund or Reverse a Transfer Reverse a transfer with a `type` of **DEBIT**. This reversal creates a new `Transfer` resource with a `type` of **REVERSAL**. The refund can get delivered in most cases without the physical card. The card only needs to be swiped (to receive the refund) when: - The payment type is **DEBIT**, and the transaction is no longer in the Settlement batch. - The payment type is **CREDIT**, and the transaction is no longer in the batch and is older than 45 days.- Parameters:
transferId- ID of `Transfer` object. (required)createReversalRequest- (optional)- Returns:
- ApiResponse<Transfer>
- 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 201 Single Transfer object * finix-apiuser-role -
* date -
* x-request-id -
400 Error * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
422 Error * finix-apiuser-role -
* date -
* x-request-id -
-
createTransferReversalAsync
public okhttp3.Call createTransferReversalAsync(String transferId, CreateReversalRequest createReversalRequest, ApiCallback<Transfer> _callback) throws ApiException
Refund or Reverse a Transfer (asynchronously) Reverse a transfer with a `type` of **DEBIT**. This reversal creates a new `Transfer` resource with a `type` of **REVERSAL**. The refund can get delivered in most cases without the physical card. The card only needs to be swiped (to receive the refund) when: - The payment type is **DEBIT**, and the transaction is no longer in the Settlement batch. - The payment type is **CREDIT**, and the transaction is no longer in the batch and is older than 45 days.- Parameters:
transferId- ID of `Transfer` object. (required)createReversalRequest- (optional)_callback- The callback to be executed when the API call finishes- Returns:
- 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 201 Single Transfer object * finix-apiuser-role -
* date -
* x-request-id -
400 Error * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
422 Error * finix-apiuser-role -
* date -
* x-request-id -
-
getTransferCall
public okhttp3.Call getTransferCall(String transferId, ApiCallback _callback) throws ApiException
Build call for getTransfer- Parameters:
transferId- ID of `Transfer` resource. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 Single Transfer object * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
-
get
public Transfer get(String transferId) throws ApiException
Fetch a Transfer Retrieve a `Transfer`.- Parameters:
transferId- ID of `Transfer` resource. (required)- Returns:
- Transfer
- 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 Single Transfer object * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
-
getTransferWithHttpInfo
public ApiResponse<Transfer> getTransferWithHttpInfo(String transferId) throws ApiException
Fetch a Transfer Retrieve a `Transfer`.- Parameters:
transferId- ID of `Transfer` resource. (required)- Returns:
- ApiResponse<Transfer>
- 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 Single Transfer object * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
-
getTransferAsync
public okhttp3.Call getTransferAsync(String transferId, ApiCallback<Transfer> _callback) throws ApiException
Fetch a Transfer (asynchronously) Retrieve a `Transfer`.- Parameters:
transferId- ID of `Transfer` resource. (required)_callback- The callback to be executed when the API call finishes- Returns:
- 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 Single Transfer object * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
-
listTransfersReversals
public FinixList listTransfersReversals(String transferId, ListTransferReversalsQueryParams listTransferReversalsQueryParams) throws ApiException
List Reversals on a Transfer Retrieve a list of reversals for a `Transfer`.- Parameters:
transferId- ID of `Transfer` object. (required)- Returns:
- APIlistTransferReversalsRequest
- Throws:
ApiException- Http Response Details:
Status Code Description Response Headers 200 List of Reversals * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
-
list
public FinixList list(ListTransfersQueryParams listTransfersQueryParams) throws ApiException
List Transfers Retrieve a list of `Transfers`.- Returns:
- APIlistTransfersRequest
- Throws:
ApiException- Http Response Details:
Status Code Description Response Headers 200 List of Transfer objects * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
-
updateTransferCall
public okhttp3.Call updateTransferCall(String transferId, UpdateTransferRequest updateTransferRequest, ApiCallback _callback) throws ApiException
Build call for updateTransfer- Parameters:
transferId- ID of `Transfer` resource. (required)updateTransferRequest- (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 Single Transfer object * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
-
update
public Transfer update(String transferId, UpdateTransferRequest updateTransferRequest) throws ApiException
Update a Transfer Update a `Transfer`.- Parameters:
transferId- ID of `Transfer` resource. (required)updateTransferRequest- (optional)- Returns:
- Transfer
- 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 Single Transfer object * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
-
updateTransferWithHttpInfo
public ApiResponse<Transfer> updateTransferWithHttpInfo(String transferId, UpdateTransferRequest updateTransferRequest) throws ApiException
Update a Transfer Update a `Transfer`.- Parameters:
transferId- ID of `Transfer` resource. (required)updateTransferRequest- (optional)- Returns:
- ApiResponse<Transfer>
- 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 Single Transfer object * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
-
updateTransferAsync
public okhttp3.Call updateTransferAsync(String transferId, UpdateTransferRequest updateTransferRequest, ApiCallback<Transfer> _callback) throws ApiException
Update a Transfer (asynchronously) Update a `Transfer`.- Parameters:
transferId- ID of `Transfer` resource. (required)updateTransferRequest- (optional)_callback- The callback to be executed when the API call finishes- Returns:
- 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 Single Transfer object * finix-apiuser-role -
* date -
* x-request-id -
401 Authentication information is missing or invalid * finix-apiuser-role -
* date -
* x-request-id -
403 Forbidden * finix-apiuser-role -
* date -
* x-request-id -
404 Object does not exist * finix-apiuser-role -
* date -
* x-request-id -
406 Not Acceptable * finix-apiuser-role -
* date -
* x-request-id -
-
-