class GoCardlessPro::Resources::BillingRequestFlow
Billing Request
Flows can be created to enable a payer to authorise a payment created for a scheme with strong payer authorisation (such as open banking single payments).
Attributes
auto_fulfil[R]
created_at[R]
expires_at[R]
id[R]
lock_bank_account[R]
lock_customer_details[R]
redirect_uri[R]
session_token[R]
Public Class Methods
new(object, response = nil)
click to toggle source
Initialize a billing_request_flow resource instance @param object [Hash] an object returned from the API
# File lib/gocardless_pro/resources/billing_request_flow.rb, line 31 def initialize(object, response = nil) @object = object @authorisation_url = object['authorisation_url'] @auto_fulfil = object['auto_fulfil'] @created_at = object['created_at'] @expires_at = object['expires_at'] @id = object['id'] @links = object['links'] @lock_bank_account = object['lock_bank_account'] @lock_customer_details = object['lock_customer_details'] @redirect_uri = object['redirect_uri'] @session_token = object['session_token'] @response = response end
Public Instance Methods
api_response()
click to toggle source
# File lib/gocardless_pro/resources/billing_request_flow.rb, line 47 def api_response ApiResponse.new(@response) end
links()
click to toggle source
Return the links that the resource has
# File lib/gocardless_pro/resources/billing_request_flow.rb, line 52 def links @billing_request_flow_links ||= Links.new(@links) end
to_h()
click to toggle source
Provides the billing_request_flow resource as a hash of all its readable attributes
# File lib/gocardless_pro/resources/billing_request_flow.rb, line 57 def to_h @object end