regula-documentreader-webclient 9.1.625.dev0__py3-none-any.whl → 9.2.651.dev0__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.
Potentially problematic release.
This version of regula-documentreader-webclient might be problematic. Click here for more details.
- regula/documentreader/webclient/gen/__init__.py +51 -0
- regula/documentreader/webclient/gen/models/__init__.py +34 -0
- regula/documentreader/webclient/gen/models/area_array.py +2 -2
- regula/documentreader/webclient/gen/models/area_container.py +2 -2
- regula/documentreader/webclient/gen/models/auth_params.py +1 -1
- regula/documentreader/webclient/gen/models/authenticity_check_list.py +1 -1
- regula/documentreader/webclient/gen/models/authenticity_check_list_item.py +1 -1
- regula/documentreader/webclient/gen/models/authenticity_check_result.py +1 -1
- regula/documentreader/webclient/gen/models/authenticity_result.py +1 -1
- regula/documentreader/webclient/gen/models/barcode_position_item.py +1 -1
- regula/documentreader/webclient/gen/models/barcode_position_result.py +1 -1
- regula/documentreader/webclient/gen/models/binary_data.py +3 -3
- regula/documentreader/webclient/gen/models/candidates_list_item.py +1 -1
- regula/documentreader/webclient/gen/models/chosen_document_type.py +1 -1
- regula/documentreader/webclient/gen/models/chosen_document_type_result.py +1 -1
- regula/documentreader/webclient/gen/models/container_list.py +1 -1
- regula/documentreader/webclient/gen/models/container_list_list_inner.py +50 -8
- regula/documentreader/webclient/gen/models/database_document_list.py +1 -1
- regula/documentreader/webclient/gen/models/details_age.py +93 -0
- regula/documentreader/webclient/gen/models/device_info.py +1 -1
- regula/documentreader/webclient/gen/models/doc_bar_code_info.py +1 -1
- regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py +1 -1
- regula/documentreader/webclient/gen/models/doc_bar_code_info_item.py +1 -1
- regula/documentreader/webclient/gen/models/doc_feature.py +88 -0
- regula/documentreader/webclient/gen/models/doc_graphics_info_item.py +1 -1
- regula/documentreader/webclient/gen/models/doc_visual_extended_field.py +2 -2
- regula/documentreader/webclient/gen/models/doc_visual_extended_field_item.py +1 -1
- regula/documentreader/webclient/gen/models/doc_visual_extended_info.py +1 -1
- regula/documentreader/webclient/gen/models/doc_visual_extended_info_item.py +1 -1
- regula/documentreader/webclient/gen/models/document_binary_info_result.py +1 -1
- regula/documentreader/webclient/gen/models/document_image_result.py +1 -1
- regula/documentreader/webclient/gen/models/document_position.py +5 -5
- regula/documentreader/webclient/gen/models/document_position_item.py +1 -1
- regula/documentreader/webclient/gen/models/document_position_result.py +1 -1
- regula/documentreader/webclient/gen/models/document_types_candidates.py +1 -1
- regula/documentreader/webclient/gen/models/document_types_candidates_list.py +1 -1
- regula/documentreader/webclient/gen/models/document_types_candidates_result.py +1 -1
- regula/documentreader/webclient/gen/models/face_api.py +1 -1
- regula/documentreader/webclient/gen/models/face_detection.py +1 -1
- regula/documentreader/webclient/gen/models/face_detection_item.py +1 -1
- regula/documentreader/webclient/gen/models/face_detection_result.py +1 -1
- regula/documentreader/webclient/gen/models/face_item.py +3 -3
- regula/documentreader/webclient/gen/models/fiber_item.py +1 -1
- regula/documentreader/webclient/gen/models/fiber_result.py +1 -1
- regula/documentreader/webclient/gen/models/graph_data.py +1 -1
- regula/documentreader/webclient/gen/models/graphic_field.py +2 -2
- regula/documentreader/webclient/gen/models/graphic_fields_list.py +1 -1
- regula/documentreader/webclient/gen/models/graphics_result.py +1 -1
- regula/documentreader/webclient/gen/models/healthcheck.py +1 -1
- regula/documentreader/webclient/gen/models/ident_item.py +4 -4
- regula/documentreader/webclient/gen/models/ident_result.py +4 -4
- regula/documentreader/webclient/gen/models/image_qa.py +1 -1
- regula/documentreader/webclient/gen/models/image_quality_check.py +1 -1
- regula/documentreader/webclient/gen/models/image_quality_check_list.py +1 -1
- regula/documentreader/webclient/gen/models/image_quality_check_list_item.py +1 -1
- regula/documentreader/webclient/gen/models/image_quality_result.py +1 -1
- regula/documentreader/webclient/gen/models/image_transaction_data.py +1 -1
- regula/documentreader/webclient/gen/models/images.py +2 -2
- regula/documentreader/webclient/gen/models/images_field.py +1 -1
- regula/documentreader/webclient/gen/models/images_field_value.py +2 -2
- regula/documentreader/webclient/gen/models/images_item.py +1 -1
- regula/documentreader/webclient/gen/models/images_result.py +1 -1
- regula/documentreader/webclient/gen/models/in_data.py +2 -2
- regula/documentreader/webclient/gen/models/lexical_analysis_result.py +1 -1
- regula/documentreader/webclient/gen/models/list_transactions_by_tag_response.py +1 -1
- regula/documentreader/webclient/gen/models/list_verified_fields.py +1 -1
- regula/documentreader/webclient/gen/models/list_verified_fields_item.py +1 -1
- regula/documentreader/webclient/gen/models/mdl_device_engagement.py +29 -0
- regula/documentreader/webclient/gen/models/mdl_device_retrieval.py +30 -0
- regula/documentreader/webclient/gen/models/mdl_item.py +82 -0
- regula/documentreader/webclient/gen/models/mdl_result.py +89 -0
- regula/documentreader/webclient/gen/models/mdl_server_retrieval.py +29 -0
- regula/documentreader/webclient/gen/models/message.py +98 -0
- regula/documentreader/webclient/gen/models/mrz_detector_result.py +1 -1
- regula/documentreader/webclient/gen/models/mrz_position_item.py +1 -1
- regula/documentreader/webclient/gen/models/mrz_position_result.py +1 -1
- regula/documentreader/webclient/gen/models/mrz_rows_item.py +1 -1
- regula/documentreader/webclient/gen/models/mrz_test_quality.py +1 -1
- regula/documentreader/webclient/gen/models/mrz_test_quality_item.py +1 -1
- regula/documentreader/webclient/gen/models/mrz_test_quality_result.py +1 -1
- regula/documentreader/webclient/gen/models/ocr_security_text_item.py +2 -2
- regula/documentreader/webclient/gen/models/ocr_security_text_result.py +2 -2
- regula/documentreader/webclient/gen/models/one_candidate.py +1 -1
- regula/documentreader/webclient/gen/models/one_candidate_item.py +1 -1
- regula/documentreader/webclient/gen/models/original_symbol.py +1 -1
- regula/documentreader/webclient/gen/models/out_data.py +1 -1
- regula/documentreader/webclient/gen/models/p_array_field.py +3 -3
- regula/documentreader/webclient/gen/models/photo_ident_item.py +3 -3
- regula/documentreader/webclient/gen/models/photo_ident_result.py +3 -3
- regula/documentreader/webclient/gen/models/pid.py +88 -0
- regula/documentreader/webclient/gen/models/point_array.py +1 -1
- regula/documentreader/webclient/gen/models/points_container.py +1 -1
- regula/documentreader/webclient/gen/models/process_params.py +5 -5
- regula/documentreader/webclient/gen/models/process_request.py +4 -4
- regula/documentreader/webclient/gen/models/process_request_image.py +1 -1
- regula/documentreader/webclient/gen/models/process_response.py +2 -2
- regula/documentreader/webclient/gen/models/raw_image_container_item.py +1 -1
- regula/documentreader/webclient/gen/models/raw_image_container_list.py +1 -1
- regula/documentreader/webclient/gen/models/result.py +3 -0
- regula/documentreader/webclient/gen/models/result_item.py +12 -3
- regula/documentreader/webclient/gen/models/result_mrz_detector.py +1 -1
- regula/documentreader/webclient/gen/models/result_mrz_detector_item.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_application.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_attribute_name.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_certificate_ex.py +5 -5
- regula/documentreader/webclient/gen/models/rfid_data_file.py +3 -3
- regula/documentreader/webclient/gen/models/rfid_distinguished_name.py +2 -2
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_field.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_info.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_info_item.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_graphics_info_result.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_security_object.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_session_data.py +6 -6
- regula/documentreader/webclient/gen/models/rfid_signer_info_ex.py +6 -6
- regula/documentreader/webclient/gen/models/rfid_text_data_result.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_validity.py +2 -2
- regula/documentreader/webclient/gen/models/security_feature_item.py +2 -2
- regula/documentreader/webclient/gen/models/security_feature_result.py +2 -2
- regula/documentreader/webclient/gen/models/security_object_certificates.py +1 -1
- regula/documentreader/webclient/gen/models/status.py +14 -4
- regula/documentreader/webclient/gen/models/status_item.py +1 -1
- regula/documentreader/webclient/gen/models/status_result.py +1 -1
- regula/documentreader/webclient/gen/models/string_item.py +4 -4
- regula/documentreader/webclient/gen/models/string_recognition_result.py +1 -1
- regula/documentreader/webclient/gen/models/symbol_estimation_item.py +1 -1
- regula/documentreader/webclient/gen/models/symbol_recognition_result.py +2 -2
- regula/documentreader/webclient/gen/models/t_doc_binary_info.py +2 -2
- regula/documentreader/webclient/gen/models/t_doc_binary_info_item.py +1 -1
- regula/documentreader/webclient/gen/models/t_original_rfid_graphics_info.py +1 -1
- regula/documentreader/webclient/gen/models/t_original_rfid_graphics_info_item.py +1 -1
- regula/documentreader/webclient/gen/models/text.py +2 -2
- regula/documentreader/webclient/gen/models/text_data_result.py +1 -1
- regula/documentreader/webclient/gen/models/text_field.py +3 -3
- regula/documentreader/webclient/gen/models/text_field_type.py +3 -0
- regula/documentreader/webclient/gen/models/text_field_value.py +3 -3
- regula/documentreader/webclient/gen/models/text_item.py +1 -1
- regula/documentreader/webclient/gen/models/text_result.py +1 -1
- regula/documentreader/webclient/gen/models/transaction_image.py +1 -1
- regula/documentreader/webclient/gen/models/transaction_info.py +1 -1
- regula/documentreader/webclient/gen/models/transaction_process_get_response.py +2 -2
- regula/documentreader/webclient/gen/models/transaction_process_request.py +4 -4
- regula/documentreader/webclient/gen/models/transaction_process_result.py +2 -2
- regula/documentreader/webclient/gen/models/trf_ft_string.py +1 -1
- regula/documentreader/webclient/gen/models/vd_item.py +90 -0
- regula/documentreader/webclient/gen/models/vds_data.py +126 -0
- regula/documentreader/webclient/gen/models/vds_data_item.py +86 -0
- regula/documentreader/webclient/gen/models/vds_data_result.py +93 -0
- regula/documentreader/webclient/gen/models/vdsnc_data.py +117 -0
- regula/documentreader/webclient/gen/models/vdsnc_data_item.py +86 -0
- regula/documentreader/webclient/gen/models/vdsnc_data_result.py +93 -0
- regula/documentreader/webclient/gen/models/ve_item.py +96 -0
- regula/documentreader/webclient/gen/models/visual_extended_field_item.py +1 -1
- {regula_documentreader_webclient-9.1.625.dev0.dist-info → regula_documentreader_webclient-9.2.651.dev0.dist-info}/METADATA +1 -1
- {regula_documentreader_webclient-9.1.625.dev0.dist-info → regula_documentreader_webclient-9.2.651.dev0.dist-info}/RECORD +156 -139
- {regula_documentreader_webclient-9.1.625.dev0.dist-info → regula_documentreader_webclient-9.2.651.dev0.dist-info}/WHEEL +0 -0
- {regula_documentreader_webclient-9.1.625.dev0.dist-info → regula_documentreader_webclient-9.2.651.dev0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Generated by: https://openapi-generator.tech
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
import pprint
|
|
9
|
+
import re # noqa: F401
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from pydantic import ConfigDict, Field
|
|
13
|
+
from typing import Any, ClassVar, Dict, List
|
|
14
|
+
from regula.documentreader.webclient.gen.models.result import Result
|
|
15
|
+
from regula.documentreader.webclient.gen.models.result_item import ResultItem
|
|
16
|
+
from regula.documentreader.webclient.gen.models.vds_data import VDSData
|
|
17
|
+
from typing import Optional, Set
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
from pydantic import SkipValidation, Field
|
|
20
|
+
|
|
21
|
+
class VDSDataResult(ResultItem):
|
|
22
|
+
"""
|
|
23
|
+
VDSDataResult
|
|
24
|
+
""" # noqa: E501
|
|
25
|
+
dft_vds: SkipValidation[VDSData] = Field(alias="dftVDS")
|
|
26
|
+
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "dftVDS"]
|
|
27
|
+
|
|
28
|
+
model_config = ConfigDict(
|
|
29
|
+
populate_by_name=True,
|
|
30
|
+
validate_assignment=True,
|
|
31
|
+
protected_namespaces=(),
|
|
32
|
+
arbitrary_types_allowed=True,
|
|
33
|
+
use_enum_values=True
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def to_str(self) -> str:
|
|
38
|
+
"""Returns the string representation of the model using alias"""
|
|
39
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
40
|
+
|
|
41
|
+
def to_json(self) -> str:
|
|
42
|
+
"""Returns the JSON representation of the model using alias"""
|
|
43
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
44
|
+
return json.dumps(self.to_dict())
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
48
|
+
"""Create an instance of VDSDataResult from a JSON string"""
|
|
49
|
+
return cls.from_dict(json.loads(json_str))
|
|
50
|
+
|
|
51
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
52
|
+
"""Return the dictionary representation of the model using alias.
|
|
53
|
+
|
|
54
|
+
This has the following differences from calling pydantic's
|
|
55
|
+
`self.model_dump(by_alias=True)`:
|
|
56
|
+
|
|
57
|
+
* `None` is only added to the output dict for nullable fields that
|
|
58
|
+
were set at model initialization. Other fields with value `None`
|
|
59
|
+
are ignored.
|
|
60
|
+
"""
|
|
61
|
+
excluded_fields: Set[str] = set([
|
|
62
|
+
])
|
|
63
|
+
|
|
64
|
+
_dict = self.model_dump(
|
|
65
|
+
by_alias=True,
|
|
66
|
+
exclude=excluded_fields,
|
|
67
|
+
exclude_none=True,
|
|
68
|
+
)
|
|
69
|
+
# override the default output from pydantic by calling `to_dict()` of dft_vds
|
|
70
|
+
if self.dft_vds and isinstance(self.dft_vds, VDSData):
|
|
71
|
+
_dict['dftVDS'] = self.dft_vds.to_dict()
|
|
72
|
+
return _dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
+
"""Create an instance of VDSDataResult from a dict"""
|
|
77
|
+
if obj is None:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
if not isinstance(obj, dict):
|
|
81
|
+
return cls.model_validate(obj)
|
|
82
|
+
|
|
83
|
+
_obj = cls.model_validate({
|
|
84
|
+
"buf_length": obj.get("buf_length"),
|
|
85
|
+
"light": obj.get("light"),
|
|
86
|
+
"list_idx": obj.get("list_idx"),
|
|
87
|
+
"page_idx": obj.get("page_idx"),
|
|
88
|
+
"result_type": obj.get("result_type"),
|
|
89
|
+
"dftVDS": VDSData.from_dict(obj["dftVDS"]) if obj.get("dftVDS") is not None else None
|
|
90
|
+
})
|
|
91
|
+
return _obj
|
|
92
|
+
|
|
93
|
+
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Generated by: https://openapi-generator.tech
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
import pprint
|
|
9
|
+
import re # noqa: F401
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
13
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
14
|
+
from regula.documentreader.webclient.gen.models.message import Message
|
|
15
|
+
from regula.documentreader.webclient.gen.models.rfid_certificate_ex import RfidCertificateEx
|
|
16
|
+
from regula.documentreader.webclient.gen.models.trf_ft_bytes import TrfFtBytes
|
|
17
|
+
from typing import Optional, Set
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
from pydantic import SkipValidation, Field
|
|
20
|
+
|
|
21
|
+
class VDSNCData(BaseModel):
|
|
22
|
+
"""
|
|
23
|
+
VDSNCData
|
|
24
|
+
""" # noqa: E501
|
|
25
|
+
certificate: SkipValidation[Optional[TrfFtBytes]] = Field(alias="Certificate", default=None)
|
|
26
|
+
certificate_chain: SkipValidation[Optional[List[RfidCertificateEx]]] = Field(alias="CertificateChain", default=None)
|
|
27
|
+
issuing_country: SkipValidation[Optional[str]] = Field(alias="IssuingCountry", default=None)
|
|
28
|
+
message: SkipValidation[Optional[Message]] = Field(alias="Message", default=None)
|
|
29
|
+
notifications: SkipValidation[Optional[List[int]]] = Field(alias="Notifications", default=None)
|
|
30
|
+
signature: SkipValidation[Optional[TrfFtBytes]] = Field(alias="Signature", default=None)
|
|
31
|
+
signature_alg: SkipValidation[Optional[str]] = Field(alias="SignatureAlg", default=None)
|
|
32
|
+
type: SkipValidation[Optional[str]] = Field(alias="Type", default=None)
|
|
33
|
+
version: SkipValidation[Optional[int]] = Field(alias="Version", default=None)
|
|
34
|
+
__properties: ClassVar[List[str]] = ["Certificate", "CertificateChain", "IssuingCountry", "Message", "Notifications", "Signature", "SignatureAlg", "Type", "Version"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
arbitrary_types_allowed=True,
|
|
41
|
+
use_enum_values=True
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def to_str(self) -> str:
|
|
46
|
+
"""Returns the string representation of the model using alias"""
|
|
47
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
48
|
+
|
|
49
|
+
def to_json(self) -> str:
|
|
50
|
+
"""Returns the JSON representation of the model using alias"""
|
|
51
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
52
|
+
return json.dumps(self.to_dict())
|
|
53
|
+
|
|
54
|
+
@classmethod
|
|
55
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
56
|
+
"""Create an instance of VDSNCData from a JSON string"""
|
|
57
|
+
return cls.from_dict(json.loads(json_str))
|
|
58
|
+
|
|
59
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
60
|
+
"""Return the dictionary representation of the model using alias.
|
|
61
|
+
|
|
62
|
+
This has the following differences from calling pydantic's
|
|
63
|
+
`self.model_dump(by_alias=True)`:
|
|
64
|
+
|
|
65
|
+
* `None` is only added to the output dict for nullable fields that
|
|
66
|
+
were set at model initialization. Other fields with value `None`
|
|
67
|
+
are ignored.
|
|
68
|
+
"""
|
|
69
|
+
excluded_fields: Set[str] = set([
|
|
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 certificate
|
|
78
|
+
if self.certificate and isinstance(self.certificate, TrfFtBytes):
|
|
79
|
+
_dict['Certificate'] = self.certificate.to_dict()
|
|
80
|
+
# override the default output from pydantic by calling `to_dict()` of each item in certificate_chain (list)
|
|
81
|
+
_items = []
|
|
82
|
+
if self.certificate_chain:
|
|
83
|
+
for _item_certificate_chain in self.certificate_chain:
|
|
84
|
+
if _item_certificate_chain and hasattr(_item_certificate_chain, "to_dict"):
|
|
85
|
+
_items.append(_item_certificate_chain.to_dict())
|
|
86
|
+
_dict['CertificateChain'] = _items
|
|
87
|
+
# override the default output from pydantic by calling `to_dict()` of message
|
|
88
|
+
if self.message and isinstance(self.message, Message):
|
|
89
|
+
_dict['Message'] = self.message.to_dict()
|
|
90
|
+
# override the default output from pydantic by calling `to_dict()` of signature
|
|
91
|
+
if self.signature and isinstance(self.signature, TrfFtBytes):
|
|
92
|
+
_dict['Signature'] = self.signature.to_dict()
|
|
93
|
+
return _dict
|
|
94
|
+
|
|
95
|
+
@classmethod
|
|
96
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
97
|
+
"""Create an instance of VDSNCData from a dict"""
|
|
98
|
+
if obj is None:
|
|
99
|
+
return None
|
|
100
|
+
|
|
101
|
+
if not isinstance(obj, dict):
|
|
102
|
+
return cls.model_validate(obj)
|
|
103
|
+
|
|
104
|
+
_obj = cls.model_validate({
|
|
105
|
+
"Certificate": TrfFtBytes.from_dict(obj["Certificate"]) if obj.get("Certificate") is not None else None,
|
|
106
|
+
"CertificateChain": [RfidCertificateEx.from_dict(_item) for _item in obj.get("CertificateChain", []) if RfidCertificateEx.from_dict(_item) is not None],
|
|
107
|
+
"IssuingCountry": obj.get("IssuingCountry"),
|
|
108
|
+
"Message": Message.from_dict(obj["Message"]) if obj.get("Message") is not None else None,
|
|
109
|
+
"Notifications": obj.get("Notifications"),
|
|
110
|
+
"Signature": TrfFtBytes.from_dict(obj["Signature"]) if obj.get("Signature") is not None else None,
|
|
111
|
+
"SignatureAlg": obj.get("SignatureAlg"),
|
|
112
|
+
"Type": obj.get("Type"),
|
|
113
|
+
"Version": obj.get("Version")
|
|
114
|
+
})
|
|
115
|
+
return _obj
|
|
116
|
+
|
|
117
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Generated by: https://openapi-generator.tech
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
import pprint
|
|
9
|
+
import re # noqa: F401
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
13
|
+
from typing import Any, ClassVar, Dict, List
|
|
14
|
+
from regula.documentreader.webclient.gen.models.vdsnc_data import VDSNCData
|
|
15
|
+
from typing import Optional, Set
|
|
16
|
+
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
18
|
+
|
|
19
|
+
class VDSNCDataItem(BaseModel):
|
|
20
|
+
"""
|
|
21
|
+
VDSNCDataItem
|
|
22
|
+
""" # noqa: E501
|
|
23
|
+
dft_vds_nc: SkipValidation[VDSNCData] = Field(alias="dftVDS_NC")
|
|
24
|
+
__properties: ClassVar[List[str]] = ["dftVDS_NC"]
|
|
25
|
+
|
|
26
|
+
model_config = ConfigDict(
|
|
27
|
+
populate_by_name=True,
|
|
28
|
+
validate_assignment=True,
|
|
29
|
+
protected_namespaces=(),
|
|
30
|
+
arbitrary_types_allowed=True,
|
|
31
|
+
use_enum_values=True
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def to_str(self) -> str:
|
|
36
|
+
"""Returns the string representation of the model using alias"""
|
|
37
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
38
|
+
|
|
39
|
+
def to_json(self) -> str:
|
|
40
|
+
"""Returns the JSON representation of the model using alias"""
|
|
41
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
42
|
+
return json.dumps(self.to_dict())
|
|
43
|
+
|
|
44
|
+
@classmethod
|
|
45
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
46
|
+
"""Create an instance of VDSNCDataItem from a JSON string"""
|
|
47
|
+
return cls.from_dict(json.loads(json_str))
|
|
48
|
+
|
|
49
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
50
|
+
"""Return the dictionary representation of the model using alias.
|
|
51
|
+
|
|
52
|
+
This has the following differences from calling pydantic's
|
|
53
|
+
`self.model_dump(by_alias=True)`:
|
|
54
|
+
|
|
55
|
+
* `None` is only added to the output dict for nullable fields that
|
|
56
|
+
were set at model initialization. Other fields with value `None`
|
|
57
|
+
are ignored.
|
|
58
|
+
"""
|
|
59
|
+
excluded_fields: Set[str] = set([
|
|
60
|
+
])
|
|
61
|
+
|
|
62
|
+
_dict = self.model_dump(
|
|
63
|
+
by_alias=True,
|
|
64
|
+
exclude=excluded_fields,
|
|
65
|
+
exclude_none=True,
|
|
66
|
+
)
|
|
67
|
+
# override the default output from pydantic by calling `to_dict()` of dft_vds_nc
|
|
68
|
+
if self.dft_vds_nc and isinstance(self.dft_vds_nc, VDSNCData):
|
|
69
|
+
_dict['dftVDS_NC'] = self.dft_vds_nc.to_dict()
|
|
70
|
+
return _dict
|
|
71
|
+
|
|
72
|
+
@classmethod
|
|
73
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
74
|
+
"""Create an instance of VDSNCDataItem from a dict"""
|
|
75
|
+
if obj is None:
|
|
76
|
+
return None
|
|
77
|
+
|
|
78
|
+
if not isinstance(obj, dict):
|
|
79
|
+
return cls.model_validate(obj)
|
|
80
|
+
|
|
81
|
+
_obj = cls.model_validate({
|
|
82
|
+
"dftVDS_NC": VDSNCData.from_dict(obj["dftVDS_NC"]) if obj.get("dftVDS_NC") is not None else None
|
|
83
|
+
})
|
|
84
|
+
return _obj
|
|
85
|
+
|
|
86
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Generated by: https://openapi-generator.tech
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
import pprint
|
|
9
|
+
import re # noqa: F401
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from pydantic import ConfigDict, Field
|
|
13
|
+
from typing import Any, ClassVar, Dict, List
|
|
14
|
+
from regula.documentreader.webclient.gen.models.result import Result
|
|
15
|
+
from regula.documentreader.webclient.gen.models.result_item import ResultItem
|
|
16
|
+
from regula.documentreader.webclient.gen.models.vdsnc_data import VDSNCData
|
|
17
|
+
from typing import Optional, Set
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
from pydantic import SkipValidation, Field
|
|
20
|
+
|
|
21
|
+
class VDSNCDataResult(ResultItem):
|
|
22
|
+
"""
|
|
23
|
+
VDSNCDataResult
|
|
24
|
+
""" # noqa: E501
|
|
25
|
+
dft_vds_nc: SkipValidation[VDSNCData] = Field(alias="dftVDS_NC")
|
|
26
|
+
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "dftVDS_NC"]
|
|
27
|
+
|
|
28
|
+
model_config = ConfigDict(
|
|
29
|
+
populate_by_name=True,
|
|
30
|
+
validate_assignment=True,
|
|
31
|
+
protected_namespaces=(),
|
|
32
|
+
arbitrary_types_allowed=True,
|
|
33
|
+
use_enum_values=True
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def to_str(self) -> str:
|
|
38
|
+
"""Returns the string representation of the model using alias"""
|
|
39
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
40
|
+
|
|
41
|
+
def to_json(self) -> str:
|
|
42
|
+
"""Returns the JSON representation of the model using alias"""
|
|
43
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
44
|
+
return json.dumps(self.to_dict())
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
48
|
+
"""Create an instance of VDSNCDataResult from a JSON string"""
|
|
49
|
+
return cls.from_dict(json.loads(json_str))
|
|
50
|
+
|
|
51
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
52
|
+
"""Return the dictionary representation of the model using alias.
|
|
53
|
+
|
|
54
|
+
This has the following differences from calling pydantic's
|
|
55
|
+
`self.model_dump(by_alias=True)`:
|
|
56
|
+
|
|
57
|
+
* `None` is only added to the output dict for nullable fields that
|
|
58
|
+
were set at model initialization. Other fields with value `None`
|
|
59
|
+
are ignored.
|
|
60
|
+
"""
|
|
61
|
+
excluded_fields: Set[str] = set([
|
|
62
|
+
])
|
|
63
|
+
|
|
64
|
+
_dict = self.model_dump(
|
|
65
|
+
by_alias=True,
|
|
66
|
+
exclude=excluded_fields,
|
|
67
|
+
exclude_none=True,
|
|
68
|
+
)
|
|
69
|
+
# override the default output from pydantic by calling `to_dict()` of dft_vds_nc
|
|
70
|
+
if self.dft_vds_nc and isinstance(self.dft_vds_nc, VDSNCData):
|
|
71
|
+
_dict['dftVDS_NC'] = self.dft_vds_nc.to_dict()
|
|
72
|
+
return _dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
+
"""Create an instance of VDSNCDataResult from a dict"""
|
|
77
|
+
if obj is None:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
if not isinstance(obj, dict):
|
|
81
|
+
return cls.model_validate(obj)
|
|
82
|
+
|
|
83
|
+
_obj = cls.model_validate({
|
|
84
|
+
"buf_length": obj.get("buf_length"),
|
|
85
|
+
"light": obj.get("light"),
|
|
86
|
+
"list_idx": obj.get("list_idx"),
|
|
87
|
+
"page_idx": obj.get("page_idx"),
|
|
88
|
+
"result_type": obj.get("result_type"),
|
|
89
|
+
"dftVDS_NC": VDSNCData.from_dict(obj["dftVDS_NC"]) if obj.get("dftVDS_NC") is not None else None
|
|
90
|
+
})
|
|
91
|
+
return _obj
|
|
92
|
+
|
|
93
|
+
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Generated by: https://openapi-generator.tech
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
import pprint
|
|
9
|
+
import re # noqa: F401
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
13
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
14
|
+
from regula.documentreader.webclient.gen.models.vd_item import VDItem
|
|
15
|
+
from typing import Optional, Set
|
|
16
|
+
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
18
|
+
|
|
19
|
+
class VEItem(BaseModel):
|
|
20
|
+
"""
|
|
21
|
+
VEItem
|
|
22
|
+
""" # noqa: E501
|
|
23
|
+
des: SkipValidation[Optional[str]] = Field(alias="des", default=None)
|
|
24
|
+
dis: SkipValidation[Optional[str]] = Field(alias="dis", default=None)
|
|
25
|
+
nam: SkipValidation[Optional[str]] = Field(alias="nam", default=None)
|
|
26
|
+
vd: SkipValidation[Optional[List[VDItem]]] = Field(alias="vd", default=None)
|
|
27
|
+
__properties: ClassVar[List[str]] = ["des", "dis", "nam", "vd"]
|
|
28
|
+
|
|
29
|
+
model_config = ConfigDict(
|
|
30
|
+
populate_by_name=True,
|
|
31
|
+
validate_assignment=True,
|
|
32
|
+
protected_namespaces=(),
|
|
33
|
+
arbitrary_types_allowed=True,
|
|
34
|
+
use_enum_values=True
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def to_str(self) -> str:
|
|
39
|
+
"""Returns the string representation of the model using alias"""
|
|
40
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
41
|
+
|
|
42
|
+
def to_json(self) -> str:
|
|
43
|
+
"""Returns the JSON representation of the model using alias"""
|
|
44
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
45
|
+
return json.dumps(self.to_dict())
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
49
|
+
"""Create an instance of VEItem from a JSON string"""
|
|
50
|
+
return cls.from_dict(json.loads(json_str))
|
|
51
|
+
|
|
52
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
53
|
+
"""Return the dictionary representation of the model using alias.
|
|
54
|
+
|
|
55
|
+
This has the following differences from calling pydantic's
|
|
56
|
+
`self.model_dump(by_alias=True)`:
|
|
57
|
+
|
|
58
|
+
* `None` is only added to the output dict for nullable fields that
|
|
59
|
+
were set at model initialization. Other fields with value `None`
|
|
60
|
+
are ignored.
|
|
61
|
+
"""
|
|
62
|
+
excluded_fields: Set[str] = set([
|
|
63
|
+
])
|
|
64
|
+
|
|
65
|
+
_dict = self.model_dump(
|
|
66
|
+
by_alias=True,
|
|
67
|
+
exclude=excluded_fields,
|
|
68
|
+
exclude_none=True,
|
|
69
|
+
)
|
|
70
|
+
# override the default output from pydantic by calling `to_dict()` of each item in vd (list)
|
|
71
|
+
_items = []
|
|
72
|
+
if self.vd:
|
|
73
|
+
for _item_vd in self.vd:
|
|
74
|
+
if _item_vd and hasattr(_item_vd, "to_dict"):
|
|
75
|
+
_items.append(_item_vd.to_dict())
|
|
76
|
+
_dict['vd'] = _items
|
|
77
|
+
return _dict
|
|
78
|
+
|
|
79
|
+
@classmethod
|
|
80
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
81
|
+
"""Create an instance of VEItem from a dict"""
|
|
82
|
+
if obj is None:
|
|
83
|
+
return None
|
|
84
|
+
|
|
85
|
+
if not isinstance(obj, dict):
|
|
86
|
+
return cls.model_validate(obj)
|
|
87
|
+
|
|
88
|
+
_obj = cls.model_validate({
|
|
89
|
+
"des": obj.get("des"),
|
|
90
|
+
"dis": obj.get("dis"),
|
|
91
|
+
"nam": obj.get("nam"),
|
|
92
|
+
"vd": [VDItem.from_dict(_item) for _item in obj.get("vd", []) if VDItem.from_dict(_item) is not None]
|
|
93
|
+
})
|
|
94
|
+
return _obj
|
|
95
|
+
|
|
96
|
+
|
|
@@ -81,7 +81,7 @@ class VisualExtendedFieldItem(BaseModel):
|
|
|
81
81
|
_items = []
|
|
82
82
|
if self.strings_result:
|
|
83
83
|
for _item_strings_result in self.strings_result:
|
|
84
|
-
if _item_strings_result:
|
|
84
|
+
if _item_strings_result and hasattr(_item_strings_result, "to_dict"):
|
|
85
85
|
_items.append(_item_strings_result.to_dict())
|
|
86
86
|
_dict['StringsResult'] = _items
|
|
87
87
|
return _dict
|