public class EventData extends StripeObject
PRETTY_PRINT_GSON
Constructor and Description |
---|
EventData() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
StripeObject |
getObject()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.Object> |
getPreviousAttributes()
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 as
StripeObject . |
void |
setPreviousAttributes(java.util.Map<java.lang.String,java.lang.Object> previousAttributes)
Object containing the names of the attributes that have changed, and their previous values
(sent along only with *.updated events).
|
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
@Deprecated public StripeObject getObject()
StripeObject
from Event.getDataObjectDeserializer()
and EventDataObjectDeserializer.getObject()
. Throws
JsonParseException
deserialization failure due to general invalid JSON, or more
specifically when JSON data and model class have incompatible schemas.public java.util.Map<java.lang.String,java.lang.Object> getPreviousAttributes()
Map<String, Object>
, List<Object>
, and basic Java data types. The array was previously
represented as Object[]
in `stripe-java` below v9.xpublic void setObject(com.google.gson.JsonObject object)
StripeObject
. The deserialization should
be deferred to the user. See the now deprecated method getObject()
.public void setPreviousAttributes(java.util.Map<java.lang.String,java.lang.Object> previousAttributes)
Map<String, Object>
, List<Object>
, and basic Java data types. The array was previously
represented as Object[]
in `stripe-java` below v9.xpublic 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