public interface WebhookSubscriptionsApi
ListWebhookEventTypesResponse listWebhookEventTypes(String apiVersion) throws ApiException, IOException
apiVersion - Optional parameter: The API version for which to list event types.
Setting this field overrides the default version used by the application.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<ListWebhookEventTypesResponse> listWebhookEventTypesAsync(String apiVersion)
apiVersion - Optional parameter: The API version for which to list event types.
Setting this field overrides the default version used by the application.ListWebhookSubscriptionsResponse listWebhookSubscriptions(String cursor, Boolean includeDisabled, String sortOrder, Integer limit) throws ApiException, IOException
cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this to retrieve the next set of results for your original query.
For more information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).includeDisabled - Optional parameter: Includes disabled
[Subscription](entity:WebhookSubscription)s. By default, all enabled
[Subscription](entity:WebhookSubscription)s are returned.sortOrder - Optional parameter: Sorts the returned list by when the
[Subscription](entity:WebhookSubscription) was created with the specified order. This
field defaults to ASC.limit - Optional parameter: The maximum number of results to be returned in a single
page. It is possible to receive fewer results than the specified limit on a given
page. The default value of 100 is also the maximum allowed value. Default: 100ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<ListWebhookSubscriptionsResponse> listWebhookSubscriptionsAsync(String cursor, Boolean includeDisabled, String sortOrder, Integer limit)
cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this to retrieve the next set of results for your original query.
For more information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).includeDisabled - Optional parameter: Includes disabled
[Subscription](entity:WebhookSubscription)s. By default, all enabled
[Subscription](entity:WebhookSubscription)s are returned.sortOrder - Optional parameter: Sorts the returned list by when the
[Subscription](entity:WebhookSubscription) was created with the specified order. This
field defaults to ASC.limit - Optional parameter: The maximum number of results to be returned in a single
page. It is possible to receive fewer results than the specified limit on a given
page. The default value of 100 is also the maximum allowed value. Default: 100CreateWebhookSubscriptionResponse createWebhookSubscription(CreateWebhookSubscriptionRequest body) throws ApiException, IOException
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<CreateWebhookSubscriptionResponse> createWebhookSubscriptionAsync(CreateWebhookSubscriptionRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.DeleteWebhookSubscriptionResponse deleteWebhookSubscription(String subscriptionId) throws ApiException, IOException
subscriptionId - Required parameter: [REQUIRED] The ID of the
[Subscription](entity:WebhookSubscription) to delete.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<DeleteWebhookSubscriptionResponse> deleteWebhookSubscriptionAsync(String subscriptionId)
subscriptionId - Required parameter: [REQUIRED] The ID of the
[Subscription](entity:WebhookSubscription) to delete.RetrieveWebhookSubscriptionResponse retrieveWebhookSubscription(String subscriptionId) throws ApiException, IOException
subscriptionId - Required parameter: [REQUIRED] The ID of the
[Subscription](entity:WebhookSubscription) to retrieve.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<RetrieveWebhookSubscriptionResponse> retrieveWebhookSubscriptionAsync(String subscriptionId)
subscriptionId - Required parameter: [REQUIRED] The ID of the
[Subscription](entity:WebhookSubscription) to retrieve.UpdateWebhookSubscriptionResponse updateWebhookSubscription(String subscriptionId, UpdateWebhookSubscriptionRequest body) throws ApiException, IOException
subscriptionId - Required parameter: [REQUIRED] The ID of the
[Subscription](entity:WebhookSubscription) to update.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<UpdateWebhookSubscriptionResponse> updateWebhookSubscriptionAsync(String subscriptionId, UpdateWebhookSubscriptionRequest body)
subscriptionId - Required parameter: [REQUIRED] The ID of the
[Subscription](entity:WebhookSubscription) to update.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.UpdateWebhookSubscriptionSignatureKeyResponse updateWebhookSubscriptionSignatureKey(String subscriptionId, UpdateWebhookSubscriptionSignatureKeyRequest body) throws ApiException, IOException
subscriptionId - Required parameter: [REQUIRED] The ID of the
[Subscription](entity:WebhookSubscription) to update.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<UpdateWebhookSubscriptionSignatureKeyResponse> updateWebhookSubscriptionSignatureKeyAsync(String subscriptionId, UpdateWebhookSubscriptionSignatureKeyRequest body)
subscriptionId - Required parameter: [REQUIRED] The ID of the
[Subscription](entity:WebhookSubscription) to update.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.TestWebhookSubscriptionResponse testWebhookSubscription(String subscriptionId, TestWebhookSubscriptionRequest body) throws ApiException, IOException
subscriptionId - Required parameter: [REQUIRED] The ID of the
[Subscription](entity:WebhookSubscription) to test.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<TestWebhookSubscriptionResponse> testWebhookSubscriptionAsync(String subscriptionId, TestWebhookSubscriptionRequest body)
subscriptionId - Required parameter: [REQUIRED] The ID of the
[Subscription](entity:WebhookSubscription) to test.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.Copyright © 2023. All rights reserved.