onfido 4.5.0 → 5.0.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 +14 -0
- data/MIGRATION.md +29 -0
- data/README.md +14 -12
- data/lib/onfido/api/default_api.rb +67 -5
- data/lib/onfido/api_client.rb +3 -2
- data/lib/onfido/api_error.rb +1 -1
- data/lib/onfido/configuration.rb +1 -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 +1 -1
- data/lib/onfido/models/applicant_consent_builder.rb +1 -1
- data/lib/onfido/models/applicant_consent_name.rb +1 -1
- data/lib/onfido/models/applicant_create.rb +1 -1
- data/lib/onfido/models/applicant_request.rb +1 -1
- 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 +1 -1
- data/lib/onfido/models/applicants_list.rb +1 -1
- data/lib/onfido/models/check.rb +1 -1
- data/lib/onfido/models/check_builder.rb +1 -1
- data/lib/onfido/models/check_request.rb +1 -1
- data/lib/onfido/models/check_response.rb +1 -1
- data/lib/onfido/models/check_shared.rb +1 -1
- data/lib/onfido/models/check_status.rb +1 -1
- 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 +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_properties_geolocation.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_properties_ip.rb +1 -1
- data/lib/onfido/models/device_intelligence_report.rb +2 -14
- data/lib/onfido/models/document.rb +1 -13
- 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 +15 -14
- data/lib/onfido/models/document_report_shared.rb +217 -0
- data/lib/onfido/models/document_response.rb +1 -1
- data/lib/onfido/models/document_shared.rb +1 -13
- data/lib/onfido/models/document_types.rb +1 -1
- data/lib/onfido/models/document_video_report.rb +15 -14
- data/lib/onfido/models/document_video_with_address_information_report.rb +15 -14
- data/lib/onfido/models/document_with_address_information_report.rb +15 -14
- data/lib/onfido/models/document_with_driver_verification_report.rb +15 -14
- 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 +15 -14
- 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 +14 -14
- 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 +14 -14
- data/lib/onfido/models/facial_similarity_photo_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_report.rb +14 -14
- data/lib/onfido/models/facial_similarity_report_media.rb +1 -1
- data/lib/onfido/models/facial_similarity_report_shared.rb +14 -2
- 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 +14 -14
- 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 +2 -14
- data/lib/onfido/models/india_pan_report.rb +2 -14
- 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 +2 -14
- 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 +2 -14
- 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 +2 -14
- 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 +1 -1
- 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 +2 -14
- 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 +2 -2
- data/lib/onfido/models/watchlist_aml_report.rb +2 -14
- 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 +2 -14
- 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 +2 -14
- data/lib/onfido/models/watchlist_sanctions_only_report.rb +2 -14
- data/lib/onfido/models/watchlist_standard_breakdown.rb +1 -1
- data/lib/onfido/models/watchlist_standard_properties.rb +2 -2
- data/lib/onfido/models/watchlist_standard_report.rb +2 -14
- 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 +1 -1
- data/lib/onfido/models/webhook_event_payload.rb +1 -1
- data/lib/onfido/models/webhook_event_payload_object.rb +1 -8
- data/lib/onfido/models/webhook_event_payload_resource.rb +34 -5
- data/lib/onfido/models/webhook_event_resource_type.rb +1 -1
- data/lib/onfido/models/webhook_event_type.rb +2 -3
- 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 +1 -1
- data/lib/onfido/models/workflow_run_builder.rb +1 -1
- data/lib/onfido/models/workflow_run_error.rb +1 -1
- data/lib/onfido/models/workflow_run_link.rb +1 -1
- data/lib/onfido/models/workflow_run_request.rb +1 -1
- data/lib/onfido/models/workflow_run_response.rb +1 -1
- data/lib/onfido/models/workflow_run_shared.rb +1 -1
- data/lib/onfido/models/workflow_run_status.rb +1 -1
- data/lib/onfido/version.rb +2 -2
- data/lib/onfido.rb +2 -1
- data/onfido.gemspec +1 -1
- data/spec/integrations/document_spec.rb +14 -2
- data/spec/integrations/report_spec.rb +4 -2
- data/spec/integrations/workflow_run_spec.rb +3 -1
- data/spec/shared_contexts/with_document.rb +4 -0
- data/spec/spec_helper.rb +3 -3
- metadata +20 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc79ec450f18e140b4d190ad2d68e2480a4bdacc24818ee605223e3dce3749c0
|
4
|
+
data.tar.gz: 0abfee9a6b0aec0849a0c98caf001775fb9dfd5fcaa04727bf55411a50e91f1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee17ead11fb1487cf688a5f54818e5fbe3d0049090c3c5cd072a4c82225bac2d2e7e482eb6995e0cd3b596afcd90799d1e92905dfd7840ecd619f581bc6f6510
|
7
|
+
data.tar.gz: c6c2de626f28cd9eb007554753356889a087aa8d911d6ad260429a3fe20b018a5ebd78cae1765f573fbd3e88e801745cec9cd88b4000dd47c0743a231a85da78
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v4.6.0 24th January 2025
|
4
|
+
|
5
|
+
- Release based on Onfido OpenAPI spec version [v4.6.0](https://github.com/onfido/onfido-openapi-spec/releases/tag/v4.6.0):
|
6
|
+
- [STUDIO-4308] Add driving_license to id_number enum
|
7
|
+
- [CAT-1634] Add proxy configuration support to Java client library
|
8
|
+
- Update README files (including templated ones)
|
9
|
+
- Add customer_user_id in the webhook event resource
|
10
|
+
- test: wait for evidence folder to be available
|
11
|
+
|
12
|
+
## v4.5.0 8th January 2025
|
13
|
+
|
14
|
+
- Release based on Onfido OpenAPI spec version [v4.5.0](https://github.com/onfido/onfido-openapi-spec/releases/tag/v4.5.0):
|
15
|
+
- [STUDIO-4305] Add download evidence folder path
|
16
|
+
|
3
17
|
## v4.4.0 20th December 2024
|
4
18
|
|
5
19
|
- Release based on Onfido OpenAPI spec version [v4.4.0](https://github.com/onfido/onfido-openapi-spec/releases/tag/v4.4.0):
|
data/MIGRATION.md
CHANGED
@@ -1,5 +1,34 @@
|
|
1
1
|
# Migration Guide
|
2
2
|
|
3
|
+
This guide provides detailed instructions on how to upgrade between different
|
4
|
+
major versions of the client library.
|
5
|
+
|
6
|
+
It covers changes in core resources, other endpoints, and the OpenAPI generator,
|
7
|
+
ensuring a smooth transition between versions.
|
8
|
+
|
9
|
+
## Upgrading from 4.x to 5.x
|
10
|
+
|
11
|
+
### Core Resources
|
12
|
+
|
13
|
+
- Documents
|
14
|
+
- Allow any string as `file_type`
|
15
|
+
|
16
|
+
### Other Endpoints
|
17
|
+
|
18
|
+
- Webhooks
|
19
|
+
- Drop `WORKFLOW_SIGNED_EVIDENCE_FILE_CREATED` enum value from
|
20
|
+
`WebhookEventType` enum
|
21
|
+
- Make `href` property in `WebhookEventPayloadObject` optional
|
22
|
+
- Reports
|
23
|
+
- Allow the deprecated `records` property in `WatchlistAml` and
|
24
|
+
`WatchlistStandard` reports to be any object, and not just a string
|
25
|
+
- Remove `documents` property from all reports except Document and
|
26
|
+
Facial Similarity reports
|
27
|
+
|
28
|
+
### OpenAPI generator
|
29
|
+
|
30
|
+
- Version upgraded from `7.9.0` to `7.11.0`
|
31
|
+
|
3
32
|
## Upgrading from 3.x to 4.x
|
4
33
|
|
5
34
|
### Core Resources
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
The official Ruby library for integrating with the Onfido API.
|
4
4
|
|
5
|
-
|
5
|
+
Refer to the documentation at <https://documentation.onfido.com>.
|
6
6
|
|
7
7
|
This version uses Onfido API v3.6. Refer to our [API versioning guide](https://developers.onfido.com/guide/api-versioning-policy#client-libraries) for details of which client library versions use which versions of the API.
|
8
8
|
|
@@ -14,7 +14,7 @@ This version uses Onfido API v3.6. Refer to our [API versioning guide](https://d
|
|
14
14
|
### Installation
|
15
15
|
|
16
16
|
```ruby
|
17
|
-
gem onfido, '~>
|
17
|
+
gem onfido, '~> 5.0.0'
|
18
18
|
```
|
19
19
|
|
20
20
|
Configure with your API token, region and optional timeout (default value is 30):
|
@@ -42,7 +42,7 @@ applicant = onfido_api.create_applicant(
|
|
42
42
|
)
|
43
43
|
```
|
44
44
|
|
45
|
-
Documentation and code examples can be found at https://documentation.onfido.com
|
45
|
+
Documentation and code examples can be found at <https://documentation.onfido.com>.
|
46
46
|
|
47
47
|
## Error Handling
|
48
48
|
|
@@ -65,7 +65,7 @@ end
|
|
65
65
|
|
66
66
|
### Webhook event verification
|
67
67
|
|
68
|
-
Webhook events payload needs to be verified before it can be accessed.
|
68
|
+
Webhook events payload needs to be verified before it can be accessed. Verifying webhook payloads is crucial for security reasons, as it ensures that the payloads are indeed from Onfido and have not been tampered with. The library allows you to easily decode the payload and verify its signature before returning it as an object for user convenience:
|
69
69
|
|
70
70
|
```ruby
|
71
71
|
require 'onfido/webhook_event_verifier'
|
@@ -86,37 +86,39 @@ Webhook events payload needs to be verified before it can be accessed. Library a
|
|
86
86
|
|
87
87
|
## Contributing
|
88
88
|
|
89
|
-
This library is automatically generated using [OpenAPI Generator](https://openapi-generator.tech) (version: 7.
|
89
|
+
This library is automatically generated using [OpenAPI Generator](https://openapi-generator.tech) (version: 7.11.0); therefore, all contributions (except test files) should target the [Onfido OpenAPI specification repository](https://github.com/onfido/onfido-openapi-spec/tree/master) instead of this repository. Please follow the contribution guidelines provided in the OpenAPI specification repository.
|
90
90
|
|
91
91
|
For contributions to the tests instead, please follow the steps below:
|
92
92
|
|
93
|
-
1. [
|
93
|
+
1. Fork the [repository](https://github.com/onfido/onfido-ruby/fork)
|
94
94
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
95
95
|
3. Make your changes
|
96
|
-
4. Commit your changes (`git commit -am 'Add
|
96
|
+
4. Commit your changes (`git commit -am 'Add detailed description of the feature'`)
|
97
97
|
5. Push to the branch (`git push origin my-new-feature`)
|
98
98
|
6. Create a new Pull Request
|
99
99
|
|
100
100
|
## Versioning policy
|
101
101
|
|
102
|
-
|
102
|
+
Versioning helps manage changes and ensures compatibility across different versions of the library.
|
103
103
|
|
104
|
-
|
104
|
+
[Semantic Versioning](https://semver.org) policy is used for library versioning, following the guidelines and limitations outlined below:
|
105
|
+
|
106
|
+
- MAJOR versions (x.0.0) may:
|
105
107
|
- target a new API version
|
106
108
|
- include non-backward compatible change
|
107
|
-
- MINOR versions (0.x.0)
|
109
|
+
- MINOR versions (0.x.0) may:
|
108
110
|
- add a new functionality, non-mandatory parameter or property
|
109
111
|
- deprecate an old functionality
|
110
112
|
- include non-backward compatible change to a functionality which is:
|
111
113
|
- labelled as alpha or beta
|
112
114
|
- completely broken and not usable
|
113
|
-
- PATCH version (0.0.x)
|
115
|
+
- PATCH version (0.0.x) will:
|
114
116
|
- fix a bug
|
115
117
|
- include backward compatible changes only
|
116
118
|
|
117
119
|
## More documentation
|
118
120
|
|
119
|
-
|
121
|
+
Additional documentation and code examples can be found at <https://documentation.onfido.com>.
|
120
122
|
|
121
123
|
## Support
|
122
124
|
|
@@ -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.11.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -1384,6 +1384,69 @@ module Onfido
|
|
1384
1384
|
return data, status_code, headers
|
1385
1385
|
end
|
1386
1386
|
|
1387
|
+
# Download NFC face
|
1388
|
+
# Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
|
1389
|
+
# @param document_id [String]
|
1390
|
+
# @param [Hash] opts the optional parameters
|
1391
|
+
# @return [File]
|
1392
|
+
def download_nfc_face(document_id, opts = {})
|
1393
|
+
data, _status_code, _headers = download_nfc_face_with_http_info(document_id, opts)
|
1394
|
+
data
|
1395
|
+
end
|
1396
|
+
|
1397
|
+
# Download NFC face
|
1398
|
+
# Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
|
1399
|
+
# @param document_id [String]
|
1400
|
+
# @param [Hash] opts the optional parameters
|
1401
|
+
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
1402
|
+
def download_nfc_face_with_http_info(document_id, opts = {})
|
1403
|
+
if @api_client.config.debugging
|
1404
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.download_nfc_face ...'
|
1405
|
+
end
|
1406
|
+
# verify the required parameter 'document_id' is set
|
1407
|
+
if @api_client.config.client_side_validation && document_id.nil?
|
1408
|
+
fail ArgumentError, "Missing the required parameter 'document_id' when calling DefaultApi.download_nfc_face"
|
1409
|
+
end
|
1410
|
+
# resource path
|
1411
|
+
local_var_path = '/documents/{document_id}/nfc_face'.sub('{' + 'document_id' + '}', CGI.escape(document_id.to_s))
|
1412
|
+
|
1413
|
+
# query parameters
|
1414
|
+
query_params = opts[:query_params] || {}
|
1415
|
+
|
1416
|
+
# header parameters
|
1417
|
+
header_params = opts[:header_params] || {}
|
1418
|
+
# HTTP header 'Accept' (if needed)
|
1419
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept']
|
1420
|
+
|
1421
|
+
# form parameters
|
1422
|
+
form_params = opts[:form_params] || {}
|
1423
|
+
|
1424
|
+
# http body (model)
|
1425
|
+
post_body = opts[:debug_body]
|
1426
|
+
|
1427
|
+
# return_type
|
1428
|
+
return_type = opts[:debug_return_type] || 'File'
|
1429
|
+
|
1430
|
+
# auth_names
|
1431
|
+
auth_names = opts[:debug_auth_names] || ['Token']
|
1432
|
+
|
1433
|
+
new_options = opts.merge(
|
1434
|
+
:operation => :"DefaultApi.download_nfc_face",
|
1435
|
+
:header_params => header_params,
|
1436
|
+
:query_params => query_params,
|
1437
|
+
:form_params => form_params,
|
1438
|
+
:body => post_body,
|
1439
|
+
:auth_names => auth_names,
|
1440
|
+
:return_type => return_type
|
1441
|
+
)
|
1442
|
+
|
1443
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1444
|
+
if @api_client.config.debugging
|
1445
|
+
@api_client.config.logger.debug "API called: DefaultApi#download_nfc_face\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1446
|
+
end
|
1447
|
+
return data, status_code, headers
|
1448
|
+
end
|
1449
|
+
|
1387
1450
|
# Retrieves the signed document or application form
|
1388
1451
|
# Retrieves the signed document or application form depending on the file_id provided.
|
1389
1452
|
# @param workflow_run_id [String] The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
@@ -3447,6 +3510,7 @@ module Onfido
|
|
3447
3510
|
# @option opts [Time] :created_at_gt A ISO-8601 date to filter results with a created date greater than (after) the one provided.
|
3448
3511
|
# @option opts [Time] :created_at_lt A ISO-8601 date to filter results with a created date less than (before) the one provided.
|
3449
3512
|
# @option opts [String] :sort A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'. (default to 'desc')
|
3513
|
+
# @option opts [String] :applicant_id the applicant's id.
|
3450
3514
|
# @return [Array<WorkflowRun>]
|
3451
3515
|
def list_workflow_runs(opts = {})
|
3452
3516
|
data, _status_code, _headers = list_workflow_runs_with_http_info(opts)
|
@@ -3461,6 +3525,7 @@ module Onfido
|
|
3461
3525
|
# @option opts [Time] :created_at_gt A ISO-8601 date to filter results with a created date greater than (after) the one provided.
|
3462
3526
|
# @option opts [Time] :created_at_lt A ISO-8601 date to filter results with a created date less than (before) the one provided.
|
3463
3527
|
# @option opts [String] :sort A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'. (default to 'desc')
|
3528
|
+
# @option opts [String] :applicant_id the applicant's id.
|
3464
3529
|
# @return [Array<(Array<WorkflowRun>, Integer, Hash)>] Array<WorkflowRun> data, response status code and response headers
|
3465
3530
|
def list_workflow_runs_with_http_info(opts = {})
|
3466
3531
|
if @api_client.config.debugging
|
@@ -3480,6 +3545,7 @@ module Onfido
|
|
3480
3545
|
query_params[:'created_at_gt'] = opts[:'created_at_gt'] if !opts[:'created_at_gt'].nil?
|
3481
3546
|
query_params[:'created_at_lt'] = opts[:'created_at_lt'] if !opts[:'created_at_lt'].nil?
|
3482
3547
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
3548
|
+
query_params[:'applicant_id'] = opts[:'applicant_id'] if !opts[:'applicant_id'].nil?
|
3483
3549
|
|
3484
3550
|
# header parameters
|
3485
3551
|
header_params = opts[:header_params] || {}
|
@@ -4164,10 +4230,6 @@ module Onfido
|
|
4164
4230
|
if @api_client.config.client_side_validation && file.nil?
|
4165
4231
|
fail ArgumentError, "Missing the required parameter 'file' when calling DefaultApi.upload_document"
|
4166
4232
|
end
|
4167
|
-
allowable_values = ["jpg", "jpeg", "png", "pdf", "unknown_default_open_api"]
|
4168
|
-
if @api_client.config.client_side_validation && opts[:'file_type'] && !allowable_values.include?(opts[:'file_type'])
|
4169
|
-
fail ArgumentError, "invalid value for \"file_type\", must be one of #{allowable_values}"
|
4170
|
-
end
|
4171
4233
|
allowable_values = ["front", "back", "unknown_default_open_api"]
|
4172
4234
|
if @api_client.config.client_side_validation && opts[:'side'] && !allowable_values.include?(opts[:'side'])
|
4173
4235
|
fail ArgumentError, "invalid value for \"side\", must be one of #{allowable_values}"
|
data/lib/onfido/api_client.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.11.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,6 +19,7 @@ require 'faraday'
|
|
19
19
|
require 'faraday/multipart' if Gem::Version.new(Faraday::VERSION) >= Gem::Version.new('2.0')
|
20
20
|
require 'marcel'
|
21
21
|
|
22
|
+
require 'pathname'
|
22
23
|
|
23
24
|
module Onfido
|
24
25
|
class ApiClient
|
@@ -34,7 +35,7 @@ module Onfido
|
|
34
35
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
35
36
|
def initialize(config = Configuration.default)
|
36
37
|
@config = config
|
37
|
-
@user_agent = "onfido-ruby/
|
38
|
+
@user_agent = "onfido-ruby/5.0.0"
|
38
39
|
@default_headers = {
|
39
40
|
'Content-Type' => 'application/json',
|
40
41
|
'User-Agent' => @user_agent
|
data/lib/onfido/api_error.rb
CHANGED
data/lib/onfido/configuration.rb
CHANGED
data/lib/onfido/models/check.rb
CHANGED