Package com.stripe.model
Class EventData
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.EventData
- All Implemented Interfaces:
StripeObjectInterface
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Deprecated.Object containing the names of the attributes that have changed, and their previous values (sent along only with *.updated events).int
hashCode()
void
setObject
(com.google.gson.JsonObject object) Raw JSON object intended to be deserialized asStripeObject
.void
setPreviousAttributes
(Map<String, Object> previousAttributes) Object containing the names of the attributes that have changed, and their previous values (sent along only with *.updated events).Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
EventData
public EventData()
-
-
Method Details
-
getObject
Deprecated.Deprecated in favor of gettingStripeObject
fromEvent.getDataObjectDeserializer()
andEventDataObjectDeserializer.getObject()
. ThrowsJsonParseException
deserialization failure due to general invalid JSON, or more specifically when JSON data and model class have incompatible schemas.- Returns:
- Deserialized StripeObject for event data.
-
getPreviousAttributes
Object containing the names of the attributes that have changed, and their previous values (sent along only with *.updated events). -
setPreviousAttributes
Object containing the names of the attributes that have changed, and their previous values (sent along only with *.updated events). -
setObject
public void setObject(com.google.gson.JsonObject object) Raw JSON object intended to be deserialized asStripeObject
. The deserialization should be deferred to the user. See the now deprecated methodgetObject()
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-
StripeObject
fromEvent.getDataObjectDeserializer()
andEventDataObjectDeserializer.getObject()
.