Package com.adyen.service.transfers
Class TransactionsApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.transfers.TransactionsApi
-
public class TransactionsApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description TransactionsApi(Client client)Transactions constructor inpackage.TransactionsApi(Client client, String baseURL)Transactions constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionSearchResponsegetAllTransactions(String balancePlatform, String paymentInstrumentId, String accountHolderId, String balanceAccountId, String cursor, OffsetDateTime createdSince, OffsetDateTime createdUntil, Integer limit, RequestOptions requestOptions)Get all transactionsTransactionSearchResponsegetAllTransactions(OffsetDateTime createdSince, OffsetDateTime createdUntil)Get all transactionsTransactiongetTransaction(String id)Get a transactionTransactiongetTransaction(String id, RequestOptions requestOptions)Get a transaction-
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
-
TransactionsApi
public TransactionsApi(Client client)
Transactions constructor inpackage.- Parameters:
client-Client(required)
-
-
Method Detail
-
getAllTransactions
public TransactionSearchResponse getAllTransactions(OffsetDateTime createdSince, OffsetDateTime createdUntil) throws ApiException, IOException
Get all transactions- Parameters:
createdSince-OffsetDateTimeOnly include transactions that have been created on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (required)createdUntil-OffsetDateTimeOnly include transactions that have been created on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (required)- Returns:
TransactionSearchResponse- Throws:
ApiException- if fails to make API callIOException
-
getAllTransactions
public TransactionSearchResponse getAllTransactions(String balancePlatform, String paymentInstrumentId, String accountHolderId, String balanceAccountId, String cursor, OffsetDateTime createdSince, OffsetDateTime createdUntil, Integer limit, RequestOptions requestOptions) throws ApiException, IOException
Get all transactions- 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)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)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)cursor-StringQuery: The `cursor` returned in the links of the previous response. (optional)createdSince-OffsetDateTimeQuery: Only include transactions that have been created on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (required)createdUntil-OffsetDateTimeQuery: Only include transactions that have been created on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (required)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:
TransactionSearchResponse- Throws:
ApiException- if fails to make API callIOException
-
getTransaction
public Transaction getTransaction(String id) throws ApiException, IOException
Get a transaction- Parameters:
id-StringThe unique identifier of the transaction. (required)- Returns:
Transaction- Throws:
ApiException- if fails to make API callIOException
-
getTransaction
public Transaction getTransaction(String id, RequestOptions requestOptions) throws ApiException, IOException
Get a transaction- Parameters:
id-StringThe unique identifier of the transaction. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
Transaction- Throws:
ApiException- if fails to make API callIOException
-
-