onfido 3.3.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/MIGRATION.md +30 -0
- data/README.md +2 -2
- data/lib/onfido/api/default_api.rb +68 -68
- data/lib/onfido/api_client.rb +31 -25
- data/lib/onfido/api_error.rb +1 -1
- data/lib/onfido/configuration.rb +11 -1
- data/lib/onfido/models/address.rb +1 -1
- data/lib/onfido/models/address_builder.rb +1 -1
- data/lib/onfido/models/address_shared.rb +1 -1
- data/lib/onfido/models/addresses_list.rb +1 -1
- data/lib/onfido/models/applicant.rb +1 -1
- data/lib/onfido/models/applicant_builder.rb +6 -3
- data/lib/onfido/models/{consent_item.rb → applicant_consent_builder.rb} +5 -18
- data/lib/onfido/models/applicant_consent_name.rb +42 -0
- data/lib/onfido/models/applicant_create.rb +1 -1
- data/lib/onfido/models/applicant_request.rb +6 -3
- data/lib/onfido/models/applicant_response.rb +1 -1
- data/lib/onfido/models/applicant_shared.rb +1 -1
- data/lib/onfido/models/applicant_update.rb +1 -1
- data/lib/onfido/models/applicant_updater.rb +6 -3
- data/lib/onfido/models/applicants_list.rb +1 -1
- data/lib/onfido/models/check.rb +33 -19
- data/lib/onfido/models/check_builder.rb +11 -2
- data/lib/onfido/models/check_request.rb +1 -1
- data/lib/onfido/models/check_response.rb +24 -19
- data/lib/onfido/models/check_shared.rb +14 -5
- data/lib/onfido/models/check_status.rb +45 -0
- data/lib/onfido/models/checks_list.rb +1 -1
- data/lib/onfido/models/complete_task_builder.rb +1 -1
- data/lib/onfido/models/complete_task_data_builder.rb +1 -1
- data/lib/onfido/models/country_codes.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_breakdown.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_breakdown_device.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_breakdown_device_breakdown.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_properties.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_properties_device.rb +2 -42
- data/lib/onfido/models/device_intelligence_breakdown_properties_geolocation.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_properties_ip.rb +5 -35
- data/lib/onfido/models/device_intelligence_report.rb +1 -1
- data/lib/onfido/models/document.rb +2 -2
- data/lib/onfido/models/document_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_age_validation.rb +1 -1
- data/lib/onfido/models/document_breakdown_age_validation_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_compromised_document.rb +1 -1
- data/lib/onfido/models/document_breakdown_compromised_document_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_comparison.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_comparison_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_comparison_breakdown_issuing_country.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_consistency.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_consistency_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_validation.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_validation_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_validation_breakdown_document_expiration.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_validation_breakdown_expiry_date.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown_colour_picture.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown_conclusive_document_quality.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown_image_quality.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown_supported_document.rb +1 -1
- data/lib/onfido/models/document_breakdown_issuing_authority.rb +1 -1
- data/lib/onfido/models/document_breakdown_issuing_authority_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_issuing_authority_breakdown_nfc_active_authentication.rb +1 -1
- data/lib/onfido/models/document_breakdown_issuing_authority_breakdown_nfc_passive_authentication.rb +1 -1
- data/lib/onfido/models/document_breakdown_police_record.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_digital_tampering.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_face_detection.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_fonts.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_original_document_present.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_other.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_picture_face_integrity.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_security_features.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_template.rb +1 -1
- data/lib/onfido/models/document_cdq_reasons.rb +1 -1
- data/lib/onfido/models/document_iq_reasons.rb +1 -1
- data/lib/onfido/models/document_odp_reasons.rb +1 -1
- data/lib/onfido/models/document_properties.rb +1 -1
- data/lib/onfido/models/document_properties_address_lines.rb +1 -1
- data/lib/onfido/models/document_properties_barcode_inner.rb +1 -1
- data/lib/onfido/models/document_properties_document_classification.rb +1 -1
- data/lib/onfido/models/document_properties_document_numbers_inner.rb +1 -1
- data/lib/onfido/models/document_properties_driving_licence_information.rb +1 -1
- data/lib/onfido/models/document_properties_extracted_data.rb +1 -1
- data/lib/onfido/models/document_properties_nfc.rb +1 -1
- data/lib/onfido/models/document_report.rb +1 -1
- data/lib/onfido/models/document_response.rb +1 -1
- data/lib/onfido/models/document_shared.rb +2 -2
- data/lib/onfido/models/document_types.rb +7 -2
- data/lib/onfido/models/document_video_report.rb +1 -1
- data/lib/onfido/models/document_video_with_address_information_report.rb +1 -1
- data/lib/onfido/models/document_with_address_information_report.rb +1 -1
- data/lib/onfido/models/document_with_driver_verification_report.rb +1 -1
- data/lib/onfido/models/document_with_driver_verification_report_all_of_properties.rb +1 -1
- data/lib/onfido/models/document_with_driver_verification_report_all_of_properties_all_of_passenger_vehicle.rb +1 -1
- data/lib/onfido/models/document_with_driver_verification_report_all_of_properties_all_of_vehicle_class_details_inner.rb +1 -1
- data/lib/onfido/models/document_with_driving_licence_information_report.rb +1 -1
- data/lib/onfido/models/documents_list.rb +1 -1
- data/lib/onfido/models/error.rb +1 -1
- data/lib/onfido/models/error1.rb +1 -1
- data/lib/onfido/models/error_properties.rb +1 -1
- data/lib/onfido/models/error_properties1.rb +1 -1
- data/lib/onfido/models/extract_request.rb +1 -1
- data/lib/onfido/models/extraction.rb +1 -1
- data/lib/onfido/models/extraction_document_classification.rb +1 -1
- data/lib/onfido/models/extraction_extracted_data.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_face_comparison.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown_face_detected.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_report.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown_face_match.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown_face_match_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown_face_detected.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown_spoofing_detection_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_report.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_report.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_face_comparison.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown_face_detected.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_liveness_detected.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_report.rb +1 -1
- data/lib/onfido/models/id_number.rb +1 -1
- data/lib/onfido/models/id_photo.rb +1 -1
- data/lib/onfido/models/id_photo_response.rb +1 -1
- data/lib/onfido/models/id_photos_list.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_credit_agencies.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_credit_agencies_properties.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_telephone_database.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_voting_register.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown_credit_agencies.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown_voting_register.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_mortality.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_sources.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown_total_sources.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown_total_sources_properties.rb +1 -1
- data/lib/onfido/models/identity_enhanced_properties.rb +1 -1
- data/lib/onfido/models/identity_enhanced_properties_matched_addresses_inner.rb +1 -1
- data/lib/onfido/models/identity_enhanced_report.rb +1 -1
- data/lib/onfido/models/india_pan_report.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_breakdown.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_breakdown_device.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_breakdown_device_breakdown.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_breakdown_device_breakdown_pan_valid.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_properties.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_properties_device.rb +1 -1
- data/lib/onfido/models/known_faces_breakdown.rb +1 -1
- data/lib/onfido/models/known_faces_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/known_faces_breakdown_previously_seen_faces.rb +1 -1
- data/lib/onfido/models/known_faces_properties.rb +1 -1
- data/lib/onfido/models/known_faces_properties_matches_inner.rb +1 -1
- data/lib/onfido/models/known_faces_report.rb +1 -1
- data/lib/onfido/models/live_photo.rb +1 -1
- data/lib/onfido/models/live_photo_response.rb +1 -1
- data/lib/onfido/models/live_photos_list.rb +1 -1
- data/lib/onfido/models/live_video.rb +1 -1
- data/lib/onfido/models/live_videos_list.rb +1 -1
- data/lib/onfido/models/location.rb +1 -1
- data/lib/onfido/models/location_builder.rb +1 -1
- data/lib/onfido/models/location_shared.rb +1 -1
- data/lib/onfido/models/motion_capture.rb +1 -1
- data/lib/onfido/models/motion_captures_list.rb +1 -1
- data/lib/onfido/models/photo_auto_reasons.rb +1 -1
- data/lib/onfido/models/photo_reasons.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_data_comparison.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_data_comparison_breakdown.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_document_classification.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_document_classification_breakdown.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/proof_of_address_properties.rb +1 -1
- data/lib/onfido/models/proof_of_address_report.rb +1 -1
- data/lib/onfido/models/repeat_attempts_list.rb +1 -1
- data/lib/onfido/models/repeat_attempts_list_repeat_attempts_inner.rb +1 -1
- data/lib/onfido/models/report.rb +1 -1
- data/lib/onfido/models/report_document.rb +1 -1
- data/lib/onfido/models/report_name.rb +1 -1
- data/lib/onfido/models/report_result.rb +1 -1
- data/lib/onfido/models/report_shared.rb +1 -1
- data/lib/onfido/models/report_status.rb +1 -1
- data/lib/onfido/models/report_sub_result.rb +1 -1
- data/lib/onfido/models/reports_list.rb +1 -1
- data/lib/onfido/models/results_feedback.rb +1 -1
- data/lib/onfido/models/sdk_token.rb +1 -1
- data/lib/onfido/models/sdk_token_builder.rb +1 -1
- data/lib/onfido/models/sdk_token_request.rb +1 -1
- data/lib/onfido/models/sdk_token_response.rb +1 -1
- data/lib/onfido/models/task.rb +1 -1
- data/lib/onfido/models/task_item.rb +23 -2
- data/lib/onfido/models/timeline_file_reference.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_address.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_address_breakdown.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_document.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_document_breakdown.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_personal.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_personal_breakdown.rb +1 -1
- data/lib/onfido/models/us_driving_licence_builder.rb +1 -1
- data/lib/onfido/models/us_driving_licence_report.rb +1 -1
- data/lib/onfido/models/us_driving_licence_shared.rb +1 -1
- data/lib/onfido/models/video_reasons.rb +1 -1
- data/lib/onfido/models/watchlist_aml_breakdown.rb +1 -1
- data/lib/onfido/models/watchlist_aml_breakdown_adverse_media.rb +1 -1
- data/lib/onfido/models/watchlist_aml_breakdown_legal_and_regulatory_warnings.rb +1 -1
- data/lib/onfido/models/watchlist_aml_breakdown_politically_exposed_person.rb +1 -1
- data/lib/onfido/models/watchlist_aml_breakdown_sanction.rb +1 -1
- data/lib/onfido/models/watchlist_aml_properties.rb +1 -1
- data/lib/onfido/models/watchlist_aml_report.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_breakdown.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties.rb +2 -2
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner.rb +311 -0
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_address_inner.rb +281 -0
- data/lib/onfido/models/{consents_builder.rb → watchlist_enhanced_properties_records_inner_alias_inner.rb} +24 -6
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_associate_inner.rb +232 -0
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_attribute_inner.rb +223 -0
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_event_inner.rb +250 -0
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_event_inner_source.rb +241 -0
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_source_inner.rb +241 -0
- data/lib/onfido/models/watchlist_enhanced_report.rb +1 -1
- data/lib/onfido/models/watchlist_monitor.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_builder.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_match.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_matches_list.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_matches_updater.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_response.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_shared.rb +1 -1
- data/lib/onfido/models/watchlist_monitors_list.rb +1 -1
- data/lib/onfido/models/watchlist_peps_only_report.rb +1 -1
- data/lib/onfido/models/watchlist_sanctions_only_report.rb +1 -1
- data/lib/onfido/models/watchlist_standard_breakdown.rb +1 -1
- data/lib/onfido/models/watchlist_standard_properties.rb +1 -1
- data/lib/onfido/models/watchlist_standard_report.rb +1 -1
- data/lib/onfido/models/webhook.rb +1 -1
- data/lib/onfido/models/webhook_builder.rb +1 -1
- data/lib/onfido/models/webhook_create.rb +1 -1
- data/lib/onfido/models/webhook_event.rb +1 -1
- data/lib/onfido/models/webhook_event_object_status.rb +58 -0
- data/lib/onfido/models/webhook_event_payload.rb +3 -4
- data/lib/onfido/models/webhook_event_payload_object.rb +24 -3
- data/lib/onfido/models/webhook_event_payload_resource.rb +380 -0
- data/lib/onfido/models/webhook_event_resource_type.rb +45 -0
- data/lib/onfido/models/webhook_event_type.rb +1 -1
- data/lib/onfido/models/webhook_resend.rb +1 -1
- data/lib/onfido/models/webhook_response.rb +1 -1
- data/lib/onfido/models/webhook_shared.rb +1 -1
- data/lib/onfido/models/webhook_update.rb +1 -1
- data/lib/onfido/models/webhook_updater.rb +1 -1
- data/lib/onfido/models/webhooks_list.rb +1 -1
- data/lib/onfido/models/webhooks_resend_item.rb +1 -1
- data/lib/onfido/models/workflow_run.rb +6 -16
- data/lib/onfido/models/workflow_run_builder.rb +3 -2
- data/lib/onfido/models/{workflow_run_response_error.rb → workflow_run_error.rb} +4 -5
- data/lib/onfido/models/{workflow_run_shared_link.rb → workflow_run_link.rb} +8 -5
- data/lib/onfido/models/workflow_run_request.rb +1 -1
- data/lib/onfido/models/workflow_run_response.rb +4 -15
- data/lib/onfido/models/workflow_run_shared.rb +3 -2
- data/lib/onfido/models/workflow_run_status.rb +47 -0
- data/lib/onfido/version.rb +2 -2
- data/lib/onfido.rb +18 -5
- data/onfido.gemspec +1 -1
- data/spec/{webhook_event_verifier_spec.rb → classic_webhook_event_verifier_spec.rb} +4 -4
- data/spec/integrations/applicant_spec.rb +5 -1
- data/spec/integrations/check_spec.rb +4 -4
- data/spec/integrations/document_spec.rb +1 -1
- data/spec/integrations/qualified_electronic_signature_spec.rb +1 -1
- data/spec/integrations/workflow_run_spec.rb +3 -3
- data/spec/shared_contexts/with_check.rb +1 -0
- data/spec/shared_contexts/with_document.rb +1 -1
- data/spec/studio_webhook_event_verifier_spec.rb +39 -0
- metadata +39 -23
data/lib/onfido/api_client.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,7 +34,7 @@ module Onfido
|
|
34
34
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
35
35
|
def initialize(config = Configuration.default)
|
36
36
|
@config = config
|
37
|
-
@user_agent = "onfido-ruby/
|
37
|
+
@user_agent = "onfido-ruby/4.0.0"
|
38
38
|
@default_headers = {
|
39
39
|
'Content-Type' => 'application/json',
|
40
40
|
'User-Agent' => @user_agent
|
@@ -164,35 +164,41 @@ module Onfido
|
|
164
164
|
request.options.on_data = Proc.new do |chunk, overall_received_bytes|
|
165
165
|
stream << chunk
|
166
166
|
end
|
167
|
+
|
167
168
|
stream
|
168
169
|
end
|
169
170
|
|
170
171
|
def deserialize_file(response, stream)
|
171
|
-
body
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
172
|
+
body = response.body
|
173
|
+
encoding = body.encoding
|
174
|
+
|
175
|
+
# reconstruct content
|
176
|
+
content = stream.join
|
177
|
+
content = content.unpack('m').join if response.headers['Content-Transfer-Encoding'] == 'binary'
|
178
|
+
content = content.force_encoding(encoding)
|
179
|
+
|
180
|
+
# return byte stream
|
181
|
+
return content if @config.return_binary_data == true
|
182
|
+
|
183
|
+
# return file instead of binary data
|
184
|
+
content_disposition = response.headers['Content-Disposition']
|
185
|
+
if content_disposition && content_disposition =~ /filename=/i
|
186
|
+
filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
|
187
|
+
prefix = sanitize_filename(filename)
|
176
188
|
else
|
177
|
-
|
178
|
-
content_disposition = response.headers['Content-Disposition']
|
179
|
-
if content_disposition && content_disposition =~ /filename=/i
|
180
|
-
filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
|
181
|
-
prefix = sanitize_filename(filename)
|
182
|
-
else
|
183
|
-
prefix = 'download-'
|
184
|
-
end
|
185
|
-
prefix = prefix + '-' unless prefix.end_with?('-')
|
186
|
-
encoding = body.encoding
|
187
|
-
tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
|
188
|
-
tempfile.write(stream.join.force_encoding(encoding))
|
189
|
-
tempfile.close
|
190
|
-
config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
191
|
-
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
192
|
-
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
193
|
-
"explicitly with `tempfile.delete`"
|
194
|
-
tempfile
|
189
|
+
prefix = 'download-'
|
195
190
|
end
|
191
|
+
prefix = prefix + '-' unless prefix.end_with?('-')
|
192
|
+
|
193
|
+
tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
|
194
|
+
tempfile.write(content)
|
195
|
+
tempfile.close
|
196
|
+
|
197
|
+
config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
198
|
+
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
199
|
+
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
200
|
+
"explicitly with `tempfile.delete`"
|
201
|
+
tempfile
|
196
202
|
end
|
197
203
|
|
198
204
|
def connection(opts)
|
data/lib/onfido/api_error.rb
CHANGED
data/lib/onfido/configuration.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -87,6 +87,14 @@ module Onfido
|
|
87
87
|
# @return [true, false]
|
88
88
|
attr_accessor :debugging
|
89
89
|
|
90
|
+
# Set this to ignore operation servers for the API client. This is useful when you need to
|
91
|
+
# send requests to a different server than the one specified in the OpenAPI document.
|
92
|
+
# Will default to the base url defined in the spec but can be overridden by setting
|
93
|
+
# `scheme`, `host`, `base_path` directly.
|
94
|
+
# Default to false.
|
95
|
+
# @return [true, false]
|
96
|
+
attr_accessor :ignore_operation_servers
|
97
|
+
|
90
98
|
# Defines the logger used for debugging.
|
91
99
|
# Default to `Rails.logger` (when in Rails) or logging to STDOUT.
|
92
100
|
#
|
@@ -178,6 +186,7 @@ module Onfido
|
|
178
186
|
@return_binary_data = false
|
179
187
|
@params_encoder = nil
|
180
188
|
@debugging = false
|
189
|
+
@ignore_operation_servers = false
|
181
190
|
@inject_format = false
|
182
191
|
@force_ending_format = false
|
183
192
|
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
@@ -214,6 +223,7 @@ module Onfido
|
|
214
223
|
|
215
224
|
# Returns base URL for specified operation based on server settings
|
216
225
|
def base_url(operation = nil)
|
226
|
+
return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if ignore_operation_servers
|
217
227
|
if operation_server_settings.key?(operation) then
|
218
228
|
index = server_operation_index.fetch(operation, server_index)
|
219
229
|
server_url(index.nil? ? 0 : index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -26,6 +26,7 @@ module Onfido
|
|
26
26
|
# The applicant's phone number
|
27
27
|
attr_accessor :phone_number
|
28
28
|
|
29
|
+
# The applicant's consents
|
29
30
|
attr_accessor :consents
|
30
31
|
|
31
32
|
attr_accessor :address
|
@@ -65,7 +66,7 @@ module Onfido
|
|
65
66
|
:'dob' => :'Date',
|
66
67
|
:'id_numbers' => :'Array<IdNumber>',
|
67
68
|
:'phone_number' => :'String',
|
68
|
-
:'consents' => :'
|
69
|
+
:'consents' => :'Array<ApplicantConsentBuilder>',
|
69
70
|
:'address' => :'AddressBuilder',
|
70
71
|
:'location' => :'LocationBuilder',
|
71
72
|
:'first_name' => :'String',
|
@@ -122,7 +123,9 @@ module Onfido
|
|
122
123
|
end
|
123
124
|
|
124
125
|
if attributes.key?(:'consents')
|
125
|
-
|
126
|
+
if (value = attributes[:'consents']).is_a?(Array)
|
127
|
+
self.consents = value
|
128
|
+
end
|
126
129
|
end
|
127
130
|
|
128
131
|
if attributes.key?(:'address')
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,8 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Onfido
|
17
|
-
|
18
|
-
class ConsentItem
|
17
|
+
class ApplicantConsentBuilder
|
19
18
|
attr_accessor :name
|
20
19
|
|
21
20
|
attr_accessor :granted
|
@@ -58,7 +57,7 @@ module Onfido
|
|
58
57
|
# Attribute type mapping.
|
59
58
|
def self.openapi_types
|
60
59
|
{
|
61
|
-
:'name' => :'
|
60
|
+
:'name' => :'ApplicantConsentName',
|
62
61
|
:'granted' => :'Boolean'
|
63
62
|
}
|
64
63
|
end
|
@@ -73,13 +72,13 @@ module Onfido
|
|
73
72
|
# @param [Hash] attributes Model attributes in the form of hash
|
74
73
|
def initialize(attributes = {})
|
75
74
|
if (!attributes.is_a?(Hash))
|
76
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Onfido::
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Onfido::ApplicantConsentBuilder` initialize method"
|
77
76
|
end
|
78
77
|
|
79
78
|
# check to see if the attribute exists and convert string to symbol for hash key
|
80
79
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
81
80
|
if (!self.class.attribute_map.key?(k.to_sym))
|
82
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::ApplicantConsentBuilder`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
83
82
|
end
|
84
83
|
h[k.to_sym] = v
|
85
84
|
}
|
@@ -118,22 +117,10 @@ module Onfido
|
|
118
117
|
def valid?
|
119
118
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
120
119
|
return false if @name.nil?
|
121
|
-
name_validator = EnumAttributeValidator.new('String', ["privacy_notices_read", "ssn_verification", "phone_number_verification", "unknown_default_open_api"])
|
122
|
-
return false unless name_validator.valid?(@name)
|
123
120
|
return false if @granted.nil?
|
124
121
|
true
|
125
122
|
end
|
126
123
|
|
127
|
-
# Custom attribute writer method checking allowed values (enum).
|
128
|
-
# @param [Object] name Object to be assigned
|
129
|
-
def name=(name)
|
130
|
-
validator = EnumAttributeValidator.new('String', ["privacy_notices_read", "ssn_verification", "phone_number_verification", "unknown_default_open_api"])
|
131
|
-
unless validator.valid?(name)
|
132
|
-
fail ArgumentError, "invalid value for \"name\", must be one of #{validator.allowable_values}."
|
133
|
-
end
|
134
|
-
@name = name
|
135
|
-
end
|
136
|
-
|
137
124
|
# Checks equality by comparing each attribute.
|
138
125
|
# @param [Object] Object to be compared
|
139
126
|
def ==(o)
|
@@ -0,0 +1,42 @@
|
|
1
|
+
=begin
|
2
|
+
#Onfido API v3.6
|
3
|
+
|
4
|
+
#The Onfido API (v3.6)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3.6
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Onfido
|
17
|
+
class ApplicantConsentName
|
18
|
+
PRIVACY_NOTICES_READ = "privacy_notices_read".freeze
|
19
|
+
SSN_VERIFICATION = "ssn_verification".freeze
|
20
|
+
PHONE_NUMBER_VERIFICATION = "phone_number_verification".freeze
|
21
|
+
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
22
|
+
|
23
|
+
def self.all_vars
|
24
|
+
@all_vars ||= [PRIVACY_NOTICES_READ, SSN_VERIFICATION, PHONE_NUMBER_VERIFICATION, UNKNOWN_DEFAULT_OPEN_API].freeze
|
25
|
+
end
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
30
|
+
def self.build_from_hash(value)
|
31
|
+
new.build_from_hash(value)
|
32
|
+
end
|
33
|
+
|
34
|
+
# Builds the enum from string
|
35
|
+
# @param [String] The enum value in the form of the string
|
36
|
+
# @return [String] The enum value
|
37
|
+
def build_from_hash(value)
|
38
|
+
return value if ApplicantConsentName.all_vars.include?(value)
|
39
|
+
raise "Invalid ENUM value #{value} for class #ApplicantConsentName"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,6 +15,7 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Onfido
|
17
17
|
class ApplicantRequest
|
18
|
+
# The applicant's consents
|
18
19
|
attr_accessor :consents
|
19
20
|
|
20
21
|
attr_accessor :address
|
@@ -38,7 +39,7 @@ module Onfido
|
|
38
39
|
# Attribute type mapping.
|
39
40
|
def self.openapi_types
|
40
41
|
{
|
41
|
-
:'consents' => :'
|
42
|
+
:'consents' => :'Array<ApplicantConsentBuilder>',
|
42
43
|
:'address' => :'AddressBuilder',
|
43
44
|
:'location' => :'LocationBuilder'
|
44
45
|
}
|
@@ -66,7 +67,9 @@ module Onfido
|
|
66
67
|
}
|
67
68
|
|
68
69
|
if attributes.key?(:'consents')
|
69
|
-
|
70
|
+
if (value = attributes[:'consents']).is_a?(Array)
|
71
|
+
self.consents = value
|
72
|
+
end
|
70
73
|
end
|
71
74
|
|
72
75
|
if attributes.key?(:'address')
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -26,6 +26,7 @@ module Onfido
|
|
26
26
|
# The applicant's phone number
|
27
27
|
attr_accessor :phone_number
|
28
28
|
|
29
|
+
# The applicant's consents
|
29
30
|
attr_accessor :consents
|
30
31
|
|
31
32
|
attr_accessor :address
|
@@ -65,7 +66,7 @@ module Onfido
|
|
65
66
|
:'dob' => :'Date',
|
66
67
|
:'id_numbers' => :'Array<IdNumber>',
|
67
68
|
:'phone_number' => :'String',
|
68
|
-
:'consents' => :'
|
69
|
+
:'consents' => :'Array<ApplicantConsentBuilder>',
|
69
70
|
:'address' => :'AddressBuilder',
|
70
71
|
:'location' => :'LocationBuilder',
|
71
72
|
:'first_name' => :'String',
|
@@ -122,7 +123,9 @@ module Onfido
|
|
122
123
|
end
|
123
124
|
|
124
125
|
if attributes.key?(:'consents')
|
125
|
-
|
126
|
+
if (value = attributes[:'consents']).is_a?(Array)
|
127
|
+
self.consents = value
|
128
|
+
end
|
126
129
|
end
|
127
130
|
|
128
131
|
if attributes.key?(:'address')
|
data/lib/onfido/models/check.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -30,6 +30,8 @@ module Onfido
|
|
30
30
|
# For checks where `applicant_provides_data` is `true`, redirect to this URI when the applicant has submitted their data.
|
31
31
|
attr_accessor :redirect_uri
|
32
32
|
|
33
|
+
attr_accessor :privacy_notices_read_consent_given
|
34
|
+
|
33
35
|
# The unique identifier for the check.
|
34
36
|
attr_accessor :id
|
35
37
|
|
@@ -39,7 +41,6 @@ module Onfido
|
|
39
41
|
# The uri of this resource.
|
40
42
|
attr_accessor :href
|
41
43
|
|
42
|
-
# The current state of the check in the checking process.
|
43
44
|
attr_accessor :status
|
44
45
|
|
45
46
|
# The overall result of the check, based on the results of the constituent reports.
|
@@ -57,6 +58,10 @@ module Onfido
|
|
57
58
|
# Indicates whether the object was created in the sandbox or not.
|
58
59
|
attr_accessor :sandbox
|
59
60
|
|
61
|
+
attr_accessor :paused
|
62
|
+
|
63
|
+
attr_accessor :version
|
64
|
+
|
60
65
|
class EnumAttributeValidator
|
61
66
|
attr_reader :datatype
|
62
67
|
attr_reader :allowable_values
|
@@ -87,6 +92,7 @@ module Onfido
|
|
87
92
|
:'applicant_provides_data' => :'applicant_provides_data',
|
88
93
|
:'tags' => :'tags',
|
89
94
|
:'redirect_uri' => :'redirect_uri',
|
95
|
+
:'privacy_notices_read_consent_given' => :'privacy_notices_read_consent_given',
|
90
96
|
:'id' => :'id',
|
91
97
|
:'created_at' => :'created_at',
|
92
98
|
:'href' => :'href',
|
@@ -95,7 +101,9 @@ module Onfido
|
|
95
101
|
:'form_uri' => :'form_uri',
|
96
102
|
:'results_uri' => :'results_uri',
|
97
103
|
:'report_ids' => :'report_ids',
|
98
|
-
:'sandbox' => :'sandbox'
|
104
|
+
:'sandbox' => :'sandbox',
|
105
|
+
:'paused' => :'paused',
|
106
|
+
:'version' => :'version'
|
99
107
|
}
|
100
108
|
end
|
101
109
|
|
@@ -112,15 +120,18 @@ module Onfido
|
|
112
120
|
:'applicant_provides_data' => :'Boolean',
|
113
121
|
:'tags' => :'Array<String>',
|
114
122
|
:'redirect_uri' => :'String',
|
123
|
+
:'privacy_notices_read_consent_given' => :'Boolean',
|
115
124
|
:'id' => :'String',
|
116
125
|
:'created_at' => :'Time',
|
117
126
|
:'href' => :'String',
|
118
|
-
:'status' => :'
|
127
|
+
:'status' => :'CheckStatus',
|
119
128
|
:'result' => :'String',
|
120
129
|
:'form_uri' => :'String',
|
121
130
|
:'results_uri' => :'String',
|
122
131
|
:'report_ids' => :'Array<String>',
|
123
|
-
:'sandbox' => :'Boolean'
|
132
|
+
:'sandbox' => :'Boolean',
|
133
|
+
:'paused' => :'Boolean',
|
134
|
+
:'version' => :'String'
|
124
135
|
}
|
125
136
|
end
|
126
137
|
|
@@ -179,6 +190,10 @@ module Onfido
|
|
179
190
|
self.redirect_uri = attributes[:'redirect_uri']
|
180
191
|
end
|
181
192
|
|
193
|
+
if attributes.key?(:'privacy_notices_read_consent_given')
|
194
|
+
self.privacy_notices_read_consent_given = attributes[:'privacy_notices_read_consent_given']
|
195
|
+
end
|
196
|
+
|
182
197
|
if attributes.key?(:'id')
|
183
198
|
self.id = attributes[:'id']
|
184
199
|
else
|
@@ -218,6 +233,14 @@ module Onfido
|
|
218
233
|
if attributes.key?(:'sandbox')
|
219
234
|
self.sandbox = attributes[:'sandbox']
|
220
235
|
end
|
236
|
+
|
237
|
+
if attributes.key?(:'paused')
|
238
|
+
self.paused = attributes[:'paused']
|
239
|
+
end
|
240
|
+
|
241
|
+
if attributes.key?(:'version')
|
242
|
+
self.version = attributes[:'version']
|
243
|
+
end
|
221
244
|
end
|
222
245
|
|
223
246
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -242,23 +265,11 @@ module Onfido
|
|
242
265
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
243
266
|
return false if @applicant_id.nil?
|
244
267
|
return false if @id.nil?
|
245
|
-
status_validator = EnumAttributeValidator.new('String', ["in_progress", "awaiting_applicant", "complete", "withdrawn", "paused", "reopened", "unknown_default_open_api"])
|
246
|
-
return false unless status_validator.valid?(@status)
|
247
268
|
result_validator = EnumAttributeValidator.new('String', ["clear", "consider", "unknown_default_open_api"])
|
248
269
|
return false unless result_validator.valid?(@result)
|
249
270
|
true
|
250
271
|
end
|
251
272
|
|
252
|
-
# Custom attribute writer method checking allowed values (enum).
|
253
|
-
# @param [Object] status Object to be assigned
|
254
|
-
def status=(status)
|
255
|
-
validator = EnumAttributeValidator.new('String', ["in_progress", "awaiting_applicant", "complete", "withdrawn", "paused", "reopened", "unknown_default_open_api"])
|
256
|
-
unless validator.valid?(status)
|
257
|
-
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
258
|
-
end
|
259
|
-
@status = status
|
260
|
-
end
|
261
|
-
|
262
273
|
# Custom attribute writer method checking allowed values (enum).
|
263
274
|
# @param [Object] result Object to be assigned
|
264
275
|
def result=(result)
|
@@ -279,6 +290,7 @@ module Onfido
|
|
279
290
|
applicant_provides_data == o.applicant_provides_data &&
|
280
291
|
tags == o.tags &&
|
281
292
|
redirect_uri == o.redirect_uri &&
|
293
|
+
privacy_notices_read_consent_given == o.privacy_notices_read_consent_given &&
|
282
294
|
id == o.id &&
|
283
295
|
created_at == o.created_at &&
|
284
296
|
href == o.href &&
|
@@ -287,7 +299,9 @@ module Onfido
|
|
287
299
|
form_uri == o.form_uri &&
|
288
300
|
results_uri == o.results_uri &&
|
289
301
|
report_ids == o.report_ids &&
|
290
|
-
sandbox == o.sandbox
|
302
|
+
sandbox == o.sandbox &&
|
303
|
+
paused == o.paused &&
|
304
|
+
version == o.version
|
291
305
|
end
|
292
306
|
|
293
307
|
# @see the `==` method
|
@@ -299,7 +313,7 @@ module Onfido
|
|
299
313
|
# Calculates hash code according to all attributes.
|
300
314
|
# @return [Integer] Hash code
|
301
315
|
def hash
|
302
|
-
[webhook_ids, applicant_id, applicant_provides_data, tags, redirect_uri, id, created_at, href, status, result, form_uri, results_uri, report_ids, sandbox].hash
|
316
|
+
[webhook_ids, applicant_id, applicant_provides_data, tags, redirect_uri, privacy_notices_read_consent_given, id, created_at, href, status, result, form_uri, results_uri, report_ids, sandbox, paused, version].hash
|
303
317
|
end
|
304
318
|
|
305
319
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -30,6 +30,8 @@ module Onfido
|
|
30
30
|
# For checks where `applicant_provides_data` is `true`, redirect to this URI when the applicant has submitted their data.
|
31
31
|
attr_accessor :redirect_uri
|
32
32
|
|
33
|
+
attr_accessor :privacy_notices_read_consent_given
|
34
|
+
|
33
35
|
# An array of report names (strings).
|
34
36
|
attr_accessor :report_names
|
35
37
|
|
@@ -58,6 +60,7 @@ module Onfido
|
|
58
60
|
:'applicant_provides_data' => :'applicant_provides_data',
|
59
61
|
:'tags' => :'tags',
|
60
62
|
:'redirect_uri' => :'redirect_uri',
|
63
|
+
:'privacy_notices_read_consent_given' => :'privacy_notices_read_consent_given',
|
61
64
|
:'report_names' => :'report_names',
|
62
65
|
:'document_ids' => :'document_ids',
|
63
66
|
:'asynchronous' => :'asynchronous',
|
@@ -81,6 +84,7 @@ module Onfido
|
|
81
84
|
:'applicant_provides_data' => :'Boolean',
|
82
85
|
:'tags' => :'Array<String>',
|
83
86
|
:'redirect_uri' => :'String',
|
87
|
+
:'privacy_notices_read_consent_given' => :'Boolean',
|
84
88
|
:'report_names' => :'Array<ReportName>',
|
85
89
|
:'document_ids' => :'Array<String>',
|
86
90
|
:'asynchronous' => :'Boolean',
|
@@ -148,6 +152,10 @@ module Onfido
|
|
148
152
|
self.redirect_uri = attributes[:'redirect_uri']
|
149
153
|
end
|
150
154
|
|
155
|
+
if attributes.key?(:'privacy_notices_read_consent_given')
|
156
|
+
self.privacy_notices_read_consent_given = attributes[:'privacy_notices_read_consent_given']
|
157
|
+
end
|
158
|
+
|
151
159
|
if attributes.key?(:'report_names')
|
152
160
|
if (value = attributes[:'report_names']).is_a?(Array)
|
153
161
|
self.report_names = value
|
@@ -222,6 +230,7 @@ module Onfido
|
|
222
230
|
applicant_provides_data == o.applicant_provides_data &&
|
223
231
|
tags == o.tags &&
|
224
232
|
redirect_uri == o.redirect_uri &&
|
233
|
+
privacy_notices_read_consent_given == o.privacy_notices_read_consent_given &&
|
225
234
|
report_names == o.report_names &&
|
226
235
|
document_ids == o.document_ids &&
|
227
236
|
asynchronous == o.asynchronous &&
|
@@ -240,7 +249,7 @@ module Onfido
|
|
240
249
|
# Calculates hash code according to all attributes.
|
241
250
|
# @return [Integer] Hash code
|
242
251
|
def hash
|
243
|
-
[webhook_ids, applicant_id, applicant_provides_data, tags, redirect_uri, report_names, document_ids, asynchronous, suppress_form_emails, sub_result, consider, us_driving_licence].hash
|
252
|
+
[webhook_ids, applicant_id, applicant_provides_data, tags, redirect_uri, privacy_notices_read_consent_given, report_names, document_ids, asynchronous, suppress_form_emails, sub_result, consider, us_driving_licence].hash
|
244
253
|
end
|
245
254
|
|
246
255
|
# Builds the object from hash
|