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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor 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 booleanbooleanprotected StripeObjectfetchRelatedObject(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 valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.Reason for the event.getType()The type of the event.inthashCode()static EventReturns an StripeEvent instance using the provided JSON payload.voidsetContext(String context) Authentication context needed to fetch the event or related object.voidsetCreated(Instant created) Time at which the object was created.voidUnique identifier for the event.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidsetReason(Event.Reason reason) Reason for the event.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidThe type of the event.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Event
public Event()
-
-
Method Details
-
setResponseGetter
Description copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Parameters:
responseGetter- theStripeResponseGetterinstance 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 valuetrueif the object exists in live mode or the valuefalseif 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 valuetrueif the object exists in live mode or the valuefalseif 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.
-