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

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

Overview

Common Verification Attributes mixin

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#backside_proof_requiredObject

Returns the value of attribute backside_proof_required.



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

def backside_proof_required
  @backside_proof_required
end

#countryObject

Returns the value of attribute country.



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

def country
  @country
end

#emailObject

Returns the value of attribute email.



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

def email
  @email
end

#reference_idObject

Returns the value of attribute reference_id.



15
16
17
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/verification_attributes.rb', line 15

def reference_id
  @reference_id
end

Instance Method Details

#document_supported_typesObject

Supported types of document that can be verified



53
54
55
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/verification_attributes.rb', line 53

def document_supported_types
  @document_supported_types || []
end

#document_supported_types=(value) ⇒ Object

Supported types of document that can be verified



45
46
47
48
49
50
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/verification_attributes.rb', line 45

def document_supported_types=(value)
  parse_array_of_strings attribute:   __method__,
                         value:       value,
                         allowed:     Api::Constants::NonFinancial::Kyc::DocumentSupportedTypes.all,
                         allow_empty: true
end

#expiry_dateObject

Document's expiry date



33
34
35
36
37
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/verification_attributes.rb', line 33

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

#expiry_date=(value) ⇒ Object

Document's expiry date



40
41
42
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/verification_attributes.rb', line 40

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