braintree/braintree_ruby — Issue #22: Discount Current Billing Cycle
Author: jasonlogsdon
Created: 2012-02-29 19:01:10+00:00
State: open

Hi there, I think this is a bug but I'm not 100% sure. If I look at the discount object returned it shows

- !ruby/object:Braintree::Discount
amount: 5.0
current_billing_cycle: 0
id: j_199_discount
never_expires: false
number_of_billing_cycles: 3
quantity: 1

But if I try to do discount.current_billing_cycle I get:

undefined method `current_billing_cycle' for #

Thanks for your help.