Class: Worldline::Connect::SDK::V1::Domain::PersonalIdentification
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::PersonalIdentification
- Defined in:
- lib/worldline/connect/sdk/v1/domain/personal_identification.rb
Instance Attribute Summary collapse
-
#id_issuing_country_code ⇒ String
The current value of id_issuing_country_code.
-
#id_type ⇒ String
The current value of id_type.
-
#id_value ⇒ String
The current value of id_value.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#id_issuing_country_code ⇒ String
Returns the current value of id_issuing_country_code.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/personal_identification.rb', line 15 def id_issuing_country_code @id_issuing_country_code end |
#id_type ⇒ String
Returns the current value of id_type.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/personal_identification.rb', line 15 def id_type @id_type end |
#id_value ⇒ String
Returns the current value of id_value.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/personal_identification.rb', line 15 def id_value @id_value end |
Instance Method Details
#from_hash(hash) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/worldline/connect/sdk/v1/domain/personal_identification.rb', line 32 def from_hash(hash) super if hash.has_key? 'idIssuingCountryCode' @id_issuing_country_code = hash['idIssuingCountryCode'] end if hash.has_key? 'idType' @id_type = hash['idType'] end if hash.has_key? 'idValue' @id_value = hash['idValue'] end end |
#to_h ⇒ Hash
24 25 26 27 28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/personal_identification.rb', line 24 def to_h hash = super hash['idIssuingCountryCode'] = @id_issuing_country_code unless @id_issuing_country_code.nil? hash['idType'] = @id_type unless @id_type.nil? hash['idValue'] = @id_value unless @id_value.nil? hash end |