Package com.adyen.service.management
Class AccountCompanyLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.AccountCompanyLevelApi
-
public class AccountCompanyLevelApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description AccountCompanyLevelApi(Client client)Account - company level constructor inpackage.AccountCompanyLevelApi(Client client, String baseURL)Account - company level constructor inpackage.
-
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
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
AccountCompanyLevelApi
public AccountCompanyLevelApi(Client client)
Account - company level constructor inpackage.- Parameters:
client-Client(required)
-
AccountCompanyLevelApi
public AccountCompanyLevelApi(Client client, String baseURL)
Account - company level constructor inpackage. Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant.
-
-
Method Detail
-
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
-
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
-
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
-
-