onfido 5.6.0 → 6.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 +15 -0
- data/MIGRATION.md +28 -0
- data/README.md +2 -2
- data/lib/onfido/api/default_api.rb +689 -5
- data/lib/onfido/api_client.rb +2 -2
- data/lib/onfido/api_error.rb +1 -1
- data/lib/onfido/configuration.rb +1 -2
- data/lib/onfido/models/address.rb +30 -4
- data/lib/onfido/models/address_builder.rb +30 -4
- data/lib/onfido/models/address_shared.rb +30 -4
- data/lib/onfido/models/addresses_list.rb +10 -4
- data/lib/onfido/models/applicant.rb +20 -4
- data/lib/onfido/models/applicant_builder.rb +10 -4
- data/lib/onfido/models/applicant_consent.rb +30 -4
- data/lib/onfido/models/applicant_consent_builder.rb +30 -4
- data/lib/onfido/models/applicant_consent_name.rb +1 -1
- data/lib/onfido/models/applicant_create.rb +10 -4
- data/lib/onfido/models/applicant_request.rb +10 -4
- data/lib/onfido/models/applicant_response.rb +20 -4
- data/lib/onfido/models/applicant_shared.rb +10 -4
- data/lib/onfido/models/applicant_update.rb +10 -4
- data/lib/onfido/models/applicant_updater.rb +10 -4
- data/lib/onfido/models/applicants_list.rb +20 -4
- data/lib/onfido/models/check.rb +30 -4
- data/lib/onfido/models/check_builder.rb +30 -4
- data/lib/onfido/models/check_request.rb +20 -4
- data/lib/onfido/models/check_response.rb +20 -4
- data/lib/onfido/models/check_shared.rb +20 -4
- data/lib/onfido/models/check_status.rb +1 -1
- data/lib/onfido/models/checks_list.rb +20 -4
- data/lib/onfido/models/complete_task_builder.rb +20 -4
- data/lib/onfido/models/complete_task_data_builder.rb +3 -4
- data/lib/onfido/models/country_codes.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown.rb +14 -26
- data/lib/onfido/models/device_intelligence_breakdown_device.rb +10 -4
- data/lib/onfido/models/device_intelligence_breakdown_device_breakdown.rb +10 -4
- data/lib/onfido/models/device_intelligence_properties.rb +13 -7
- data/lib/onfido/models/{device_intelligence_breakdown_properties_device.rb → device_intelligence_properties_device.rb} +12 -6
- data/lib/onfido/models/{device_intelligence_breakdown_properties_geolocation.rb → device_intelligence_properties_geolocation.rb} +12 -6
- data/lib/onfido/models/{device_intelligence_breakdown_properties_ip.rb → device_intelligence_properties_ip.rb} +12 -6
- data/lib/onfido/models/device_intelligence_report.rb +30 -4
- data/lib/onfido/models/document.rb +20 -4
- data/lib/onfido/models/document_breakdown.rb +10 -4
- data/lib/onfido/models/document_breakdown_age_validation.rb +10 -4
- data/lib/onfido/models/document_breakdown_age_validation_breakdown.rb +10 -4
- data/lib/onfido/models/document_breakdown_compromised_document.rb +10 -4
- data/lib/onfido/models/document_breakdown_compromised_document_breakdown.rb +10 -4
- data/lib/onfido/models/document_breakdown_data_comparison.rb +10 -4
- data/lib/onfido/models/document_breakdown_data_comparison_breakdown.rb +10 -4
- data/lib/onfido/models/document_breakdown_data_comparison_breakdown_issuing_country.rb +10 -4
- data/lib/onfido/models/document_breakdown_data_consistency.rb +10 -4
- data/lib/onfido/models/document_breakdown_data_consistency_breakdown.rb +10 -4
- data/lib/onfido/models/document_breakdown_data_validation.rb +10 -4
- data/lib/onfido/models/document_breakdown_data_validation_breakdown.rb +10 -4
- data/lib/onfido/models/document_breakdown_data_validation_breakdown_document_expiration.rb +10 -4
- data/lib/onfido/models/document_breakdown_data_validation_breakdown_expiry_date.rb +10 -4
- data/lib/onfido/models/document_breakdown_image_integrity.rb +10 -4
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown.rb +10 -4
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown_colour_picture.rb +10 -4
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown_conclusive_document_quality.rb +10 -4
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown_image_quality.rb +10 -4
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown_supported_document.rb +10 -4
- data/lib/onfido/models/document_breakdown_issuing_authority.rb +10 -4
- data/lib/onfido/models/document_breakdown_issuing_authority_breakdown.rb +10 -4
- data/lib/onfido/models/document_breakdown_issuing_authority_breakdown_nfc_active_authentication.rb +10 -4
- data/lib/onfido/models/document_breakdown_issuing_authority_breakdown_nfc_passive_authentication.rb +10 -4
- data/lib/onfido/models/document_breakdown_police_record.rb +10 -4
- data/lib/onfido/models/document_breakdown_visual_authenticity.rb +10 -4
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown.rb +10 -4
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_digital_tampering.rb +10 -4
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_face_detection.rb +10 -4
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_fonts.rb +10 -4
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_original_document_present.rb +10 -4
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_other.rb +10 -4
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_picture_face_integrity.rb +10 -4
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_security_features.rb +10 -4
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_template.rb +10 -4
- data/lib/onfido/models/document_cdq_reasons.rb +10 -4
- data/lib/onfido/models/document_iq_reasons.rb +10 -4
- data/lib/onfido/models/document_odp_reasons.rb +10 -4
- data/lib/onfido/models/document_properties.rb +20 -16
- data/lib/onfido/models/document_properties_address_lines.rb +10 -4
- data/lib/onfido/models/document_properties_barcode_inner.rb +10 -4
- data/lib/onfido/models/document_properties_document_classification.rb +10 -4
- data/lib/onfido/models/document_properties_document_numbers_inner.rb +10 -4
- data/lib/onfido/models/document_properties_driving_licence_information_item.rb +10 -4
- data/lib/onfido/models/document_properties_extracted_data.rb +10 -4
- data/lib/onfido/models/document_properties_nfc.rb +10 -4
- data/lib/onfido/models/document_properties_with_driving_licence_information.rb +697 -0
- data/lib/onfido/models/document_report.rb +30 -4
- data/lib/onfido/models/document_report_shared.rb +10 -4
- data/lib/onfido/models/document_response.rb +20 -4
- data/lib/onfido/models/document_shared.rb +10 -4
- data/lib/onfido/models/document_types.rb +1 -1
- data/lib/onfido/models/document_video_report.rb +30 -4
- data/lib/onfido/models/document_video_with_address_information_report.rb +30 -4
- data/lib/onfido/models/document_with_address_information_report.rb +30 -4
- data/lib/onfido/models/document_with_driver_verification_report.rb +30 -4
- data/lib/onfido/models/document_with_driver_verification_report_all_of_properties.rb +20 -16
- data/lib/onfido/models/document_with_driver_verification_report_all_of_properties_all_of_passenger_vehicle.rb +10 -4
- data/lib/onfido/models/document_with_driver_verification_report_all_of_properties_all_of_vehicle_class_details_inner.rb +10 -4
- data/lib/onfido/models/document_with_driving_licence_information_report.rb +31 -5
- data/lib/onfido/models/documents_list.rb +20 -4
- data/lib/onfido/models/error.rb +10 -4
- data/lib/onfido/models/error1.rb +10 -4
- data/lib/onfido/models/error_properties.rb +10 -4
- data/lib/onfido/models/error_properties1.rb +10 -4
- data/lib/onfido/models/extract_request.rb +20 -4
- data/lib/onfido/models/extraction.rb +10 -4
- data/lib/onfido/models/extraction_document_classification.rb +10 -4
- data/lib/onfido/models/extraction_extracted_data.rb +10 -4
- data/lib/onfido/models/facial_similarity_motion_breakdown.rb +10 -4
- data/lib/onfido/models/facial_similarity_motion_breakdown_face_comparison.rb +10 -4
- data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity.rb +10 -4
- data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown.rb +10 -4
- data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown_face_detected.rb +10 -4
- data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown_source_integrity.rb +10 -4
- data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity.rb +10 -4
- data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity_breakdown.rb +10 -4
- data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +10 -4
- data/lib/onfido/models/facial_similarity_motion_properties.rb +10 -4
- data/lib/onfido/models/facial_similarity_motion_report.rb +30 -4
- data/lib/onfido/models/facial_similarity_photo_breakdown.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown_face_match.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown_face_match_properties.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown_face_detected.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown_source_integrity.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown_spoofing_detection_properties.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity_breakdown.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity_breakdown_source_integrity.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_fully_auto_properties.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_fully_auto_report.rb +30 -4
- data/lib/onfido/models/facial_similarity_photo_properties.rb +10 -4
- data/lib/onfido/models/facial_similarity_photo_report.rb +30 -4
- data/lib/onfido/models/facial_similarity_report_media.rb +20 -4
- data/lib/onfido/models/facial_similarity_report_shared.rb +10 -4
- data/lib/onfido/models/facial_similarity_video_breakdown.rb +10 -4
- data/lib/onfido/models/facial_similarity_video_breakdown_face_comparison.rb +10 -4
- data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity.rb +10 -4
- data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown.rb +10 -4
- data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown_face_detected.rb +10 -4
- data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown_source_integrity.rb +10 -4
- data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity.rb +10 -4
- data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown.rb +10 -4
- data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_liveness_detected.rb +10 -4
- data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +10 -4
- data/lib/onfido/models/facial_similarity_video_properties.rb +10 -4
- data/lib/onfido/models/facial_similarity_video_report.rb +30 -4
- data/lib/onfido/models/id_number.rb +10 -4
- data/lib/onfido/models/id_photo.rb +20 -4
- data/lib/onfido/models/id_photo_response.rb +20 -4
- data/lib/onfido/models/id_photos_list.rb +20 -4
- data/lib/onfido/models/identity_enhanced_breakdown.rb +10 -4
- data/lib/onfido/models/identity_enhanced_breakdown_address.rb +10 -4
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown.rb +10 -4
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_credit_agencies.rb +10 -4
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_credit_agencies_properties.rb +11 -5
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_telephone_database.rb +10 -4
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_voting_register.rb +10 -4
- data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth.rb +10 -4
- data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown.rb +10 -4
- data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown_credit_agencies.rb +10 -4
- data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown_voting_register.rb +10 -4
- data/lib/onfido/models/identity_enhanced_breakdown_mortality.rb +10 -4
- data/lib/onfido/models/identity_enhanced_breakdown_sources.rb +10 -4
- data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown.rb +10 -4
- data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown_total_sources.rb +10 -4
- data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown_total_sources_properties.rb +11 -5
- data/lib/onfido/models/identity_enhanced_properties.rb +10 -4
- data/lib/onfido/models/identity_enhanced_properties_matched_addresses_inner.rb +10 -4
- data/lib/onfido/models/identity_enhanced_report.rb +30 -4
- data/lib/onfido/models/idr_ssn_breakdown.rb +10 -4
- data/lib/onfido/models/idr_ssn_breakdown_breakdown.rb +10 -4
- data/lib/onfido/models/idr_ssn_breakdown_breakdown_full_match.rb +10 -4
- data/lib/onfido/models/idr_ssn_breakdown_breakdown_last4_digits_match.rb +10 -4
- data/lib/onfido/models/india_pan_report.rb +30 -4
- data/lib/onfido/models/india_pan_report_all_of_breakdown.rb +10 -4
- data/lib/onfido/models/india_pan_report_all_of_breakdown_device.rb +10 -4
- data/lib/onfido/models/india_pan_report_all_of_breakdown_device_breakdown.rb +10 -4
- data/lib/onfido/models/india_pan_report_all_of_breakdown_device_breakdown_pan_valid.rb +10 -4
- data/lib/onfido/models/india_pan_report_all_of_properties.rb +10 -4
- data/lib/onfido/models/india_pan_report_all_of_properties_device.rb +10 -4
- data/lib/onfido/models/known_faces_breakdown.rb +10 -4
- data/lib/onfido/models/known_faces_breakdown_image_integrity.rb +10 -4
- data/lib/onfido/models/known_faces_breakdown_previously_seen_faces.rb +10 -4
- data/lib/onfido/models/known_faces_properties.rb +10 -4
- data/lib/onfido/models/known_faces_properties_matches_inner.rb +10 -4
- data/lib/onfido/models/known_faces_report.rb +30 -4
- data/lib/onfido/models/live_photo.rb +20 -4
- data/lib/onfido/models/live_photo_response.rb +20 -4
- data/lib/onfido/models/live_photos_list.rb +20 -4
- data/lib/onfido/models/live_video.rb +10 -4
- data/lib/onfido/models/live_videos_list.rb +20 -4
- data/lib/onfido/models/location.rb +10 -4
- data/lib/onfido/models/location_builder.rb +10 -4
- data/lib/onfido/models/location_shared.rb +10 -4
- data/lib/onfido/models/motion_capture.rb +10 -4
- data/lib/onfido/models/motion_captures_list.rb +20 -4
- data/lib/onfido/models/passkey.rb +353 -0
- data/lib/onfido/models/passkey_updater.rb +262 -0
- data/lib/onfido/models/{device_intelligence_breakdown_properties.rb → passkeys_list.rb} +38 -31
- data/lib/onfido/models/photo_auto_reasons.rb +10 -4
- data/lib/onfido/models/photo_reasons.rb +10 -4
- data/lib/onfido/models/proof_of_address_breakdown.rb +10 -4
- data/lib/onfido/models/proof_of_address_breakdown_data_comparison.rb +10 -4
- data/lib/onfido/models/proof_of_address_breakdown_data_comparison_breakdown.rb +10 -4
- data/lib/onfido/models/proof_of_address_breakdown_document_classification.rb +10 -4
- data/lib/onfido/models/proof_of_address_breakdown_document_classification_breakdown.rb +10 -4
- data/lib/onfido/models/proof_of_address_breakdown_image_integrity.rb +10 -4
- data/lib/onfido/models/proof_of_address_breakdown_image_integrity_breakdown.rb +10 -4
- data/lib/onfido/models/proof_of_address_properties.rb +10 -4
- data/lib/onfido/models/proof_of_address_report.rb +30 -4
- data/lib/onfido/models/repeat_attempts_list.rb +20 -4
- data/lib/onfido/models/repeat_attempts_list_repeat_attempts_inner.rb +10 -4
- data/lib/onfido/models/report.rb +1 -1
- data/lib/onfido/models/report_configuration.rb +10 -4
- data/lib/onfido/models/report_configuration_facial_similarity.rb +10 -4
- data/lib/onfido/models/report_document.rb +20 -4
- 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 +30 -4
- 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 +20 -4
- data/lib/onfido/models/results_feedback.rb +10 -4
- data/lib/onfido/models/sdk_token.rb +20 -4
- data/lib/onfido/models/sdk_token_builder.rb +20 -4
- data/lib/onfido/models/sdk_token_request.rb +20 -4
- data/lib/onfido/models/sdk_token_response.rb +20 -4
- data/lib/onfido/models/signing_document.rb +316 -0
- data/lib/onfido/models/signing_document_response.rb +298 -0
- data/lib/onfido/models/{device_intelligence_breakdown_breakdown.rb → signing_document_shared.rb} +20 -13
- data/lib/onfido/models/signing_documents_list.rb +239 -0
- data/lib/onfido/models/task.rb +10 -4
- data/lib/onfido/models/task_item.rb +10 -4
- data/lib/onfido/models/timeline_file_reference.rb +30 -4
- data/lib/onfido/models/us_driving_licence_breakdown.rb +10 -4
- data/lib/onfido/models/us_driving_licence_breakdown_address.rb +10 -4
- data/lib/onfido/models/us_driving_licence_breakdown_address_breakdown.rb +10 -4
- data/lib/onfido/models/us_driving_licence_breakdown_document.rb +10 -4
- data/lib/onfido/models/us_driving_licence_breakdown_document_breakdown.rb +10 -4
- data/lib/onfido/models/us_driving_licence_breakdown_personal.rb +10 -4
- data/lib/onfido/models/us_driving_licence_breakdown_personal_breakdown.rb +10 -4
- data/lib/onfido/models/us_driving_licence_builder.rb +20 -4
- data/lib/onfido/models/us_driving_licence_report.rb +30 -4
- data/lib/onfido/models/us_driving_licence_shared.rb +20 -4
- data/lib/onfido/models/video_reasons.rb +10 -4
- data/lib/onfido/models/watchlist_aml_breakdown.rb +10 -4
- data/lib/onfido/models/watchlist_aml_breakdown_adverse_media.rb +10 -4
- data/lib/onfido/models/watchlist_aml_breakdown_legal_and_regulatory_warnings.rb +10 -4
- data/lib/onfido/models/watchlist_aml_breakdown_politically_exposed_person.rb +10 -4
- data/lib/onfido/models/watchlist_aml_breakdown_sanction.rb +10 -4
- data/lib/onfido/models/watchlist_aml_properties.rb +10 -4
- data/lib/onfido/models/watchlist_aml_report.rb +30 -4
- data/lib/onfido/models/watchlist_enhanced_breakdown.rb +10 -4
- data/lib/onfido/models/watchlist_enhanced_properties.rb +10 -4
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner.rb +10 -4
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_address_inner.rb +10 -4
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_alias_inner.rb +10 -4
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_associate_inner.rb +10 -4
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_attribute_inner.rb +10 -4
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_event_inner.rb +10 -4
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_event_inner_source.rb +10 -4
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_source_inner.rb +10 -4
- data/lib/onfido/models/watchlist_enhanced_report.rb +30 -4
- data/lib/onfido/models/watchlist_monitor.rb +30 -4
- data/lib/onfido/models/watchlist_monitor_builder.rb +20 -4
- data/lib/onfido/models/watchlist_monitor_match.rb +10 -4
- data/lib/onfido/models/watchlist_monitor_matches_list.rb +20 -4
- data/lib/onfido/models/watchlist_monitor_matches_updater.rb +10 -4
- data/lib/onfido/models/watchlist_monitor_response.rb +20 -4
- data/lib/onfido/models/watchlist_monitor_shared.rb +20 -4
- data/lib/onfido/models/watchlist_monitors_list.rb +20 -4
- data/lib/onfido/models/watchlist_peps_only_report.rb +30 -4
- data/lib/onfido/models/watchlist_sanctions_only_report.rb +30 -4
- data/lib/onfido/models/watchlist_standard_breakdown.rb +10 -4
- data/lib/onfido/models/watchlist_standard_properties.rb +10 -4
- data/lib/onfido/models/watchlist_standard_report.rb +30 -4
- data/lib/onfido/models/webhook.rb +20 -4
- data/lib/onfido/models/webhook_builder.rb +20 -4
- data/lib/onfido/models/webhook_create.rb +20 -4
- data/lib/onfido/models/webhook_event.rb +10 -4
- data/lib/onfido/models/webhook_event_object_status.rb +1 -1
- data/lib/onfido/models/webhook_event_payload.rb +20 -4
- data/lib/onfido/models/webhook_event_payload_object.rb +20 -4
- data/lib/onfido/models/webhook_event_payload_resource.rb +54 -5
- data/lib/onfido/models/webhook_event_resource_status.rb +50 -0
- data/lib/onfido/models/webhook_event_resource_type.rb +1 -1
- data/lib/onfido/models/webhook_event_type.rb +1 -1
- data/lib/onfido/models/webhook_resend.rb +10 -4
- data/lib/onfido/models/webhook_response.rb +20 -4
- data/lib/onfido/models/webhook_shared.rb +10 -4
- data/lib/onfido/models/webhook_update.rb +10 -4
- data/lib/onfido/models/webhook_updater.rb +10 -4
- data/lib/onfido/models/webhooks_list.rb +20 -4
- data/lib/onfido/models/webhooks_resend_item.rb +30 -4
- data/lib/onfido/models/workflow_run.rb +40 -4
- data/lib/onfido/models/workflow_run_builder.rb +30 -4
- data/lib/onfido/models/workflow_run_error.rb +10 -4
- data/lib/onfido/models/workflow_run_link.rb +10 -4
- data/lib/onfido/models/workflow_run_request.rb +10 -4
- data/lib/onfido/models/workflow_run_response.rb +20 -4
- data/lib/onfido/models/workflow_run_shared.rb +30 -4
- data/lib/onfido/models/workflow_run_status.rb +1 -1
- data/lib/onfido/version.rb +2 -2
- data/lib/onfido.rb +13 -6
- data/onfido.gemspec +1 -1
- data/spec/integrations/media/sample_signing_document.pdf +33 -0
- data/spec/integrations/passkey_spec.rb +63 -0
- data/spec/integrations/signing_document_spec.rb +61 -0
- data/spec/integrations/workflow_run_spec.rb +7 -3
- data/spec/shared_contexts/with_signing_document.rb +15 -0
- data/spec/spec_helper.rb +1 -1
- metadata +41 -26
|
@@ -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.16.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -53,9 +53,14 @@ module Onfido
|
|
|
53
53
|
}
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
+
# Returns attribute mapping this model knows about
|
|
57
|
+
def self.acceptable_attribute_map
|
|
58
|
+
attribute_map
|
|
59
|
+
end
|
|
60
|
+
|
|
56
61
|
# Returns all the JSON keys this model knows about
|
|
57
62
|
def self.acceptable_attributes
|
|
58
|
-
|
|
63
|
+
acceptable_attribute_map.values
|
|
59
64
|
end
|
|
60
65
|
|
|
61
66
|
# Attribute type mapping.
|
|
@@ -95,9 +100,10 @@ module Onfido
|
|
|
95
100
|
end
|
|
96
101
|
|
|
97
102
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
103
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
98
104
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
99
|
-
if (!
|
|
100
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WorkflowRunBuilder`. Please check the name to make sure it's valid. List of attributes: " +
|
|
105
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
106
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WorkflowRunBuilder`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
101
107
|
end
|
|
102
108
|
h[k.to_sym] = v
|
|
103
109
|
}
|
|
@@ -178,6 +184,26 @@ module Onfido
|
|
|
178
184
|
true
|
|
179
185
|
end
|
|
180
186
|
|
|
187
|
+
# Custom attribute writer method with validation
|
|
188
|
+
# @param [Object] applicant_id Value to be assigned
|
|
189
|
+
def applicant_id=(applicant_id)
|
|
190
|
+
if applicant_id.nil?
|
|
191
|
+
fail ArgumentError, 'applicant_id cannot be nil'
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
@applicant_id = applicant_id
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Custom attribute writer method with validation
|
|
198
|
+
# @param [Object] workflow_id Value to be assigned
|
|
199
|
+
def workflow_id=(workflow_id)
|
|
200
|
+
if workflow_id.nil?
|
|
201
|
+
fail ArgumentError, 'workflow_id cannot be nil'
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
@workflow_id = workflow_id
|
|
205
|
+
end
|
|
206
|
+
|
|
181
207
|
# Custom attribute writer method with validation
|
|
182
208
|
# @param [Object] tags Value to be assigned
|
|
183
209
|
def tags=(tags)
|
|
@@ -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.16.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -29,9 +29,14 @@ module Onfido
|
|
|
29
29
|
}
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
+
# Returns attribute mapping this model knows about
|
|
33
|
+
def self.acceptable_attribute_map
|
|
34
|
+
attribute_map
|
|
35
|
+
end
|
|
36
|
+
|
|
32
37
|
# Returns all the JSON keys this model knows about
|
|
33
38
|
def self.acceptable_attributes
|
|
34
|
-
|
|
39
|
+
acceptable_attribute_map.values
|
|
35
40
|
end
|
|
36
41
|
|
|
37
42
|
# Attribute type mapping.
|
|
@@ -56,9 +61,10 @@ module Onfido
|
|
|
56
61
|
end
|
|
57
62
|
|
|
58
63
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
64
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
65
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
|
-
if (!
|
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WorkflowRunError`. Please check the name to make sure it's valid. List of attributes: " +
|
|
66
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WorkflowRunError`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
62
68
|
end
|
|
63
69
|
h[k.to_sym] = v
|
|
64
70
|
}
|
|
@@ -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.16.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -63,9 +63,14 @@ module Onfido
|
|
|
63
63
|
}
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
+
# Returns attribute mapping this model knows about
|
|
67
|
+
def self.acceptable_attribute_map
|
|
68
|
+
attribute_map
|
|
69
|
+
end
|
|
70
|
+
|
|
66
71
|
# Returns all the JSON keys this model knows about
|
|
67
72
|
def self.acceptable_attributes
|
|
68
|
-
|
|
73
|
+
acceptable_attribute_map.values
|
|
69
74
|
end
|
|
70
75
|
|
|
71
76
|
# Attribute type mapping.
|
|
@@ -97,9 +102,10 @@ module Onfido
|
|
|
97
102
|
end
|
|
98
103
|
|
|
99
104
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
105
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
100
106
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
101
|
-
if (!
|
|
102
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WorkflowRunLink`. Please check the name to make sure it's valid. List of attributes: " +
|
|
107
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
108
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WorkflowRunLink`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
103
109
|
end
|
|
104
110
|
h[k.to_sym] = v
|
|
105
111
|
}
|
|
@@ -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.16.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -25,9 +25,14 @@ module Onfido
|
|
|
25
25
|
}
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
+
# Returns attribute mapping this model knows about
|
|
29
|
+
def self.acceptable_attribute_map
|
|
30
|
+
attribute_map
|
|
31
|
+
end
|
|
32
|
+
|
|
28
33
|
# Returns all the JSON keys this model knows about
|
|
29
34
|
def self.acceptable_attributes
|
|
30
|
-
|
|
35
|
+
acceptable_attribute_map.values
|
|
31
36
|
end
|
|
32
37
|
|
|
33
38
|
# Attribute type mapping.
|
|
@@ -51,9 +56,10 @@ module Onfido
|
|
|
51
56
|
end
|
|
52
57
|
|
|
53
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
54
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
|
-
if (!
|
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WorkflowRunRequest`. Please check the name to make sure it's valid. List of attributes: " +
|
|
61
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WorkflowRunRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
57
63
|
end
|
|
58
64
|
h[k.to_sym] = v
|
|
59
65
|
}
|
|
@@ -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.16.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -75,9 +75,14 @@ module Onfido
|
|
|
75
75
|
}
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
+
# Returns attribute mapping this model knows about
|
|
79
|
+
def self.acceptable_attribute_map
|
|
80
|
+
attribute_map
|
|
81
|
+
end
|
|
82
|
+
|
|
78
83
|
# Returns all the JSON keys this model knows about
|
|
79
84
|
def self.acceptable_attributes
|
|
80
|
-
|
|
85
|
+
acceptable_attribute_map.values
|
|
81
86
|
end
|
|
82
87
|
|
|
83
88
|
# Attribute type mapping.
|
|
@@ -109,9 +114,10 @@ module Onfido
|
|
|
109
114
|
end
|
|
110
115
|
|
|
111
116
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
117
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
112
118
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
113
|
-
if (!
|
|
114
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WorkflowRunResponse`. Please check the name to make sure it's valid. List of attributes: " +
|
|
119
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
120
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WorkflowRunResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
115
121
|
end
|
|
116
122
|
h[k.to_sym] = v
|
|
117
123
|
}
|
|
@@ -173,6 +179,16 @@ module Onfido
|
|
|
173
179
|
true
|
|
174
180
|
end
|
|
175
181
|
|
|
182
|
+
# Custom attribute writer method with validation
|
|
183
|
+
# @param [Object] id Value to be assigned
|
|
184
|
+
def id=(id)
|
|
185
|
+
if id.nil?
|
|
186
|
+
fail ArgumentError, 'id cannot be nil'
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
@id = id
|
|
190
|
+
end
|
|
191
|
+
|
|
176
192
|
# Checks equality by comparing each attribute.
|
|
177
193
|
# @param [Object] Object to be compared
|
|
178
194
|
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.16.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -49,9 +49,14 @@ module Onfido
|
|
|
49
49
|
}
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
+
# Returns attribute mapping this model knows about
|
|
53
|
+
def self.acceptable_attribute_map
|
|
54
|
+
attribute_map
|
|
55
|
+
end
|
|
56
|
+
|
|
52
57
|
# Returns all the JSON keys this model knows about
|
|
53
58
|
def self.acceptable_attributes
|
|
54
|
-
|
|
59
|
+
acceptable_attribute_map.values
|
|
55
60
|
end
|
|
56
61
|
|
|
57
62
|
# Attribute type mapping.
|
|
@@ -82,9 +87,10 @@ module Onfido
|
|
|
82
87
|
end
|
|
83
88
|
|
|
84
89
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
90
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
85
91
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
86
|
-
if (!
|
|
87
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WorkflowRunShared`. Please check the name to make sure it's valid. List of attributes: " +
|
|
92
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
93
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WorkflowRunShared`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
88
94
|
end
|
|
89
95
|
h[k.to_sym] = v
|
|
90
96
|
}
|
|
@@ -159,6 +165,26 @@ module Onfido
|
|
|
159
165
|
true
|
|
160
166
|
end
|
|
161
167
|
|
|
168
|
+
# Custom attribute writer method with validation
|
|
169
|
+
# @param [Object] applicant_id Value to be assigned
|
|
170
|
+
def applicant_id=(applicant_id)
|
|
171
|
+
if applicant_id.nil?
|
|
172
|
+
fail ArgumentError, 'applicant_id cannot be nil'
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
@applicant_id = applicant_id
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Custom attribute writer method with validation
|
|
179
|
+
# @param [Object] workflow_id Value to be assigned
|
|
180
|
+
def workflow_id=(workflow_id)
|
|
181
|
+
if workflow_id.nil?
|
|
182
|
+
fail ArgumentError, 'workflow_id cannot be nil'
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
@workflow_id = workflow_id
|
|
186
|
+
end
|
|
187
|
+
|
|
162
188
|
# Custom attribute writer method with validation
|
|
163
189
|
# @param [Object] tags Value to be assigned
|
|
164
190
|
def tags=(tags)
|
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.16.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -44,14 +44,12 @@ require 'onfido/models/complete_task_builder'
|
|
|
44
44
|
require 'onfido/models/complete_task_data_builder'
|
|
45
45
|
require 'onfido/models/country_codes'
|
|
46
46
|
require 'onfido/models/device_intelligence_breakdown'
|
|
47
|
-
require 'onfido/models/device_intelligence_breakdown_breakdown'
|
|
48
47
|
require 'onfido/models/device_intelligence_breakdown_device'
|
|
49
48
|
require 'onfido/models/device_intelligence_breakdown_device_breakdown'
|
|
50
|
-
require 'onfido/models/device_intelligence_breakdown_properties'
|
|
51
|
-
require 'onfido/models/device_intelligence_breakdown_properties_device'
|
|
52
|
-
require 'onfido/models/device_intelligence_breakdown_properties_geolocation'
|
|
53
|
-
require 'onfido/models/device_intelligence_breakdown_properties_ip'
|
|
54
49
|
require 'onfido/models/device_intelligence_properties'
|
|
50
|
+
require 'onfido/models/device_intelligence_properties_device'
|
|
51
|
+
require 'onfido/models/device_intelligence_properties_geolocation'
|
|
52
|
+
require 'onfido/models/device_intelligence_properties_ip'
|
|
55
53
|
require 'onfido/models/device_intelligence_report'
|
|
56
54
|
require 'onfido/models/document'
|
|
57
55
|
require 'onfido/models/document_breakdown'
|
|
@@ -100,6 +98,7 @@ require 'onfido/models/document_properties_document_numbers_inner'
|
|
|
100
98
|
require 'onfido/models/document_properties_driving_licence_information_item'
|
|
101
99
|
require 'onfido/models/document_properties_extracted_data'
|
|
102
100
|
require 'onfido/models/document_properties_nfc'
|
|
101
|
+
require 'onfido/models/document_properties_with_driving_licence_information'
|
|
103
102
|
require 'onfido/models/document_report'
|
|
104
103
|
require 'onfido/models/document_report_shared'
|
|
105
104
|
require 'onfido/models/document_response'
|
|
@@ -218,6 +217,9 @@ require 'onfido/models/location_builder'
|
|
|
218
217
|
require 'onfido/models/location_shared'
|
|
219
218
|
require 'onfido/models/motion_capture'
|
|
220
219
|
require 'onfido/models/motion_captures_list'
|
|
220
|
+
require 'onfido/models/passkey'
|
|
221
|
+
require 'onfido/models/passkey_updater'
|
|
222
|
+
require 'onfido/models/passkeys_list'
|
|
221
223
|
require 'onfido/models/photo_auto_reasons'
|
|
222
224
|
require 'onfido/models/photo_reasons'
|
|
223
225
|
require 'onfido/models/proof_of_address_breakdown'
|
|
@@ -246,6 +248,10 @@ require 'onfido/models/sdk_token'
|
|
|
246
248
|
require 'onfido/models/sdk_token_builder'
|
|
247
249
|
require 'onfido/models/sdk_token_request'
|
|
248
250
|
require 'onfido/models/sdk_token_response'
|
|
251
|
+
require 'onfido/models/signing_document'
|
|
252
|
+
require 'onfido/models/signing_document_response'
|
|
253
|
+
require 'onfido/models/signing_document_shared'
|
|
254
|
+
require 'onfido/models/signing_documents_list'
|
|
249
255
|
require 'onfido/models/task'
|
|
250
256
|
require 'onfido/models/task_item'
|
|
251
257
|
require 'onfido/models/timeline_file_reference'
|
|
@@ -299,6 +305,7 @@ require 'onfido/models/webhook_event_object_status'
|
|
|
299
305
|
require 'onfido/models/webhook_event_payload'
|
|
300
306
|
require 'onfido/models/webhook_event_payload_object'
|
|
301
307
|
require 'onfido/models/webhook_event_payload_resource'
|
|
308
|
+
require 'onfido/models/webhook_event_resource_status'
|
|
302
309
|
require 'onfido/models/webhook_event_resource_type'
|
|
303
310
|
require 'onfido/models/webhook_event_type'
|
|
304
311
|
require 'onfido/models/webhook_resend'
|
data/onfido.gemspec
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
%PDF-1.4
|
|
2
|
+
%����
|
|
3
|
+
1 0 obj
|
|
4
|
+
<< /Type /Catalog /Pages 2 0 R >>
|
|
5
|
+
endobj
|
|
6
|
+
2 0 obj
|
|
7
|
+
<< /Type /Pages /Count 1 /Kids [3 0 R] >>
|
|
8
|
+
endobj
|
|
9
|
+
3 0 obj
|
|
10
|
+
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 612 792] /Contents 4 0 R /Resources << /Font << /F1 5 0 R >> >> >>
|
|
11
|
+
endobj
|
|
12
|
+
4 0 obj
|
|
13
|
+
<< /Length 2612 >>
|
|
14
|
+
stream
|
|
15
|
+
BT /F1 12 Tf 72 700 Td (Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. Signing document integration test fixture. ) Tj ET
|
|
16
|
+
endstream
|
|
17
|
+
endobj
|
|
18
|
+
5 0 obj
|
|
19
|
+
<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica >>
|
|
20
|
+
endobj
|
|
21
|
+
xref
|
|
22
|
+
0 6
|
|
23
|
+
0000000000 65535 f
|
|
24
|
+
0000000015 00000 n
|
|
25
|
+
0000000064 00000 n
|
|
26
|
+
0000000121 00000 n
|
|
27
|
+
0000000247 00000 n
|
|
28
|
+
0000002910 00000 n
|
|
29
|
+
trailer
|
|
30
|
+
<< /Size 6 /Root 1 0 R >>
|
|
31
|
+
startxref
|
|
32
|
+
2980
|
|
33
|
+
%%EOF
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'securerandom'
|
|
4
|
+
require_relative '../shared_contexts/with_onfido'
|
|
5
|
+
|
|
6
|
+
describe Onfido::Passkey do
|
|
7
|
+
describe 'Passkeys' do
|
|
8
|
+
include_context 'with onfido'
|
|
9
|
+
|
|
10
|
+
let(:username) { ENV.fetch('ONFIDO_SAMPLE_PASSKEY_USERNAME', 'sample-username') }
|
|
11
|
+
let(:sample_passkey_id) { ENV.fetch('ONFIDO_SAMPLE_PASSKEY_ID', '00000000-0000-0000-0000-000000000000') }
|
|
12
|
+
|
|
13
|
+
it 'lists passkeys' do
|
|
14
|
+
passkeys = onfido_api.list_passkeys(username)
|
|
15
|
+
|
|
16
|
+
expect(passkeys).to be_an_instance_of(Onfido::PasskeysList)
|
|
17
|
+
expect(passkeys.passkeys.size).to be > 0
|
|
18
|
+
|
|
19
|
+
sample_passkey = passkeys.passkeys.find { |passkey| passkey.id == sample_passkey_id } || passkeys.passkeys.first
|
|
20
|
+
|
|
21
|
+
expect(sample_passkey).to be_an_instance_of(Onfido::Passkey)
|
|
22
|
+
expect(sample_passkey.application_domain).not_to be_nil
|
|
23
|
+
expect(sample_passkey.state).not_to be_nil
|
|
24
|
+
expect(sample_passkey.created_at).not_to be_nil
|
|
25
|
+
expect(sample_passkey.to_hash).not_to be_nil
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
it 'finds a passkey' do
|
|
29
|
+
passkey = onfido_api.find_passkey(username, sample_passkey_id)
|
|
30
|
+
|
|
31
|
+
expect(passkey).to be_an_instance_of(Onfido::Passkey)
|
|
32
|
+
expect(passkey.id).to eq(sample_passkey_id)
|
|
33
|
+
expect(passkey.application_domain).not_to be_nil
|
|
34
|
+
expect(passkey.state).not_to be_nil
|
|
35
|
+
expect(passkey.created_at).not_to be_nil
|
|
36
|
+
expect(passkey.to_hash).not_to be_nil
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
it 'updates a passkey state' do
|
|
40
|
+
updated_passkey = onfido_api.update_passkey(
|
|
41
|
+
username,
|
|
42
|
+
sample_passkey_id,
|
|
43
|
+
Onfido::PasskeyUpdater.new(state: 'INACTIVE'),
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
expect(updated_passkey).to be_an_instance_of(Onfido::Passkey)
|
|
47
|
+
expect(updated_passkey.id).to eq(sample_passkey_id)
|
|
48
|
+
expect(updated_passkey.state).to eq('INACTIVE')
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
it 'deletes a passkey successfully' do
|
|
52
|
+
_, status_code, = onfido_api.delete_passkey_with_http_info(username, sample_passkey_id)
|
|
53
|
+
|
|
54
|
+
expect(status_code).to eq(204)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
it 'deletes passkeys successfully' do
|
|
58
|
+
_, status_code, = onfido_api.delete_passkeys_with_http_info(username)
|
|
59
|
+
|
|
60
|
+
expect(status_code).to eq(204)
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative '../shared_contexts/with_signing_document'
|
|
4
|
+
require_relative '../shared_examples/file_examples'
|
|
5
|
+
|
|
6
|
+
describe Onfido::SigningDocument do
|
|
7
|
+
describe 'Signing Documents' do
|
|
8
|
+
include_context 'with signing document'
|
|
9
|
+
|
|
10
|
+
it 'uploads a signing document' do
|
|
11
|
+
expect(signing_document).not_to be_nil
|
|
12
|
+
expect(signing_document.id).not_to be_empty
|
|
13
|
+
expect(signing_document.file_name).to eq('sample_signing_document.pdf')
|
|
14
|
+
expect(signing_document.file_type).to eq('pdf')
|
|
15
|
+
expect(signing_document.applicant_id).to eq(applicant_id)
|
|
16
|
+
expect(signing_document.href).not_to be_nil
|
|
17
|
+
expect(signing_document.download_href).not_to be_nil
|
|
18
|
+
expect(signing_document.file_size).to be > 0
|
|
19
|
+
expect(signing_document.to_hash).not_to be_nil
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
describe 'downloading a signing document' do
|
|
23
|
+
let(:file) { onfido_api.download_signing_document(signing_document_id) }
|
|
24
|
+
|
|
25
|
+
it_behaves_like "a valid PDF file"
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
it 'finds a signing document' do
|
|
29
|
+
found_document = onfido_api.find_signing_document(signing_document_id)
|
|
30
|
+
|
|
31
|
+
expect(found_document).to be_an_instance_of(Onfido::SigningDocument)
|
|
32
|
+
expect(found_document.id).to eq signing_document_id
|
|
33
|
+
expect(found_document.file_name).to eq('sample_signing_document.pdf')
|
|
34
|
+
expect(found_document.file_type).to eq('pdf')
|
|
35
|
+
expect(found_document.applicant_id).to eq(applicant_id)
|
|
36
|
+
expect(found_document.download_href).not_to be_nil
|
|
37
|
+
expect(found_document.to_hash).not_to be_nil
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
it 'lists signing documents' do
|
|
41
|
+
documents = onfido_api.list_signing_documents(applicant_id)
|
|
42
|
+
|
|
43
|
+
expect(documents).to be_an_instance_of(Onfido::SigningDocumentsList)
|
|
44
|
+
expect(documents.signing_documents.map(&:id)).to include(signing_document_id)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
it 'cannot upload a signing document without required parameters' do
|
|
48
|
+
expect {
|
|
49
|
+
onfido_api.upload_signing_document(nil, nil)
|
|
50
|
+
}.to raise_error(ArgumentError)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
it 'cannot download an inexistent signing document' do
|
|
54
|
+
expect {
|
|
55
|
+
onfido_api.download_signing_document(inexistent_signing_document_id)
|
|
56
|
+
}.to raise_error(Onfido::ApiError) { |e|
|
|
57
|
+
expect(e.code).to eq(404)
|
|
58
|
+
}
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -50,7 +50,11 @@ describe Onfido::WorkflowRun do
|
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
describe 'downloading evidence file' do
|
|
53
|
-
let(:file)
|
|
53
|
+
let(:file) do
|
|
54
|
+
repeat_request_until_http_code_changes(15, 2) do
|
|
55
|
+
onfido_api.download_signed_evidence_file(workflow_run_id)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
54
58
|
|
|
55
59
|
it_behaves_like "a valid PDF file", 497605
|
|
56
60
|
end
|
|
@@ -76,7 +80,7 @@ describe Onfido::WorkflowRun do
|
|
|
76
80
|
end
|
|
77
81
|
|
|
78
82
|
timeline_file_id = onfido_api.create_timeline_file(workflow_run_id).workflow_timeline_file_id
|
|
79
|
-
file =
|
|
83
|
+
file = repeat_request_until_http_code_changes do
|
|
80
84
|
onfido_api.find_timeline_file(workflow_run_id, timeline_file_id)
|
|
81
85
|
end
|
|
82
86
|
|
|
@@ -84,7 +88,7 @@ describe Onfido::WorkflowRun do
|
|
|
84
88
|
end
|
|
85
89
|
|
|
86
90
|
it 'downloads an evidence folder' do
|
|
87
|
-
file =
|
|
91
|
+
file = repeat_request_until_http_code_changes(15, 2) do
|
|
88
92
|
onfido_api.download_evidence_folder(workflow_run_id)
|
|
89
93
|
end
|
|
90
94
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative '../shared_contexts/with_applicant'
|
|
4
|
+
|
|
5
|
+
RSpec.shared_context 'with signing document', shared_context: :metadata do
|
|
6
|
+
include_context 'with applicant'
|
|
7
|
+
|
|
8
|
+
let(:signing_document_file_name) { 'sample_signing_document.pdf' }
|
|
9
|
+
let(:signing_document_file) { File.open("spec/integrations/media/#{signing_document_file_name}") }
|
|
10
|
+
|
|
11
|
+
let(:signing_document) { onfido_api.upload_signing_document(applicant_id, signing_document_file) }
|
|
12
|
+
let!(:signing_document_id) { signing_document.id }
|
|
13
|
+
|
|
14
|
+
let(:inexistent_signing_document_id) { '00000000-0000-0000-0000-000000000000' }
|
|
15
|
+
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -106,7 +106,7 @@ def repeat_request_until_task_output_changes(max_retries = 15,
|
|
|
106
106
|
instance
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
-
def
|
|
109
|
+
def repeat_request_until_http_code_changes(max_retries = 15,
|
|
110
110
|
interval = 1, &proc)
|
|
111
111
|
# max_retries --> how many times to retry the request
|
|
112
112
|
# interval --> how many seconds to wait until the next retry
|