Package com.adyen.service.management
Class AllowedOriginsMerchantLevel
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.ApiKeyAuthenticatedService
-
- com.adyen.service.management.AllowedOriginsMerchantLevel
-
public class AllowedOriginsMerchantLevel extends ApiKeyAuthenticatedService
-
-
Constructor Summary
Constructors Constructor Description AllowedOriginsMerchantLevel(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllowedOriginsResponsecreateAllowedOrigin(String merchantId, String apiCredentialId, AllowedOrigin allowedOrigin)Create an allowed originvoiddeleteAllowedOrigin(String merchantId, String apiCredentialId, String originId)Delete an allowed originAllowedOrigingetAllowedOrigin(String merchantId, String apiCredentialId, String originId)Get an allowed originAllowedOriginsResponselistAllowedOrigins(String merchantId, String apiCredentialId)Get a list of allowed origins-
Methods inherited from class com.adyen.Service
getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Constructor Detail
-
AllowedOriginsMerchantLevel
public AllowedOriginsMerchantLevel(Client client)
-
-
Method Detail
-
deleteAllowedOrigin
public void deleteAllowedOrigin(String merchantId, String apiCredentialId, String originId) throws ApiException, IOException
Delete an allowed origin- Parameters:
merchantId- The unique identifier of the merchant account. (required)apiCredentialId- Unique identifier of the API credential. (required)originId- Unique identifier of the allowed origin. (required)- Throws:
ApiException- if fails to make API callIOException
-
listAllowedOrigins
public AllowedOriginsResponse listAllowedOrigins(String merchantId, String apiCredentialId) throws ApiException, IOException
Get a list of allowed origins- Parameters:
merchantId- The unique identifier of the merchant account. (required)apiCredentialId- Unique identifier of the API credential. (required)- Returns:
- AllowedOriginsResponse
- Throws:
ApiException- if fails to make API callIOException
-
getAllowedOrigin
public AllowedOrigin getAllowedOrigin(String merchantId, String apiCredentialId, String originId) throws ApiException, IOException
Get an allowed origin- Parameters:
merchantId- The unique identifier of the merchant account. (required)apiCredentialId- Unique identifier of the API credential. (required)originId- Unique identifier of the allowed origin. (required)- Returns:
- AllowedOrigin
- Throws:
ApiException- if fails to make API callIOException
-
createAllowedOrigin
public AllowedOriginsResponse createAllowedOrigin(String merchantId, String apiCredentialId, AllowedOrigin allowedOrigin) throws ApiException, IOException
Create an allowed origin- Parameters:
merchantId- The unique identifier of the merchant account. (required)apiCredentialId- Unique identifier of the API credential. (required)allowedOrigin- (optional)- Returns:
- AllowedOriginsResponse
- Throws:
ApiException- if fails to make API callIOException
-
-