mattsta / stripe-erlang

Erlang interface to the stripe.com API
27 stars 23 forks source link

Add support for decoding discounts and coupons #2

Closed stefanrusek closed 11 years ago

stefanrusek commented 11 years ago

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{}.

mattsta commented 11 years ago

Thanks for the easy merge! I just had to change currentcy to currency in the coupon record. Everything else looked great.