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
|
@@ -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
|
|
|
@@ -57,9 +57,14 @@ module Onfido
|
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
# Returns attribute mapping this model knows about
|
|
61
|
+
def self.acceptable_attribute_map
|
|
62
|
+
attribute_map
|
|
63
|
+
end
|
|
64
|
+
|
|
60
65
|
# Returns all the JSON keys this model knows about
|
|
61
66
|
def self.acceptable_attributes
|
|
62
|
-
|
|
67
|
+
acceptable_attribute_map.values
|
|
63
68
|
end
|
|
64
69
|
|
|
65
70
|
# Attribute type mapping.
|
|
@@ -86,9 +91,10 @@ module Onfido
|
|
|
86
91
|
end
|
|
87
92
|
|
|
88
93
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
94
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
89
95
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
90
|
-
if (!
|
|
91
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WebhookEventPayload`. Please check the name to make sure it's valid. List of attributes: " +
|
|
96
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
97
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WebhookEventPayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
92
98
|
end
|
|
93
99
|
h[k.to_sym] = v
|
|
94
100
|
}
|
|
@@ -132,6 +138,16 @@ module Onfido
|
|
|
132
138
|
true
|
|
133
139
|
end
|
|
134
140
|
|
|
141
|
+
# Custom attribute writer method with validation
|
|
142
|
+
# @param [Object] resource_type Value to be assigned
|
|
143
|
+
def resource_type=(resource_type)
|
|
144
|
+
if resource_type.nil?
|
|
145
|
+
fail ArgumentError, 'resource_type cannot be nil'
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
@resource_type = resource_type
|
|
149
|
+
end
|
|
150
|
+
|
|
135
151
|
# Checks equality by comparing each attribute.
|
|
136
152
|
# @param [Object] Object to be compared
|
|
137
153
|
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
|
|
|
@@ -63,9 +63,14 @@ module Onfido
|
|
|
63
63
|
}
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
+
# Returns attribute mapping this model knows about
|
|
67
|
+
def self.acceptable_attribute_map
|
|
68
|
+
attribute_map
|
|
69
|
+
end
|
|
70
|
+
|
|
66
71
|
# Returns all the JSON keys this model knows about
|
|
67
72
|
def self.acceptable_attributes
|
|
68
|
-
|
|
73
|
+
acceptable_attribute_map.values
|
|
69
74
|
end
|
|
70
75
|
|
|
71
76
|
# Attribute type mapping.
|
|
@@ -93,9 +98,10 @@ module Onfido
|
|
|
93
98
|
end
|
|
94
99
|
|
|
95
100
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
101
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
96
102
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
97
|
-
if (!
|
|
98
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WebhookEventPayloadObject`. Please check the name to make sure it's valid. List of attributes: " +
|
|
103
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
104
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WebhookEventPayloadObject`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
99
105
|
end
|
|
100
106
|
h[k.to_sym] = v
|
|
101
107
|
}
|
|
@@ -143,6 +149,16 @@ module Onfido
|
|
|
143
149
|
true
|
|
144
150
|
end
|
|
145
151
|
|
|
152
|
+
# Custom attribute writer method with validation
|
|
153
|
+
# @param [Object] id Value to be assigned
|
|
154
|
+
def id=(id)
|
|
155
|
+
if id.nil?
|
|
156
|
+
fail ArgumentError, 'id cannot be nil'
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
@id = id
|
|
160
|
+
end
|
|
161
|
+
|
|
146
162
|
# Checks equality by comparing each attribute.
|
|
147
163
|
# @param [Object] Object to be compared
|
|
148
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
|
|
|
@@ -22,6 +22,8 @@ module Onfido
|
|
|
22
22
|
# The unique identifier for the Applicant.
|
|
23
23
|
attr_accessor :applicant_id
|
|
24
24
|
|
|
25
|
+
attr_accessor :status
|
|
26
|
+
|
|
25
27
|
# The date and time when the resource was created.
|
|
26
28
|
attr_accessor :created_at
|
|
27
29
|
|
|
@@ -54,6 +56,9 @@ module Onfido
|
|
|
54
56
|
# The reasons the Workflow Run outcome was reached. Configurable when creating the Workflow Version.
|
|
55
57
|
attr_accessor :reasons
|
|
56
58
|
|
|
59
|
+
# A list of tags associated with the Workflow Run.
|
|
60
|
+
attr_accessor :tags
|
|
61
|
+
|
|
57
62
|
# Object for the configuration of the Workflow Run link.
|
|
58
63
|
attr_accessor :link
|
|
59
64
|
|
|
@@ -66,11 +71,34 @@ module Onfido
|
|
|
66
71
|
# Pre-signed URL to download the timeline file for the Workflow Run.
|
|
67
72
|
attr_accessor :timeline_file_download_url
|
|
68
73
|
|
|
74
|
+
class EnumAttributeValidator
|
|
75
|
+
attr_reader :datatype
|
|
76
|
+
attr_reader :allowable_values
|
|
77
|
+
|
|
78
|
+
def initialize(datatype, allowable_values)
|
|
79
|
+
@allowable_values = allowable_values.map do |value|
|
|
80
|
+
case datatype.to_s
|
|
81
|
+
when /Integer/i
|
|
82
|
+
value.to_i
|
|
83
|
+
when /Float/i
|
|
84
|
+
value.to_f
|
|
85
|
+
else
|
|
86
|
+
value
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
def valid?(value)
|
|
92
|
+
!value || allowable_values.include?(value)
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
69
96
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
70
97
|
def self.attribute_map
|
|
71
98
|
{
|
|
72
99
|
:'id' => :'id',
|
|
73
100
|
:'applicant_id' => :'applicant_id',
|
|
101
|
+
:'status' => :'status',
|
|
74
102
|
:'created_at' => :'created_at',
|
|
75
103
|
:'updated_at' => :'updated_at',
|
|
76
104
|
:'dashboard_url' => :'dashboard_url',
|
|
@@ -82,6 +110,7 @@ module Onfido
|
|
|
82
110
|
:'input' => :'input',
|
|
83
111
|
:'output' => :'output',
|
|
84
112
|
:'reasons' => :'reasons',
|
|
113
|
+
:'tags' => :'tags',
|
|
85
114
|
:'link' => :'link',
|
|
86
115
|
:'error' => :'error',
|
|
87
116
|
:'customer_user_id' => :'customer_user_id',
|
|
@@ -89,9 +118,14 @@ module Onfido
|
|
|
89
118
|
}
|
|
90
119
|
end
|
|
91
120
|
|
|
121
|
+
# Returns attribute mapping this model knows about
|
|
122
|
+
def self.acceptable_attribute_map
|
|
123
|
+
attribute_map
|
|
124
|
+
end
|
|
125
|
+
|
|
92
126
|
# Returns all the JSON keys this model knows about
|
|
93
127
|
def self.acceptable_attributes
|
|
94
|
-
|
|
128
|
+
acceptable_attribute_map.values
|
|
95
129
|
end
|
|
96
130
|
|
|
97
131
|
# Attribute type mapping.
|
|
@@ -99,6 +133,7 @@ module Onfido
|
|
|
99
133
|
{
|
|
100
134
|
:'id' => :'String',
|
|
101
135
|
:'applicant_id' => :'String',
|
|
136
|
+
:'status' => :'WebhookEventResourceStatus',
|
|
102
137
|
:'created_at' => :'Time',
|
|
103
138
|
:'updated_at' => :'Time',
|
|
104
139
|
:'dashboard_url' => :'String',
|
|
@@ -110,6 +145,7 @@ module Onfido
|
|
|
110
145
|
:'input' => :'Object',
|
|
111
146
|
:'output' => :'Object',
|
|
112
147
|
:'reasons' => :'Array<String>',
|
|
148
|
+
:'tags' => :'Array<String>',
|
|
113
149
|
:'link' => :'WorkflowRunLink',
|
|
114
150
|
:'error' => :'WorkflowRunError',
|
|
115
151
|
:'customer_user_id' => :'String',
|
|
@@ -133,9 +169,10 @@ module Onfido
|
|
|
133
169
|
end
|
|
134
170
|
|
|
135
171
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
172
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
136
173
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
137
|
-
if (!
|
|
138
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WebhookEventPayloadResource`. Please check the name to make sure it's valid. List of attributes: " +
|
|
174
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
175
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WebhookEventPayloadResource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
139
176
|
end
|
|
140
177
|
h[k.to_sym] = v
|
|
141
178
|
}
|
|
@@ -148,6 +185,10 @@ module Onfido
|
|
|
148
185
|
self.applicant_id = attributes[:'applicant_id']
|
|
149
186
|
end
|
|
150
187
|
|
|
188
|
+
if attributes.key?(:'status')
|
|
189
|
+
self.status = attributes[:'status']
|
|
190
|
+
end
|
|
191
|
+
|
|
151
192
|
if attributes.key?(:'created_at')
|
|
152
193
|
self.created_at = attributes[:'created_at']
|
|
153
194
|
end
|
|
@@ -194,6 +235,12 @@ module Onfido
|
|
|
194
235
|
end
|
|
195
236
|
end
|
|
196
237
|
|
|
238
|
+
if attributes.key?(:'tags')
|
|
239
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
240
|
+
self.tags = value
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
|
|
197
244
|
if attributes.key?(:'link')
|
|
198
245
|
self.link = attributes[:'link']
|
|
199
246
|
end
|
|
@@ -273,6 +320,7 @@ module Onfido
|
|
|
273
320
|
self.class == o.class &&
|
|
274
321
|
id == o.id &&
|
|
275
322
|
applicant_id == o.applicant_id &&
|
|
323
|
+
status == o.status &&
|
|
276
324
|
created_at == o.created_at &&
|
|
277
325
|
updated_at == o.updated_at &&
|
|
278
326
|
dashboard_url == o.dashboard_url &&
|
|
@@ -284,6 +332,7 @@ module Onfido
|
|
|
284
332
|
input == o.input &&
|
|
285
333
|
output == o.output &&
|
|
286
334
|
reasons == o.reasons &&
|
|
335
|
+
tags == o.tags &&
|
|
287
336
|
link == o.link &&
|
|
288
337
|
error == o.error &&
|
|
289
338
|
customer_user_id == o.customer_user_id &&
|
|
@@ -299,7 +348,7 @@ module Onfido
|
|
|
299
348
|
# Calculates hash code according to all attributes.
|
|
300
349
|
# @return [Integer] Hash code
|
|
301
350
|
def hash
|
|
302
|
-
[id, applicant_id, created_at, updated_at, dashboard_url, workflow_id, workflow_run_id, workflow_version_id, task_def_id, task_def_version, input, output, reasons, link, error, customer_user_id, timeline_file_download_url].hash
|
|
351
|
+
[id, applicant_id, status, created_at, updated_at, dashboard_url, workflow_id, workflow_run_id, workflow_version_id, task_def_id, task_def_version, input, output, reasons, tags, link, error, customer_user_id, timeline_file_download_url].hash
|
|
303
352
|
end
|
|
304
353
|
|
|
305
354
|
# Builds the object from hash
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Onfido Public API v3.6
|
|
3
|
+
|
|
4
|
+
#The Onfido Public 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.16.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Onfido
|
|
17
|
+
class WebhookEventResourceStatus
|
|
18
|
+
PROCESSING = "processing".freeze
|
|
19
|
+
AWAITING_INPUT = "awaiting_input".freeze
|
|
20
|
+
AWAITING_CLIENT_INPUT = "awaiting_client_input".freeze
|
|
21
|
+
APPROVED = "approved".freeze
|
|
22
|
+
DECLINED = "declined".freeze
|
|
23
|
+
REVIEW = "review".freeze
|
|
24
|
+
ABANDONED = "abandoned".freeze
|
|
25
|
+
ERROR = "error".freeze
|
|
26
|
+
STARTED = "started".freeze
|
|
27
|
+
CANCELLED = "cancelled".freeze
|
|
28
|
+
COMPLETED = "completed".freeze
|
|
29
|
+
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
30
|
+
|
|
31
|
+
def self.all_vars
|
|
32
|
+
@all_vars ||= [PROCESSING, AWAITING_INPUT, AWAITING_CLIENT_INPUT, APPROVED, DECLINED, REVIEW, ABANDONED, ERROR, STARTED, CANCELLED, COMPLETED, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Builds the enum from string
|
|
36
|
+
# @param [String] The enum value in the form of the string
|
|
37
|
+
# @return [String] The enum value
|
|
38
|
+
def self.build_from_hash(value)
|
|
39
|
+
new.build_from_hash(value)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Builds the enum from string
|
|
43
|
+
# @param [String] The enum value in the form of the string
|
|
44
|
+
# @return [String] The enum value
|
|
45
|
+
def build_from_hash(value)
|
|
46
|
+
return value if WebhookEventResourceStatus.all_vars.include?(value)
|
|
47
|
+
raise "Invalid ENUM value #{value} for class #WebhookEventResourceStatus"
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
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.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::WebhookResend`. 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::WebhookResend`. 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
|
|
|
@@ -18,6 +18,9 @@ module Onfido
|
|
|
18
18
|
# The unique identifier of the webhook.
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
+
# Name of the webhook.
|
|
22
|
+
attr_accessor :name
|
|
23
|
+
|
|
21
24
|
# The url that will listen to notifications (must be https).
|
|
22
25
|
attr_accessor :url
|
|
23
26
|
|
|
@@ -31,21 +34,28 @@ module Onfido
|
|
|
31
34
|
def self.attribute_map
|
|
32
35
|
{
|
|
33
36
|
:'id' => :'id',
|
|
37
|
+
:'name' => :'name',
|
|
34
38
|
:'url' => :'url',
|
|
35
39
|
:'token' => :'token',
|
|
36
40
|
:'href' => :'href'
|
|
37
41
|
}
|
|
38
42
|
end
|
|
39
43
|
|
|
44
|
+
# Returns attribute mapping this model knows about
|
|
45
|
+
def self.acceptable_attribute_map
|
|
46
|
+
attribute_map
|
|
47
|
+
end
|
|
48
|
+
|
|
40
49
|
# Returns all the JSON keys this model knows about
|
|
41
50
|
def self.acceptable_attributes
|
|
42
|
-
|
|
51
|
+
acceptable_attribute_map.values
|
|
43
52
|
end
|
|
44
53
|
|
|
45
54
|
# Attribute type mapping.
|
|
46
55
|
def self.openapi_types
|
|
47
56
|
{
|
|
48
57
|
:'id' => :'String',
|
|
58
|
+
:'name' => :'String',
|
|
49
59
|
:'url' => :'String',
|
|
50
60
|
:'token' => :'String',
|
|
51
61
|
:'href' => :'String'
|
|
@@ -66,9 +76,10 @@ module Onfido
|
|
|
66
76
|
end
|
|
67
77
|
|
|
68
78
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
79
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
69
80
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
70
|
-
if (!
|
|
71
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WebhookResponse`. Please check the name to make sure it's valid. List of attributes: " +
|
|
81
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
82
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WebhookResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
72
83
|
end
|
|
73
84
|
h[k.to_sym] = v
|
|
74
85
|
}
|
|
@@ -79,6 +90,10 @@ module Onfido
|
|
|
79
90
|
self.id = nil
|
|
80
91
|
end
|
|
81
92
|
|
|
93
|
+
if attributes.key?(:'name')
|
|
94
|
+
self.name = attributes[:'name']
|
|
95
|
+
end
|
|
96
|
+
|
|
82
97
|
if attributes.key?(:'url')
|
|
83
98
|
self.url = attributes[:'url']
|
|
84
99
|
end
|
|
@@ -112,12 +127,23 @@ module Onfido
|
|
|
112
127
|
true
|
|
113
128
|
end
|
|
114
129
|
|
|
130
|
+
# Custom attribute writer method with validation
|
|
131
|
+
# @param [Object] id Value to be assigned
|
|
132
|
+
def id=(id)
|
|
133
|
+
if id.nil?
|
|
134
|
+
fail ArgumentError, 'id cannot be nil'
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
@id = id
|
|
138
|
+
end
|
|
139
|
+
|
|
115
140
|
# Checks equality by comparing each attribute.
|
|
116
141
|
# @param [Object] Object to be compared
|
|
117
142
|
def ==(o)
|
|
118
143
|
return true if self.equal?(o)
|
|
119
144
|
self.class == o.class &&
|
|
120
145
|
id == o.id &&
|
|
146
|
+
name == o.name &&
|
|
121
147
|
url == o.url &&
|
|
122
148
|
token == o.token &&
|
|
123
149
|
href == o.href
|
|
@@ -132,7 +158,7 @@ module Onfido
|
|
|
132
158
|
# Calculates hash code according to all attributes.
|
|
133
159
|
# @return [Integer] Hash code
|
|
134
160
|
def hash
|
|
135
|
-
[id, url, token, href].hash
|
|
161
|
+
[id, name, url, token, href].hash
|
|
136
162
|
end
|
|
137
163
|
|
|
138
164
|
# 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.16.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -57,9 +57,14 @@ module Onfido
|
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
# Returns attribute mapping this model knows about
|
|
61
|
+
def self.acceptable_attribute_map
|
|
62
|
+
attribute_map
|
|
63
|
+
end
|
|
64
|
+
|
|
60
65
|
# Returns all the JSON keys this model knows about
|
|
61
66
|
def self.acceptable_attributes
|
|
62
|
-
|
|
67
|
+
acceptable_attribute_map.values
|
|
63
68
|
end
|
|
64
69
|
|
|
65
70
|
# Attribute type mapping.
|
|
@@ -91,9 +96,10 @@ module Onfido
|
|
|
91
96
|
end
|
|
92
97
|
|
|
93
98
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
99
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
94
100
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
95
|
-
if (!
|
|
96
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WebhookShared`. Please check the name to make sure it's valid. List of attributes: " +
|
|
101
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
102
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WebhookShared`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
97
103
|
end
|
|
98
104
|
h[k.to_sym] = v
|
|
99
105
|
}
|
|
@@ -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
|
|
|
@@ -15,24 +15,34 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Onfido
|
|
17
17
|
class WebhookUpdate
|
|
18
|
+
# Name of the webhook.
|
|
19
|
+
attr_accessor :name
|
|
20
|
+
|
|
18
21
|
# The url that will listen to notifications (must be https).
|
|
19
22
|
attr_accessor :url
|
|
20
23
|
|
|
21
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
25
|
def self.attribute_map
|
|
23
26
|
{
|
|
27
|
+
:'name' => :'name',
|
|
24
28
|
:'url' => :'url'
|
|
25
29
|
}
|
|
26
30
|
end
|
|
27
31
|
|
|
32
|
+
# Returns attribute mapping this model knows about
|
|
33
|
+
def self.acceptable_attribute_map
|
|
34
|
+
attribute_map
|
|
35
|
+
end
|
|
36
|
+
|
|
28
37
|
# Returns all the JSON keys this model knows about
|
|
29
38
|
def self.acceptable_attributes
|
|
30
|
-
|
|
39
|
+
acceptable_attribute_map.values
|
|
31
40
|
end
|
|
32
41
|
|
|
33
42
|
# Attribute type mapping.
|
|
34
43
|
def self.openapi_types
|
|
35
44
|
{
|
|
45
|
+
:'name' => :'String',
|
|
36
46
|
:'url' => :'String'
|
|
37
47
|
}
|
|
38
48
|
end
|
|
@@ -51,13 +61,18 @@ module Onfido
|
|
|
51
61
|
end
|
|
52
62
|
|
|
53
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
|
|
54
65
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
|
-
if (!
|
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WebhookUpdate`. 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::WebhookUpdate`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
57
68
|
end
|
|
58
69
|
h[k.to_sym] = v
|
|
59
70
|
}
|
|
60
71
|
|
|
72
|
+
if attributes.key?(:'name')
|
|
73
|
+
self.name = attributes[:'name']
|
|
74
|
+
end
|
|
75
|
+
|
|
61
76
|
if attributes.key?(:'url')
|
|
62
77
|
self.url = attributes[:'url']
|
|
63
78
|
end
|
|
@@ -83,6 +98,7 @@ module Onfido
|
|
|
83
98
|
def ==(o)
|
|
84
99
|
return true if self.equal?(o)
|
|
85
100
|
self.class == o.class &&
|
|
101
|
+
name == o.name &&
|
|
86
102
|
url == o.url
|
|
87
103
|
end
|
|
88
104
|
|
|
@@ -95,7 +111,7 @@ module Onfido
|
|
|
95
111
|
# Calculates hash code according to all attributes.
|
|
96
112
|
# @return [Integer] Hash code
|
|
97
113
|
def hash
|
|
98
|
-
[url].hash
|
|
114
|
+
[name, url].hash
|
|
99
115
|
end
|
|
100
116
|
|
|
101
117
|
# 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.16.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -42,6 +42,9 @@ module Onfido
|
|
|
42
42
|
# The scopes to be sent when requesting the access token.
|
|
43
43
|
attr_accessor :oauth_server_scope
|
|
44
44
|
|
|
45
|
+
# Name of the webhook.
|
|
46
|
+
attr_accessor :name
|
|
47
|
+
|
|
45
48
|
# The url that will listen to notifications (must be https).
|
|
46
49
|
attr_accessor :url
|
|
47
50
|
|
|
@@ -57,13 +60,19 @@ module Onfido
|
|
|
57
60
|
:'oauth_server_client_id' => :'oauth_server_client_id',
|
|
58
61
|
:'oauth_server_client_secret' => :'oauth_server_client_secret',
|
|
59
62
|
:'oauth_server_scope' => :'oauth_server_scope',
|
|
63
|
+
:'name' => :'name',
|
|
60
64
|
:'url' => :'url'
|
|
61
65
|
}
|
|
62
66
|
end
|
|
63
67
|
|
|
68
|
+
# Returns attribute mapping this model knows about
|
|
69
|
+
def self.acceptable_attribute_map
|
|
70
|
+
attribute_map
|
|
71
|
+
end
|
|
72
|
+
|
|
64
73
|
# Returns all the JSON keys this model knows about
|
|
65
74
|
def self.acceptable_attributes
|
|
66
|
-
|
|
75
|
+
acceptable_attribute_map.values
|
|
67
76
|
end
|
|
68
77
|
|
|
69
78
|
# Attribute type mapping.
|
|
@@ -78,6 +87,7 @@ module Onfido
|
|
|
78
87
|
:'oauth_server_client_id' => :'String',
|
|
79
88
|
:'oauth_server_client_secret' => :'String',
|
|
80
89
|
:'oauth_server_scope' => :'String',
|
|
90
|
+
:'name' => :'String',
|
|
81
91
|
:'url' => :'String'
|
|
82
92
|
}
|
|
83
93
|
end
|
|
@@ -104,9 +114,10 @@ module Onfido
|
|
|
104
114
|
end
|
|
105
115
|
|
|
106
116
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
117
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
107
118
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
108
|
-
if (!
|
|
109
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WebhookUpdater`. Please check the name to make sure it's valid. List of attributes: " +
|
|
119
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
120
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WebhookUpdater`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
110
121
|
end
|
|
111
122
|
h[k.to_sym] = v
|
|
112
123
|
}
|
|
@@ -151,6 +162,10 @@ module Onfido
|
|
|
151
162
|
self.oauth_server_scope = attributes[:'oauth_server_scope']
|
|
152
163
|
end
|
|
153
164
|
|
|
165
|
+
if attributes.key?(:'name')
|
|
166
|
+
self.name = attributes[:'name']
|
|
167
|
+
end
|
|
168
|
+
|
|
154
169
|
if attributes.key?(:'url')
|
|
155
170
|
self.url = attributes[:'url']
|
|
156
171
|
end
|
|
@@ -185,6 +200,7 @@ module Onfido
|
|
|
185
200
|
oauth_server_client_id == o.oauth_server_client_id &&
|
|
186
201
|
oauth_server_client_secret == o.oauth_server_client_secret &&
|
|
187
202
|
oauth_server_scope == o.oauth_server_scope &&
|
|
203
|
+
name == o.name &&
|
|
188
204
|
url == o.url
|
|
189
205
|
end
|
|
190
206
|
|
|
@@ -197,7 +213,7 @@ module Onfido
|
|
|
197
213
|
# Calculates hash code according to all attributes.
|
|
198
214
|
# @return [Integer] Hash code
|
|
199
215
|
def hash
|
|
200
|
-
[enabled, events, environments, payload_version, oauth_enabled, oauth_server_url, oauth_server_client_id, oauth_server_client_secret, oauth_server_scope, url].hash
|
|
216
|
+
[enabled, events, environments, payload_version, oauth_enabled, oauth_server_url, oauth_server_client_id, oauth_server_client_secret, oauth_server_scope, name, url].hash
|
|
201
217
|
end
|
|
202
218
|
|
|
203
219
|
# Builds the object from hash
|