stripe/stripe-java — pull request #8 by chuckhoupt (2012-04-10 00:09:32+00:00)
Title: Updated EventDataDeserializer to handle all possible classes

The EventDataDeserializer doesn't cover all the possible EventData types in Stripe. In particular, Coupon and Transfer related events are not covered.

We ran into this issue when deserializing all the possible Events generated by the Dashboard test-webhook dialog with code like:

String json = ... webhook request string ...
Event e = Event.gson.fromJson(json, Event.class);

Cheers - Chuck