Module: GenesisRuby::Api::Mixins::Requests::NonFinancial::Kyc::DocumentAttributes

Included in:
Requests::NonFinancial::Kyc::Verifications::AddressByDocumentProof, Requests::NonFinancial::Kyc::Verifications::RemoteIdentity
Defined in:
lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb

Overview

Document Attributes mixin

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#additional_proofObject

Returns the value of attribute additional_proof.



12
13
14
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb', line 12

def additional_proof
  @additional_proof
end

#first_nameObject

Returns the value of attribute first_name.



13
14
15
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb', line 13

def first_name
  @first_name
end

#full_addressObject

Returns the value of attribute full_address.



12
13
14
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb', line 12

def full_address
  @full_address
end

#last_nameObject

Returns the value of attribute last_name.



13
14
15
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb', line 13

def last_name
  @last_name
end

#middle_nameObject

Returns the value of attribute middle_name.



13
14
15
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb', line 13

def middle_name
  @middle_name
end

#proofObject

Returns the value of attribute proof.



12
13
14
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb', line 12

def proof
  @proof
end

Instance Method Details

#date_of_birthObject

Gets date of birth for the document attributes



16
17
18
19
20
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb', line 16

def date_of_birth
  @date_of_birth&.strftime(
    GenesisRuby::Api::Constants::DateTimeFormats::YYYY_MM_DD_ISO_8601
  )
end

#date_of_birth=(value) ⇒ Object

Sets date of birth for the document attributes



23
24
25
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb', line 23

def date_of_birth=(value)
  parse_date attribute: __method__, value: value, allow_empty: true
end