Class AccountHoldersApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.balanceplatform.AccountHoldersApi
-
public class AccountHoldersApi extends Service
-
-
Constructor Summary
Constructors Constructor Description AccountHoldersApi(Client client)
-
Method Summary
-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
AccountHoldersApi
public AccountHoldersApi(Client client)
-
-
Method Detail
-
getAccountHolder
public AccountHolder getAccountHolder(String id) throws ApiException, IOException
Get an account holder- Parameters:
id-StringThe unique identifier of the account holder. (required)- Returns:
AccountHolder- Throws:
ApiException- if fails to make API callIOException
-
getAccountHolder
public AccountHolder getAccountHolder(String id, RequestOptions requestOptions) throws ApiException, IOException
Get an account holder- Parameters:
id-StringThe unique identifier of the account holder. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
AccountHolder- Throws:
ApiException- if fails to make API callIOException
-
getAllBalanceAccountsOfAccountHolder
public PaginatedBalanceAccountsResponse getAllBalanceAccountsOfAccountHolder(String id) throws ApiException, IOException
Get all balance accounts of an account holder- Parameters:
id-StringThe unique identifier of the account holder. (required)- Returns:
PaginatedBalanceAccountsResponse- Throws:
ApiException- if fails to make API callIOException
-
getAllBalanceAccountsOfAccountHolder
public PaginatedBalanceAccountsResponse getAllBalanceAccountsOfAccountHolder(String id, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException
Get all balance accounts of an account holder- Parameters:
id-StringThe unique identifier of the account holder. (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:
PaginatedBalanceAccountsResponse- Throws:
ApiException- if fails to make API callIOException
-
updateAccountHolder
public AccountHolder updateAccountHolder(String id, AccountHolderUpdateRequest accountHolderUpdateRequest) throws ApiException, IOException
Update an account holder- Parameters:
id-StringThe unique identifier of the account holder. (required)accountHolderUpdateRequest-AccountHolderUpdateRequest(required)- Returns:
AccountHolder- Throws:
ApiException- if fails to make API callIOException
-
updateAccountHolder
public AccountHolder updateAccountHolder(String id, AccountHolderUpdateRequest accountHolderUpdateRequest, RequestOptions requestOptions) throws ApiException, IOException
Update an account holder- Parameters:
id-StringThe unique identifier of the account holder. (required)accountHolderUpdateRequest-AccountHolderUpdateRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
AccountHolder- Throws:
ApiException- if fails to make API callIOException
-
createAccountHolder
public AccountHolder createAccountHolder(AccountHolderInfo accountHolderInfo) throws ApiException, IOException
Create an account holder- Parameters:
accountHolderInfo-AccountHolderInfo(required)- Returns:
AccountHolder- Throws:
ApiException- if fails to make API callIOException
-
createAccountHolder
public AccountHolder createAccountHolder(AccountHolderInfo accountHolderInfo, RequestOptions requestOptions) throws ApiException, IOException
Create an account holder- Parameters:
accountHolderInfo-AccountHolderInfo(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
AccountHolder- Throws:
ApiException- if fails to make API callIOException
-
-