lib/yoti/activity_details.rb in yoti-1.9.0 vs lib/yoti/activity_details.rb in yoti-1.10.0

- old
+ new

@@ -59,11 +59,11 @@ attr_reader :base64_selfie_uri # # The age under/over attribute # - # @deprecated 2.0.0 - replaced by: + # @deprecated will be removed in 2.0.0 - replaced by: # - Yoti::Profile#age_verifications # - Yoti::Profile#find_age_over_verification # - Yoti::Profile#find_age_under_verification # # @return [Boolean] @@ -106,13 +106,11 @@ @outcome = receipt['sharing_outcome'] @timestamp = receipt['timestamp'] ? Time.parse(receipt['timestamp']) : nil @extended_user_profile = process_decrypted_profile(decrypted_profile) @extended_application_profile = process_decrypted_profile(decrypted_application_profile) @extra_data = extra_data - @user_profile = @extended_user_profile.map do |name, attribute| - [name, attribute.value] - end.to_h + @user_profile = @extended_user_profile.transform_values(&:value) end # # The user's structured postal address as JSON # @@ -193,10 +191,10 @@ end # # Processes age verification # - # @deprecated 2.0.0 + # @deprecated will be removed in 2.0.0 # # @param [Yoti::Protobuf::Attrpubapi::Attribute] attribute # def process_age_verified(attribute) @age_verified = attribute.value == 'true' if Yoti::AgeProcessor.is_age_verification(attribute.name)