Package com.stripe.service
Class WebhookEndpointService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.WebhookEndpointService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(WebhookEndpointCreateParams params) A webhook endpoint must have aurl
and a list ofenabled_events
.create
(WebhookEndpointCreateParams params, RequestOptions options) A webhook endpoint must have aurl
and a list ofenabled_events
.You can also delete webhook endpoints via the webhook endpoint management page of the Stripe dashboard.delete
(String webhookEndpoint, RequestOptions options) You can also delete webhook endpoints via the webhook endpoint management page of the Stripe dashboard.list()
Returns a list of your webhook endpoints.list
(RequestOptions options) Returns a list of your webhook endpoints.list
(WebhookEndpointListParams params) Returns a list of your webhook endpoints.list
(WebhookEndpointListParams params, RequestOptions options) Returns a list of your webhook endpoints.Retrieves the webhook endpoint with the given ID.retrieve
(String webhookEndpoint, RequestOptions options) Retrieves the webhook endpoint with the given ID.retrieve
(String webhookEndpoint, WebhookEndpointRetrieveParams params) Retrieves the webhook endpoint with the given ID.retrieve
(String webhookEndpoint, WebhookEndpointRetrieveParams params, RequestOptions options) Retrieves the webhook endpoint with the given ID.Updates the webhook endpoint.update
(String webhookEndpoint, RequestOptions options) Updates the webhook endpoint.update
(String webhookEndpoint, WebhookEndpointUpdateParams params) Updates the webhook endpoint.update
(String webhookEndpoint, WebhookEndpointUpdateParams params, RequestOptions options) Updates the webhook endpoint.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
WebhookEndpointService
-
-
Method Details
-
delete
You can also delete webhook endpoints via the webhook endpoint management page of the Stripe dashboard.- Throws:
StripeException
-
delete
public WebhookEndpoint delete(String webhookEndpoint, RequestOptions options) throws StripeException You can also delete webhook endpoints via the webhook endpoint management page of the Stripe dashboard.- Throws:
StripeException
-
retrieve
public WebhookEndpoint retrieve(String webhookEndpoint, WebhookEndpointRetrieveParams params) throws StripeException Retrieves the webhook endpoint with the given ID.- Throws:
StripeException
-
retrieve
public WebhookEndpoint retrieve(String webhookEndpoint, RequestOptions options) throws StripeException Retrieves the webhook endpoint with the given ID.- Throws:
StripeException
-
retrieve
Retrieves the webhook endpoint with the given ID.- Throws:
StripeException
-
retrieve
public WebhookEndpoint retrieve(String webhookEndpoint, WebhookEndpointRetrieveParams params, RequestOptions options) throws StripeException Retrieves the webhook endpoint with the given ID.- Throws:
StripeException
-
update
public WebhookEndpoint update(String webhookEndpoint, WebhookEndpointUpdateParams params) throws StripeException Updates the webhook endpoint. You may edit theurl
, the list ofenabled_events
, and the status of your endpoint.- Throws:
StripeException
-
update
public WebhookEndpoint update(String webhookEndpoint, RequestOptions options) throws StripeException Updates the webhook endpoint. You may edit theurl
, the list ofenabled_events
, and the status of your endpoint.- Throws:
StripeException
-
update
Updates the webhook endpoint. You may edit theurl
, the list ofenabled_events
, and the status of your endpoint.- Throws:
StripeException
-
update
public WebhookEndpoint update(String webhookEndpoint, WebhookEndpointUpdateParams params, RequestOptions options) throws StripeException Updates the webhook endpoint. You may edit theurl
, the list ofenabled_events
, and the status of your endpoint.- Throws:
StripeException
-
list
public StripeCollection<WebhookEndpoint> list(WebhookEndpointListParams params) throws StripeException Returns a list of your webhook endpoints.- Throws:
StripeException
-
list
Returns a list of your webhook endpoints.- Throws:
StripeException
-
list
Returns a list of your webhook endpoints.- Throws:
StripeException
-
list
public StripeCollection<WebhookEndpoint> list(WebhookEndpointListParams params, RequestOptions options) throws StripeException Returns a list of your webhook endpoints.- Throws:
StripeException
-
create
A webhook endpoint must have aurl
and a list ofenabled_events
. You may optionally specify the Booleanconnect
parameter. If set to true, then a Connect webhook endpoint that notifies the specifiedurl
about events from all connected accounts is created; otherwise an account webhook endpoint that notifies the specifiedurl
only about events from your account is created. You can also create webhook endpoints in the webhooks settings section of the Dashboard.- Throws:
StripeException
-
create
public WebhookEndpoint create(WebhookEndpointCreateParams params, RequestOptions options) throws StripeException A webhook endpoint must have aurl
and a list ofenabled_events
. You may optionally specify the Booleanconnect
parameter. If set to true, then a Connect webhook endpoint that notifies the specifiedurl
about events from all connected accounts is created; otherwise an account webhook endpoint that notifies the specifiedurl
only about events from your account is created. You can also create webhook endpoints in the webhooks settings section of the Dashboard.- Throws:
StripeException
-