onfido 3.4.0 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/MIGRATION.md +30 -0
- data/README.md +2 -2
- data/lib/onfido/api/default_api.rb +68 -68
- data/lib/onfido/api_client.rb +31 -25
- data/lib/onfido/api_error.rb +1 -1
- data/lib/onfido/configuration.rb +11 -1
- data/lib/onfido/models/address.rb +1 -1
- data/lib/onfido/models/address_builder.rb +1 -1
- data/lib/onfido/models/address_shared.rb +1 -1
- data/lib/onfido/models/addresses_list.rb +1 -1
- data/lib/onfido/models/applicant.rb +1 -1
- data/lib/onfido/models/applicant_builder.rb +6 -3
- data/lib/onfido/models/{consent_item.rb → applicant_consent_builder.rb} +5 -18
- data/lib/onfido/models/applicant_consent_name.rb +42 -0
- data/lib/onfido/models/applicant_create.rb +1 -1
- data/lib/onfido/models/applicant_request.rb +6 -3
- data/lib/onfido/models/applicant_response.rb +1 -1
- data/lib/onfido/models/applicant_shared.rb +1 -1
- data/lib/onfido/models/applicant_update.rb +1 -1
- data/lib/onfido/models/applicant_updater.rb +6 -3
- data/lib/onfido/models/applicants_list.rb +1 -1
- data/lib/onfido/models/check.rb +33 -19
- data/lib/onfido/models/check_builder.rb +11 -2
- data/lib/onfido/models/check_request.rb +1 -1
- data/lib/onfido/models/check_response.rb +24 -19
- data/lib/onfido/models/check_shared.rb +14 -5
- data/lib/onfido/models/check_status.rb +45 -0
- data/lib/onfido/models/checks_list.rb +1 -1
- data/lib/onfido/models/complete_task_builder.rb +1 -1
- data/lib/onfido/models/complete_task_data_builder.rb +1 -1
- data/lib/onfido/models/country_codes.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_breakdown.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_breakdown_device.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_breakdown_device_breakdown.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_properties.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_properties_device.rb +2 -42
- data/lib/onfido/models/device_intelligence_breakdown_properties_geolocation.rb +1 -1
- data/lib/onfido/models/device_intelligence_breakdown_properties_ip.rb +5 -35
- data/lib/onfido/models/device_intelligence_report.rb +1 -1
- data/lib/onfido/models/document.rb +2 -2
- data/lib/onfido/models/document_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_age_validation.rb +1 -1
- data/lib/onfido/models/document_breakdown_age_validation_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_compromised_document.rb +1 -1
- data/lib/onfido/models/document_breakdown_compromised_document_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_comparison.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_comparison_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_comparison_breakdown_issuing_country.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_consistency.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_consistency_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_validation.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_validation_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_validation_breakdown_document_expiration.rb +1 -1
- data/lib/onfido/models/document_breakdown_data_validation_breakdown_expiry_date.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown_colour_picture.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown_conclusive_document_quality.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown_image_quality.rb +1 -1
- data/lib/onfido/models/document_breakdown_image_integrity_breakdown_supported_document.rb +1 -1
- data/lib/onfido/models/document_breakdown_issuing_authority.rb +1 -1
- data/lib/onfido/models/document_breakdown_issuing_authority_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_issuing_authority_breakdown_nfc_active_authentication.rb +1 -1
- data/lib/onfido/models/document_breakdown_issuing_authority_breakdown_nfc_passive_authentication.rb +1 -1
- data/lib/onfido/models/document_breakdown_police_record.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_digital_tampering.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_face_detection.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_fonts.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_original_document_present.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_other.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_picture_face_integrity.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_security_features.rb +1 -1
- data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_template.rb +1 -1
- data/lib/onfido/models/document_cdq_reasons.rb +1 -1
- data/lib/onfido/models/document_iq_reasons.rb +1 -1
- data/lib/onfido/models/document_odp_reasons.rb +1 -1
- data/lib/onfido/models/document_properties.rb +3 -5
- data/lib/onfido/models/document_properties_address_lines.rb +1 -1
- data/lib/onfido/models/{document_properties_barcode_inner.rb → document_properties_barcode.rb} +4 -4
- data/lib/onfido/models/document_properties_document_classification.rb +1 -1
- data/lib/onfido/models/document_properties_document_numbers_inner.rb +1 -1
- data/lib/onfido/models/document_properties_driving_licence_information.rb +1 -1
- data/lib/onfido/models/document_properties_extracted_data.rb +1 -1
- data/lib/onfido/models/document_properties_nfc.rb +1 -1
- data/lib/onfido/models/document_report.rb +1 -1
- data/lib/onfido/models/document_response.rb +1 -1
- data/lib/onfido/models/document_shared.rb +2 -2
- data/lib/onfido/models/document_types.rb +7 -2
- data/lib/onfido/models/document_video_report.rb +1 -1
- data/lib/onfido/models/document_video_with_address_information_report.rb +1 -1
- data/lib/onfido/models/document_with_address_information_report.rb +1 -1
- data/lib/onfido/models/document_with_driver_verification_report.rb +1 -1
- data/lib/onfido/models/document_with_driver_verification_report_all_of_properties.rb +3 -5
- data/lib/onfido/models/document_with_driver_verification_report_all_of_properties_all_of_passenger_vehicle.rb +1 -1
- data/lib/onfido/models/document_with_driver_verification_report_all_of_properties_all_of_vehicle_class_details_inner.rb +1 -1
- data/lib/onfido/models/document_with_driving_licence_information_report.rb +1 -1
- data/lib/onfido/models/documents_list.rb +1 -1
- data/lib/onfido/models/error.rb +1 -1
- data/lib/onfido/models/error1.rb +1 -1
- data/lib/onfido/models/error_properties.rb +1 -1
- data/lib/onfido/models/error_properties1.rb +1 -1
- data/lib/onfido/models/extract_request.rb +1 -1
- data/lib/onfido/models/extraction.rb +1 -1
- data/lib/onfido/models/extraction_document_classification.rb +1 -1
- data/lib/onfido/models/extraction_extracted_data.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_face_comparison.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown_face_detected.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_motion_report.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown_face_match.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown_face_match_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown_face_detected.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown_spoofing_detection_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_report.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_photo_report.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_face_comparison.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown_face_detected.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_liveness_detected.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_properties.rb +1 -1
- data/lib/onfido/models/facial_similarity_video_report.rb +1 -1
- data/lib/onfido/models/id_number.rb +1 -1
- data/lib/onfido/models/id_photo.rb +1 -1
- data/lib/onfido/models/id_photo_response.rb +1 -1
- data/lib/onfido/models/id_photos_list.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_credit_agencies.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_credit_agencies_properties.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_telephone_database.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_voting_register.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown_credit_agencies.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown_voting_register.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_mortality.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_sources.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown_total_sources.rb +1 -1
- data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown_total_sources_properties.rb +1 -1
- data/lib/onfido/models/identity_enhanced_properties.rb +1 -1
- data/lib/onfido/models/identity_enhanced_properties_matched_addresses_inner.rb +1 -1
- data/lib/onfido/models/identity_enhanced_report.rb +1 -1
- data/lib/onfido/models/india_pan_report.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_breakdown.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_breakdown_device.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_breakdown_device_breakdown.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_breakdown_device_breakdown_pan_valid.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_properties.rb +1 -1
- data/lib/onfido/models/india_pan_report_all_of_properties_device.rb +1 -1
- data/lib/onfido/models/known_faces_breakdown.rb +1 -1
- data/lib/onfido/models/known_faces_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/known_faces_breakdown_previously_seen_faces.rb +1 -1
- data/lib/onfido/models/known_faces_properties.rb +1 -1
- data/lib/onfido/models/known_faces_properties_matches_inner.rb +1 -1
- data/lib/onfido/models/known_faces_report.rb +1 -1
- data/lib/onfido/models/live_photo.rb +1 -1
- data/lib/onfido/models/live_photo_response.rb +1 -1
- data/lib/onfido/models/live_photos_list.rb +1 -1
- data/lib/onfido/models/live_video.rb +1 -1
- data/lib/onfido/models/live_videos_list.rb +1 -1
- data/lib/onfido/models/location.rb +1 -1
- data/lib/onfido/models/location_builder.rb +1 -1
- data/lib/onfido/models/location_shared.rb +1 -1
- data/lib/onfido/models/motion_capture.rb +1 -1
- data/lib/onfido/models/motion_captures_list.rb +1 -1
- data/lib/onfido/models/photo_auto_reasons.rb +1 -1
- data/lib/onfido/models/photo_reasons.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_data_comparison.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_data_comparison_breakdown.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_document_classification.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_document_classification_breakdown.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_image_integrity.rb +1 -1
- data/lib/onfido/models/proof_of_address_breakdown_image_integrity_breakdown.rb +1 -1
- data/lib/onfido/models/proof_of_address_properties.rb +1 -1
- data/lib/onfido/models/proof_of_address_report.rb +1 -1
- data/lib/onfido/models/repeat_attempts_list.rb +1 -1
- data/lib/onfido/models/repeat_attempts_list_repeat_attempts_inner.rb +1 -1
- data/lib/onfido/models/report.rb +1 -1
- data/lib/onfido/models/report_document.rb +1 -1
- data/lib/onfido/models/report_name.rb +1 -1
- data/lib/onfido/models/report_result.rb +1 -1
- data/lib/onfido/models/report_shared.rb +1 -1
- data/lib/onfido/models/report_status.rb +1 -1
- data/lib/onfido/models/report_sub_result.rb +1 -1
- data/lib/onfido/models/reports_list.rb +1 -1
- data/lib/onfido/models/results_feedback.rb +1 -1
- data/lib/onfido/models/sdk_token.rb +1 -1
- data/lib/onfido/models/sdk_token_builder.rb +1 -1
- data/lib/onfido/models/sdk_token_request.rb +1 -1
- data/lib/onfido/models/sdk_token_response.rb +1 -1
- data/lib/onfido/models/task.rb +1 -1
- data/lib/onfido/models/task_item.rb +23 -2
- data/lib/onfido/models/timeline_file_reference.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_address.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_address_breakdown.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_document.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_document_breakdown.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_personal.rb +1 -1
- data/lib/onfido/models/us_driving_licence_breakdown_personal_breakdown.rb +1 -1
- data/lib/onfido/models/us_driving_licence_builder.rb +1 -1
- data/lib/onfido/models/us_driving_licence_report.rb +1 -1
- data/lib/onfido/models/us_driving_licence_shared.rb +1 -1
- data/lib/onfido/models/video_reasons.rb +1 -1
- data/lib/onfido/models/watchlist_aml_breakdown.rb +1 -1
- data/lib/onfido/models/watchlist_aml_breakdown_adverse_media.rb +1 -1
- data/lib/onfido/models/watchlist_aml_breakdown_legal_and_regulatory_warnings.rb +1 -1
- data/lib/onfido/models/watchlist_aml_breakdown_politically_exposed_person.rb +1 -1
- data/lib/onfido/models/watchlist_aml_breakdown_sanction.rb +1 -1
- data/lib/onfido/models/watchlist_aml_properties.rb +1 -1
- data/lib/onfido/models/watchlist_aml_report.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_breakdown.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_address_inner.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_alias_inner.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_associate_inner.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_attribute_inner.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_event_inner.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_event_inner_source.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_properties_records_inner_source_inner.rb +1 -1
- data/lib/onfido/models/watchlist_enhanced_report.rb +1 -1
- data/lib/onfido/models/watchlist_monitor.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_builder.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_match.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_matches_list.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_matches_updater.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_response.rb +1 -1
- data/lib/onfido/models/watchlist_monitor_shared.rb +1 -1
- data/lib/onfido/models/watchlist_monitors_list.rb +1 -1
- data/lib/onfido/models/watchlist_peps_only_report.rb +1 -1
- data/lib/onfido/models/watchlist_sanctions_only_report.rb +1 -1
- data/lib/onfido/models/watchlist_standard_breakdown.rb +1 -1
- data/lib/onfido/models/watchlist_standard_properties.rb +1 -1
- data/lib/onfido/models/watchlist_standard_report.rb +1 -1
- data/lib/onfido/models/webhook.rb +1 -1
- data/lib/onfido/models/webhook_builder.rb +1 -1
- data/lib/onfido/models/webhook_create.rb +1 -1
- data/lib/onfido/models/webhook_event.rb +1 -1
- data/lib/onfido/models/webhook_event_object_status.rb +58 -0
- data/lib/onfido/models/webhook_event_payload.rb +3 -4
- data/lib/onfido/models/webhook_event_payload_object.rb +24 -3
- data/lib/onfido/models/webhook_event_payload_resource.rb +380 -0
- data/lib/onfido/models/webhook_event_resource_type.rb +45 -0
- data/lib/onfido/models/webhook_event_type.rb +1 -1
- data/lib/onfido/models/webhook_resend.rb +1 -1
- data/lib/onfido/models/webhook_response.rb +1 -1
- data/lib/onfido/models/webhook_shared.rb +1 -1
- data/lib/onfido/models/webhook_update.rb +1 -1
- data/lib/onfido/models/webhook_updater.rb +1 -1
- data/lib/onfido/models/webhooks_list.rb +1 -1
- data/lib/onfido/models/webhooks_resend_item.rb +1 -1
- data/lib/onfido/models/workflow_run.rb +6 -16
- data/lib/onfido/models/workflow_run_builder.rb +3 -2
- data/lib/onfido/models/{workflow_run_response_error.rb → workflow_run_error.rb} +4 -5
- data/lib/onfido/models/{workflow_run_shared_link.rb → workflow_run_link.rb} +8 -5
- data/lib/onfido/models/workflow_run_request.rb +1 -1
- data/lib/onfido/models/workflow_run_response.rb +4 -15
- data/lib/onfido/models/workflow_run_shared.rb +3 -2
- data/lib/onfido/models/workflow_run_status.rb +47 -0
- data/lib/onfido/version.rb +2 -2
- data/lib/onfido.rb +11 -6
- data/onfido.gemspec +1 -1
- data/spec/{webhook_event_verifier_spec.rb → classic_webhook_event_verifier_spec.rb} +4 -4
- data/spec/integrations/applicant_spec.rb +5 -1
- data/spec/integrations/check_spec.rb +4 -4
- data/spec/integrations/document_spec.rb +1 -1
- data/spec/integrations/qualified_electronic_signature_spec.rb +1 -1
- data/spec/integrations/report_schema_spec.rb +17 -0
- data/spec/integrations/workflow_run_spec.rb +3 -3
- data/spec/shared_contexts/with_check.rb +1 -0
- data/spec/shared_contexts/with_document.rb +1 -1
- data/spec/studio_webhook_event_verifier_spec.rb +39 -0
- metadata +31 -23
- data/lib/onfido/models/consents_builder.rb +0 -205
@@ -0,0 +1,380 @@
|
|
1
|
+
=begin
|
2
|
+
#Onfido API v3.6
|
3
|
+
|
4
|
+
#The Onfido API (v3.6)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3.6
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Onfido
|
17
|
+
# The resource affected by this event.
|
18
|
+
class WebhookEventPayloadResource
|
19
|
+
# The identifier of the resource.
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
# The unique identifier for the Applicant.
|
23
|
+
attr_accessor :applicant_id
|
24
|
+
|
25
|
+
# The date and time when the resource was created.
|
26
|
+
attr_accessor :created_at
|
27
|
+
|
28
|
+
# The date and time when the resource was last updated.
|
29
|
+
attr_accessor :updated_at
|
30
|
+
|
31
|
+
# The URL for viewing the resource on Onfido Dashboard.
|
32
|
+
attr_accessor :dashboard_url
|
33
|
+
|
34
|
+
# The unique identifier for the Workflow.
|
35
|
+
attr_accessor :workflow_id
|
36
|
+
|
37
|
+
attr_accessor :workflow_run_id
|
38
|
+
|
39
|
+
# The identifier for the Workflow version.
|
40
|
+
attr_accessor :workflow_version_id
|
41
|
+
|
42
|
+
# The identifier for the Task Definition.
|
43
|
+
attr_accessor :task_def_id
|
44
|
+
|
45
|
+
# The task definition version.
|
46
|
+
attr_accessor :task_def_version
|
47
|
+
|
48
|
+
# Input object with the fields used by the Task execution.
|
49
|
+
attr_accessor :input
|
50
|
+
|
51
|
+
# Output object with the fields produced by the Task execution.
|
52
|
+
attr_accessor :output
|
53
|
+
|
54
|
+
# The reasons the Workflow Run outcome was reached. Configurable when creating the Workflow Version.
|
55
|
+
attr_accessor :reasons
|
56
|
+
|
57
|
+
# Object for the configuration of the Workflow Run link.
|
58
|
+
attr_accessor :link
|
59
|
+
|
60
|
+
# Error object that details why a Workflow Run is in Error status.
|
61
|
+
attr_accessor :error
|
62
|
+
|
63
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
64
|
+
def self.attribute_map
|
65
|
+
{
|
66
|
+
:'id' => :'id',
|
67
|
+
:'applicant_id' => :'applicant_id',
|
68
|
+
:'created_at' => :'created_at',
|
69
|
+
:'updated_at' => :'updated_at',
|
70
|
+
:'dashboard_url' => :'dashboard_url',
|
71
|
+
:'workflow_id' => :'workflow_id',
|
72
|
+
:'workflow_run_id' => :'workflow_run_id',
|
73
|
+
:'workflow_version_id' => :'workflow_version_id',
|
74
|
+
:'task_def_id' => :'task_def_id',
|
75
|
+
:'task_def_version' => :'task_def_version',
|
76
|
+
:'input' => :'input',
|
77
|
+
:'output' => :'output',
|
78
|
+
:'reasons' => :'reasons',
|
79
|
+
:'link' => :'link',
|
80
|
+
:'error' => :'error'
|
81
|
+
}
|
82
|
+
end
|
83
|
+
|
84
|
+
# Returns all the JSON keys this model knows about
|
85
|
+
def self.acceptable_attributes
|
86
|
+
attribute_map.values
|
87
|
+
end
|
88
|
+
|
89
|
+
# Attribute type mapping.
|
90
|
+
def self.openapi_types
|
91
|
+
{
|
92
|
+
:'id' => :'String',
|
93
|
+
:'applicant_id' => :'String',
|
94
|
+
:'created_at' => :'Time',
|
95
|
+
:'updated_at' => :'Time',
|
96
|
+
:'dashboard_url' => :'String',
|
97
|
+
:'workflow_id' => :'String',
|
98
|
+
:'workflow_run_id' => :'String',
|
99
|
+
:'workflow_version_id' => :'Integer',
|
100
|
+
:'task_def_id' => :'String',
|
101
|
+
:'task_def_version' => :'String',
|
102
|
+
:'input' => :'Object',
|
103
|
+
:'output' => :'Object',
|
104
|
+
:'reasons' => :'Array<String>',
|
105
|
+
:'link' => :'WorkflowRunLink',
|
106
|
+
:'error' => :'WorkflowRunError'
|
107
|
+
}
|
108
|
+
end
|
109
|
+
|
110
|
+
# List of attributes with nullable: true
|
111
|
+
def self.openapi_nullable
|
112
|
+
Set.new([
|
113
|
+
:'task_def_version',
|
114
|
+
:'output',
|
115
|
+
])
|
116
|
+
end
|
117
|
+
|
118
|
+
# Initializes the object
|
119
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
+
def initialize(attributes = {})
|
121
|
+
if (!attributes.is_a?(Hash))
|
122
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Onfido::WebhookEventPayloadResource` initialize method"
|
123
|
+
end
|
124
|
+
|
125
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
126
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
127
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
128
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WebhookEventPayloadResource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
129
|
+
end
|
130
|
+
h[k.to_sym] = v
|
131
|
+
}
|
132
|
+
|
133
|
+
if attributes.key?(:'id')
|
134
|
+
self.id = attributes[:'id']
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.key?(:'applicant_id')
|
138
|
+
self.applicant_id = attributes[:'applicant_id']
|
139
|
+
end
|
140
|
+
|
141
|
+
if attributes.key?(:'created_at')
|
142
|
+
self.created_at = attributes[:'created_at']
|
143
|
+
end
|
144
|
+
|
145
|
+
if attributes.key?(:'updated_at')
|
146
|
+
self.updated_at = attributes[:'updated_at']
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.key?(:'dashboard_url')
|
150
|
+
self.dashboard_url = attributes[:'dashboard_url']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.key?(:'workflow_id')
|
154
|
+
self.workflow_id = attributes[:'workflow_id']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.key?(:'workflow_run_id')
|
158
|
+
self.workflow_run_id = attributes[:'workflow_run_id']
|
159
|
+
end
|
160
|
+
|
161
|
+
if attributes.key?(:'workflow_version_id')
|
162
|
+
self.workflow_version_id = attributes[:'workflow_version_id']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.key?(:'task_def_id')
|
166
|
+
self.task_def_id = attributes[:'task_def_id']
|
167
|
+
end
|
168
|
+
|
169
|
+
if attributes.key?(:'task_def_version')
|
170
|
+
self.task_def_version = attributes[:'task_def_version']
|
171
|
+
end
|
172
|
+
|
173
|
+
if attributes.key?(:'input')
|
174
|
+
self.input = attributes[:'input']
|
175
|
+
end
|
176
|
+
|
177
|
+
if attributes.key?(:'output')
|
178
|
+
self.output = attributes[:'output']
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.key?(:'reasons')
|
182
|
+
if (value = attributes[:'reasons']).is_a?(Array)
|
183
|
+
self.reasons = value
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes.key?(:'link')
|
188
|
+
self.link = attributes[:'link']
|
189
|
+
end
|
190
|
+
|
191
|
+
if attributes.key?(:'error')
|
192
|
+
self.error = attributes[:'error']
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
197
|
+
# @return Array for valid properties with the reasons
|
198
|
+
def list_invalid_properties
|
199
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
200
|
+
invalid_properties = Array.new
|
201
|
+
pattern = Regexp.new(/^[0-9a-z_-]+$/)
|
202
|
+
if !@task_def_id.nil? && @task_def_id !~ pattern
|
203
|
+
invalid_properties.push("invalid value for \"task_def_id\", must conform to the pattern #{pattern}.")
|
204
|
+
end
|
205
|
+
|
206
|
+
invalid_properties
|
207
|
+
end
|
208
|
+
|
209
|
+
# Check to see if the all the properties in the model are valid
|
210
|
+
# @return true if the model is valid
|
211
|
+
def valid?
|
212
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
213
|
+
return false if !@task_def_id.nil? && @task_def_id !~ Regexp.new(/^[0-9a-z_-]+$/)
|
214
|
+
true
|
215
|
+
end
|
216
|
+
|
217
|
+
# Custom attribute writer method with validation
|
218
|
+
# @param [Object] task_def_id Value to be assigned
|
219
|
+
def task_def_id=(task_def_id)
|
220
|
+
if task_def_id.nil?
|
221
|
+
fail ArgumentError, 'task_def_id cannot be nil'
|
222
|
+
end
|
223
|
+
|
224
|
+
pattern = Regexp.new(/^[0-9a-z_-]+$/)
|
225
|
+
if task_def_id !~ pattern
|
226
|
+
fail ArgumentError, "invalid value for \"task_def_id\", must conform to the pattern #{pattern}."
|
227
|
+
end
|
228
|
+
|
229
|
+
@task_def_id = task_def_id
|
230
|
+
end
|
231
|
+
|
232
|
+
# Checks equality by comparing each attribute.
|
233
|
+
# @param [Object] Object to be compared
|
234
|
+
def ==(o)
|
235
|
+
return true if self.equal?(o)
|
236
|
+
self.class == o.class &&
|
237
|
+
id == o.id &&
|
238
|
+
applicant_id == o.applicant_id &&
|
239
|
+
created_at == o.created_at &&
|
240
|
+
updated_at == o.updated_at &&
|
241
|
+
dashboard_url == o.dashboard_url &&
|
242
|
+
workflow_id == o.workflow_id &&
|
243
|
+
workflow_run_id == o.workflow_run_id &&
|
244
|
+
workflow_version_id == o.workflow_version_id &&
|
245
|
+
task_def_id == o.task_def_id &&
|
246
|
+
task_def_version == o.task_def_version &&
|
247
|
+
input == o.input &&
|
248
|
+
output == o.output &&
|
249
|
+
reasons == o.reasons &&
|
250
|
+
link == o.link &&
|
251
|
+
error == o.error
|
252
|
+
end
|
253
|
+
|
254
|
+
# @see the `==` method
|
255
|
+
# @param [Object] Object to be compared
|
256
|
+
def eql?(o)
|
257
|
+
self == o
|
258
|
+
end
|
259
|
+
|
260
|
+
# Calculates hash code according to all attributes.
|
261
|
+
# @return [Integer] Hash code
|
262
|
+
def hash
|
263
|
+
[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].hash
|
264
|
+
end
|
265
|
+
|
266
|
+
# Builds the object from hash
|
267
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
268
|
+
# @return [Object] Returns the model itself
|
269
|
+
def self.build_from_hash(attributes)
|
270
|
+
return nil unless attributes.is_a?(Hash)
|
271
|
+
attributes = attributes.transform_keys(&:to_sym)
|
272
|
+
transformed_hash = {}
|
273
|
+
openapi_types.each_pair do |key, type|
|
274
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
275
|
+
transformed_hash["#{key}"] = nil
|
276
|
+
elsif type =~ /\AArray<(.*)>/i
|
277
|
+
# check to ensure the input is an array given that the attribute
|
278
|
+
# is documented as an array but the input is not
|
279
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
280
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
281
|
+
end
|
282
|
+
elsif !attributes[attribute_map[key]].nil?
|
283
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
284
|
+
end
|
285
|
+
end
|
286
|
+
new(transformed_hash)
|
287
|
+
end
|
288
|
+
|
289
|
+
# Deserializes the data based on type
|
290
|
+
# @param string type Data type
|
291
|
+
# @param string value Value to be deserialized
|
292
|
+
# @return [Object] Deserialized data
|
293
|
+
def self._deserialize(type, value)
|
294
|
+
case type.to_sym
|
295
|
+
when :Time
|
296
|
+
Time.parse(value)
|
297
|
+
when :Date
|
298
|
+
Date.parse(value)
|
299
|
+
when :String
|
300
|
+
value.to_s
|
301
|
+
when :Integer
|
302
|
+
value.to_i
|
303
|
+
when :Float
|
304
|
+
value.to_f
|
305
|
+
when :Boolean
|
306
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
307
|
+
true
|
308
|
+
else
|
309
|
+
false
|
310
|
+
end
|
311
|
+
when :Object
|
312
|
+
# generic object (usually a Hash), return directly
|
313
|
+
value
|
314
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
315
|
+
inner_type = Regexp.last_match[:inner_type]
|
316
|
+
value.map { |v| _deserialize(inner_type, v) }
|
317
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
318
|
+
k_type = Regexp.last_match[:k_type]
|
319
|
+
v_type = Regexp.last_match[:v_type]
|
320
|
+
{}.tap do |hash|
|
321
|
+
value.each do |k, v|
|
322
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
323
|
+
end
|
324
|
+
end
|
325
|
+
else # model
|
326
|
+
# models (e.g. Pet) or oneOf
|
327
|
+
klass = Onfido.const_get(type)
|
328
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
332
|
+
# Returns the string representation of the object
|
333
|
+
# @return [String] String presentation of the object
|
334
|
+
def to_s
|
335
|
+
to_hash.to_s
|
336
|
+
end
|
337
|
+
|
338
|
+
# to_body is an alias to to_hash (backward compatibility)
|
339
|
+
# @return [Hash] Returns the object in the form of hash
|
340
|
+
def to_body
|
341
|
+
to_hash
|
342
|
+
end
|
343
|
+
|
344
|
+
# Returns the object in the form of hash
|
345
|
+
# @return [Hash] Returns the object in the form of hash
|
346
|
+
def to_hash
|
347
|
+
hash = {}
|
348
|
+
self.class.attribute_map.each_pair do |attr, param|
|
349
|
+
value = self.send(attr)
|
350
|
+
if value.nil?
|
351
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
352
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
353
|
+
end
|
354
|
+
|
355
|
+
hash[param] = _to_hash(value)
|
356
|
+
end
|
357
|
+
hash
|
358
|
+
end
|
359
|
+
|
360
|
+
# Outputs non-array value in the form of hash
|
361
|
+
# For object, use to_hash. Otherwise, just return the value
|
362
|
+
# @param [Object] value Any valid value
|
363
|
+
# @return [Hash] Returns the value in the form of hash
|
364
|
+
def _to_hash(value)
|
365
|
+
if value.is_a?(Array)
|
366
|
+
value.compact.map { |v| _to_hash(v) }
|
367
|
+
elsif value.is_a?(Hash)
|
368
|
+
{}.tap do |hash|
|
369
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
370
|
+
end
|
371
|
+
elsif value.respond_to? :to_hash
|
372
|
+
value.to_hash
|
373
|
+
else
|
374
|
+
value
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
378
|
+
end
|
379
|
+
|
380
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
=begin
|
2
|
+
#Onfido API v3.6
|
3
|
+
|
4
|
+
#The Onfido API (v3.6)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3.6
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Onfido
|
17
|
+
class WebhookEventResourceType
|
18
|
+
CHECK = "check".freeze
|
19
|
+
REPORT = "report".freeze
|
20
|
+
AUDIT_LOG = "audit_log".freeze
|
21
|
+
WORKFLOW_RUN = "workflow_run".freeze
|
22
|
+
WORKFLOW_TASK = "workflow_task".freeze
|
23
|
+
WATCHLIST_MONITOR = "watchlist_monitor".freeze
|
24
|
+
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
25
|
+
|
26
|
+
def self.all_vars
|
27
|
+
@all_vars ||= [CHECK, REPORT, AUDIT_LOG, WORKFLOW_RUN, WORKFLOW_TASK, WATCHLIST_MONITOR, UNKNOWN_DEFAULT_OPEN_API].freeze
|
28
|
+
end
|
29
|
+
|
30
|
+
# Builds the enum from string
|
31
|
+
# @param [String] The enum value in the form of the string
|
32
|
+
# @return [String] The enum value
|
33
|
+
def self.build_from_hash(value)
|
34
|
+
new.build_from_hash(value)
|
35
|
+
end
|
36
|
+
|
37
|
+
# Builds the enum from string
|
38
|
+
# @param [String] The enum value in the form of the string
|
39
|
+
# @return [String] The enum value
|
40
|
+
def build_from_hash(value)
|
41
|
+
return value if WebhookEventResourceType.all_vars.include?(value)
|
42
|
+
raise "Invalid ENUM value #{value} for class #WebhookEventResourceType"
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -27,6 +27,7 @@ module Onfido
|
|
27
27
|
# Customer-provided user identifier.
|
28
28
|
attr_accessor :customer_user_id
|
29
29
|
|
30
|
+
# Object for the configuration of the Workflow Run link.
|
30
31
|
attr_accessor :link
|
31
32
|
|
32
33
|
# The date and time when the Workflow Run was created.
|
@@ -53,6 +54,7 @@ module Onfido
|
|
53
54
|
# The reasons the Workflow Run outcome was reached. Configurable when creating the Workflow version.
|
54
55
|
attr_accessor :reasons
|
55
56
|
|
57
|
+
# Error object. Only set when the Workflow Run status is 'error'.
|
56
58
|
attr_accessor :error
|
57
59
|
|
58
60
|
# Client token to use when loading this workflow run in the Onfido SDK.
|
@@ -113,16 +115,16 @@ module Onfido
|
|
113
115
|
:'workflow_id' => :'String',
|
114
116
|
:'tags' => :'Array<String>',
|
115
117
|
:'customer_user_id' => :'String',
|
116
|
-
:'link' => :'
|
118
|
+
:'link' => :'WorkflowRunLink',
|
117
119
|
:'created_at' => :'Time',
|
118
120
|
:'updated_at' => :'Time',
|
119
121
|
:'id' => :'String',
|
120
122
|
:'workflow_version_id' => :'Integer',
|
121
123
|
:'dashboard_url' => :'String',
|
122
|
-
:'status' => :'
|
124
|
+
:'status' => :'WorkflowRunStatus',
|
123
125
|
:'output' => :'Object',
|
124
126
|
:'reasons' => :'Array<String>',
|
125
|
-
:'error' => :'
|
127
|
+
:'error' => :'WorkflowRunError',
|
126
128
|
:'sdk_token' => :'String'
|
127
129
|
}
|
128
130
|
end
|
@@ -266,8 +268,6 @@ module Onfido
|
|
266
268
|
return false if !@tags.nil? && @tags.length > 30
|
267
269
|
return false if !@customer_user_id.nil? && @customer_user_id.to_s.length > 256
|
268
270
|
return false if @id.nil?
|
269
|
-
status_validator = EnumAttributeValidator.new('String', ["awaiting_input", "processing", "abandoned", "error", "approved", "review", "declined", "unknown_default_open_api"])
|
270
|
-
return false unless status_validator.valid?(@status)
|
271
271
|
true
|
272
272
|
end
|
273
273
|
|
@@ -295,16 +295,6 @@ module Onfido
|
|
295
295
|
@customer_user_id = customer_user_id
|
296
296
|
end
|
297
297
|
|
298
|
-
# Custom attribute writer method checking allowed values (enum).
|
299
|
-
# @param [Object] status Object to be assigned
|
300
|
-
def status=(status)
|
301
|
-
validator = EnumAttributeValidator.new('String', ["awaiting_input", "processing", "abandoned", "error", "approved", "review", "declined", "unknown_default_open_api"])
|
302
|
-
unless validator.valid?(status)
|
303
|
-
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
304
|
-
end
|
305
|
-
@status = status
|
306
|
-
end
|
307
|
-
|
308
298
|
# Checks equality by comparing each attribute.
|
309
299
|
# @param [Object] Object to be compared
|
310
300
|
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.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -27,6 +27,7 @@ module Onfido
|
|
27
27
|
# Customer-provided user identifier.
|
28
28
|
attr_accessor :customer_user_id
|
29
29
|
|
30
|
+
# Object for the configuration of the Workflow Run link.
|
30
31
|
attr_accessor :link
|
31
32
|
|
32
33
|
# The date and time when the Workflow Run was created.
|
@@ -64,7 +65,7 @@ module Onfido
|
|
64
65
|
:'workflow_id' => :'String',
|
65
66
|
:'tags' => :'Array<String>',
|
66
67
|
:'customer_user_id' => :'String',
|
67
|
-
:'link' => :'
|
68
|
+
:'link' => :'WorkflowRunLink',
|
68
69
|
:'created_at' => :'Time',
|
69
70
|
:'updated_at' => :'Time',
|
70
71
|
:'custom_data' => :'Hash<String, Object>'
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3.6
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,8 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Onfido
|
17
|
-
|
18
|
-
class WorkflowRunResponseError
|
17
|
+
class WorkflowRunError
|
19
18
|
# The type of error.
|
20
19
|
attr_accessor :type
|
21
20
|
|
@@ -53,13 +52,13 @@ module Onfido
|
|
53
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
54
53
|
def initialize(attributes = {})
|
55
54
|
if (!attributes.is_a?(Hash))
|
56
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Onfido::
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Onfido::WorkflowRunError` initialize method"
|
57
56
|
end
|
58
57
|
|
59
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
60
|
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WorkflowRunError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
62
|
end
|
64
63
|
h[k.to_sym] = v
|
65
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.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,8 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Onfido
|
17
|
-
|
18
|
-
class WorkflowRunSharedLink
|
17
|
+
class WorkflowRunLink
|
19
18
|
# Link to access the Workflow Run without the need to integrate with Onfido's SDKs.
|
20
19
|
attr_accessor :url
|
21
20
|
|
@@ -83,6 +82,10 @@ module Onfido
|
|
83
82
|
# List of attributes with nullable: true
|
84
83
|
def self.openapi_nullable
|
85
84
|
Set.new([
|
85
|
+
:'completed_redirect_url',
|
86
|
+
:'expired_redirect_url',
|
87
|
+
:'expires_at',
|
88
|
+
:'language'
|
86
89
|
])
|
87
90
|
end
|
88
91
|
|
@@ -90,13 +93,13 @@ module Onfido
|
|
90
93
|
# @param [Hash] attributes Model attributes in the form of hash
|
91
94
|
def initialize(attributes = {})
|
92
95
|
if (!attributes.is_a?(Hash))
|
93
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Onfido::
|
96
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Onfido::WorkflowRunLink` initialize method"
|
94
97
|
end
|
95
98
|
|
96
99
|
# check to see if the attribute exists and convert string to symbol for hash key
|
97
100
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
98
101
|
if (!self.class.attribute_map.key?(k.to_sym))
|
99
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::
|
102
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::WorkflowRunLink`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
100
103
|
end
|
101
104
|
h[k.to_sym] = v
|
102
105
|
}
|