Skip to content

Commit

Permalink
Merge pull request #82 from gocardless/template-changes
Browse files Browse the repository at this point in the history
Template changes
  • Loading branch information
sandilya-narahari authored Aug 18, 2020
2 parents b7245e2 + 60c78d5 commit 29d8e89
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/gocardless_pro/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def default_options
'User-Agent' => user_agent.to_s,
'Content-Type' => 'application/json',
'GoCardless-Client-Library' => 'gocardless-pro-ruby',
'GoCardless-Client-Version' => '2.23.0',
'GoCardless-Client-Version' => '2.24.0',
},
}
end
Expand Down
12 changes: 12 additions & 0 deletions lib/gocardless_pro/resources/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ def creditor
@links['creditor']
end

def customer
@links['customer']
end

def customer_bank_account
@links['customer_bank_account']
end

def instalment_schedule
@links['instalment_schedule']
end
Expand All @@ -88,6 +96,10 @@ def parent_event
@links['parent_event']
end

def payer_authorisation
@links['payer_authorisation']
end

def payment
@links['payment']
end
Expand Down
3 changes: 3 additions & 0 deletions lib/gocardless_pro/resources/tax_rate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ module Resources
# Represents an instance of a tax_rate resource returned from the API

# Tax rates from tax authority.
#
# We also maintain a [static list of the tax rates for each
# jurisdiction](#appendix-tax-rates).
class TaxRate
attr_reader :end_date
attr_reader :id
Expand Down
2 changes: 1 addition & 1 deletion lib/gocardless_pro/services/subscriptions_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def update(identity, options = {})
# When `pause_cycles` is omitted the subscription is paused until the [resume
# endpoint](#subscriptions-resume-a-subscription) is called.
# If the subscription is collecting a fixed number of payments, `end_date` will
# be set to `nil`.
# be set to `null`.
# When paused indefinitely, `upcoming_payments` will be empty.
#
# When `pause_cycles` is provided the subscription will be paused for the number
Expand Down
2 changes: 1 addition & 1 deletion lib/gocardless_pro/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ module GoCardlessPro

module GoCardlessPro
# Current version of the GC gem
VERSION = '2.23.0'.freeze
VERSION = '2.24.0'.freeze
end

0 comments on commit 29d8e89

Please sign in to comment.