Package com.adyen.service.management
Class MyApiCredential
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.ApiKeyAuthenticatedService
-
- com.adyen.service.management.MyApiCredential
-
public class MyApiCredential extends ApiKeyAuthenticatedService
-
-
Constructor Summary
Constructors Constructor Description MyApiCredential(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllowedOriginsResponseaddAllowedOrigin(CreateAllowedOriginRequest createAllowedOriginRequest)Add allowed originAllowedOrigingetAllowedOriginDetails(String originId)Get allowed origin detailsAllowedOriginsResponsegetAllowedOrigins()Get allowed originsMeApiCredentialgetApiCredentialDetails()Get API credential detailsvoidremoveAllowedOrigin(String originId)Remove allowed origin-
Methods inherited from class com.adyen.Service
getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Constructor Detail
-
MyApiCredential
public MyApiCredential(Client client)
-
-
Method Detail
-
removeAllowedOrigin
public void removeAllowedOrigin(String originId) throws ApiException, IOException
Remove allowed origin- Parameters:
originId- Unique identifier of the allowed origin. (required)- 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
-
getAllowedOrigins
public AllowedOriginsResponse getAllowedOrigins() throws ApiException, IOException
Get allowed origins- 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- Unique identifier of the allowed origin. (required)- Returns:
- AllowedOrigin
- Throws:
ApiException- if fails to make API callIOException
-
addAllowedOrigin
public AllowedOriginsResponse addAllowedOrigin(CreateAllowedOriginRequest createAllowedOriginRequest) throws ApiException, IOException
Add allowed origin- Parameters:
createAllowedOriginRequest- (optional)- Returns:
- AllowedOriginsResponse
- Throws:
ApiException- if fails to make API callIOException
-
-