public class WebhookEndpoint extends ApiResource implements HasId
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
WebhookEndpoint() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
static WebhookEndpoint |
create(java.util.Map<java.lang.String,java.lang.Object> params)
A webhook endpoint must have a
url and a list of enabled_events . |
static WebhookEndpoint |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
A webhook endpoint must have a
url and a list of enabled_events . |
static WebhookEndpoint |
create(WebhookEndpointCreateParams params)
A webhook endpoint must have a
url and a list of enabled_events . |
static WebhookEndpoint |
create(WebhookEndpointCreateParams params,
RequestOptions options)
A webhook endpoint must have a
url and a list of enabled_events . |
WebhookEndpoint |
delete()
You can also delete webhook endpoints via the webhook endpoint management page of
the Stripe dashboard.
|
WebhookEndpoint |
delete(java.util.Map<java.lang.String,java.lang.Object> params)
You can also delete webhook endpoints via the webhook endpoint management page of
the Stripe dashboard.
|
WebhookEndpoint |
delete(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
You can also delete webhook endpoints via the webhook endpoint management page of
the Stripe dashboard.
|
WebhookEndpoint |
delete(RequestOptions options)
You can also delete webhook endpoints via the webhook endpoint management page of
the Stripe dashboard.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getApiVersion()
The API version events are rendered as for this webhook endpoint.
|
java.lang.String |
getApplication()
The ID of the associated Connect application.
|
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.Boolean |
getDeleted()
Always true for a deleted object.
|
java.util.List<java.lang.String> |
getEnabledEvents()
The list of events to enable for this endpoint.
|
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.Boolean |
getLivemode()
Has the value `true` if the object exists in live mode or the value `false` if the object
exists in test mode.
|
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getSecret()
The endpoint's secret, used to generate [webhook
signatures](https://stripe.com/docs/webhooks/signatures).
|
java.lang.String |
getStatus()
The status of the webhook.
|
java.lang.String |
getUrl()
The URL of the webhook endpoint.
|
int |
hashCode() |
static WebhookEndpointCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of your webhook endpoints.
|
static WebhookEndpointCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of your webhook endpoints.
|
static WebhookEndpointCollection |
list(WebhookEndpointListParams params)
Returns a list of your webhook endpoints.
|
static WebhookEndpointCollection |
list(WebhookEndpointListParams params,
RequestOptions options)
Returns a list of your webhook endpoints.
|
static WebhookEndpoint |
retrieve(java.lang.String webhookEndpoint)
Retrieves the webhook endpoint with the given ID.
|
static WebhookEndpoint |
retrieve(java.lang.String webhookEndpoint,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves the webhook endpoint with the given ID.
|
static WebhookEndpoint |
retrieve(java.lang.String webhookEndpoint,
RequestOptions options)
Retrieves the webhook endpoint with the given ID.
|
static WebhookEndpoint |
retrieve(java.lang.String webhookEndpoint,
WebhookEndpointRetrieveParams params,
RequestOptions options)
Retrieves the webhook endpoint with the given ID.
|
void |
setApiVersion(java.lang.String apiVersion)
The API version events are rendered as for this webhook endpoint.
|
void |
setApplication(java.lang.String application)
The ID of the associated Connect application.
|
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.
|
void |
setEnabledEvents(java.util.List<java.lang.String> enabledEvents)
The list of events to enable for this endpoint.
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setLivemode(java.lang.Boolean livemode)
Has the value `true` if the object exists in live mode or the value `false` if the object
exists in test mode.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setSecret(java.lang.String secret)
The endpoint's secret, used to generate [webhook
signatures](https://stripe.com/docs/webhooks/signatures).
|
void |
setStatus(java.lang.String status)
The status of the webhook.
|
void |
setUrl(java.lang.String url)
The URL of the webhook endpoint.
|
WebhookEndpoint |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates the webhook endpoint.
|
WebhookEndpoint |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Updates the webhook endpoint.
|
WebhookEndpoint |
update(WebhookEndpointUpdateParams params)
Updates the webhook endpoint.
|
WebhookEndpoint |
update(WebhookEndpointUpdateParams params,
RequestOptions options)
Updates the webhook endpoint.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public static WebhookEndpointCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static WebhookEndpointCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static WebhookEndpointCollection list(WebhookEndpointListParams params) throws StripeException
StripeException
public static WebhookEndpointCollection list(WebhookEndpointListParams params, RequestOptions options) throws StripeException
StripeException
public static WebhookEndpoint retrieve(java.lang.String webhookEndpoint) throws StripeException
StripeException
public static WebhookEndpoint retrieve(java.lang.String webhookEndpoint, RequestOptions options) throws StripeException
StripeException
public static WebhookEndpoint retrieve(java.lang.String webhookEndpoint, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static WebhookEndpoint retrieve(java.lang.String webhookEndpoint, WebhookEndpointRetrieveParams params, RequestOptions options) throws StripeException
StripeException
public static WebhookEndpoint create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
url
and a list of enabled_events
. You
may optionally specify the Boolean connect
parameter. If set to true, then a
Connect webhook endpoint that notifies the specified url
about events from all
connected accounts is created; otherwise an account webhook endpoint that notifies the
specified url
only about events from your account is created. You can also create
webhook endpoints in the webhooks
settings section of the Dashboard.StripeException
public static WebhookEndpoint create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
url
and a list of enabled_events
. You
may optionally specify the Boolean connect
parameter. If set to true, then a
Connect webhook endpoint that notifies the specified url
about events from all
connected accounts is created; otherwise an account webhook endpoint that notifies the
specified url
only about events from your account is created. You can also create
webhook endpoints in the webhooks
settings section of the Dashboard.StripeException
public static WebhookEndpoint create(WebhookEndpointCreateParams params) throws StripeException
url
and a list of enabled_events
. You
may optionally specify the Boolean connect
parameter. If set to true, then a
Connect webhook endpoint that notifies the specified url
about events from all
connected accounts is created; otherwise an account webhook endpoint that notifies the
specified url
only about events from your account is created. You can also create
webhook endpoints in the webhooks
settings section of the Dashboard.StripeException
public static WebhookEndpoint create(WebhookEndpointCreateParams params, RequestOptions options) throws StripeException
url
and a list of enabled_events
. You
may optionally specify the Boolean connect
parameter. If set to true, then a
Connect webhook endpoint that notifies the specified url
about events from all
connected accounts is created; otherwise an account webhook endpoint that notifies the
specified url
only about events from your account is created. You can also create
webhook endpoints in the webhooks
settings section of the Dashboard.StripeException
public WebhookEndpoint update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
url
, the list of
enabled_events
, and the status of your endpoint.StripeException
public WebhookEndpoint update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
url
, the list of
enabled_events
, and the status of your endpoint.StripeException
public WebhookEndpoint update(WebhookEndpointUpdateParams params) throws StripeException
url
, the list of
enabled_events
, and the status of your endpoint.StripeException
public WebhookEndpoint update(WebhookEndpointUpdateParams params, RequestOptions options) throws StripeException
url
, the list of
enabled_events
, and the status of your endpoint.StripeException
public WebhookEndpoint delete() throws StripeException
StripeException
public WebhookEndpoint delete(RequestOptions options) throws StripeException
StripeException
public WebhookEndpoint delete(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public WebhookEndpoint delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public java.lang.String getApiVersion()
public java.lang.String getApplication()
public java.lang.Long getCreated()
public java.lang.Boolean getDeleted()
public java.util.List<java.lang.String> getEnabledEvents()
public java.lang.Boolean getLivemode()
public java.lang.String getObject()
public java.lang.String getSecret()
public java.lang.String getStatus()
public java.lang.String getUrl()
public void setApiVersion(java.lang.String apiVersion)
public void setApplication(java.lang.String application)
public void setCreated(java.lang.Long created)
public void setDeleted(java.lang.Boolean deleted)
public void setEnabledEvents(java.util.List<java.lang.String> enabledEvents)
public void setId(java.lang.String id)
public void setLivemode(java.lang.Boolean livemode)
public void setObject(java.lang.String object)
public void setSecret(java.lang.String secret)
public void setStatus(java.lang.String status)
public void setUrl(java.lang.String url)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object