class GoCardlessPro::Resources::BillingRequest
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. <p class=“notice”><strong>Important</strong>: All properties associated with ‘subscription_request` and `instalment_schedule_request` are only supported for ACH and PAD schemes.</p>
Attributes
Public Class Methods
Source
# File lib/gocardless_pro/resources/billing_request.rb, line 30 def initialize(object, response = nil) @object = object @actions = object['actions'] @created_at = object['created_at'] @fallback_enabled = object['fallback_enabled'] @fallback_occurred = object['fallback_occurred'] @id = object['id'] @instalment_schedule_request = object['instalment_schedule_request'] @links = object['links'] @mandate_request = object['mandate_request'] @metadata = object['metadata'] @payment_request = object['payment_request'] @purpose_code = object['purpose_code'] @resources = object['resources'] @status = object['status'] @subscription_request = object['subscription_request'] @response = response end
Initialize a billing_request resource instance @param object [Hash] an object returned from the API
Public Instance Methods
Source
# File lib/gocardless_pro/resources/billing_request.rb, line 50 def api_response ApiResponse.new(@response) end
Source
# File lib/gocardless_pro/resources/billing_request.rb, line 55 def links @billing_request_links ||= Links.new(@links) end
Return the links that the resource has
Source
# File lib/gocardless_pro/resources/billing_request.rb, line 60 def to_h @object end
Provides the billing_request resource as a hash of all its readable attributes