Sha256: 04aab3b789bf9749f96116763bf3edec47c1026c21f40fe6307e76d83904dabe
Contents?: true
Size: 978 Bytes
Versions: 5
Compression:
Stored size: 978 Bytes
Contents
module Yoti # # Handles all the publicly accesible Yoti methods for # geting data using an encrypted connect token # module Client # # Performs all the steps required to get the decrypted profile from an API request # # @param encrypted_connect_token [String] token provided as a base 64 string # # @return [Object] an ActivityDetails instance encapsulating the user profile # def self.get_activity_details(encrypted_connect_token) receipt = Yoti::ProfileRequest.new(encrypted_connect_token).receipt user_profile = Protobuf.user_profile(receipt) application_profile = Protobuf.application_profile(receipt) extra_data = Protobuf.extra_data(receipt) return ActivityDetails.new(receipt) if user_profile.nil? ActivityDetails.new(receipt, user_profile, application_profile, extra_data) end def self.aml_check(aml_profile) Yoti::AmlCheckRequest.new(aml_profile).response end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
yoti-1.6.4 | lib/yoti/client.rb |
yoti-1.6.3 | lib/yoti/client.rb |
yoti-1.6.2 | lib/yoti/client.rb |
yoti-1.6.1 | lib/yoti/client.rb |
yoti-1.6.0 | lib/yoti/client.rb |