Package com.adyen.service.management
Class ClientKeyMerchantLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.ClientKeyMerchantLevelApi
-
public class ClientKeyMerchantLevelApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description ClientKeyMerchantLevelApi(Client client)Client key - merchant level constructor inpackage.ClientKeyMerchantLevelApi(Client client, String baseURL)Client key - merchant level constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenerateClientKeyResponsegenerateNewClientKey(String merchantId, String apiCredentialId)Generate new client keyGenerateClientKeyResponsegenerateNewClientKey(String merchantId, String apiCredentialId, RequestOptions requestOptions)Generate new client 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
-
ClientKeyMerchantLevelApi
public ClientKeyMerchantLevelApi(Client client)
Client key - merchant level constructor inpackage.- Parameters:
client-Client(required)
-
ClientKeyMerchantLevelApi
public ClientKeyMerchantLevelApi(Client client, String baseURL)
Client key - merchant 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
-
generateNewClientKey
public GenerateClientKeyResponse generateNewClientKey(String merchantId, String apiCredentialId) throws ApiException, IOException
Generate new client key- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)apiCredentialId-StringUnique identifier of the API credential. (required)- Returns:
GenerateClientKeyResponse- Throws:
ApiException- if fails to make API callIOException
-
generateNewClientKey
public GenerateClientKeyResponse generateNewClientKey(String merchantId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException
Generate new client 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:
GenerateClientKeyResponse- Throws:
ApiException- if fails to make API callIOException
-
-