Package com.adyen.service.management
Class MyApiCredentialApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.MyApiCredentialApi
-
public class MyApiCredentialApi extends Service
-
-
Constructor Summary
Constructors Constructor Description MyApiCredentialApi(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllowedOriginaddAllowedOrigin(CreateAllowedOriginRequest createAllowedOriginRequest)Add allowed originAllowedOriginaddAllowedOrigin(CreateAllowedOriginRequest createAllowedOriginRequest, RequestOptions requestOptions)Add allowed originAllowedOrigingetAllowedOriginDetails(String originId)Get allowed origin detailsAllowedOrigingetAllowedOriginDetails(String originId, RequestOptions requestOptions)Get allowed origin detailsAllowedOriginsResponsegetAllowedOrigins()Get allowed originsAllowedOriginsResponsegetAllowedOrigins(RequestOptions requestOptions)Get allowed originsMeApiCredentialgetApiCredentialDetails()Get API credential detailsMeApiCredentialgetApiCredentialDetails(RequestOptions requestOptions)Get API credential detailsvoidremoveAllowedOrigin(String originId)Remove allowed originvoidremoveAllowedOrigin(String originId, RequestOptions requestOptions)Remove allowed origin-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
MyApiCredentialApi
public MyApiCredentialApi(Client client)
-
-
Method Detail
-
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
-
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
-
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
-
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
-
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
-
-