onfido 3.4.0 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/MIGRATION.md +30 -0
- data/README.md +2 -2
- data/lib/onfido/api/default_api.rb +68 -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 +3 -5
- data/lib/onfido/models/document_properties_address_lines.rb +1 -1
- data/lib/onfido/models/{document_properties_barcode_inner.rb → document_properties_barcode.rb} +4 -4
- 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 +7 -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 +3 -5
- 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 +1 -1
- 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 +1 -1
- data/lib/onfido/models/facial_similarity_photo_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_report.rb +1 -1
- 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 +1 -1
- data/lib/onfido/models/id_number.rb +1 -1
- 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 +1 -1
- 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 +380 -0
- data/lib/onfido/models/webhook_event_resource_type.rb +45 -0
- data/lib/onfido/models/webhook_event_type.rb +1 -1
- 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 +11 -6
- 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/workflow_run_spec.rb +3 -3
- data/spec/shared_contexts/with_check.rb +1 -0
- data/spec/shared_contexts/with_document.rb +1 -1
- data/spec/studio_webhook_event_verifier_spec.rb +39 -0
- metadata +31 -23
- data/lib/onfido/models/consents_builder.rb +0 -205
@@ -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
|
|
@@ -33,6 +33,7 @@ module Onfido
|
|
33
33
|
# The reasons the Workflow Run outcome was reached. Configurable when creating the Workflow version.
|
34
34
|
attr_accessor :reasons
|
35
35
|
|
36
|
+
# Error object. Only set when the Workflow Run status is 'error'.
|
36
37
|
attr_accessor :error
|
37
38
|
|
38
39
|
# Client token to use when loading this workflow run in the Onfido SDK.
|
@@ -85,10 +86,10 @@ module Onfido
|
|
85
86
|
:'id' => :'String',
|
86
87
|
:'workflow_version_id' => :'Integer',
|
87
88
|
:'dashboard_url' => :'String',
|
88
|
-
:'status' => :'
|
89
|
+
:'status' => :'WorkflowRunStatus',
|
89
90
|
:'output' => :'Object',
|
90
91
|
:'reasons' => :'Array<String>',
|
91
|
-
:'error' => :'
|
92
|
+
:'error' => :'WorkflowRunError',
|
92
93
|
:'sdk_token' => :'String'
|
93
94
|
}
|
94
95
|
end
|
@@ -169,21 +170,9 @@ module Onfido
|
|
169
170
|
def valid?
|
170
171
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
171
172
|
return false if @id.nil?
|
172
|
-
status_validator = EnumAttributeValidator.new('String', ["awaiting_input", "processing", "abandoned", "error", "approved", "review", "declined", "unknown_default_open_api"])
|
173
|
-
return false unless status_validator.valid?(@status)
|
174
173
|
true
|
175
174
|
end
|
176
175
|
|
177
|
-
# Custom attribute writer method checking allowed values (enum).
|
178
|
-
# @param [Object] status Object to be assigned
|
179
|
-
def status=(status)
|
180
|
-
validator = EnumAttributeValidator.new('String', ["awaiting_input", "processing", "abandoned", "error", "approved", "review", "declined", "unknown_default_open_api"])
|
181
|
-
unless validator.valid?(status)
|
182
|
-
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
183
|
-
end
|
184
|
-
@status = status
|
185
|
-
end
|
186
|
-
|
187
176
|
# Checks equality by comparing each attribute.
|
188
177
|
# @param [Object] Object to be compared
|
189
178
|
def ==(o)
|
@@ -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
|
|
@@ -27,6 +27,7 @@ module Onfido
|
|
27
27
|
# Customer-provided user identifier.
|
28
28
|
attr_accessor :customer_user_id
|
29
29
|
|
30
|
+
# Object for the configuration of the Workflow Run link.
|
30
31
|
attr_accessor :link
|
31
32
|
|
32
33
|
# The date and time when the Workflow Run was created.
|
@@ -60,7 +61,7 @@ module Onfido
|
|
60
61
|
:'workflow_id' => :'String',
|
61
62
|
:'tags' => :'Array<String>',
|
62
63
|
:'customer_user_id' => :'String',
|
63
|
-
:'link' => :'
|
64
|
+
:'link' => :'WorkflowRunLink',
|
64
65
|
:'created_at' => :'Time',
|
65
66
|
:'updated_at' => :'Time'
|
66
67
|
}
|
@@ -0,0 +1,47 @@
|
|
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 WorkflowRunStatus
|
18
|
+
PROCESSING = "processing".freeze
|
19
|
+
AWAITING_INPUT = "awaiting_input".freeze
|
20
|
+
AWAITING_CLIENT_INPUT = "awaiting_client_input".freeze
|
21
|
+
APPROVED = "approved".freeze
|
22
|
+
DECLINED = "declined".freeze
|
23
|
+
REVIEW = "review".freeze
|
24
|
+
ABANDONED = "abandoned".freeze
|
25
|
+
ERROR = "error".freeze
|
26
|
+
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
27
|
+
|
28
|
+
def self.all_vars
|
29
|
+
@all_vars ||= [PROCESSING, AWAITING_INPUT, AWAITING_CLIENT_INPUT, APPROVED, DECLINED, REVIEW, ABANDONED, ERROR, UNKNOWN_DEFAULT_OPEN_API].freeze
|
30
|
+
end
|
31
|
+
|
32
|
+
# Builds the enum from string
|
33
|
+
# @param [String] The enum value in the form of the string
|
34
|
+
# @return [String] The enum value
|
35
|
+
def self.build_from_hash(value)
|
36
|
+
new.build_from_hash(value)
|
37
|
+
end
|
38
|
+
|
39
|
+
# Builds the enum from string
|
40
|
+
# @param [String] The enum value in the form of the string
|
41
|
+
# @return [String] The enum value
|
42
|
+
def build_from_hash(value)
|
43
|
+
return value if WorkflowRunStatus.all_vars.include?(value)
|
44
|
+
raise "Invalid ENUM value #{value} for class #WorkflowRunStatus"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
data/lib/onfido/version.rb
CHANGED
data/lib/onfido.rb
CHANGED
@@ -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
|
|
@@ -23,6 +23,8 @@ require 'onfido/models/address_shared'
|
|
23
23
|
require 'onfido/models/addresses_list'
|
24
24
|
require 'onfido/models/applicant'
|
25
25
|
require 'onfido/models/applicant_builder'
|
26
|
+
require 'onfido/models/applicant_consent_builder'
|
27
|
+
require 'onfido/models/applicant_consent_name'
|
26
28
|
require 'onfido/models/applicant_create'
|
27
29
|
require 'onfido/models/applicant_request'
|
28
30
|
require 'onfido/models/applicant_response'
|
@@ -35,11 +37,10 @@ require 'onfido/models/check_builder'
|
|
35
37
|
require 'onfido/models/check_request'
|
36
38
|
require 'onfido/models/check_response'
|
37
39
|
require 'onfido/models/check_shared'
|
40
|
+
require 'onfido/models/check_status'
|
38
41
|
require 'onfido/models/checks_list'
|
39
42
|
require 'onfido/models/complete_task_builder'
|
40
43
|
require 'onfido/models/complete_task_data_builder'
|
41
|
-
require 'onfido/models/consent_item'
|
42
|
-
require 'onfido/models/consents_builder'
|
43
44
|
require 'onfido/models/country_codes'
|
44
45
|
require 'onfido/models/device_intelligence_breakdown'
|
45
46
|
require 'onfido/models/device_intelligence_breakdown_breakdown'
|
@@ -91,7 +92,7 @@ require 'onfido/models/document_iq_reasons'
|
|
91
92
|
require 'onfido/models/document_odp_reasons'
|
92
93
|
require 'onfido/models/document_properties'
|
93
94
|
require 'onfido/models/document_properties_address_lines'
|
94
|
-
require 'onfido/models/
|
95
|
+
require 'onfido/models/document_properties_barcode'
|
95
96
|
require 'onfido/models/document_properties_document_classification'
|
96
97
|
require 'onfido/models/document_properties_document_numbers_inner'
|
97
98
|
require 'onfido/models/document_properties_driving_licence_information'
|
@@ -283,8 +284,11 @@ require 'onfido/models/webhook'
|
|
283
284
|
require 'onfido/models/webhook_builder'
|
284
285
|
require 'onfido/models/webhook_create'
|
285
286
|
require 'onfido/models/webhook_event'
|
287
|
+
require 'onfido/models/webhook_event_object_status'
|
286
288
|
require 'onfido/models/webhook_event_payload'
|
287
289
|
require 'onfido/models/webhook_event_payload_object'
|
290
|
+
require 'onfido/models/webhook_event_payload_resource'
|
291
|
+
require 'onfido/models/webhook_event_resource_type'
|
288
292
|
require 'onfido/models/webhook_event_type'
|
289
293
|
require 'onfido/models/webhook_resend'
|
290
294
|
require 'onfido/models/webhook_response'
|
@@ -295,11 +299,12 @@ require 'onfido/models/webhooks_list'
|
|
295
299
|
require 'onfido/models/webhooks_resend_item'
|
296
300
|
require 'onfido/models/workflow_run'
|
297
301
|
require 'onfido/models/workflow_run_builder'
|
302
|
+
require 'onfido/models/workflow_run_error'
|
303
|
+
require 'onfido/models/workflow_run_link'
|
298
304
|
require 'onfido/models/workflow_run_request'
|
299
305
|
require 'onfido/models/workflow_run_response'
|
300
|
-
require 'onfido/models/workflow_run_response_error'
|
301
306
|
require 'onfido/models/workflow_run_shared'
|
302
|
-
require 'onfido/models/
|
307
|
+
require 'onfido/models/workflow_run_status'
|
303
308
|
|
304
309
|
# APIs
|
305
310
|
require 'onfido/api/default_api'
|
data/onfido.gemspec
CHANGED
@@ -15,13 +15,13 @@ describe Onfido::WebhookEventVerifier do
|
|
15
15
|
it "returns the decoded event payload" do
|
16
16
|
expected_payload = JSON.parse(event_body)["payload"]
|
17
17
|
expected_webhook_event = Onfido::WebhookEvent.new({ payload: Onfido::WebhookEventPayload.build_from_hash(expected_payload) })
|
18
|
-
|
18
|
+
|
19
19
|
webhook_event = subject.read_payload(event_body, sig)
|
20
20
|
expect(webhook_event.payload).to eq(expected_webhook_event.payload)
|
21
|
-
expect(webhook_event.payload.resource_type).to eq(
|
22
|
-
expect(webhook_event.payload.action).to eq(
|
21
|
+
expect(webhook_event.payload.resource_type).to eq(Onfido::WebhookEventResourceType::CHECK)
|
22
|
+
expect(webhook_event.payload.action).to eq(Onfido::WebhookEventType::CHECK_COMPLETED)
|
23
23
|
expect(webhook_event.payload.object.id).to eq('f2302f45-227d-413d-ad61-09ec077a086a')
|
24
|
-
expect(webhook_event.payload.object.status).to eq(
|
24
|
+
expect(webhook_event.payload.object.status).to eq(Onfido::WebhookEventObjectStatus::COMPLETE)
|
25
25
|
expect(webhook_event.payload.object.completed_at_iso8601).to eq(Time.parse('2024-04-04T09:21:21Z'))
|
26
26
|
expect(webhook_event.payload.object.href).to eq('https://api.onfido.com/v3.6/checks/f2302f45-227d-413d-ad61-09ec077a086a')
|
27
27
|
end
|
@@ -27,7 +27,11 @@ describe Onfido::Applicant do
|
|
27
27
|
'location' => {
|
28
28
|
'ip_address' => '127.0.0.1',
|
29
29
|
'country_of_residence' => 'GBR'
|
30
|
-
}
|
30
|
+
},
|
31
|
+
'consents' => [{
|
32
|
+
'name' => Onfido::ApplicantConsentName::PRIVACY_NOTICES_READ,
|
33
|
+
'granted' => true
|
34
|
+
}]
|
31
35
|
}
|
32
36
|
|
33
37
|
applicant = onfido_api.create_applicant(params)
|
@@ -11,7 +11,7 @@ describe Onfido::Check do
|
|
11
11
|
expect(check).to be_an_instance_of Onfido::Check
|
12
12
|
expect(check.applicant_id).to eq applicant_id
|
13
13
|
expect(check.report_ids.size).to eq 2
|
14
|
-
expect(check.status).to eq
|
14
|
+
expect(check.status).to eq Onfido::CheckStatus::IN_PROGRESS
|
15
15
|
end
|
16
16
|
|
17
17
|
context 'consider check' do
|
@@ -47,7 +47,7 @@ describe Onfido::Check do
|
|
47
47
|
us_driving_licence: us_driving_licence_builder,
|
48
48
|
})
|
49
49
|
end
|
50
|
-
|
50
|
+
|
51
51
|
it 'creates a driving licence check' do
|
52
52
|
expect(check).not_to be_nil
|
53
53
|
expect(check).to be_an_instance_of Onfido::Check
|
@@ -65,9 +65,9 @@ describe Onfido::Check do
|
|
65
65
|
|
66
66
|
it 'finds a check' do
|
67
67
|
get_check = onfido_api.find_check(check_id)
|
68
|
-
|
68
|
+
|
69
69
|
expect(get_check).to be_an_instance_of(Onfido::Check)
|
70
|
-
expect(get_check.id).to eq check_id
|
70
|
+
expect(get_check.id).to eq check_id
|
71
71
|
end
|
72
72
|
|
73
73
|
it 'restarts a check' do
|
@@ -35,7 +35,7 @@ describe Onfido::Document do
|
|
35
35
|
|
36
36
|
it 'cannot download an inexistent document' do
|
37
37
|
inexistent_document_id = '00000000-0000-0000-0000-000000000000'
|
38
|
-
|
38
|
+
|
39
39
|
expect {
|
40
40
|
onfido_api.download_document(inexistent_document_id)
|
41
41
|
}.to raise_error(Onfido::ApiError) { |e|
|
@@ -27,7 +27,7 @@ describe Onfido::WorkflowRun do
|
|
27
27
|
let!(:workflow_run_id) { workflow_run.id }
|
28
28
|
|
29
29
|
let(:file_id) do
|
30
|
-
task = onfido_api.list_tasks(workflow_run_id)[
|
30
|
+
task = onfido_api.list_tasks(workflow_run_id)[1]
|
31
31
|
|
32
32
|
output = repeat_request_until_task_output_changes(
|
33
33
|
max_retries = 10,
|
@@ -41,5 +41,22 @@ describe Onfido::Report do
|
|
41
41
|
|
42
42
|
expect(facial_similarity_report).to be_an_instance_of Onfido::FacialSimilarityPhotoReport
|
43
43
|
end
|
44
|
+
|
45
|
+
it 'schema of Document With Address Information report is valid' do
|
46
|
+
report_id = onfido_api.create_check(
|
47
|
+
Onfido::CheckBuilder.new(
|
48
|
+
applicant_id: applicant_id,
|
49
|
+
document_ids: [document_id],
|
50
|
+
report_names: [Onfido::ReportName::DOCUMENT_WITH_ADDRESS_INFORMATION],
|
51
|
+
)).report_ids[0]
|
52
|
+
|
53
|
+
report = repeat_request_until_status_changes(
|
54
|
+
Onfido::ReportStatus::COMPLETE
|
55
|
+
) { onfido_api.find_report(report_id) }
|
56
|
+
|
57
|
+
expect(report).to be_an_instance_of Onfido::DocumentWithAddressInformationReport
|
58
|
+
expect(report.properties.barcode).to be_an_instance_of Onfido::DocumentPropertiesBarcode
|
59
|
+
expect(report.properties.barcode.document_type).to eq("driving_licence")
|
60
|
+
end
|
44
61
|
end
|
45
62
|
end
|
@@ -9,7 +9,7 @@ describe Onfido::WorkflowRun do
|
|
9
9
|
it 'creates a workflow run' do
|
10
10
|
expect(workflow_run).to be_an_instance_of Onfido::WorkflowRun
|
11
11
|
expect(workflow_run.applicant_id).to eq applicant_id
|
12
|
-
expect(workflow_run.status).to eq
|
12
|
+
expect(workflow_run.status).to eq Onfido::WorkflowRunStatus::AWAITING_INPUT
|
13
13
|
end
|
14
14
|
|
15
15
|
context 'workflow run with custom inputs' do
|
@@ -24,11 +24,11 @@ describe Onfido::WorkflowRun do
|
|
24
24
|
}
|
25
25
|
})
|
26
26
|
end
|
27
|
-
|
27
|
+
|
28
28
|
it 'creates a workflow run with custom inputs' do
|
29
29
|
expect(workflow_run).to be_an_instance_of Onfido::WorkflowRun
|
30
30
|
expect(workflow_run.workflow_id).to eq workflow_id
|
31
|
-
expect(workflow_run.status).to eq
|
31
|
+
expect(workflow_run.status).to eq Onfido::WorkflowRunStatus::APPROVED
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -10,6 +10,7 @@ RSpec.shared_context 'with check', shared_context: :metadata do
|
|
10
10
|
applicant_id: applicant_id,
|
11
11
|
document_ids: [document_id],
|
12
12
|
report_names: [Onfido::ReportName::DOCUMENT, Onfido::ReportName::IDENTITY_ENHANCED],
|
13
|
+
privacy_notices_read_consent_given: true
|
13
14
|
})
|
14
15
|
end
|
15
16
|
|
@@ -8,6 +8,6 @@ RSpec.shared_context 'with document', shared_context: :metadata do
|
|
8
8
|
let(:document_file_name) { 'sample_driving_licence.png' }
|
9
9
|
let(:document_file) { File.open("spec/integrations/media/#{document_file_name}") }
|
10
10
|
|
11
|
-
let(:document) { onfido_api.upload_document(
|
11
|
+
let(:document) { onfido_api.upload_document(Onfido::DocumentTypes::PASSPORT, applicant_id, document_file) }
|
12
12
|
let!(:document_id) { document.id }
|
13
13
|
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'onfido/webhook_event_verifier'
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe Onfido::WebhookEventVerifier do
|
5
|
+
subject { described_class.new('YKOC6mkBxi6yK2zlUIrLMvsJMFEZObP5') }
|
6
|
+
describe "#read_payload" do
|
7
|
+
let(:event_body) { '{"payload":{"resource_type":"workflow_task","action":"workflow_task.started","object":{"id":"profile_1eb92","task_spec_id":"profile_1eb92","task_def_id":"profile_data","workflow_run_id":"bc77c6e5-753a-4580-96a6-aaed3e5a8d19","status":"started","started_at_iso8601":"2024-07-10T12:49:09Z","href":"https://api.eu.onfido.com/v3.6/workflow_runs/bc77c6e5-753a-4580-96a6-aaed3e5a8d19/tasks/profile_1eb92"},"resource":{"created_at":"2024-07-10T12:49:09Z","id":"profile_1eb92","workflow_run_id":"bc77c6e5-753a-4580-96a6-aaed3e5a8d19","updated_at":"2024-07-10T12:49:09Z","input":{},"task_def_version":null,"task_def_id":"profile_data","output":null}}}' }
|
8
|
+
let(:sig) { "c95a5b785484f6fa1bc25f381b5595d66bf85cb442eefb06aa007802ee6a4dfa" }
|
9
|
+
it "raises an exception when the signature is invalid" do
|
10
|
+
expect do
|
11
|
+
subject.read_payload(event_body, "c95a5b785484f6fa1bc25f381b5595d66bf85cb442eefb06aa007802ee6a4dfb")
|
12
|
+
end.to raise_error(Onfido::OnfidoInvalidSignatureError, "Invalid signature for webhook event")
|
13
|
+
end
|
14
|
+
|
15
|
+
it "returns the decoded event payload" do
|
16
|
+
expected_payload = JSON.parse(event_body)["payload"]
|
17
|
+
expected_webhook_event = Onfido::WebhookEvent.new({ payload: Onfido::WebhookEventPayload.build_from_hash(expected_payload) })
|
18
|
+
|
19
|
+
webhook_event = subject.read_payload(event_body, sig)
|
20
|
+
expect(webhook_event.payload).to eq(expected_webhook_event.payload)
|
21
|
+
expect(webhook_event.payload.resource_type).to eq(Onfido::WebhookEventResourceType::WORKFLOW_TASK)
|
22
|
+
expect(webhook_event.payload.action).to eq(Onfido::WebhookEventType::WORKFLOW_TASK_STARTED)
|
23
|
+
|
24
|
+
expect(webhook_event.payload.object.id).to eq('profile_1eb92')
|
25
|
+
expect(webhook_event.payload.object.status).to eq(Onfido::WebhookEventObjectStatus::STARTED)
|
26
|
+
expect(webhook_event.payload.object.started_at_iso8601).to eq(Time.parse('2024-07-10T12:49:09Z'))
|
27
|
+
expect(webhook_event.payload.object.href).to eq('https://api.eu.onfido.com/v3.6/workflow_runs/bc77c6e5-753a-4580-96a6-aaed3e5a8d19/tasks/profile_1eb92')
|
28
|
+
|
29
|
+
expect(webhook_event.payload.resource.created_at).to eq(Time.parse('2024-07-10T12:49:09Z'))
|
30
|
+
expect(webhook_event.payload.resource.id).to eq('profile_1eb92')
|
31
|
+
expect(webhook_event.payload.resource.workflow_run_id).to eq('bc77c6e5-753a-4580-96a6-aaed3e5a8d19')
|
32
|
+
expect(webhook_event.payload.resource.updated_at).to eq(Time.parse('2024-07-10T12:49:09Z'))
|
33
|
+
expect(webhook_event.payload.resource.input).to eq({})
|
34
|
+
expect(webhook_event.payload.resource.task_def_version).to eq(nil)
|
35
|
+
expect(webhook_event.payload.resource.task_def_id).to eq('profile_data')
|
36
|
+
expect(webhook_event.payload.resource.output).to eq(nil)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onfido
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -130,6 +130,7 @@ files:
|
|
130
130
|
- CHANGELOG.md
|
131
131
|
- Gemfile
|
132
132
|
- LICENSE
|
133
|
+
- MIGRATION.md
|
133
134
|
- README.md
|
134
135
|
- Rakefile
|
135
136
|
- lib/onfido.rb
|
@@ -143,6 +144,8 @@ files:
|
|
143
144
|
- lib/onfido/models/addresses_list.rb
|
144
145
|
- lib/onfido/models/applicant.rb
|
145
146
|
- lib/onfido/models/applicant_builder.rb
|
147
|
+
- lib/onfido/models/applicant_consent_builder.rb
|
148
|
+
- lib/onfido/models/applicant_consent_name.rb
|
146
149
|
- lib/onfido/models/applicant_create.rb
|
147
150
|
- lib/onfido/models/applicant_request.rb
|
148
151
|
- lib/onfido/models/applicant_response.rb
|
@@ -155,11 +158,10 @@ files:
|
|
155
158
|
- lib/onfido/models/check_request.rb
|
156
159
|
- lib/onfido/models/check_response.rb
|
157
160
|
- lib/onfido/models/check_shared.rb
|
161
|
+
- lib/onfido/models/check_status.rb
|
158
162
|
- lib/onfido/models/checks_list.rb
|
159
163
|
- lib/onfido/models/complete_task_builder.rb
|
160
164
|
- lib/onfido/models/complete_task_data_builder.rb
|
161
|
-
- lib/onfido/models/consent_item.rb
|
162
|
-
- lib/onfido/models/consents_builder.rb
|
163
165
|
- lib/onfido/models/country_codes.rb
|
164
166
|
- lib/onfido/models/device_intelligence_breakdown.rb
|
165
167
|
- lib/onfido/models/device_intelligence_breakdown_breakdown.rb
|
@@ -211,7 +213,7 @@ files:
|
|
211
213
|
- lib/onfido/models/document_odp_reasons.rb
|
212
214
|
- lib/onfido/models/document_properties.rb
|
213
215
|
- lib/onfido/models/document_properties_address_lines.rb
|
214
|
-
- lib/onfido/models/
|
216
|
+
- lib/onfido/models/document_properties_barcode.rb
|
215
217
|
- lib/onfido/models/document_properties_document_classification.rb
|
216
218
|
- lib/onfido/models/document_properties_document_numbers_inner.rb
|
217
219
|
- lib/onfido/models/document_properties_driving_licence_information.rb
|
@@ -403,8 +405,11 @@ files:
|
|
403
405
|
- lib/onfido/models/webhook_builder.rb
|
404
406
|
- lib/onfido/models/webhook_create.rb
|
405
407
|
- lib/onfido/models/webhook_event.rb
|
408
|
+
- lib/onfido/models/webhook_event_object_status.rb
|
406
409
|
- lib/onfido/models/webhook_event_payload.rb
|
407
410
|
- lib/onfido/models/webhook_event_payload_object.rb
|
411
|
+
- lib/onfido/models/webhook_event_payload_resource.rb
|
412
|
+
- lib/onfido/models/webhook_event_resource_type.rb
|
408
413
|
- lib/onfido/models/webhook_event_type.rb
|
409
414
|
- lib/onfido/models/webhook_resend.rb
|
410
415
|
- lib/onfido/models/webhook_response.rb
|
@@ -415,14 +420,16 @@ files:
|
|
415
420
|
- lib/onfido/models/webhooks_resend_item.rb
|
416
421
|
- lib/onfido/models/workflow_run.rb
|
417
422
|
- lib/onfido/models/workflow_run_builder.rb
|
423
|
+
- lib/onfido/models/workflow_run_error.rb
|
424
|
+
- lib/onfido/models/workflow_run_link.rb
|
418
425
|
- lib/onfido/models/workflow_run_request.rb
|
419
426
|
- lib/onfido/models/workflow_run_response.rb
|
420
|
-
- lib/onfido/models/workflow_run_response_error.rb
|
421
427
|
- lib/onfido/models/workflow_run_shared.rb
|
422
|
-
- lib/onfido/models/
|
428
|
+
- lib/onfido/models/workflow_run_status.rb
|
423
429
|
- lib/onfido/version.rb
|
424
430
|
- lib/onfido/webhook_event_verifier.rb
|
425
431
|
- onfido.gemspec
|
432
|
+
- spec/classic_webhook_event_verifier_spec.rb
|
426
433
|
- spec/integrations/address_picker_spec.rb
|
427
434
|
- spec/integrations/applicant_spec.rb
|
428
435
|
- spec/integrations/check_spec.rb
|
@@ -450,7 +457,7 @@ files:
|
|
450
457
|
- spec/shared_contexts/with_onfido.rb
|
451
458
|
- spec/shared_contexts/with_workflow_run.rb
|
452
459
|
- spec/spec_helper.rb
|
453
|
-
- spec/
|
460
|
+
- spec/studio_webhook_event_verifier_spec.rb
|
454
461
|
homepage: https://github.com/onfido/onfido-ruby
|
455
462
|
licenses:
|
456
463
|
- MIT
|
@@ -475,31 +482,32 @@ signing_key:
|
|
475
482
|
specification_version: 4
|
476
483
|
summary: The official Ruby library for integrating with the Onfido API.
|
477
484
|
test_files:
|
478
|
-
- spec/
|
479
|
-
- spec/integrations/
|
480
|
-
- spec/integrations/workflow_run_output_spec.rb
|
481
|
-
- spec/integrations/check_spec.rb
|
482
|
-
- spec/integrations/watchlist_monitor_spec.rb
|
483
|
-
- spec/integrations/applicant_spec.rb
|
484
|
-
- spec/integrations/media/sample_driving_licence.png
|
485
|
-
- spec/integrations/media/sample_photo.png
|
485
|
+
- spec/classic_webhook_event_verifier_spec.rb
|
486
|
+
- spec/integrations/sdk_token_spec.rb
|
486
487
|
- spec/integrations/tasks_spec.rb
|
487
|
-
- spec/integrations/live_video_spec.rb
|
488
488
|
- spec/integrations/motion_capture_spec.rb
|
489
|
-
- spec/integrations/sdk_token_spec.rb
|
490
489
|
- spec/integrations/workflow_run_spec.rb
|
491
|
-
- spec/integrations/
|
490
|
+
- spec/integrations/check_spec.rb
|
491
|
+
- spec/integrations/live_video_spec.rb
|
492
|
+
- spec/integrations/webhook_spec.rb
|
493
|
+
- spec/integrations/workflow_run_output_spec.rb
|
494
|
+
- spec/integrations/applicant_spec.rb
|
492
495
|
- spec/integrations/address_picker_spec.rb
|
496
|
+
- spec/integrations/watchlist_monitor_spec.rb
|
493
497
|
- spec/integrations/id_photo_spec.rb
|
498
|
+
- spec/integrations/qualified_electronic_signature_spec.rb
|
494
499
|
- spec/integrations/report_schema_spec.rb
|
495
|
-
- spec/integrations/webhook_spec.rb
|
496
500
|
- spec/integrations/live_photo_spec.rb
|
497
501
|
- spec/integrations/report_spec.rb
|
502
|
+
- spec/integrations/document_spec.rb
|
503
|
+
- spec/integrations/media/sample_photo.png
|
504
|
+
- spec/integrations/media/sample_driving_licence.png
|
505
|
+
- spec/integrations/extraction_spec.rb
|
506
|
+
- spec/shared_contexts/with_document.rb
|
498
507
|
- spec/shared_contexts/with_check.rb
|
499
508
|
- spec/shared_contexts/with_live_photo.rb
|
500
|
-
- spec/shared_contexts/with_document.rb
|
501
|
-
- spec/shared_contexts/with_onfido.rb
|
502
509
|
- spec/shared_contexts/with_workflow_run.rb
|
503
510
|
- spec/shared_contexts/with_applicant.rb
|
511
|
+
- spec/shared_contexts/with_onfido.rb
|
504
512
|
- spec/spec_helper.rb
|
505
|
-
- spec/
|
513
|
+
- spec/studio_webhook_event_verifier_spec.rb
|