Class: GoCardlessPro::Resources::SchemeIdentifier
- Inherits:
-
Object
- Object
- GoCardlessPro::Resources::SchemeIdentifier
- Defined in:
- lib/gocardless_pro/resources/scheme_identifier.rb
Overview
This represents a scheme identifier (e.g. a SUN in Bacs or a CID in SEPA). Scheme identifiers are used to specify the beneficiary name that appears on customers’ bank statements.
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.
-
#can_specify_mandate_reference ⇒ Object
readonly
Returns the value of attribute can_specify_mandate_reference.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#country_code ⇒ Object
readonly
Returns the value of attribute country_code.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#minimum_advance_notice ⇒ Object
readonly
Returns the value of attribute minimum_advance_notice.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#phone_number ⇒ Object
readonly
Returns the value of attribute phone_number.
-
#postal_code ⇒ Object
readonly
Returns the value of attribute postal_code.
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
-
#scheme ⇒ Object
readonly
Returns the value of attribute scheme.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #api_response ⇒ Object
-
#initialize(object, response = nil) ⇒ SchemeIdentifier
constructor
Initialize a scheme_identifier resource instance.
-
#to_h ⇒ Object
Provides the scheme_identifier resource as a hash of all its readable attributes.
Constructor Details
#initialize(object, response = nil) ⇒ SchemeIdentifier
Initialize a scheme_identifier resource instance
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 23 def initialize(object, response = nil) @object = object @address_line1 = object['address_line1'] @address_line2 = object['address_line2'] @address_line3 = object['address_line3'] @can_specify_mandate_reference = object['can_specify_mandate_reference'] @city = object['city'] @country_code = object['country_code'] @created_at = object['created_at'] @currency = object['currency'] @email = object['email'] @id = object['id'] @minimum_advance_notice = object['minimum_advance_notice'] @name = object['name'] @phone_number = object['phone_number'] @postal_code = object['postal_code'] @reference = object['reference'] @region = object['region'] @scheme = object['scheme'] @status = object['status'] @response = response end |
Instance Attribute Details
#address_line1 ⇒ Object (readonly)
Returns the value of attribute address_line1.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def address_line1 @address_line1 end |
#address_line2 ⇒ Object (readonly)
Returns the value of attribute address_line2.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def address_line2 @address_line2 end |
#address_line3 ⇒ Object (readonly)
Returns the value of attribute address_line3.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def address_line3 @address_line3 end |
#can_specify_mandate_reference ⇒ Object (readonly)
Returns the value of attribute can_specify_mandate_reference.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def can_specify_mandate_reference @can_specify_mandate_reference end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def city @city end |
#country_code ⇒ Object (readonly)
Returns the value of attribute country_code.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def country_code @country_code end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def created_at @created_at end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def currency @currency end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def email @email end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def id @id end |
#minimum_advance_notice ⇒ Object (readonly)
Returns the value of attribute minimum_advance_notice.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def minimum_advance_notice @minimum_advance_notice end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def name @name end |
#phone_number ⇒ Object (readonly)
Returns the value of attribute phone_number.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def phone_number @phone_number end |
#postal_code ⇒ Object (readonly)
Returns the value of attribute postal_code.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def postal_code @postal_code end |
#reference ⇒ Object (readonly)
Returns the value of attribute reference.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def reference @reference end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def region @region end |
#scheme ⇒ Object (readonly)
Returns the value of attribute scheme.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def scheme @scheme end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
18 19 20 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 18 def status @status end |
Instance Method Details
#api_response ⇒ Object
47 48 49 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 47 def api_response ApiResponse.new(@response) end |
#to_h ⇒ Object
Provides the scheme_identifier resource as a hash of all its readable attributes
52 53 54 |
# File 'lib/gocardless_pro/resources/scheme_identifier.rb', line 52 def to_h @object end |