Package com.adyen.service.management
Class AllowedOriginsMerchantLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.AllowedOriginsMerchantLevelApi
-
public class AllowedOriginsMerchantLevelApi extends Service
-
-
Constructor Summary
Constructors Constructor Description AllowedOriginsMerchantLevelApi(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 originAllowedOriginsResponsecreateAllowedOrigin(String merchantId, String apiCredentialId, AllowedOrigin allowedOrigin, RequestOptions requestOptions)Create an allowed originvoiddeleteAllowedOrigin(String merchantId, String apiCredentialId, String originId)Delete an allowed originvoiddeleteAllowedOrigin(String merchantId, String apiCredentialId, String originId, RequestOptions requestOptions)Delete an allowed originAllowedOrigingetAllowedOrigin(String merchantId, String apiCredentialId, String originId)Get an allowed originAllowedOrigingetAllowedOrigin(String merchantId, String apiCredentialId, String originId, RequestOptions requestOptions)Get an allowed originAllowedOriginsResponselistAllowedOrigins(String merchantId, String apiCredentialId)Get a list of allowed originsAllowedOriginsResponselistAllowedOrigins(String merchantId, String apiCredentialId, RequestOptions requestOptions)Get a list of allowed origins-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
AllowedOriginsMerchantLevelApi
public AllowedOriginsMerchantLevelApi(Client client)
-
-
Method Detail
-
deleteAllowedOrigin
public void deleteAllowedOrigin(String merchantId, String apiCredentialId, String originId) throws ApiException, IOException
Delete an allowed origin- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId, String apiCredentialId, String originId, RequestOptions requestOptions) throws ApiException, IOException
Delete an allowed origin- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId, String apiCredentialId) throws ApiException, IOException
Get a list of allowed origins- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException
Get a list of allowed origins- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId, String apiCredentialId, String originId) throws ApiException, IOException
Get an allowed origin- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId, String apiCredentialId, String originId, RequestOptions requestOptions) throws ApiException, IOException
Get an allowed origin- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId, String apiCredentialId, AllowedOrigin allowedOrigin) throws ApiException, IOException
Create an allowed origin- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId, String apiCredentialId, AllowedOrigin allowedOrigin, RequestOptions requestOptions) throws ApiException, IOException
Create an allowed origin- Parameters:
merchantId-StringThe unique identifier of the merchant 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
-
-