Package com.stripe.model
Class EventData
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.model.EventData
-
- All Implemented Interfaces:
StripeObjectInterface
public class EventData extends StripeObject
-
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description EventData()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
StripeObject
getObject()
Deprecated.Deprecated in favor of gettingStripeObject
fromEvent.getDataObjectDeserializer()
andEventDataObjectDeserializer.getObject()
.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 asStripeObject
.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).-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getObject
@Deprecated public StripeObject 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
public 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).
-
setPreviousAttributes
public 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).
-
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
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-