Class Event.Data

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Event.Data
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Event

public static class Event.Data extends StripeObject
  • Constructor Details

    • Data

      public Data()
  • 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 Map<String,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(Map<String,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(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object