class GoCardlessPro::Resources::VerificationDetail
Verification details represent any information needed by GoCardless to verify a creditor.
<p class=“restricted-notice”><strong>Restricted</strong>:
These endpoints are restricted to customers who want to collect their
merchant’s
verification details and pass them to GoCardless via our API. Please
[get in
touch](mailto:help@gocardless.com) if you wish to enable this feature on
your
account.</p>
Attributes
Public Class Methods
Source
# File lib/gocardless_pro/resources/verification_detail.rb, line 30 def initialize(object, response = nil) @object = object @address_line1 = object['address_line1'] @address_line2 = object['address_line2'] @address_line3 = object['address_line3'] @city = object['city'] @company_number = object['company_number'] @description = object['description'] @directors = object['directors'] @links = object['links'] @name = object['name'] @postal_code = object['postal_code'] @response = response end
Initialize a verification_detail resource instance @param object [Hash] an object returned from the API
Public Instance Methods
Source
# File lib/gocardless_pro/resources/verification_detail.rb, line 46 def api_response ApiResponse.new(@response) end
Source
# File lib/gocardless_pro/resources/verification_detail.rb, line 51 def links @verification_detail_links ||= Links.new(@links) end
Return the links that the resource has
Source
# File lib/gocardless_pro/resources/verification_detail.rb, line 56 def to_h @object end
Provides the verification_detail resource as a hash of all its readable attributes