Package com.adyen.service.management
Class WebhooksMerchantLevel
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.ApiKeyAuthenticatedService
-
- com.adyen.service.management.WebhooksMerchantLevel
-
public class WebhooksMerchantLevel extends ApiKeyAuthenticatedService
-
-
Constructor Summary
Constructors Constructor Description WebhooksMerchantLevel(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenerateHmacKeyResponsegenerateHmacKey(String merchantId, String webhookId)Generate an HMAC keyWebhookgetWebhook(String merchantId, String webhookId)Get a webhookListWebhooksResponselistAllWebhooks(String merchantId, Map<String,String> queryParams)List all webhooksvoidremoveWebhook(String merchantId, String webhookId)Remove a webhookWebhooksetUpWebhook(String merchantId, CreateMerchantWebhookRequest createMerchantWebhookRequest)Set up a webhookTestWebhookResponsetestWebhook(String merchantId, String webhookId, TestWebhookRequest testWebhookRequest)Test a webhookWebhookupdateWebhook(String merchantId, String webhookId, UpdateMerchantWebhookRequest updateMerchantWebhookRequest)Update a webhook-
Methods inherited from class com.adyen.Service
getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Constructor Detail
-
WebhooksMerchantLevel
public WebhooksMerchantLevel(Client client)
-
-
Method Detail
-
removeWebhook
public void removeWebhook(String merchantId, String webhookId) throws ApiException, IOException
Remove a webhook- Parameters:
merchantId- The unique identifier of the merchant account. (required)webhookId- Unique identifier of the webhook configuration. (required)- Throws:
ApiException- if fails to make API callIOException
-
listAllWebhooks
public ListWebhooksResponse listAllWebhooks(String merchantId, Map<String,String> queryParams) throws ApiException, IOException
List all webhooks- Parameters:
merchantId- The unique identifier of the merchant account. (required)queryParams- (optional) pageNumber: The number of the page to fetch. (optional) pageSize: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional)- Returns:
- ListWebhooksResponse
- Throws:
ApiException- if fails to make API callIOException
-
getWebhook
public Webhook getWebhook(String merchantId, String webhookId) throws ApiException, IOException
Get a webhook- Parameters:
merchantId- The unique identifier of the merchant account. (required)webhookId- Unique identifier of the webhook configuration. (required)- Returns:
- Webhook
- Throws:
ApiException- if fails to make API callIOException
-
updateWebhook
public Webhook updateWebhook(String merchantId, String webhookId, UpdateMerchantWebhookRequest updateMerchantWebhookRequest) throws ApiException, IOException
Update a webhook- Parameters:
merchantId- The unique identifier of the merchant account. (required)webhookId- Unique identifier of the webhook configuration. (required)updateMerchantWebhookRequest- (optional)- Returns:
- Webhook
- Throws:
ApiException- if fails to make API callIOException
-
setUpWebhook
public Webhook setUpWebhook(String merchantId, CreateMerchantWebhookRequest createMerchantWebhookRequest) throws ApiException, IOException
Set up a webhook- Parameters:
merchantId- The unique identifier of the merchant account. (required)createMerchantWebhookRequest- (optional)- Returns:
- Webhook
- Throws:
ApiException- if fails to make API callIOException
-
generateHmacKey
public GenerateHmacKeyResponse generateHmacKey(String merchantId, String webhookId) throws ApiException, IOException
Generate an HMAC key- Parameters:
merchantId- The unique identifier of the merchant account. (required)webhookId- (required)- Returns:
- GenerateHmacKeyResponse
- Throws:
ApiException- if fails to make API callIOException
-
testWebhook
public TestWebhookResponse testWebhook(String merchantId, String webhookId, TestWebhookRequest testWebhookRequest) throws ApiException, IOException
Test a webhook- Parameters:
merchantId- The unique identifier of the merchant account. (required)webhookId- Unique identifier of the webhook configuration. (required)testWebhookRequest- (optional)- Returns:
- TestWebhookResponse
- Throws:
ApiException- if fails to make API callIOException
-
-