lib/yoti/client.rb in yoti-1.6.4 vs lib/yoti/client.rb in yoti-1.7.0

- old
+ new

@@ -1,17 +1,19 @@ module Yoti # - # Handles all the publicly accesible Yoti methods for - # geting data using an encrypted connect token + # Handles all the publicly accessible Yoti methods for + # getting 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 + # @param [String] encrypted_connect_token + # Token provided as a base 64 string # - # @return [Object] an ActivityDetails instance encapsulating the user profile + # @return [ActivityDetails] + # 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) @@ -20,9 +22,16 @@ return ActivityDetails.new(receipt) if user_profile.nil? ActivityDetails.new(receipt, user_profile, application_profile, extra_data) end + # + # Perform AML check + # + # @param [AmlProfile] aml_profile + # + # @return [<Hash>] + # def self.aml_check(aml_profile) Yoti::AmlCheckRequest.new(aml_profile).response end end end