Class Event.Data

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

public static class Event.Data extends StripeObject implements StripeActiveObject
  • 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.
    • setResponseGetter

      public void setResponseGetter(StripeResponseGetter responseGetter)
      Description copied from interface: StripeActiveObject
      Method is used by the containing object or StripeResponseGetter implementations to set the StripeResponseGetter instance used to make further requests.
      Specified by:
      setResponseGetter in interface StripeActiveObject
      Parameters:
      responseGetter - the StripeResponseGetter instance to use for making further requests.
    • getPreviousAttributes

      public Map<String,Object> getPreviousAttributes()
      Object containing the names of the updated attributes and their values prior to the event (only included in events of type *.updated). If an array attribute has any updated elements, this object contains the entire array. In Stripe API versions 2017-04-06 or earlier, an updated array attribute in this object includes only the updated array elements.
    • getResponseGetter

      public StripeResponseGetter getResponseGetter()
    • setPreviousAttributes

      public void setPreviousAttributes(Map<String,Object> previousAttributes)
      Object containing the names of the updated attributes and their values prior to the event (only included in events of type *.updated). If an array attribute has any updated elements, this object contains the entire array. In Stripe API versions 2017-04-06 or earlier, an updated array attribute in this object includes only the updated array elements.
    • 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