Package com.adyen.service.management
Class AllowedOriginsMerchantLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.AllowedOriginsMerchantLevelApi
-
public class AllowedOriginsMerchantLevelApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description AllowedOriginsMerchantLevelApi(Client client)Allowed origins - merchant level constructor inpackage.AllowedOriginsMerchantLevelApi(Client client, String baseURL)Allowed origins - merchant level constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllowedOrigincreateAllowedOrigin(String merchantId, String apiCredentialId, AllowedOrigin allowedOrigin)Create an allowed originAllowedOrigincreateAllowedOrigin(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
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
AllowedOriginsMerchantLevelApi
public AllowedOriginsMerchantLevelApi(Client client)
Allowed origins - merchant level constructor inpackage.- Parameters:
client-Client(required)
-
AllowedOriginsMerchantLevelApi
public AllowedOriginsMerchantLevelApi(Client client, String baseURL)
Allowed origins - merchant level constructor inpackage. Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant.
-
-
Method Detail
-
createAllowedOrigin
public AllowedOrigin 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:
AllowedOrigin- Throws:
ApiException- if fails to make API callIOException
-
createAllowedOrigin
public AllowedOrigin 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:
AllowedOrigin- Throws:
ApiException- if fails to make API callIOException
-
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
-
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
-
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
-
-