onfido 3.4.0 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +43 -0
- data/Gemfile +1 -0
- data/MIGRATION.md +30 -0
- data/README.md +14 -12
- data/lib/onfido/api/default_api.rb +131 -68
- data/lib/onfido/api_client.rb +31 -25
- data/lib/onfido/api_error.rb +1 -1
- data/lib/onfido/configuration.rb +11 -1
- data/lib/onfido/models/address.rb +1 -1
- data/lib/onfido/models/address_builder.rb +1 -1
- data/lib/onfido/models/address_shared.rb +1 -1
- data/lib/onfido/models/addresses_list.rb +1 -1
- data/lib/onfido/models/applicant.rb +1 -1
- data/lib/onfido/models/applicant_builder.rb +6 -3
- data/lib/onfido/models/{consent_item.rb → applicant_consent_builder.rb} +5 -18
- data/lib/onfido/models/applicant_consent_name.rb +42 -0
- data/lib/onfido/models/applicant_create.rb +1 -1
- data/lib/onfido/models/applicant_request.rb +6 -3
- data/lib/onfido/models/applicant_response.rb +1 -1
- data/lib/onfido/models/applicant_shared.rb +1 -1
- data/lib/onfido/models/applicant_update.rb +1 -1
- data/lib/onfido/models/applicant_updater.rb +6 -3
- data/lib/onfido/models/applicants_list.rb +1 -1
- data/lib/onfido/models/check.rb +33 -19
- data/lib/onfido/models/check_builder.rb +11 -2
- data/lib/onfido/models/check_request.rb +1 -1
- data/lib/onfido/models/check_response.rb +24 -19
- data/lib/onfido/models/check_shared.rb +14 -5
- data/lib/onfido/models/check_status.rb +45 -0
- data/lib/onfido/models/checks_list.rb +1 -1
- data/lib/onfido/models/complete_task_builder.rb +1 -1
- data/lib/onfido/models/complete_task_data_builder.rb +1 -1
- data/lib/onfido/models/country_codes.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_breakdown.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_breakdown_device.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_breakdown_device_breakdown.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_properties.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_properties_device.rb +2 -42
- data/lib/onfido/models/device_intelligence_breakdown_properties_geolocation.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_properties_ip.rb +5 -35
- data/lib/onfido/models/device_intelligence_report.rb +1 -1
- data/lib/onfido/models/document.rb +2 -2
- data/lib/onfido/models/document_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_age_validation.rb +1 -1
- data/lib/onfido/models/document_breakdown_age_validation_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_compromised_document.rb +1 -1
- data/lib/onfido/models/document_breakdown_compromised_document_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_comparison.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_comparison_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_comparison_breakdown_issuing_country.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_consistency.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_consistency_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_validation.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_validation_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_validation_breakdown_document_expiration.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_validation_breakdown_expiry_date.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown_colour_picture.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown_conclusive_document_quality.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown_image_quality.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown_supported_document.rb +1 -1
- data/lib/onfido/models/document_breakdown_issuing_authority.rb +1 -1
- data/lib/onfido/models/document_breakdown_issuing_authority_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_issuing_authority_breakdown_nfc_active_authentication.rb +1 -1
- data/lib/onfido/models/document_breakdown_issuing_authority_breakdown_nfc_passive_authentication.rb +1 -1
- data/lib/onfido/models/document_breakdown_police_record.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_digital_tampering.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_face_detection.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_fonts.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_original_document_present.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_other.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_picture_face_integrity.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_security_features.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_template.rb +1 -1
- data/lib/onfido/models/document_cdq_reasons.rb +1 -1
- data/lib/onfido/models/document_iq_reasons.rb +1 -1
- data/lib/onfido/models/document_odp_reasons.rb +1 -1
- data/lib/onfido/models/document_properties.rb +1 -1
- data/lib/onfido/models/document_properties_address_lines.rb +1 -1
- data/lib/onfido/models/document_properties_barcode_inner.rb +1 -1
- data/lib/onfido/models/document_properties_document_classification.rb +1 -1
- data/lib/onfido/models/document_properties_document_numbers_inner.rb +1 -1
- data/lib/onfido/models/document_properties_driving_licence_information.rb +1 -1
- data/lib/onfido/models/document_properties_extracted_data.rb +1 -1
- data/lib/onfido/models/document_properties_nfc.rb +1 -1
- data/lib/onfido/models/document_report.rb +1 -1
- data/lib/onfido/models/document_response.rb +1 -1
- data/lib/onfido/models/document_shared.rb +2 -2
- data/lib/onfido/models/document_types.rb +53 -2
- data/lib/onfido/models/document_video_report.rb +1 -1
- data/lib/onfido/models/document_video_with_address_information_report.rb +1 -1
- data/lib/onfido/models/document_with_address_information_report.rb +1 -1
- data/lib/onfido/models/document_with_driver_verification_report.rb +1 -1
- data/lib/onfido/models/document_with_driver_verification_report_all_of_properties.rb +1 -1
- data/lib/onfido/models/document_with_driver_verification_report_all_of_properties_all_of_passenger_vehicle.rb +1 -1
- data/lib/onfido/models/document_with_driver_verification_report_all_of_properties_all_of_vehicle_class_details_inner.rb +1 -1
- data/lib/onfido/models/document_with_driving_licence_information_report.rb +1 -1
- data/lib/onfido/models/documents_list.rb +1 -1
- data/lib/onfido/models/error.rb +1 -1
- data/lib/onfido/models/error1.rb +1 -1
- data/lib/onfido/models/error_properties.rb +1 -1
- data/lib/onfido/models/error_properties1.rb +1 -1
- data/lib/onfido/models/extract_request.rb +1 -1
- data/lib/onfido/models/extraction.rb +1 -1
- data/lib/onfido/models/extraction_document_classification.rb +1 -1
- data/lib/onfido/models/extraction_extracted_data.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_face_comparison.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown_face_detected.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_report.rb +51 -2
- data/lib/onfido/models/facial_similarity_photo_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown_face_match.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown_face_match_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown_face_detected.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown_spoofing_detection_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_report.rb +51 -2
- data/lib/onfido/models/facial_similarity_photo_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_report.rb +51 -2
- data/lib/onfido/models/{consents_builder.rb → facial_similarity_report_media.rb} +23 -6
- data/lib/onfido/models/facial_similarity_report_shared.rb +253 -0
- data/lib/onfido/models/facial_similarity_video_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_face_comparison.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown_face_detected.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_liveness_detected.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_report.rb +51 -2
- data/lib/onfido/models/id_number.rb +3 -3
- data/lib/onfido/models/id_photo.rb +1 -1
- data/lib/onfido/models/id_photo_response.rb +1 -1
- data/lib/onfido/models/id_photos_list.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_credit_agencies.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_credit_agencies_properties.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_telephone_database.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_voting_register.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown_credit_agencies.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown_voting_register.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_mortality.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_sources.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown_total_sources.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown_total_sources_properties.rb +1 -1
- data/lib/onfido/models/identity_enhanced_properties.rb +1 -1
- data/lib/onfido/models/identity_enhanced_properties_matched_addresses_inner.rb +1 -1
- data/lib/onfido/models/identity_enhanced_report.rb +1 -1
- data/lib/onfido/models/india_pan_report.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_breakdown.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_breakdown_device.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_breakdown_device_breakdown.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_breakdown_device_breakdown_pan_valid.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_properties.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_properties_device.rb +1 -1
- data/lib/onfido/models/known_faces_breakdown.rb +1 -1
- data/lib/onfido/models/known_faces_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/known_faces_breakdown_previously_seen_faces.rb +1 -1
- data/lib/onfido/models/known_faces_properties.rb +1 -1
- data/lib/onfido/models/known_faces_properties_matches_inner.rb +1 -1
- data/lib/onfido/models/known_faces_report.rb +1 -1
- data/lib/onfido/models/live_photo.rb +1 -1
- data/lib/onfido/models/live_photo_response.rb +1 -1
- data/lib/onfido/models/live_photos_list.rb +1 -1
- data/lib/onfido/models/live_video.rb +1 -1
- data/lib/onfido/models/live_videos_list.rb +1 -1
- data/lib/onfido/models/location.rb +1 -1
- data/lib/onfido/models/location_builder.rb +1 -1
- data/lib/onfido/models/location_shared.rb +1 -1
- data/lib/onfido/models/motion_capture.rb +1 -1
- data/lib/onfido/models/motion_captures_list.rb +1 -1
- data/lib/onfido/models/photo_auto_reasons.rb +1 -1
- data/lib/onfido/models/photo_reasons.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_data_comparison.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_data_comparison_breakdown.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_document_classification.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_document_classification_breakdown.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/proof_of_address_properties.rb +1 -1
- data/lib/onfido/models/proof_of_address_report.rb +1 -1
- data/lib/onfido/models/repeat_attempts_list.rb +1 -1
- data/lib/onfido/models/repeat_attempts_list_repeat_attempts_inner.rb +1 -1
- data/lib/onfido/models/report.rb +1 -1
- data/lib/onfido/models/report_document.rb +1 -1
- data/lib/onfido/models/report_name.rb +1 -1
- data/lib/onfido/models/report_result.rb +1 -1
- data/lib/onfido/models/report_shared.rb +1 -1
- data/lib/onfido/models/report_status.rb +1 -1
- data/lib/onfido/models/report_sub_result.rb +1 -1
- data/lib/onfido/models/reports_list.rb +1 -1
- data/lib/onfido/models/results_feedback.rb +1 -1
- data/lib/onfido/models/sdk_token.rb +1 -1
- data/lib/onfido/models/sdk_token_builder.rb +1 -1
- data/lib/onfido/models/sdk_token_request.rb +1 -1
- data/lib/onfido/models/sdk_token_response.rb +1 -1
- data/lib/onfido/models/task.rb +2 -2
- data/lib/onfido/models/task_item.rb +23 -2
- data/lib/onfido/models/timeline_file_reference.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_address.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_address_breakdown.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_document.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_document_breakdown.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_personal.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_personal_breakdown.rb +1 -1
- data/lib/onfido/models/us_driving_licence_builder.rb +1 -1
- data/lib/onfido/models/us_driving_licence_report.rb +1 -1
- data/lib/onfido/models/us_driving_licence_shared.rb +1 -1
- data/lib/onfido/models/video_reasons.rb +1 -1
- data/lib/onfido/models/watchlist_aml_breakdown.rb +1 -1
- data/lib/onfido/models/watchlist_aml_breakdown_adverse_media.rb +1 -1
- data/lib/onfido/models/watchlist_aml_breakdown_legal_and_regulatory_warnings.rb +1 -1
- data/lib/onfido/models/watchlist_aml_breakdown_politically_exposed_person.rb +1 -1
- data/lib/onfido/models/watchlist_aml_breakdown_sanction.rb +1 -1
- data/lib/onfido/models/watchlist_aml_properties.rb +1 -1
- data/lib/onfido/models/watchlist_aml_report.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_breakdown.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_address_inner.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_alias_inner.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_associate_inner.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_attribute_inner.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_event_inner.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_event_inner_source.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_source_inner.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_report.rb +1 -1
- data/lib/onfido/models/watchlist_monitor.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_builder.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_match.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_matches_list.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_matches_updater.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_response.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_shared.rb +1 -1
- data/lib/onfido/models/watchlist_monitors_list.rb +1 -1
- data/lib/onfido/models/watchlist_peps_only_report.rb +1 -1
- data/lib/onfido/models/watchlist_sanctions_only_report.rb +1 -1
- data/lib/onfido/models/watchlist_standard_breakdown.rb +1 -1
- data/lib/onfido/models/watchlist_standard_properties.rb +1 -1
- data/lib/onfido/models/watchlist_standard_report.rb +1 -1
- data/lib/onfido/models/webhook.rb +1 -1
- data/lib/onfido/models/webhook_builder.rb +1 -1
- data/lib/onfido/models/webhook_create.rb +1 -1
- data/lib/onfido/models/webhook_event.rb +1 -1
- data/lib/onfido/models/webhook_event_object_status.rb +58 -0
- data/lib/onfido/models/webhook_event_payload.rb +3 -4
- data/lib/onfido/models/webhook_event_payload_object.rb +24 -3
- data/lib/onfido/models/webhook_event_payload_resource.rb +409 -0
- data/lib/onfido/models/webhook_event_resource_type.rb +47 -0
- data/lib/onfido/models/webhook_event_type.rb +3 -2
- data/lib/onfido/models/webhook_resend.rb +1 -1
- data/lib/onfido/models/webhook_response.rb +1 -1
- data/lib/onfido/models/webhook_shared.rb +1 -1
- data/lib/onfido/models/webhook_update.rb +1 -1
- data/lib/onfido/models/webhook_updater.rb +1 -1
- data/lib/onfido/models/webhooks_list.rb +1 -1
- data/lib/onfido/models/webhooks_resend_item.rb +1 -1
- data/lib/onfido/models/workflow_run.rb +6 -16
- data/lib/onfido/models/workflow_run_builder.rb +3 -2
- data/lib/onfido/models/{workflow_run_response_error.rb → workflow_run_error.rb} +4 -5
- data/lib/onfido/models/{workflow_run_shared_link.rb → workflow_run_link.rb} +8 -5
- data/lib/onfido/models/workflow_run_request.rb +1 -1
- data/lib/onfido/models/workflow_run_response.rb +4 -15
- data/lib/onfido/models/workflow_run_shared.rb +3 -2
- data/lib/onfido/models/workflow_run_status.rb +47 -0
- data/lib/onfido/version.rb +2 -2
- data/lib/onfido.rb +12 -5
- data/onfido.gemspec +1 -1
- data/spec/{webhook_event_verifier_spec.rb → classic_webhook_event_verifier_spec.rb} +4 -4
- data/spec/integrations/applicant_spec.rb +5 -1
- data/spec/integrations/check_spec.rb +4 -4
- data/spec/integrations/document_spec.rb +1 -1
- data/spec/integrations/qualified_electronic_signature_spec.rb +1 -1
- data/spec/integrations/report_schema_spec.rb +17 -0
- data/spec/integrations/report_spec.rb +4 -2
- data/spec/integrations/workflow_run_spec.rb +14 -3
- data/spec/media/studio_webhook_event_with_list_in_output.json +31 -0
- data/spec/media/studio_webhook_event_with_object_in_output.json +264 -0
- data/spec/shared_contexts/with_check.rb +1 -0
- data/spec/shared_contexts/with_document.rb +1 -1
- data/spec/spec_helper.rb +3 -3
- data/spec/studio_webhook_event_verifier_spec.rb +78 -0
- metadata +42 -28
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -24,7 +24,6 @@ module Onfido
|
|
24
24
|
# The uri of this resource.
|
25
25
|
attr_accessor :href
|
26
26
|
|
27
|
-
# The current state of the check in the checking process.
|
28
27
|
attr_accessor :status
|
29
28
|
|
30
29
|
# The overall result of the check, based on the results of the constituent reports.
|
@@ -42,6 +41,10 @@ module Onfido
|
|
42
41
|
# Indicates whether the object was created in the sandbox or not.
|
43
42
|
attr_accessor :sandbox
|
44
43
|
|
44
|
+
attr_accessor :paused
|
45
|
+
|
46
|
+
attr_accessor :version
|
47
|
+
|
45
48
|
class EnumAttributeValidator
|
46
49
|
attr_reader :datatype
|
47
50
|
attr_reader :allowable_values
|
@@ -75,7 +78,9 @@ module Onfido
|
|
75
78
|
:'form_uri' => :'form_uri',
|
76
79
|
:'results_uri' => :'results_uri',
|
77
80
|
:'report_ids' => :'report_ids',
|
78
|
-
:'sandbox' => :'sandbox'
|
81
|
+
:'sandbox' => :'sandbox',
|
82
|
+
:'paused' => :'paused',
|
83
|
+
:'version' => :'version'
|
79
84
|
}
|
80
85
|
end
|
81
86
|
|
@@ -90,12 +95,14 @@ module Onfido
|
|
90
95
|
:'id' => :'String',
|
91
96
|
:'created_at' => :'Time',
|
92
97
|
:'href' => :'String',
|
93
|
-
:'status' => :'
|
98
|
+
:'status' => :'CheckStatus',
|
94
99
|
:'result' => :'String',
|
95
100
|
:'form_uri' => :'String',
|
96
101
|
:'results_uri' => :'String',
|
97
102
|
:'report_ids' => :'Array<String>',
|
98
|
-
:'sandbox' => :'Boolean'
|
103
|
+
:'sandbox' => :'Boolean',
|
104
|
+
:'paused' => :'Boolean',
|
105
|
+
:'version' => :'String'
|
99
106
|
}
|
100
107
|
end
|
101
108
|
|
@@ -159,6 +166,14 @@ module Onfido
|
|
159
166
|
if attributes.key?(:'sandbox')
|
160
167
|
self.sandbox = attributes[:'sandbox']
|
161
168
|
end
|
169
|
+
|
170
|
+
if attributes.key?(:'paused')
|
171
|
+
self.paused = attributes[:'paused']
|
172
|
+
end
|
173
|
+
|
174
|
+
if attributes.key?(:'version')
|
175
|
+
self.version = attributes[:'version']
|
176
|
+
end
|
162
177
|
end
|
163
178
|
|
164
179
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -178,23 +193,11 @@ module Onfido
|
|
178
193
|
def valid?
|
179
194
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
180
195
|
return false if @id.nil?
|
181
|
-
status_validator = EnumAttributeValidator.new('String', ["in_progress", "awaiting_applicant", "complete", "withdrawn", "paused", "reopened", "unknown_default_open_api"])
|
182
|
-
return false unless status_validator.valid?(@status)
|
183
196
|
result_validator = EnumAttributeValidator.new('String', ["clear", "consider", "unknown_default_open_api"])
|
184
197
|
return false unless result_validator.valid?(@result)
|
185
198
|
true
|
186
199
|
end
|
187
200
|
|
188
|
-
# Custom attribute writer method checking allowed values (enum).
|
189
|
-
# @param [Object] status Object to be assigned
|
190
|
-
def status=(status)
|
191
|
-
validator = EnumAttributeValidator.new('String', ["in_progress", "awaiting_applicant", "complete", "withdrawn", "paused", "reopened", "unknown_default_open_api"])
|
192
|
-
unless validator.valid?(status)
|
193
|
-
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
194
|
-
end
|
195
|
-
@status = status
|
196
|
-
end
|
197
|
-
|
198
201
|
# Custom attribute writer method checking allowed values (enum).
|
199
202
|
# @param [Object] result Object to be assigned
|
200
203
|
def result=(result)
|
@@ -218,7 +221,9 @@ module Onfido
|
|
218
221
|
form_uri == o.form_uri &&
|
219
222
|
results_uri == o.results_uri &&
|
220
223
|
report_ids == o.report_ids &&
|
221
|
-
sandbox == o.sandbox
|
224
|
+
sandbox == o.sandbox &&
|
225
|
+
paused == o.paused &&
|
226
|
+
version == o.version
|
222
227
|
end
|
223
228
|
|
224
229
|
# @see the `==` method
|
@@ -230,7 +235,7 @@ module Onfido
|
|
230
235
|
# Calculates hash code according to all attributes.
|
231
236
|
# @return [Integer] Hash code
|
232
237
|
def hash
|
233
|
-
[id, created_at, href, status, result, form_uri, results_uri, report_ids, sandbox].hash
|
238
|
+
[id, created_at, href, status, result, form_uri, results_uri, report_ids, sandbox, paused, version].hash
|
234
239
|
end
|
235
240
|
|
236
241
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -30,6 +30,8 @@ module Onfido
|
|
30
30
|
# For checks where `applicant_provides_data` is `true`, redirect to this URI when the applicant has submitted their data.
|
31
31
|
attr_accessor :redirect_uri
|
32
32
|
|
33
|
+
attr_accessor :privacy_notices_read_consent_given
|
34
|
+
|
33
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
36
|
def self.attribute_map
|
35
37
|
{
|
@@ -37,7 +39,8 @@ module Onfido
|
|
37
39
|
:'applicant_id' => :'applicant_id',
|
38
40
|
:'applicant_provides_data' => :'applicant_provides_data',
|
39
41
|
:'tags' => :'tags',
|
40
|
-
:'redirect_uri' => :'redirect_uri'
|
42
|
+
:'redirect_uri' => :'redirect_uri',
|
43
|
+
:'privacy_notices_read_consent_given' => :'privacy_notices_read_consent_given'
|
41
44
|
}
|
42
45
|
end
|
43
46
|
|
@@ -53,7 +56,8 @@ module Onfido
|
|
53
56
|
:'applicant_id' => :'String',
|
54
57
|
:'applicant_provides_data' => :'Boolean',
|
55
58
|
:'tags' => :'Array<String>',
|
56
|
-
:'redirect_uri' => :'String'
|
59
|
+
:'redirect_uri' => :'String',
|
60
|
+
:'privacy_notices_read_consent_given' => :'Boolean'
|
57
61
|
}
|
58
62
|
end
|
59
63
|
|
@@ -103,6 +107,10 @@ module Onfido
|
|
103
107
|
if attributes.key?(:'redirect_uri')
|
104
108
|
self.redirect_uri = attributes[:'redirect_uri']
|
105
109
|
end
|
110
|
+
|
111
|
+
if attributes.key?(:'privacy_notices_read_consent_given')
|
112
|
+
self.privacy_notices_read_consent_given = attributes[:'privacy_notices_read_consent_given']
|
113
|
+
end
|
106
114
|
end
|
107
115
|
|
108
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -134,7 +142,8 @@ module Onfido
|
|
134
142
|
applicant_id == o.applicant_id &&
|
135
143
|
applicant_provides_data == o.applicant_provides_data &&
|
136
144
|
tags == o.tags &&
|
137
|
-
redirect_uri == o.redirect_uri
|
145
|
+
redirect_uri == o.redirect_uri &&
|
146
|
+
privacy_notices_read_consent_given == o.privacy_notices_read_consent_given
|
138
147
|
end
|
139
148
|
|
140
149
|
# @see the `==` method
|
@@ -146,7 +155,7 @@ module Onfido
|
|
146
155
|
# Calculates hash code according to all attributes.
|
147
156
|
# @return [Integer] Hash code
|
148
157
|
def hash
|
149
|
-
[webhook_ids, applicant_id, applicant_provides_data, tags, redirect_uri].hash
|
158
|
+
[webhook_ids, applicant_id, applicant_provides_data, tags, redirect_uri, privacy_notices_read_consent_given].hash
|
150
159
|
end
|
151
160
|
|
152
161
|
# Builds the object from hash
|
@@ -0,0 +1,45 @@
|
|
1
|
+
=begin
|
2
|
+
#Onfido API v3.6
|
3
|
+
|
4
|
+
#The Onfido API (v3.6)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3.6
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Onfido
|
17
|
+
class CheckStatus
|
18
|
+
IN_PROGRESS = "in_progress".freeze
|
19
|
+
AWAITING_APPLICANT = "awaiting_applicant".freeze
|
20
|
+
COMPLETE = "complete".freeze
|
21
|
+
WITHDRAWN = "withdrawn".freeze
|
22
|
+
PAUSED = "paused".freeze
|
23
|
+
REOPENED = "reopened".freeze
|
24
|
+
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
25
|
+
|
26
|
+
def self.all_vars
|
27
|
+
@all_vars ||= [IN_PROGRESS, AWAITING_APPLICANT, COMPLETE, WITHDRAWN, PAUSED, REOPENED, UNKNOWN_DEFAULT_OPEN_API].freeze
|
28
|
+
end
|
29
|
+
|
30
|
+
# Builds the enum from string
|
31
|
+
# @param [String] The enum value in the form of the string
|
32
|
+
# @return [String] The enum value
|
33
|
+
def self.build_from_hash(value)
|
34
|
+
new.build_from_hash(value)
|
35
|
+
end
|
36
|
+
|
37
|
+
# Builds the enum from string
|
38
|
+
# @param [String] The enum value in the form of the string
|
39
|
+
# @return [String] The enum value
|
40
|
+
def build_from_hash(value)
|
41
|
+
return value if CheckStatus.all_vars.include?(value)
|
42
|
+
raise "Invalid ENUM value #{value} for class #CheckStatus"
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -42,18 +42,6 @@ module Onfido
|
|
42
42
|
# Whether device is using stolen security tokens to send the network information.
|
43
43
|
attr_accessor :fake_network_request
|
44
44
|
|
45
|
-
# The true operating system of the device.
|
46
|
-
attr_accessor :true_os
|
47
|
-
|
48
|
-
# The likelihood of an operating system anomaly between the true OS and the OS sent by the device.
|
49
|
-
attr_accessor :os_anomaly
|
50
|
-
|
51
|
-
# Whether the device is rooted.
|
52
|
-
attr_accessor :rooted
|
53
|
-
|
54
|
-
# Whether the device is controlled via remote software.
|
55
|
-
attr_accessor :remote_software
|
56
|
-
|
57
45
|
# Whether there is highly suspicious traffic related to the IP address. The risk depends on the overall ratio of clear checks on a given IP.
|
58
46
|
attr_accessor :ip_reputation
|
59
47
|
|
@@ -103,10 +91,6 @@ module Onfido
|
|
103
91
|
:'emulator' => :'emulator',
|
104
92
|
:'randomized_device' => :'randomized_device',
|
105
93
|
:'fake_network_request' => :'fake_network_request',
|
106
|
-
:'true_os' => :'true_os',
|
107
|
-
:'os_anomaly' => :'os_anomaly',
|
108
|
-
:'rooted' => :'rooted',
|
109
|
-
:'remote_software' => :'remote_software',
|
110
94
|
:'ip_reputation' => :'ip_reputation',
|
111
95
|
:'device_fingerprint_reuse' => :'device_fingerprint_reuse',
|
112
96
|
:'single_device_used' => :'single_device_used',
|
@@ -132,10 +116,6 @@ module Onfido
|
|
132
116
|
:'emulator' => :'Boolean',
|
133
117
|
:'randomized_device' => :'Boolean',
|
134
118
|
:'fake_network_request' => :'Boolean',
|
135
|
-
:'true_os' => :'String',
|
136
|
-
:'os_anomaly' => :'String',
|
137
|
-
:'rooted' => :'Boolean',
|
138
|
-
:'remote_software' => :'Boolean',
|
139
119
|
:'ip_reputation' => :'String',
|
140
120
|
:'device_fingerprint_reuse' => :'Integer',
|
141
121
|
:'single_device_used' => :'Boolean',
|
@@ -202,22 +182,6 @@ module Onfido
|
|
202
182
|
self.fake_network_request = attributes[:'fake_network_request']
|
203
183
|
end
|
204
184
|
|
205
|
-
if attributes.key?(:'true_os')
|
206
|
-
self.true_os = attributes[:'true_os']
|
207
|
-
end
|
208
|
-
|
209
|
-
if attributes.key?(:'os_anomaly')
|
210
|
-
self.os_anomaly = attributes[:'os_anomaly']
|
211
|
-
end
|
212
|
-
|
213
|
-
if attributes.key?(:'rooted')
|
214
|
-
self.rooted = attributes[:'rooted']
|
215
|
-
end
|
216
|
-
|
217
|
-
if attributes.key?(:'remote_software')
|
218
|
-
self.remote_software = attributes[:'remote_software']
|
219
|
-
end
|
220
|
-
|
221
185
|
if attributes.key?(:'ip_reputation')
|
222
186
|
self.ip_reputation = attributes[:'ip_reputation']
|
223
187
|
end
|
@@ -328,10 +292,6 @@ module Onfido
|
|
328
292
|
emulator == o.emulator &&
|
329
293
|
randomized_device == o.randomized_device &&
|
330
294
|
fake_network_request == o.fake_network_request &&
|
331
|
-
true_os == o.true_os &&
|
332
|
-
os_anomaly == o.os_anomaly &&
|
333
|
-
rooted == o.rooted &&
|
334
|
-
remote_software == o.remote_software &&
|
335
295
|
ip_reputation == o.ip_reputation &&
|
336
296
|
device_fingerprint_reuse == o.device_fingerprint_reuse &&
|
337
297
|
single_device_used == o.single_device_used &&
|
@@ -348,7 +308,7 @@ module Onfido
|
|
348
308
|
# Calculates hash code according to all attributes.
|
349
309
|
# @return [Integer] Hash code
|
350
310
|
def hash
|
351
|
-
[sdk_version, sdk_source, authentication_type, raw_model, os, browser, emulator, randomized_device, fake_network_request,
|
311
|
+
[sdk_version, sdk_source, authentication_type, raw_model, os, browser, emulator, randomized_device, fake_network_request, ip_reputation, device_fingerprint_reuse, single_device_used, document_capture, biometric_capture].hash
|
352
312
|
end
|
353
313
|
|
354
314
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,22 +18,10 @@ module Onfido
|
|
18
18
|
# The IP address that uploaded the media.
|
19
19
|
attr_accessor :address
|
20
20
|
|
21
|
-
# The likelihood of the network connection being a VPN.
|
22
|
-
attr_accessor :vpn_detection
|
23
|
-
|
24
|
-
# The likelihood of the network connection being a Proxy.
|
25
|
-
attr_accessor :proxy_detection
|
26
|
-
|
27
|
-
# The type of organization that owns this IP address.
|
28
|
-
attr_accessor :type
|
29
|
-
|
30
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
22
|
def self.attribute_map
|
32
23
|
{
|
33
|
-
:'address' => :'address'
|
34
|
-
:'vpn_detection' => :'vpn_detection',
|
35
|
-
:'proxy_detection' => :'proxy_detection',
|
36
|
-
:'type' => :'type'
|
24
|
+
:'address' => :'address'
|
37
25
|
}
|
38
26
|
end
|
39
27
|
|
@@ -45,10 +33,7 @@ module Onfido
|
|
45
33
|
# Attribute type mapping.
|
46
34
|
def self.openapi_types
|
47
35
|
{
|
48
|
-
:'address' => :'String'
|
49
|
-
:'vpn_detection' => :'String',
|
50
|
-
:'proxy_detection' => :'String',
|
51
|
-
:'type' => :'String'
|
36
|
+
:'address' => :'String'
|
52
37
|
}
|
53
38
|
end
|
54
39
|
|
@@ -76,18 +61,6 @@ module Onfido
|
|
76
61
|
if attributes.key?(:'address')
|
77
62
|
self.address = attributes[:'address']
|
78
63
|
end
|
79
|
-
|
80
|
-
if attributes.key?(:'vpn_detection')
|
81
|
-
self.vpn_detection = attributes[:'vpn_detection']
|
82
|
-
end
|
83
|
-
|
84
|
-
if attributes.key?(:'proxy_detection')
|
85
|
-
self.proxy_detection = attributes[:'proxy_detection']
|
86
|
-
end
|
87
|
-
|
88
|
-
if attributes.key?(:'type')
|
89
|
-
self.type = attributes[:'type']
|
90
|
-
end
|
91
64
|
end
|
92
65
|
|
93
66
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -110,10 +83,7 @@ module Onfido
|
|
110
83
|
def ==(o)
|
111
84
|
return true if self.equal?(o)
|
112
85
|
self.class == o.class &&
|
113
|
-
address == o.address
|
114
|
-
vpn_detection == o.vpn_detection &&
|
115
|
-
proxy_detection == o.proxy_detection &&
|
116
|
-
type == o.type
|
86
|
+
address == o.address
|
117
87
|
end
|
118
88
|
|
119
89
|
# @see the `==` method
|
@@ -125,7 +95,7 @@ module Onfido
|
|
125
95
|
# Calculates hash code according to all attributes.
|
126
96
|
# @return [Integer] Hash code
|
127
97
|
def hash
|
128
|
-
[address
|
98
|
+
[address].hash
|
129
99
|
end
|
130
100
|
|
131
101
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -96,7 +96,7 @@ module Onfido
|
|
96
96
|
def self.openapi_types
|
97
97
|
{
|
98
98
|
:'file_type' => :'String',
|
99
|
-
:'type' => :'
|
99
|
+
:'type' => :'DocumentTypes',
|
100
100
|
:'side' => :'String',
|
101
101
|
:'issuing_country' => :'CountryCodes',
|
102
102
|
:'applicant_id' => :'String',
|