Package com.adyen.service.management
Class AccountCompanyLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.AccountCompanyLevelApi
-
public class AccountCompanyLevelApi extends Service
-
-
Constructor Summary
Constructors Constructor Description AccountCompanyLevelApi(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompanygetCompanyAccount(String companyId)Get a company accountCompanygetCompanyAccount(String companyId, RequestOptions requestOptions)Get a company accountListCompanyResponselistCompanyAccounts()Get a list of company accountsListCompanyResponselistCompanyAccounts(Integer pageNumber, Integer pageSize, RequestOptions requestOptions)Get a list of company accountsListMerchantResponselistMerchantAccounts(String companyId)Get a list of merchant accountsListMerchantResponselistMerchantAccounts(String companyId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions)Get a list of merchant accounts-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
AccountCompanyLevelApi
public AccountCompanyLevelApi(Client client)
-
-
Method Detail
-
listCompanyAccounts
public ListCompanyResponse listCompanyAccounts() throws ApiException, IOException
Get a list of company accounts- Returns:
ListCompanyResponse- Throws:
ApiException- if fails to make API callIOException
-
listCompanyAccounts
public ListCompanyResponse listCompanyAccounts(Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException
Get a list of company accounts- Parameters:
pageNumber-IntegerQuery: The number of the page to fetch. (optional)pageSize-IntegerQuery: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
ListCompanyResponse- Throws:
ApiException- if fails to make API callIOException
-
getCompanyAccount
public Company getCompanyAccount(String companyId) throws ApiException, IOException
Get a company account- Parameters:
companyId-StringThe unique identifier of the company account. (required)- Returns:
Company- Throws:
ApiException- if fails to make API callIOException
-
getCompanyAccount
public Company getCompanyAccount(String companyId, RequestOptions requestOptions) throws ApiException, IOException
Get a company account- Parameters:
companyId-StringThe unique identifier of the company account. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
Company- Throws:
ApiException- if fails to make API callIOException
-
listMerchantAccounts
public ListMerchantResponse listMerchantAccounts(String companyId) throws ApiException, IOException
Get a list of merchant accounts- Parameters:
companyId-StringThe unique identifier of the company account. (required)- Returns:
ListMerchantResponse- Throws:
ApiException- if fails to make API callIOException
-
listMerchantAccounts
public ListMerchantResponse listMerchantAccounts(String companyId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException
Get a list of merchant accounts- Parameters:
companyId-StringThe unique identifier of the company account. (required)pageNumber-IntegerQuery: The number of the page to fetch. (optional)pageSize-IntegerQuery: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
ListMerchantResponse- Throws:
ApiException- if fails to make API callIOException
-
-