Class AccountHoldersApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.balanceplatform.AccountHoldersApi
-
public class AccountHoldersApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description AccountHoldersApi(Client client)Account holders constructor inpackage.AccountHoldersApi(Client client, String baseURL)Account holders constructor inpackage.
-
Method Summary
-
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
-
AccountHoldersApi
public AccountHoldersApi(Client client)
Account holders constructor inpackage.- Parameters:
client-Client(required)
-
-
Method Detail
-
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
-
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
-
getTaxForm
public GetTaxFormResponse getTaxForm(String id, String formType, Integer year) throws ApiException, IOException
Get a tax form- Parameters:
id-StringThe unique identifier of the account holder. (required)formType-StringThe type of tax form you want to retrieve. Accepted values are **US1099k** and **US1099nec** (required)year-IntegerThe tax year in YYYY format for the tax form you want to retrieve (required)- Returns:
GetTaxFormResponse- Throws:
ApiException- if fails to make API callIOException
-
getTaxForm
public GetTaxFormResponse getTaxForm(String id, String formType, Integer year, RequestOptions requestOptions) throws ApiException, IOException
Get a tax form- Parameters:
id-StringThe unique identifier of the account holder. (required)formType-StringQuery: The type of tax form you want to retrieve. Accepted values are **US1099k** and **US1099nec** (required)year-IntegerQuery: The tax year in YYYY format for the tax form you want to retrieve (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
GetTaxFormResponse- 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
-
-