Package com.adyen.service.management
Class ApiKeyCompanyLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.ApiKeyCompanyLevelApi
-
public class ApiKeyCompanyLevelApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description ApiKeyCompanyLevelApi(Client client)API key - company level constructor inpackage.ApiKeyCompanyLevelApi(Client client, String baseURL)API key - company level constructor inpackage.
-
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
-
-
-
-
Field Detail
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
ApiKeyCompanyLevelApi
public ApiKeyCompanyLevelApi(Client client)
API key - company level constructor inpackage.- Parameters:
client-Client(required)
-
ApiKeyCompanyLevelApi
public ApiKeyCompanyLevelApi(Client client, String baseURL)
API key - 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
-
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
-
-