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.
Files changed (312) hide show
  1. onfido/__init__.py +7 -3
  2. onfido/api/default_api.py +2 -2
  3. onfido/api_client.py +3 -3
  4. onfido/configuration.py +3 -3
  5. onfido/exceptions.py +2 -2
  6. onfido/models/__init__.py +6 -2
  7. onfido/models/address.py +2 -2
  8. onfido/models/address_builder.py +2 -2
  9. onfido/models/address_shared.py +2 -2
  10. onfido/models/addresses_list.py +2 -2
  11. onfido/models/applicant.py +2 -2
  12. onfido/models/applicant_builder.py +2 -2
  13. onfido/models/applicant_consent.py +2 -2
  14. onfido/models/applicant_consent_builder.py +2 -2
  15. onfido/models/applicant_consent_name.py +2 -2
  16. onfido/models/applicant_create.py +2 -2
  17. onfido/models/applicant_request.py +2 -2
  18. onfido/models/applicant_response.py +2 -2
  19. onfido/models/applicant_shared.py +2 -2
  20. onfido/models/applicant_update.py +2 -2
  21. onfido/models/applicant_updater.py +2 -2
  22. onfido/models/applicants_list.py +2 -2
  23. onfido/models/check.py +2 -2
  24. onfido/models/check_builder.py +2 -2
  25. onfido/models/check_request.py +2 -2
  26. onfido/models/check_response.py +2 -2
  27. onfido/models/check_shared.py +2 -2
  28. onfido/models/check_status.py +2 -2
  29. onfido/models/checks_list.py +2 -2
  30. onfido/models/complete_task_builder.py +2 -2
  31. onfido/models/complete_task_data_builder.py +2 -2
  32. onfido/models/country_codes.py +2 -2
  33. onfido/models/device_intelligence_breakdown.py +2 -2
  34. onfido/models/device_intelligence_breakdown_breakdown.py +2 -2
  35. onfido/models/device_intelligence_breakdown_device.py +2 -2
  36. onfido/models/device_intelligence_breakdown_device_breakdown.py +2 -2
  37. onfido/models/device_intelligence_breakdown_properties.py +2 -2
  38. onfido/models/device_intelligence_breakdown_properties_device.py +2 -2
  39. onfido/models/device_intelligence_breakdown_properties_geolocation.py +2 -2
  40. onfido/models/device_intelligence_breakdown_properties_ip.py +2 -2
  41. onfido/models/device_intelligence_properties.py +2 -2
  42. onfido/models/device_intelligence_report.py +2 -2
  43. onfido/models/document.py +2 -2
  44. onfido/models/document_breakdown.py +2 -2
  45. onfido/models/document_breakdown_age_validation.py +2 -2
  46. onfido/models/document_breakdown_age_validation_breakdown.py +2 -2
  47. onfido/models/document_breakdown_compromised_document.py +2 -2
  48. onfido/models/document_breakdown_compromised_document_breakdown.py +2 -2
  49. onfido/models/document_breakdown_data_comparison.py +2 -2
  50. onfido/models/document_breakdown_data_comparison_breakdown.py +2 -2
  51. onfido/models/document_breakdown_data_comparison_breakdown_issuing_country.py +2 -2
  52. onfido/models/document_breakdown_data_consistency.py +2 -2
  53. onfido/models/document_breakdown_data_consistency_breakdown.py +2 -2
  54. onfido/models/document_breakdown_data_validation.py +2 -2
  55. onfido/models/document_breakdown_data_validation_breakdown.py +2 -2
  56. onfido/models/document_breakdown_data_validation_breakdown_document_expiration.py +2 -2
  57. onfido/models/document_breakdown_data_validation_breakdown_expiry_date.py +2 -2
  58. onfido/models/document_breakdown_image_integrity.py +2 -2
  59. onfido/models/document_breakdown_image_integrity_breakdown.py +2 -2
  60. onfido/models/document_breakdown_image_integrity_breakdown_colour_picture.py +2 -2
  61. onfido/models/document_breakdown_image_integrity_breakdown_conclusive_document_quality.py +2 -2
  62. onfido/models/document_breakdown_image_integrity_breakdown_image_quality.py +2 -2
  63. onfido/models/document_breakdown_image_integrity_breakdown_supported_document.py +2 -2
  64. onfido/models/document_breakdown_issuing_authority.py +2 -2
  65. onfido/models/document_breakdown_issuing_authority_breakdown.py +2 -2
  66. onfido/models/document_breakdown_issuing_authority_breakdown_nfc_active_authentication.py +2 -2
  67. onfido/models/document_breakdown_issuing_authority_breakdown_nfc_passive_authentication.py +2 -2
  68. onfido/models/document_breakdown_police_record.py +2 -2
  69. onfido/models/document_breakdown_visual_authenticity.py +2 -2
  70. onfido/models/document_breakdown_visual_authenticity_breakdown.py +2 -2
  71. onfido/models/document_breakdown_visual_authenticity_breakdown_digital_tampering.py +2 -2
  72. onfido/models/document_breakdown_visual_authenticity_breakdown_face_detection.py +2 -2
  73. onfido/models/document_breakdown_visual_authenticity_breakdown_fonts.py +2 -2
  74. onfido/models/document_breakdown_visual_authenticity_breakdown_original_document_present.py +2 -2
  75. onfido/models/document_breakdown_visual_authenticity_breakdown_other.py +2 -2
  76. onfido/models/document_breakdown_visual_authenticity_breakdown_picture_face_integrity.py +2 -2
  77. onfido/models/document_breakdown_visual_authenticity_breakdown_security_features.py +2 -2
  78. onfido/models/document_breakdown_visual_authenticity_breakdown_template.py +2 -2
  79. onfido/models/document_cdq_reasons.py +2 -2
  80. onfido/models/document_iq_reasons.py +2 -2
  81. onfido/models/document_odp_reasons.py +2 -2
  82. onfido/models/document_properties.py +2 -2
  83. onfido/models/document_properties_address_lines.py +2 -2
  84. onfido/models/document_properties_barcode_inner.py +2 -2
  85. onfido/models/document_properties_document_classification.py +2 -2
  86. onfido/models/document_properties_document_numbers_inner.py +2 -2
  87. onfido/models/document_properties_driving_licence_information_item.py +2 -2
  88. onfido/models/document_properties_extracted_data.py +2 -2
  89. onfido/models/document_properties_nfc.py +2 -2
  90. onfido/models/document_report.py +2 -2
  91. onfido/models/document_report_shared.py +2 -2
  92. onfido/models/document_response.py +2 -2
  93. onfido/models/document_shared.py +2 -2
  94. onfido/models/document_types.py +2 -2
  95. onfido/models/document_video_report.py +2 -2
  96. onfido/models/document_video_with_address_information_report.py +2 -2
  97. onfido/models/document_with_address_information_report.py +2 -2
  98. onfido/models/document_with_driver_verification_report.py +2 -2
  99. onfido/models/document_with_driver_verification_report_all_of_properties.py +2 -2
  100. onfido/models/document_with_driver_verification_report_all_of_properties_all_of_passenger_vehicle.py +2 -2
  101. onfido/models/document_with_driver_verification_report_all_of_properties_all_of_vehicle_class_details_inner.py +2 -2
  102. onfido/models/document_with_driving_licence_information_report.py +2 -2
  103. onfido/models/documents_list.py +2 -2
  104. onfido/models/error.py +2 -2
  105. onfido/models/error1.py +2 -2
  106. onfido/models/error_properties.py +2 -2
  107. onfido/models/error_properties1.py +2 -2
  108. onfido/models/extract_request.py +2 -2
  109. onfido/models/extraction.py +2 -2
  110. onfido/models/extraction_document_classification.py +4 -4
  111. onfido/models/extraction_extracted_data.py +2 -2
  112. onfido/models/facial_similarity_motion_breakdown.py +2 -2
  113. onfido/models/facial_similarity_motion_breakdown_face_comparison.py +2 -2
  114. onfido/models/facial_similarity_motion_breakdown_image_integrity.py +2 -2
  115. onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown.py +2 -2
  116. onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown_face_detected.py +2 -2
  117. onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown_source_integrity.py +2 -2
  118. onfido/models/facial_similarity_motion_breakdown_visual_authenticity.py +2 -2
  119. onfido/models/facial_similarity_motion_breakdown_visual_authenticity_breakdown.py +2 -2
  120. onfido/models/facial_similarity_motion_breakdown_visual_authenticity_breakdown_spoofing_detection.py +2 -2
  121. onfido/models/facial_similarity_motion_properties.py +2 -2
  122. onfido/models/facial_similarity_motion_report.py +2 -2
  123. onfido/models/facial_similarity_photo_breakdown.py +2 -2
  124. onfido/models/facial_similarity_photo_breakdown_face_comparison.py +2 -2
  125. onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown.py +2 -2
  126. onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown_face_match.py +2 -2
  127. onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown_face_match_properties.py +2 -2
  128. onfido/models/facial_similarity_photo_breakdown_image_integrity.py +2 -2
  129. onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown.py +2 -2
  130. onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown_face_detected.py +2 -2
  131. onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown_source_integrity.py +2 -2
  132. onfido/models/facial_similarity_photo_breakdown_visual_authenticity.py +2 -2
  133. onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown.py +2 -2
  134. onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown_spoofing_detection.py +2 -2
  135. onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown_spoofing_detection_properties.py +2 -2
  136. onfido/models/facial_similarity_photo_fully_auto_breakdown.py +2 -2
  137. onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity.py +2 -2
  138. onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity_breakdown.py +2 -2
  139. onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity_breakdown_source_integrity.py +2 -2
  140. onfido/models/facial_similarity_photo_fully_auto_properties.py +2 -2
  141. onfido/models/facial_similarity_photo_fully_auto_report.py +2 -2
  142. onfido/models/facial_similarity_photo_properties.py +2 -2
  143. onfido/models/facial_similarity_photo_report.py +2 -2
  144. onfido/models/facial_similarity_report_media.py +2 -2
  145. onfido/models/facial_similarity_report_shared.py +2 -2
  146. onfido/models/facial_similarity_video_breakdown.py +2 -2
  147. onfido/models/facial_similarity_video_breakdown_face_comparison.py +2 -2
  148. onfido/models/facial_similarity_video_breakdown_image_integrity.py +2 -2
  149. onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown.py +2 -2
  150. onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown_face_detected.py +2 -2
  151. onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown_source_integrity.py +2 -2
  152. onfido/models/facial_similarity_video_breakdown_visual_authenticity.py +2 -2
  153. onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown.py +2 -2
  154. onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_liveness_detected.py +2 -2
  155. onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_spoofing_detection.py +2 -2
  156. onfido/models/facial_similarity_video_properties.py +2 -2
  157. onfido/models/facial_similarity_video_report.py +2 -2
  158. onfido/models/id_number.py +2 -2
  159. onfido/models/id_photo.py +2 -2
  160. onfido/models/id_photo_response.py +2 -2
  161. onfido/models/id_photos_list.py +2 -2
  162. onfido/models/identity_enhanced_breakdown.py +15 -4
  163. onfido/models/identity_enhanced_breakdown_address.py +2 -2
  164. onfido/models/identity_enhanced_breakdown_address_breakdown.py +2 -2
  165. onfido/models/identity_enhanced_breakdown_address_breakdown_credit_agencies.py +2 -2
  166. onfido/models/identity_enhanced_breakdown_address_breakdown_credit_agencies_properties.py +2 -2
  167. onfido/models/identity_enhanced_breakdown_address_breakdown_telephone_database.py +2 -2
  168. onfido/models/identity_enhanced_breakdown_address_breakdown_voting_register.py +2 -2
  169. onfido/models/identity_enhanced_breakdown_date_of_birth.py +2 -2
  170. onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown.py +2 -2
  171. onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown_credit_agencies.py +2 -2
  172. onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown_voting_register.py +2 -2
  173. onfido/models/identity_enhanced_breakdown_mortality.py +2 -2
  174. onfido/models/identity_enhanced_breakdown_sources.py +2 -2
  175. onfido/models/identity_enhanced_breakdown_sources_breakdown.py +2 -2
  176. onfido/models/identity_enhanced_breakdown_sources_breakdown_total_sources.py +2 -2
  177. onfido/models/identity_enhanced_breakdown_sources_breakdown_total_sources_properties.py +2 -2
  178. onfido/models/identity_enhanced_properties.py +2 -2
  179. onfido/models/identity_enhanced_properties_matched_addresses_inner.py +2 -2
  180. onfido/models/identity_enhanced_report.py +2 -2
  181. onfido/models/idr_ssn_breakdown.py +106 -0
  182. onfido/models/idr_ssn_breakdown_breakdown.py +110 -0
  183. onfido/models/idr_ssn_breakdown_breakdown_full_match.py +102 -0
  184. onfido/models/idr_ssn_breakdown_breakdown_last4_digits_match.py +102 -0
  185. onfido/models/india_pan_report.py +2 -2
  186. onfido/models/india_pan_report_all_of_breakdown.py +2 -2
  187. onfido/models/india_pan_report_all_of_breakdown_device.py +2 -2
  188. onfido/models/india_pan_report_all_of_breakdown_device_breakdown.py +2 -2
  189. onfido/models/india_pan_report_all_of_breakdown_device_breakdown_pan_valid.py +2 -2
  190. onfido/models/india_pan_report_all_of_properties.py +2 -2
  191. onfido/models/india_pan_report_all_of_properties_device.py +2 -2
  192. onfido/models/known_faces_breakdown.py +2 -2
  193. onfido/models/known_faces_breakdown_image_integrity.py +2 -2
  194. onfido/models/known_faces_breakdown_previously_seen_faces.py +2 -2
  195. onfido/models/known_faces_properties.py +2 -2
  196. onfido/models/known_faces_properties_matches_inner.py +2 -2
  197. onfido/models/known_faces_report.py +2 -2
  198. onfido/models/live_photo.py +2 -2
  199. onfido/models/live_photo_response.py +2 -2
  200. onfido/models/live_photos_list.py +2 -2
  201. onfido/models/live_video.py +2 -2
  202. onfido/models/live_videos_list.py +2 -2
  203. onfido/models/location.py +2 -2
  204. onfido/models/location_builder.py +2 -2
  205. onfido/models/location_shared.py +2 -2
  206. onfido/models/motion_capture.py +2 -2
  207. onfido/models/motion_captures_list.py +2 -2
  208. onfido/models/photo_auto_reasons.py +2 -2
  209. onfido/models/photo_reasons.py +2 -2
  210. onfido/models/proof_of_address_breakdown.py +2 -2
  211. onfido/models/proof_of_address_breakdown_data_comparison.py +2 -2
  212. onfido/models/proof_of_address_breakdown_data_comparison_breakdown.py +2 -2
  213. onfido/models/proof_of_address_breakdown_document_classification.py +2 -2
  214. onfido/models/proof_of_address_breakdown_document_classification_breakdown.py +2 -2
  215. onfido/models/proof_of_address_breakdown_image_integrity.py +2 -2
  216. onfido/models/proof_of_address_breakdown_image_integrity_breakdown.py +2 -2
  217. onfido/models/proof_of_address_properties.py +4 -4
  218. onfido/models/proof_of_address_report.py +2 -2
  219. onfido/models/repeat_attempts_list.py +2 -2
  220. onfido/models/repeat_attempts_list_repeat_attempts_inner.py +2 -2
  221. onfido/models/report.py +2 -2
  222. onfido/models/report_configuration.py +2 -2
  223. onfido/models/report_configuration_facial_similarity.py +2 -2
  224. onfido/models/report_document.py +2 -2
  225. onfido/models/report_name.py +2 -2
  226. onfido/models/report_result.py +2 -2
  227. onfido/models/report_shared.py +2 -2
  228. onfido/models/report_status.py +2 -2
  229. onfido/models/report_sub_result.py +2 -2
  230. onfido/models/reports_list.py +2 -2
  231. onfido/models/results_feedback.py +2 -2
  232. onfido/models/sdk_token.py +2 -2
  233. onfido/models/sdk_token_builder.py +2 -2
  234. onfido/models/sdk_token_request.py +2 -2
  235. onfido/models/sdk_token_response.py +2 -2
  236. onfido/models/task.py +2 -2
  237. onfido/models/task_item.py +2 -2
  238. onfido/models/timeline_file_reference.py +2 -2
  239. onfido/models/us_driving_licence_breakdown.py +2 -2
  240. onfido/models/us_driving_licence_breakdown_address.py +2 -2
  241. onfido/models/us_driving_licence_breakdown_address_breakdown.py +2 -2
  242. onfido/models/us_driving_licence_breakdown_document.py +2 -2
  243. onfido/models/us_driving_licence_breakdown_document_breakdown.py +2 -2
  244. onfido/models/us_driving_licence_breakdown_personal.py +2 -2
  245. onfido/models/us_driving_licence_breakdown_personal_breakdown.py +2 -2
  246. onfido/models/us_driving_licence_builder.py +2 -2
  247. onfido/models/us_driving_licence_report.py +2 -2
  248. onfido/models/us_driving_licence_shared.py +2 -2
  249. onfido/models/video_reasons.py +2 -2
  250. onfido/models/watchlist_aml_breakdown.py +2 -2
  251. onfido/models/watchlist_aml_breakdown_adverse_media.py +2 -2
  252. onfido/models/watchlist_aml_breakdown_legal_and_regulatory_warnings.py +2 -2
  253. onfido/models/watchlist_aml_breakdown_politically_exposed_person.py +2 -2
  254. onfido/models/watchlist_aml_breakdown_sanction.py +2 -2
  255. onfido/models/watchlist_aml_properties.py +2 -2
  256. onfido/models/watchlist_aml_report.py +2 -2
  257. onfido/models/watchlist_enhanced_breakdown.py +2 -2
  258. onfido/models/watchlist_enhanced_properties.py +2 -2
  259. onfido/models/watchlist_enhanced_properties_records_inner.py +2 -2
  260. onfido/models/watchlist_enhanced_properties_records_inner_address_inner.py +2 -2
  261. onfido/models/watchlist_enhanced_properties_records_inner_alias_inner.py +2 -2
  262. onfido/models/watchlist_enhanced_properties_records_inner_associate_inner.py +2 -2
  263. onfido/models/watchlist_enhanced_properties_records_inner_attribute_inner.py +2 -2
  264. onfido/models/watchlist_enhanced_properties_records_inner_event_inner.py +2 -2
  265. onfido/models/watchlist_enhanced_properties_records_inner_event_inner_source.py +2 -2
  266. onfido/models/watchlist_enhanced_properties_records_inner_source_inner.py +2 -2
  267. onfido/models/watchlist_enhanced_report.py +2 -2
  268. onfido/models/watchlist_monitor.py +2 -2
  269. onfido/models/watchlist_monitor_builder.py +2 -2
  270. onfido/models/watchlist_monitor_match.py +2 -2
  271. onfido/models/watchlist_monitor_matches_list.py +2 -2
  272. onfido/models/watchlist_monitor_matches_updater.py +2 -2
  273. onfido/models/watchlist_monitor_response.py +2 -2
  274. onfido/models/watchlist_monitor_shared.py +2 -2
  275. onfido/models/watchlist_monitors_list.py +2 -2
  276. onfido/models/watchlist_peps_only_report.py +2 -2
  277. onfido/models/watchlist_sanctions_only_report.py +2 -2
  278. onfido/models/watchlist_standard_breakdown.py +2 -2
  279. onfido/models/watchlist_standard_properties.py +2 -2
  280. onfido/models/watchlist_standard_report.py +2 -2
  281. onfido/models/webhook.py +2 -2
  282. onfido/models/webhook_builder.py +2 -2
  283. onfido/models/webhook_create.py +2 -2
  284. onfido/models/webhook_event.py +2 -2
  285. onfido/models/webhook_event_object_status.py +2 -2
  286. onfido/models/webhook_event_payload.py +2 -2
  287. onfido/models/webhook_event_payload_object.py +2 -2
  288. onfido/models/webhook_event_payload_resource.py +6 -4
  289. onfido/models/webhook_event_resource_type.py +2 -2
  290. onfido/models/webhook_event_type.py +2 -2
  291. onfido/models/webhook_resend.py +2 -2
  292. onfido/models/webhook_response.py +2 -2
  293. onfido/models/webhook_shared.py +2 -2
  294. onfido/models/webhook_update.py +2 -2
  295. onfido/models/webhook_updater.py +2 -2
  296. onfido/models/webhooks_list.py +2 -2
  297. onfido/models/webhooks_resend_item.py +2 -2
  298. onfido/models/workflow_run.py +2 -2
  299. onfido/models/workflow_run_builder.py +2 -2
  300. onfido/models/workflow_run_error.py +2 -2
  301. onfido/models/workflow_run_link.py +2 -2
  302. onfido/models/workflow_run_request.py +2 -2
  303. onfido/models/workflow_run_response.py +2 -2
  304. onfido/models/workflow_run_shared.py +2 -2
  305. onfido/models/workflow_run_status.py +2 -2
  306. onfido/rest.py +2 -2
  307. {onfido_python-5.4.0.dist-info → onfido_python-5.6.0.dist-info}/METADATA +2 -2
  308. onfido_python-5.6.0.dist-info/RECORD +315 -0
  309. onfido_python-5.4.0.dist-info/RECORD +0 -311
  310. {onfido_python-5.4.0.dist-info → onfido_python-5.6.0.dist-info}/WHEEL +0 -0
  311. {onfido_python-5.4.0.dist-info → onfido_python-5.6.0.dist-info}/licenses/LICENSE +0 -0
  312. {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
+
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
onfido/models/location.py CHANGED
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Onfido API v3.6
4
+ Onfido Public API v3.6
5
5
 
6
- The Onfido API (v3.6)
6
+ The Onfido Public API (v3.6)
7
7
 
8
8
  The version of the OpenAPI document: v3.6
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)