Package com.stripe.model.v2
Class Event
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.Event
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
- Direct Known Subclasses:
V1BillingMeterErrorReportTriggeredEvent
,V1BillingMeterNoMeterFoundEvent
,V2CoreEventDestinationPingEvent
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For more details about Reason, please refer to the API Reference.static class
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
protected StripeObject
fetchRelatedObject
(Event.RelatedObject relatedObject) Retrieves the object associated with the event.Authentication context needed to fetch the event or related object.Time at which the object was created.getId()
Unique identifier for the event.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.Reason for the event.getType()
The type of the event.int
hashCode()
static Event
Returns an StripeEvent instance using the provided JSON payload.void
setContext
(String context) Authentication context needed to fetch the event or related object.void
setCreated
(Instant created) Time at which the object was created.void
Unique identifier for the event.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
setReason
(Event.Reason reason) Reason for the event.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
The type of the event.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Event
public Event()
-
-
Method Details
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
fetchRelatedObject
Retrieves the object associated with the event.- Throws:
StripeException
-
parse
Returns an StripeEvent instance using the provided JSON payload. Throws a JsonSyntaxException if the payload is not valid JSON.- Parameters:
payload
- the payload sent by Stripe.- Returns:
- the StripeEvent instance
-
getContext
Authentication context needed to fetch the event or related object. -
getCreated
Time at which the object was created. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value of the object field.Equal to
v2.core.event
. -
getReason
Reason for the event. -
getType
The type of the event. -
getResponseGetter
-
setContext
Authentication context needed to fetch the event or related object. -
setCreated
Time at which the object was created. -
setId
Unique identifier for the event. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value of the object field.Equal to
v2.core.event
. -
setReason
Reason for the event. -
setType
The type of the event. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the event.
-