Skip to content

Commit

Permalink
Merge pull request #202 from recurly/gs-support_new_coupon_duration_a…
Browse files Browse the repository at this point in the history
…ttributes

adding support for new coupon duration attributes
  • Loading branch information
bhelx committed Jul 31, 2015
2 parents cec7c1a + 4191c7b commit 6ca6ce0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

* Added ability to enter offline payment [PR](https://github.com/recurly/recurly-client-ruby/pull/189/)
* Add `tax_exempt`, `tax_code`, and `accounting_code` support for one time transactions [PR](https://github.com/recurly/recurly-client-ruby/pull/198)
* Added 'duration' to 'Coupon'
* Added 'temporal_unit' to 'Coupon'
* Added 'temporal_amount' to 'Coupon'

<a name="v2.4.4"></a>
## v2.4.4 (2015-6-25)
Expand Down
3 changes: 3 additions & 0 deletions lib/recurly/coupon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class Coupon < Resource
redeem_by_date
single_use
applies_for_months
duration
temporal_unit
temporal_amount
max_redemptions
applies_to_all_plans
created_at
Expand Down
3 changes: 3 additions & 0 deletions spec/fixtures/coupons/show-200.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ Content-Type: application/xml; charset=utf-8
<max_redemptions type="integer">100</max_redemptions>
<applies_to_all_plans type="boolean">true</applies_to_all_plans>
<created_at type="datetime">2011-04-30T08:00:00Z</created_at>
<duration>temporal</duration>
<temporal_unit>month</temporal_unit>
<temporal_amount type="integer">1</temporal_amount>
<plan_codes type="array">
<plan_code>saul_good</plan_code>
</plan_codes>
Expand Down

0 comments on commit 6ca6ce0

Please sign in to comment.