Package com.stripe.model
Class Event.Data
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Event.Data
- All Implemented Interfaces:
StripeActiveObject
,StripeObjectInterface
- Enclosing class:
- Event
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Deprecated.Object containing the names of the updated attributes and their values prior to the event (only included in events of type*.updated
).int
hashCode()
void
setObject
(com.google.gson.JsonObject object) Raw JSON object intended to be deserialized asStripeObject
.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
).void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Data
public Data()
-
-
Method Details
-
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.
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
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
-
setPreviousAttributes
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 asStripeObject
. The deserialization should be deferred to the user. See the now deprecated methodgetObject()
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-
StripeObject
fromEvent.getDataObjectDeserializer()
andEventDataObjectDeserializer.getObject()
.