regula.documentreader.webclient 9.1.3.dev0__py3-none-any.whl → 9.1.623.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.
- regula/documentreader/webclient/gen/__init__.py +0 -45
- regula/documentreader/webclient/gen/models/__init__.py +0 -30
- regula/documentreader/webclient/gen/models/container_list_list_inner.py +8 -36
- regula/documentreader/webclient/gen/models/result.py +0 -6
- regula/documentreader/webclient/gen/models/result_item.py +3 -9
- regula/documentreader/webclient/gen/models/status.py +2 -12
- regula/documentreader/webclient/gen/models/text_field_type.py +0 -3
- regula/documentreader/webclient/gen/models/trf_ft_string.py +1 -1
- {regula_documentreader_webclient-9.1.3.dev0.dist-info → regula_documentreader_webclient-9.1.623.dev0.dist-info}/METADATA +1 -1
- {regula_documentreader_webclient-9.1.3.dev0.dist-info → regula_documentreader_webclient-9.1.623.dev0.dist-info}/RECORD +12 -27
- regula/documentreader/webclient/gen/models/details_age.py +0 -93
- regula/documentreader/webclient/gen/models/doc_feature.py +0 -88
- regula/documentreader/webclient/gen/models/mdl_device_engagement.py +0 -29
- regula/documentreader/webclient/gen/models/mdl_device_retrieval.py +0 -30
- regula/documentreader/webclient/gen/models/mdl_server_retrieval.py +0 -29
- regula/documentreader/webclient/gen/models/message.py +0 -98
- regula/documentreader/webclient/gen/models/pid.py +0 -88
- regula/documentreader/webclient/gen/models/vd_item.py +0 -90
- regula/documentreader/webclient/gen/models/vds_data.py +0 -126
- regula/documentreader/webclient/gen/models/vds_data_item.py +0 -86
- regula/documentreader/webclient/gen/models/vds_data_result.py +0 -93
- regula/documentreader/webclient/gen/models/vdsnc_data.py +0 -117
- regula/documentreader/webclient/gen/models/vdsnc_data_item.py +0 -86
- regula/documentreader/webclient/gen/models/vdsnc_data_result.py +0 -93
- regula/documentreader/webclient/gen/models/ve_item.py +0 -96
- {regula_documentreader_webclient-9.1.3.dev0.dist-info → regula_documentreader_webclient-9.1.623.dev0.dist-info}/WHEEL +0 -0
- {regula_documentreader_webclient-9.1.3.dev0.dist-info → regula_documentreader_webclient-9.1.623.dev0.dist-info}/top_level.txt +0 -0
|
@@ -1,126 +0,0 @@
|
|
|
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.doc_feature import DocFeature
|
|
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 VDSData(BaseModel):
|
|
22
|
-
"""
|
|
23
|
-
VDSData
|
|
24
|
-
""" # noqa: E501
|
|
25
|
-
certificate: SkipValidation[Optional[str]] = Field(alias="Certificate", default=None)
|
|
26
|
-
certificate_chain: SkipValidation[Optional[List[RfidCertificateEx]]] = Field(alias="CertificateChain", default=None)
|
|
27
|
-
doc_features: SkipValidation[Optional[List[DocFeature]]] = Field(alias="DocFeatures", default=None)
|
|
28
|
-
doc_issue_date: SkipValidation[Optional[str]] = Field(alias="DocIssueDate", default=None)
|
|
29
|
-
doc_type: SkipValidation[Optional[int]] = Field(alias="DocType", default=None)
|
|
30
|
-
feature_ref: SkipValidation[Optional[int]] = Field(alias="FeatureRef", default=None)
|
|
31
|
-
issuing_country: SkipValidation[Optional[str]] = Field(alias="IssuingCountry", default=None)
|
|
32
|
-
notifications: SkipValidation[Optional[List[int]]] = Field(alias="Notifications", default=None)
|
|
33
|
-
signature: SkipValidation[Optional[TrfFtBytes]] = Field(alias="Signature", default=None)
|
|
34
|
-
signature_date: SkipValidation[Optional[str]] = Field(alias="SignatureDate", default=None)
|
|
35
|
-
signer: SkipValidation[Optional[str]] = Field(alias="Signer", default=None)
|
|
36
|
-
type: SkipValidation[Optional[int]] = Field(alias="Type", default=None)
|
|
37
|
-
version: SkipValidation[Optional[int]] = Field(alias="Version", default=None)
|
|
38
|
-
__properties: ClassVar[List[str]] = ["Certificate", "CertificateChain", "DocFeatures", "DocIssueDate", "DocType", "FeatureRef", "IssuingCountry", "Notifications", "Signature", "SignatureDate", "Signer", "Type", "Version"]
|
|
39
|
-
|
|
40
|
-
model_config = ConfigDict(
|
|
41
|
-
populate_by_name=True,
|
|
42
|
-
validate_assignment=True,
|
|
43
|
-
protected_namespaces=(),
|
|
44
|
-
arbitrary_types_allowed=True,
|
|
45
|
-
use_enum_values=True
|
|
46
|
-
)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
def to_str(self) -> str:
|
|
50
|
-
"""Returns the string representation of the model using alias"""
|
|
51
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
52
|
-
|
|
53
|
-
def to_json(self) -> str:
|
|
54
|
-
"""Returns the JSON representation of the model using alias"""
|
|
55
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
56
|
-
return json.dumps(self.to_dict())
|
|
57
|
-
|
|
58
|
-
@classmethod
|
|
59
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
60
|
-
"""Create an instance of VDSData from a JSON string"""
|
|
61
|
-
return cls.from_dict(json.loads(json_str))
|
|
62
|
-
|
|
63
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
64
|
-
"""Return the dictionary representation of the model using alias.
|
|
65
|
-
|
|
66
|
-
This has the following differences from calling pydantic's
|
|
67
|
-
`self.model_dump(by_alias=True)`:
|
|
68
|
-
|
|
69
|
-
* `None` is only added to the output dict for nullable fields that
|
|
70
|
-
were set at model initialization. Other fields with value `None`
|
|
71
|
-
are ignored.
|
|
72
|
-
"""
|
|
73
|
-
excluded_fields: Set[str] = set([
|
|
74
|
-
])
|
|
75
|
-
|
|
76
|
-
_dict = self.model_dump(
|
|
77
|
-
by_alias=True,
|
|
78
|
-
exclude=excluded_fields,
|
|
79
|
-
exclude_none=True,
|
|
80
|
-
)
|
|
81
|
-
# override the default output from pydantic by calling `to_dict()` of each item in certificate_chain (list)
|
|
82
|
-
_items = []
|
|
83
|
-
if self.certificate_chain:
|
|
84
|
-
for _item_certificate_chain in self.certificate_chain:
|
|
85
|
-
if _item_certificate_chain:
|
|
86
|
-
_items.append(_item_certificate_chain.to_dict())
|
|
87
|
-
_dict['CertificateChain'] = _items
|
|
88
|
-
# override the default output from pydantic by calling `to_dict()` of each item in doc_features (list)
|
|
89
|
-
_items = []
|
|
90
|
-
if self.doc_features:
|
|
91
|
-
for _item_doc_features in self.doc_features:
|
|
92
|
-
if _item_doc_features:
|
|
93
|
-
_items.append(_item_doc_features.to_dict())
|
|
94
|
-
_dict['DocFeatures'] = _items
|
|
95
|
-
# override the default output from pydantic by calling `to_dict()` of signature
|
|
96
|
-
if self.signature:
|
|
97
|
-
_dict['Signature'] = self.signature.to_dict()
|
|
98
|
-
return _dict
|
|
99
|
-
|
|
100
|
-
@classmethod
|
|
101
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
102
|
-
"""Create an instance of VDSData from a dict"""
|
|
103
|
-
if obj is None:
|
|
104
|
-
return None
|
|
105
|
-
|
|
106
|
-
if not isinstance(obj, dict):
|
|
107
|
-
return cls.model_validate(obj)
|
|
108
|
-
|
|
109
|
-
_obj = cls.model_validate({
|
|
110
|
-
"Certificate": obj.get("Certificate"),
|
|
111
|
-
"CertificateChain": [RfidCertificateEx.from_dict(_item) for _item in obj.get("CertificateChain", []) if RfidCertificateEx.from_dict(_item) is not None],
|
|
112
|
-
"DocFeatures": [DocFeature.from_dict(_item) for _item in obj.get("DocFeatures", []) if DocFeature.from_dict(_item) is not None],
|
|
113
|
-
"DocIssueDate": obj.get("DocIssueDate"),
|
|
114
|
-
"DocType": obj.get("DocType"),
|
|
115
|
-
"FeatureRef": obj.get("FeatureRef"),
|
|
116
|
-
"IssuingCountry": obj.get("IssuingCountry"),
|
|
117
|
-
"Notifications": obj.get("Notifications"),
|
|
118
|
-
"Signature": TrfFtBytes.from_dict(obj["Signature"]) if obj.get("Signature") is not None else None,
|
|
119
|
-
"SignatureDate": obj.get("SignatureDate"),
|
|
120
|
-
"Signer": obj.get("Signer"),
|
|
121
|
-
"Type": obj.get("Type"),
|
|
122
|
-
"Version": obj.get("Version")
|
|
123
|
-
})
|
|
124
|
-
return _obj
|
|
125
|
-
|
|
126
|
-
|
|
@@ -1,86 +0,0 @@
|
|
|
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.vds_data import VDSData
|
|
15
|
-
from typing import Optional, Set
|
|
16
|
-
from typing_extensions import Self
|
|
17
|
-
from pydantic import SkipValidation, Field
|
|
18
|
-
|
|
19
|
-
class VDSDataItem(BaseModel):
|
|
20
|
-
"""
|
|
21
|
-
VDSDataItem
|
|
22
|
-
""" # noqa: E501
|
|
23
|
-
dft_vds: SkipValidation[VDSData] = Field(alias="dftVDS")
|
|
24
|
-
__properties: ClassVar[List[str]] = ["dftVDS"]
|
|
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 VDSDataItem 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
|
|
68
|
-
if self.dft_vds:
|
|
69
|
-
_dict['dftVDS'] = self.dft_vds.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 VDSDataItem 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": VDSData.from_dict(obj["dftVDS"]) if obj.get("dftVDS") is not None else None
|
|
83
|
-
})
|
|
84
|
-
return _obj
|
|
85
|
-
|
|
86
|
-
|
|
@@ -1,93 +0,0 @@
|
|
|
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:
|
|
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
|
-
|
|
@@ -1,117 +0,0 @@
|
|
|
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:
|
|
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:
|
|
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:
|
|
89
|
-
_dict['Message'] = self.message.to_dict()
|
|
90
|
-
# override the default output from pydantic by calling `to_dict()` of signature
|
|
91
|
-
if self.signature:
|
|
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
|
-
|
|
@@ -1,86 +0,0 @@
|
|
|
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:
|
|
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
|
-
|
|
@@ -1,93 +0,0 @@
|
|
|
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:
|
|
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
|
-
|