onfido-python 4.6.0__py3-none-any.whl → 5.1.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 (81) hide show
  1. onfido/__init__.py +7 -4
  2. onfido/api/default_api.py +541 -0
  3. onfido/api_client.py +2 -2
  4. onfido/configuration.py +151 -39
  5. onfido/exceptions.py +17 -0
  6. onfido/models/__init__.py +6 -3
  7. onfido/models/applicant_consent.py +111 -0
  8. onfido/models/applicant_consent_name.py +1 -0
  9. onfido/models/check.py +2 -2
  10. onfido/models/check_response.py +2 -2
  11. onfido/models/check_status.py +1 -0
  12. onfido/models/country_codes.py +1 -0
  13. onfido/models/device_intelligence_breakdown.py +7 -1
  14. onfido/models/device_intelligence_breakdown_breakdown.py +3 -3
  15. onfido/models/{device_intelligence_breakdown_breakdown_device.py → device_intelligence_breakdown_device.py} +6 -6
  16. onfido/models/{device_intelligence_breakdown_breakdown_device_breakdown.py → device_intelligence_breakdown_device_breakdown.py} +4 -4
  17. onfido/models/device_intelligence_breakdown_properties_device.py +13 -13
  18. onfido/models/device_intelligence_properties.py +116 -0
  19. onfido/models/device_intelligence_report.py +8 -12
  20. onfido/models/document.py +2 -12
  21. onfido/models/document_properties.py +15 -11
  22. onfido/models/{document_properties_driving_licence_information.py → document_properties_driving_licence_information_item.py} +4 -4
  23. onfido/models/document_report.py +3 -3
  24. onfido/models/document_report_shared.py +108 -0
  25. onfido/models/document_shared.py +2 -12
  26. onfido/models/document_types.py +1 -0
  27. onfido/models/document_video_report.py +3 -3
  28. onfido/models/document_video_with_address_information_report.py +3 -3
  29. onfido/models/document_with_address_information_report.py +3 -3
  30. onfido/models/document_with_driver_verification_report.py +3 -3
  31. onfido/models/document_with_driver_verification_report_all_of_properties.py +15 -11
  32. onfido/models/document_with_driving_licence_information_report.py +3 -3
  33. onfido/models/extraction_document_classification.py +2 -2
  34. onfido/models/extraction_extracted_data.py +2 -2
  35. onfido/models/facial_similarity_motion_report.py +3 -3
  36. onfido/models/facial_similarity_photo_fully_auto_report.py +3 -3
  37. onfido/models/facial_similarity_photo_report.py +3 -3
  38. onfido/models/facial_similarity_report_shared.py +11 -1
  39. onfido/models/facial_similarity_video_report.py +3 -3
  40. onfido/models/id_number.py +2 -2
  41. onfido/models/identity_enhanced_report.py +1 -11
  42. onfido/models/india_pan_report.py +1 -11
  43. onfido/models/known_faces_report.py +1 -11
  44. onfido/models/proof_of_address_properties.py +2 -2
  45. onfido/models/proof_of_address_report.py +1 -11
  46. onfido/models/repeat_attempts_list_repeat_attempts_inner.py +6 -6
  47. onfido/models/report_name.py +1 -0
  48. onfido/models/report_result.py +1 -0
  49. onfido/models/report_shared.py +1 -11
  50. onfido/models/report_status.py +1 -0
  51. onfido/models/report_sub_result.py +1 -0
  52. onfido/models/results_feedback.py +2 -2
  53. onfido/models/us_driving_licence_builder.py +6 -6
  54. onfido/models/us_driving_licence_report.py +1 -11
  55. onfido/models/us_driving_licence_shared.py +6 -6
  56. onfido/models/watchlist_aml_properties.py +2 -2
  57. onfido/models/watchlist_aml_report.py +1 -11
  58. onfido/models/watchlist_enhanced_report.py +1 -11
  59. onfido/models/watchlist_monitor.py +2 -2
  60. onfido/models/watchlist_monitor_builder.py +2 -2
  61. onfido/models/watchlist_monitor_shared.py +2 -2
  62. onfido/models/watchlist_peps_only_report.py +1 -11
  63. onfido/models/watchlist_sanctions_only_report.py +1 -11
  64. onfido/models/watchlist_standard_properties.py +2 -2
  65. onfido/models/watchlist_standard_report.py +1 -11
  66. onfido/models/webhook.py +11 -1
  67. onfido/models/webhook_builder.py +11 -1
  68. onfido/models/webhook_event_object_status.py +1 -0
  69. onfido/models/webhook_event_payload_object.py +1 -1
  70. onfido/models/webhook_event_resource_type.py +1 -0
  71. onfido/models/webhook_event_type.py +1 -1
  72. onfido/models/webhook_shared.py +12 -2
  73. onfido/models/webhook_updater.py +11 -1
  74. onfido/models/workflow_run_link.py +2 -2
  75. onfido/models/workflow_run_status.py +1 -0
  76. onfido/webhook_event_verifier.py +3 -2
  77. {onfido_python-4.6.0.dist-info → onfido_python-5.1.0.dist-info}/METADATA +3 -2
  78. {onfido_python-4.6.0.dist-info → onfido_python-5.1.0.dist-info}/RECORD +81 -78
  79. {onfido_python-4.6.0.dist-info → onfido_python-5.1.0.dist-info}/WHEEL +1 -1
  80. {onfido_python-4.6.0.dist-info → onfido_python-5.1.0.dist-info/licenses}/LICENSE +0 -0
  81. {onfido_python-4.6.0.dist-info → onfido_python-5.1.0.dist-info}/top_level.txt +0 -0
onfido/__init__.py CHANGED
@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "4.6.0"
17
+ __version__ = "5.1.0"
18
18
 
19
19
  # import apis into sdk package
20
20
  from onfido.api.default_api import DefaultApi
@@ -37,6 +37,7 @@ from onfido.models.address_shared import AddressShared
37
37
  from onfido.models.addresses_list import AddressesList
38
38
  from onfido.models.applicant import Applicant
39
39
  from onfido.models.applicant_builder import ApplicantBuilder
40
+ from onfido.models.applicant_consent import ApplicantConsent
40
41
  from onfido.models.applicant_consent_builder import ApplicantConsentBuilder
41
42
  from onfido.models.applicant_consent_name import ApplicantConsentName
42
43
  from onfido.models.applicant_create import ApplicantCreate
@@ -58,12 +59,13 @@ from onfido.models.complete_task_data_builder import CompleteTaskDataBuilder
58
59
  from onfido.models.country_codes import CountryCodes
59
60
  from onfido.models.device_intelligence_breakdown import DeviceIntelligenceBreakdown
60
61
  from onfido.models.device_intelligence_breakdown_breakdown import DeviceIntelligenceBreakdownBreakdown
61
- from onfido.models.device_intelligence_breakdown_breakdown_device import DeviceIntelligenceBreakdownBreakdownDevice
62
- from onfido.models.device_intelligence_breakdown_breakdown_device_breakdown import DeviceIntelligenceBreakdownBreakdownDeviceBreakdown
62
+ from onfido.models.device_intelligence_breakdown_device import DeviceIntelligenceBreakdownDevice
63
+ from onfido.models.device_intelligence_breakdown_device_breakdown import DeviceIntelligenceBreakdownDeviceBreakdown
63
64
  from onfido.models.device_intelligence_breakdown_properties import DeviceIntelligenceBreakdownProperties
64
65
  from onfido.models.device_intelligence_breakdown_properties_device import DeviceIntelligenceBreakdownPropertiesDevice
65
66
  from onfido.models.device_intelligence_breakdown_properties_geolocation import DeviceIntelligenceBreakdownPropertiesGeolocation
66
67
  from onfido.models.device_intelligence_breakdown_properties_ip import DeviceIntelligenceBreakdownPropertiesIp
68
+ from onfido.models.device_intelligence_properties import DeviceIntelligenceProperties
67
69
  from onfido.models.device_intelligence_report import DeviceIntelligenceReport
68
70
  from onfido.models.document import Document
69
71
  from onfido.models.document_breakdown import DocumentBreakdown
@@ -109,10 +111,11 @@ from onfido.models.document_properties_address_lines import DocumentPropertiesAd
109
111
  from onfido.models.document_properties_barcode_inner import DocumentPropertiesBarcodeInner
110
112
  from onfido.models.document_properties_document_classification import DocumentPropertiesDocumentClassification
111
113
  from onfido.models.document_properties_document_numbers_inner import DocumentPropertiesDocumentNumbersInner
112
- from onfido.models.document_properties_driving_licence_information import DocumentPropertiesDrivingLicenceInformation
114
+ from onfido.models.document_properties_driving_licence_information_item import DocumentPropertiesDrivingLicenceInformationItem
113
115
  from onfido.models.document_properties_extracted_data import DocumentPropertiesExtractedData
114
116
  from onfido.models.document_properties_nfc import DocumentPropertiesNfc
115
117
  from onfido.models.document_report import DocumentReport
118
+ from onfido.models.document_report_shared import DocumentReportShared
116
119
  from onfido.models.document_response import DocumentResponse
117
120
  from onfido.models.document_shared import DocumentShared
118
121
  from onfido.models.document_types import DocumentTypes
onfido/api/default_api.py CHANGED
@@ -23,6 +23,7 @@ from typing_extensions import Annotated
23
23
  from onfido.models.addresses_list import AddressesList
24
24
  from onfido.models.applicant import Applicant
25
25
  from onfido.models.applicant_builder import ApplicantBuilder
26
+ from onfido.models.applicant_consent import ApplicantConsent
26
27
  from onfido.models.applicant_updater import ApplicantUpdater
27
28
  from onfido.models.applicants_list import ApplicantsList
28
29
  from onfido.models.check import Check
@@ -5684,6 +5685,268 @@ class DefaultApi:
5684
5685
 
5685
5686
 
5686
5687
 
5688
+ @validate_call
5689
+ def download_nfc_face(
5690
+ self,
5691
+ document_id: StrictStr,
5692
+ _request_timeout: Union[
5693
+ None,
5694
+ Annotated[StrictFloat, Field(gt=0)],
5695
+ Tuple[
5696
+ Annotated[StrictFloat, Field(gt=0)],
5697
+ Annotated[StrictFloat, Field(gt=0)]
5698
+ ]
5699
+ ] = None,
5700
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5701
+ _content_type: Optional[StrictStr] = None,
5702
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5703
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5704
+ ) -> bytearray:
5705
+ """Download NFC face
5706
+
5707
+ Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
5708
+
5709
+ :param document_id: (required)
5710
+ :type document_id: str
5711
+ :param _request_timeout: timeout setting for this request. If one
5712
+ number provided, it will be total request
5713
+ timeout. It can also be a pair (tuple) of
5714
+ (connection, read) timeouts.
5715
+ :type _request_timeout: int, tuple(int, int), optional
5716
+ :param _request_auth: set to override the auth_settings for an a single
5717
+ request; this effectively ignores the
5718
+ authentication in the spec for a single request.
5719
+ :type _request_auth: dict, optional
5720
+ :param _content_type: force content-type for the request.
5721
+ :type _content_type: str, Optional
5722
+ :param _headers: set to override the headers for a single
5723
+ request; this effectively ignores the headers
5724
+ in the spec for a single request.
5725
+ :type _headers: dict, optional
5726
+ :param _host_index: set to override the host_index for a single
5727
+ request; this effectively ignores the host_index
5728
+ in the spec for a single request.
5729
+ :type _host_index: int, optional
5730
+ :return: Returns the result object.
5731
+ """ # noqa: E501
5732
+
5733
+ _param = self._download_nfc_face_serialize(
5734
+ document_id=document_id,
5735
+ _request_auth=_request_auth,
5736
+ _content_type=_content_type,
5737
+ _headers=_headers,
5738
+ _host_index=_host_index
5739
+ )
5740
+
5741
+ _response_types_map: Dict[str, Optional[str]] = {
5742
+ '200': "bytearray",
5743
+ }
5744
+ response_data = self.api_client.call_api(
5745
+ *_param,
5746
+ _request_timeout=_request_timeout
5747
+ )
5748
+ response_data.read()
5749
+ return self.api_client.response_deserialize(
5750
+ response_data=response_data,
5751
+ response_types_map=_response_types_map,
5752
+ ).data
5753
+
5754
+
5755
+ @validate_call
5756
+ def download_nfc_face_with_http_info(
5757
+ self,
5758
+ document_id: StrictStr,
5759
+ _request_timeout: Union[
5760
+ None,
5761
+ Annotated[StrictFloat, Field(gt=0)],
5762
+ Tuple[
5763
+ Annotated[StrictFloat, Field(gt=0)],
5764
+ Annotated[StrictFloat, Field(gt=0)]
5765
+ ]
5766
+ ] = None,
5767
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5768
+ _content_type: Optional[StrictStr] = None,
5769
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5770
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5771
+ ) -> ApiResponse[bytearray]:
5772
+ """Download NFC face
5773
+
5774
+ Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
5775
+
5776
+ :param document_id: (required)
5777
+ :type document_id: str
5778
+ :param _request_timeout: timeout setting for this request. If one
5779
+ number provided, it will be total request
5780
+ timeout. It can also be a pair (tuple) of
5781
+ (connection, read) timeouts.
5782
+ :type _request_timeout: int, tuple(int, int), optional
5783
+ :param _request_auth: set to override the auth_settings for an a single
5784
+ request; this effectively ignores the
5785
+ authentication in the spec for a single request.
5786
+ :type _request_auth: dict, optional
5787
+ :param _content_type: force content-type for the request.
5788
+ :type _content_type: str, Optional
5789
+ :param _headers: set to override the headers for a single
5790
+ request; this effectively ignores the headers
5791
+ in the spec for a single request.
5792
+ :type _headers: dict, optional
5793
+ :param _host_index: set to override the host_index for a single
5794
+ request; this effectively ignores the host_index
5795
+ in the spec for a single request.
5796
+ :type _host_index: int, optional
5797
+ :return: Returns the result object.
5798
+ """ # noqa: E501
5799
+
5800
+ _param = self._download_nfc_face_serialize(
5801
+ document_id=document_id,
5802
+ _request_auth=_request_auth,
5803
+ _content_type=_content_type,
5804
+ _headers=_headers,
5805
+ _host_index=_host_index
5806
+ )
5807
+
5808
+ _response_types_map: Dict[str, Optional[str]] = {
5809
+ '200': "bytearray",
5810
+ }
5811
+ response_data = self.api_client.call_api(
5812
+ *_param,
5813
+ _request_timeout=_request_timeout
5814
+ )
5815
+ response_data.read()
5816
+ return self.api_client.response_deserialize(
5817
+ response_data=response_data,
5818
+ response_types_map=_response_types_map,
5819
+ )
5820
+
5821
+
5822
+ @validate_call
5823
+ def download_nfc_face_without_preload_content(
5824
+ self,
5825
+ document_id: StrictStr,
5826
+ _request_timeout: Union[
5827
+ None,
5828
+ Annotated[StrictFloat, Field(gt=0)],
5829
+ Tuple[
5830
+ Annotated[StrictFloat, Field(gt=0)],
5831
+ Annotated[StrictFloat, Field(gt=0)]
5832
+ ]
5833
+ ] = None,
5834
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5835
+ _content_type: Optional[StrictStr] = None,
5836
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5837
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5838
+ ) -> RESTResponseType:
5839
+ """Download NFC face
5840
+
5841
+ Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
5842
+
5843
+ :param document_id: (required)
5844
+ :type document_id: str
5845
+ :param _request_timeout: timeout setting for this request. If one
5846
+ number provided, it will be total request
5847
+ timeout. It can also be a pair (tuple) of
5848
+ (connection, read) timeouts.
5849
+ :type _request_timeout: int, tuple(int, int), optional
5850
+ :param _request_auth: set to override the auth_settings for an a single
5851
+ request; this effectively ignores the
5852
+ authentication in the spec for a single request.
5853
+ :type _request_auth: dict, optional
5854
+ :param _content_type: force content-type for the request.
5855
+ :type _content_type: str, Optional
5856
+ :param _headers: set to override the headers for a single
5857
+ request; this effectively ignores the headers
5858
+ in the spec for a single request.
5859
+ :type _headers: dict, optional
5860
+ :param _host_index: set to override the host_index for a single
5861
+ request; this effectively ignores the host_index
5862
+ in the spec for a single request.
5863
+ :type _host_index: int, optional
5864
+ :return: Returns the result object.
5865
+ """ # noqa: E501
5866
+
5867
+ _param = self._download_nfc_face_serialize(
5868
+ document_id=document_id,
5869
+ _request_auth=_request_auth,
5870
+ _content_type=_content_type,
5871
+ _headers=_headers,
5872
+ _host_index=_host_index
5873
+ )
5874
+
5875
+ _response_types_map: Dict[str, Optional[str]] = {
5876
+ '200': "bytearray",
5877
+ }
5878
+ response_data = self.api_client.call_api(
5879
+ *_param,
5880
+ _request_timeout=_request_timeout
5881
+ )
5882
+ return response_data.response
5883
+
5884
+
5885
+ def _download_nfc_face_serialize(
5886
+ self,
5887
+ document_id,
5888
+ _request_auth,
5889
+ _content_type,
5890
+ _headers,
5891
+ _host_index,
5892
+ ) -> RequestSerialized:
5893
+
5894
+ _host = None
5895
+
5896
+ _collection_formats: Dict[str, str] = {
5897
+ }
5898
+
5899
+ _path_params: Dict[str, str] = {}
5900
+ _query_params: List[Tuple[str, str]] = []
5901
+ _header_params: Dict[str, Optional[str]] = _headers or {}
5902
+ _form_params: List[Tuple[str, str]] = []
5903
+ _files: Dict[
5904
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
5905
+ ] = {}
5906
+ _body_params: Optional[bytes] = None
5907
+
5908
+ # process the path parameters
5909
+ if document_id is not None:
5910
+ _path_params['document_id'] = document_id
5911
+ # process the query parameters
5912
+ # process the header parameters
5913
+ # process the form parameters
5914
+ # process the body parameter
5915
+
5916
+
5917
+ # set the HTTP header `Accept`
5918
+ if 'Accept' not in _header_params:
5919
+ _header_params['Accept'] = self.api_client.select_header_accept(
5920
+ [
5921
+ '*/*',
5922
+ 'application/json'
5923
+ ]
5924
+ )
5925
+
5926
+
5927
+ # authentication setting
5928
+ _auth_settings: List[str] = [
5929
+ 'Token'
5930
+ ]
5931
+
5932
+ return self.api_client.param_serialize(
5933
+ method='GET',
5934
+ resource_path='/documents/{document_id}/nfc_face',
5935
+ path_params=_path_params,
5936
+ query_params=_query_params,
5937
+ header_params=_header_params,
5938
+ body=_body_params,
5939
+ post_params=_form_params,
5940
+ files=_files,
5941
+ auth_settings=_auth_settings,
5942
+ collection_formats=_collection_formats,
5943
+ _host=_host,
5944
+ _request_auth=_request_auth
5945
+ )
5946
+
5947
+
5948
+
5949
+
5687
5950
  @validate_call
5688
5951
  def download_qes_document(
5689
5952
  self,
@@ -7031,6 +7294,267 @@ class DefaultApi:
7031
7294
 
7032
7295
 
7033
7296
 
7297
+ @validate_call
7298
+ def find_applicant_consents(
7299
+ self,
7300
+ applicant_id: StrictStr,
7301
+ _request_timeout: Union[
7302
+ None,
7303
+ Annotated[StrictFloat, Field(gt=0)],
7304
+ Tuple[
7305
+ Annotated[StrictFloat, Field(gt=0)],
7306
+ Annotated[StrictFloat, Field(gt=0)]
7307
+ ]
7308
+ ] = None,
7309
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
7310
+ _content_type: Optional[StrictStr] = None,
7311
+ _headers: Optional[Dict[StrictStr, Any]] = None,
7312
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
7313
+ ) -> List[ApplicantConsent]:
7314
+ """Retrieve Applicant Consents
7315
+
7316
+ Retrieves consents for single applicant.
7317
+
7318
+ :param applicant_id: (required)
7319
+ :type applicant_id: str
7320
+ :param _request_timeout: timeout setting for this request. If one
7321
+ number provided, it will be total request
7322
+ timeout. It can also be a pair (tuple) of
7323
+ (connection, read) timeouts.
7324
+ :type _request_timeout: int, tuple(int, int), optional
7325
+ :param _request_auth: set to override the auth_settings for an a single
7326
+ request; this effectively ignores the
7327
+ authentication in the spec for a single request.
7328
+ :type _request_auth: dict, optional
7329
+ :param _content_type: force content-type for the request.
7330
+ :type _content_type: str, Optional
7331
+ :param _headers: set to override the headers for a single
7332
+ request; this effectively ignores the headers
7333
+ in the spec for a single request.
7334
+ :type _headers: dict, optional
7335
+ :param _host_index: set to override the host_index for a single
7336
+ request; this effectively ignores the host_index
7337
+ in the spec for a single request.
7338
+ :type _host_index: int, optional
7339
+ :return: Returns the result object.
7340
+ """ # noqa: E501
7341
+
7342
+ _param = self._find_applicant_consents_serialize(
7343
+ applicant_id=applicant_id,
7344
+ _request_auth=_request_auth,
7345
+ _content_type=_content_type,
7346
+ _headers=_headers,
7347
+ _host_index=_host_index
7348
+ )
7349
+
7350
+ _response_types_map: Dict[str, Optional[str]] = {
7351
+ '200': "List[ApplicantConsent]",
7352
+ }
7353
+ response_data = self.api_client.call_api(
7354
+ *_param,
7355
+ _request_timeout=_request_timeout
7356
+ )
7357
+ response_data.read()
7358
+ return self.api_client.response_deserialize(
7359
+ response_data=response_data,
7360
+ response_types_map=_response_types_map,
7361
+ ).data
7362
+
7363
+
7364
+ @validate_call
7365
+ def find_applicant_consents_with_http_info(
7366
+ self,
7367
+ applicant_id: StrictStr,
7368
+ _request_timeout: Union[
7369
+ None,
7370
+ Annotated[StrictFloat, Field(gt=0)],
7371
+ Tuple[
7372
+ Annotated[StrictFloat, Field(gt=0)],
7373
+ Annotated[StrictFloat, Field(gt=0)]
7374
+ ]
7375
+ ] = None,
7376
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
7377
+ _content_type: Optional[StrictStr] = None,
7378
+ _headers: Optional[Dict[StrictStr, Any]] = None,
7379
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
7380
+ ) -> ApiResponse[List[ApplicantConsent]]:
7381
+ """Retrieve Applicant Consents
7382
+
7383
+ Retrieves consents for single applicant.
7384
+
7385
+ :param applicant_id: (required)
7386
+ :type applicant_id: str
7387
+ :param _request_timeout: timeout setting for this request. If one
7388
+ number provided, it will be total request
7389
+ timeout. It can also be a pair (tuple) of
7390
+ (connection, read) timeouts.
7391
+ :type _request_timeout: int, tuple(int, int), optional
7392
+ :param _request_auth: set to override the auth_settings for an a single
7393
+ request; this effectively ignores the
7394
+ authentication in the spec for a single request.
7395
+ :type _request_auth: dict, optional
7396
+ :param _content_type: force content-type for the request.
7397
+ :type _content_type: str, Optional
7398
+ :param _headers: set to override the headers for a single
7399
+ request; this effectively ignores the headers
7400
+ in the spec for a single request.
7401
+ :type _headers: dict, optional
7402
+ :param _host_index: set to override the host_index for a single
7403
+ request; this effectively ignores the host_index
7404
+ in the spec for a single request.
7405
+ :type _host_index: int, optional
7406
+ :return: Returns the result object.
7407
+ """ # noqa: E501
7408
+
7409
+ _param = self._find_applicant_consents_serialize(
7410
+ applicant_id=applicant_id,
7411
+ _request_auth=_request_auth,
7412
+ _content_type=_content_type,
7413
+ _headers=_headers,
7414
+ _host_index=_host_index
7415
+ )
7416
+
7417
+ _response_types_map: Dict[str, Optional[str]] = {
7418
+ '200': "List[ApplicantConsent]",
7419
+ }
7420
+ response_data = self.api_client.call_api(
7421
+ *_param,
7422
+ _request_timeout=_request_timeout
7423
+ )
7424
+ response_data.read()
7425
+ return self.api_client.response_deserialize(
7426
+ response_data=response_data,
7427
+ response_types_map=_response_types_map,
7428
+ )
7429
+
7430
+
7431
+ @validate_call
7432
+ def find_applicant_consents_without_preload_content(
7433
+ self,
7434
+ applicant_id: StrictStr,
7435
+ _request_timeout: Union[
7436
+ None,
7437
+ Annotated[StrictFloat, Field(gt=0)],
7438
+ Tuple[
7439
+ Annotated[StrictFloat, Field(gt=0)],
7440
+ Annotated[StrictFloat, Field(gt=0)]
7441
+ ]
7442
+ ] = None,
7443
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
7444
+ _content_type: Optional[StrictStr] = None,
7445
+ _headers: Optional[Dict[StrictStr, Any]] = None,
7446
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
7447
+ ) -> RESTResponseType:
7448
+ """Retrieve Applicant Consents
7449
+
7450
+ Retrieves consents for single applicant.
7451
+
7452
+ :param applicant_id: (required)
7453
+ :type applicant_id: str
7454
+ :param _request_timeout: timeout setting for this request. If one
7455
+ number provided, it will be total request
7456
+ timeout. It can also be a pair (tuple) of
7457
+ (connection, read) timeouts.
7458
+ :type _request_timeout: int, tuple(int, int), optional
7459
+ :param _request_auth: set to override the auth_settings for an a single
7460
+ request; this effectively ignores the
7461
+ authentication in the spec for a single request.
7462
+ :type _request_auth: dict, optional
7463
+ :param _content_type: force content-type for the request.
7464
+ :type _content_type: str, Optional
7465
+ :param _headers: set to override the headers for a single
7466
+ request; this effectively ignores the headers
7467
+ in the spec for a single request.
7468
+ :type _headers: dict, optional
7469
+ :param _host_index: set to override the host_index for a single
7470
+ request; this effectively ignores the host_index
7471
+ in the spec for a single request.
7472
+ :type _host_index: int, optional
7473
+ :return: Returns the result object.
7474
+ """ # noqa: E501
7475
+
7476
+ _param = self._find_applicant_consents_serialize(
7477
+ applicant_id=applicant_id,
7478
+ _request_auth=_request_auth,
7479
+ _content_type=_content_type,
7480
+ _headers=_headers,
7481
+ _host_index=_host_index
7482
+ )
7483
+
7484
+ _response_types_map: Dict[str, Optional[str]] = {
7485
+ '200': "List[ApplicantConsent]",
7486
+ }
7487
+ response_data = self.api_client.call_api(
7488
+ *_param,
7489
+ _request_timeout=_request_timeout
7490
+ )
7491
+ return response_data.response
7492
+
7493
+
7494
+ def _find_applicant_consents_serialize(
7495
+ self,
7496
+ applicant_id,
7497
+ _request_auth,
7498
+ _content_type,
7499
+ _headers,
7500
+ _host_index,
7501
+ ) -> RequestSerialized:
7502
+
7503
+ _host = None
7504
+
7505
+ _collection_formats: Dict[str, str] = {
7506
+ }
7507
+
7508
+ _path_params: Dict[str, str] = {}
7509
+ _query_params: List[Tuple[str, str]] = []
7510
+ _header_params: Dict[str, Optional[str]] = _headers or {}
7511
+ _form_params: List[Tuple[str, str]] = []
7512
+ _files: Dict[
7513
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
7514
+ ] = {}
7515
+ _body_params: Optional[bytes] = None
7516
+
7517
+ # process the path parameters
7518
+ if applicant_id is not None:
7519
+ _path_params['applicant_id'] = applicant_id
7520
+ # process the query parameters
7521
+ # process the header parameters
7522
+ # process the form parameters
7523
+ # process the body parameter
7524
+
7525
+
7526
+ # set the HTTP header `Accept`
7527
+ if 'Accept' not in _header_params:
7528
+ _header_params['Accept'] = self.api_client.select_header_accept(
7529
+ [
7530
+ 'application/json'
7531
+ ]
7532
+ )
7533
+
7534
+
7535
+ # authentication setting
7536
+ _auth_settings: List[str] = [
7537
+ 'Token'
7538
+ ]
7539
+
7540
+ return self.api_client.param_serialize(
7541
+ method='GET',
7542
+ resource_path='/applicants/{applicant_id}/consents',
7543
+ path_params=_path_params,
7544
+ query_params=_query_params,
7545
+ header_params=_header_params,
7546
+ body=_body_params,
7547
+ post_params=_form_params,
7548
+ files=_files,
7549
+ auth_settings=_auth_settings,
7550
+ collection_formats=_collection_formats,
7551
+ _host=_host,
7552
+ _request_auth=_request_auth
7553
+ )
7554
+
7555
+
7556
+
7557
+
7034
7558
  @validate_call
7035
7559
  def find_check(
7036
7560
  self,
@@ -14187,6 +14711,7 @@ class DefaultApi:
14187
14711
  created_at_gt: Annotated[Optional[datetime], Field(description="A ISO-8601 date to filter results with a created date greater than (after) the one provided.")] = None,
14188
14712
  created_at_lt: Annotated[Optional[datetime], Field(description="A ISO-8601 date to filter results with a created date less than (before) the one provided.")] = None,
14189
14713
  sort: Annotated[Optional[StrictStr], Field(description="A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'.")] = None,
14714
+ applicant_id: Annotated[Optional[StrictStr], Field(description="the applicant's id.")] = None,
14190
14715
  _request_timeout: Union[
14191
14716
  None,
14192
14717
  Annotated[StrictFloat, Field(gt=0)],
@@ -14214,6 +14739,8 @@ class DefaultApi:
14214
14739
  :type created_at_lt: datetime
14215
14740
  :param sort: A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'.
14216
14741
  :type sort: str
14742
+ :param applicant_id: the applicant's id.
14743
+ :type applicant_id: str
14217
14744
  :param _request_timeout: timeout setting for this request. If one
14218
14745
  number provided, it will be total request
14219
14746
  timeout. It can also be a pair (tuple) of
@@ -14242,6 +14769,7 @@ class DefaultApi:
14242
14769
  created_at_gt=created_at_gt,
14243
14770
  created_at_lt=created_at_lt,
14244
14771
  sort=sort,
14772
+ applicant_id=applicant_id,
14245
14773
  _request_auth=_request_auth,
14246
14774
  _content_type=_content_type,
14247
14775
  _headers=_headers,
@@ -14270,6 +14798,7 @@ class DefaultApi:
14270
14798
  created_at_gt: Annotated[Optional[datetime], Field(description="A ISO-8601 date to filter results with a created date greater than (after) the one provided.")] = None,
14271
14799
  created_at_lt: Annotated[Optional[datetime], Field(description="A ISO-8601 date to filter results with a created date less than (before) the one provided.")] = None,
14272
14800
  sort: Annotated[Optional[StrictStr], Field(description="A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'.")] = None,
14801
+ applicant_id: Annotated[Optional[StrictStr], Field(description="the applicant's id.")] = None,
14273
14802
  _request_timeout: Union[
14274
14803
  None,
14275
14804
  Annotated[StrictFloat, Field(gt=0)],
@@ -14297,6 +14826,8 @@ class DefaultApi:
14297
14826
  :type created_at_lt: datetime
14298
14827
  :param sort: A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'.
14299
14828
  :type sort: str
14829
+ :param applicant_id: the applicant's id.
14830
+ :type applicant_id: str
14300
14831
  :param _request_timeout: timeout setting for this request. If one
14301
14832
  number provided, it will be total request
14302
14833
  timeout. It can also be a pair (tuple) of
@@ -14325,6 +14856,7 @@ class DefaultApi:
14325
14856
  created_at_gt=created_at_gt,
14326
14857
  created_at_lt=created_at_lt,
14327
14858
  sort=sort,
14859
+ applicant_id=applicant_id,
14328
14860
  _request_auth=_request_auth,
14329
14861
  _content_type=_content_type,
14330
14862
  _headers=_headers,
@@ -14353,6 +14885,7 @@ class DefaultApi:
14353
14885
  created_at_gt: Annotated[Optional[datetime], Field(description="A ISO-8601 date to filter results with a created date greater than (after) the one provided.")] = None,
14354
14886
  created_at_lt: Annotated[Optional[datetime], Field(description="A ISO-8601 date to filter results with a created date less than (before) the one provided.")] = None,
14355
14887
  sort: Annotated[Optional[StrictStr], Field(description="A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'.")] = None,
14888
+ applicant_id: Annotated[Optional[StrictStr], Field(description="the applicant's id.")] = None,
14356
14889
  _request_timeout: Union[
14357
14890
  None,
14358
14891
  Annotated[StrictFloat, Field(gt=0)],
@@ -14380,6 +14913,8 @@ class DefaultApi:
14380
14913
  :type created_at_lt: datetime
14381
14914
  :param sort: A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'.
14382
14915
  :type sort: str
14916
+ :param applicant_id: the applicant's id.
14917
+ :type applicant_id: str
14383
14918
  :param _request_timeout: timeout setting for this request. If one
14384
14919
  number provided, it will be total request
14385
14920
  timeout. It can also be a pair (tuple) of
@@ -14408,6 +14943,7 @@ class DefaultApi:
14408
14943
  created_at_gt=created_at_gt,
14409
14944
  created_at_lt=created_at_lt,
14410
14945
  sort=sort,
14946
+ applicant_id=applicant_id,
14411
14947
  _request_auth=_request_auth,
14412
14948
  _content_type=_content_type,
14413
14949
  _headers=_headers,
@@ -14431,6 +14967,7 @@ class DefaultApi:
14431
14967
  created_at_gt,
14432
14968
  created_at_lt,
14433
14969
  sort,
14970
+ applicant_id,
14434
14971
  _request_auth,
14435
14972
  _content_type,
14436
14973
  _headers,
@@ -14491,6 +15028,10 @@ class DefaultApi:
14491
15028
 
14492
15029
  _query_params.append(('sort', sort))
14493
15030
 
15031
+ if applicant_id is not None:
15032
+
15033
+ _query_params.append(('applicant_id', applicant_id))
15034
+
14494
15035
  # process the header parameters
14495
15036
  # process the form parameters
14496
15037
  # process the body parameter