Package com.adyen.service.management
Class AllowedOriginsCompanyLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.AllowedOriginsCompanyLevelApi
-
public class AllowedOriginsCompanyLevelApi extends Service
-
-
Constructor Summary
Constructors Constructor Description AllowedOriginsCompanyLevelApi(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 originAllowedOriginsResponsecreateAllowedOrigin(String companyId, String apiCredentialId, AllowedOrigin allowedOrigin, RequestOptions requestOptions)Create an allowed originvoiddeleteAllowedOrigin(String companyId, String apiCredentialId, String originId)Delete an allowed originvoiddeleteAllowedOrigin(String companyId, String apiCredentialId, String originId, RequestOptions requestOptions)Delete an allowed originAllowedOrigingetAllowedOrigin(String companyId, String apiCredentialId, String originId)Get an allowed originAllowedOrigingetAllowedOrigin(String companyId, String apiCredentialId, String originId, RequestOptions requestOptions)Get an allowed originAllowedOriginsResponselistAllowedOrigins(String companyId, String apiCredentialId)Get a list of allowed originsAllowedOriginsResponselistAllowedOrigins(String companyId, String apiCredentialId, RequestOptions requestOptions)Get a list of allowed origins-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Constructor Detail
-
AllowedOriginsCompanyLevelApi
public AllowedOriginsCompanyLevelApi(Client client)
-
-
Method Detail
-
deleteAllowedOrigin
public void deleteAllowedOrigin(String companyId, String apiCredentialId, String originId) throws ApiException, IOException
Delete an allowed origin- Parameters:
companyId-StringThe unique identifier of the company account. (required)apiCredentialId-StringUnique identifier of the API credential. (required)originId-StringUnique identifier of the allowed origin. (required)- Throws:
ApiException- if fails to make API callIOException
-
deleteAllowedOrigin
public void deleteAllowedOrigin(String companyId, String apiCredentialId, String originId, RequestOptions requestOptions) throws ApiException, IOException
Delete an allowed origin- Parameters:
companyId-StringThe unique identifier of the company account. (required)apiCredentialId-StringUnique identifier of the API credential. (required)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
-
listAllowedOrigins
public AllowedOriginsResponse listAllowedOrigins(String companyId, String apiCredentialId) throws ApiException, IOException
Get a list of allowed origins- Parameters:
companyId-StringThe unique identifier of the company account. (required)apiCredentialId-StringUnique identifier of the API credential. (required)- Returns:
AllowedOriginsResponse- Throws:
ApiException- if fails to make API callIOException
-
listAllowedOrigins
public AllowedOriginsResponse listAllowedOrigins(String companyId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException
Get a list of allowed origins- Parameters:
companyId-StringThe unique identifier of the company account. (required)apiCredentialId-StringUnique identifier of the API credential. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- 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-StringThe unique identifier of the company account. (required)apiCredentialId-StringUnique identifier of the API credential. (required)originId-StringUnique identifier of the allowed origin. (required)- Returns:
AllowedOrigin- Throws:
ApiException- if fails to make API callIOException
-
getAllowedOrigin
public AllowedOrigin getAllowedOrigin(String companyId, String apiCredentialId, String originId, RequestOptions requestOptions) throws ApiException, IOException
Get an allowed origin- Parameters:
companyId-StringThe unique identifier of the company account. (required)apiCredentialId-StringUnique identifier of the API credential. (required)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
-
createAllowedOrigin
public AllowedOriginsResponse createAllowedOrigin(String companyId, String apiCredentialId, AllowedOrigin allowedOrigin) throws ApiException, IOException
Create an allowed origin- Parameters:
companyId-StringThe unique identifier of the company account. (required)apiCredentialId-StringUnique identifier of the API credential. (required)allowedOrigin-AllowedOrigin(required)- Returns:
AllowedOriginsResponse- Throws:
ApiException- if fails to make API callIOException
-
createAllowedOrigin
public AllowedOriginsResponse createAllowedOrigin(String companyId, String apiCredentialId, AllowedOrigin allowedOrigin, RequestOptions requestOptions) throws ApiException, IOException
Create an allowed origin- Parameters:
companyId-StringThe unique identifier of the company account. (required)apiCredentialId-StringUnique identifier of the API credential. (required)allowedOrigin-AllowedOrigin(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
AllowedOriginsResponse- Throws:
ApiException- if fails to make API callIOException
-
-