mattsta/stripe-erlang — pull request #2 by stefanrusek (2013-06-06 12:29:31+00:00)
Title: Add support for decoding discounts and coupons

The code was assuming that discounts were amount(), but they are objects and they can contain a coupon. This change adds #stripe_discount{} and #stripe_coupon{}.