class GoCardlessPro::Resources::BankAuthorisation
Bank Authorisations can be used to authorise Billing Requests. Authorisations are created against a specific bank, usually the bank that provides the payer’s account.
Creation of Bank Authorisations is only permitted from GoCardless hosted UIs (see Billing Request
Flows) to ensure we meet regulatory requirements for checkout flows.
Attributes
Public Class Methods
Source
# File lib/gocardless_pro/resources/bank_authorisation.rb, line 29 def initialize(object, response = nil) @object = object @authorisation_type = object['authorisation_type'] @authorised_at = object['authorised_at'] @created_at = object['created_at'] @expires_at = object['expires_at'] @id = object['id'] @last_visited_at = object['last_visited_at'] @links = object['links'] @qr_code_url = object['qr_code_url'] @redirect_uri = object['redirect_uri'] @url = object['url'] @response = response end
Initialize a bank_authorisation resource instance @param object [Hash] an object returned from the API
Public Instance Methods
Source
# File lib/gocardless_pro/resources/bank_authorisation.rb, line 45 def api_response ApiResponse.new(@response) end
Source
# File lib/gocardless_pro/resources/bank_authorisation.rb, line 50 def links @bank_authorisation_links ||= Links.new(@links) end
Return the links that the resource has
Source
# File lib/gocardless_pro/resources/bank_authorisation.rb, line 55 def to_h @object end
Provides the bank_authorisation resource as a hash of all its readable attributes