Class EventData

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.EventData
All Implemented Interfaces:
StripeObjectInterface

public class EventData
extends StripeObject
  • Constructor Details

  • Method Details

    • getObject

      @Deprecated public StripeObject getObject()
      Deprecated.
      Deprecated in favor of getting 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.
      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 as StripeObject. The deserialization should be deferred to the user. See the now deprecated method getObject().
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object