onfido 5.6.0 → 6.3.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 +39 -0
- data/MIGRATION.md +28 -0
- data/README.md +18 -2
- data/lib/onfido/api/default_api.rb +1191 -94
- data/lib/onfido/api_client.rb +7 -3
- data/lib/onfido/api_error.rb +1 -1
- data/lib/onfido/configuration.rb +89 -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/biometric_token.rb +265 -0
- data/lib/onfido/models/biometric_token_data.rb +317 -0
- data/lib/onfido/models/biometric_token_response.rb +237 -0
- data/lib/onfido/models/biometric_token_updater.rb +262 -0
- data/lib/onfido/models/biometric_tokens_response.rb +239 -0
- 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} +33 -7
- 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 +4 -2
- 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/invalidated_biometric_token_response.rb +237 -0
- data/lib/onfido/models/invalidated_biometric_token_summary.rb +238 -0
- data/lib/onfido/models/invalidated_biometric_token_summary_deleted_items.rb +239 -0
- data/lib/onfido/models/invalidated_biometric_tokens_response.rb +237 -0
- 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/passkeys_list.rb +239 -0
- 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/updated_biometric_token_response.rb +237 -0
- 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_mesh_added_mentions.rb +247 -0
- data/lib/onfido/models/watchlist_mesh_alert_risk.rb +323 -0
- data/lib/onfido/models/watchlist_mesh_alert_risk1.rb +316 -0
- data/lib/onfido/models/watchlist_mesh_associate.rb +231 -0
- data/lib/onfido/models/watchlist_mesh_date_value.rb +231 -0
- data/lib/onfido/models/{device_intelligence_breakdown_properties.rb → watchlist_mesh_field.rb} +34 -25
- data/lib/onfido/models/watchlist_mesh_image.rb +231 -0
- data/lib/onfido/models/watchlist_mesh_lists.rb +309 -0
- data/lib/onfido/models/watchlist_mesh_media.rb +261 -0
- data/lib/onfido/models/watchlist_mesh_name.rb +231 -0
- data/lib/onfido/models/watchlist_mesh_pep.rb +369 -0
- data/lib/onfido/models/watchlist_mesh_person.rb +283 -0
- data/lib/onfido/models/watchlist_mesh_profile.rb +273 -0
- data/lib/onfido/models/watchlist_mesh_risk_decision.rb +43 -0
- data/lib/onfido/models/watchlist_mesh_risk_detail.rb +255 -0
- data/lib/onfido/models/watchlist_mesh_risk_indicators.rb +271 -0
- data/lib/onfido/models/watchlist_mesh_sanctions.rb +309 -0
- 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 +31 -5
- data/lib/onfido/models/webhook_builder.rb +31 -5
- data/lib/onfido/models/webhook_create.rb +31 -5
- 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 +31 -5
- data/lib/onfido/models/webhook_shared.rb +10 -4
- data/lib/onfido/models/webhook_update.rb +21 -5
- data/lib/onfido/models/webhook_updater.rb +21 -5
- 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 +40 -6
- data/onfido.gemspec +1 -1
- data/spec/integrations/biometric_token_spec.rb +122 -0
- data/spec/integrations/document_spec.rb +8 -1
- data/spec/integrations/media/nfc_data.json +11768 -0
- 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/watchlist_alert_risk_spec.rb +66 -0
- data/spec/integrations/workflow_run_spec.rb +8 -4
- data/spec/shared_contexts/with_document.rb +0 -1
- data/spec/shared_contexts/with_onfido.rb +14 -2
- data/spec/shared_contexts/with_signing_document.rb +15 -0
- data/spec/spec_helper.rb +7 -8
- metadata +71 -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.16.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -35,7 +35,7 @@ module Onfido
|
|
|
35
35
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
|
36
36
|
def initialize(config = Configuration.default)
|
|
37
37
|
@config = config
|
|
38
|
-
@user_agent = "onfido-ruby/
|
|
38
|
+
@user_agent = "onfido-ruby/6.3.0"
|
|
39
39
|
@default_headers = {
|
|
40
40
|
'Content-Type' => 'application/json',
|
|
41
41
|
'User-Agent' => @user_agent
|
|
@@ -142,7 +142,11 @@ module Onfido
|
|
|
142
142
|
form_params.each do |key, value|
|
|
143
143
|
case value
|
|
144
144
|
when ::File, ::Tempfile
|
|
145
|
-
|
|
145
|
+
mime = Marcel::MimeType.for(Pathname.new(value.path))
|
|
146
|
+
if mime == 'application/octet-stream'
|
|
147
|
+
mime = Marcel::MimeType.for(extension: File.extname(value.path).delete_prefix('.')) || mime
|
|
148
|
+
end
|
|
149
|
+
data[key] = Faraday::FilePart.new(value.path, mime)
|
|
146
150
|
when ::Array, nil
|
|
147
151
|
# let Faraday handle Array and nil parameters
|
|
148
152
|
data[key] = value
|
data/lib/onfido/api_error.rb
CHANGED
data/lib/onfido/configuration.rb
CHANGED
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
10
|
-
|
|
9
|
+
Generator version: 7.16.0
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
12
|
require 'faraday/follow_redirects'
|
|
13
|
+
require 'uri'
|
|
14
|
+
require 'json'
|
|
14
15
|
|
|
15
16
|
module Onfido
|
|
16
17
|
class Configuration
|
|
@@ -75,6 +76,14 @@ module Onfido
|
|
|
75
76
|
# @return [Proc]
|
|
76
77
|
attr_accessor :access_token_getter
|
|
77
78
|
|
|
79
|
+
# Defines the OAuth2 client ID for client credentials flow.
|
|
80
|
+
# @return [String]
|
|
81
|
+
attr_accessor :oauth_client_id
|
|
82
|
+
|
|
83
|
+
# Defines the OAuth2 client secret for client credentials flow.
|
|
84
|
+
# @return [String]
|
|
85
|
+
attr_accessor :oauth_client_secret
|
|
86
|
+
|
|
78
87
|
# Set this to return data as binary instead of downloading a temp file. When enabled (set to true)
|
|
79
88
|
# HTTP responses with return type `File` will be returned as a stream of binary data.
|
|
80
89
|
# Default to false.
|
|
@@ -189,6 +198,7 @@ module Onfido
|
|
|
189
198
|
@ignore_operation_servers = false
|
|
190
199
|
@inject_format = false
|
|
191
200
|
@force_ending_format = false
|
|
201
|
+
@oauth_mutex = Mutex.new
|
|
192
202
|
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
|
193
203
|
|
|
194
204
|
use( Faraday::FollowRedirects::Middleware )
|
|
@@ -233,6 +243,7 @@ module Onfido
|
|
|
233
243
|
end
|
|
234
244
|
|
|
235
245
|
def api_token=(api_token)
|
|
246
|
+
raise ArgumentError, 'Cannot set API token when OAuth credentials are already configured' if @oauth_client_id
|
|
236
247
|
@api_key = {'Token' => "Token token=#{api_token}"}
|
|
237
248
|
end
|
|
238
249
|
|
|
@@ -249,6 +260,64 @@ module Onfido
|
|
|
249
260
|
@timeout = timeout
|
|
250
261
|
end
|
|
251
262
|
|
|
263
|
+
# Sets OAuth2 client credentials for authentication.
|
|
264
|
+
# The client will automatically exchange credentials for an access token
|
|
265
|
+
# and refresh it when expired. This is mutually exclusive with api_token.
|
|
266
|
+
#
|
|
267
|
+
# @param client_id [String] OAuth2 client ID
|
|
268
|
+
# @param client_secret [String] OAuth2 client secret
|
|
269
|
+
def set_oauth_credentials(client_id, client_secret)
|
|
270
|
+
raise ArgumentError, 'OAuth client ID must not be nil or empty' if client_id.nil? || client_id.empty?
|
|
271
|
+
raise ArgumentError, 'OAuth client secret must not be nil or empty' if client_secret.nil? || client_secret.empty?
|
|
272
|
+
raise ArgumentError, 'Cannot set OAuth credentials when API token is already configured' if @api_key&.key?('Token')
|
|
273
|
+
|
|
274
|
+
@oauth_client_id = client_id
|
|
275
|
+
@oauth_client_secret = client_secret
|
|
276
|
+
@oauth_access_token = nil
|
|
277
|
+
@oauth_token_expires_at = nil
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
private
|
|
281
|
+
|
|
282
|
+
def fetch_oauth_access_token
|
|
283
|
+
@oauth_mutex.synchronize do
|
|
284
|
+
return @oauth_access_token if @oauth_access_token && @oauth_token_expires_at && Time.now.to_f < @oauth_token_expires_at
|
|
285
|
+
|
|
286
|
+
conn = Faraday.new(
|
|
287
|
+
url: base_url,
|
|
288
|
+
ssl: { ca_file: ssl_ca_file, verify: ssl_verify, verify_mode: ssl_verify_mode,
|
|
289
|
+
client_cert: ssl_client_cert, client_key: ssl_client_key },
|
|
290
|
+
proxy: proxy
|
|
291
|
+
) do |f|
|
|
292
|
+
configure_middleware(f)
|
|
293
|
+
f.adapter(Faraday.default_adapter)
|
|
294
|
+
configure_connection(f)
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
response = conn.post('oauth/token') do |req|
|
|
298
|
+
req.headers['Content-Type'] = 'application/x-www-form-urlencoded'
|
|
299
|
+
req.options.timeout = timeout
|
|
300
|
+
req.body = URI.encode_www_form(
|
|
301
|
+
'client_id' => @oauth_client_id,
|
|
302
|
+
'client_secret' => @oauth_client_secret
|
|
303
|
+
)
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
unless response.success?
|
|
307
|
+
raise "OAuth token exchange failed with status #{response.status}: #{response.body}"
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
data = JSON.parse(response.body)
|
|
311
|
+
@oauth_access_token = data['access_token']
|
|
312
|
+
expires_in = data['expires_in'].to_i
|
|
313
|
+
@oauth_token_expires_at = Time.now.to_f + (expires_in - 30)
|
|
314
|
+
|
|
315
|
+
@oauth_access_token
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
public
|
|
320
|
+
|
|
252
321
|
# Gets API key (with prefix if set).
|
|
253
322
|
# @param [String] param_name the parameter name of API key auth
|
|
254
323
|
def api_key_with_prefix(param_name, param_alias = nil)
|
|
@@ -274,6 +343,17 @@ module Onfido
|
|
|
274
343
|
|
|
275
344
|
# Returns Auth Settings hash for api client.
|
|
276
345
|
def auth_settings
|
|
346
|
+
if @oauth_client_id && !@oauth_client_id.empty?
|
|
347
|
+
return {
|
|
348
|
+
'Token' =>
|
|
349
|
+
{
|
|
350
|
+
type: 'bearer',
|
|
351
|
+
in: 'header',
|
|
352
|
+
key: 'Authorization',
|
|
353
|
+
value: "Bearer #{fetch_oauth_access_token}"
|
|
354
|
+
},
|
|
355
|
+
}
|
|
356
|
+
end
|
|
277
357
|
{
|
|
278
358
|
'Token' =>
|
|
279
359
|
{
|
|
@@ -282,6 +362,13 @@ module Onfido
|
|
|
282
362
|
key: 'Authorization',
|
|
283
363
|
value: api_key_with_prefix('Token')
|
|
284
364
|
},
|
|
365
|
+
'OAuth2ClientCredentials' =>
|
|
366
|
+
{
|
|
367
|
+
type: 'oauth2',
|
|
368
|
+
in: 'header',
|
|
369
|
+
key: 'Authorization',
|
|
370
|
+
value: "Bearer #{access_token_with_refresh}"
|
|
371
|
+
},
|
|
285
372
|
}
|
|
286
373
|
end
|
|
287
374
|
|
|
@@ -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
|
|
|
@@ -91,9 +91,14 @@ module Onfido
|
|
|
91
91
|
}
|
|
92
92
|
end
|
|
93
93
|
|
|
94
|
+
# Returns attribute mapping this model knows about
|
|
95
|
+
def self.acceptable_attribute_map
|
|
96
|
+
attribute_map
|
|
97
|
+
end
|
|
98
|
+
|
|
94
99
|
# Returns all the JSON keys this model knows about
|
|
95
100
|
def self.acceptable_attributes
|
|
96
|
-
|
|
101
|
+
acceptable_attribute_map.values
|
|
97
102
|
end
|
|
98
103
|
|
|
99
104
|
# Attribute type mapping.
|
|
@@ -138,9 +143,10 @@ module Onfido
|
|
|
138
143
|
end
|
|
139
144
|
|
|
140
145
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
146
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
141
147
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
142
|
-
if (!
|
|
143
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::Address`. Please check the name to make sure it's valid. List of attributes: " +
|
|
148
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
149
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::Address`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
144
150
|
end
|
|
145
151
|
h[k.to_sym] = v
|
|
146
152
|
}
|
|
@@ -241,6 +247,26 @@ module Onfido
|
|
|
241
247
|
true
|
|
242
248
|
end
|
|
243
249
|
|
|
250
|
+
# Custom attribute writer method with validation
|
|
251
|
+
# @param [Object] postcode Value to be assigned
|
|
252
|
+
def postcode=(postcode)
|
|
253
|
+
if postcode.nil?
|
|
254
|
+
fail ArgumentError, 'postcode cannot be nil'
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
@postcode = postcode
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Custom attribute writer method with validation
|
|
261
|
+
# @param [Object] country Value to be assigned
|
|
262
|
+
def country=(country)
|
|
263
|
+
if country.nil?
|
|
264
|
+
fail ArgumentError, 'country cannot be nil'
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
@country = country
|
|
268
|
+
end
|
|
269
|
+
|
|
244
270
|
# Custom attribute writer method with validation
|
|
245
271
|
# @param [Object] line1 Value to be assigned
|
|
246
272
|
def line1=(line1)
|
|
@@ -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
|
|
|
@@ -91,9 +91,14 @@ module Onfido
|
|
|
91
91
|
}
|
|
92
92
|
end
|
|
93
93
|
|
|
94
|
+
# Returns attribute mapping this model knows about
|
|
95
|
+
def self.acceptable_attribute_map
|
|
96
|
+
attribute_map
|
|
97
|
+
end
|
|
98
|
+
|
|
94
99
|
# Returns all the JSON keys this model knows about
|
|
95
100
|
def self.acceptable_attributes
|
|
96
|
-
|
|
101
|
+
acceptable_attribute_map.values
|
|
97
102
|
end
|
|
98
103
|
|
|
99
104
|
# Attribute type mapping.
|
|
@@ -138,9 +143,10 @@ module Onfido
|
|
|
138
143
|
end
|
|
139
144
|
|
|
140
145
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
146
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
141
147
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
142
|
-
if (!
|
|
143
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::AddressBuilder`. Please check the name to make sure it's valid. List of attributes: " +
|
|
148
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
149
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::AddressBuilder`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
144
150
|
end
|
|
145
151
|
h[k.to_sym] = v
|
|
146
152
|
}
|
|
@@ -241,6 +247,26 @@ module Onfido
|
|
|
241
247
|
true
|
|
242
248
|
end
|
|
243
249
|
|
|
250
|
+
# Custom attribute writer method with validation
|
|
251
|
+
# @param [Object] postcode Value to be assigned
|
|
252
|
+
def postcode=(postcode)
|
|
253
|
+
if postcode.nil?
|
|
254
|
+
fail ArgumentError, 'postcode cannot be nil'
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
@postcode = postcode
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Custom attribute writer method with validation
|
|
261
|
+
# @param [Object] country Value to be assigned
|
|
262
|
+
def country=(country)
|
|
263
|
+
if country.nil?
|
|
264
|
+
fail ArgumentError, 'country cannot be nil'
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
@country = country
|
|
268
|
+
end
|
|
269
|
+
|
|
244
270
|
# Custom attribute writer method with validation
|
|
245
271
|
# @param [Object] line1 Value to be assigned
|
|
246
272
|
def line1=(line1)
|
|
@@ -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
|
|
|
@@ -91,9 +91,14 @@ module Onfido
|
|
|
91
91
|
}
|
|
92
92
|
end
|
|
93
93
|
|
|
94
|
+
# Returns attribute mapping this model knows about
|
|
95
|
+
def self.acceptable_attribute_map
|
|
96
|
+
attribute_map
|
|
97
|
+
end
|
|
98
|
+
|
|
94
99
|
# Returns all the JSON keys this model knows about
|
|
95
100
|
def self.acceptable_attributes
|
|
96
|
-
|
|
101
|
+
acceptable_attribute_map.values
|
|
97
102
|
end
|
|
98
103
|
|
|
99
104
|
# Attribute type mapping.
|
|
@@ -131,9 +136,10 @@ module Onfido
|
|
|
131
136
|
end
|
|
132
137
|
|
|
133
138
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
139
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
134
140
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
135
|
-
if (!
|
|
136
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::AddressShared`. Please check the name to make sure it's valid. List of attributes: " +
|
|
141
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
142
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::AddressShared`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
137
143
|
end
|
|
138
144
|
h[k.to_sym] = v
|
|
139
145
|
}
|
|
@@ -234,6 +240,26 @@ module Onfido
|
|
|
234
240
|
true
|
|
235
241
|
end
|
|
236
242
|
|
|
243
|
+
# Custom attribute writer method with validation
|
|
244
|
+
# @param [Object] postcode Value to be assigned
|
|
245
|
+
def postcode=(postcode)
|
|
246
|
+
if postcode.nil?
|
|
247
|
+
fail ArgumentError, 'postcode cannot be nil'
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
@postcode = postcode
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Custom attribute writer method with validation
|
|
254
|
+
# @param [Object] country Value to be assigned
|
|
255
|
+
def country=(country)
|
|
256
|
+
if country.nil?
|
|
257
|
+
fail ArgumentError, 'country cannot be nil'
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
@country = country
|
|
261
|
+
end
|
|
262
|
+
|
|
237
263
|
# Custom attribute writer method with validation
|
|
238
264
|
# @param [Object] line1 Value to be assigned
|
|
239
265
|
def line1=(line1)
|
|
@@ -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
|
|
|
@@ -24,9 +24,14 @@ module Onfido
|
|
|
24
24
|
}
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
+
# Returns attribute mapping this model knows about
|
|
28
|
+
def self.acceptable_attribute_map
|
|
29
|
+
attribute_map
|
|
30
|
+
end
|
|
31
|
+
|
|
27
32
|
# Returns all the JSON keys this model knows about
|
|
28
33
|
def self.acceptable_attributes
|
|
29
|
-
|
|
34
|
+
acceptable_attribute_map.values
|
|
30
35
|
end
|
|
31
36
|
|
|
32
37
|
# Attribute type mapping.
|
|
@@ -50,9 +55,10 @@ module Onfido
|
|
|
50
55
|
end
|
|
51
56
|
|
|
52
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
53
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
54
|
-
if (!
|
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::AddressesList`. Please check the name to make sure it's valid. List of attributes: " +
|
|
60
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::AddressesList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
56
62
|
end
|
|
57
63
|
h[k.to_sym] = v
|
|
58
64
|
}
|
|
@@ -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
|
|
|
@@ -69,9 +69,14 @@ module Onfido
|
|
|
69
69
|
}
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
# Returns attribute mapping this model knows about
|
|
73
|
+
def self.acceptable_attribute_map
|
|
74
|
+
attribute_map
|
|
75
|
+
end
|
|
76
|
+
|
|
72
77
|
# Returns all the JSON keys this model knows about
|
|
73
78
|
def self.acceptable_attributes
|
|
74
|
-
|
|
79
|
+
acceptable_attribute_map.values
|
|
75
80
|
end
|
|
76
81
|
|
|
77
82
|
# Attribute type mapping.
|
|
@@ -115,9 +120,10 @@ module Onfido
|
|
|
115
120
|
end
|
|
116
121
|
|
|
117
122
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
123
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
118
124
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
119
|
-
if (!
|
|
120
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::Applicant`. Please check the name to make sure it's valid. List of attributes: " +
|
|
125
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
126
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::Applicant`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
121
127
|
end
|
|
122
128
|
h[k.to_sym] = v
|
|
123
129
|
}
|
|
@@ -241,6 +247,16 @@ module Onfido
|
|
|
241
247
|
@last_name = last_name
|
|
242
248
|
end
|
|
243
249
|
|
|
250
|
+
# Custom attribute writer method with validation
|
|
251
|
+
# @param [Object] id Value to be assigned
|
|
252
|
+
def id=(id)
|
|
253
|
+
if id.nil?
|
|
254
|
+
fail ArgumentError, 'id cannot be nil'
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
@id = id
|
|
258
|
+
end
|
|
259
|
+
|
|
244
260
|
# Checks equality by comparing each attribute.
|
|
245
261
|
# @param [Object] Object to be compared
|
|
246
262
|
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
|
|
|
@@ -54,9 +54,14 @@ module Onfido
|
|
|
54
54
|
}
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
+
# Returns attribute mapping this model knows about
|
|
58
|
+
def self.acceptable_attribute_map
|
|
59
|
+
attribute_map
|
|
60
|
+
end
|
|
61
|
+
|
|
57
62
|
# Returns all the JSON keys this model knows about
|
|
58
63
|
def self.acceptable_attributes
|
|
59
|
-
|
|
64
|
+
acceptable_attribute_map.values
|
|
60
65
|
end
|
|
61
66
|
|
|
62
67
|
# 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::ApplicantBuilder`. 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::ApplicantBuilder`. 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
|
|
|
@@ -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.
|
|
@@ -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::ApplicantConsent`. 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::ApplicantConsent`. 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
|
}
|
|
@@ -133,6 +139,26 @@ module Onfido
|
|
|
133
139
|
true
|
|
134
140
|
end
|
|
135
141
|
|
|
142
|
+
# Custom attribute writer method with validation
|
|
143
|
+
# @param [Object] name Value to be assigned
|
|
144
|
+
def name=(name)
|
|
145
|
+
if name.nil?
|
|
146
|
+
fail ArgumentError, 'name cannot be nil'
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
@name = name
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Custom attribute writer method with validation
|
|
153
|
+
# @param [Object] granted Value to be assigned
|
|
154
|
+
def granted=(granted)
|
|
155
|
+
if granted.nil?
|
|
156
|
+
fail ArgumentError, 'granted cannot be nil'
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
@granted = granted
|
|
160
|
+
end
|
|
161
|
+
|
|
136
162
|
# Checks equality by comparing each attribute.
|
|
137
163
|
# @param [Object] Object to be compared
|
|
138
164
|
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.
|
|
@@ -76,9 +81,10 @@ module Onfido
|
|
|
76
81
|
end
|
|
77
82
|
|
|
78
83
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
79
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
80
|
-
if (!
|
|
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: " +
|
|
86
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::ApplicantConsentBuilder`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
82
88
|
end
|
|
83
89
|
h[k.to_sym] = v
|
|
84
90
|
}
|
|
@@ -121,6 +127,26 @@ module Onfido
|
|
|
121
127
|
true
|
|
122
128
|
end
|
|
123
129
|
|
|
130
|
+
# Custom attribute writer method with validation
|
|
131
|
+
# @param [Object] name Value to be assigned
|
|
132
|
+
def name=(name)
|
|
133
|
+
if name.nil?
|
|
134
|
+
fail ArgumentError, 'name cannot be nil'
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
@name = name
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Custom attribute writer method with validation
|
|
141
|
+
# @param [Object] granted Value to be assigned
|
|
142
|
+
def granted=(granted)
|
|
143
|
+
if granted.nil?
|
|
144
|
+
fail ArgumentError, 'granted cannot be nil'
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
@granted = granted
|
|
148
|
+
end
|
|
149
|
+
|
|
124
150
|
# Checks equality by comparing each attribute.
|
|
125
151
|
# @param [Object] Object to be compared
|
|
126
152
|
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
|
|
|
@@ -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::ApplicantCreate`. 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::ApplicantCreate`. 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
|
}
|