Package com.adyen.service.management
Class ApiCredentialsCompanyLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.ApiCredentialsCompanyLevelApi
-
public class ApiCredentialsCompanyLevelApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description ApiCredentialsCompanyLevelApi(Client client)API credentials - company level constructor inpackage.ApiCredentialsCompanyLevelApi(Client client, String baseURL)API credentials - company level constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateCompanyApiCredentialResponsecreateApiCredential(String companyId, CreateCompanyApiCredentialRequest createCompanyApiCredentialRequest)Create an API credential.CreateCompanyApiCredentialResponsecreateApiCredential(String companyId, CreateCompanyApiCredentialRequest createCompanyApiCredentialRequest, RequestOptions requestOptions)Create an API credential.CompanyApiCredentialgetApiCredential(String companyId, String apiCredentialId)Get an API credentialCompanyApiCredentialgetApiCredential(String companyId, String apiCredentialId, RequestOptions requestOptions)Get an API credentialListCompanyApiCredentialsResponselistApiCredentials(String companyId)Get a list of API credentialsListCompanyApiCredentialsResponselistApiCredentials(String companyId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions)Get a list of API credentialsCompanyApiCredentialupdateApiCredential(String companyId, String apiCredentialId, UpdateCompanyApiCredentialRequest updateCompanyApiCredentialRequest)Update an API credential.CompanyApiCredentialupdateApiCredential(String companyId, String apiCredentialId, UpdateCompanyApiCredentialRequest updateCompanyApiCredentialRequest, RequestOptions requestOptions)Update an API credential.-
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
-
ApiCredentialsCompanyLevelApi
public ApiCredentialsCompanyLevelApi(Client client)
API credentials - company level constructor inpackage.- Parameters:
client-Client(required)
-
ApiCredentialsCompanyLevelApi
public ApiCredentialsCompanyLevelApi(Client client, String baseURL)
API credentials - 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
-
createApiCredential
public CreateCompanyApiCredentialResponse createApiCredential(String companyId, CreateCompanyApiCredentialRequest createCompanyApiCredentialRequest) throws ApiException, IOException
Create an API credential.- Parameters:
companyId-StringThe unique identifier of the company account. (required)createCompanyApiCredentialRequest-CreateCompanyApiCredentialRequest(required)- Returns:
CreateCompanyApiCredentialResponse- Throws:
ApiException- if fails to make API callIOException
-
createApiCredential
public CreateCompanyApiCredentialResponse createApiCredential(String companyId, CreateCompanyApiCredentialRequest createCompanyApiCredentialRequest, RequestOptions requestOptions) throws ApiException, IOException
Create an API credential.- Parameters:
companyId-StringThe unique identifier of the company account. (required)createCompanyApiCredentialRequest-CreateCompanyApiCredentialRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
CreateCompanyApiCredentialResponse- Throws:
ApiException- if fails to make API callIOException
-
getApiCredential
public CompanyApiCredential getApiCredential(String companyId, String apiCredentialId) throws ApiException, IOException
Get an API credential- Parameters:
companyId-StringThe unique identifier of the company account. (required)apiCredentialId-StringUnique identifier of the API credential. (required)- Returns:
CompanyApiCredential- Throws:
ApiException- if fails to make API callIOException
-
getApiCredential
public CompanyApiCredential getApiCredential(String companyId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException
Get an API credential- Parameters:
companyId-StringThe unique identifier of the company account. (required)apiCredentialId-StringUnique identifier of the API credential. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
CompanyApiCredential- Throws:
ApiException- if fails to make API callIOException
-
listApiCredentials
public ListCompanyApiCredentialsResponse listApiCredentials(String companyId) throws ApiException, IOException
Get a list of API credentials- Parameters:
companyId-StringThe unique identifier of the company account. (required)- Returns:
ListCompanyApiCredentialsResponse- Throws:
ApiException- if fails to make API callIOException
-
listApiCredentials
public ListCompanyApiCredentialsResponse listApiCredentials(String companyId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException
Get a list of API credentials- 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:
ListCompanyApiCredentialsResponse- Throws:
ApiException- if fails to make API callIOException
-
updateApiCredential
public CompanyApiCredential updateApiCredential(String companyId, String apiCredentialId, UpdateCompanyApiCredentialRequest updateCompanyApiCredentialRequest) throws ApiException, IOException
Update an API credential.- Parameters:
companyId-StringThe unique identifier of the company account. (required)apiCredentialId-StringUnique identifier of the API credential. (required)updateCompanyApiCredentialRequest-UpdateCompanyApiCredentialRequest(required)- Returns:
CompanyApiCredential- Throws:
ApiException- if fails to make API callIOException
-
updateApiCredential
public CompanyApiCredential updateApiCredential(String companyId, String apiCredentialId, UpdateCompanyApiCredentialRequest updateCompanyApiCredentialRequest, RequestOptions requestOptions) throws ApiException, IOException
Update an API credential.- Parameters:
companyId-StringThe unique identifier of the company account. (required)apiCredentialId-StringUnique identifier of the API credential. (required)updateCompanyApiCredentialRequest-UpdateCompanyApiCredentialRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
CompanyApiCredential- Throws:
ApiException- if fails to make API callIOException
-
-