Package com.adyen.service.management
Class WebhooksCompanyLevel
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.ApiKeyAuthenticatedService
-
- com.adyen.service.management.WebhooksCompanyLevel
-
public class WebhooksCompanyLevel extends ApiKeyAuthenticatedService
-
-
Constructor Summary
Constructors Constructor Description WebhooksCompanyLevel(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenerateHmacKeyResponsegenerateHmacKey(String companyId, String webhookId)Generate an HMAC keyWebhookgetWebhook(String companyId, String webhookId)Get a webhookListWebhooksResponselistAllWebhooks(String companyId, Map<String,String> queryParams)List all webhooksvoidremoveWebhook(String companyId, String webhookId)Remove a webhookWebhooksetUpWebhook(String companyId, CreateCompanyWebhookRequest createCompanyWebhookRequest)Set up a webhookTestWebhookResponsetestWebhook(String companyId, String webhookId, TestCompanyWebhookRequest testCompanyWebhookRequest)Test a webhookWebhookupdateWebhook(String companyId, String webhookId, UpdateCompanyWebhookRequest updateCompanyWebhookRequest)Update a webhook-
Methods inherited from class com.adyen.Service
getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Constructor Detail
-
WebhooksCompanyLevel
public WebhooksCompanyLevel(Client client)
-
-
Method Detail
-
removeWebhook
public void removeWebhook(String companyId, String webhookId) throws ApiException, IOException
Remove a webhook- Parameters:
companyId- The unique identifier of the company account. (required)webhookId- Unique identifier of the webhook configuration. (required)- Throws:
ApiException- if fails to make API callIOException
-
listAllWebhooks
public ListWebhooksResponse listAllWebhooks(String companyId, Map<String,String> queryParams) throws ApiException, IOException
List all webhooks- Parameters:
companyId- Unique identifier of the [company account](https://docs.adyen.com/account/account-structure#company-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 companyId, String webhookId) throws ApiException, IOException
Get a webhook- Parameters:
companyId- Unique identifier of the [company account](https://docs.adyen.com/account/account-structure#company-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 companyId, String webhookId, UpdateCompanyWebhookRequest updateCompanyWebhookRequest) throws ApiException, IOException
Update a webhook- Parameters:
companyId- The unique identifier of the company account. (required)webhookId- Unique identifier of the webhook configuration. (required)updateCompanyWebhookRequest- (optional)- Returns:
- Webhook
- Throws:
ApiException- if fails to make API callIOException
-
setUpWebhook
public Webhook setUpWebhook(String companyId, CreateCompanyWebhookRequest createCompanyWebhookRequest) throws ApiException, IOException
Set up a webhook- Parameters:
companyId- Unique identifier of the [company account](https://docs.adyen.com/account/account-structure#company-account). (required)createCompanyWebhookRequest- (optional)- Returns:
- Webhook
- Throws:
ApiException- if fails to make API callIOException
-
generateHmacKey
public GenerateHmacKeyResponse generateHmacKey(String companyId, String webhookId) throws ApiException, IOException
Generate an HMAC key- Parameters:
companyId- The unique identifier of the company account. (required)webhookId- Unique identifier of the webhook configuration. (required)- Returns:
- GenerateHmacKeyResponse
- Throws:
ApiException- if fails to make API callIOException
-
testWebhook
public TestWebhookResponse testWebhook(String companyId, String webhookId, TestCompanyWebhookRequest testCompanyWebhookRequest) throws ApiException, IOException
Test a webhook- Parameters:
companyId- The unique identifier of the company account. (required)webhookId- Unique identifier of the webhook configuration. (required)testCompanyWebhookRequest- (optional)- Returns:
- TestWebhookResponse
- Throws:
ApiException- if fails to make API callIOException
-
-