Permalink
Browse files

Use date_accessor to define next_interval_start methods

  • Loading branch information...
1 parent 8625639 commit c0c75e49dbaa56776dfd5786645c89ef6bbbf672 @timcraft timcraft committed Oct 29, 2012
Showing with 5 additions and 6 deletions.
  1. +3 −3 lib/gocardless/pre_authorization.rb
  2. +2 −3 lib/gocardless/subscription.rb
View
6 lib/gocardless/pre_authorization.rb
@@ -11,11 +11,11 @@ class PreAuthorization < Resource
:description,
:plan_id,
:status,
- :remaining_amount,
- :next_interval_start
+ :remaining_amount
reference_accessor :merchant_id, :user_id
- date_accessor :expires_at, :created_at
+
+ date_accessor :expires_at, :created_at, :next_interval_start
# Create a new bill under this pre-authorization. Similar to
# {Client#create_bill}, but only requires the amount to be specified.
View
5 lib/gocardless/subscription.rb
@@ -13,12 +13,11 @@ class Subscription < Resource
:status,
:setup_fee,
:trial_length,
- :trial_unit,
- :next_interval_start
+ :trial_unit
reference_accessor :merchant_id, :user_id
- date_accessor :start_at, :expires_at, :created_at
+ date_accessor :start_at, :expires_at, :created_at, :next_interval_start
def cancel!

0 comments on commit c0c75e4

Please sign in to comment.