class GoCardlessPro::Resources::BillingRequestWithAction
Billing Requests help create resources that require input or action from
a customer. An example of required input might be additional customer billing details, while an action would be asking a customer to authorise a payment using their mobile banking app.
See [Billing Requests: Overview](developer.gocardless.com/getting-started/billing-requests/overview/) for how-to’s, explanations and tutorials.
Attributes
Public Class Methods
Source
# File lib/gocardless_pro/resources/billing_request_with_action.rb, line 26 def initialize(object, response = nil) @object = object @bank_authorisations = object['bank_authorisations'] @billing_requests = object['billing_requests'] @response = response end
Initialize a billing_request_with_action resource instance @param object [Hash] an object returned from the API
Public Instance Methods
Source
# File lib/gocardless_pro/resources/billing_request_with_action.rb, line 34 def api_response ApiResponse.new(@response) end
Source
# File lib/gocardless_pro/resources/billing_request_with_action.rb, line 39 def to_h @object end
Provides the billing_request_with_action resource as a hash of all its readable attributes