Package com.adyen.service.management
Class ApiKeyMerchantLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.ApiKeyMerchantLevelApi
-
public class ApiKeyMerchantLevelApi extends Service
-
-
Constructor Summary
Constructors Constructor Description ApiKeyMerchantLevelApi(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenerateApiKeyResponsegenerateNewApiKey(String merchantId, String apiCredentialId)Generate new API keyGenerateApiKeyResponsegenerateNewApiKey(String merchantId, String apiCredentialId, RequestOptions requestOptions)Generate new API key-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
ApiKeyMerchantLevelApi
public ApiKeyMerchantLevelApi(Client client)
-
-
Method Detail
-
generateNewApiKey
public GenerateApiKeyResponse generateNewApiKey(String merchantId, String apiCredentialId) throws ApiException, IOException
Generate new API key- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException
Generate new API key- Parameters:
merchantId-StringThe unique identifier of the merchant 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
-
-