Module: Yoti::Client
- Defined in:
- lib/yoti/client.rb
Overview
Handles all the publicly accesible Yoti methods for geting data using an encrypted connect token
Class Method Summary collapse
- .aml_check(aml_profile) ⇒ Object
-
.get_activity_details(encrypted_connect_token) ⇒ Object
Performs all the steps required to get the decrypted profile from an API request.
Class Method Details
.aml_check(aml_profile) ⇒ Object
25 26 27 |
# File 'lib/yoti/client.rb', line 25 def self.aml_check(aml_profile) Yoti::AmlCheckRequest.new(aml_profile).response end |
.get_activity_details(encrypted_connect_token) ⇒ Object
Performs all the steps required to get the decrypted profile from an API request
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/yoti/client.rb', line 14 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 |