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
Public Class Methods
Source
# File lib/gocardless_pro/resources/billing_request_flow.rb, line 22 def initialize(object, response = nil) @object = object @authorisation_url = object['authorisation_url'] @auto_fulfil = object['auto_fulfil'] @created_at = object['created_at'] @customer_details_captured = object['customer_details_captured'] @exit_uri = object['exit_uri'] @expires_at = object['expires_at'] @id = object['id'] @language = object['language'] @links = object['links'] @lock_bank_account = object['lock_bank_account'] @lock_currency = object['lock_currency'] @lock_customer_details = object['lock_customer_details'] @prefilled_bank_account = object['prefilled_bank_account'] @prefilled_customer = object['prefilled_customer'] @redirect_uri = object['redirect_uri'] @session_token = object['session_token'] @show_redirect_buttons = object['show_redirect_buttons'] @show_success_redirect_button = object['show_success_redirect_button'] @skip_success_screen = object['skip_success_screen'] @response = response end
Initialize a billing_request_flow resource instance @param object [Hash] an object returned from the API
Public Instance Methods
Source
# File lib/gocardless_pro/resources/billing_request_flow.rb, line 47 def api_response ApiResponse.new(@response) end
Source
# File lib/gocardless_pro/resources/billing_request_flow.rb, line 52 def links @billing_request_flow_links ||= Links.new(@links) end
Return the links that the resource has
Source
# File lib/gocardless_pro/resources/billing_request_flow.rb, line 57 def to_h @object end
Provides the billing_request_flow resource as a hash of all its readable attributes