Class WebhooksMerchantLevel

    • 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 call
        IOException
      • 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 call
        IOException
      • 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 call
        IOException
      • 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 call
        IOException