onfido 4.6.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 +9 -0
- data/MIGRATION.md +29 -0
- data/README.md +2 -2
- 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 +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 +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 +1 -1
- 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/shared_contexts/with_document.rb +4 -0
- metadata +20 -19
@@ -0,0 +1,217 @@
|
|
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.11.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Onfido
|
17
|
+
class DocumentReportShared
|
18
|
+
# Array of objects with document ids that were used in the Onfido engine.
|
19
|
+
attr_accessor :documents
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'documents' => :'documents'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Returns all the JSON keys this model knows about
|
29
|
+
def self.acceptable_attributes
|
30
|
+
attribute_map.values
|
31
|
+
end
|
32
|
+
|
33
|
+
# Attribute type mapping.
|
34
|
+
def self.openapi_types
|
35
|
+
{
|
36
|
+
:'documents' => :'Array<ReportDocument>'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# List of attributes with nullable: true
|
41
|
+
def self.openapi_nullable
|
42
|
+
Set.new([
|
43
|
+
])
|
44
|
+
end
|
45
|
+
|
46
|
+
# Initializes the object
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
48
|
+
def initialize(attributes = {})
|
49
|
+
if (!attributes.is_a?(Hash))
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Onfido::DocumentReportShared` initialize method"
|
51
|
+
end
|
52
|
+
|
53
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::DocumentReportShared`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
|
+
end
|
58
|
+
h[k.to_sym] = v
|
59
|
+
}
|
60
|
+
|
61
|
+
if attributes.key?(:'documents')
|
62
|
+
if (value = attributes[:'documents']).is_a?(Array)
|
63
|
+
self.documents = value
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
69
|
+
# @return Array for valid properties with the reasons
|
70
|
+
def list_invalid_properties
|
71
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
72
|
+
invalid_properties = Array.new
|
73
|
+
invalid_properties
|
74
|
+
end
|
75
|
+
|
76
|
+
# Check to see if the all the properties in the model are valid
|
77
|
+
# @return true if the model is valid
|
78
|
+
def valid?
|
79
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
80
|
+
true
|
81
|
+
end
|
82
|
+
|
83
|
+
# Checks equality by comparing each attribute.
|
84
|
+
# @param [Object] Object to be compared
|
85
|
+
def ==(o)
|
86
|
+
return true if self.equal?(o)
|
87
|
+
self.class == o.class &&
|
88
|
+
documents == o.documents
|
89
|
+
end
|
90
|
+
|
91
|
+
# @see the `==` method
|
92
|
+
# @param [Object] Object to be compared
|
93
|
+
def eql?(o)
|
94
|
+
self == o
|
95
|
+
end
|
96
|
+
|
97
|
+
# Calculates hash code according to all attributes.
|
98
|
+
# @return [Integer] Hash code
|
99
|
+
def hash
|
100
|
+
[documents].hash
|
101
|
+
end
|
102
|
+
|
103
|
+
# Builds the object from hash
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
+
# @return [Object] Returns the model itself
|
106
|
+
def self.build_from_hash(attributes)
|
107
|
+
return nil unless attributes.is_a?(Hash)
|
108
|
+
attributes = attributes.transform_keys(&:to_sym)
|
109
|
+
transformed_hash = {}
|
110
|
+
openapi_types.each_pair do |key, type|
|
111
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
112
|
+
transformed_hash["#{key}"] = nil
|
113
|
+
elsif type =~ /\AArray<(.*)>/i
|
114
|
+
# check to ensure the input is an array given that the attribute
|
115
|
+
# is documented as an array but the input is not
|
116
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
117
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
118
|
+
end
|
119
|
+
elsif !attributes[attribute_map[key]].nil?
|
120
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
121
|
+
end
|
122
|
+
end
|
123
|
+
new(transformed_hash)
|
124
|
+
end
|
125
|
+
|
126
|
+
# Deserializes the data based on type
|
127
|
+
# @param string type Data type
|
128
|
+
# @param string value Value to be deserialized
|
129
|
+
# @return [Object] Deserialized data
|
130
|
+
def self._deserialize(type, value)
|
131
|
+
case type.to_sym
|
132
|
+
when :Time
|
133
|
+
Time.parse(value)
|
134
|
+
when :Date
|
135
|
+
Date.parse(value)
|
136
|
+
when :String
|
137
|
+
value.to_s
|
138
|
+
when :Integer
|
139
|
+
value.to_i
|
140
|
+
when :Float
|
141
|
+
value.to_f
|
142
|
+
when :Boolean
|
143
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
144
|
+
true
|
145
|
+
else
|
146
|
+
false
|
147
|
+
end
|
148
|
+
when :Object
|
149
|
+
# generic object (usually a Hash), return directly
|
150
|
+
value
|
151
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
152
|
+
inner_type = Regexp.last_match[:inner_type]
|
153
|
+
value.map { |v| _deserialize(inner_type, v) }
|
154
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
155
|
+
k_type = Regexp.last_match[:k_type]
|
156
|
+
v_type = Regexp.last_match[:v_type]
|
157
|
+
{}.tap do |hash|
|
158
|
+
value.each do |k, v|
|
159
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
160
|
+
end
|
161
|
+
end
|
162
|
+
else # model
|
163
|
+
# models (e.g. Pet) or oneOf
|
164
|
+
klass = Onfido.const_get(type)
|
165
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
# Returns the string representation of the object
|
170
|
+
# @return [String] String presentation of the object
|
171
|
+
def to_s
|
172
|
+
to_hash.to_s
|
173
|
+
end
|
174
|
+
|
175
|
+
# to_body is an alias to to_hash (backward compatibility)
|
176
|
+
# @return [Hash] Returns the object in the form of hash
|
177
|
+
def to_body
|
178
|
+
to_hash
|
179
|
+
end
|
180
|
+
|
181
|
+
# Returns the object in the form of hash
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
183
|
+
def to_hash
|
184
|
+
hash = {}
|
185
|
+
self.class.attribute_map.each_pair do |attr, param|
|
186
|
+
value = self.send(attr)
|
187
|
+
if value.nil?
|
188
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
189
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
190
|
+
end
|
191
|
+
|
192
|
+
hash[param] = _to_hash(value)
|
193
|
+
end
|
194
|
+
hash
|
195
|
+
end
|
196
|
+
|
197
|
+
# Outputs non-array value in the form of hash
|
198
|
+
# For object, use to_hash. Otherwise, just return the value
|
199
|
+
# @param [Object] value Any valid value
|
200
|
+
# @return [Hash] Returns the value in the form of hash
|
201
|
+
def _to_hash(value)
|
202
|
+
if value.is_a?(Array)
|
203
|
+
value.compact.map { |v| _to_hash(v) }
|
204
|
+
elsif value.is_a?(Hash)
|
205
|
+
{}.tap do |hash|
|
206
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
207
|
+
end
|
208
|
+
elsif value.respond_to? :to_hash
|
209
|
+
value.to_hash
|
210
|
+
else
|
211
|
+
value
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
end
|
216
|
+
|
217
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.11.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -133,23 +133,11 @@ module Onfido
|
|
133
133
|
# @return true if the model is valid
|
134
134
|
def valid?
|
135
135
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
136
|
-
file_type_validator = EnumAttributeValidator.new('String', ["jpg", "jpeg", "png", "pdf", "unknown_default_open_api"])
|
137
|
-
return false unless file_type_validator.valid?(@file_type)
|
138
136
|
side_validator = EnumAttributeValidator.new('String', ["front", "back", "unknown_default_open_api"])
|
139
137
|
return false unless side_validator.valid?(@side)
|
140
138
|
true
|
141
139
|
end
|
142
140
|
|
143
|
-
# Custom attribute writer method checking allowed values (enum).
|
144
|
-
# @param [Object] file_type Object to be assigned
|
145
|
-
def file_type=(file_type)
|
146
|
-
validator = EnumAttributeValidator.new('String', ["jpg", "jpeg", "png", "pdf", "unknown_default_open_api"])
|
147
|
-
unless validator.valid?(file_type)
|
148
|
-
fail ArgumentError, "invalid value for \"file_type\", must be one of #{validator.allowable_values}."
|
149
|
-
end
|
150
|
-
@file_type = file_type
|
151
|
-
end
|
152
|
-
|
153
141
|
# Custom attribute writer method checking allowed values (enum).
|
154
142
|
# @param [Object] side Object to be assigned
|
155
143
|
def side=(side)
|
@@ -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
|
|
@@ -33,11 +33,11 @@ module Onfido
|
|
33
33
|
# The ID of the check to which the report belongs. Read-only.
|
34
34
|
attr_accessor :check_id
|
35
35
|
|
36
|
-
# Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
|
37
|
-
attr_accessor :documents
|
38
|
-
|
39
36
|
attr_accessor :name
|
40
37
|
|
38
|
+
# Array of objects with document ids that were used in the Onfido engine.
|
39
|
+
attr_accessor :documents
|
40
|
+
|
41
41
|
attr_accessor :breakdown
|
42
42
|
|
43
43
|
attr_accessor :properties
|
@@ -74,8 +74,8 @@ module Onfido
|
|
74
74
|
:'result' => :'result',
|
75
75
|
:'sub_result' => :'sub_result',
|
76
76
|
:'check_id' => :'check_id',
|
77
|
-
:'documents' => :'documents',
|
78
77
|
:'name' => :'name',
|
78
|
+
:'documents' => :'documents',
|
79
79
|
:'breakdown' => :'breakdown',
|
80
80
|
:'properties' => :'properties'
|
81
81
|
}
|
@@ -96,8 +96,8 @@ module Onfido
|
|
96
96
|
:'result' => :'ReportResult',
|
97
97
|
:'sub_result' => :'ReportSubResult',
|
98
98
|
:'check_id' => :'String',
|
99
|
-
:'documents' => :'Array<ReportDocument>',
|
100
99
|
:'name' => :'ReportName',
|
100
|
+
:'documents' => :'Array<ReportDocument>',
|
101
101
|
:'breakdown' => :'DocumentBreakdown',
|
102
102
|
:'properties' => :'DocumentProperties'
|
103
103
|
}
|
@@ -112,6 +112,7 @@ module Onfido
|
|
112
112
|
# List of class defined in allOf (OpenAPI v3)
|
113
113
|
def self.openapi_all_of
|
114
114
|
[
|
115
|
+
:'DocumentReportShared',
|
115
116
|
:'ReportShared'
|
116
117
|
]
|
117
118
|
end
|
@@ -161,18 +162,18 @@ module Onfido
|
|
161
162
|
self.check_id = attributes[:'check_id']
|
162
163
|
end
|
163
164
|
|
164
|
-
if attributes.key?(:'documents')
|
165
|
-
if (value = attributes[:'documents']).is_a?(Array)
|
166
|
-
self.documents = value
|
167
|
-
end
|
168
|
-
end
|
169
|
-
|
170
165
|
if attributes.key?(:'name')
|
171
166
|
self.name = attributes[:'name']
|
172
167
|
else
|
173
168
|
self.name = nil
|
174
169
|
end
|
175
170
|
|
171
|
+
if attributes.key?(:'documents')
|
172
|
+
if (value = attributes[:'documents']).is_a?(Array)
|
173
|
+
self.documents = value
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
176
177
|
if attributes.key?(:'breakdown')
|
177
178
|
self.breakdown = attributes[:'breakdown']
|
178
179
|
end
|
@@ -219,8 +220,8 @@ module Onfido
|
|
219
220
|
result == o.result &&
|
220
221
|
sub_result == o.sub_result &&
|
221
222
|
check_id == o.check_id &&
|
222
|
-
documents == o.documents &&
|
223
223
|
name == o.name &&
|
224
|
+
documents == o.documents &&
|
224
225
|
breakdown == o.breakdown &&
|
225
226
|
properties == o.properties
|
226
227
|
end
|
@@ -234,7 +235,7 @@ module Onfido
|
|
234
235
|
# Calculates hash code according to all attributes.
|
235
236
|
# @return [Integer] Hash code
|
236
237
|
def hash
|
237
|
-
[id, created_at, href, status, result, sub_result, check_id,
|
238
|
+
[id, created_at, href, status, result, sub_result, check_id, name, documents, breakdown, properties].hash
|
238
239
|
end
|
239
240
|
|
240
241
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.11.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,11 +33,11 @@ module Onfido
|
|
33
33
|
# The ID of the check to which the report belongs. Read-only.
|
34
34
|
attr_accessor :check_id
|
35
35
|
|
36
|
-
# Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
|
37
|
-
attr_accessor :documents
|
38
|
-
|
39
36
|
attr_accessor :name
|
40
37
|
|
38
|
+
# Array of objects with document ids that were used in the Onfido engine.
|
39
|
+
attr_accessor :documents
|
40
|
+
|
41
41
|
attr_accessor :breakdown
|
42
42
|
|
43
43
|
attr_accessor :properties
|
@@ -74,8 +74,8 @@ module Onfido
|
|
74
74
|
:'result' => :'result',
|
75
75
|
:'sub_result' => :'sub_result',
|
76
76
|
:'check_id' => :'check_id',
|
77
|
-
:'documents' => :'documents',
|
78
77
|
:'name' => :'name',
|
78
|
+
:'documents' => :'documents',
|
79
79
|
:'breakdown' => :'breakdown',
|
80
80
|
:'properties' => :'properties'
|
81
81
|
}
|
@@ -96,8 +96,8 @@ module Onfido
|
|
96
96
|
:'result' => :'ReportResult',
|
97
97
|
:'sub_result' => :'ReportSubResult',
|
98
98
|
:'check_id' => :'String',
|
99
|
-
:'documents' => :'Array<ReportDocument>',
|
100
99
|
:'name' => :'ReportName',
|
100
|
+
:'documents' => :'Array<ReportDocument>',
|
101
101
|
:'breakdown' => :'DocumentBreakdown',
|
102
102
|
:'properties' => :'DocumentProperties'
|
103
103
|
}
|
@@ -112,6 +112,7 @@ module Onfido
|
|
112
112
|
# List of class defined in allOf (OpenAPI v3)
|
113
113
|
def self.openapi_all_of
|
114
114
|
[
|
115
|
+
:'DocumentReportShared',
|
115
116
|
:'ReportShared'
|
116
117
|
]
|
117
118
|
end
|
@@ -161,18 +162,18 @@ module Onfido
|
|
161
162
|
self.check_id = attributes[:'check_id']
|
162
163
|
end
|
163
164
|
|
164
|
-
if attributes.key?(:'documents')
|
165
|
-
if (value = attributes[:'documents']).is_a?(Array)
|
166
|
-
self.documents = value
|
167
|
-
end
|
168
|
-
end
|
169
|
-
|
170
165
|
if attributes.key?(:'name')
|
171
166
|
self.name = attributes[:'name']
|
172
167
|
else
|
173
168
|
self.name = nil
|
174
169
|
end
|
175
170
|
|
171
|
+
if attributes.key?(:'documents')
|
172
|
+
if (value = attributes[:'documents']).is_a?(Array)
|
173
|
+
self.documents = value
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
176
177
|
if attributes.key?(:'breakdown')
|
177
178
|
self.breakdown = attributes[:'breakdown']
|
178
179
|
end
|
@@ -219,8 +220,8 @@ module Onfido
|
|
219
220
|
result == o.result &&
|
220
221
|
sub_result == o.sub_result &&
|
221
222
|
check_id == o.check_id &&
|
222
|
-
documents == o.documents &&
|
223
223
|
name == o.name &&
|
224
|
+
documents == o.documents &&
|
224
225
|
breakdown == o.breakdown &&
|
225
226
|
properties == o.properties
|
226
227
|
end
|
@@ -234,7 +235,7 @@ module Onfido
|
|
234
235
|
# Calculates hash code according to all attributes.
|
235
236
|
# @return [Integer] Hash code
|
236
237
|
def hash
|
237
|
-
[id, created_at, href, status, result, sub_result, check_id,
|
238
|
+
[id, created_at, href, status, result, sub_result, check_id, name, documents, breakdown, properties].hash
|
238
239
|
end
|
239
240
|
|
240
241
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.11.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,11 +33,11 @@ module Onfido
|
|
33
33
|
# The ID of the check to which the report belongs. Read-only.
|
34
34
|
attr_accessor :check_id
|
35
35
|
|
36
|
-
# Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
|
37
|
-
attr_accessor :documents
|
38
|
-
|
39
36
|
attr_accessor :name
|
40
37
|
|
38
|
+
# Array of objects with document ids that were used in the Onfido engine.
|
39
|
+
attr_accessor :documents
|
40
|
+
|
41
41
|
attr_accessor :breakdown
|
42
42
|
|
43
43
|
attr_accessor :properties
|
@@ -74,8 +74,8 @@ module Onfido
|
|
74
74
|
:'result' => :'result',
|
75
75
|
:'sub_result' => :'sub_result',
|
76
76
|
:'check_id' => :'check_id',
|
77
|
-
:'documents' => :'documents',
|
78
77
|
:'name' => :'name',
|
78
|
+
:'documents' => :'documents',
|
79
79
|
:'breakdown' => :'breakdown',
|
80
80
|
:'properties' => :'properties'
|
81
81
|
}
|
@@ -96,8 +96,8 @@ module Onfido
|
|
96
96
|
:'result' => :'ReportResult',
|
97
97
|
:'sub_result' => :'ReportSubResult',
|
98
98
|
:'check_id' => :'String',
|
99
|
-
:'documents' => :'Array<ReportDocument>',
|
100
99
|
:'name' => :'ReportName',
|
100
|
+
:'documents' => :'Array<ReportDocument>',
|
101
101
|
:'breakdown' => :'DocumentBreakdown',
|
102
102
|
:'properties' => :'DocumentProperties'
|
103
103
|
}
|
@@ -112,6 +112,7 @@ module Onfido
|
|
112
112
|
# List of class defined in allOf (OpenAPI v3)
|
113
113
|
def self.openapi_all_of
|
114
114
|
[
|
115
|
+
:'DocumentReportShared',
|
115
116
|
:'ReportShared'
|
116
117
|
]
|
117
118
|
end
|
@@ -161,18 +162,18 @@ module Onfido
|
|
161
162
|
self.check_id = attributes[:'check_id']
|
162
163
|
end
|
163
164
|
|
164
|
-
if attributes.key?(:'documents')
|
165
|
-
if (value = attributes[:'documents']).is_a?(Array)
|
166
|
-
self.documents = value
|
167
|
-
end
|
168
|
-
end
|
169
|
-
|
170
165
|
if attributes.key?(:'name')
|
171
166
|
self.name = attributes[:'name']
|
172
167
|
else
|
173
168
|
self.name = nil
|
174
169
|
end
|
175
170
|
|
171
|
+
if attributes.key?(:'documents')
|
172
|
+
if (value = attributes[:'documents']).is_a?(Array)
|
173
|
+
self.documents = value
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
176
177
|
if attributes.key?(:'breakdown')
|
177
178
|
self.breakdown = attributes[:'breakdown']
|
178
179
|
end
|
@@ -219,8 +220,8 @@ module Onfido
|
|
219
220
|
result == o.result &&
|
220
221
|
sub_result == o.sub_result &&
|
221
222
|
check_id == o.check_id &&
|
222
|
-
documents == o.documents &&
|
223
223
|
name == o.name &&
|
224
|
+
documents == o.documents &&
|
224
225
|
breakdown == o.breakdown &&
|
225
226
|
properties == o.properties
|
226
227
|
end
|
@@ -234,7 +235,7 @@ module Onfido
|
|
234
235
|
# Calculates hash code according to all attributes.
|
235
236
|
# @return [Integer] Hash code
|
236
237
|
def hash
|
237
|
-
[id, created_at, href, status, result, sub_result, check_id,
|
238
|
+
[id, created_at, href, status, result, sub_result, check_id, name, documents, breakdown, properties].hash
|
238
239
|
end
|
239
240
|
|
240
241
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.11.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,11 +33,11 @@ module Onfido
|
|
33
33
|
# The ID of the check to which the report belongs. Read-only.
|
34
34
|
attr_accessor :check_id
|
35
35
|
|
36
|
-
# Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
|
37
|
-
attr_accessor :documents
|
38
|
-
|
39
36
|
attr_accessor :name
|
40
37
|
|
38
|
+
# Array of objects with document ids that were used in the Onfido engine.
|
39
|
+
attr_accessor :documents
|
40
|
+
|
41
41
|
attr_accessor :breakdown
|
42
42
|
|
43
43
|
attr_accessor :properties
|
@@ -74,8 +74,8 @@ module Onfido
|
|
74
74
|
:'result' => :'result',
|
75
75
|
:'sub_result' => :'sub_result',
|
76
76
|
:'check_id' => :'check_id',
|
77
|
-
:'documents' => :'documents',
|
78
77
|
:'name' => :'name',
|
78
|
+
:'documents' => :'documents',
|
79
79
|
:'breakdown' => :'breakdown',
|
80
80
|
:'properties' => :'properties'
|
81
81
|
}
|
@@ -96,8 +96,8 @@ module Onfido
|
|
96
96
|
:'result' => :'ReportResult',
|
97
97
|
:'sub_result' => :'ReportSubResult',
|
98
98
|
:'check_id' => :'String',
|
99
|
-
:'documents' => :'Array<ReportDocument>',
|
100
99
|
:'name' => :'ReportName',
|
100
|
+
:'documents' => :'Array<ReportDocument>',
|
101
101
|
:'breakdown' => :'DocumentBreakdown',
|
102
102
|
:'properties' => :'DocumentWithDriverVerificationReportAllOfProperties'
|
103
103
|
}
|
@@ -112,6 +112,7 @@ module Onfido
|
|
112
112
|
# List of class defined in allOf (OpenAPI v3)
|
113
113
|
def self.openapi_all_of
|
114
114
|
[
|
115
|
+
:'DocumentReportShared',
|
115
116
|
:'ReportShared'
|
116
117
|
]
|
117
118
|
end
|
@@ -161,18 +162,18 @@ module Onfido
|
|
161
162
|
self.check_id = attributes[:'check_id']
|
162
163
|
end
|
163
164
|
|
164
|
-
if attributes.key?(:'documents')
|
165
|
-
if (value = attributes[:'documents']).is_a?(Array)
|
166
|
-
self.documents = value
|
167
|
-
end
|
168
|
-
end
|
169
|
-
|
170
165
|
if attributes.key?(:'name')
|
171
166
|
self.name = attributes[:'name']
|
172
167
|
else
|
173
168
|
self.name = nil
|
174
169
|
end
|
175
170
|
|
171
|
+
if attributes.key?(:'documents')
|
172
|
+
if (value = attributes[:'documents']).is_a?(Array)
|
173
|
+
self.documents = value
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
176
177
|
if attributes.key?(:'breakdown')
|
177
178
|
self.breakdown = attributes[:'breakdown']
|
178
179
|
end
|
@@ -219,8 +220,8 @@ module Onfido
|
|
219
220
|
result == o.result &&
|
220
221
|
sub_result == o.sub_result &&
|
221
222
|
check_id == o.check_id &&
|
222
|
-
documents == o.documents &&
|
223
223
|
name == o.name &&
|
224
|
+
documents == o.documents &&
|
224
225
|
breakdown == o.breakdown &&
|
225
226
|
properties == o.properties
|
226
227
|
end
|
@@ -234,7 +235,7 @@ module Onfido
|
|
234
235
|
# Calculates hash code according to all attributes.
|
235
236
|
# @return [Integer] Hash code
|
236
237
|
def hash
|
237
|
-
[id, created_at, href, status, result, sub_result, check_id,
|
238
|
+
[id, created_at, href, status, result, sub_result, check_id, name, documents, breakdown, properties].hash
|
238
239
|
end
|
239
240
|
|
240
241
|
# Builds the object from hash
|