Package com.adyen.service.management
Class ApiKeyCompanyLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.ApiKeyCompanyLevelApi
-
public class ApiKeyCompanyLevelApi extends Service
-
-
Constructor Summary
Constructors Constructor Description ApiKeyCompanyLevelApi(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenerateApiKeyResponsegenerateNewApiKey(String companyId, String apiCredentialId)Generate new API keyGenerateApiKeyResponsegenerateNewApiKey(String companyId, String apiCredentialId, RequestOptions requestOptions)Generate new API key-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Constructor Detail
-
ApiKeyCompanyLevelApi
public ApiKeyCompanyLevelApi(Client client)
-
-
Method Detail
-
generateNewApiKey
public GenerateApiKeyResponse generateNewApiKey(String companyId, String apiCredentialId) throws ApiException, IOException
Generate new API key- Parameters:
companyId-StringThe unique identifier of the company account. (required)apiCredentialId-StringUnique identifier of the API credential. (required)- Returns:
GenerateApiKeyResponse- Throws:
ApiException- if fails to make API callIOException
-
generateNewApiKey
public GenerateApiKeyResponse generateNewApiKey(String companyId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException
Generate new API key- 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:
GenerateApiKeyResponse- Throws:
ApiException- if fails to make API callIOException
-
-