Package com.stripe.model
Interface EventDataObjectDeserializer.CompatibilityTransformer
-
- Enclosing class:
- EventDataObjectDeserializer
public static interface EventDataObjectDeserializer.CompatibilityTransformerDefinition of event data object JSON transformation to be compatible to API version of the library.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.gson.JsonObjecttransform(com.google.gson.JsonObject rawJsonObject, java.lang.String apiVersion, java.lang.String eventType)Transform event data object JSON into a schema compatible with model classes of the library.
-
-
-
Method Detail
-
transform
com.google.gson.JsonObject transform(com.google.gson.JsonObject rawJsonObject, java.lang.String apiVersion, java.lang.String eventType)Transform event data object JSON into a schema compatible with model classes of the library. When used inEventDataObjectDeserializer.deserializeUnsafeWith(CompatibilityTransformer). the resulting JSON will be deserialized toStripeObject.- Parameters:
rawJsonObject- event data object JSON to be transformed. Direct mutation is allowed.apiVersion- API version of the event data objecteventType- event type to which this event data object belongs to.- Returns:
- transformed JSON with schema compatible to the model class in this library.
-
-