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
|
@@ -17,7 +17,7 @@ regula/documentreader/webclient/ext/models/authenticity/ident.py,sha256=DSmXEJ-v
|
|
|
17
17
|
regula/documentreader/webclient/ext/models/authenticity/image_ident.py,sha256=QmKTghP4Lo7bHBEubwzsVt1ob97NNaNIu_5QN_LUF9M,370
|
|
18
18
|
regula/documentreader/webclient/ext/models/authenticity/ocr_security_text.py,sha256=BV0h2_UDrwUlWczoJQW8qTSkdZ0icm0n0pPDRY9Qwq4,407
|
|
19
19
|
regula/documentreader/webclient/ext/models/authenticity/security_feature.py,sha256=t8egDyT1wlGvsyvZboAFOvcaYsALGpj41E50FUbvx68,622
|
|
20
|
-
regula/documentreader/webclient/gen/__init__.py,sha256=
|
|
20
|
+
regula/documentreader/webclient/gen/__init__.py,sha256=gR3bW_kkK7ZSqQUbUYhdc0S9Y2wX9QFnR0pjkJ22Amw,61447
|
|
21
21
|
regula/documentreader/webclient/gen/api_client.py,sha256=BZ1SIy0PwA4khadeMet9fNj8pt1j_OaaebUSHChq31k,27673
|
|
22
22
|
regula/documentreader/webclient/gen/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
23
23
|
regula/documentreader/webclient/gen/configuration.py,sha256=0hMqlAxYaL30050LBPnHrh6Sg1EIfSfQLr0eGNRNz1w,18084
|
|
@@ -29,7 +29,7 @@ regula/documentreader/webclient/gen/api/healthcheck_api.py,sha256=g3Q3XsdgYfEmmd
|
|
|
29
29
|
regula/documentreader/webclient/gen/api/process_api.py,sha256=RnJXVZy-M1bNfiXK0tHEQEuhOgxkXk9jMG-hpZfTjZ8,12123
|
|
30
30
|
regula/documentreader/webclient/gen/api/resources_api.py,sha256=grQfqv8hZNJnR1hC72jG614D_Y9MDn3sMyZYWllk15U,10264
|
|
31
31
|
regula/documentreader/webclient/gen/api/transaction_api.py,sha256=53uZvktOfFNr_b9iWYR0AqD4YGTzvVtfUa25ir5ooqE,66657
|
|
32
|
-
regula/documentreader/webclient/gen/models/__init__.py,sha256=
|
|
32
|
+
regula/documentreader/webclient/gen/models/__init__.py,sha256=PDtw9Ds3a-mP2OnXUz8mIwyPHRJJZyQVt-8a5GFShU0,43503
|
|
33
33
|
regula/documentreader/webclient/gen/models/area_array.py,sha256=cWpxUR1lpgj1UalajIiU8s3OjhWEZqYli9bV02ixT2M,3684
|
|
34
34
|
regula/documentreader/webclient/gen/models/area_container.py,sha256=E6e1gPW516A0KCAmHm05ad_I0yD3FauruZgNxU-EIdA,3665
|
|
35
35
|
regula/documentreader/webclient/gen/models/auth_params.py,sha256=uekqgWLMhr_WNXiGrQ4gx84-0DK0A1D4clngrCIQrOY,6739
|
|
@@ -56,13 +56,12 @@ regula/documentreader/webclient/gen/models/check_result.py,sha256=8dR5KtJtyeSv4s
|
|
|
56
56
|
regula/documentreader/webclient/gen/models/chosen_document_type.py,sha256=OViFmaCelCodYx1KKoCTtE3hsiI7luRFRFFvf_WsWCI,5443
|
|
57
57
|
regula/documentreader/webclient/gen/models/chosen_document_type_result.py,sha256=BTPpnLNnACMAKNRB38UO8nGLV8Mi5-6vt_HaE5rfQNA,3559
|
|
58
58
|
regula/documentreader/webclient/gen/models/container_list.py,sha256=D7AIUZx8-8GxEx1elIEzgMnmOTJmA_qHRAyFZhe0qIA,3090
|
|
59
|
-
regula/documentreader/webclient/gen/models/container_list_list_inner.py,sha256=
|
|
59
|
+
regula/documentreader/webclient/gen/models/container_list_list_inner.py,sha256=Q3mwy0_oyoU5gh6S6TVGILQykZfaq7YoBnswMEF3bCo,24098
|
|
60
60
|
regula/documentreader/webclient/gen/models/critical.py,sha256=u_jXlQuCjH5mDzT79bswOCm3-mv3uGfd345QHRLIopk,564
|
|
61
61
|
regula/documentreader/webclient/gen/models/cross_source_value_comparison.py,sha256=vErGJnUVL1wFNng3-9vZT6j9JRt4O_n40awdZf8hIPc,2849
|
|
62
62
|
regula/documentreader/webclient/gen/models/data_module.py,sha256=gprIbhcuGDWFrfYyncW0XmkpUzm7k9bPsyebQQbJ8gs,3017
|
|
63
63
|
regula/documentreader/webclient/gen/models/database_document.py,sha256=-Feuit0SvCg47y3FpPQUkNbinpUFRsg4lgO2g_egRuY,4970
|
|
64
64
|
regula/documentreader/webclient/gen/models/database_document_list.py,sha256=6cW6klu0XBCoQgjUb3o92XIWMnRNWKHsjn-aR_A1p1U,2983
|
|
65
|
-
regula/documentreader/webclient/gen/models/details_age.py,sha256=WBSKGLriHuGOPU61JKF69GNLcofGTlpdyS_Kcj4JnXw,3078
|
|
66
65
|
regula/documentreader/webclient/gen/models/details_optical.py,sha256=4BqIREpkP_KLFjr7g5poV_juFOiv3sn9HSb016-mioE,3531
|
|
67
66
|
regula/documentreader/webclient/gen/models/details_rfid.py,sha256=0E9egs-_npBsr5C9obstMx9ebRypofQg6f15_IkQwgU,3095
|
|
68
67
|
regula/documentreader/webclient/gen/models/device_info.py,sha256=ug5JWmmRuwRuRZygdK6kzskEOWHNgCjfLR-O0ewzVX8,4594
|
|
@@ -70,7 +69,6 @@ regula/documentreader/webclient/gen/models/device_info_documents_database.py,sha
|
|
|
70
69
|
regula/documentreader/webclient/gen/models/doc_bar_code_info.py,sha256=hg_RU7ies7BEYmvN0_kFDrK2tQcaDCZ71zWikbLo6GM,3272
|
|
71
70
|
regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py,sha256=DvoP575ANKYeOKO2NMSPX-rA7lgA055FnlKU7Eec5c4,3206
|
|
72
71
|
regula/documentreader/webclient/gen/models/doc_bar_code_info_item.py,sha256=sPi74QQjYLh_uK4KIVewSZoZOAM9GAnyd27c4NhLE0Q,2852
|
|
73
|
-
regula/documentreader/webclient/gen/models/doc_feature.py,sha256=N6AwW5EkALFunmmoE0U8w0agz4jO32Xuf00pzujyEhE,2779
|
|
74
72
|
regula/documentreader/webclient/gen/models/doc_graphics_info_item.py,sha256=YQMRXQPfM2ZoHx69SiwtvyvKu9B1NzRYHFxSW9SUy78,2831
|
|
75
73
|
regula/documentreader/webclient/gen/models/doc_visual_extended_field.py,sha256=1BeX6uWCLPxn7Vex3ZN6PJ4u4ZnvNMNwwMO2Et23ufw,5721
|
|
76
74
|
regula/documentreader/webclient/gen/models/doc_visual_extended_field_item.py,sha256=bKHnKFy_gJzSPlTu4PaOzVrfmwLi7UrVdbaxD6Q-uzk,2806
|
|
@@ -143,11 +141,7 @@ regula/documentreader/webclient/gen/models/list_verified_fields.py,sha256=chfV_H
|
|
|
143
141
|
regula/documentreader/webclient/gen/models/list_verified_fields_item.py,sha256=zVbWAC19EBgXOfjbA9RSeZiUUwiHMZrkIWTGRqG8c0g,2877
|
|
144
142
|
regula/documentreader/webclient/gen/models/liveness_params.py,sha256=dbVfqHOq-zjxWIIvK7uIGNUSzAqB4G9jUDEYbgWDB6s,3882
|
|
145
143
|
regula/documentreader/webclient/gen/models/log_level.py,sha256=ZZuHw_XCtkEtFZrIeW17vk0eKCn3GBPREaqThQAPtYU,563
|
|
146
|
-
regula/documentreader/webclient/gen/models/mdl_device_engagement.py,sha256=xXkTopm3VRY_rhj-4LS7soXSbbDkPldYjLuEEJL-Fro,506
|
|
147
|
-
regula/documentreader/webclient/gen/models/mdl_device_retrieval.py,sha256=I-DF-we7QGeY7P8YrVOnOHaHRyNhfKVqNvGUgEcs-js,523
|
|
148
|
-
regula/documentreader/webclient/gen/models/mdl_server_retrieval.py,sha256=trfXT9krsDRZ2ip-6J1pW9slot5QCt9B504cPHrt7k4,509
|
|
149
144
|
regula/documentreader/webclient/gen/models/measure_system.py,sha256=CltBZGhqVVeuAIKEkrSnN7A2Ao65BBEtwaieEJMbdnQ,497
|
|
150
|
-
regula/documentreader/webclient/gen/models/message.py,sha256=k0aUfq2rTv5zksHJaGPp2WBIqXPU0DwwUBGHMosLoSY,3322
|
|
151
145
|
regula/documentreader/webclient/gen/models/mrz_detect_mode_enum.py,sha256=gc8c4HTAa5yRutUhXOFbO2ZKhphArW0vhenb24bEJTE,643
|
|
152
146
|
regula/documentreader/webclient/gen/models/mrz_detector_result.py,sha256=4nDts7h7Aj8I4thH26zTaj2sngQmueRnU_FPmNDdajI,3271
|
|
153
147
|
regula/documentreader/webclient/gen/models/mrz_format.py,sha256=Uct326zRg58CUYdSyKdFbLU76JTSuw1KnDbFaidY5aQ,559
|
|
@@ -171,7 +165,6 @@ regula/documentreader/webclient/gen/models/parsing_notification_codes.py,sha256=
|
|
|
171
165
|
regula/documentreader/webclient/gen/models/per_document_config.py,sha256=qdBiuRsElHMytcwFd67pny401xK8tktJS1pIX4c8K1s,2789
|
|
172
166
|
regula/documentreader/webclient/gen/models/photo_ident_item.py,sha256=yzF5Eki2rr2dTnAaEQDo2CBXKYmyIa1BgODIx6bfOE4,4660
|
|
173
167
|
regula/documentreader/webclient/gen/models/photo_ident_result.py,sha256=_BD7dYR8Jqzlm2Y449VeGrPA5Z557BZ-qE-iLeXLJXs,5320
|
|
174
|
-
regula/documentreader/webclient/gen/models/pid.py,sha256=EbCFBNMnDm96XP5GD00umks9NQ38gunU2MtKRS0DhDU,2684
|
|
175
168
|
regula/documentreader/webclient/gen/models/point.py,sha256=TBIznHwx7KPGeWBoA9uGcQks_zYsm17w2AuQyagz9QU,2402
|
|
176
169
|
regula/documentreader/webclient/gen/models/point_array.py,sha256=m7QaOSsfbOzL6Skd8dWdvJjMJrwGVJxqnqxVg0XaM8A,2893
|
|
177
170
|
regula/documentreader/webclient/gen/models/points_container.py,sha256=4zYuorTsQpbPDHwcVlJVtfNj9sc6g9h5b1idHnRQEVU,3086
|
|
@@ -185,8 +178,8 @@ regula/documentreader/webclient/gen/models/processing_status.py,sha256=VFs_GzMU3
|
|
|
185
178
|
regula/documentreader/webclient/gen/models/raw_image_container_item.py,sha256=qpCN3IRFDbywlXxn2pkC6XLX5LzWIL5wrHH2I0h9zR0,2826
|
|
186
179
|
regula/documentreader/webclient/gen/models/raw_image_container_list.py,sha256=HJKyDkR8mCuQedF3t-l-owVtoJL7lNChrAK6cAtaVDc,3016
|
|
187
180
|
regula/documentreader/webclient/gen/models/rectangle_coordinates.py,sha256=OZzFXUtxoUUTMgU31GGRkILFRdsW_QqTW41H656al3E,2805
|
|
188
|
-
regula/documentreader/webclient/gen/models/result.py,sha256=
|
|
189
|
-
regula/documentreader/webclient/gen/models/result_item.py,sha256=
|
|
181
|
+
regula/documentreader/webclient/gen/models/result.py,sha256=RLIWS_JHLECXr4xdA-PEAK_68b3XZ9-tuQBPA2pSBas,1289
|
|
182
|
+
regula/documentreader/webclient/gen/models/result_item.py,sha256=ixkFnv-JBZFHrWDQn-4Qo5Qtd_i9cOoaXENe6-CsRgM,15820
|
|
190
183
|
regula/documentreader/webclient/gen/models/result_mrz_detector.py,sha256=r2drhoMxeyyPmHWD0e0t5NZzZaoD9n8gAT1beeWuul0,3376
|
|
191
184
|
regula/documentreader/webclient/gen/models/result_mrz_detector_item.py,sha256=KjpJG3hfyZbu84xqQMQYue1Mb5DjzOGBn6gA5ERgJ3M,2859
|
|
192
185
|
regula/documentreader/webclient/gen/models/rfid_a_chip.py,sha256=UyJYlx6g9NXxGPfcRGMwYkL_GeP8JydF81NftfLVau4,684
|
|
@@ -235,7 +228,7 @@ regula/documentreader/webclient/gen/models/security_feature_type.py,sha256=5j0Dt
|
|
|
235
228
|
regula/documentreader/webclient/gen/models/security_object_certificates.py,sha256=F-pbPcpsp51_YW-d3VgZ7gn7rVFS81tfhPlaoTfjYpQ,2886
|
|
236
229
|
regula/documentreader/webclient/gen/models/source.py,sha256=CjKAJPFDZyN8lcoIhBl57Cxrls0m58dbjTPz81Sur10,641
|
|
237
230
|
regula/documentreader/webclient/gen/models/source_validity.py,sha256=z5ckCcvZZ6IEVu0G7AKz0drQMLIRbY8TImMFVSlLeuo,2637
|
|
238
|
-
regula/documentreader/webclient/gen/models/status.py,sha256=
|
|
231
|
+
regula/documentreader/webclient/gen/models/status.py,sha256=phNUgtOQLI_YKeyrrKlPe78XFq6qVb1KA4SIvsCqn_s,3965
|
|
239
232
|
regula/documentreader/webclient/gen/models/status_item.py,sha256=16FcLnOA2NAKr94CJTohBeLrF4TbCK3ZGmMjAwcjF24,2651
|
|
240
233
|
regula/documentreader/webclient/gen/models/status_result.py,sha256=ITFIjlOMc_Rd6v_E8wQpKiNvR65xyoNkzlYP5kKOlHY,3087
|
|
241
234
|
regula/documentreader/webclient/gen/models/string_item.py,sha256=9FybYipdongy1J-_k5XQml47wwCfIVNdlaLjz78OLYI,6927
|
|
@@ -252,7 +245,7 @@ regula/documentreader/webclient/gen/models/text.py,sha256=a_WFOqoPmkOptCtWTs7ika
|
|
|
252
245
|
regula/documentreader/webclient/gen/models/text_available_source.py,sha256=qfAaL-BVmM7Cg8lB0-xF-z3HGUyjM1F47e6Bi400_k0,3044
|
|
253
246
|
regula/documentreader/webclient/gen/models/text_data_result.py,sha256=b9-BEzhbprSeWMMosxl3bei1HNQQ-ytutVEr4EiHCbc,3413
|
|
254
247
|
regula/documentreader/webclient/gen/models/text_field.py,sha256=StFa1zm789hfuhOXlM7ZJBvmRIyOSwVRKMOSjUVtzxE,6178
|
|
255
|
-
regula/documentreader/webclient/gen/models/text_field_type.py,sha256=
|
|
248
|
+
regula/documentreader/webclient/gen/models/text_field_type.py,sha256=Hf2BlAJJ1RKvWEVBMi6eIxLsEOwRTZ7stEgU3USYkVk,19131
|
|
256
249
|
regula/documentreader/webclient/gen/models/text_field_value.py,sha256=Cj5DcIyy7OZ05SSfQm0_XPN6QOlT4FbTss-NMyte_Jk,5683
|
|
257
250
|
regula/documentreader/webclient/gen/models/text_item.py,sha256=muchBqv6bDHgUchi_W856zNeJ-nzO-mMbj4flGq4hDo,2615
|
|
258
251
|
regula/documentreader/webclient/gen/models/text_post_processing.py,sha256=EFF0vw50SRGvfqq2YGaL0aPdedViOTG5HDwnix_Od8U,550
|
|
@@ -265,20 +258,12 @@ regula/documentreader/webclient/gen/models/transaction_process_response.py,sha25
|
|
|
265
258
|
regula/documentreader/webclient/gen/models/transaction_process_response_item.py,sha256=D-tascu0Ios_WeE0rXseORYj_gQi6q-IQ70YzeHxgNQ,2390
|
|
266
259
|
regula/documentreader/webclient/gen/models/transaction_process_result.py,sha256=HJOwiajLzjxZmGaX3O2rGB4YRFeVqgBHs-3Vqo6_3r8,3502
|
|
267
260
|
regula/documentreader/webclient/gen/models/trf_ft_bytes.py,sha256=6vWRV9YlfP-OV1mO_CPEu3MKLVxVjaIgu3oEqKZNtFw,3274
|
|
268
|
-
regula/documentreader/webclient/gen/models/trf_ft_string.py,sha256=
|
|
269
|
-
regula/documentreader/webclient/gen/models/vd_item.py,sha256=pMNJVdWYo7h6oLhbR8eZSR8M0jHdqWRexSuARju_G38,2843
|
|
270
|
-
regula/documentreader/webclient/gen/models/vds_data.py,sha256=KR6VNcDFV_Vgt51TIX24Alm8nmuOqDI5cUd2eyZhVuI,5748
|
|
271
|
-
regula/documentreader/webclient/gen/models/vds_data_item.py,sha256=NqWCy75kr95XY_PEBFrFOVdSgQXIOVwtDe-Fd27XGO4,2664
|
|
272
|
-
regula/documentreader/webclient/gen/models/vds_data_result.py,sha256=uuXgimoabJfQbeYw5akhHtVpkznex3jex8RQk82py5A,3100
|
|
273
|
-
regula/documentreader/webclient/gen/models/vdsnc_data.py,sha256=mRFvFJkGteyL_h7kq8dH6pu_xV1yvpBnoEkYzrjHAbc,5156
|
|
274
|
-
regula/documentreader/webclient/gen/models/vdsnc_data_item.py,sha256=ENRJzU3PHxMPE94Qa2skyWlbh_j5jvGUQ-hw5eFZ5Og,2710
|
|
275
|
-
regula/documentreader/webclient/gen/models/vdsnc_data_result.py,sha256=ZTYbSbhcBRpgTUBqD6W4DXS2zlhu1so203Jvb5xmxc0,3146
|
|
276
|
-
regula/documentreader/webclient/gen/models/ve_item.py,sha256=mYOe0GSYvtBbHGNSZpD0iDhZuuHT3nsWGhHaTq02QNM,3166
|
|
261
|
+
regula/documentreader/webclient/gen/models/trf_ft_string.py,sha256=zit-BfGpC-6ypcSyie6QXEV5Hj31KFfMWLjHjBR6uEg,3139
|
|
277
262
|
regula/documentreader/webclient/gen/models/verification_result.py,sha256=E6bCVR52S9-i3ZVOkzJ38w3qAc7G2K3HUPpYWC2D-wc,583
|
|
278
263
|
regula/documentreader/webclient/gen/models/verified_field_map.py,sha256=QjCCjZ82WhT5uzdFthwfiX4Kgi5RL_m7E0NprLhHAJs,4863
|
|
279
264
|
regula/documentreader/webclient/gen/models/visibility.py,sha256=GACgQd_8lx_cwMwI5lCi7cTxEWxw2atbJo6uI4mTKpQ,602
|
|
280
265
|
regula/documentreader/webclient/gen/models/visual_extended_field_item.py,sha256=MsDqAPnzrT67opVj7Qq1o4aESygjjsi9YgmYO38-p9k,5237
|
|
281
|
-
regula_documentreader_webclient-9.1.
|
|
282
|
-
regula_documentreader_webclient-9.1.
|
|
283
|
-
regula_documentreader_webclient-9.1.
|
|
284
|
-
regula_documentreader_webclient-9.1.
|
|
266
|
+
regula_documentreader_webclient-9.1.623.dev0.dist-info/METADATA,sha256=-0q83TIJEkdsALelIcDF4GnJ-Dn4xNStLQ4tBQdMNoM,4036
|
|
267
|
+
regula_documentreader_webclient-9.1.623.dev0.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
|
|
268
|
+
regula_documentreader_webclient-9.1.623.dev0.dist-info/top_level.txt,sha256=SFSSVn4j8QDivd3307s97NtpIJ8zOjiWZloAxZIClJY,7
|
|
269
|
+
regula_documentreader_webclient-9.1.623.dev0.dist-info/RECORD,,
|
|
@@ -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 BaseModel, ConfigDict, Field, StrictInt
|
|
13
|
-
from typing import Any, ClassVar, Dict, List
|
|
14
|
-
from regula.documentreader.webclient.gen.models.check_result import CheckResult
|
|
15
|
-
from typing import Optional, Set
|
|
16
|
-
from typing_extensions import Self
|
|
17
|
-
from pydantic import SkipValidation, Field
|
|
18
|
-
|
|
19
|
-
class DetailsAge(BaseModel):
|
|
20
|
-
"""
|
|
21
|
-
DetailsAge
|
|
22
|
-
""" # noqa: E501
|
|
23
|
-
threshold: SkipValidation[int] = Field(alias="threshold")
|
|
24
|
-
over_threshold: SkipValidation[CheckResult] = Field(alias="overThreshold")
|
|
25
|
-
over18: SkipValidation[CheckResult] = Field(alias="over18")
|
|
26
|
-
over21: SkipValidation[CheckResult] = Field(alias="over21")
|
|
27
|
-
over25: SkipValidation[CheckResult] = Field(alias="over25")
|
|
28
|
-
over65: SkipValidation[CheckResult] = Field(alias="over65")
|
|
29
|
-
__properties: ClassVar[List[str]] = ["threshold", "overThreshold", "over18", "over21", "over25", "over65"]
|
|
30
|
-
|
|
31
|
-
model_config = ConfigDict(
|
|
32
|
-
populate_by_name=True,
|
|
33
|
-
validate_assignment=True,
|
|
34
|
-
protected_namespaces=(),
|
|
35
|
-
arbitrary_types_allowed=True,
|
|
36
|
-
use_enum_values=True
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
def to_str(self) -> str:
|
|
41
|
-
"""Returns the string representation of the model using alias"""
|
|
42
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
-
|
|
44
|
-
def to_json(self) -> str:
|
|
45
|
-
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
-
|
|
49
|
-
@classmethod
|
|
50
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
-
"""Create an instance of DetailsAge from a JSON string"""
|
|
52
|
-
return cls.from_dict(json.loads(json_str))
|
|
53
|
-
|
|
54
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
-
"""Return the dictionary representation of the model using alias.
|
|
56
|
-
|
|
57
|
-
This has the following differences from calling pydantic's
|
|
58
|
-
`self.model_dump(by_alias=True)`:
|
|
59
|
-
|
|
60
|
-
* `None` is only added to the output dict for nullable fields that
|
|
61
|
-
were set at model initialization. Other fields with value `None`
|
|
62
|
-
are ignored.
|
|
63
|
-
"""
|
|
64
|
-
excluded_fields: Set[str] = set([
|
|
65
|
-
])
|
|
66
|
-
|
|
67
|
-
_dict = self.model_dump(
|
|
68
|
-
by_alias=True,
|
|
69
|
-
exclude=excluded_fields,
|
|
70
|
-
exclude_none=True,
|
|
71
|
-
)
|
|
72
|
-
return _dict
|
|
73
|
-
|
|
74
|
-
@classmethod
|
|
75
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
-
"""Create an instance of DetailsAge 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
|
-
"threshold": obj.get("threshold"),
|
|
85
|
-
"overThreshold": obj.get("overThreshold"),
|
|
86
|
-
"over18": obj.get("over18"),
|
|
87
|
-
"over21": obj.get("over21"),
|
|
88
|
-
"over25": obj.get("over25"),
|
|
89
|
-
"over65": obj.get("over65")
|
|
90
|
-
})
|
|
91
|
-
return _obj
|
|
92
|
-
|
|
93
|
-
|
|
@@ -1,88 +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, StrictFloat, StrictInt
|
|
13
|
-
from typing import Any, ClassVar, Dict, List, Union
|
|
14
|
-
from regula.documentreader.webclient.gen.models.trf_ft_bytes import TrfFtBytes
|
|
15
|
-
from typing import Optional, Set
|
|
16
|
-
from typing_extensions import Self
|
|
17
|
-
from pydantic import SkipValidation, Field
|
|
18
|
-
|
|
19
|
-
class DocFeature(BaseModel):
|
|
20
|
-
"""
|
|
21
|
-
DocFeature
|
|
22
|
-
""" # noqa: E501
|
|
23
|
-
type: SkipValidation[float] = Field(alias="Type")
|
|
24
|
-
data: SkipValidation[TrfFtBytes] = Field(alias="Data")
|
|
25
|
-
__properties: ClassVar[List[str]] = ["Type", "Data"]
|
|
26
|
-
|
|
27
|
-
model_config = ConfigDict(
|
|
28
|
-
populate_by_name=True,
|
|
29
|
-
validate_assignment=True,
|
|
30
|
-
protected_namespaces=(),
|
|
31
|
-
arbitrary_types_allowed=True,
|
|
32
|
-
use_enum_values=True
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
def to_str(self) -> str:
|
|
37
|
-
"""Returns the string representation of the model using alias"""
|
|
38
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
39
|
-
|
|
40
|
-
def to_json(self) -> str:
|
|
41
|
-
"""Returns the JSON representation of the model using alias"""
|
|
42
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
43
|
-
return json.dumps(self.to_dict())
|
|
44
|
-
|
|
45
|
-
@classmethod
|
|
46
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
47
|
-
"""Create an instance of DocFeature from a JSON string"""
|
|
48
|
-
return cls.from_dict(json.loads(json_str))
|
|
49
|
-
|
|
50
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
51
|
-
"""Return the dictionary representation of the model using alias.
|
|
52
|
-
|
|
53
|
-
This has the following differences from calling pydantic's
|
|
54
|
-
`self.model_dump(by_alias=True)`:
|
|
55
|
-
|
|
56
|
-
* `None` is only added to the output dict for nullable fields that
|
|
57
|
-
were set at model initialization. Other fields with value `None`
|
|
58
|
-
are ignored.
|
|
59
|
-
"""
|
|
60
|
-
excluded_fields: Set[str] = set([
|
|
61
|
-
])
|
|
62
|
-
|
|
63
|
-
_dict = self.model_dump(
|
|
64
|
-
by_alias=True,
|
|
65
|
-
exclude=excluded_fields,
|
|
66
|
-
exclude_none=True,
|
|
67
|
-
)
|
|
68
|
-
# override the default output from pydantic by calling `to_dict()` of data
|
|
69
|
-
if self.data:
|
|
70
|
-
_dict['Data'] = self.data.to_dict()
|
|
71
|
-
return _dict
|
|
72
|
-
|
|
73
|
-
@classmethod
|
|
74
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
-
"""Create an instance of DocFeature from a dict"""
|
|
76
|
-
if obj is None:
|
|
77
|
-
return None
|
|
78
|
-
|
|
79
|
-
if not isinstance(obj, dict):
|
|
80
|
-
return cls.model_validate(obj)
|
|
81
|
-
|
|
82
|
-
_obj = cls.model_validate({
|
|
83
|
-
"Type": obj.get("Type"),
|
|
84
|
-
"Data": TrfFtBytes.from_dict(obj["Data"]) if obj.get("Data") is not None else None
|
|
85
|
-
})
|
|
86
|
-
return _obj
|
|
87
|
-
|
|
88
|
-
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Generated by: https://openapi-generator.tech
|
|
5
|
-
"""
|
|
6
|
-
|
|
7
|
-
from __future__ import annotations
|
|
8
|
-
import json
|
|
9
|
-
from enum import Enum
|
|
10
|
-
from typing_extensions import Self
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class MDLDeviceEngagement(int, Enum):
|
|
14
|
-
"""
|
|
15
|
-
MDLDeviceEngagement
|
|
16
|
-
"""
|
|
17
|
-
|
|
18
|
-
"""
|
|
19
|
-
allowed enum values
|
|
20
|
-
"""
|
|
21
|
-
QR = 0
|
|
22
|
-
NFC = 1
|
|
23
|
-
|
|
24
|
-
@classmethod
|
|
25
|
-
def from_json(cls, json_str: str) -> Self:
|
|
26
|
-
"""Create an instance of MDLDeviceEngagement from a JSON string"""
|
|
27
|
-
return cls(json.loads(json_str))
|
|
28
|
-
|
|
29
|
-
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Generated by: https://openapi-generator.tech
|
|
5
|
-
"""
|
|
6
|
-
|
|
7
|
-
from __future__ import annotations
|
|
8
|
-
import json
|
|
9
|
-
from enum import Enum
|
|
10
|
-
from typing_extensions import Self
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class MDLDeviceRetrieval(int, Enum):
|
|
14
|
-
"""
|
|
15
|
-
MDLDeviceRetrieval
|
|
16
|
-
"""
|
|
17
|
-
|
|
18
|
-
"""
|
|
19
|
-
allowed enum values
|
|
20
|
-
"""
|
|
21
|
-
NFC = 1
|
|
22
|
-
BLE = 2
|
|
23
|
-
WIFI_AWARE = 3
|
|
24
|
-
|
|
25
|
-
@classmethod
|
|
26
|
-
def from_json(cls, json_str: str) -> Self:
|
|
27
|
-
"""Create an instance of MDLDeviceRetrieval from a JSON string"""
|
|
28
|
-
return cls(json.loads(json_str))
|
|
29
|
-
|
|
30
|
-
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Generated by: https://openapi-generator.tech
|
|
5
|
-
"""
|
|
6
|
-
|
|
7
|
-
from __future__ import annotations
|
|
8
|
-
import json
|
|
9
|
-
from enum import Enum
|
|
10
|
-
from typing_extensions import Self
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class MDLServerRetrieval(int, Enum):
|
|
14
|
-
"""
|
|
15
|
-
MDLServerRetrieval
|
|
16
|
-
"""
|
|
17
|
-
|
|
18
|
-
"""
|
|
19
|
-
allowed enum values
|
|
20
|
-
"""
|
|
21
|
-
WEB_API = 0
|
|
22
|
-
OIDC = 1
|
|
23
|
-
|
|
24
|
-
@classmethod
|
|
25
|
-
def from_json(cls, json_str: str) -> Self:
|
|
26
|
-
"""Create an instance of MDLServerRetrieval from a JSON string"""
|
|
27
|
-
return cls(json.loads(json_str))
|
|
28
|
-
|
|
29
|
-
|
|
@@ -1,98 +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, StrictStr
|
|
13
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
14
|
-
from regula.documentreader.webclient.gen.models.pid import PID
|
|
15
|
-
from regula.documentreader.webclient.gen.models.ve_item import VEItem
|
|
16
|
-
from typing import Optional, Set
|
|
17
|
-
from typing_extensions import Self
|
|
18
|
-
from pydantic import SkipValidation, Field
|
|
19
|
-
|
|
20
|
-
class Message(BaseModel):
|
|
21
|
-
"""
|
|
22
|
-
Message
|
|
23
|
-
""" # noqa: E501
|
|
24
|
-
pid: SkipValidation[Optional[PID]] = Field(alias="pid", default=None)
|
|
25
|
-
uvci: SkipValidation[Optional[str]] = Field(alias="uvci", default=None)
|
|
26
|
-
ve: SkipValidation[Optional[List[VEItem]]] = Field(alias="ve", default=None)
|
|
27
|
-
__properties: ClassVar[List[str]] = ["pid", "uvci", "ve"]
|
|
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 Message 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 pid
|
|
71
|
-
if self.pid:
|
|
72
|
-
_dict['pid'] = self.pid.to_dict()
|
|
73
|
-
# override the default output from pydantic by calling `to_dict()` of each item in ve (list)
|
|
74
|
-
_items = []
|
|
75
|
-
if self.ve:
|
|
76
|
-
for _item_ve in self.ve:
|
|
77
|
-
if _item_ve:
|
|
78
|
-
_items.append(_item_ve.to_dict())
|
|
79
|
-
_dict['ve'] = _items
|
|
80
|
-
return _dict
|
|
81
|
-
|
|
82
|
-
@classmethod
|
|
83
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
-
"""Create an instance of Message from a dict"""
|
|
85
|
-
if obj is None:
|
|
86
|
-
return None
|
|
87
|
-
|
|
88
|
-
if not isinstance(obj, dict):
|
|
89
|
-
return cls.model_validate(obj)
|
|
90
|
-
|
|
91
|
-
_obj = cls.model_validate({
|
|
92
|
-
"pid": PID.from_dict(obj["pid"]) if obj.get("pid") is not None else None,
|
|
93
|
-
"uvci": obj.get("uvci"),
|
|
94
|
-
"ve": [VEItem.from_dict(_item) for _item in obj.get("ve", []) if VEItem.from_dict(_item) is not None]
|
|
95
|
-
})
|
|
96
|
-
return _obj
|
|
97
|
-
|
|
98
|
-
|
|
@@ -1,88 +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, StrictStr
|
|
13
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
14
|
-
from typing import Optional, Set
|
|
15
|
-
from typing_extensions import Self
|
|
16
|
-
from pydantic import SkipValidation, Field
|
|
17
|
-
|
|
18
|
-
class PID(BaseModel):
|
|
19
|
-
"""
|
|
20
|
-
PID
|
|
21
|
-
""" # noqa: E501
|
|
22
|
-
dob: SkipValidation[Optional[str]] = Field(alias="dob", default=None)
|
|
23
|
-
i: SkipValidation[Optional[str]] = Field(alias="i", default=None)
|
|
24
|
-
n: SkipValidation[Optional[str]] = Field(alias="n", default=None)
|
|
25
|
-
sex: SkipValidation[Optional[str]] = Field(alias="sex", default=None)
|
|
26
|
-
__properties: ClassVar[List[str]] = ["dob", "i", "n", "sex"]
|
|
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 PID 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
|
-
return _dict
|
|
70
|
-
|
|
71
|
-
@classmethod
|
|
72
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
73
|
-
"""Create an instance of PID from a dict"""
|
|
74
|
-
if obj is None:
|
|
75
|
-
return None
|
|
76
|
-
|
|
77
|
-
if not isinstance(obj, dict):
|
|
78
|
-
return cls.model_validate(obj)
|
|
79
|
-
|
|
80
|
-
_obj = cls.model_validate({
|
|
81
|
-
"dob": obj.get("dob"),
|
|
82
|
-
"i": obj.get("i"),
|
|
83
|
-
"n": obj.get("n"),
|
|
84
|
-
"sex": obj.get("sex")
|
|
85
|
-
})
|
|
86
|
-
return _obj
|
|
87
|
-
|
|
88
|
-
|
|
@@ -1,90 +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, StrictInt, StrictStr
|
|
13
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
14
|
-
from typing import Optional, Set
|
|
15
|
-
from typing_extensions import Self
|
|
16
|
-
from pydantic import SkipValidation, Field
|
|
17
|
-
|
|
18
|
-
class VDItem(BaseModel):
|
|
19
|
-
"""
|
|
20
|
-
VDItem
|
|
21
|
-
""" # noqa: E501
|
|
22
|
-
adm: SkipValidation[Optional[str]] = Field(alias="adm", default=None)
|
|
23
|
-
ctr: SkipValidation[Optional[str]] = Field(alias="ctr", default=None)
|
|
24
|
-
dvc: SkipValidation[Optional[str]] = Field(alias="dvc", default=None)
|
|
25
|
-
lot: SkipValidation[Optional[str]] = Field(alias="lot", default=None)
|
|
26
|
-
seq: SkipValidation[Optional[int]] = Field(alias="seq", default=None)
|
|
27
|
-
__properties: ClassVar[List[str]] = ["adm", "ctr", "dvc", "lot", "seq"]
|
|
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 VDItem 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
|
-
return _dict
|
|
71
|
-
|
|
72
|
-
@classmethod
|
|
73
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
74
|
-
"""Create an instance of VDItem 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
|
-
"adm": obj.get("adm"),
|
|
83
|
-
"ctr": obj.get("ctr"),
|
|
84
|
-
"dvc": obj.get("dvc"),
|
|
85
|
-
"lot": obj.get("lot"),
|
|
86
|
-
"seq": obj.get("seq")
|
|
87
|
-
})
|
|
88
|
-
return _obj
|
|
89
|
-
|
|
90
|
-
|