Class: GoCardlessPro::Resources::VerificationDetail
- Inherits:
-
Object
- Object
- GoCardlessPro::Resources::VerificationDetail
- Defined in:
- lib/gocardless_pro/resources/verification_detail.rb
Overview
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:[email protected]) if you wish to enable this feature on
your
account.</p>
Defined Under Namespace
Classes: Links
Instance Attribute Summary collapse
-
#address_line1 ⇒ Object
readonly
Returns the value of attribute address_line1.
-
#address_line2 ⇒ Object
readonly
Returns the value of attribute address_line2.
-
#address_line3 ⇒ Object
readonly
Returns the value of attribute address_line3.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#company_number ⇒ Object
readonly
Returns the value of attribute company_number.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#directors ⇒ Object
readonly
Returns the value of attribute directors.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#postal_code ⇒ Object
readonly
Returns the value of attribute postal_code.
Instance Method Summary collapse
- #api_response ⇒ Object
-
#initialize(object, response = nil) ⇒ VerificationDetail
constructor
Initialize a verification_detail resource instance.
-
#links ⇒ Object
Return the links that the resource has.
-
#to_h ⇒ Object
Provides the verification_detail resource as a hash of all its readable attributes.
Constructor Details
#initialize(object, response = nil) ⇒ VerificationDetail
Initialize a verification_detail resource instance
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# 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 |
Instance Attribute Details
#address_line1 ⇒ Object (readonly)
Returns the value of attribute address_line1.
25 26 27 |
# File 'lib/gocardless_pro/resources/verification_detail.rb', line 25 def address_line1 @address_line1 end |
#address_line2 ⇒ Object (readonly)
Returns the value of attribute address_line2.
25 26 27 |
# File 'lib/gocardless_pro/resources/verification_detail.rb', line 25 def address_line2 @address_line2 end |
#address_line3 ⇒ Object (readonly)
Returns the value of attribute address_line3.
25 26 27 |
# File 'lib/gocardless_pro/resources/verification_detail.rb', line 25 def address_line3 @address_line3 end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
25 26 27 |
# File 'lib/gocardless_pro/resources/verification_detail.rb', line 25 def city @city end |
#company_number ⇒ Object (readonly)
Returns the value of attribute company_number.
25 26 27 |
# File 'lib/gocardless_pro/resources/verification_detail.rb', line 25 def company_number @company_number end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
25 26 27 |
# File 'lib/gocardless_pro/resources/verification_detail.rb', line 25 def description @description end |
#directors ⇒ Object (readonly)
Returns the value of attribute directors.
25 26 27 |
# File 'lib/gocardless_pro/resources/verification_detail.rb', line 25 def directors @directors end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
25 26 27 |
# File 'lib/gocardless_pro/resources/verification_detail.rb', line 25 def name @name end |
#postal_code ⇒ Object (readonly)
Returns the value of attribute postal_code.
25 26 27 |
# File 'lib/gocardless_pro/resources/verification_detail.rb', line 25 def postal_code @postal_code end |
Instance Method Details
#api_response ⇒ Object
46 47 48 |
# File 'lib/gocardless_pro/resources/verification_detail.rb', line 46 def api_response ApiResponse.new(@response) end |
#links ⇒ Object
Return the links that the resource has
51 52 53 |
# File 'lib/gocardless_pro/resources/verification_detail.rb', line 51 def links @verification_detail_links ||= Links.new(@links) end |
#to_h ⇒ Object
Provides the verification_detail resource as a hash of all its readable attributes
56 57 58 |
# File 'lib/gocardless_pro/resources/verification_detail.rb', line 56 def to_h @object end |