Package com.adyen.service.transfers
Class TransfersApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.transfers.TransfersApi
-
public class TransfersApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description TransfersApi(Client client)Transfers constructor inpackage.TransfersApi(Client client, String baseURL)Transfers constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapproveInitiatedTransfers(ApproveTransfersRequest approveTransfersRequest)Approve initiated transfersvoidapproveInitiatedTransfers(ApproveTransfersRequest approveTransfersRequest, RequestOptions requestOptions)Approve initiated transfersvoidcancelInitiatedTransfers(CancelTransfersRequest cancelTransfersRequest)Cancel initiated transfersvoidcancelInitiatedTransfers(CancelTransfersRequest cancelTransfersRequest, RequestOptions requestOptions)Cancel initiated transfersFindTransfersResponsegetAllTransfers(String balancePlatform, String accountHolderId, String balanceAccountId, String paymentInstrumentId, String reference, String category, OffsetDateTime createdSince, OffsetDateTime createdUntil, String cursor, Integer limit, RequestOptions requestOptions)Get all transfersFindTransfersResponsegetAllTransfers(OffsetDateTime createdSince, OffsetDateTime createdUntil)Get all transfersTransferDatagetTransfer(String id)Get a transferTransferDatagetTransfer(String id, RequestOptions requestOptions)Get a transferReturnTransferResponsereturnTransfer(String transferId, ReturnTransferRequest returnTransferRequest)Return a transferReturnTransferResponsereturnTransfer(String transferId, ReturnTransferRequest returnTransferRequest, RequestOptions requestOptions)Return a transferTransfertransferFunds(TransferInfo transferInfo)Transfer fundsTransfertransferFunds(TransferInfo transferInfo, RequestOptions requestOptions)Transfer funds-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
TransfersApi
public TransfersApi(Client client)
Transfers constructor inpackage.- Parameters:
client-Client(required)
-
-
Method Detail
-
approveInitiatedTransfers
public void approveInitiatedTransfers(ApproveTransfersRequest approveTransfersRequest) throws ApiException, IOException
Approve initiated transfers- Parameters:
approveTransfersRequest-ApproveTransfersRequest(required)- Throws:
ApiException- if fails to make API callIOException
-
approveInitiatedTransfers
public void approveInitiatedTransfers(ApproveTransfersRequest approveTransfersRequest, RequestOptions requestOptions) throws ApiException, IOException
Approve initiated transfers- Parameters:
approveTransfersRequest-ApproveTransfersRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
cancelInitiatedTransfers
public void cancelInitiatedTransfers(CancelTransfersRequest cancelTransfersRequest) throws ApiException, IOException
Cancel initiated transfers- Parameters:
cancelTransfersRequest-CancelTransfersRequest(required)- Throws:
ApiException- if fails to make API callIOException
-
cancelInitiatedTransfers
public void cancelInitiatedTransfers(CancelTransfersRequest cancelTransfersRequest, RequestOptions requestOptions) throws ApiException, IOException
Cancel initiated transfers- Parameters:
cancelTransfersRequest-CancelTransfersRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
getAllTransfers
public FindTransfersResponse getAllTransfers(OffsetDateTime createdSince, OffsetDateTime createdUntil) throws ApiException, IOException
Get all transfers- Parameters:
createdSince-OffsetDateTimeOnly include transfers that have been created on or after this point in time. The value must be in ISO 8601 format and not earlier than 6 months before the `createdUntil` date. For example, **2021-05-30T15:07:40Z**. (required)createdUntil-OffsetDateTimeOnly include transfers that have been created on or before this point in time. The value must be in ISO 8601 format and not later than 6 months after the `createdSince` date. For example, **2021-05-30T15:07:40Z**. (required)- Returns:
FindTransfersResponse- Throws:
ApiException- if fails to make API callIOException
-
getAllTransfers
public FindTransfersResponse getAllTransfers(String balancePlatform, String accountHolderId, String balanceAccountId, String paymentInstrumentId, String reference, String category, OffsetDateTime createdSince, OffsetDateTime createdUntil, String cursor, Integer limit, RequestOptions requestOptions) throws ApiException, IOException
Get all transfers- Parameters:
balancePlatform-StringQuery: The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id). Required if you don't provide a `balanceAccountId` or `accountHolderId`. (optional)accountHolderId-StringQuery: The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/accountHolders/{id}__queryParam_id). Required if you don't provide a `balanceAccountId` or `balancePlatform`. If you provide a `balanceAccountId`, the `accountHolderId` must be related to the `balanceAccountId`. (optional)balanceAccountId-StringQuery: The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id). Required if you don't provide an `accountHolderId` or `balancePlatform`. If you provide an `accountHolderId`, the `balanceAccountId` must be related to the `accountHolderId`. (optional)paymentInstrumentId-StringQuery: The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_). To use this parameter, you must also provide a `balanceAccountId`, `accountHolderId`, or `balancePlatform`. The `paymentInstrumentId` must be related to the `balanceAccountId` or `accountHolderId` that you provide. (optional)reference-StringQuery: The reference you provided in the POST [/transfers](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers) request (optional)category-StringQuery: The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. (optional)createdSince-OffsetDateTimeQuery: Only include transfers that have been created on or after this point in time. The value must be in ISO 8601 format and not earlier than 6 months before the `createdUntil` date. For example, **2021-05-30T15:07:40Z**. (required)createdUntil-OffsetDateTimeQuery: Only include transfers that have been created on or before this point in time. The value must be in ISO 8601 format and not later than 6 months after the `createdSince` date. For example, **2021-05-30T15:07:40Z**. (required)cursor-StringQuery: The `cursor` returned in the links of the previous response. (optional)limit-IntegerQuery: The number of items returned per page, maximum of 100 items. By default, the response returns 10 items per page. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
FindTransfersResponse- Throws:
ApiException- if fails to make API callIOException
-
getTransfer
public TransferData getTransfer(String id) throws ApiException, IOException
Get a transfer- Parameters:
id-StringUnique identifier of the transfer. (required)- Returns:
TransferData- Throws:
ApiException- if fails to make API callIOException
-
getTransfer
public TransferData getTransfer(String id, RequestOptions requestOptions) throws ApiException, IOException
Get a transfer- Parameters:
id-StringUnique identifier of the transfer. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
TransferData- Throws:
ApiException- if fails to make API callIOException
-
returnTransfer
public ReturnTransferResponse returnTransfer(String transferId, ReturnTransferRequest returnTransferRequest) throws ApiException, IOException
Return a transfer- Parameters:
transferId-StringThe unique identifier of the transfer to be returned. (required)returnTransferRequest-ReturnTransferRequest(required)- Returns:
ReturnTransferResponse- Throws:
ApiException- if fails to make API callIOException
-
returnTransfer
public ReturnTransferResponse returnTransfer(String transferId, ReturnTransferRequest returnTransferRequest, RequestOptions requestOptions) throws ApiException, IOException
Return a transfer- Parameters:
transferId-StringThe unique identifier of the transfer to be returned. (required)returnTransferRequest-ReturnTransferRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
ReturnTransferResponse- Throws:
ApiException- if fails to make API callIOException
-
transferFunds
public Transfer transferFunds(TransferInfo transferInfo) throws ApiException, IOException
Transfer funds- Parameters:
transferInfo-TransferInfo(required)- Returns:
Transfer- Throws:
ApiException- if fails to make API callIOException
-
transferFunds
public Transfer transferFunds(TransferInfo transferInfo, RequestOptions requestOptions) throws ApiException, IOException
Transfer funds- Parameters:
transferInfo-TransferInfo(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
Transfer- Throws:
ApiException- if fails to make API callIOException
-
-