Package com.adyen.service.management
Class MyApiCredentialApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.MyApiCredentialApi
-
public class MyApiCredentialApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description MyApiCredentialApi(Client client)My API credential constructor inpackage.MyApiCredentialApi(Client client, String baseURL)My API credential constructor inpackage.
-
Method Summary
-
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
-
MyApiCredentialApi
public MyApiCredentialApi(Client client)
My API credential constructor inpackage.- Parameters:
client-Client(required)
-
-
Method Detail
-
addAllowedOrigin
public AllowedOrigin addAllowedOrigin(CreateAllowedOriginRequest createAllowedOriginRequest) throws ApiException, IOException
Add allowed origin- Parameters:
createAllowedOriginRequest-CreateAllowedOriginRequest(required)- Returns:
AllowedOrigin- Throws:
ApiException- if fails to make API callIOException
-
addAllowedOrigin
public AllowedOrigin addAllowedOrigin(CreateAllowedOriginRequest createAllowedOriginRequest, RequestOptions requestOptions) throws ApiException, IOException
Add allowed origin- Parameters:
createAllowedOriginRequest-CreateAllowedOriginRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
AllowedOrigin- Throws:
ApiException- if fails to make API callIOException
-
generateClientKey
public GenerateClientKeyResponse generateClientKey() throws ApiException, IOException
Generate a client key- Returns:
GenerateClientKeyResponse- Throws:
ApiException- if fails to make API callIOException
-
generateClientKey
public GenerateClientKeyResponse generateClientKey(RequestOptions requestOptions) throws ApiException, IOException
Generate a client key- Parameters:
requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
GenerateClientKeyResponse- Throws:
ApiException- if fails to make API callIOException
-
getAllowedOriginDetails
public AllowedOrigin getAllowedOriginDetails(String originId) throws ApiException, IOException
Get allowed origin details- Parameters:
originId-StringUnique identifier of the allowed origin. (required)- Returns:
AllowedOrigin- Throws:
ApiException- if fails to make API callIOException
-
getAllowedOriginDetails
public AllowedOrigin getAllowedOriginDetails(String originId, RequestOptions requestOptions) throws ApiException, IOException
Get allowed origin details- Parameters:
originId-StringUnique identifier of the allowed origin. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
AllowedOrigin- Throws:
ApiException- if fails to make API callIOException
-
getAllowedOrigins
public AllowedOriginsResponse getAllowedOrigins() throws ApiException, IOException
Get allowed origins- Returns:
AllowedOriginsResponse- Throws:
ApiException- if fails to make API callIOException
-
getAllowedOrigins
public AllowedOriginsResponse getAllowedOrigins(RequestOptions requestOptions) throws ApiException, IOException
Get allowed origins- Parameters:
requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
AllowedOriginsResponse- Throws:
ApiException- if fails to make API callIOException
-
getApiCredentialDetails
public MeApiCredential getApiCredentialDetails() throws ApiException, IOException
Get API credential details- Returns:
MeApiCredential- Throws:
ApiException- if fails to make API callIOException
-
getApiCredentialDetails
public MeApiCredential getApiCredentialDetails(RequestOptions requestOptions) throws ApiException, IOException
Get API credential details- Parameters:
requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
MeApiCredential- Throws:
ApiException- if fails to make API callIOException
-
removeAllowedOrigin
public void removeAllowedOrigin(String originId) throws ApiException, IOException
Remove allowed origin- Parameters:
originId-StringUnique identifier of the allowed origin. (required)- Throws:
ApiException- if fails to make API callIOException
-
removeAllowedOrigin
public void removeAllowedOrigin(String originId, RequestOptions requestOptions) throws ApiException, IOException
Remove allowed origin- Parameters:
originId-StringUnique identifier of the allowed origin. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
-