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