onfido-python 5.4.0__py3-none-any.whl → 5.6.0__py3-none-any.whl
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.
- onfido/__init__.py +7 -3
- onfido/api/default_api.py +2 -2
- onfido/api_client.py +3 -3
- onfido/configuration.py +3 -3
- onfido/exceptions.py +2 -2
- onfido/models/__init__.py +6 -2
- onfido/models/address.py +2 -2
- onfido/models/address_builder.py +2 -2
- onfido/models/address_shared.py +2 -2
- onfido/models/addresses_list.py +2 -2
- onfido/models/applicant.py +2 -2
- onfido/models/applicant_builder.py +2 -2
- onfido/models/applicant_consent.py +2 -2
- onfido/models/applicant_consent_builder.py +2 -2
- onfido/models/applicant_consent_name.py +2 -2
- onfido/models/applicant_create.py +2 -2
- onfido/models/applicant_request.py +2 -2
- onfido/models/applicant_response.py +2 -2
- onfido/models/applicant_shared.py +2 -2
- onfido/models/applicant_update.py +2 -2
- onfido/models/applicant_updater.py +2 -2
- onfido/models/applicants_list.py +2 -2
- onfido/models/check.py +2 -2
- onfido/models/check_builder.py +2 -2
- onfido/models/check_request.py +2 -2
- onfido/models/check_response.py +2 -2
- onfido/models/check_shared.py +2 -2
- onfido/models/check_status.py +2 -2
- onfido/models/checks_list.py +2 -2
- onfido/models/complete_task_builder.py +2 -2
- onfido/models/complete_task_data_builder.py +2 -2
- onfido/models/country_codes.py +2 -2
- onfido/models/device_intelligence_breakdown.py +2 -2
- onfido/models/device_intelligence_breakdown_breakdown.py +2 -2
- onfido/models/device_intelligence_breakdown_device.py +2 -2
- onfido/models/device_intelligence_breakdown_device_breakdown.py +2 -2
- onfido/models/device_intelligence_breakdown_properties.py +2 -2
- onfido/models/device_intelligence_breakdown_properties_device.py +2 -2
- onfido/models/device_intelligence_breakdown_properties_geolocation.py +2 -2
- onfido/models/device_intelligence_breakdown_properties_ip.py +2 -2
- onfido/models/device_intelligence_properties.py +2 -2
- onfido/models/device_intelligence_report.py +2 -2
- onfido/models/document.py +2 -2
- onfido/models/document_breakdown.py +2 -2
- onfido/models/document_breakdown_age_validation.py +2 -2
- onfido/models/document_breakdown_age_validation_breakdown.py +2 -2
- onfido/models/document_breakdown_compromised_document.py +2 -2
- onfido/models/document_breakdown_compromised_document_breakdown.py +2 -2
- onfido/models/document_breakdown_data_comparison.py +2 -2
- onfido/models/document_breakdown_data_comparison_breakdown.py +2 -2
- onfido/models/document_breakdown_data_comparison_breakdown_issuing_country.py +2 -2
- onfido/models/document_breakdown_data_consistency.py +2 -2
- onfido/models/document_breakdown_data_consistency_breakdown.py +2 -2
- onfido/models/document_breakdown_data_validation.py +2 -2
- onfido/models/document_breakdown_data_validation_breakdown.py +2 -2
- onfido/models/document_breakdown_data_validation_breakdown_document_expiration.py +2 -2
- onfido/models/document_breakdown_data_validation_breakdown_expiry_date.py +2 -2
- onfido/models/document_breakdown_image_integrity.py +2 -2
- onfido/models/document_breakdown_image_integrity_breakdown.py +2 -2
- onfido/models/document_breakdown_image_integrity_breakdown_colour_picture.py +2 -2
- onfido/models/document_breakdown_image_integrity_breakdown_conclusive_document_quality.py +2 -2
- onfido/models/document_breakdown_image_integrity_breakdown_image_quality.py +2 -2
- onfido/models/document_breakdown_image_integrity_breakdown_supported_document.py +2 -2
- onfido/models/document_breakdown_issuing_authority.py +2 -2
- onfido/models/document_breakdown_issuing_authority_breakdown.py +2 -2
- onfido/models/document_breakdown_issuing_authority_breakdown_nfc_active_authentication.py +2 -2
- onfido/models/document_breakdown_issuing_authority_breakdown_nfc_passive_authentication.py +2 -2
- onfido/models/document_breakdown_police_record.py +2 -2
- onfido/models/document_breakdown_visual_authenticity.py +2 -2
- onfido/models/document_breakdown_visual_authenticity_breakdown.py +2 -2
- onfido/models/document_breakdown_visual_authenticity_breakdown_digital_tampering.py +2 -2
- onfido/models/document_breakdown_visual_authenticity_breakdown_face_detection.py +2 -2
- onfido/models/document_breakdown_visual_authenticity_breakdown_fonts.py +2 -2
- onfido/models/document_breakdown_visual_authenticity_breakdown_original_document_present.py +2 -2
- onfido/models/document_breakdown_visual_authenticity_breakdown_other.py +2 -2
- onfido/models/document_breakdown_visual_authenticity_breakdown_picture_face_integrity.py +2 -2
- onfido/models/document_breakdown_visual_authenticity_breakdown_security_features.py +2 -2
- onfido/models/document_breakdown_visual_authenticity_breakdown_template.py +2 -2
- onfido/models/document_cdq_reasons.py +2 -2
- onfido/models/document_iq_reasons.py +2 -2
- onfido/models/document_odp_reasons.py +2 -2
- onfido/models/document_properties.py +2 -2
- onfido/models/document_properties_address_lines.py +2 -2
- onfido/models/document_properties_barcode_inner.py +2 -2
- onfido/models/document_properties_document_classification.py +2 -2
- onfido/models/document_properties_document_numbers_inner.py +2 -2
- onfido/models/document_properties_driving_licence_information_item.py +2 -2
- onfido/models/document_properties_extracted_data.py +2 -2
- onfido/models/document_properties_nfc.py +2 -2
- onfido/models/document_report.py +2 -2
- onfido/models/document_report_shared.py +2 -2
- onfido/models/document_response.py +2 -2
- onfido/models/document_shared.py +2 -2
- onfido/models/document_types.py +2 -2
- onfido/models/document_video_report.py +2 -2
- onfido/models/document_video_with_address_information_report.py +2 -2
- onfido/models/document_with_address_information_report.py +2 -2
- onfido/models/document_with_driver_verification_report.py +2 -2
- onfido/models/document_with_driver_verification_report_all_of_properties.py +2 -2
- onfido/models/document_with_driver_verification_report_all_of_properties_all_of_passenger_vehicle.py +2 -2
- onfido/models/document_with_driver_verification_report_all_of_properties_all_of_vehicle_class_details_inner.py +2 -2
- onfido/models/document_with_driving_licence_information_report.py +2 -2
- onfido/models/documents_list.py +2 -2
- onfido/models/error.py +2 -2
- onfido/models/error1.py +2 -2
- onfido/models/error_properties.py +2 -2
- onfido/models/error_properties1.py +2 -2
- onfido/models/extract_request.py +2 -2
- onfido/models/extraction.py +2 -2
- onfido/models/extraction_document_classification.py +4 -4
- onfido/models/extraction_extracted_data.py +2 -2
- onfido/models/facial_similarity_motion_breakdown.py +2 -2
- onfido/models/facial_similarity_motion_breakdown_face_comparison.py +2 -2
- onfido/models/facial_similarity_motion_breakdown_image_integrity.py +2 -2
- onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown.py +2 -2
- onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown_face_detected.py +2 -2
- onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown_source_integrity.py +2 -2
- onfido/models/facial_similarity_motion_breakdown_visual_authenticity.py +2 -2
- onfido/models/facial_similarity_motion_breakdown_visual_authenticity_breakdown.py +2 -2
- onfido/models/facial_similarity_motion_breakdown_visual_authenticity_breakdown_spoofing_detection.py +2 -2
- onfido/models/facial_similarity_motion_properties.py +2 -2
- onfido/models/facial_similarity_motion_report.py +2 -2
- onfido/models/facial_similarity_photo_breakdown.py +2 -2
- onfido/models/facial_similarity_photo_breakdown_face_comparison.py +2 -2
- onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown.py +2 -2
- onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown_face_match.py +2 -2
- onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown_face_match_properties.py +2 -2
- onfido/models/facial_similarity_photo_breakdown_image_integrity.py +2 -2
- onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown.py +2 -2
- onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown_face_detected.py +2 -2
- onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown_source_integrity.py +2 -2
- onfido/models/facial_similarity_photo_breakdown_visual_authenticity.py +2 -2
- onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown.py +2 -2
- onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown_spoofing_detection.py +2 -2
- onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown_spoofing_detection_properties.py +2 -2
- onfido/models/facial_similarity_photo_fully_auto_breakdown.py +2 -2
- onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity.py +2 -2
- onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity_breakdown.py +2 -2
- onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity_breakdown_source_integrity.py +2 -2
- onfido/models/facial_similarity_photo_fully_auto_properties.py +2 -2
- onfido/models/facial_similarity_photo_fully_auto_report.py +2 -2
- onfido/models/facial_similarity_photo_properties.py +2 -2
- onfido/models/facial_similarity_photo_report.py +2 -2
- onfido/models/facial_similarity_report_media.py +2 -2
- onfido/models/facial_similarity_report_shared.py +2 -2
- onfido/models/facial_similarity_video_breakdown.py +2 -2
- onfido/models/facial_similarity_video_breakdown_face_comparison.py +2 -2
- onfido/models/facial_similarity_video_breakdown_image_integrity.py +2 -2
- onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown.py +2 -2
- onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown_face_detected.py +2 -2
- onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown_source_integrity.py +2 -2
- onfido/models/facial_similarity_video_breakdown_visual_authenticity.py +2 -2
- onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown.py +2 -2
- onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_liveness_detected.py +2 -2
- onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_spoofing_detection.py +2 -2
- onfido/models/facial_similarity_video_properties.py +2 -2
- onfido/models/facial_similarity_video_report.py +2 -2
- onfido/models/id_number.py +2 -2
- onfido/models/id_photo.py +2 -2
- onfido/models/id_photo_response.py +2 -2
- onfido/models/id_photos_list.py +2 -2
- onfido/models/identity_enhanced_breakdown.py +15 -4
- onfido/models/identity_enhanced_breakdown_address.py +2 -2
- onfido/models/identity_enhanced_breakdown_address_breakdown.py +2 -2
- onfido/models/identity_enhanced_breakdown_address_breakdown_credit_agencies.py +2 -2
- onfido/models/identity_enhanced_breakdown_address_breakdown_credit_agencies_properties.py +2 -2
- onfido/models/identity_enhanced_breakdown_address_breakdown_telephone_database.py +2 -2
- onfido/models/identity_enhanced_breakdown_address_breakdown_voting_register.py +2 -2
- onfido/models/identity_enhanced_breakdown_date_of_birth.py +2 -2
- onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown.py +2 -2
- onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown_credit_agencies.py +2 -2
- onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown_voting_register.py +2 -2
- onfido/models/identity_enhanced_breakdown_mortality.py +2 -2
- onfido/models/identity_enhanced_breakdown_sources.py +2 -2
- onfido/models/identity_enhanced_breakdown_sources_breakdown.py +2 -2
- onfido/models/identity_enhanced_breakdown_sources_breakdown_total_sources.py +2 -2
- onfido/models/identity_enhanced_breakdown_sources_breakdown_total_sources_properties.py +2 -2
- onfido/models/identity_enhanced_properties.py +2 -2
- onfido/models/identity_enhanced_properties_matched_addresses_inner.py +2 -2
- onfido/models/identity_enhanced_report.py +2 -2
- onfido/models/idr_ssn_breakdown.py +106 -0
- onfido/models/idr_ssn_breakdown_breakdown.py +110 -0
- onfido/models/idr_ssn_breakdown_breakdown_full_match.py +102 -0
- onfido/models/idr_ssn_breakdown_breakdown_last4_digits_match.py +102 -0
- onfido/models/india_pan_report.py +2 -2
- onfido/models/india_pan_report_all_of_breakdown.py +2 -2
- onfido/models/india_pan_report_all_of_breakdown_device.py +2 -2
- onfido/models/india_pan_report_all_of_breakdown_device_breakdown.py +2 -2
- onfido/models/india_pan_report_all_of_breakdown_device_breakdown_pan_valid.py +2 -2
- onfido/models/india_pan_report_all_of_properties.py +2 -2
- onfido/models/india_pan_report_all_of_properties_device.py +2 -2
- onfido/models/known_faces_breakdown.py +2 -2
- onfido/models/known_faces_breakdown_image_integrity.py +2 -2
- onfido/models/known_faces_breakdown_previously_seen_faces.py +2 -2
- onfido/models/known_faces_properties.py +2 -2
- onfido/models/known_faces_properties_matches_inner.py +2 -2
- onfido/models/known_faces_report.py +2 -2
- onfido/models/live_photo.py +2 -2
- onfido/models/live_photo_response.py +2 -2
- onfido/models/live_photos_list.py +2 -2
- onfido/models/live_video.py +2 -2
- onfido/models/live_videos_list.py +2 -2
- onfido/models/location.py +2 -2
- onfido/models/location_builder.py +2 -2
- onfido/models/location_shared.py +2 -2
- onfido/models/motion_capture.py +2 -2
- onfido/models/motion_captures_list.py +2 -2
- onfido/models/photo_auto_reasons.py +2 -2
- onfido/models/photo_reasons.py +2 -2
- onfido/models/proof_of_address_breakdown.py +2 -2
- onfido/models/proof_of_address_breakdown_data_comparison.py +2 -2
- onfido/models/proof_of_address_breakdown_data_comparison_breakdown.py +2 -2
- onfido/models/proof_of_address_breakdown_document_classification.py +2 -2
- onfido/models/proof_of_address_breakdown_document_classification_breakdown.py +2 -2
- onfido/models/proof_of_address_breakdown_image_integrity.py +2 -2
- onfido/models/proof_of_address_breakdown_image_integrity_breakdown.py +2 -2
- onfido/models/proof_of_address_properties.py +4 -4
- onfido/models/proof_of_address_report.py +2 -2
- onfido/models/repeat_attempts_list.py +2 -2
- onfido/models/repeat_attempts_list_repeat_attempts_inner.py +2 -2
- onfido/models/report.py +2 -2
- onfido/models/report_configuration.py +2 -2
- onfido/models/report_configuration_facial_similarity.py +2 -2
- onfido/models/report_document.py +2 -2
- onfido/models/report_name.py +2 -2
- onfido/models/report_result.py +2 -2
- onfido/models/report_shared.py +2 -2
- onfido/models/report_status.py +2 -2
- onfido/models/report_sub_result.py +2 -2
- onfido/models/reports_list.py +2 -2
- onfido/models/results_feedback.py +2 -2
- onfido/models/sdk_token.py +2 -2
- onfido/models/sdk_token_builder.py +2 -2
- onfido/models/sdk_token_request.py +2 -2
- onfido/models/sdk_token_response.py +2 -2
- onfido/models/task.py +2 -2
- onfido/models/task_item.py +2 -2
- onfido/models/timeline_file_reference.py +2 -2
- onfido/models/us_driving_licence_breakdown.py +2 -2
- onfido/models/us_driving_licence_breakdown_address.py +2 -2
- onfido/models/us_driving_licence_breakdown_address_breakdown.py +2 -2
- onfido/models/us_driving_licence_breakdown_document.py +2 -2
- onfido/models/us_driving_licence_breakdown_document_breakdown.py +2 -2
- onfido/models/us_driving_licence_breakdown_personal.py +2 -2
- onfido/models/us_driving_licence_breakdown_personal_breakdown.py +2 -2
- onfido/models/us_driving_licence_builder.py +2 -2
- onfido/models/us_driving_licence_report.py +2 -2
- onfido/models/us_driving_licence_shared.py +2 -2
- onfido/models/video_reasons.py +2 -2
- onfido/models/watchlist_aml_breakdown.py +2 -2
- onfido/models/watchlist_aml_breakdown_adverse_media.py +2 -2
- onfido/models/watchlist_aml_breakdown_legal_and_regulatory_warnings.py +2 -2
- onfido/models/watchlist_aml_breakdown_politically_exposed_person.py +2 -2
- onfido/models/watchlist_aml_breakdown_sanction.py +2 -2
- onfido/models/watchlist_aml_properties.py +2 -2
- onfido/models/watchlist_aml_report.py +2 -2
- onfido/models/watchlist_enhanced_breakdown.py +2 -2
- onfido/models/watchlist_enhanced_properties.py +2 -2
- onfido/models/watchlist_enhanced_properties_records_inner.py +2 -2
- onfido/models/watchlist_enhanced_properties_records_inner_address_inner.py +2 -2
- onfido/models/watchlist_enhanced_properties_records_inner_alias_inner.py +2 -2
- onfido/models/watchlist_enhanced_properties_records_inner_associate_inner.py +2 -2
- onfido/models/watchlist_enhanced_properties_records_inner_attribute_inner.py +2 -2
- onfido/models/watchlist_enhanced_properties_records_inner_event_inner.py +2 -2
- onfido/models/watchlist_enhanced_properties_records_inner_event_inner_source.py +2 -2
- onfido/models/watchlist_enhanced_properties_records_inner_source_inner.py +2 -2
- onfido/models/watchlist_enhanced_report.py +2 -2
- onfido/models/watchlist_monitor.py +2 -2
- onfido/models/watchlist_monitor_builder.py +2 -2
- onfido/models/watchlist_monitor_match.py +2 -2
- onfido/models/watchlist_monitor_matches_list.py +2 -2
- onfido/models/watchlist_monitor_matches_updater.py +2 -2
- onfido/models/watchlist_monitor_response.py +2 -2
- onfido/models/watchlist_monitor_shared.py +2 -2
- onfido/models/watchlist_monitors_list.py +2 -2
- onfido/models/watchlist_peps_only_report.py +2 -2
- onfido/models/watchlist_sanctions_only_report.py +2 -2
- onfido/models/watchlist_standard_breakdown.py +2 -2
- onfido/models/watchlist_standard_properties.py +2 -2
- onfido/models/watchlist_standard_report.py +2 -2
- onfido/models/webhook.py +2 -2
- onfido/models/webhook_builder.py +2 -2
- onfido/models/webhook_create.py +2 -2
- onfido/models/webhook_event.py +2 -2
- onfido/models/webhook_event_object_status.py +2 -2
- onfido/models/webhook_event_payload.py +2 -2
- onfido/models/webhook_event_payload_object.py +2 -2
- onfido/models/webhook_event_payload_resource.py +6 -4
- onfido/models/webhook_event_resource_type.py +2 -2
- onfido/models/webhook_event_type.py +2 -2
- onfido/models/webhook_resend.py +2 -2
- onfido/models/webhook_response.py +2 -2
- onfido/models/webhook_shared.py +2 -2
- onfido/models/webhook_update.py +2 -2
- onfido/models/webhook_updater.py +2 -2
- onfido/models/webhooks_list.py +2 -2
- onfido/models/webhooks_resend_item.py +2 -2
- onfido/models/workflow_run.py +2 -2
- onfido/models/workflow_run_builder.py +2 -2
- onfido/models/workflow_run_error.py +2 -2
- onfido/models/workflow_run_link.py +2 -2
- onfido/models/workflow_run_request.py +2 -2
- onfido/models/workflow_run_response.py +2 -2
- onfido/models/workflow_run_shared.py +2 -2
- onfido/models/workflow_run_status.py +2 -2
- onfido/rest.py +2 -2
- {onfido_python-5.4.0.dist-info → onfido_python-5.6.0.dist-info}/METADATA +2 -2
- onfido_python-5.6.0.dist-info/RECORD +315 -0
- onfido_python-5.4.0.dist-info/RECORD +0 -311
- {onfido_python-5.4.0.dist-info → onfido_python-5.6.0.dist-info}/WHEEL +0 -0
- {onfido_python-5.4.0.dist-info → onfido_python-5.6.0.dist-info}/licenses/LICENSE +0 -0
- {onfido_python-5.4.0.dist-info → onfido_python-5.6.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Onfido Public API v3.6
|
|
5
|
+
|
|
6
|
+
The Onfido Public API (v3.6)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v3.6
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from onfido.models.idr_ssn_breakdown_breakdown_full_match import IdrSsnBreakdownBreakdownFullMatch
|
|
23
|
+
from onfido.models.idr_ssn_breakdown_breakdown_last4_digits_match import IdrSsnBreakdownBreakdownLast4DigitsMatch
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class IdrSsnBreakdownBreakdown(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
IdrSsnBreakdownBreakdown
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
last_4_digits_match: Optional[IdrSsnBreakdownBreakdownLast4DigitsMatch] = None
|
|
32
|
+
full_match: Optional[IdrSsnBreakdownBreakdownFullMatch] = None
|
|
33
|
+
additional_properties: Dict[str, Any] = {}
|
|
34
|
+
__properties: ClassVar[List[str]] = ["last_4_digits_match", "full_match"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of IdrSsnBreakdownBreakdown from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
"additional_properties",
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
# override the default output from pydantic by calling `to_dict()` of last_4_digits_match
|
|
78
|
+
if self.last_4_digits_match:
|
|
79
|
+
_dict['last_4_digits_match'] = self.last_4_digits_match.to_dict()
|
|
80
|
+
# override the default output from pydantic by calling `to_dict()` of full_match
|
|
81
|
+
if self.full_match:
|
|
82
|
+
_dict['full_match'] = self.full_match.to_dict()
|
|
83
|
+
# puts key-value pairs in additional_properties in the top level
|
|
84
|
+
if self.additional_properties is not None:
|
|
85
|
+
for _key, _value in self.additional_properties.items():
|
|
86
|
+
_dict[_key] = _value
|
|
87
|
+
|
|
88
|
+
return _dict
|
|
89
|
+
|
|
90
|
+
@classmethod
|
|
91
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
92
|
+
"""Create an instance of IdrSsnBreakdownBreakdown from a dict"""
|
|
93
|
+
if obj is None:
|
|
94
|
+
return None
|
|
95
|
+
|
|
96
|
+
if not isinstance(obj, dict):
|
|
97
|
+
return cls.model_validate(obj)
|
|
98
|
+
|
|
99
|
+
_obj = cls.model_validate({
|
|
100
|
+
"last_4_digits_match": IdrSsnBreakdownBreakdownLast4DigitsMatch.from_dict(obj["last_4_digits_match"]) if obj.get("last_4_digits_match") is not None else None,
|
|
101
|
+
"full_match": IdrSsnBreakdownBreakdownFullMatch.from_dict(obj["full_match"]) if obj.get("full_match") is not None else None
|
|
102
|
+
})
|
|
103
|
+
# store additional fields in additional_properties
|
|
104
|
+
for _key in obj.keys():
|
|
105
|
+
if _key not in cls.__properties:
|
|
106
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
107
|
+
|
|
108
|
+
return _obj
|
|
109
|
+
|
|
110
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Onfido Public API v3.6
|
|
5
|
+
|
|
6
|
+
The Onfido Public API (v3.6)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v3.6
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class IdrSsnBreakdownBreakdownFullMatch(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
Social security number fully matches
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
result: Optional[StrictStr] = None
|
|
30
|
+
properties: Optional[Dict[str, Any]] = None
|
|
31
|
+
additional_properties: Dict[str, Any] = {}
|
|
32
|
+
__properties: ClassVar[List[str]] = ["result", "properties"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of IdrSsnBreakdownBreakdownFullMatch from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
"additional_properties",
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
# puts key-value pairs in additional_properties in the top level
|
|
76
|
+
if self.additional_properties is not None:
|
|
77
|
+
for _key, _value in self.additional_properties.items():
|
|
78
|
+
_dict[_key] = _value
|
|
79
|
+
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of IdrSsnBreakdownBreakdownFullMatch from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"result": obj.get("result"),
|
|
93
|
+
"properties": obj.get("properties")
|
|
94
|
+
})
|
|
95
|
+
# store additional fields in additional_properties
|
|
96
|
+
for _key in obj.keys():
|
|
97
|
+
if _key not in cls.__properties:
|
|
98
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
99
|
+
|
|
100
|
+
return _obj
|
|
101
|
+
|
|
102
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Onfido Public API v3.6
|
|
5
|
+
|
|
6
|
+
The Onfido Public API (v3.6)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v3.6
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class IdrSsnBreakdownBreakdownLast4DigitsMatch(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
Last 4 digits of social security number match
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
result: Optional[StrictStr] = None
|
|
30
|
+
properties: Optional[Dict[str, Any]] = None
|
|
31
|
+
additional_properties: Dict[str, Any] = {}
|
|
32
|
+
__properties: ClassVar[List[str]] = ["result", "properties"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of IdrSsnBreakdownBreakdownLast4DigitsMatch from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
"additional_properties",
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
# puts key-value pairs in additional_properties in the top level
|
|
76
|
+
if self.additional_properties is not None:
|
|
77
|
+
for _key, _value in self.additional_properties.items():
|
|
78
|
+
_dict[_key] = _value
|
|
79
|
+
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of IdrSsnBreakdownBreakdownLast4DigitsMatch from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"result": obj.get("result"),
|
|
93
|
+
"properties": obj.get("properties")
|
|
94
|
+
})
|
|
95
|
+
# store additional fields in additional_properties
|
|
96
|
+
for _key in obj.keys():
|
|
97
|
+
if _key not in cls.__properties:
|
|
98
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
99
|
+
|
|
100
|
+
return _obj
|
|
101
|
+
|
|
102
|
+
|
onfido/models/live_photo.py
CHANGED
onfido/models/live_video.py
CHANGED
onfido/models/location.py
CHANGED
onfido/models/location_shared.py
CHANGED
onfido/models/motion_capture.py
CHANGED
onfido/models/photo_reasons.py
CHANGED