Class BalanceAccountsApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.balanceplatform.BalanceAccountsApi
-
public class BalanceAccountsApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description BalanceAccountsApi(Client client)Balance accounts constructor inpackage.BalanceAccountsApi(Client client, String baseURL)Balance accounts constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BalanceAccountcreateBalanceAccount(BalanceAccountInfo balanceAccountInfo)Create a balance accountBalanceAccountcreateBalanceAccount(BalanceAccountInfo balanceAccountInfo, RequestOptions requestOptions)Create a balance accountSweepConfigurationV2createSweep(String balanceAccountId, CreateSweepConfigurationV2 createSweepConfigurationV2)Create a sweepSweepConfigurationV2createSweep(String balanceAccountId, CreateSweepConfigurationV2 createSweepConfigurationV2, RequestOptions requestOptions)Create a sweepvoiddeleteSweep(String balanceAccountId, String sweepId)Delete a sweepvoiddeleteSweep(String balanceAccountId, String sweepId, RequestOptions requestOptions)Delete a sweepBalanceSweepConfigurationsResponsegetAllSweepsForBalanceAccount(String balanceAccountId)Get all sweeps for a balance accountBalanceSweepConfigurationsResponsegetAllSweepsForBalanceAccount(String balanceAccountId, Integer offset, Integer limit, RequestOptions requestOptions)Get all sweeps for a balance accountBalanceAccountgetBalanceAccount(String id)Get a balance accountBalanceAccountgetBalanceAccount(String id, RequestOptions requestOptions)Get a balance accountPaginatedPaymentInstrumentsResponsegetPaymentInstrumentsLinkedToBalanceAccount(String id)Get payment instruments linked to a balance accountPaginatedPaymentInstrumentsResponsegetPaymentInstrumentsLinkedToBalanceAccount(String id, Integer offset, Integer limit, String status, RequestOptions requestOptions)Get payment instruments linked to a balance accountSweepConfigurationV2getSweep(String balanceAccountId, String sweepId)Get a sweepSweepConfigurationV2getSweep(String balanceAccountId, String sweepId, RequestOptions requestOptions)Get a sweepBalanceAccountupdateBalanceAccount(String id, BalanceAccountUpdateRequest balanceAccountUpdateRequest)Update a balance accountBalanceAccountupdateBalanceAccount(String id, BalanceAccountUpdateRequest balanceAccountUpdateRequest, RequestOptions requestOptions)Update a balance accountSweepConfigurationV2updateSweep(String balanceAccountId, String sweepId, UpdateSweepConfigurationV2 updateSweepConfigurationV2)Update a sweepSweepConfigurationV2updateSweep(String balanceAccountId, String sweepId, UpdateSweepConfigurationV2 updateSweepConfigurationV2, RequestOptions requestOptions)Update a sweep-
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
-
BalanceAccountsApi
public BalanceAccountsApi(Client client)
Balance accounts constructor inpackage.- Parameters:
client-Client(required)
-
-
Method Detail
-
createBalanceAccount
public BalanceAccount createBalanceAccount(BalanceAccountInfo balanceAccountInfo) throws ApiException, IOException
Create a balance account- Parameters:
balanceAccountInfo-BalanceAccountInfo(required)- Returns:
BalanceAccount- Throws:
ApiException- if fails to make API callIOException
-
createBalanceAccount
public BalanceAccount createBalanceAccount(BalanceAccountInfo balanceAccountInfo, RequestOptions requestOptions) throws ApiException, IOException
Create a balance account- Parameters:
balanceAccountInfo-BalanceAccountInfo(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
BalanceAccount- Throws:
ApiException- if fails to make API callIOException
-
createSweep
public SweepConfigurationV2 createSweep(String balanceAccountId, CreateSweepConfigurationV2 createSweepConfigurationV2) throws ApiException, IOException
Create a sweep- Parameters:
balanceAccountId-StringThe unique identifier of the balance account. (required)createSweepConfigurationV2-CreateSweepConfigurationV2(required)- Returns:
SweepConfigurationV2- Throws:
ApiException- if fails to make API callIOException
-
createSweep
public SweepConfigurationV2 createSweep(String balanceAccountId, CreateSweepConfigurationV2 createSweepConfigurationV2, RequestOptions requestOptions) throws ApiException, IOException
Create a sweep- Parameters:
balanceAccountId-StringThe unique identifier of the balance account. (required)createSweepConfigurationV2-CreateSweepConfigurationV2(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
SweepConfigurationV2- Throws:
ApiException- if fails to make API callIOException
-
deleteSweep
public void deleteSweep(String balanceAccountId, String sweepId) throws ApiException, IOException
Delete a sweep- Parameters:
balanceAccountId-StringThe unique identifier of the balance account. (required)sweepId-StringThe unique identifier of the sweep. (required)- Throws:
ApiException- if fails to make API callIOException
-
deleteSweep
public void deleteSweep(String balanceAccountId, String sweepId, RequestOptions requestOptions) throws ApiException, IOException
Delete a sweep- Parameters:
balanceAccountId-StringThe unique identifier of the balance account. (required)sweepId-StringThe unique identifier of the sweep. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
getAllSweepsForBalanceAccount
public BalanceSweepConfigurationsResponse getAllSweepsForBalanceAccount(String balanceAccountId) throws ApiException, IOException
Get all sweeps for a balance account- Parameters:
balanceAccountId-StringThe unique identifier of the balance account. (required)- Returns:
BalanceSweepConfigurationsResponse- Throws:
ApiException- if fails to make API callIOException
-
getAllSweepsForBalanceAccount
public BalanceSweepConfigurationsResponse getAllSweepsForBalanceAccount(String balanceAccountId, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException
Get all sweeps for a balance account- Parameters:
balanceAccountId-StringThe unique identifier of the balance account. (required)offset-IntegerQuery: The number of items that you want to skip. (optional)limit-IntegerQuery: The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
BalanceSweepConfigurationsResponse- Throws:
ApiException- if fails to make API callIOException
-
getBalanceAccount
public BalanceAccount getBalanceAccount(String id) throws ApiException, IOException
Get a balance account- Parameters:
id-StringThe unique identifier of the balance account. (required)- Returns:
BalanceAccount- Throws:
ApiException- if fails to make API callIOException
-
getBalanceAccount
public BalanceAccount getBalanceAccount(String id, RequestOptions requestOptions) throws ApiException, IOException
Get a balance account- Parameters:
id-StringThe unique identifier of the balance account. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
BalanceAccount- Throws:
ApiException- if fails to make API callIOException
-
getPaymentInstrumentsLinkedToBalanceAccount
public PaginatedPaymentInstrumentsResponse getPaymentInstrumentsLinkedToBalanceAccount(String id) throws ApiException, IOException
Get payment instruments linked to a balance account- Parameters:
id-StringThe unique identifier of the balance account. (required)- Returns:
PaginatedPaymentInstrumentsResponse- Throws:
ApiException- if fails to make API callIOException
-
getPaymentInstrumentsLinkedToBalanceAccount
public PaginatedPaymentInstrumentsResponse getPaymentInstrumentsLinkedToBalanceAccount(String id, Integer offset, Integer limit, String status, RequestOptions requestOptions) throws ApiException, IOException
Get payment instruments linked to a balance account- Parameters:
id-StringThe unique identifier of the balance account. (required)offset-IntegerQuery: The number of items that you want to skip. (optional)limit-IntegerQuery: The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page. (optional)status-StringQuery: The status of the payment instruments that you want to get. By default, the response includes payment instruments with any status. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaginatedPaymentInstrumentsResponse- Throws:
ApiException- if fails to make API callIOException
-
getSweep
public SweepConfigurationV2 getSweep(String balanceAccountId, String sweepId) throws ApiException, IOException
Get a sweep- Parameters:
balanceAccountId-StringThe unique identifier of the balance account. (required)sweepId-StringThe unique identifier of the sweep. (required)- Returns:
SweepConfigurationV2- Throws:
ApiException- if fails to make API callIOException
-
getSweep
public SweepConfigurationV2 getSweep(String balanceAccountId, String sweepId, RequestOptions requestOptions) throws ApiException, IOException
Get a sweep- Parameters:
balanceAccountId-StringThe unique identifier of the balance account. (required)sweepId-StringThe unique identifier of the sweep. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
SweepConfigurationV2- Throws:
ApiException- if fails to make API callIOException
-
updateBalanceAccount
public BalanceAccount updateBalanceAccount(String id, BalanceAccountUpdateRequest balanceAccountUpdateRequest) throws ApiException, IOException
Update a balance account- Parameters:
id-StringThe unique identifier of the balance account. (required)balanceAccountUpdateRequest-BalanceAccountUpdateRequest(required)- Returns:
BalanceAccount- Throws:
ApiException- if fails to make API callIOException
-
updateBalanceAccount
public BalanceAccount updateBalanceAccount(String id, BalanceAccountUpdateRequest balanceAccountUpdateRequest, RequestOptions requestOptions) throws ApiException, IOException
Update a balance account- Parameters:
id-StringThe unique identifier of the balance account. (required)balanceAccountUpdateRequest-BalanceAccountUpdateRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
BalanceAccount- Throws:
ApiException- if fails to make API callIOException
-
updateSweep
public SweepConfigurationV2 updateSweep(String balanceAccountId, String sweepId, UpdateSweepConfigurationV2 updateSweepConfigurationV2) throws ApiException, IOException
Update a sweep- Parameters:
balanceAccountId-StringThe unique identifier of the balance account. (required)sweepId-StringThe unique identifier of the sweep. (required)updateSweepConfigurationV2-UpdateSweepConfigurationV2(required)- Returns:
SweepConfigurationV2- Throws:
ApiException- if fails to make API callIOException
-
updateSweep
public SweepConfigurationV2 updateSweep(String balanceAccountId, String sweepId, UpdateSweepConfigurationV2 updateSweepConfigurationV2, RequestOptions requestOptions) throws ApiException, IOException
Update a sweep- Parameters:
balanceAccountId-StringThe unique identifier of the balance account. (required)sweepId-StringThe unique identifier of the sweep. (required)updateSweepConfigurationV2-UpdateSweepConfigurationV2(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
SweepConfigurationV2- Throws:
ApiException- if fails to make API callIOException
-
-