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 booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)StripeObjectgetObject()Deprecated.Deprecated in favor of gettingStripeObjectfromEvent.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).inthashCode()voidsetObject(com.google.gson.JsonObject object)Raw JSON object intended to be deserialized asStripeObject.voidsetPreviousAttributes(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 gettingStripeObjectfromEvent.getDataObjectDeserializer()andEventDataObjectDeserializer.getObject(). ThrowsJsonParseExceptiondeserialization 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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-