Method: VChainClient::Client.get_credentials_fields
- Defined in:
- lib/vchain_client.rb
.get_credentials_fields(type) ⇒ Object
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/vchain_client.rb', line 122 def self.get_credentials_fields(type) if type == FIELD_TYPE_TRAVEL_DOCUMENT_HASHED return ["type", "number", "given_names", "surname", "birthdate"] elsif type == FIELD_TYPE_TEST_DOCUMENT_HASHED return ["type", "a", "b", "c"] end if @log.error? @log.error("[get_credentials_fields] unknown document type: '"+ type +"'") end return nil end |