diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 796d723..95610d9 100755 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -2,7 +2,7 @@ regula/__init__.py regula/documentreader/__init__.py regula/documentreader/webclient/gen/__init__.py regula/documentreader/webclient/gen/api/__init__.py -regula/documentreader/webclient/gen/api/default_api.py +regula/documentreader/webclient/gen/api/healthcheck_api.py regula/documentreader/webclient/gen/api/process_api.py regula/documentreader/webclient/gen/api/transaction_api.py regula/documentreader/webclient/gen/api_client.py @@ -17,8 +17,11 @@ regula/documentreader/webclient/gen/models/authenticity_check_result_item.py regula/documentreader/webclient/gen/models/authenticity_result.py regula/documentreader/webclient/gen/models/authenticity_result_all_of.py regula/documentreader/webclient/gen/models/authenticity_result_type.py +regula/documentreader/webclient/gen/models/bar_code_module_type.py +regula/documentreader/webclient/gen/models/barcode_type.py regula/documentreader/webclient/gen/models/bc_pdf417_info.py regula/documentreader/webclient/gen/models/bc_roidetect.py +regula/documentreader/webclient/gen/models/binary_data.py regula/documentreader/webclient/gen/models/check_diagnose.py regula/documentreader/webclient/gen/models/check_result.py regula/documentreader/webclient/gen/models/chosen_document_type.py @@ -30,11 +33,18 @@ regula/documentreader/webclient/gen/models/data_module.py regula/documentreader/webclient/gen/models/details_optical.py regula/documentreader/webclient/gen/models/details_rfid.py regula/documentreader/webclient/gen/models/device_info.py +regula/documentreader/webclient/gen/models/device_info_deprecated.py regula/documentreader/webclient/gen/models/doc_bar_code_info.py regula/documentreader/webclient/gen/models/doc_bar_code_info_all_of.py regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py regula/documentreader/webclient/gen/models/doc_visual_extended_field.py +regula/documentreader/webclient/gen/models/doc_visual_extended_field_rect.py +regula/documentreader/webclient/gen/models/doc_visual_extended_field_rect_all_of.py +regula/documentreader/webclient/gen/models/doc_visual_extended_field_rfid.py +regula/documentreader/webclient/gen/models/doc_visual_extended_field_rfid_all_of.py regula/documentreader/webclient/gen/models/doc_visual_extended_info.py +regula/documentreader/webclient/gen/models/document_binary_info_result.py +regula/documentreader/webclient/gen/models/document_binary_info_result_all_of.py regula/documentreader/webclient/gen/models/document_format.py regula/documentreader/webclient/gen/models/document_image.py regula/documentreader/webclient/gen/models/document_image_result.py @@ -48,6 +58,7 @@ regula/documentreader/webclient/gen/models/document_types_candidates.py regula/documentreader/webclient/gen/models/document_types_candidates_list.py regula/documentreader/webclient/gen/models/document_types_candidates_result.py regula/documentreader/webclient/gen/models/document_types_candidates_result_all_of.py +regula/documentreader/webclient/gen/models/documents_database.py regula/documentreader/webclient/gen/models/encrypted_rcl_result.py regula/documentreader/webclient/gen/models/encrypted_rcl_result_all_of.py regula/documentreader/webclient/gen/models/face_api.py @@ -57,6 +68,9 @@ regula/documentreader/webclient/gen/models/fiber_result.py regula/documentreader/webclient/gen/models/fiber_result_all_of.py regula/documentreader/webclient/gen/models/get_transactions_by_tag_response.py regula/documentreader/webclient/gen/models/graphic_field.py +regula/documentreader/webclient/gen/models/graphic_field_rect.py +regula/documentreader/webclient/gen/models/graphic_field_rfid.py +regula/documentreader/webclient/gen/models/graphic_field_rfid_all_of.py regula/documentreader/webclient/gen/models/graphic_field_type.py regula/documentreader/webclient/gen/models/graphic_fields_list.py regula/documentreader/webclient/gen/models/graphics_result.py @@ -80,8 +94,6 @@ regula/documentreader/webclient/gen/models/images_result_all_of.py regula/documentreader/webclient/gen/models/in_data.py regula/documentreader/webclient/gen/models/in_data_transaction_images_field_value.py regula/documentreader/webclient/gen/models/in_data_video.py -regula/documentreader/webclient/gen/models/inline_response200.py -regula/documentreader/webclient/gen/models/inline_response2001.py regula/documentreader/webclient/gen/models/lcid.py regula/documentreader/webclient/gen/models/lexical_analysis_result.py regula/documentreader/webclient/gen/models/lexical_analysis_result_all_of.py @@ -102,6 +114,7 @@ regula/documentreader/webclient/gen/models/original_symbol.py regula/documentreader/webclient/gen/models/out_data.py regula/documentreader/webclient/gen/models/out_data_transaction_images_field_value.py regula/documentreader/webclient/gen/models/p_array_field.py +regula/documentreader/webclient/gen/models/parsing_error_codes.py regula/documentreader/webclient/gen/models/parsing_notification_codes.py regula/documentreader/webclient/gen/models/per_document_config.py regula/documentreader/webclient/gen/models/photo_ident_result.py @@ -116,12 +129,43 @@ regula/documentreader/webclient/gen/models/process_request_image.py regula/documentreader/webclient/gen/models/process_response.py regula/documentreader/webclient/gen/models/process_system_info.py regula/documentreader/webclient/gen/models/processing_status.py +regula/documentreader/webclient/gen/models/raw_image_container_field_list.py +regula/documentreader/webclient/gen/models/raw_image_container_field_list_all_of.py regula/documentreader/webclient/gen/models/raw_image_container_list.py regula/documentreader/webclient/gen/models/rectangle_coordinates.py regula/documentreader/webclient/gen/models/result.py regula/documentreader/webclient/gen/models/result_item.py +regula/documentreader/webclient/gen/models/rfid_a_chip.py +regula/documentreader/webclient/gen/models/rfid_access_control_info.py +regula/documentreader/webclient/gen/models/rfid_access_control_procedure_type.py +regula/documentreader/webclient/gen/models/rfid_access_key.py +regula/documentreader/webclient/gen/models/rfid_application.py +regula/documentreader/webclient/gen/models/rfid_application_type.py +regula/documentreader/webclient/gen/models/rfid_attribute_data.py +regula/documentreader/webclient/gen/models/rfid_attribute_name.py +regula/documentreader/webclient/gen/models/rfid_authentication_procedure_type.py +regula/documentreader/webclient/gen/models/rfid_baud_rate.py +regula/documentreader/webclient/gen/models/rfid_card_properties_ext.py +regula/documentreader/webclient/gen/models/rfid_certificate_ex.py +regula/documentreader/webclient/gen/models/rfid_certificate_origin.py +regula/documentreader/webclient/gen/models/rfid_certificate_type.py +regula/documentreader/webclient/gen/models/rfid_data_file.py +regula/documentreader/webclient/gen/models/rfid_data_file_type.py +regula/documentreader/webclient/gen/models/rfid_data_group_type_tag.py +regula/documentreader/webclient/gen/models/rfid_dg1.py +regula/documentreader/webclient/gen/models/rfid_distinguished_name.py +regula/documentreader/webclient/gen/models/rfid_error_codes.py regula/documentreader/webclient/gen/models/rfid_location.py regula/documentreader/webclient/gen/models/rfid_origin.py +regula/documentreader/webclient/gen/models/rfid_password_type.py +regula/documentreader/webclient/gen/models/rfid_pki_extension.py +regula/documentreader/webclient/gen/models/rfid_security_object.py +regula/documentreader/webclient/gen/models/rfid_session_data.py +regula/documentreader/webclient/gen/models/rfid_signer_info_ex.py +regula/documentreader/webclient/gen/models/rfid_terminal.py +regula/documentreader/webclient/gen/models/rfid_terminal_type.py +regula/documentreader/webclient/gen/models/rfid_type.py +regula/documentreader/webclient/gen/models/rfid_validity.py regula/documentreader/webclient/gen/models/scenario.py regula/documentreader/webclient/gen/models/security_feature_result.py regula/documentreader/webclient/gen/models/security_feature_result_all_of.py @@ -134,6 +178,7 @@ regula/documentreader/webclient/gen/models/status_result_all_of.py regula/documentreader/webclient/gen/models/string_recognition_result.py regula/documentreader/webclient/gen/models/symbol_candidate.py regula/documentreader/webclient/gen/models/symbol_recognition_result.py +regula/documentreader/webclient/gen/models/t_doc_binary_info.py regula/documentreader/webclient/gen/models/text.py regula/documentreader/webclient/gen/models/text_available_source.py regula/documentreader/webclient/gen/models/text_data_result.py @@ -148,6 +193,11 @@ regula/documentreader/webclient/gen/models/transaction_image.py regula/documentreader/webclient/gen/models/transaction_info.py regula/documentreader/webclient/gen/models/transaction_process_get_response.py regula/documentreader/webclient/gen/models/transaction_process_request.py +regula/documentreader/webclient/gen/models/transaction_process_response.py +regula/documentreader/webclient/gen/models/transaction_process_response_all_of.py +regula/documentreader/webclient/gen/models/transaction_process_result.py +regula/documentreader/webclient/gen/models/trf_ft_bytes.py +regula/documentreader/webclient/gen/models/trf_ft_string.py regula/documentreader/webclient/gen/models/verification_result.py regula/documentreader/webclient/gen/models/verified_field_map.py regula/documentreader/webclient/gen/models/visibility.py diff --git a/regula/documentreader/webclient/gen/__init__.py b/regula/documentreader/webclient/gen/__init__.py index 65bb5de..5207fee 100755 --- a/regula/documentreader/webclient/gen/__init__.py +++ b/regula/documentreader/webclient/gen/__init__.py @@ -11,7 +11,7 @@ __version__ = "1.0.0" # import apis into sdk package -from regula.documentreader.webclient.gen.api.default_api import DefaultApi +from regula.documentreader.webclient.gen.api.healthcheck_api import HealthcheckApi from regula.documentreader.webclient.gen.api.process_api import ProcessApi from regula.documentreader.webclient.gen.api.transaction_api import TransactionApi @@ -34,8 +34,11 @@ from regula.documentreader.webclient.gen.models.authenticity_result import AuthenticityResult from regula.documentreader.webclient.gen.models.authenticity_result_all_of import AuthenticityResultAllOf from regula.documentreader.webclient.gen.models.authenticity_result_type import AuthenticityResultType +from regula.documentreader.webclient.gen.models.bar_code_module_type import BarCodeModuleType +from regula.documentreader.webclient.gen.models.barcode_type import BarcodeType from regula.documentreader.webclient.gen.models.bc_pdf417_info import BcPDF417INFO from regula.documentreader.webclient.gen.models.bc_roidetect import BcROIDETECT +from regula.documentreader.webclient.gen.models.binary_data import BinaryData from regula.documentreader.webclient.gen.models.check_diagnose import CheckDiagnose from regula.documentreader.webclient.gen.models.check_result import CheckResult from regula.documentreader.webclient.gen.models.chosen_document_type import ChosenDocumentType @@ -48,11 +51,18 @@ from regula.documentreader.webclient.gen.models.details_optical import DetailsOptical from regula.documentreader.webclient.gen.models.details_rfid import DetailsRFID from regula.documentreader.webclient.gen.models.device_info import DeviceInfo +from regula.documentreader.webclient.gen.models.device_info_deprecated import DeviceInfoDeprecated from regula.documentreader.webclient.gen.models.doc_bar_code_info import DocBarCodeInfo from regula.documentreader.webclient.gen.models.doc_bar_code_info_all_of import DocBarCodeInfoAllOf from regula.documentreader.webclient.gen.models.doc_bar_code_info_fields_list import DocBarCodeInfoFieldsList from regula.documentreader.webclient.gen.models.doc_visual_extended_field import DocVisualExtendedField +from regula.documentreader.webclient.gen.models.doc_visual_extended_field_rect import DocVisualExtendedFieldRect +from regula.documentreader.webclient.gen.models.doc_visual_extended_field_rect_all_of import DocVisualExtendedFieldRectAllOf +from regula.documentreader.webclient.gen.models.doc_visual_extended_field_rfid import DocVisualExtendedFieldRfid +from regula.documentreader.webclient.gen.models.doc_visual_extended_field_rfid_all_of import DocVisualExtendedFieldRfidAllOf from regula.documentreader.webclient.gen.models.doc_visual_extended_info import DocVisualExtendedInfo +from regula.documentreader.webclient.gen.models.document_binary_info_result import DocumentBinaryInfoResult +from regula.documentreader.webclient.gen.models.document_binary_info_result_all_of import DocumentBinaryInfoResultAllOf from regula.documentreader.webclient.gen.models.document_format import DocumentFormat from regula.documentreader.webclient.gen.models.document_image import DocumentImage from regula.documentreader.webclient.gen.models.document_image_result import DocumentImageResult @@ -66,6 +76,7 @@ from regula.documentreader.webclient.gen.models.document_types_candidates_list import DocumentTypesCandidatesList from regula.documentreader.webclient.gen.models.document_types_candidates_result import DocumentTypesCandidatesResult from regula.documentreader.webclient.gen.models.document_types_candidates_result_all_of import DocumentTypesCandidatesResultAllOf +from regula.documentreader.webclient.gen.models.documents_database import DocumentsDatabase from regula.documentreader.webclient.gen.models.encrypted_rcl_result import EncryptedRCLResult from regula.documentreader.webclient.gen.models.encrypted_rcl_result_all_of import EncryptedRCLResultAllOf from regula.documentreader.webclient.gen.models.fdsid_list import FDSIDList @@ -75,6 +86,9 @@ from regula.documentreader.webclient.gen.models.fiber_result_all_of import FiberResultAllOf from regula.documentreader.webclient.gen.models.get_transactions_by_tag_response import GetTransactionsByTagResponse from regula.documentreader.webclient.gen.models.graphic_field import GraphicField +from regula.documentreader.webclient.gen.models.graphic_field_rect import GraphicFieldRect +from regula.documentreader.webclient.gen.models.graphic_field_rfid import GraphicFieldRfid +from regula.documentreader.webclient.gen.models.graphic_field_rfid_all_of import GraphicFieldRfidAllOf from regula.documentreader.webclient.gen.models.graphic_field_type import GraphicFieldType from regula.documentreader.webclient.gen.models.graphic_fields_list import GraphicFieldsList from regula.documentreader.webclient.gen.models.graphics_result import GraphicsResult @@ -98,8 +112,6 @@ from regula.documentreader.webclient.gen.models.in_data import InData from regula.documentreader.webclient.gen.models.in_data_transaction_images_field_value import InDataTransactionImagesFieldValue from regula.documentreader.webclient.gen.models.in_data_video import InDataVideo -from regula.documentreader.webclient.gen.models.inline_response200 import InlineResponse200 -from regula.documentreader.webclient.gen.models.inline_response2001 import InlineResponse2001 from regula.documentreader.webclient.gen.models.lcid import LCID from regula.documentreader.webclient.gen.models.lexical_analysis_result import LexicalAnalysisResult from regula.documentreader.webclient.gen.models.lexical_analysis_result_all_of import LexicalAnalysisResultAllOf @@ -120,6 +132,7 @@ from regula.documentreader.webclient.gen.models.out_data import OutData from regula.documentreader.webclient.gen.models.out_data_transaction_images_field_value import OutDataTransactionImagesFieldValue from regula.documentreader.webclient.gen.models.p_array_field import PArrayField +from regula.documentreader.webclient.gen.models.parsing_error_codes import ParsingErrorCodes from regula.documentreader.webclient.gen.models.parsing_notification_codes import ParsingNotificationCodes from regula.documentreader.webclient.gen.models.per_document_config import PerDocumentConfig from regula.documentreader.webclient.gen.models.photo_ident_result import PhotoIdentResult @@ -134,12 +147,43 @@ from regula.documentreader.webclient.gen.models.process_response import ProcessResponse from regula.documentreader.webclient.gen.models.process_system_info import ProcessSystemInfo from regula.documentreader.webclient.gen.models.processing_status import ProcessingStatus +from regula.documentreader.webclient.gen.models.rfid_error_codes import RFIDErrorCodes +from regula.documentreader.webclient.gen.models.raw_image_container_field_list import RawImageContainerFieldList +from regula.documentreader.webclient.gen.models.raw_image_container_field_list_all_of import RawImageContainerFieldListAllOf from regula.documentreader.webclient.gen.models.raw_image_container_list import RawImageContainerList from regula.documentreader.webclient.gen.models.rectangle_coordinates import RectangleCoordinates from regula.documentreader.webclient.gen.models.result import Result from regula.documentreader.webclient.gen.models.result_item import ResultItem +from regula.documentreader.webclient.gen.models.rfid_a_chip import RfidAChip +from regula.documentreader.webclient.gen.models.rfid_access_control_info import RfidAccessControlInfo +from regula.documentreader.webclient.gen.models.rfid_access_control_procedure_type import RfidAccessControlProcedureType +from regula.documentreader.webclient.gen.models.rfid_access_key import RfidAccessKey +from regula.documentreader.webclient.gen.models.rfid_application import RfidApplication +from regula.documentreader.webclient.gen.models.rfid_application_type import RfidApplicationType +from regula.documentreader.webclient.gen.models.rfid_attribute_data import RfidAttributeData +from regula.documentreader.webclient.gen.models.rfid_attribute_name import RfidAttributeName +from regula.documentreader.webclient.gen.models.rfid_authentication_procedure_type import RfidAuthenticationProcedureType +from regula.documentreader.webclient.gen.models.rfid_baud_rate import RfidBaudRate +from regula.documentreader.webclient.gen.models.rfid_card_properties_ext import RfidCardPropertiesExt +from regula.documentreader.webclient.gen.models.rfid_certificate_ex import RfidCertificateEx +from regula.documentreader.webclient.gen.models.rfid_certificate_origin import RfidCertificateOrigin +from regula.documentreader.webclient.gen.models.rfid_certificate_type import RfidCertificateType +from regula.documentreader.webclient.gen.models.rfid_dg1 import RfidDG1 +from regula.documentreader.webclient.gen.models.rfid_data_file import RfidDataFile +from regula.documentreader.webclient.gen.models.rfid_data_file_type import RfidDataFileType +from regula.documentreader.webclient.gen.models.rfid_data_group_type_tag import RfidDataGroupTypeTag +from regula.documentreader.webclient.gen.models.rfid_distinguished_name import RfidDistinguishedName from regula.documentreader.webclient.gen.models.rfid_location import RfidLocation from regula.documentreader.webclient.gen.models.rfid_origin import RfidOrigin +from regula.documentreader.webclient.gen.models.rfid_password_type import RfidPasswordType +from regula.documentreader.webclient.gen.models.rfid_pki_extension import RfidPkiExtension +from regula.documentreader.webclient.gen.models.rfid_security_object import RfidSecurityObject +from regula.documentreader.webclient.gen.models.rfid_session_data import RfidSessionData +from regula.documentreader.webclient.gen.models.rfid_signer_info_ex import RfidSignerInfoEx +from regula.documentreader.webclient.gen.models.rfid_terminal import RfidTerminal +from regula.documentreader.webclient.gen.models.rfid_terminal_type import RfidTerminalType +from regula.documentreader.webclient.gen.models.rfid_type import RfidType +from regula.documentreader.webclient.gen.models.rfid_validity import RfidValidity from regula.documentreader.webclient.gen.models.scenario import Scenario from regula.documentreader.webclient.gen.models.security_feature_result import SecurityFeatureResult from regula.documentreader.webclient.gen.models.security_feature_result_all_of import SecurityFeatureResultAllOf @@ -152,6 +196,7 @@ from regula.documentreader.webclient.gen.models.string_recognition_result import StringRecognitionResult from regula.documentreader.webclient.gen.models.symbol_candidate import SymbolCandidate from regula.documentreader.webclient.gen.models.symbol_recognition_result import SymbolRecognitionResult +from regula.documentreader.webclient.gen.models.t_doc_binary_info import TDocBinaryInfo from regula.documentreader.webclient.gen.models.text import Text from regula.documentreader.webclient.gen.models.text_available_source import TextAvailableSource from regula.documentreader.webclient.gen.models.text_data_result import TextDataResult @@ -166,6 +211,11 @@ from regula.documentreader.webclient.gen.models.transaction_info import TransactionInfo from regula.documentreader.webclient.gen.models.transaction_process_get_response import TransactionProcessGetResponse from regula.documentreader.webclient.gen.models.transaction_process_request import TransactionProcessRequest +from regula.documentreader.webclient.gen.models.transaction_process_response import TransactionProcessResponse +from regula.documentreader.webclient.gen.models.transaction_process_response_all_of import TransactionProcessResponseAllOf +from regula.documentreader.webclient.gen.models.transaction_process_result import TransactionProcessResult +from regula.documentreader.webclient.gen.models.trf_ft_bytes import TrfFtBytes +from regula.documentreader.webclient.gen.models.trf_ft_string import TrfFtString from regula.documentreader.webclient.gen.models.verification_result import VerificationResult from regula.documentreader.webclient.gen.models.verified_field_map import VerifiedFieldMap from regula.documentreader.webclient.gen.models.visibility import Visibility diff --git a/regula/documentreader/webclient/gen/api/__init__.py b/regula/documentreader/webclient/gen/api/__init__.py index 333f379..12efc92 100755 --- a/regula/documentreader/webclient/gen/api/__init__.py +++ b/regula/documentreader/webclient/gen/api/__init__.py @@ -3,6 +3,6 @@ # flake8: noqa # import apis into api package -from regula.documentreader.webclient.gen.api.default_api import DefaultApi +from regula.documentreader.webclient.gen.api.healthcheck_api import HealthcheckApi from regula.documentreader.webclient.gen.api.process_api import ProcessApi from regula.documentreader.webclient.gen.api.transaction_api import TransactionApi diff --git a/regula/documentreader/webclient/gen/api/healthcheck_api.py b/regula/documentreader/webclient/gen/api/healthcheck_api.py new file mode 100644 index 0000000..da0fb92 --- /dev/null +++ b/regula/documentreader/webclient/gen/api/healthcheck_api.py @@ -0,0 +1,412 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from regula.documentreader.webclient.gen.api_client import ApiClient +from regula.documentreader.webclient.gen.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class HealthcheckApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def healthz(self, **kwargs): # noqa: E501 + """Server healthcheck # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.healthz(async_req=True) + >>> result = thread.get() + + :param x_request_id: + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DeviceInfo + """ + kwargs['_return_http_data_only'] = True + return self.healthz_with_http_info(**kwargs) # noqa: E501 + + def healthz_with_http_info(self, **kwargs): # noqa: E501 + """Server healthcheck # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.healthz_with_http_info(async_req=True) + >>> result = thread.get() + + :param x_request_id: + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DeviceInfo, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method healthz" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_request_id' in local_var_params: + header_params['X-RequestID'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_types_map = { + 200: "DeviceInfo", + } + + return self.api_client.call_api( + '/api/healthz', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def ping(self, **kwargs): # noqa: E501 + """Server health check # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.ping(async_req=True) + >>> result = thread.get() + + :param x_request_id: + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DeviceInfoDeprecated + """ + kwargs['_return_http_data_only'] = True + return self.ping_with_http_info(**kwargs) # noqa: E501 + + def ping_with_http_info(self, **kwargs): # noqa: E501 + """Server health check # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.ping_with_http_info(async_req=True) + >>> result = thread.get() + + :param x_request_id: + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DeviceInfoDeprecated, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method ping" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_request_id' in local_var_params: + header_params['X-RequestID'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_types_map = { + 200: "DeviceInfoDeprecated", + } + + return self.api_client.call_api( + '/api/ping', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def readyz(self, **kwargs): # noqa: E501 + """License healthcheck # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.readyz(async_req=True) + >>> result = thread.get() + + :param x_request_id: + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.readyz_with_http_info(**kwargs) # noqa: E501 + + def readyz_with_http_info(self, **kwargs): # noqa: E501 + """License healthcheck # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.readyz_with_http_info(async_req=True) + >>> result = thread.get() + + :param x_request_id: + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method readyz" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_request_id' in local_var_params: + header_params['X-RequestID'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/api/readyz', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/regula/documentreader/webclient/gen/api/transaction_api.py b/regula/documentreader/webclient/gen/api/transaction_api.py index 992003f..4d6f895 100644 --- a/regula/documentreader/webclient/gen/api/transaction_api.py +++ b/regula/documentreader/webclient/gen/api/transaction_api.py @@ -606,7 +606,7 @@ def api_v2_transaction_transaction_id_process_post(self, transaction_id, transac :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: InlineResponse200 + :rtype: TransactionProcessResult """ kwargs['_return_http_data_only'] = True return self.api_v2_transaction_transaction_id_process_post_with_http_info(transaction_id, transaction_process_request, **kwargs) # noqa: E501 @@ -644,7 +644,7 @@ def api_v2_transaction_transaction_id_process_post_with_http_info(self, transact :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(InlineResponse200, status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(TransactionProcessResult, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -708,7 +708,7 @@ def api_v2_transaction_transaction_id_process_post_with_http_info(self, transact auth_settings = [] # noqa: E501 response_types_map = { - 200: "InlineResponse200", + 200: "TransactionProcessResult", 400: None, 403: None, } @@ -756,7 +756,7 @@ def api_v2_transaction_transaction_id_results_get(self, transaction_id, **kwargs :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: InlineResponse2001 + :rtype: TransactionProcessResponse """ kwargs['_return_http_data_only'] = True return self.api_v2_transaction_transaction_id_results_get_with_http_info(transaction_id, **kwargs) # noqa: E501 @@ -794,7 +794,7 @@ def api_v2_transaction_transaction_id_results_get_with_http_info(self, transacti :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(InlineResponse2001, status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(TransactionProcessResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -850,7 +850,7 @@ def api_v2_transaction_transaction_id_results_get_with_http_info(self, transacti auth_settings = [] # noqa: E501 response_types_map = { - 200: "InlineResponse2001", + 200: "TransactionProcessResponse", 400: None, 403: None, } diff --git a/regula/documentreader/webclient/gen/configuration.py b/regula/documentreader/webclient/gen/configuration.py index 4574401..c0ea1e0 100755 --- a/regula/documentreader/webclient/gen/configuration.py +++ b/regula/documentreader/webclient/gen/configuration.py @@ -374,7 +374,7 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 7.2.0\n"\ + "Version of the API: 7.4.0\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/regula/documentreader/webclient/gen/models/__init__.py b/regula/documentreader/webclient/gen/models/__init__.py index d8e11f0..a5e19c7 100755 --- a/regula/documentreader/webclient/gen/models/__init__.py +++ b/regula/documentreader/webclient/gen/models/__init__.py @@ -17,8 +17,11 @@ from regula.documentreader.webclient.gen.models.authenticity_result import AuthenticityResult from regula.documentreader.webclient.gen.models.authenticity_result_all_of import AuthenticityResultAllOf from regula.documentreader.webclient.gen.models.authenticity_result_type import AuthenticityResultType +from regula.documentreader.webclient.gen.models.bar_code_module_type import BarCodeModuleType +from regula.documentreader.webclient.gen.models.barcode_type import BarcodeType from regula.documentreader.webclient.gen.models.bc_pdf417_info import BcPDF417INFO from regula.documentreader.webclient.gen.models.bc_roidetect import BcROIDETECT +from regula.documentreader.webclient.gen.models.binary_data import BinaryData from regula.documentreader.webclient.gen.models.check_diagnose import CheckDiagnose from regula.documentreader.webclient.gen.models.check_result import CheckResult from regula.documentreader.webclient.gen.models.chosen_document_type import ChosenDocumentType @@ -31,11 +34,18 @@ from regula.documentreader.webclient.gen.models.details_optical import DetailsOptical from regula.documentreader.webclient.gen.models.details_rfid import DetailsRFID from regula.documentreader.webclient.gen.models.device_info import DeviceInfo +from regula.documentreader.webclient.gen.models.device_info_deprecated import DeviceInfoDeprecated from regula.documentreader.webclient.gen.models.doc_bar_code_info import DocBarCodeInfo from regula.documentreader.webclient.gen.models.doc_bar_code_info_all_of import DocBarCodeInfoAllOf from regula.documentreader.webclient.gen.models.doc_bar_code_info_fields_list import DocBarCodeInfoFieldsList from regula.documentreader.webclient.gen.models.doc_visual_extended_field import DocVisualExtendedField +from regula.documentreader.webclient.gen.models.doc_visual_extended_field_rect import DocVisualExtendedFieldRect +from regula.documentreader.webclient.gen.models.doc_visual_extended_field_rect_all_of import DocVisualExtendedFieldRectAllOf +from regula.documentreader.webclient.gen.models.doc_visual_extended_field_rfid import DocVisualExtendedFieldRfid +from regula.documentreader.webclient.gen.models.doc_visual_extended_field_rfid_all_of import DocVisualExtendedFieldRfidAllOf from regula.documentreader.webclient.gen.models.doc_visual_extended_info import DocVisualExtendedInfo +from regula.documentreader.webclient.gen.models.document_binary_info_result import DocumentBinaryInfoResult +from regula.documentreader.webclient.gen.models.document_binary_info_result_all_of import DocumentBinaryInfoResultAllOf from regula.documentreader.webclient.gen.models.document_format import DocumentFormat from regula.documentreader.webclient.gen.models.document_image import DocumentImage from regula.documentreader.webclient.gen.models.document_image_result import DocumentImageResult @@ -49,6 +59,7 @@ from regula.documentreader.webclient.gen.models.document_types_candidates_list import DocumentTypesCandidatesList from regula.documentreader.webclient.gen.models.document_types_candidates_result import DocumentTypesCandidatesResult from regula.documentreader.webclient.gen.models.document_types_candidates_result_all_of import DocumentTypesCandidatesResultAllOf +from regula.documentreader.webclient.gen.models.documents_database import DocumentsDatabase from regula.documentreader.webclient.gen.models.encrypted_rcl_result import EncryptedRCLResult from regula.documentreader.webclient.gen.models.encrypted_rcl_result_all_of import EncryptedRCLResultAllOf from regula.documentreader.webclient.gen.models.fdsid_list import FDSIDList @@ -58,6 +69,9 @@ from regula.documentreader.webclient.gen.models.fiber_result_all_of import FiberResultAllOf from regula.documentreader.webclient.gen.models.get_transactions_by_tag_response import GetTransactionsByTagResponse from regula.documentreader.webclient.gen.models.graphic_field import GraphicField +from regula.documentreader.webclient.gen.models.graphic_field_rect import GraphicFieldRect +from regula.documentreader.webclient.gen.models.graphic_field_rfid import GraphicFieldRfid +from regula.documentreader.webclient.gen.models.graphic_field_rfid_all_of import GraphicFieldRfidAllOf from regula.documentreader.webclient.gen.models.graphic_field_type import GraphicFieldType from regula.documentreader.webclient.gen.models.graphic_fields_list import GraphicFieldsList from regula.documentreader.webclient.gen.models.graphics_result import GraphicsResult @@ -81,8 +95,6 @@ from regula.documentreader.webclient.gen.models.in_data import InData from regula.documentreader.webclient.gen.models.in_data_transaction_images_field_value import InDataTransactionImagesFieldValue from regula.documentreader.webclient.gen.models.in_data_video import InDataVideo -from regula.documentreader.webclient.gen.models.inline_response200 import InlineResponse200 -from regula.documentreader.webclient.gen.models.inline_response2001 import InlineResponse2001 from regula.documentreader.webclient.gen.models.lcid import LCID from regula.documentreader.webclient.gen.models.lexical_analysis_result import LexicalAnalysisResult from regula.documentreader.webclient.gen.models.lexical_analysis_result_all_of import LexicalAnalysisResultAllOf @@ -103,6 +115,7 @@ from regula.documentreader.webclient.gen.models.out_data import OutData from regula.documentreader.webclient.gen.models.out_data_transaction_images_field_value import OutDataTransactionImagesFieldValue from regula.documentreader.webclient.gen.models.p_array_field import PArrayField +from regula.documentreader.webclient.gen.models.parsing_error_codes import ParsingErrorCodes from regula.documentreader.webclient.gen.models.parsing_notification_codes import ParsingNotificationCodes from regula.documentreader.webclient.gen.models.per_document_config import PerDocumentConfig from regula.documentreader.webclient.gen.models.photo_ident_result import PhotoIdentResult @@ -117,12 +130,43 @@ from regula.documentreader.webclient.gen.models.process_response import ProcessResponse from regula.documentreader.webclient.gen.models.process_system_info import ProcessSystemInfo from regula.documentreader.webclient.gen.models.processing_status import ProcessingStatus +from regula.documentreader.webclient.gen.models.rfid_error_codes import RFIDErrorCodes +from regula.documentreader.webclient.gen.models.raw_image_container_field_list import RawImageContainerFieldList +from regula.documentreader.webclient.gen.models.raw_image_container_field_list_all_of import RawImageContainerFieldListAllOf from regula.documentreader.webclient.gen.models.raw_image_container_list import RawImageContainerList from regula.documentreader.webclient.gen.models.rectangle_coordinates import RectangleCoordinates from regula.documentreader.webclient.gen.models.result import Result from regula.documentreader.webclient.gen.models.result_item import ResultItem +from regula.documentreader.webclient.gen.models.rfid_a_chip import RfidAChip +from regula.documentreader.webclient.gen.models.rfid_access_control_info import RfidAccessControlInfo +from regula.documentreader.webclient.gen.models.rfid_access_control_procedure_type import RfidAccessControlProcedureType +from regula.documentreader.webclient.gen.models.rfid_access_key import RfidAccessKey +from regula.documentreader.webclient.gen.models.rfid_application import RfidApplication +from regula.documentreader.webclient.gen.models.rfid_application_type import RfidApplicationType +from regula.documentreader.webclient.gen.models.rfid_attribute_data import RfidAttributeData +from regula.documentreader.webclient.gen.models.rfid_attribute_name import RfidAttributeName +from regula.documentreader.webclient.gen.models.rfid_authentication_procedure_type import RfidAuthenticationProcedureType +from regula.documentreader.webclient.gen.models.rfid_baud_rate import RfidBaudRate +from regula.documentreader.webclient.gen.models.rfid_card_properties_ext import RfidCardPropertiesExt +from regula.documentreader.webclient.gen.models.rfid_certificate_ex import RfidCertificateEx +from regula.documentreader.webclient.gen.models.rfid_certificate_origin import RfidCertificateOrigin +from regula.documentreader.webclient.gen.models.rfid_certificate_type import RfidCertificateType +from regula.documentreader.webclient.gen.models.rfid_dg1 import RfidDG1 +from regula.documentreader.webclient.gen.models.rfid_data_file import RfidDataFile +from regula.documentreader.webclient.gen.models.rfid_data_file_type import RfidDataFileType +from regula.documentreader.webclient.gen.models.rfid_data_group_type_tag import RfidDataGroupTypeTag +from regula.documentreader.webclient.gen.models.rfid_distinguished_name import RfidDistinguishedName from regula.documentreader.webclient.gen.models.rfid_location import RfidLocation from regula.documentreader.webclient.gen.models.rfid_origin import RfidOrigin +from regula.documentreader.webclient.gen.models.rfid_password_type import RfidPasswordType +from regula.documentreader.webclient.gen.models.rfid_pki_extension import RfidPkiExtension +from regula.documentreader.webclient.gen.models.rfid_security_object import RfidSecurityObject +from regula.documentreader.webclient.gen.models.rfid_session_data import RfidSessionData +from regula.documentreader.webclient.gen.models.rfid_signer_info_ex import RfidSignerInfoEx +from regula.documentreader.webclient.gen.models.rfid_terminal import RfidTerminal +from regula.documentreader.webclient.gen.models.rfid_terminal_type import RfidTerminalType +from regula.documentreader.webclient.gen.models.rfid_type import RfidType +from regula.documentreader.webclient.gen.models.rfid_validity import RfidValidity from regula.documentreader.webclient.gen.models.scenario import Scenario from regula.documentreader.webclient.gen.models.security_feature_result import SecurityFeatureResult from regula.documentreader.webclient.gen.models.security_feature_result_all_of import SecurityFeatureResultAllOf @@ -135,6 +179,7 @@ from regula.documentreader.webclient.gen.models.string_recognition_result import StringRecognitionResult from regula.documentreader.webclient.gen.models.symbol_candidate import SymbolCandidate from regula.documentreader.webclient.gen.models.symbol_recognition_result import SymbolRecognitionResult +from regula.documentreader.webclient.gen.models.t_doc_binary_info import TDocBinaryInfo from regula.documentreader.webclient.gen.models.text import Text from regula.documentreader.webclient.gen.models.text_available_source import TextAvailableSource from regula.documentreader.webclient.gen.models.text_data_result import TextDataResult @@ -149,6 +194,11 @@ from regula.documentreader.webclient.gen.models.transaction_info import TransactionInfo from regula.documentreader.webclient.gen.models.transaction_process_get_response import TransactionProcessGetResponse from regula.documentreader.webclient.gen.models.transaction_process_request import TransactionProcessRequest +from regula.documentreader.webclient.gen.models.transaction_process_response import TransactionProcessResponse +from regula.documentreader.webclient.gen.models.transaction_process_response_all_of import TransactionProcessResponseAllOf +from regula.documentreader.webclient.gen.models.transaction_process_result import TransactionProcessResult +from regula.documentreader.webclient.gen.models.trf_ft_bytes import TrfFtBytes +from regula.documentreader.webclient.gen.models.trf_ft_string import TrfFtString from regula.documentreader.webclient.gen.models.verification_result import VerificationResult from regula.documentreader.webclient.gen.models.verified_field_map import VerifiedFieldMap from regula.documentreader.webclient.gen.models.visibility import Visibility diff --git a/regula/documentreader/webclient/gen/models/area_array.py b/regula/documentreader/webclient/gen/models/area_array.py index 0178f86..488fc1f 100644 --- a/regula/documentreader/webclient/gen/models/area_array.py +++ b/regula/documentreader/webclient/gen/models/area_array.py @@ -32,29 +32,56 @@ class AreaArray(object): and the value is json key in definition. """ openapi_types = { + 'count': 'float', 'list': 'list[RectangleCoordinates]', 'points': 'list[PointArray]' } attribute_map = { + 'count': 'Count', 'list': 'List', 'points': 'Points' } - def __init__(self, list=None, points=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, count=None, list=None, points=None, local_vars_configuration=None): # noqa: E501 """AreaArray - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._count = None self._list = None self._points = None self.discriminator = None - if list is not None: - self.list = list - if points is not None: - self.points = points + self.count = count + self.list = list + self.points = points + + @property + def count(self): + """Gets the count of this AreaArray. # noqa: E501 + + Number of elements in List and Points # noqa: E501 + + :return: The count of this AreaArray. # noqa: E501 + :rtype: float + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this AreaArray. + + Number of elements in List and Points # noqa: E501 + + :param count: The count of this AreaArray. # noqa: E501 + :type count: float + """ + if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501 + raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 + + self._count = count @property def list(self): @@ -74,6 +101,8 @@ def list(self, list): :param list: The list of this AreaArray. # noqa: E501 :type list: list[RectangleCoordinates] """ + if self.local_vars_configuration.client_side_validation and list is None: # noqa: E501 + raise ValueError("Invalid value for `list`, must not be `None`") # noqa: E501 self._list = list @@ -95,6 +124,8 @@ def points(self, points): :param points: The points of this AreaArray. # noqa: E501 :type points: list[PointArray] """ + if self.local_vars_configuration.client_side_validation and points is None: # noqa: E501 + raise ValueError("Invalid value for `points`, must not be `None`") # noqa: E501 self._points = points diff --git a/regula/documentreader/webclient/gen/models/area_container.py b/regula/documentreader/webclient/gen/models/area_container.py index eaf5b8c..9ee0f33 100644 --- a/regula/documentreader/webclient/gen/models/area_container.py +++ b/regula/documentreader/webclient/gen/models/area_container.py @@ -54,12 +54,9 @@ def __init__(self, count=None, list=None, points=None, local_vars_configuration= self._points = None self.discriminator = None - if count is not None: - self.count = count - if list is not None: - self.list = list - if points is not None: - self.points = points + self.count = count + self.list = list + self.points = points @property def count(self): @@ -79,6 +76,8 @@ def count(self, count): :param count: The count of this AreaContainer. # noqa: E501 :type count: int """ + if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501 + raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 self._count = count @@ -100,6 +99,8 @@ def list(self, list): :param list: The list of this AreaContainer. # noqa: E501 :type list: list[RectangleCoordinates] """ + if self.local_vars_configuration.client_side_validation and list is None: # noqa: E501 + raise ValueError("Invalid value for `list`, must not be `None`") # noqa: E501 self._list = list @@ -121,6 +122,8 @@ def points(self, points): :param points: The points of this AreaContainer. # noqa: E501 :type points: list[PointsContainer] """ + if self.local_vars_configuration.client_side_validation and points is None: # noqa: E501 + raise ValueError("Invalid value for `points`, must not be `None`") # noqa: E501 self._points = points diff --git a/regula/documentreader/webclient/gen/models/authenticity_check_list.py b/regula/documentreader/webclient/gen/models/authenticity_check_list.py index c66ae51..8cebae7 100644 --- a/regula/documentreader/webclient/gen/models/authenticity_check_list.py +++ b/regula/documentreader/webclient/gen/models/authenticity_check_list.py @@ -51,8 +51,7 @@ def __init__(self, count=None, list=None, local_vars_configuration=None): # noq self._list = None self.discriminator = None - if count is not None: - self.count = count + self.count = count self.list = list @property @@ -75,6 +74,8 @@ def count(self, count): :param count: The count of this AuthenticityCheckList. # noqa: E501 :type count: int """ + if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501 + raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 self._count = count diff --git a/regula/documentreader/webclient/gen/models/authenticity_check_result_item.py b/regula/documentreader/webclient/gen/models/authenticity_check_result_item.py index c95f1ac..4293380 100644 --- a/regula/documentreader/webclient/gen/models/authenticity_check_result_item.py +++ b/regula/documentreader/webclient/gen/models/authenticity_check_result_item.py @@ -44,30 +44,6 @@ class AuthenticityCheckResultItem(object): 'element_diagnose': 'ElementDiagnose', 'percent_value': 'PercentValue' } - discriminator_value_class_map = { - 1 : 'SecurityFeatureResult', - 1024 : 'IdentResult', - 1048576 : 'IdentResult', - 128 : 'PhotoIdentResult', - 131072 : 'IdentResult', - 16 : 'FiberResult', - 16384 : 'FiberResult', - 2 : 'SecurityFeatureResult', - 2048 : 'IdentResult', - 256 : 'PhotoIdentResult', - 262144 : 'IdentResult', - 32 : 'IdentResult', - 32768 : 'IdentResult', - 4 : 'IdentResult', - 4096 : 'SecurityFeatureResult', - 512 : 'SecurityFeatureResult', - 524288 : 'IdentResult', - 64 : 'OCRSecurityTextResult', - 65536 : 'SecurityFeatureResult', - 8 : 'SecurityFeatureResult', - 8192 : 'SecurityFeatureResult', - 8388608 : 'SecurityFeatureResult', - } def __init__(self, type=0, element_result=None, element_diagnose=None, percent_value=None, local_vars_configuration=None): # noqa: E501 """AuthenticityCheckResultItem - a model defined in OpenAPI""" # noqa: E501 @@ -79,7 +55,7 @@ def __init__(self, type=0, element_result=None, element_diagnose=None, percent_v self._element_result = None self._element_diagnose = None self._percent_value = None - self.discriminator = 'type' + self.discriminator = None self.type = type if element_result is not None: @@ -177,13 +153,6 @@ def percent_value(self, percent_value): self._percent_value = percent_value - def get_real_child_model(self, data): - """Returns the real base class specified by the discriminator""" - discriminator_key = self.attribute_map[self.discriminator] - discriminator_value = data[discriminator_key] - from regula.documentreader.webclient.ext.models import RawAuthenticityCheckResultItem - return self.discriminator_value_class_map.get(discriminator_value, RawAuthenticityCheckResultItem.__name__) - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/authenticity_result_type.py b/regula/documentreader/webclient/gen/models/authenticity_result_type.py index 6b94a2b..d59c696 100644 --- a/regula/documentreader/webclient/gen/models/authenticity_result_type.py +++ b/regula/documentreader/webclient/gen/models/authenticity_result_type.py @@ -24,6 +24,8 @@ class AuthenticityResultType(object): Do not edit the class manually. """ + NONE = int("0") + UV_LUMINESCENCE = int("1") IR_B900 = int("2") @@ -40,14 +42,20 @@ class AuthenticityResultType(object): IPI = int("128") + IR_PHOTO = int("256") + PHOTO_EMBED_TYPE = int("512") OVI = int("1024") + IR_LUMINESCENCE = int("2048") + HOLOGRAMS = int("4096") PHOTO_AREA = int("8192") + UV_BACKGROUND = int("16384") + PORTRAIT_COMPARISON = int("32768") BARCODE_FORMAT_CHECK = int("65536") @@ -68,7 +76,9 @@ class AuthenticityResultType(object): ENCRYPTED_IPI = int("16777216") - allowable_values = [UV_LUMINESCENCE, IR_B900, IMAGE_PATTERN, AXIAL_PROTECTION, UV_FIBERS, IR_VISIBILITY, OCR_SECURITY_TEXT, IPI, PHOTO_EMBED_TYPE, OVI, HOLOGRAMS, PHOTO_AREA, PORTRAIT_COMPARISON, BARCODE_FORMAT_CHECK, KINEGRAM, LETTER_SCREEN, HOLOGRAM_DETECTION, FINGERPRINT_COMPARISON, LIVENESS, EXTENDED_OCR_CHECK, EXTENDED_MRZ_CHECK, ENCRYPTED_IPI] # noqa: E501 + STATUS_ONLY = int("2147483648") + + allowable_values = [NONE, UV_LUMINESCENCE, IR_B900, IMAGE_PATTERN, AXIAL_PROTECTION, UV_FIBERS, IR_VISIBILITY, OCR_SECURITY_TEXT, IPI, IR_PHOTO, PHOTO_EMBED_TYPE, OVI, IR_LUMINESCENCE, HOLOGRAMS, PHOTO_AREA, UV_BACKGROUND, PORTRAIT_COMPARISON, BARCODE_FORMAT_CHECK, KINEGRAM, LETTER_SCREEN, HOLOGRAM_DETECTION, FINGERPRINT_COMPARISON, LIVENESS, EXTENDED_OCR_CHECK, EXTENDED_MRZ_CHECK, ENCRYPTED_IPI, STATUS_ONLY] # noqa: E501 """ Attributes: diff --git a/regula/documentreader/webclient/gen/models/bar_code_module_type.py b/regula/documentreader/webclient/gen/models/bar_code_module_type.py new file mode 100644 index 0000000..408c3ba --- /dev/null +++ b/regula/documentreader/webclient/gen/models/bar_code_module_type.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" + +""" +class BarCodeModuleType(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + TEXT = int("0") + + BYTE = int("1") + + NUM = int("2") + + SHIFT = int("3") + + ALL = int("4") + + allowable_values = [TEXT, BYTE, NUM, SHIFT, ALL] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """BarCodeModuleType - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BarCodeModuleType): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, BarCodeModuleType): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/barcode_type.py b/regula/documentreader/webclient/gen/models/barcode_type.py new file mode 100644 index 0000000..b71467a --- /dev/null +++ b/regula/documentreader/webclient/gen/models/barcode_type.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Enumeration contains the types of barcodes that can be processed +""" +class BarcodeType(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + UNKNOWN = int("0") + + CODE128 = int("1") + + CODE39 = int("2") + + EAN8 = int("3") + + ITF = int("4") + + PDF417 = int("5") + + STF = int("6") + + MTF = int("7") + + IATA = int("8") + + CODABAR = int("9") + + UPCA = int("10") + + CODE93 = int("11") + + UPCE = int("12") + + EAN13 = int("13") + + QRCODE = int("14") + + AZTEC = int("15") + + DATAMATRIX = int("16") + + ALL_1D = int("17") + + CODE11 = int("18") + + JABCODE = int("19") + + END = int("20") + + allowable_values = [UNKNOWN, CODE128, CODE39, EAN8, ITF, PDF417, STF, MTF, IATA, CODABAR, UPCA, CODE93, UPCE, EAN13, QRCODE, AZTEC, DATAMATRIX, ALL_1D, CODE11, JABCODE, END] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """BarcodeType - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BarcodeType): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, BarcodeType): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/bc_pdf417_info.py b/regula/documentreader/webclient/gen/models/bc_pdf417_info.py index 322c85d..d06c666 100644 --- a/regula/documentreader/webclient/gen/models/bc_pdf417_info.py +++ b/regula/documentreader/webclient/gen/models/bc_pdf417_info.py @@ -63,18 +63,12 @@ def __init__(self, angle=None, bc_column=None, bc_error_level=None, bc_row=None, self._min_y = None self.discriminator = None - if angle is not None: - self.angle = angle - if bc_column is not None: - self.bc_column = bc_column - if bc_error_level is not None: - self.bc_error_level = bc_error_level - if bc_row is not None: - self.bc_row = bc_row - if min_x is not None: - self.min_x = min_x - if min_y is not None: - self.min_y = min_y + self.angle = angle + self.bc_column = bc_column + self.bc_error_level = bc_error_level + self.bc_row = bc_row + self.min_x = min_x + self.min_y = min_y @property def angle(self): @@ -94,6 +88,8 @@ def angle(self, angle): :param angle: The angle of this BcPDF417INFO. # noqa: E501 :type angle: float """ + if self.local_vars_configuration.client_side_validation and angle is None: # noqa: E501 + raise ValueError("Invalid value for `angle`, must not be `None`") # noqa: E501 self._angle = angle @@ -115,6 +111,8 @@ def bc_column(self, bc_column): :param bc_column: The bc_column of this BcPDF417INFO. # noqa: E501 :type bc_column: int """ + if self.local_vars_configuration.client_side_validation and bc_column is None: # noqa: E501 + raise ValueError("Invalid value for `bc_column`, must not be `None`") # noqa: E501 self._bc_column = bc_column @@ -136,6 +134,8 @@ def bc_error_level(self, bc_error_level): :param bc_error_level: The bc_error_level of this BcPDF417INFO. # noqa: E501 :type bc_error_level: int """ + if self.local_vars_configuration.client_side_validation and bc_error_level is None: # noqa: E501 + raise ValueError("Invalid value for `bc_error_level`, must not be `None`") # noqa: E501 self._bc_error_level = bc_error_level @@ -157,6 +157,8 @@ def bc_row(self, bc_row): :param bc_row: The bc_row of this BcPDF417INFO. # noqa: E501 :type bc_row: int """ + if self.local_vars_configuration.client_side_validation and bc_row is None: # noqa: E501 + raise ValueError("Invalid value for `bc_row`, must not be `None`") # noqa: E501 self._bc_row = bc_row @@ -178,6 +180,8 @@ def min_x(self, min_x): :param min_x: The min_x of this BcPDF417INFO. # noqa: E501 :type min_x: float """ + if self.local_vars_configuration.client_side_validation and min_x is None: # noqa: E501 + raise ValueError("Invalid value for `min_x`, must not be `None`") # noqa: E501 self._min_x = min_x @@ -199,6 +203,8 @@ def min_y(self, min_y): :param min_y: The min_y of this BcPDF417INFO. # noqa: E501 :type min_y: float """ + if self.local_vars_configuration.client_side_validation and min_y is None: # noqa: E501 + raise ValueError("Invalid value for `min_y`, must not be `None`") # noqa: E501 self._min_y = min_y diff --git a/regula/documentreader/webclient/gen/models/bc_roidetect.py b/regula/documentreader/webclient/gen/models/bc_roidetect.py index eba4755..3c12e07 100644 --- a/regula/documentreader/webclient/gen/models/bc_roidetect.py +++ b/regula/documentreader/webclient/gen/models/bc_roidetect.py @@ -57,14 +57,10 @@ def __init__(self, bottom=None, left=None, right=None, top=None, local_vars_conf self._top = None self.discriminator = None - if bottom is not None: - self.bottom = bottom - if left is not None: - self.left = left - if right is not None: - self.right = right - if top is not None: - self.top = top + self.bottom = bottom + self.left = left + self.right = right + self.top = top @property def bottom(self): @@ -84,6 +80,8 @@ def bottom(self, bottom): :param bottom: The bottom of this BcROIDETECT. # noqa: E501 :type bottom: int """ + if self.local_vars_configuration.client_side_validation and bottom is None: # noqa: E501 + raise ValueError("Invalid value for `bottom`, must not be `None`") # noqa: E501 self._bottom = bottom @@ -105,6 +103,8 @@ def left(self, left): :param left: The left of this BcROIDETECT. # noqa: E501 :type left: int """ + if self.local_vars_configuration.client_side_validation and left is None: # noqa: E501 + raise ValueError("Invalid value for `left`, must not be `None`") # noqa: E501 self._left = left @@ -126,6 +126,8 @@ def right(self, right): :param right: The right of this BcROIDETECT. # noqa: E501 :type right: int """ + if self.local_vars_configuration.client_side_validation and right is None: # noqa: E501 + raise ValueError("Invalid value for `right`, must not be `None`") # noqa: E501 self._right = right @@ -147,6 +149,8 @@ def top(self, top): :param top: The top of this BcROIDETECT. # noqa: E501 :type top: int """ + if self.local_vars_configuration.client_side_validation and top is None: # noqa: E501 + raise ValueError("Invalid value for `top`, must not be `None`") # noqa: E501 self._top = top diff --git a/regula/documentreader/webclient/gen/models/binary_data.py b/regula/documentreader/webclient/gen/models/binary_data.py new file mode 100644 index 0000000..15ef68c --- /dev/null +++ b/regula/documentreader/webclient/gen/models/binary_data.py @@ -0,0 +1,1759 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure is used for storing the results of one bar-code module reading. +""" +class BinaryData(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'rfid_authentication_info': 'dict(str, object)', + 'rfid_mifare_data_validity': 'dict(str, object)', + 'rfid_mifare_data': 'dict(str, object)', + 'rfid_ef_com': 'dict(str, object)', + 'rfid_dg1': 'RfidDG1', + 'rfid_dg2': 'dict(str, object)', + 'rfid_dg3': 'dict(str, object)', + 'rfid_dg4': 'dict(str, object)', + 'rfid_dg5': 'dict(str, object)', + 'rfid_dg6': 'dict(str, object)', + 'rfid_dg7': 'dict(str, object)', + 'rfid_dg8': 'dict(str, object)', + 'rfid_dg9': 'dict(str, object)', + 'rfid_dg10': 'dict(str, object)', + 'rfid_dg11': 'dict(str, object)', + 'rfid_dg12': 'dict(str, object)', + 'rfid_dg13': 'dict(str, object)', + 'rfid_dg14': 'dict(str, object)', + 'rfid_dg15': 'dict(str, object)', + 'rfid_dg16': 'dict(str, object)', + 'rfid_ef_sod': 'dict(str, object)', + 'e_id_dg1': 'dict(str, object)', + 'e_id_dg2': 'dict(str, object)', + 'e_id_dg3': 'dict(str, object)', + 'e_id_dg4': 'dict(str, object)', + 'e_id_dg5': 'dict(str, object)', + 'e_id_dg6': 'dict(str, object)', + 'e_id_dg7': 'dict(str, object)', + 'e_id_dg8': 'dict(str, object)', + 'e_id_dg9': 'dict(str, object)', + 'e_id_dg10': 'dict(str, object)', + 'e_id_dg11': 'dict(str, object)', + 'e_id_dg12': 'dict(str, object)', + 'e_id_dg13': 'dict(str, object)', + 'e_id_dg14': 'dict(str, object)', + 'e_id_dg15': 'dict(str, object)', + 'e_id_dg16': 'dict(str, object)', + 'e_id_dg17': 'dict(str, object)', + 'e_id_dg18': 'dict(str, object)', + 'e_id_dg19': 'dict(str, object)', + 'e_id_dg20': 'dict(str, object)', + 'e_id_dg21': 'dict(str, object)', + 'e_dl_com': 'dict(str, object)', + 'e_dl_sod': 'dict(str, object)', + 'e_dl_dg1': 'dict(str, object)', + 'e_dl_dg2': 'dict(str, object)', + 'e_dl_dg3': 'dict(str, object)', + 'e_dl_dg4': 'dict(str, object)', + 'e_dl_dg5': 'dict(str, object)', + 'e_dl_dg6': 'dict(str, object)', + 'e_dl_dg7': 'dict(str, object)', + 'e_dl_dg8': 'dict(str, object)', + 'e_dl_dg9': 'dict(str, object)', + 'e_dl_dg10': 'dict(str, object)', + 'e_dl_dg11': 'dict(str, object)', + 'e_dl_dg12': 'dict(str, object)', + 'e_dl_dg13': 'dict(str, object)', + 'e_dl_dg14': 'dict(str, object)', + 'visible_digital_seal': 'dict(str, object)', + 'visible_digital_seal_nc': 'dict(str, object)', + 'digital_signature': 'dict(str, object)', + 'rfid_session_data': 'RfidSessionData', + 'rfid_session_data_status': 'DetailsRFID', + 'rfid_e_passp_directory': 'list[RfidDataFileType]' + } + + attribute_map = { + 'rfid_authentication_info': 'RFID_Authentication_Info', + 'rfid_mifare_data_validity': 'RFID_MIFARE_Data_Validity', + 'rfid_mifare_data': 'RFID_MIFARE_Data', + 'rfid_ef_com': 'RFID_EF_COM', + 'rfid_dg1': 'RFID_DG1', + 'rfid_dg2': 'RFID_DG2', + 'rfid_dg3': 'RFID_DG3', + 'rfid_dg4': 'RFID_DG4', + 'rfid_dg5': 'RFID_DG5', + 'rfid_dg6': 'RFID_DG6', + 'rfid_dg7': 'RFID_DG7', + 'rfid_dg8': 'RFID_DG8', + 'rfid_dg9': 'RFID_DG9', + 'rfid_dg10': 'RFID_DG10', + 'rfid_dg11': 'RFID_DG11', + 'rfid_dg12': 'RFID_DG12', + 'rfid_dg13': 'RFID_DG13', + 'rfid_dg14': 'RFID_DG14', + 'rfid_dg15': 'RFID_DG15', + 'rfid_dg16': 'RFID_DG16', + 'rfid_ef_sod': 'RFID_EF_SOD', + 'e_id_dg1': 'eID_DG1', + 'e_id_dg2': 'eID_DG2', + 'e_id_dg3': 'eID_DG3', + 'e_id_dg4': 'eID_DG4', + 'e_id_dg5': 'eID_DG5', + 'e_id_dg6': 'eID_DG6', + 'e_id_dg7': 'eID_DG7', + 'e_id_dg8': 'eID_DG8', + 'e_id_dg9': 'eID_DG9', + 'e_id_dg10': 'eID_DG10', + 'e_id_dg11': 'eID_DG11', + 'e_id_dg12': 'eID_DG12', + 'e_id_dg13': 'eID_DG13', + 'e_id_dg14': 'eID_DG14', + 'e_id_dg15': 'eID_DG15', + 'e_id_dg16': 'eID_DG16', + 'e_id_dg17': 'eID_DG17', + 'e_id_dg18': 'eID_DG18', + 'e_id_dg19': 'eID_DG19', + 'e_id_dg20': 'eID_DG20', + 'e_id_dg21': 'eID_DG21', + 'e_dl_com': 'eDL_COM', + 'e_dl_sod': 'eDL_SOD', + 'e_dl_dg1': 'eDL_DG1', + 'e_dl_dg2': 'eDL_DG2', + 'e_dl_dg3': 'eDL_DG3', + 'e_dl_dg4': 'eDL_DG4', + 'e_dl_dg5': 'eDL_DG5', + 'e_dl_dg6': 'eDL_DG6', + 'e_dl_dg7': 'eDL_DG7', + 'e_dl_dg8': 'eDL_DG8', + 'e_dl_dg9': 'eDL_DG9', + 'e_dl_dg10': 'eDL_DG10', + 'e_dl_dg11': 'eDL_DG11', + 'e_dl_dg12': 'eDL_DG12', + 'e_dl_dg13': 'eDL_DG13', + 'e_dl_dg14': 'eDL_DG14', + 'visible_digital_seal': 'Visible_Digital_Seal', + 'visible_digital_seal_nc': 'Visible_Digital_Seal_NC', + 'digital_signature': 'Digital_Signature', + 'rfid_session_data': 'RFID_Session_Data', + 'rfid_session_data_status': 'RFID_Session_Data_Status', + 'rfid_e_passp_directory': 'RFID_ePassp_Directory' + } + + def __init__(self, rfid_authentication_info=None, rfid_mifare_data_validity=None, rfid_mifare_data=None, rfid_ef_com=None, rfid_dg1=None, rfid_dg2=None, rfid_dg3=None, rfid_dg4=None, rfid_dg5=None, rfid_dg6=None, rfid_dg7=None, rfid_dg8=None, rfid_dg9=None, rfid_dg10=None, rfid_dg11=None, rfid_dg12=None, rfid_dg13=None, rfid_dg14=None, rfid_dg15=None, rfid_dg16=None, rfid_ef_sod=None, e_id_dg1=None, e_id_dg2=None, e_id_dg3=None, e_id_dg4=None, e_id_dg5=None, e_id_dg6=None, e_id_dg7=None, e_id_dg8=None, e_id_dg9=None, e_id_dg10=None, e_id_dg11=None, e_id_dg12=None, e_id_dg13=None, e_id_dg14=None, e_id_dg15=None, e_id_dg16=None, e_id_dg17=None, e_id_dg18=None, e_id_dg19=None, e_id_dg20=None, e_id_dg21=None, e_dl_com=None, e_dl_sod=None, e_dl_dg1=None, e_dl_dg2=None, e_dl_dg3=None, e_dl_dg4=None, e_dl_dg5=None, e_dl_dg6=None, e_dl_dg7=None, e_dl_dg8=None, e_dl_dg9=None, e_dl_dg10=None, e_dl_dg11=None, e_dl_dg12=None, e_dl_dg13=None, e_dl_dg14=None, visible_digital_seal=None, visible_digital_seal_nc=None, digital_signature=None, rfid_session_data=None, rfid_session_data_status=None, rfid_e_passp_directory=None, local_vars_configuration=None): # noqa: E501 + """BinaryData - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._rfid_authentication_info = None + self._rfid_mifare_data_validity = None + self._rfid_mifare_data = None + self._rfid_ef_com = None + self._rfid_dg1 = None + self._rfid_dg2 = None + self._rfid_dg3 = None + self._rfid_dg4 = None + self._rfid_dg5 = None + self._rfid_dg6 = None + self._rfid_dg7 = None + self._rfid_dg8 = None + self._rfid_dg9 = None + self._rfid_dg10 = None + self._rfid_dg11 = None + self._rfid_dg12 = None + self._rfid_dg13 = None + self._rfid_dg14 = None + self._rfid_dg15 = None + self._rfid_dg16 = None + self._rfid_ef_sod = None + self._e_id_dg1 = None + self._e_id_dg2 = None + self._e_id_dg3 = None + self._e_id_dg4 = None + self._e_id_dg5 = None + self._e_id_dg6 = None + self._e_id_dg7 = None + self._e_id_dg8 = None + self._e_id_dg9 = None + self._e_id_dg10 = None + self._e_id_dg11 = None + self._e_id_dg12 = None + self._e_id_dg13 = None + self._e_id_dg14 = None + self._e_id_dg15 = None + self._e_id_dg16 = None + self._e_id_dg17 = None + self._e_id_dg18 = None + self._e_id_dg19 = None + self._e_id_dg20 = None + self._e_id_dg21 = None + self._e_dl_com = None + self._e_dl_sod = None + self._e_dl_dg1 = None + self._e_dl_dg2 = None + self._e_dl_dg3 = None + self._e_dl_dg4 = None + self._e_dl_dg5 = None + self._e_dl_dg6 = None + self._e_dl_dg7 = None + self._e_dl_dg8 = None + self._e_dl_dg9 = None + self._e_dl_dg10 = None + self._e_dl_dg11 = None + self._e_dl_dg12 = None + self._e_dl_dg13 = None + self._e_dl_dg14 = None + self._visible_digital_seal = None + self._visible_digital_seal_nc = None + self._digital_signature = None + self._rfid_session_data = None + self._rfid_session_data_status = None + self._rfid_e_passp_directory = None + self.discriminator = None + + if rfid_authentication_info is not None: + self.rfid_authentication_info = rfid_authentication_info + if rfid_mifare_data_validity is not None: + self.rfid_mifare_data_validity = rfid_mifare_data_validity + if rfid_mifare_data is not None: + self.rfid_mifare_data = rfid_mifare_data + if rfid_ef_com is not None: + self.rfid_ef_com = rfid_ef_com + if rfid_dg1 is not None: + self.rfid_dg1 = rfid_dg1 + if rfid_dg2 is not None: + self.rfid_dg2 = rfid_dg2 + if rfid_dg3 is not None: + self.rfid_dg3 = rfid_dg3 + if rfid_dg4 is not None: + self.rfid_dg4 = rfid_dg4 + if rfid_dg5 is not None: + self.rfid_dg5 = rfid_dg5 + if rfid_dg6 is not None: + self.rfid_dg6 = rfid_dg6 + if rfid_dg7 is not None: + self.rfid_dg7 = rfid_dg7 + if rfid_dg8 is not None: + self.rfid_dg8 = rfid_dg8 + if rfid_dg9 is not None: + self.rfid_dg9 = rfid_dg9 + if rfid_dg10 is not None: + self.rfid_dg10 = rfid_dg10 + if rfid_dg11 is not None: + self.rfid_dg11 = rfid_dg11 + if rfid_dg12 is not None: + self.rfid_dg12 = rfid_dg12 + if rfid_dg13 is not None: + self.rfid_dg13 = rfid_dg13 + if rfid_dg14 is not None: + self.rfid_dg14 = rfid_dg14 + if rfid_dg15 is not None: + self.rfid_dg15 = rfid_dg15 + if rfid_dg16 is not None: + self.rfid_dg16 = rfid_dg16 + if rfid_ef_sod is not None: + self.rfid_ef_sod = rfid_ef_sod + if e_id_dg1 is not None: + self.e_id_dg1 = e_id_dg1 + if e_id_dg2 is not None: + self.e_id_dg2 = e_id_dg2 + if e_id_dg3 is not None: + self.e_id_dg3 = e_id_dg3 + if e_id_dg4 is not None: + self.e_id_dg4 = e_id_dg4 + if e_id_dg5 is not None: + self.e_id_dg5 = e_id_dg5 + if e_id_dg6 is not None: + self.e_id_dg6 = e_id_dg6 + if e_id_dg7 is not None: + self.e_id_dg7 = e_id_dg7 + if e_id_dg8 is not None: + self.e_id_dg8 = e_id_dg8 + if e_id_dg9 is not None: + self.e_id_dg9 = e_id_dg9 + if e_id_dg10 is not None: + self.e_id_dg10 = e_id_dg10 + if e_id_dg11 is not None: + self.e_id_dg11 = e_id_dg11 + if e_id_dg12 is not None: + self.e_id_dg12 = e_id_dg12 + if e_id_dg13 is not None: + self.e_id_dg13 = e_id_dg13 + if e_id_dg14 is not None: + self.e_id_dg14 = e_id_dg14 + if e_id_dg15 is not None: + self.e_id_dg15 = e_id_dg15 + if e_id_dg16 is not None: + self.e_id_dg16 = e_id_dg16 + if e_id_dg17 is not None: + self.e_id_dg17 = e_id_dg17 + if e_id_dg18 is not None: + self.e_id_dg18 = e_id_dg18 + if e_id_dg19 is not None: + self.e_id_dg19 = e_id_dg19 + if e_id_dg20 is not None: + self.e_id_dg20 = e_id_dg20 + if e_id_dg21 is not None: + self.e_id_dg21 = e_id_dg21 + if e_dl_com is not None: + self.e_dl_com = e_dl_com + if e_dl_sod is not None: + self.e_dl_sod = e_dl_sod + if e_dl_dg1 is not None: + self.e_dl_dg1 = e_dl_dg1 + if e_dl_dg2 is not None: + self.e_dl_dg2 = e_dl_dg2 + if e_dl_dg3 is not None: + self.e_dl_dg3 = e_dl_dg3 + if e_dl_dg4 is not None: + self.e_dl_dg4 = e_dl_dg4 + if e_dl_dg5 is not None: + self.e_dl_dg5 = e_dl_dg5 + if e_dl_dg6 is not None: + self.e_dl_dg6 = e_dl_dg6 + if e_dl_dg7 is not None: + self.e_dl_dg7 = e_dl_dg7 + if e_dl_dg8 is not None: + self.e_dl_dg8 = e_dl_dg8 + if e_dl_dg9 is not None: + self.e_dl_dg9 = e_dl_dg9 + if e_dl_dg10 is not None: + self.e_dl_dg10 = e_dl_dg10 + if e_dl_dg11 is not None: + self.e_dl_dg11 = e_dl_dg11 + if e_dl_dg12 is not None: + self.e_dl_dg12 = e_dl_dg12 + if e_dl_dg13 is not None: + self.e_dl_dg13 = e_dl_dg13 + if e_dl_dg14 is not None: + self.e_dl_dg14 = e_dl_dg14 + if visible_digital_seal is not None: + self.visible_digital_seal = visible_digital_seal + if visible_digital_seal_nc is not None: + self.visible_digital_seal_nc = visible_digital_seal_nc + if digital_signature is not None: + self.digital_signature = digital_signature + if rfid_session_data is not None: + self.rfid_session_data = rfid_session_data + if rfid_session_data_status is not None: + self.rfid_session_data_status = rfid_session_data_status + if rfid_e_passp_directory is not None: + self.rfid_e_passp_directory = rfid_e_passp_directory + + @property + def rfid_authentication_info(self): + """Gets the rfid_authentication_info of this BinaryData. # noqa: E501 + + + :return: The rfid_authentication_info of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_authentication_info + + @rfid_authentication_info.setter + def rfid_authentication_info(self, rfid_authentication_info): + """Sets the rfid_authentication_info of this BinaryData. + + + :param rfid_authentication_info: The rfid_authentication_info of this BinaryData. # noqa: E501 + :type rfid_authentication_info: dict(str, object) + """ + + self._rfid_authentication_info = rfid_authentication_info + + @property + def rfid_mifare_data_validity(self): + """Gets the rfid_mifare_data_validity of this BinaryData. # noqa: E501 + + + :return: The rfid_mifare_data_validity of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_mifare_data_validity + + @rfid_mifare_data_validity.setter + def rfid_mifare_data_validity(self, rfid_mifare_data_validity): + """Sets the rfid_mifare_data_validity of this BinaryData. + + + :param rfid_mifare_data_validity: The rfid_mifare_data_validity of this BinaryData. # noqa: E501 + :type rfid_mifare_data_validity: dict(str, object) + """ + + self._rfid_mifare_data_validity = rfid_mifare_data_validity + + @property + def rfid_mifare_data(self): + """Gets the rfid_mifare_data of this BinaryData. # noqa: E501 + + + :return: The rfid_mifare_data of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_mifare_data + + @rfid_mifare_data.setter + def rfid_mifare_data(self, rfid_mifare_data): + """Sets the rfid_mifare_data of this BinaryData. + + + :param rfid_mifare_data: The rfid_mifare_data of this BinaryData. # noqa: E501 + :type rfid_mifare_data: dict(str, object) + """ + + self._rfid_mifare_data = rfid_mifare_data + + @property + def rfid_ef_com(self): + """Gets the rfid_ef_com of this BinaryData. # noqa: E501 + + + :return: The rfid_ef_com of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_ef_com + + @rfid_ef_com.setter + def rfid_ef_com(self, rfid_ef_com): + """Sets the rfid_ef_com of this BinaryData. + + + :param rfid_ef_com: The rfid_ef_com of this BinaryData. # noqa: E501 + :type rfid_ef_com: dict(str, object) + """ + + self._rfid_ef_com = rfid_ef_com + + @property + def rfid_dg1(self): + """Gets the rfid_dg1 of this BinaryData. # noqa: E501 + + + :return: The rfid_dg1 of this BinaryData. # noqa: E501 + :rtype: RfidDG1 + """ + return self._rfid_dg1 + + @rfid_dg1.setter + def rfid_dg1(self, rfid_dg1): + """Sets the rfid_dg1 of this BinaryData. + + + :param rfid_dg1: The rfid_dg1 of this BinaryData. # noqa: E501 + :type rfid_dg1: RfidDG1 + """ + + self._rfid_dg1 = rfid_dg1 + + @property + def rfid_dg2(self): + """Gets the rfid_dg2 of this BinaryData. # noqa: E501 + + + :return: The rfid_dg2 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_dg2 + + @rfid_dg2.setter + def rfid_dg2(self, rfid_dg2): + """Sets the rfid_dg2 of this BinaryData. + + + :param rfid_dg2: The rfid_dg2 of this BinaryData. # noqa: E501 + :type rfid_dg2: dict(str, object) + """ + + self._rfid_dg2 = rfid_dg2 + + @property + def rfid_dg3(self): + """Gets the rfid_dg3 of this BinaryData. # noqa: E501 + + + :return: The rfid_dg3 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_dg3 + + @rfid_dg3.setter + def rfid_dg3(self, rfid_dg3): + """Sets the rfid_dg3 of this BinaryData. + + + :param rfid_dg3: The rfid_dg3 of this BinaryData. # noqa: E501 + :type rfid_dg3: dict(str, object) + """ + + self._rfid_dg3 = rfid_dg3 + + @property + def rfid_dg4(self): + """Gets the rfid_dg4 of this BinaryData. # noqa: E501 + + + :return: The rfid_dg4 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_dg4 + + @rfid_dg4.setter + def rfid_dg4(self, rfid_dg4): + """Sets the rfid_dg4 of this BinaryData. + + + :param rfid_dg4: The rfid_dg4 of this BinaryData. # noqa: E501 + :type rfid_dg4: dict(str, object) + """ + + self._rfid_dg4 = rfid_dg4 + + @property + def rfid_dg5(self): + """Gets the rfid_dg5 of this BinaryData. # noqa: E501 + + + :return: The rfid_dg5 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_dg5 + + @rfid_dg5.setter + def rfid_dg5(self, rfid_dg5): + """Sets the rfid_dg5 of this BinaryData. + + + :param rfid_dg5: The rfid_dg5 of this BinaryData. # noqa: E501 + :type rfid_dg5: dict(str, object) + """ + + self._rfid_dg5 = rfid_dg5 + + @property + def rfid_dg6(self): + """Gets the rfid_dg6 of this BinaryData. # noqa: E501 + + + :return: The rfid_dg6 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_dg6 + + @rfid_dg6.setter + def rfid_dg6(self, rfid_dg6): + """Sets the rfid_dg6 of this BinaryData. + + + :param rfid_dg6: The rfid_dg6 of this BinaryData. # noqa: E501 + :type rfid_dg6: dict(str, object) + """ + + self._rfid_dg6 = rfid_dg6 + + @property + def rfid_dg7(self): + """Gets the rfid_dg7 of this BinaryData. # noqa: E501 + + + :return: The rfid_dg7 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_dg7 + + @rfid_dg7.setter + def rfid_dg7(self, rfid_dg7): + """Sets the rfid_dg7 of this BinaryData. + + + :param rfid_dg7: The rfid_dg7 of this BinaryData. # noqa: E501 + :type rfid_dg7: dict(str, object) + """ + + self._rfid_dg7 = rfid_dg7 + + @property + def rfid_dg8(self): + """Gets the rfid_dg8 of this BinaryData. # noqa: E501 + + + :return: The rfid_dg8 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_dg8 + + @rfid_dg8.setter + def rfid_dg8(self, rfid_dg8): + """Sets the rfid_dg8 of this BinaryData. + + + :param rfid_dg8: The rfid_dg8 of this BinaryData. # noqa: E501 + :type rfid_dg8: dict(str, object) + """ + + self._rfid_dg8 = rfid_dg8 + + @property + def rfid_dg9(self): + """Gets the rfid_dg9 of this BinaryData. # noqa: E501 + + + :return: The rfid_dg9 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_dg9 + + @rfid_dg9.setter + def rfid_dg9(self, rfid_dg9): + """Sets the rfid_dg9 of this BinaryData. + + + :param rfid_dg9: The rfid_dg9 of this BinaryData. # noqa: E501 + :type rfid_dg9: dict(str, object) + """ + + self._rfid_dg9 = rfid_dg9 + + @property + def rfid_dg10(self): + """Gets the rfid_dg10 of this BinaryData. # noqa: E501 + + + :return: The rfid_dg10 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_dg10 + + @rfid_dg10.setter + def rfid_dg10(self, rfid_dg10): + """Sets the rfid_dg10 of this BinaryData. + + + :param rfid_dg10: The rfid_dg10 of this BinaryData. # noqa: E501 + :type rfid_dg10: dict(str, object) + """ + + self._rfid_dg10 = rfid_dg10 + + @property + def rfid_dg11(self): + """Gets the rfid_dg11 of this BinaryData. # noqa: E501 + + + :return: The rfid_dg11 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_dg11 + + @rfid_dg11.setter + def rfid_dg11(self, rfid_dg11): + """Sets the rfid_dg11 of this BinaryData. + + + :param rfid_dg11: The rfid_dg11 of this BinaryData. # noqa: E501 + :type rfid_dg11: dict(str, object) + """ + + self._rfid_dg11 = rfid_dg11 + + @property + def rfid_dg12(self): + """Gets the rfid_dg12 of this BinaryData. # noqa: E501 + + + :return: The rfid_dg12 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_dg12 + + @rfid_dg12.setter + def rfid_dg12(self, rfid_dg12): + """Sets the rfid_dg12 of this BinaryData. + + + :param rfid_dg12: The rfid_dg12 of this BinaryData. # noqa: E501 + :type rfid_dg12: dict(str, object) + """ + + self._rfid_dg12 = rfid_dg12 + + @property + def rfid_dg13(self): + """Gets the rfid_dg13 of this BinaryData. # noqa: E501 + + + :return: The rfid_dg13 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_dg13 + + @rfid_dg13.setter + def rfid_dg13(self, rfid_dg13): + """Sets the rfid_dg13 of this BinaryData. + + + :param rfid_dg13: The rfid_dg13 of this BinaryData. # noqa: E501 + :type rfid_dg13: dict(str, object) + """ + + self._rfid_dg13 = rfid_dg13 + + @property + def rfid_dg14(self): + """Gets the rfid_dg14 of this BinaryData. # noqa: E501 + + + :return: The rfid_dg14 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_dg14 + + @rfid_dg14.setter + def rfid_dg14(self, rfid_dg14): + """Sets the rfid_dg14 of this BinaryData. + + + :param rfid_dg14: The rfid_dg14 of this BinaryData. # noqa: E501 + :type rfid_dg14: dict(str, object) + """ + + self._rfid_dg14 = rfid_dg14 + + @property + def rfid_dg15(self): + """Gets the rfid_dg15 of this BinaryData. # noqa: E501 + + + :return: The rfid_dg15 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_dg15 + + @rfid_dg15.setter + def rfid_dg15(self, rfid_dg15): + """Sets the rfid_dg15 of this BinaryData. + + + :param rfid_dg15: The rfid_dg15 of this BinaryData. # noqa: E501 + :type rfid_dg15: dict(str, object) + """ + + self._rfid_dg15 = rfid_dg15 + + @property + def rfid_dg16(self): + """Gets the rfid_dg16 of this BinaryData. # noqa: E501 + + + :return: The rfid_dg16 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_dg16 + + @rfid_dg16.setter + def rfid_dg16(self, rfid_dg16): + """Sets the rfid_dg16 of this BinaryData. + + + :param rfid_dg16: The rfid_dg16 of this BinaryData. # noqa: E501 + :type rfid_dg16: dict(str, object) + """ + + self._rfid_dg16 = rfid_dg16 + + @property + def rfid_ef_sod(self): + """Gets the rfid_ef_sod of this BinaryData. # noqa: E501 + + + :return: The rfid_ef_sod of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._rfid_ef_sod + + @rfid_ef_sod.setter + def rfid_ef_sod(self, rfid_ef_sod): + """Sets the rfid_ef_sod of this BinaryData. + + + :param rfid_ef_sod: The rfid_ef_sod of this BinaryData. # noqa: E501 + :type rfid_ef_sod: dict(str, object) + """ + + self._rfid_ef_sod = rfid_ef_sod + + @property + def e_id_dg1(self): + """Gets the e_id_dg1 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg1 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg1 + + @e_id_dg1.setter + def e_id_dg1(self, e_id_dg1): + """Sets the e_id_dg1 of this BinaryData. + + + :param e_id_dg1: The e_id_dg1 of this BinaryData. # noqa: E501 + :type e_id_dg1: dict(str, object) + """ + + self._e_id_dg1 = e_id_dg1 + + @property + def e_id_dg2(self): + """Gets the e_id_dg2 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg2 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg2 + + @e_id_dg2.setter + def e_id_dg2(self, e_id_dg2): + """Sets the e_id_dg2 of this BinaryData. + + + :param e_id_dg2: The e_id_dg2 of this BinaryData. # noqa: E501 + :type e_id_dg2: dict(str, object) + """ + + self._e_id_dg2 = e_id_dg2 + + @property + def e_id_dg3(self): + """Gets the e_id_dg3 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg3 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg3 + + @e_id_dg3.setter + def e_id_dg3(self, e_id_dg3): + """Sets the e_id_dg3 of this BinaryData. + + + :param e_id_dg3: The e_id_dg3 of this BinaryData. # noqa: E501 + :type e_id_dg3: dict(str, object) + """ + + self._e_id_dg3 = e_id_dg3 + + @property + def e_id_dg4(self): + """Gets the e_id_dg4 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg4 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg4 + + @e_id_dg4.setter + def e_id_dg4(self, e_id_dg4): + """Sets the e_id_dg4 of this BinaryData. + + + :param e_id_dg4: The e_id_dg4 of this BinaryData. # noqa: E501 + :type e_id_dg4: dict(str, object) + """ + + self._e_id_dg4 = e_id_dg4 + + @property + def e_id_dg5(self): + """Gets the e_id_dg5 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg5 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg5 + + @e_id_dg5.setter + def e_id_dg5(self, e_id_dg5): + """Sets the e_id_dg5 of this BinaryData. + + + :param e_id_dg5: The e_id_dg5 of this BinaryData. # noqa: E501 + :type e_id_dg5: dict(str, object) + """ + + self._e_id_dg5 = e_id_dg5 + + @property + def e_id_dg6(self): + """Gets the e_id_dg6 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg6 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg6 + + @e_id_dg6.setter + def e_id_dg6(self, e_id_dg6): + """Sets the e_id_dg6 of this BinaryData. + + + :param e_id_dg6: The e_id_dg6 of this BinaryData. # noqa: E501 + :type e_id_dg6: dict(str, object) + """ + + self._e_id_dg6 = e_id_dg6 + + @property + def e_id_dg7(self): + """Gets the e_id_dg7 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg7 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg7 + + @e_id_dg7.setter + def e_id_dg7(self, e_id_dg7): + """Sets the e_id_dg7 of this BinaryData. + + + :param e_id_dg7: The e_id_dg7 of this BinaryData. # noqa: E501 + :type e_id_dg7: dict(str, object) + """ + + self._e_id_dg7 = e_id_dg7 + + @property + def e_id_dg8(self): + """Gets the e_id_dg8 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg8 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg8 + + @e_id_dg8.setter + def e_id_dg8(self, e_id_dg8): + """Sets the e_id_dg8 of this BinaryData. + + + :param e_id_dg8: The e_id_dg8 of this BinaryData. # noqa: E501 + :type e_id_dg8: dict(str, object) + """ + + self._e_id_dg8 = e_id_dg8 + + @property + def e_id_dg9(self): + """Gets the e_id_dg9 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg9 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg9 + + @e_id_dg9.setter + def e_id_dg9(self, e_id_dg9): + """Sets the e_id_dg9 of this BinaryData. + + + :param e_id_dg9: The e_id_dg9 of this BinaryData. # noqa: E501 + :type e_id_dg9: dict(str, object) + """ + + self._e_id_dg9 = e_id_dg9 + + @property + def e_id_dg10(self): + """Gets the e_id_dg10 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg10 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg10 + + @e_id_dg10.setter + def e_id_dg10(self, e_id_dg10): + """Sets the e_id_dg10 of this BinaryData. + + + :param e_id_dg10: The e_id_dg10 of this BinaryData. # noqa: E501 + :type e_id_dg10: dict(str, object) + """ + + self._e_id_dg10 = e_id_dg10 + + @property + def e_id_dg11(self): + """Gets the e_id_dg11 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg11 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg11 + + @e_id_dg11.setter + def e_id_dg11(self, e_id_dg11): + """Sets the e_id_dg11 of this BinaryData. + + + :param e_id_dg11: The e_id_dg11 of this BinaryData. # noqa: E501 + :type e_id_dg11: dict(str, object) + """ + + self._e_id_dg11 = e_id_dg11 + + @property + def e_id_dg12(self): + """Gets the e_id_dg12 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg12 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg12 + + @e_id_dg12.setter + def e_id_dg12(self, e_id_dg12): + """Sets the e_id_dg12 of this BinaryData. + + + :param e_id_dg12: The e_id_dg12 of this BinaryData. # noqa: E501 + :type e_id_dg12: dict(str, object) + """ + + self._e_id_dg12 = e_id_dg12 + + @property + def e_id_dg13(self): + """Gets the e_id_dg13 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg13 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg13 + + @e_id_dg13.setter + def e_id_dg13(self, e_id_dg13): + """Sets the e_id_dg13 of this BinaryData. + + + :param e_id_dg13: The e_id_dg13 of this BinaryData. # noqa: E501 + :type e_id_dg13: dict(str, object) + """ + + self._e_id_dg13 = e_id_dg13 + + @property + def e_id_dg14(self): + """Gets the e_id_dg14 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg14 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg14 + + @e_id_dg14.setter + def e_id_dg14(self, e_id_dg14): + """Sets the e_id_dg14 of this BinaryData. + + + :param e_id_dg14: The e_id_dg14 of this BinaryData. # noqa: E501 + :type e_id_dg14: dict(str, object) + """ + + self._e_id_dg14 = e_id_dg14 + + @property + def e_id_dg15(self): + """Gets the e_id_dg15 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg15 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg15 + + @e_id_dg15.setter + def e_id_dg15(self, e_id_dg15): + """Sets the e_id_dg15 of this BinaryData. + + + :param e_id_dg15: The e_id_dg15 of this BinaryData. # noqa: E501 + :type e_id_dg15: dict(str, object) + """ + + self._e_id_dg15 = e_id_dg15 + + @property + def e_id_dg16(self): + """Gets the e_id_dg16 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg16 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg16 + + @e_id_dg16.setter + def e_id_dg16(self, e_id_dg16): + """Sets the e_id_dg16 of this BinaryData. + + + :param e_id_dg16: The e_id_dg16 of this BinaryData. # noqa: E501 + :type e_id_dg16: dict(str, object) + """ + + self._e_id_dg16 = e_id_dg16 + + @property + def e_id_dg17(self): + """Gets the e_id_dg17 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg17 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg17 + + @e_id_dg17.setter + def e_id_dg17(self, e_id_dg17): + """Sets the e_id_dg17 of this BinaryData. + + + :param e_id_dg17: The e_id_dg17 of this BinaryData. # noqa: E501 + :type e_id_dg17: dict(str, object) + """ + + self._e_id_dg17 = e_id_dg17 + + @property + def e_id_dg18(self): + """Gets the e_id_dg18 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg18 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg18 + + @e_id_dg18.setter + def e_id_dg18(self, e_id_dg18): + """Sets the e_id_dg18 of this BinaryData. + + + :param e_id_dg18: The e_id_dg18 of this BinaryData. # noqa: E501 + :type e_id_dg18: dict(str, object) + """ + + self._e_id_dg18 = e_id_dg18 + + @property + def e_id_dg19(self): + """Gets the e_id_dg19 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg19 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg19 + + @e_id_dg19.setter + def e_id_dg19(self, e_id_dg19): + """Sets the e_id_dg19 of this BinaryData. + + + :param e_id_dg19: The e_id_dg19 of this BinaryData. # noqa: E501 + :type e_id_dg19: dict(str, object) + """ + + self._e_id_dg19 = e_id_dg19 + + @property + def e_id_dg20(self): + """Gets the e_id_dg20 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg20 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg20 + + @e_id_dg20.setter + def e_id_dg20(self, e_id_dg20): + """Sets the e_id_dg20 of this BinaryData. + + + :param e_id_dg20: The e_id_dg20 of this BinaryData. # noqa: E501 + :type e_id_dg20: dict(str, object) + """ + + self._e_id_dg20 = e_id_dg20 + + @property + def e_id_dg21(self): + """Gets the e_id_dg21 of this BinaryData. # noqa: E501 + + + :return: The e_id_dg21 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_id_dg21 + + @e_id_dg21.setter + def e_id_dg21(self, e_id_dg21): + """Sets the e_id_dg21 of this BinaryData. + + + :param e_id_dg21: The e_id_dg21 of this BinaryData. # noqa: E501 + :type e_id_dg21: dict(str, object) + """ + + self._e_id_dg21 = e_id_dg21 + + @property + def e_dl_com(self): + """Gets the e_dl_com of this BinaryData. # noqa: E501 + + + :return: The e_dl_com of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_dl_com + + @e_dl_com.setter + def e_dl_com(self, e_dl_com): + """Sets the e_dl_com of this BinaryData. + + + :param e_dl_com: The e_dl_com of this BinaryData. # noqa: E501 + :type e_dl_com: dict(str, object) + """ + + self._e_dl_com = e_dl_com + + @property + def e_dl_sod(self): + """Gets the e_dl_sod of this BinaryData. # noqa: E501 + + + :return: The e_dl_sod of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_dl_sod + + @e_dl_sod.setter + def e_dl_sod(self, e_dl_sod): + """Sets the e_dl_sod of this BinaryData. + + + :param e_dl_sod: The e_dl_sod of this BinaryData. # noqa: E501 + :type e_dl_sod: dict(str, object) + """ + + self._e_dl_sod = e_dl_sod + + @property + def e_dl_dg1(self): + """Gets the e_dl_dg1 of this BinaryData. # noqa: E501 + + + :return: The e_dl_dg1 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_dl_dg1 + + @e_dl_dg1.setter + def e_dl_dg1(self, e_dl_dg1): + """Sets the e_dl_dg1 of this BinaryData. + + + :param e_dl_dg1: The e_dl_dg1 of this BinaryData. # noqa: E501 + :type e_dl_dg1: dict(str, object) + """ + + self._e_dl_dg1 = e_dl_dg1 + + @property + def e_dl_dg2(self): + """Gets the e_dl_dg2 of this BinaryData. # noqa: E501 + + + :return: The e_dl_dg2 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_dl_dg2 + + @e_dl_dg2.setter + def e_dl_dg2(self, e_dl_dg2): + """Sets the e_dl_dg2 of this BinaryData. + + + :param e_dl_dg2: The e_dl_dg2 of this BinaryData. # noqa: E501 + :type e_dl_dg2: dict(str, object) + """ + + self._e_dl_dg2 = e_dl_dg2 + + @property + def e_dl_dg3(self): + """Gets the e_dl_dg3 of this BinaryData. # noqa: E501 + + + :return: The e_dl_dg3 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_dl_dg3 + + @e_dl_dg3.setter + def e_dl_dg3(self, e_dl_dg3): + """Sets the e_dl_dg3 of this BinaryData. + + + :param e_dl_dg3: The e_dl_dg3 of this BinaryData. # noqa: E501 + :type e_dl_dg3: dict(str, object) + """ + + self._e_dl_dg3 = e_dl_dg3 + + @property + def e_dl_dg4(self): + """Gets the e_dl_dg4 of this BinaryData. # noqa: E501 + + + :return: The e_dl_dg4 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_dl_dg4 + + @e_dl_dg4.setter + def e_dl_dg4(self, e_dl_dg4): + """Sets the e_dl_dg4 of this BinaryData. + + + :param e_dl_dg4: The e_dl_dg4 of this BinaryData. # noqa: E501 + :type e_dl_dg4: dict(str, object) + """ + + self._e_dl_dg4 = e_dl_dg4 + + @property + def e_dl_dg5(self): + """Gets the e_dl_dg5 of this BinaryData. # noqa: E501 + + + :return: The e_dl_dg5 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_dl_dg5 + + @e_dl_dg5.setter + def e_dl_dg5(self, e_dl_dg5): + """Sets the e_dl_dg5 of this BinaryData. + + + :param e_dl_dg5: The e_dl_dg5 of this BinaryData. # noqa: E501 + :type e_dl_dg5: dict(str, object) + """ + + self._e_dl_dg5 = e_dl_dg5 + + @property + def e_dl_dg6(self): + """Gets the e_dl_dg6 of this BinaryData. # noqa: E501 + + + :return: The e_dl_dg6 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_dl_dg6 + + @e_dl_dg6.setter + def e_dl_dg6(self, e_dl_dg6): + """Sets the e_dl_dg6 of this BinaryData. + + + :param e_dl_dg6: The e_dl_dg6 of this BinaryData. # noqa: E501 + :type e_dl_dg6: dict(str, object) + """ + + self._e_dl_dg6 = e_dl_dg6 + + @property + def e_dl_dg7(self): + """Gets the e_dl_dg7 of this BinaryData. # noqa: E501 + + + :return: The e_dl_dg7 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_dl_dg7 + + @e_dl_dg7.setter + def e_dl_dg7(self, e_dl_dg7): + """Sets the e_dl_dg7 of this BinaryData. + + + :param e_dl_dg7: The e_dl_dg7 of this BinaryData. # noqa: E501 + :type e_dl_dg7: dict(str, object) + """ + + self._e_dl_dg7 = e_dl_dg7 + + @property + def e_dl_dg8(self): + """Gets the e_dl_dg8 of this BinaryData. # noqa: E501 + + + :return: The e_dl_dg8 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_dl_dg8 + + @e_dl_dg8.setter + def e_dl_dg8(self, e_dl_dg8): + """Sets the e_dl_dg8 of this BinaryData. + + + :param e_dl_dg8: The e_dl_dg8 of this BinaryData. # noqa: E501 + :type e_dl_dg8: dict(str, object) + """ + + self._e_dl_dg8 = e_dl_dg8 + + @property + def e_dl_dg9(self): + """Gets the e_dl_dg9 of this BinaryData. # noqa: E501 + + + :return: The e_dl_dg9 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_dl_dg9 + + @e_dl_dg9.setter + def e_dl_dg9(self, e_dl_dg9): + """Sets the e_dl_dg9 of this BinaryData. + + + :param e_dl_dg9: The e_dl_dg9 of this BinaryData. # noqa: E501 + :type e_dl_dg9: dict(str, object) + """ + + self._e_dl_dg9 = e_dl_dg9 + + @property + def e_dl_dg10(self): + """Gets the e_dl_dg10 of this BinaryData. # noqa: E501 + + + :return: The e_dl_dg10 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_dl_dg10 + + @e_dl_dg10.setter + def e_dl_dg10(self, e_dl_dg10): + """Sets the e_dl_dg10 of this BinaryData. + + + :param e_dl_dg10: The e_dl_dg10 of this BinaryData. # noqa: E501 + :type e_dl_dg10: dict(str, object) + """ + + self._e_dl_dg10 = e_dl_dg10 + + @property + def e_dl_dg11(self): + """Gets the e_dl_dg11 of this BinaryData. # noqa: E501 + + + :return: The e_dl_dg11 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_dl_dg11 + + @e_dl_dg11.setter + def e_dl_dg11(self, e_dl_dg11): + """Sets the e_dl_dg11 of this BinaryData. + + + :param e_dl_dg11: The e_dl_dg11 of this BinaryData. # noqa: E501 + :type e_dl_dg11: dict(str, object) + """ + + self._e_dl_dg11 = e_dl_dg11 + + @property + def e_dl_dg12(self): + """Gets the e_dl_dg12 of this BinaryData. # noqa: E501 + + + :return: The e_dl_dg12 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_dl_dg12 + + @e_dl_dg12.setter + def e_dl_dg12(self, e_dl_dg12): + """Sets the e_dl_dg12 of this BinaryData. + + + :param e_dl_dg12: The e_dl_dg12 of this BinaryData. # noqa: E501 + :type e_dl_dg12: dict(str, object) + """ + + self._e_dl_dg12 = e_dl_dg12 + + @property + def e_dl_dg13(self): + """Gets the e_dl_dg13 of this BinaryData. # noqa: E501 + + + :return: The e_dl_dg13 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_dl_dg13 + + @e_dl_dg13.setter + def e_dl_dg13(self, e_dl_dg13): + """Sets the e_dl_dg13 of this BinaryData. + + + :param e_dl_dg13: The e_dl_dg13 of this BinaryData. # noqa: E501 + :type e_dl_dg13: dict(str, object) + """ + + self._e_dl_dg13 = e_dl_dg13 + + @property + def e_dl_dg14(self): + """Gets the e_dl_dg14 of this BinaryData. # noqa: E501 + + + :return: The e_dl_dg14 of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._e_dl_dg14 + + @e_dl_dg14.setter + def e_dl_dg14(self, e_dl_dg14): + """Sets the e_dl_dg14 of this BinaryData. + + + :param e_dl_dg14: The e_dl_dg14 of this BinaryData. # noqa: E501 + :type e_dl_dg14: dict(str, object) + """ + + self._e_dl_dg14 = e_dl_dg14 + + @property + def visible_digital_seal(self): + """Gets the visible_digital_seal of this BinaryData. # noqa: E501 + + + :return: The visible_digital_seal of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._visible_digital_seal + + @visible_digital_seal.setter + def visible_digital_seal(self, visible_digital_seal): + """Sets the visible_digital_seal of this BinaryData. + + + :param visible_digital_seal: The visible_digital_seal of this BinaryData. # noqa: E501 + :type visible_digital_seal: dict(str, object) + """ + + self._visible_digital_seal = visible_digital_seal + + @property + def visible_digital_seal_nc(self): + """Gets the visible_digital_seal_nc of this BinaryData. # noqa: E501 + + + :return: The visible_digital_seal_nc of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._visible_digital_seal_nc + + @visible_digital_seal_nc.setter + def visible_digital_seal_nc(self, visible_digital_seal_nc): + """Sets the visible_digital_seal_nc of this BinaryData. + + + :param visible_digital_seal_nc: The visible_digital_seal_nc of this BinaryData. # noqa: E501 + :type visible_digital_seal_nc: dict(str, object) + """ + + self._visible_digital_seal_nc = visible_digital_seal_nc + + @property + def digital_signature(self): + """Gets the digital_signature of this BinaryData. # noqa: E501 + + + :return: The digital_signature of this BinaryData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._digital_signature + + @digital_signature.setter + def digital_signature(self, digital_signature): + """Sets the digital_signature of this BinaryData. + + + :param digital_signature: The digital_signature of this BinaryData. # noqa: E501 + :type digital_signature: dict(str, object) + """ + + self._digital_signature = digital_signature + + @property + def rfid_session_data(self): + """Gets the rfid_session_data of this BinaryData. # noqa: E501 + + + :return: The rfid_session_data of this BinaryData. # noqa: E501 + :rtype: RfidSessionData + """ + return self._rfid_session_data + + @rfid_session_data.setter + def rfid_session_data(self, rfid_session_data): + """Sets the rfid_session_data of this BinaryData. + + + :param rfid_session_data: The rfid_session_data of this BinaryData. # noqa: E501 + :type rfid_session_data: RfidSessionData + """ + + self._rfid_session_data = rfid_session_data + + @property + def rfid_session_data_status(self): + """Gets the rfid_session_data_status of this BinaryData. # noqa: E501 + + + :return: The rfid_session_data_status of this BinaryData. # noqa: E501 + :rtype: DetailsRFID + """ + return self._rfid_session_data_status + + @rfid_session_data_status.setter + def rfid_session_data_status(self, rfid_session_data_status): + """Sets the rfid_session_data_status of this BinaryData. + + + :param rfid_session_data_status: The rfid_session_data_status of this BinaryData. # noqa: E501 + :type rfid_session_data_status: DetailsRFID + """ + + self._rfid_session_data_status = rfid_session_data_status + + @property + def rfid_e_passp_directory(self): + """Gets the rfid_e_passp_directory of this BinaryData. # noqa: E501 + + Indexes of groups that aren't read # noqa: E501 + + :return: The rfid_e_passp_directory of this BinaryData. # noqa: E501 + :rtype: list[RfidDataFileType] + """ + return self._rfid_e_passp_directory + + @rfid_e_passp_directory.setter + def rfid_e_passp_directory(self, rfid_e_passp_directory): + """Sets the rfid_e_passp_directory of this BinaryData. + + Indexes of groups that aren't read # noqa: E501 + + :param rfid_e_passp_directory: The rfid_e_passp_directory of this BinaryData. # noqa: E501 + :type rfid_e_passp_directory: list[RfidDataFileType] + """ + + self._rfid_e_passp_directory = rfid_e_passp_directory + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BinaryData): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, BinaryData): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/chosen_document_type.py b/regula/documentreader/webclient/gen/models/chosen_document_type.py index 846f517..bd75826 100644 --- a/regula/documentreader/webclient/gen/models/chosen_document_type.py +++ b/regula/documentreader/webclient/gen/models/chosen_document_type.py @@ -35,27 +35,31 @@ class ChosenDocumentType(object): 'document_name': 'str', 'id': 'int', 'p': 'float', + 'rotated180': 'bool', 'rfid_presence': 'RfidLocation', 'fdsid_list': 'FDSIDList', 'necessary_lights': 'int', 'check_authenticity': 'int', 'uv_exp': 'int', - 'authenticity_necessary_lights': 'int' + 'authenticity_necessary_lights': 'int', + 'ovi_exp': 'float' } attribute_map = { 'document_name': 'DocumentName', 'id': 'ID', 'p': 'P', + 'rotated180': 'Rotated180', 'rfid_presence': 'RFID_Presence', 'fdsid_list': 'FDSIDList', 'necessary_lights': 'NecessaryLights', 'check_authenticity': 'CheckAuthenticity', 'uv_exp': 'UVExp', - 'authenticity_necessary_lights': 'AuthenticityNecessaryLights' + 'authenticity_necessary_lights': 'AuthenticityNecessaryLights', + 'ovi_exp': 'OVIExp' } - def __init__(self, document_name=None, id=None, p=None, rfid_presence=None, fdsid_list=None, necessary_lights=None, check_authenticity=None, uv_exp=None, authenticity_necessary_lights=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, document_name=None, id=None, p=None, rotated180=None, rfid_presence=None, fdsid_list=None, necessary_lights=None, check_authenticity=None, uv_exp=None, authenticity_necessary_lights=None, ovi_exp=None, local_vars_configuration=None): # noqa: E501 """ChosenDocumentType - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -64,32 +68,27 @@ def __init__(self, document_name=None, id=None, p=None, rfid_presence=None, fdsi self._document_name = None self._id = None self._p = None + self._rotated180 = None self._rfid_presence = None self._fdsid_list = None self._necessary_lights = None self._check_authenticity = None self._uv_exp = None self._authenticity_necessary_lights = None + self._ovi_exp = None self.discriminator = None - if document_name is not None: - self.document_name = document_name - if id is not None: - self.id = id - if p is not None: - self.p = p - if rfid_presence is not None: - self.rfid_presence = rfid_presence - if fdsid_list is not None: - self.fdsid_list = fdsid_list - if necessary_lights is not None: - self.necessary_lights = necessary_lights - if check_authenticity is not None: - self.check_authenticity = check_authenticity - if uv_exp is not None: - self.uv_exp = uv_exp - if authenticity_necessary_lights is not None: - self.authenticity_necessary_lights = authenticity_necessary_lights + self.document_name = document_name + self.id = id + self.p = p + self.rotated180 = rotated180 + self.rfid_presence = rfid_presence + self.fdsid_list = fdsid_list + self.necessary_lights = necessary_lights + self.check_authenticity = check_authenticity + self.uv_exp = uv_exp + self.authenticity_necessary_lights = authenticity_necessary_lights + self.ovi_exp = ovi_exp @property def document_name(self): @@ -111,6 +110,8 @@ def document_name(self, document_name): :param document_name: The document_name of this ChosenDocumentType. # noqa: E501 :type document_name: str """ + if self.local_vars_configuration.client_side_validation and document_name is None: # noqa: E501 + raise ValueError("Invalid value for `document_name`, must not be `None`") # noqa: E501 self._document_name = document_name @@ -134,6 +135,8 @@ def id(self, id): :param id: The id of this ChosenDocumentType. # noqa: E501 :type id: int """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 self._id = id @@ -157,6 +160,8 @@ def p(self, p): :param p: The p of this ChosenDocumentType. # noqa: E501 :type p: float """ + if self.local_vars_configuration.client_side_validation and p is None: # noqa: E501 + raise ValueError("Invalid value for `p`, must not be `None`") # noqa: E501 if (self.local_vars_configuration.client_side_validation and p is not None and p > 1): # noqa: E501 raise ValueError("Invalid value for `p`, must be a value less than or equal to `1`") # noqa: E501 @@ -166,6 +171,31 @@ def p(self, p): self._p = p + @property + def rotated180(self): + """Gets the rotated180 of this ChosenDocumentType. # noqa: E501 + + true if the document of the given type is rotated by 180 degrees # noqa: E501 + + :return: The rotated180 of this ChosenDocumentType. # noqa: E501 + :rtype: bool + """ + return self._rotated180 + + @rotated180.setter + def rotated180(self, rotated180): + """Sets the rotated180 of this ChosenDocumentType. + + true if the document of the given type is rotated by 180 degrees # noqa: E501 + + :param rotated180: The rotated180 of this ChosenDocumentType. # noqa: E501 + :type rotated180: bool + """ + if self.local_vars_configuration.client_side_validation and rotated180 is None: # noqa: E501 + raise ValueError("Invalid value for `rotated180`, must not be `None`") # noqa: E501 + + self._rotated180 = rotated180 + @property def rfid_presence(self): """Gets the rfid_presence of this ChosenDocumentType. # noqa: E501 @@ -184,6 +214,8 @@ def rfid_presence(self, rfid_presence): :param rfid_presence: The rfid_presence of this ChosenDocumentType. # noqa: E501 :type rfid_presence: RfidLocation """ + if self.local_vars_configuration.client_side_validation and rfid_presence is None: # noqa: E501 + raise ValueError("Invalid value for `rfid_presence`, must not be `None`") # noqa: E501 self._rfid_presence = rfid_presence @@ -205,6 +237,8 @@ def fdsid_list(self, fdsid_list): :param fdsid_list: The fdsid_list of this ChosenDocumentType. # noqa: E501 :type fdsid_list: FDSIDList """ + if self.local_vars_configuration.client_side_validation and fdsid_list is None: # noqa: E501 + raise ValueError("Invalid value for `fdsid_list`, must not be `None`") # noqa: E501 self._fdsid_list = fdsid_list @@ -228,6 +262,8 @@ def necessary_lights(self, necessary_lights): :param necessary_lights: The necessary_lights of this ChosenDocumentType. # noqa: E501 :type necessary_lights: int """ + if self.local_vars_configuration.client_side_validation and necessary_lights is None: # noqa: E501 + raise ValueError("Invalid value for `necessary_lights`, must not be `None`") # noqa: E501 self._necessary_lights = necessary_lights @@ -251,6 +287,8 @@ def check_authenticity(self, check_authenticity): :param check_authenticity: The check_authenticity of this ChosenDocumentType. # noqa: E501 :type check_authenticity: int """ + if self.local_vars_configuration.client_side_validation and check_authenticity is None: # noqa: E501 + raise ValueError("Invalid value for `check_authenticity`, must not be `None`") # noqa: E501 self._check_authenticity = check_authenticity @@ -274,6 +312,8 @@ def uv_exp(self, uv_exp): :param uv_exp: The uv_exp of this ChosenDocumentType. # noqa: E501 :type uv_exp: int """ + if self.local_vars_configuration.client_side_validation and uv_exp is None: # noqa: E501 + raise ValueError("Invalid value for `uv_exp`, must not be `None`") # noqa: E501 self._uv_exp = uv_exp @@ -297,9 +337,36 @@ def authenticity_necessary_lights(self, authenticity_necessary_lights): :param authenticity_necessary_lights: The authenticity_necessary_lights of this ChosenDocumentType. # noqa: E501 :type authenticity_necessary_lights: int """ + if self.local_vars_configuration.client_side_validation and authenticity_necessary_lights is None: # noqa: E501 + raise ValueError("Invalid value for `authenticity_necessary_lights`, must not be `None`") # noqa: E501 self._authenticity_necessary_lights = authenticity_necessary_lights + @property + def ovi_exp(self): + """Gets the ovi_exp of this ChosenDocumentType. # noqa: E501 + + Camera exposure value necessary when obtaining document images of the given type for AXIAL lighting scheme # noqa: E501 + + :return: The ovi_exp of this ChosenDocumentType. # noqa: E501 + :rtype: float + """ + return self._ovi_exp + + @ovi_exp.setter + def ovi_exp(self, ovi_exp): + """Sets the ovi_exp of this ChosenDocumentType. + + Camera exposure value necessary when obtaining document images of the given type for AXIAL lighting scheme # noqa: E501 + + :param ovi_exp: The ovi_exp of this ChosenDocumentType. # noqa: E501 + :type ovi_exp: float + """ + if self.local_vars_configuration.client_side_validation and ovi_exp is None: # noqa: E501 + raise ValueError("Invalid value for `ovi_exp`, must not be `None`") # noqa: E501 + + self._ovi_exp = ovi_exp + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/chosen_document_type_result.py b/regula/documentreader/webclient/gen/models/chosen_document_type_result.py index 2804967..12b3b26 100755 --- a/regula/documentreader/webclient/gen/models/chosen_document_type_result.py +++ b/regula/documentreader/webclient/gen/models/chosen_document_type_result.py @@ -66,8 +66,7 @@ def __init__(self, one_candidate=None, xml_buffer=None, buf_length=None, light=N self._result_type = None self.discriminator = None - if one_candidate is not None: - self.one_candidate = one_candidate + self.one_candidate = one_candidate if xml_buffer is not None: self.xml_buffer = xml_buffer if buf_length is not None: @@ -98,6 +97,8 @@ def one_candidate(self, one_candidate): :param one_candidate: The one_candidate of this ChosenDocumentTypeResult. # noqa: E501 :type one_candidate: OneCandidate """ + if self.local_vars_configuration.client_side_validation and one_candidate is None: # noqa: E501 + raise ValueError("Invalid value for `one_candidate`, must not be `None`") # noqa: E501 self._one_candidate = one_candidate diff --git a/regula/documentreader/webclient/gen/models/chosen_document_type_result_all_of.py b/regula/documentreader/webclient/gen/models/chosen_document_type_result_all_of.py index 9bd1902..d058f78 100755 --- a/regula/documentreader/webclient/gen/models/chosen_document_type_result_all_of.py +++ b/regula/documentreader/webclient/gen/models/chosen_document_type_result_all_of.py @@ -51,8 +51,7 @@ def __init__(self, one_candidate=None, xml_buffer=None, local_vars_configuration self._xml_buffer = None self.discriminator = None - if one_candidate is not None: - self.one_candidate = one_candidate + self.one_candidate = one_candidate if xml_buffer is not None: self.xml_buffer = xml_buffer @@ -74,6 +73,8 @@ def one_candidate(self, one_candidate): :param one_candidate: The one_candidate of this ChosenDocumentTypeResultAllOf. # noqa: E501 :type one_candidate: OneCandidate """ + if self.local_vars_configuration.client_side_validation and one_candidate is None: # noqa: E501 + raise ValueError("Invalid value for `one_candidate`, must not be `None`") # noqa: E501 self._one_candidate = one_candidate diff --git a/regula/documentreader/webclient/gen/models/data_module.py b/regula/documentreader/webclient/gen/models/data_module.py index 4a7e64b..e93a0b3 100644 --- a/regula/documentreader/webclient/gen/models/data_module.py +++ b/regula/documentreader/webclient/gen/models/data_module.py @@ -36,7 +36,7 @@ class DataModule(object): 'm_length': 'int', 'm_reserved1': 'int', 'm_reserver2': 'int', - 'm_type': 'int' + 'm_type': 'BarCodeModuleType' } attribute_map = { @@ -60,16 +60,13 @@ def __init__(self, m_data=None, m_length=None, m_reserved1=None, m_reserver2=Non self._m_type = None self.discriminator = None - if m_data is not None: - self.m_data = m_data - if m_length is not None: - self.m_length = m_length + self.m_data = m_data + self.m_length = m_length if m_reserved1 is not None: self.m_reserved1 = m_reserved1 if m_reserver2 is not None: self.m_reserver2 = m_reserver2 - if m_type is not None: - self.m_type = m_type + self.m_type = m_type @property def m_data(self): @@ -89,6 +86,8 @@ def m_data(self, m_data): :param m_data: The m_data of this DataModule. # noqa: E501 :type m_data: str """ + if self.local_vars_configuration.client_side_validation and m_data is None: # noqa: E501 + raise ValueError("Invalid value for `m_data`, must not be `None`") # noqa: E501 self._m_data = m_data @@ -110,6 +109,8 @@ def m_length(self, m_length): :param m_length: The m_length of this DataModule. # noqa: E501 :type m_length: int """ + if self.local_vars_configuration.client_side_validation and m_length is None: # noqa: E501 + raise ValueError("Invalid value for `m_length`, must not be `None`") # noqa: E501 self._m_length = m_length @@ -161,7 +162,7 @@ def m_type(self): :return: The m_type of this DataModule. # noqa: E501 - :rtype: int + :rtype: BarCodeModuleType """ return self._m_type @@ -171,8 +172,10 @@ def m_type(self, m_type): :param m_type: The m_type of this DataModule. # noqa: E501 - :type m_type: int + :type m_type: BarCodeModuleType """ + if self.local_vars_configuration.client_side_validation and m_type is None: # noqa: E501 + raise ValueError("Invalid value for `m_type`, must not be `None`") # noqa: E501 self._m_type = m_type diff --git a/regula/documentreader/webclient/gen/models/device_info.py b/regula/documentreader/webclient/gen/models/device_info.py index 75594e5..e3496ac 100644 --- a/regula/documentreader/webclient/gen/models/device_info.py +++ b/regula/documentreader/webclient/gen/models/device_info.py @@ -32,112 +32,117 @@ class DeviceInfo(object): and the value is json key in definition. """ openapi_types = { - 'app_name': 'str', - 'version': 'str', + 'app': 'str', 'license_id': 'str', + 'license_type': 'str', 'license_serial': 'str', - 'valid_until': 'datetime', - 'server_time': 'datetime' + 'license_valid_until': 'datetime', + 'scenarios': 'list[str]', + 'version': 'str' } attribute_map = { - 'app_name': 'app-name', - 'version': 'version', - 'license_id': 'license-id', - 'license_serial': 'license-serial', - 'valid_until': 'valid-until', - 'server_time': 'server-time' + 'app': 'app', + 'license_id': 'licenseId', + 'license_type': 'licenseType', + 'license_serial': 'licenseSerial', + 'license_valid_until': 'licenseValidUntil', + 'scenarios': 'scenarios', + 'version': 'version' } - def __init__(self, app_name=None, version=None, license_id=None, license_serial=None, valid_until=None, server_time=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, app=None, license_id=None, license_type=None, license_serial=None, license_valid_until=None, scenarios=None, version=None, local_vars_configuration=None): # noqa: E501 """DeviceInfo - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration - self._app_name = None - self._version = None + self._app = None self._license_id = None + self._license_type = None self._license_serial = None - self._valid_until = None - self._server_time = None + self._license_valid_until = None + self._scenarios = None + self._version = None self.discriminator = None - if app_name is not None: - self.app_name = app_name - if version is not None: - self.version = version + if app is not None: + self.app = app if license_id is not None: self.license_id = license_id + if license_type is not None: + self.license_type = license_type if license_serial is not None: self.license_serial = license_serial - if valid_until is not None: - self.valid_until = valid_until - if server_time is not None: - self.server_time = server_time + if license_valid_until is not None: + self.license_valid_until = license_valid_until + if scenarios is not None: + self.scenarios = scenarios + if version is not None: + self.version = version @property - def app_name(self): - """Gets the app_name of this DeviceInfo. # noqa: E501 + def app(self): + """Gets the app of this DeviceInfo. # noqa: E501 - :return: The app_name of this DeviceInfo. # noqa: E501 + :return: The app of this DeviceInfo. # noqa: E501 :rtype: str """ - return self._app_name + return self._app - @app_name.setter - def app_name(self, app_name): - """Sets the app_name of this DeviceInfo. + @app.setter + def app(self, app): + """Sets the app of this DeviceInfo. - :param app_name: The app_name of this DeviceInfo. # noqa: E501 - :type app_name: str + :param app: The app of this DeviceInfo. # noqa: E501 + :type app: str """ - self._app_name = app_name + self._app = app @property - def version(self): - """Gets the version of this DeviceInfo. # noqa: E501 + def license_id(self): + """Gets the license_id of this DeviceInfo. # noqa: E501 - :return: The version of this DeviceInfo. # noqa: E501 + :return: The license_id of this DeviceInfo. # noqa: E501 :rtype: str """ - return self._version + return self._license_id - @version.setter - def version(self, version): - """Sets the version of this DeviceInfo. + @license_id.setter + def license_id(self, license_id): + """Sets the license_id of this DeviceInfo. - :param version: The version of this DeviceInfo. # noqa: E501 - :type version: str + :param license_id: The license_id of this DeviceInfo. # noqa: E501 + :type license_id: str """ - self._version = version + self._license_id = license_id @property - def license_id(self): - """Gets the license_id of this DeviceInfo. # noqa: E501 + def license_type(self): + """Gets the license_type of this DeviceInfo. # noqa: E501 - :return: The license_id of this DeviceInfo. # noqa: E501 + :return: The license_type of this DeviceInfo. # noqa: E501 :rtype: str """ - return self._license_id + return self._license_type - @license_id.setter - def license_id(self, license_id): - """Sets the license_id of this DeviceInfo. + @license_type.setter + def license_type(self, license_type): + """Sets the license_type of this DeviceInfo. - :param license_id: The license_id of this DeviceInfo. # noqa: E501 - :type license_id: str + :param license_type: The license_type of this DeviceInfo. # noqa: E501 + :type license_type: str """ - self._license_id = license_id + self._license_type = license_type @property def license_serial(self): @@ -161,46 +166,67 @@ def license_serial(self, license_serial): self._license_serial = license_serial @property - def valid_until(self): - """Gets the valid_until of this DeviceInfo. # noqa: E501 + def license_valid_until(self): + """Gets the license_valid_until of this DeviceInfo. # noqa: E501 - :return: The valid_until of this DeviceInfo. # noqa: E501 + :return: The license_valid_until of this DeviceInfo. # noqa: E501 :rtype: datetime """ - return self._valid_until + return self._license_valid_until - @valid_until.setter - def valid_until(self, valid_until): - """Sets the valid_until of this DeviceInfo. + @license_valid_until.setter + def license_valid_until(self, license_valid_until): + """Sets the license_valid_until of this DeviceInfo. - :param valid_until: The valid_until of this DeviceInfo. # noqa: E501 - :type valid_until: datetime + :param license_valid_until: The license_valid_until of this DeviceInfo. # noqa: E501 + :type license_valid_until: datetime """ - self._valid_until = valid_until + self._license_valid_until = license_valid_until @property - def server_time(self): - """Gets the server_time of this DeviceInfo. # noqa: E501 + def scenarios(self): + """Gets the scenarios of this DeviceInfo. # noqa: E501 - :return: The server_time of this DeviceInfo. # noqa: E501 - :rtype: datetime + :return: The scenarios of this DeviceInfo. # noqa: E501 + :rtype: list[str] """ - return self._server_time + return self._scenarios - @server_time.setter - def server_time(self, server_time): - """Sets the server_time of this DeviceInfo. + @scenarios.setter + def scenarios(self, scenarios): + """Sets the scenarios of this DeviceInfo. - :param server_time: The server_time of this DeviceInfo. # noqa: E501 - :type server_time: datetime + :param scenarios: The scenarios of this DeviceInfo. # noqa: E501 + :type scenarios: list[str] """ - self._server_time = server_time + self._scenarios = scenarios + + @property + def version(self): + """Gets the version of this DeviceInfo. # noqa: E501 + + + :return: The version of this DeviceInfo. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this DeviceInfo. + + + :param version: The version of this DeviceInfo. # noqa: E501 + :type version: str + """ + + self._version = version def to_dict(self): """Returns the model properties as a dict""" diff --git a/regula/documentreader/webclient/gen/models/device_info_deprecated.py b/regula/documentreader/webclient/gen/models/device_info_deprecated.py new file mode 100644 index 0000000..136a3c4 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/device_info_deprecated.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" + +""" +class DeviceInfoDeprecated(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'app_name': 'str', + 'version': 'str', + 'license_id': 'str', + 'license_serial': 'str', + 'valid_until': 'datetime', + 'server_time': 'datetime' + } + + attribute_map = { + 'app_name': 'app-name', + 'version': 'version', + 'license_id': 'license-id', + 'license_serial': 'license-serial', + 'valid_until': 'valid-until', + 'server_time': 'server-time' + } + + def __init__(self, app_name=None, version=None, license_id=None, license_serial=None, valid_until=None, server_time=None, local_vars_configuration=None): # noqa: E501 + """DeviceInfoDeprecated - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._app_name = None + self._version = None + self._license_id = None + self._license_serial = None + self._valid_until = None + self._server_time = None + self.discriminator = None + + if app_name is not None: + self.app_name = app_name + if version is not None: + self.version = version + if license_id is not None: + self.license_id = license_id + if license_serial is not None: + self.license_serial = license_serial + if valid_until is not None: + self.valid_until = valid_until + if server_time is not None: + self.server_time = server_time + + @property + def app_name(self): + """Gets the app_name of this DeviceInfoDeprecated. # noqa: E501 + + + :return: The app_name of this DeviceInfoDeprecated. # noqa: E501 + :rtype: str + """ + return self._app_name + + @app_name.setter + def app_name(self, app_name): + """Sets the app_name of this DeviceInfoDeprecated. + + + :param app_name: The app_name of this DeviceInfoDeprecated. # noqa: E501 + :type app_name: str + """ + + self._app_name = app_name + + @property + def version(self): + """Gets the version of this DeviceInfoDeprecated. # noqa: E501 + + + :return: The version of this DeviceInfoDeprecated. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this DeviceInfoDeprecated. + + + :param version: The version of this DeviceInfoDeprecated. # noqa: E501 + :type version: str + """ + + self._version = version + + @property + def license_id(self): + """Gets the license_id of this DeviceInfoDeprecated. # noqa: E501 + + + :return: The license_id of this DeviceInfoDeprecated. # noqa: E501 + :rtype: str + """ + return self._license_id + + @license_id.setter + def license_id(self, license_id): + """Sets the license_id of this DeviceInfoDeprecated. + + + :param license_id: The license_id of this DeviceInfoDeprecated. # noqa: E501 + :type license_id: str + """ + + self._license_id = license_id + + @property + def license_serial(self): + """Gets the license_serial of this DeviceInfoDeprecated. # noqa: E501 + + + :return: The license_serial of this DeviceInfoDeprecated. # noqa: E501 + :rtype: str + """ + return self._license_serial + + @license_serial.setter + def license_serial(self, license_serial): + """Sets the license_serial of this DeviceInfoDeprecated. + + + :param license_serial: The license_serial of this DeviceInfoDeprecated. # noqa: E501 + :type license_serial: str + """ + + self._license_serial = license_serial + + @property + def valid_until(self): + """Gets the valid_until of this DeviceInfoDeprecated. # noqa: E501 + + + :return: The valid_until of this DeviceInfoDeprecated. # noqa: E501 + :rtype: datetime + """ + return self._valid_until + + @valid_until.setter + def valid_until(self, valid_until): + """Sets the valid_until of this DeviceInfoDeprecated. + + + :param valid_until: The valid_until of this DeviceInfoDeprecated. # noqa: E501 + :type valid_until: datetime + """ + + self._valid_until = valid_until + + @property + def server_time(self): + """Gets the server_time of this DeviceInfoDeprecated. # noqa: E501 + + + :return: The server_time of this DeviceInfoDeprecated. # noqa: E501 + :rtype: datetime + """ + return self._server_time + + @server_time.setter + def server_time(self, server_time): + """Sets the server_time of this DeviceInfoDeprecated. + + + :param server_time: The server_time of this DeviceInfoDeprecated. # noqa: E501 + :type server_time: datetime + """ + + self._server_time = server_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeviceInfoDeprecated): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DeviceInfoDeprecated): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/doc_bar_code_info.py b/regula/documentreader/webclient/gen/models/doc_bar_code_info.py index 50e532c..3c9d225 100644 --- a/regula/documentreader/webclient/gen/models/doc_bar_code_info.py +++ b/regula/documentreader/webclient/gen/models/doc_bar_code_info.py @@ -63,8 +63,7 @@ def __init__(self, doc_bar_code_info=None, buf_length=None, light=None, list_idx self._result_type = None self.discriminator = None - if doc_bar_code_info is not None: - self.doc_bar_code_info = doc_bar_code_info + self.doc_bar_code_info = doc_bar_code_info if buf_length is not None: self.buf_length = buf_length if light is not None: @@ -93,6 +92,8 @@ def doc_bar_code_info(self, doc_bar_code_info): :param doc_bar_code_info: The doc_bar_code_info of this DocBarCodeInfo. # noqa: E501 :type doc_bar_code_info: DocBarCodeInfoFieldsList """ + if self.local_vars_configuration.client_side_validation and doc_bar_code_info is None: # noqa: E501 + raise ValueError("Invalid value for `doc_bar_code_info`, must not be `None`") # noqa: E501 self._doc_bar_code_info = doc_bar_code_info diff --git a/regula/documentreader/webclient/gen/models/doc_bar_code_info_all_of.py b/regula/documentreader/webclient/gen/models/doc_bar_code_info_all_of.py index eb38328..354b8d0 100644 --- a/regula/documentreader/webclient/gen/models/doc_bar_code_info_all_of.py +++ b/regula/documentreader/webclient/gen/models/doc_bar_code_info_all_of.py @@ -48,8 +48,7 @@ def __init__(self, doc_bar_code_info=None, local_vars_configuration=None): # no self._doc_bar_code_info = None self.discriminator = None - if doc_bar_code_info is not None: - self.doc_bar_code_info = doc_bar_code_info + self.doc_bar_code_info = doc_bar_code_info @property def doc_bar_code_info(self): @@ -69,6 +68,8 @@ def doc_bar_code_info(self, doc_bar_code_info): :param doc_bar_code_info: The doc_bar_code_info of this DocBarCodeInfoAllOf. # noqa: E501 :type doc_bar_code_info: DocBarCodeInfoFieldsList """ + if self.local_vars_configuration.client_side_validation and doc_bar_code_info is None: # noqa: E501 + raise ValueError("Invalid value for `doc_bar_code_info`, must not be `None`") # noqa: E501 self._doc_bar_code_info = doc_bar_code_info diff --git a/regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py b/regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py index fef5559..424786d 100644 --- a/regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py +++ b/regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py @@ -51,10 +51,8 @@ def __init__(self, n_fields=None, p_array_fields=None, local_vars_configuration= self._p_array_fields = None self.discriminator = None - if n_fields is not None: - self.n_fields = n_fields - if p_array_fields is not None: - self.p_array_fields = p_array_fields + self.n_fields = n_fields + self.p_array_fields = p_array_fields @property def n_fields(self): @@ -76,6 +74,8 @@ def n_fields(self, n_fields): :param n_fields: The n_fields of this DocBarCodeInfoFieldsList. # noqa: E501 :type n_fields: int """ + if self.local_vars_configuration.client_side_validation and n_fields is None: # noqa: E501 + raise ValueError("Invalid value for `n_fields`, must not be `None`") # noqa: E501 self._n_fields = n_fields @@ -99,6 +99,8 @@ def p_array_fields(self, p_array_fields): :param p_array_fields: The p_array_fields of this DocBarCodeInfoFieldsList. # noqa: E501 :type p_array_fields: list[PArrayField] """ + if self.local_vars_configuration.client_side_validation and p_array_fields is None: # noqa: E501 + raise ValueError("Invalid value for `p_array_fields`, must not be `None`") # noqa: E501 self._p_array_fields = p_array_fields diff --git a/regula/documentreader/webclient/gen/models/doc_visual_extended_field.py b/regula/documentreader/webclient/gen/models/doc_visual_extended_field.py index 2a61372..f1cb891 100755 --- a/regula/documentreader/webclient/gen/models/doc_visual_extended_field.py +++ b/regula/documentreader/webclient/gen/models/doc_visual_extended_field.py @@ -32,56 +32,88 @@ class DocVisualExtendedField(object): and the value is json key in definition. """ openapi_types = { + 'field_type': 'object', 'w_field_type': 'TextFieldType', 'field_name': 'str', - 'w_lcid': 'LCID', + 'strings_count': 'float', 'strings_result': 'list[StringRecognitionResult]', + 'buf_length': 'float', 'buf_text': 'str', - 'field_rect': 'RectangleCoordinates', - 'rfid_origin_dg': 'int', - 'rfid_origin_tag_entry': 'int' + 'field_mask': 'object', + 'validity': 'object', + 'in_comparison': 'object', + 'reserved2': 'object', + 'reserved3': 'object' } attribute_map = { + 'field_type': 'FieldType', 'w_field_type': 'wFieldType', 'field_name': 'FieldName', - 'w_lcid': 'wLCID', + 'strings_count': 'StringsCount', 'strings_result': 'StringsResult', + 'buf_length': 'Buf_Length', 'buf_text': 'Buf_Text', - 'field_rect': 'FieldRect', - 'rfid_origin_dg': 'RFID_OriginDG', - 'rfid_origin_tag_entry': 'RFID_OriginTagEntry' + 'field_mask': 'FieldMask', + 'validity': 'Validity', + 'in_comparison': 'InComparison', + 'reserved2': 'Reserved2', + 'reserved3': 'Reserved3' } - def __init__(self, w_field_type=None, field_name=None, w_lcid=None, strings_result=None, buf_text=None, field_rect=None, rfid_origin_dg=None, rfid_origin_tag_entry=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, field_type=None, w_field_type=None, field_name=None, strings_count=None, strings_result=None, buf_length=None, buf_text=None, field_mask=None, validity=None, in_comparison=None, reserved2=None, reserved3=None, local_vars_configuration=None): # noqa: E501 """DocVisualExtendedField - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._field_type = None self._w_field_type = None self._field_name = None - self._w_lcid = None + self._strings_count = None self._strings_result = None + self._buf_length = None self._buf_text = None - self._field_rect = None - self._rfid_origin_dg = None - self._rfid_origin_tag_entry = None + self._field_mask = None + self._validity = None + self._in_comparison = None + self._reserved2 = None + self._reserved3 = None self.discriminator = None + self.field_type = field_type self.w_field_type = w_field_type self.field_name = field_name - self.w_lcid = w_lcid - if strings_result is not None: - self.strings_result = strings_result - if buf_text is not None: - self.buf_text = buf_text - if field_rect is not None: - self.field_rect = field_rect - if rfid_origin_dg is not None: - self.rfid_origin_dg = rfid_origin_dg - if rfid_origin_tag_entry is not None: - self.rfid_origin_tag_entry = rfid_origin_tag_entry + self.strings_count = strings_count + self.strings_result = strings_result + self.buf_length = buf_length + self.buf_text = buf_text + self.field_mask = field_mask + self.validity = validity + self.in_comparison = in_comparison + self.reserved2 = reserved2 + self.reserved3 = reserved3 + + @property + def field_type(self): + """Gets the field_type of this DocVisualExtendedField. # noqa: E501 + + + :return: The field_type of this DocVisualExtendedField. # noqa: E501 + :rtype: object + """ + return self._field_type + + @field_type.setter + def field_type(self, field_type): + """Sets the field_type of this DocVisualExtendedField. + + + :param field_type: The field_type of this DocVisualExtendedField. # noqa: E501 + :type field_type: object + """ + + self._field_type = field_type @property def w_field_type(self): @@ -110,7 +142,7 @@ def w_field_type(self, w_field_type): def field_name(self): """Gets the field_name of this DocVisualExtendedField. # noqa: E501 - Field name. Only use to search values for fields with fieldType=50(other). In general, use wFieldType for lookup. # noqa: E501 + Field symbolic name (null-terminated string) # noqa: E501 :return: The field_name of this DocVisualExtendedField. # noqa: E501 :rtype: str @@ -121,7 +153,7 @@ def field_name(self): def field_name(self, field_name): """Sets the field_name of this DocVisualExtendedField. - Field name. Only use to search values for fields with fieldType=50(other). In general, use wFieldType for lookup. # noqa: E501 + Field symbolic name (null-terminated string) # noqa: E501 :param field_name: The field_name of this DocVisualExtendedField. # noqa: E501 :type field_name: str @@ -132,27 +164,29 @@ def field_name(self, field_name): self._field_name = field_name @property - def w_lcid(self): - """Gets the w_lcid of this DocVisualExtendedField. # noqa: E501 + def strings_count(self): + """Gets the strings_count of this DocVisualExtendedField. # noqa: E501 + Number of StringsResult array elements # noqa: E501 - :return: The w_lcid of this DocVisualExtendedField. # noqa: E501 - :rtype: LCID + :return: The strings_count of this DocVisualExtendedField. # noqa: E501 + :rtype: float """ - return self._w_lcid + return self._strings_count - @w_lcid.setter - def w_lcid(self, w_lcid): - """Sets the w_lcid of this DocVisualExtendedField. + @strings_count.setter + def strings_count(self, strings_count): + """Sets the strings_count of this DocVisualExtendedField. + Number of StringsResult array elements # noqa: E501 - :param w_lcid: The w_lcid of this DocVisualExtendedField. # noqa: E501 - :type w_lcid: LCID + :param strings_count: The strings_count of this DocVisualExtendedField. # noqa: E501 + :type strings_count: float """ - if self.local_vars_configuration.client_side_validation and w_lcid is None: # noqa: E501 - raise ValueError("Invalid value for `w_lcid`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and strings_count is None: # noqa: E501 + raise ValueError("Invalid value for `strings_count`, must not be `None`") # noqa: E501 - self._w_lcid = w_lcid + self._strings_count = strings_count @property def strings_result(self): @@ -174,9 +208,36 @@ def strings_result(self, strings_result): :param strings_result: The strings_result of this DocVisualExtendedField. # noqa: E501 :type strings_result: list[StringRecognitionResult] """ + if self.local_vars_configuration.client_side_validation and strings_result is None: # noqa: E501 + raise ValueError("Invalid value for `strings_result`, must not be `None`") # noqa: E501 self._strings_result = strings_result + @property + def buf_length(self): + """Gets the buf_length of this DocVisualExtendedField. # noqa: E501 + + Buf_Text text string length # noqa: E501 + + :return: The buf_length of this DocVisualExtendedField. # noqa: E501 + :rtype: float + """ + return self._buf_length + + @buf_length.setter + def buf_length(self, buf_length): + """Sets the buf_length of this DocVisualExtendedField. + + Buf_Text text string length # noqa: E501 + + :param buf_length: The buf_length of this DocVisualExtendedField. # noqa: E501 + :type buf_length: float + """ + if self.local_vars_configuration.client_side_validation and buf_length is None: # noqa: E501 + raise ValueError("Invalid value for `buf_length`, must not be `None`") # noqa: E501 + + self._buf_length = buf_length + @property def buf_text(self): """Gets the buf_text of this DocVisualExtendedField. # noqa: E501 @@ -197,75 +258,115 @@ def buf_text(self, buf_text): :param buf_text: The buf_text of this DocVisualExtendedField. # noqa: E501 :type buf_text: str """ + if self.local_vars_configuration.client_side_validation and buf_text is None: # noqa: E501 + raise ValueError("Invalid value for `buf_text`, must not be `None`") # noqa: E501 self._buf_text = buf_text @property - def field_rect(self): - """Gets the field_rect of this DocVisualExtendedField. # noqa: E501 + def field_mask(self): + """Gets the field_mask of this DocVisualExtendedField. # noqa: E501 + + + :return: The field_mask of this DocVisualExtendedField. # noqa: E501 + :rtype: object + """ + return self._field_mask + + @field_mask.setter + def field_mask(self, field_mask): + """Sets the field_mask of this DocVisualExtendedField. + + + :param field_mask: The field_mask of this DocVisualExtendedField. # noqa: E501 + :type field_mask: object + """ + + self._field_mask = field_mask + + @property + def validity(self): + """Gets the validity of this DocVisualExtendedField. # noqa: E501 + + + :return: The validity of this DocVisualExtendedField. # noqa: E501 + :rtype: object + """ + return self._validity + + @validity.setter + def validity(self, validity): + """Sets the validity of this DocVisualExtendedField. + + + :param validity: The validity of this DocVisualExtendedField. # noqa: E501 + :type validity: object + """ + + self._validity = validity + + @property + def in_comparison(self): + """Gets the in_comparison of this DocVisualExtendedField. # noqa: E501 - :return: The field_rect of this DocVisualExtendedField. # noqa: E501 - :rtype: RectangleCoordinates + :return: The in_comparison of this DocVisualExtendedField. # noqa: E501 + :rtype: object """ - return self._field_rect + return self._in_comparison - @field_rect.setter - def field_rect(self, field_rect): - """Sets the field_rect of this DocVisualExtendedField. + @in_comparison.setter + def in_comparison(self, in_comparison): + """Sets the in_comparison of this DocVisualExtendedField. - :param field_rect: The field_rect of this DocVisualExtendedField. # noqa: E501 - :type field_rect: RectangleCoordinates + :param in_comparison: The in_comparison of this DocVisualExtendedField. # noqa: E501 + :type in_comparison: object """ - self._field_rect = field_rect + self._in_comparison = in_comparison @property - def rfid_origin_dg(self): - """Gets the rfid_origin_dg of this DocVisualExtendedField. # noqa: E501 + def reserved2(self): + """Gets the reserved2 of this DocVisualExtendedField. # noqa: E501 - Origin data group information. Only for Result.RFID_TEXT results. # noqa: E501 - :return: The rfid_origin_dg of this DocVisualExtendedField. # noqa: E501 - :rtype: int + :return: The reserved2 of this DocVisualExtendedField. # noqa: E501 + :rtype: object """ - return self._rfid_origin_dg + return self._reserved2 - @rfid_origin_dg.setter - def rfid_origin_dg(self, rfid_origin_dg): - """Sets the rfid_origin_dg of this DocVisualExtendedField. + @reserved2.setter + def reserved2(self, reserved2): + """Sets the reserved2 of this DocVisualExtendedField. - Origin data group information. Only for Result.RFID_TEXT results. # noqa: E501 - :param rfid_origin_dg: The rfid_origin_dg of this DocVisualExtendedField. # noqa: E501 - :type rfid_origin_dg: int + :param reserved2: The reserved2 of this DocVisualExtendedField. # noqa: E501 + :type reserved2: object """ - self._rfid_origin_dg = rfid_origin_dg + self._reserved2 = reserved2 @property - def rfid_origin_tag_entry(self): - """Gets the rfid_origin_tag_entry of this DocVisualExtendedField. # noqa: E501 + def reserved3(self): + """Gets the reserved3 of this DocVisualExtendedField. # noqa: E501 - Index of the text field record in origin data group. Only for Result.RFID_TEXT results. # noqa: E501 - :return: The rfid_origin_tag_entry of this DocVisualExtendedField. # noqa: E501 - :rtype: int + :return: The reserved3 of this DocVisualExtendedField. # noqa: E501 + :rtype: object """ - return self._rfid_origin_tag_entry + return self._reserved3 - @rfid_origin_tag_entry.setter - def rfid_origin_tag_entry(self, rfid_origin_tag_entry): - """Sets the rfid_origin_tag_entry of this DocVisualExtendedField. + @reserved3.setter + def reserved3(self, reserved3): + """Sets the reserved3 of this DocVisualExtendedField. - Index of the text field record in origin data group. Only for Result.RFID_TEXT results. # noqa: E501 - :param rfid_origin_tag_entry: The rfid_origin_tag_entry of this DocVisualExtendedField. # noqa: E501 - :type rfid_origin_tag_entry: int + :param reserved3: The reserved3 of this DocVisualExtendedField. # noqa: E501 + :type reserved3: object """ - self._rfid_origin_tag_entry = rfid_origin_tag_entry + self._reserved3 = reserved3 def to_dict(self): """Returns the model properties as a dict""" diff --git a/regula/documentreader/webclient/gen/models/doc_visual_extended_field_rect.py b/regula/documentreader/webclient/gen/models/doc_visual_extended_field_rect.py new file mode 100644 index 0000000..578c5de --- /dev/null +++ b/regula/documentreader/webclient/gen/models/doc_visual_extended_field_rect.py @@ -0,0 +1,441 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure and serves for storing information from one text data field. Variant with field logical type and field rectangular area coordinates on the image. +""" +class DocVisualExtendedFieldRect(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'field_rect': 'RectangleCoordinates', + 'field_type': 'object', + 'w_field_type': 'TextFieldType', + 'field_name': 'str', + 'strings_count': 'float', + 'strings_result': 'list[StringRecognitionResult]', + 'buf_length': 'float', + 'buf_text': 'str', + 'field_mask': 'object', + 'validity': 'object', + 'in_comparison': 'object', + 'reserved2': 'object', + 'reserved3': 'object' + } + + attribute_map = { + 'field_rect': 'FieldRect', + 'field_type': 'FieldType', + 'w_field_type': 'wFieldType', + 'field_name': 'FieldName', + 'strings_count': 'StringsCount', + 'strings_result': 'StringsResult', + 'buf_length': 'Buf_Length', + 'buf_text': 'Buf_Text', + 'field_mask': 'FieldMask', + 'validity': 'Validity', + 'in_comparison': 'InComparison', + 'reserved2': 'Reserved2', + 'reserved3': 'Reserved3' + } + + def __init__(self, field_rect=None, field_type=None, w_field_type=None, field_name=None, strings_count=None, strings_result=None, buf_length=None, buf_text=None, field_mask=None, validity=None, in_comparison=None, reserved2=None, reserved3=None, local_vars_configuration=None): # noqa: E501 + """DocVisualExtendedFieldRect - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._field_rect = None + self._field_type = None + self._w_field_type = None + self._field_name = None + self._strings_count = None + self._strings_result = None + self._buf_length = None + self._buf_text = None + self._field_mask = None + self._validity = None + self._in_comparison = None + self._reserved2 = None + self._reserved3 = None + self.discriminator = None + + if field_rect is not None: + self.field_rect = field_rect + self.field_type = field_type + self.w_field_type = w_field_type + self.field_name = field_name + self.strings_count = strings_count + self.strings_result = strings_result + self.buf_length = buf_length + self.buf_text = buf_text + self.field_mask = field_mask + self.validity = validity + self.in_comparison = in_comparison + self.reserved2 = reserved2 + self.reserved3 = reserved3 + + @property + def field_rect(self): + """Gets the field_rect of this DocVisualExtendedFieldRect. # noqa: E501 + + + :return: The field_rect of this DocVisualExtendedFieldRect. # noqa: E501 + :rtype: RectangleCoordinates + """ + return self._field_rect + + @field_rect.setter + def field_rect(self, field_rect): + """Sets the field_rect of this DocVisualExtendedFieldRect. + + + :param field_rect: The field_rect of this DocVisualExtendedFieldRect. # noqa: E501 + :type field_rect: RectangleCoordinates + """ + + self._field_rect = field_rect + + @property + def field_type(self): + """Gets the field_type of this DocVisualExtendedFieldRect. # noqa: E501 + + + :return: The field_type of this DocVisualExtendedFieldRect. # noqa: E501 + :rtype: object + """ + return self._field_type + + @field_type.setter + def field_type(self, field_type): + """Sets the field_type of this DocVisualExtendedFieldRect. + + + :param field_type: The field_type of this DocVisualExtendedFieldRect. # noqa: E501 + :type field_type: object + """ + + self._field_type = field_type + + @property + def w_field_type(self): + """Gets the w_field_type of this DocVisualExtendedFieldRect. # noqa: E501 + + + :return: The w_field_type of this DocVisualExtendedFieldRect. # noqa: E501 + :rtype: TextFieldType + """ + return self._w_field_type + + @w_field_type.setter + def w_field_type(self, w_field_type): + """Sets the w_field_type of this DocVisualExtendedFieldRect. + + + :param w_field_type: The w_field_type of this DocVisualExtendedFieldRect. # noqa: E501 + :type w_field_type: TextFieldType + """ + if self.local_vars_configuration.client_side_validation and w_field_type is None: # noqa: E501 + raise ValueError("Invalid value for `w_field_type`, must not be `None`") # noqa: E501 + + self._w_field_type = w_field_type + + @property + def field_name(self): + """Gets the field_name of this DocVisualExtendedFieldRect. # noqa: E501 + + Field symbolic name (null-terminated string) # noqa: E501 + + :return: The field_name of this DocVisualExtendedFieldRect. # noqa: E501 + :rtype: str + """ + return self._field_name + + @field_name.setter + def field_name(self, field_name): + """Sets the field_name of this DocVisualExtendedFieldRect. + + Field symbolic name (null-terminated string) # noqa: E501 + + :param field_name: The field_name of this DocVisualExtendedFieldRect. # noqa: E501 + :type field_name: str + """ + if self.local_vars_configuration.client_side_validation and field_name is None: # noqa: E501 + raise ValueError("Invalid value for `field_name`, must not be `None`") # noqa: E501 + + self._field_name = field_name + + @property + def strings_count(self): + """Gets the strings_count of this DocVisualExtendedFieldRect. # noqa: E501 + + Number of StringsResult array elements # noqa: E501 + + :return: The strings_count of this DocVisualExtendedFieldRect. # noqa: E501 + :rtype: float + """ + return self._strings_count + + @strings_count.setter + def strings_count(self, strings_count): + """Sets the strings_count of this DocVisualExtendedFieldRect. + + Number of StringsResult array elements # noqa: E501 + + :param strings_count: The strings_count of this DocVisualExtendedFieldRect. # noqa: E501 + :type strings_count: float + """ + if self.local_vars_configuration.client_side_validation and strings_count is None: # noqa: E501 + raise ValueError("Invalid value for `strings_count`, must not be `None`") # noqa: E501 + + self._strings_count = strings_count + + @property + def strings_result(self): + """Gets the strings_result of this DocVisualExtendedFieldRect. # noqa: E501 + + Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results. # noqa: E501 + + :return: The strings_result of this DocVisualExtendedFieldRect. # noqa: E501 + :rtype: list[StringRecognitionResult] + """ + return self._strings_result + + @strings_result.setter + def strings_result(self, strings_result): + """Sets the strings_result of this DocVisualExtendedFieldRect. + + Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results. # noqa: E501 + + :param strings_result: The strings_result of this DocVisualExtendedFieldRect. # noqa: E501 + :type strings_result: list[StringRecognitionResult] + """ + if self.local_vars_configuration.client_side_validation and strings_result is None: # noqa: E501 + raise ValueError("Invalid value for `strings_result`, must not be `None`") # noqa: E501 + + self._strings_result = strings_result + + @property + def buf_length(self): + """Gets the buf_length of this DocVisualExtendedFieldRect. # noqa: E501 + + Buf_Text text string length # noqa: E501 + + :return: The buf_length of this DocVisualExtendedFieldRect. # noqa: E501 + :rtype: float + """ + return self._buf_length + + @buf_length.setter + def buf_length(self, buf_length): + """Sets the buf_length of this DocVisualExtendedFieldRect. + + Buf_Text text string length # noqa: E501 + + :param buf_length: The buf_length of this DocVisualExtendedFieldRect. # noqa: E501 + :type buf_length: float + """ + if self.local_vars_configuration.client_side_validation and buf_length is None: # noqa: E501 + raise ValueError("Invalid value for `buf_length`, must not be `None`") # noqa: E501 + + self._buf_length = buf_length + + @property + def buf_text(self): + """Gets the buf_text of this DocVisualExtendedFieldRect. # noqa: E501 + + Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' # noqa: E501 + + :return: The buf_text of this DocVisualExtendedFieldRect. # noqa: E501 + :rtype: str + """ + return self._buf_text + + @buf_text.setter + def buf_text(self, buf_text): + """Sets the buf_text of this DocVisualExtendedFieldRect. + + Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' # noqa: E501 + + :param buf_text: The buf_text of this DocVisualExtendedFieldRect. # noqa: E501 + :type buf_text: str + """ + if self.local_vars_configuration.client_side_validation and buf_text is None: # noqa: E501 + raise ValueError("Invalid value for `buf_text`, must not be `None`") # noqa: E501 + + self._buf_text = buf_text + + @property + def field_mask(self): + """Gets the field_mask of this DocVisualExtendedFieldRect. # noqa: E501 + + + :return: The field_mask of this DocVisualExtendedFieldRect. # noqa: E501 + :rtype: object + """ + return self._field_mask + + @field_mask.setter + def field_mask(self, field_mask): + """Sets the field_mask of this DocVisualExtendedFieldRect. + + + :param field_mask: The field_mask of this DocVisualExtendedFieldRect. # noqa: E501 + :type field_mask: object + """ + + self._field_mask = field_mask + + @property + def validity(self): + """Gets the validity of this DocVisualExtendedFieldRect. # noqa: E501 + + + :return: The validity of this DocVisualExtendedFieldRect. # noqa: E501 + :rtype: object + """ + return self._validity + + @validity.setter + def validity(self, validity): + """Sets the validity of this DocVisualExtendedFieldRect. + + + :param validity: The validity of this DocVisualExtendedFieldRect. # noqa: E501 + :type validity: object + """ + + self._validity = validity + + @property + def in_comparison(self): + """Gets the in_comparison of this DocVisualExtendedFieldRect. # noqa: E501 + + + :return: The in_comparison of this DocVisualExtendedFieldRect. # noqa: E501 + :rtype: object + """ + return self._in_comparison + + @in_comparison.setter + def in_comparison(self, in_comparison): + """Sets the in_comparison of this DocVisualExtendedFieldRect. + + + :param in_comparison: The in_comparison of this DocVisualExtendedFieldRect. # noqa: E501 + :type in_comparison: object + """ + + self._in_comparison = in_comparison + + @property + def reserved2(self): + """Gets the reserved2 of this DocVisualExtendedFieldRect. # noqa: E501 + + + :return: The reserved2 of this DocVisualExtendedFieldRect. # noqa: E501 + :rtype: object + """ + return self._reserved2 + + @reserved2.setter + def reserved2(self, reserved2): + """Sets the reserved2 of this DocVisualExtendedFieldRect. + + + :param reserved2: The reserved2 of this DocVisualExtendedFieldRect. # noqa: E501 + :type reserved2: object + """ + + self._reserved2 = reserved2 + + @property + def reserved3(self): + """Gets the reserved3 of this DocVisualExtendedFieldRect. # noqa: E501 + + + :return: The reserved3 of this DocVisualExtendedFieldRect. # noqa: E501 + :rtype: object + """ + return self._reserved3 + + @reserved3.setter + def reserved3(self, reserved3): + """Sets the reserved3 of this DocVisualExtendedFieldRect. + + + :param reserved3: The reserved3 of this DocVisualExtendedFieldRect. # noqa: E501 + :type reserved3: object + """ + + self._reserved3 = reserved3 + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DocVisualExtendedFieldRect): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DocVisualExtendedFieldRect): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/doc_visual_extended_field_rect_all_of.py b/regula/documentreader/webclient/gen/models/doc_visual_extended_field_rect_all_of.py new file mode 100644 index 0000000..23247bb --- /dev/null +++ b/regula/documentreader/webclient/gen/models/doc_visual_extended_field_rect_all_of.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" + +""" +class DocVisualExtendedFieldRectAllOf(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'field_rect': 'RectangleCoordinates' + } + + attribute_map = { + 'field_rect': 'FieldRect' + } + + def __init__(self, field_rect=None, local_vars_configuration=None): # noqa: E501 + """DocVisualExtendedFieldRectAllOf - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._field_rect = None + self.discriminator = None + + if field_rect is not None: + self.field_rect = field_rect + + @property + def field_rect(self): + """Gets the field_rect of this DocVisualExtendedFieldRectAllOf. # noqa: E501 + + + :return: The field_rect of this DocVisualExtendedFieldRectAllOf. # noqa: E501 + :rtype: RectangleCoordinates + """ + return self._field_rect + + @field_rect.setter + def field_rect(self, field_rect): + """Sets the field_rect of this DocVisualExtendedFieldRectAllOf. + + + :param field_rect: The field_rect of this DocVisualExtendedFieldRectAllOf. # noqa: E501 + :type field_rect: RectangleCoordinates + """ + + self._field_rect = field_rect + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DocVisualExtendedFieldRectAllOf): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DocVisualExtendedFieldRectAllOf): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/doc_visual_extended_field_rfid.py b/regula/documentreader/webclient/gen/models/doc_visual_extended_field_rfid.py new file mode 100644 index 0000000..1c1e1c0 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/doc_visual_extended_field_rfid.py @@ -0,0 +1,521 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure and serves for storing information from one text data field. Variant with field logical type and RFID data. +""" +class DocVisualExtendedFieldRfid(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'rfid_origin_dg': 'RfidDataGroupTypeTag', + 'rfid_origin_dg_tag': 'object', + 'rfid_origin_tag_entry': 'float', + 'rfid_origin_entry_view': 'object', + 'field_type': 'object', + 'w_field_type': 'TextFieldType', + 'field_name': 'str', + 'strings_count': 'float', + 'strings_result': 'list[StringRecognitionResult]', + 'buf_length': 'float', + 'buf_text': 'str', + 'field_mask': 'object', + 'validity': 'object', + 'in_comparison': 'object', + 'reserved2': 'object', + 'reserved3': 'object' + } + + attribute_map = { + 'rfid_origin_dg': 'RFID_OriginDG', + 'rfid_origin_dg_tag': 'RFID_OriginDGTag', + 'rfid_origin_tag_entry': 'RFID_OriginTagEntry', + 'rfid_origin_entry_view': 'RFID_OriginEntryView', + 'field_type': 'FieldType', + 'w_field_type': 'wFieldType', + 'field_name': 'FieldName', + 'strings_count': 'StringsCount', + 'strings_result': 'StringsResult', + 'buf_length': 'Buf_Length', + 'buf_text': 'Buf_Text', + 'field_mask': 'FieldMask', + 'validity': 'Validity', + 'in_comparison': 'InComparison', + 'reserved2': 'Reserved2', + 'reserved3': 'Reserved3' + } + + def __init__(self, rfid_origin_dg=None, rfid_origin_dg_tag=None, rfid_origin_tag_entry=None, rfid_origin_entry_view=None, field_type=None, w_field_type=None, field_name=None, strings_count=None, strings_result=None, buf_length=None, buf_text=None, field_mask=None, validity=None, in_comparison=None, reserved2=None, reserved3=None, local_vars_configuration=None): # noqa: E501 + """DocVisualExtendedFieldRfid - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._rfid_origin_dg = None + self._rfid_origin_dg_tag = None + self._rfid_origin_tag_entry = None + self._rfid_origin_entry_view = None + self._field_type = None + self._w_field_type = None + self._field_name = None + self._strings_count = None + self._strings_result = None + self._buf_length = None + self._buf_text = None + self._field_mask = None + self._validity = None + self._in_comparison = None + self._reserved2 = None + self._reserved3 = None + self.discriminator = None + + self.rfid_origin_dg = rfid_origin_dg + self.rfid_origin_dg_tag = rfid_origin_dg_tag + self.rfid_origin_tag_entry = rfid_origin_tag_entry + self.rfid_origin_entry_view = rfid_origin_entry_view + self.field_type = field_type + self.w_field_type = w_field_type + self.field_name = field_name + self.strings_count = strings_count + self.strings_result = strings_result + self.buf_length = buf_length + self.buf_text = buf_text + self.field_mask = field_mask + self.validity = validity + self.in_comparison = in_comparison + self.reserved2 = reserved2 + self.reserved3 = reserved3 + + @property + def rfid_origin_dg(self): + """Gets the rfid_origin_dg of this DocVisualExtendedFieldRfid. # noqa: E501 + + + :return: The rfid_origin_dg of this DocVisualExtendedFieldRfid. # noqa: E501 + :rtype: RfidDataGroupTypeTag + """ + return self._rfid_origin_dg + + @rfid_origin_dg.setter + def rfid_origin_dg(self, rfid_origin_dg): + """Sets the rfid_origin_dg of this DocVisualExtendedFieldRfid. + + + :param rfid_origin_dg: The rfid_origin_dg of this DocVisualExtendedFieldRfid. # noqa: E501 + :type rfid_origin_dg: RfidDataGroupTypeTag + """ + if self.local_vars_configuration.client_side_validation and rfid_origin_dg is None: # noqa: E501 + raise ValueError("Invalid value for `rfid_origin_dg`, must not be `None`") # noqa: E501 + + self._rfid_origin_dg = rfid_origin_dg + + @property + def rfid_origin_dg_tag(self): + """Gets the rfid_origin_dg_tag of this DocVisualExtendedFieldRfid. # noqa: E501 + + + :return: The rfid_origin_dg_tag of this DocVisualExtendedFieldRfid. # noqa: E501 + :rtype: object + """ + return self._rfid_origin_dg_tag + + @rfid_origin_dg_tag.setter + def rfid_origin_dg_tag(self, rfid_origin_dg_tag): + """Sets the rfid_origin_dg_tag of this DocVisualExtendedFieldRfid. + + + :param rfid_origin_dg_tag: The rfid_origin_dg_tag of this DocVisualExtendedFieldRfid. # noqa: E501 + :type rfid_origin_dg_tag: object + """ + + self._rfid_origin_dg_tag = rfid_origin_dg_tag + + @property + def rfid_origin_tag_entry(self): + """Gets the rfid_origin_tag_entry of this DocVisualExtendedFieldRfid. # noqa: E501 + + Record index of the text field source in the data group # noqa: E501 + + :return: The rfid_origin_tag_entry of this DocVisualExtendedFieldRfid. # noqa: E501 + :rtype: float + """ + return self._rfid_origin_tag_entry + + @rfid_origin_tag_entry.setter + def rfid_origin_tag_entry(self, rfid_origin_tag_entry): + """Sets the rfid_origin_tag_entry of this DocVisualExtendedFieldRfid. + + Record index of the text field source in the data group # noqa: E501 + + :param rfid_origin_tag_entry: The rfid_origin_tag_entry of this DocVisualExtendedFieldRfid. # noqa: E501 + :type rfid_origin_tag_entry: float + """ + if self.local_vars_configuration.client_side_validation and rfid_origin_tag_entry is None: # noqa: E501 + raise ValueError("Invalid value for `rfid_origin_tag_entry`, must not be `None`") # noqa: E501 + + self._rfid_origin_tag_entry = rfid_origin_tag_entry + + @property + def rfid_origin_entry_view(self): + """Gets the rfid_origin_entry_view of this DocVisualExtendedFieldRfid. # noqa: E501 + + + :return: The rfid_origin_entry_view of this DocVisualExtendedFieldRfid. # noqa: E501 + :rtype: object + """ + return self._rfid_origin_entry_view + + @rfid_origin_entry_view.setter + def rfid_origin_entry_view(self, rfid_origin_entry_view): + """Sets the rfid_origin_entry_view of this DocVisualExtendedFieldRfid. + + + :param rfid_origin_entry_view: The rfid_origin_entry_view of this DocVisualExtendedFieldRfid. # noqa: E501 + :type rfid_origin_entry_view: object + """ + + self._rfid_origin_entry_view = rfid_origin_entry_view + + @property + def field_type(self): + """Gets the field_type of this DocVisualExtendedFieldRfid. # noqa: E501 + + + :return: The field_type of this DocVisualExtendedFieldRfid. # noqa: E501 + :rtype: object + """ + return self._field_type + + @field_type.setter + def field_type(self, field_type): + """Sets the field_type of this DocVisualExtendedFieldRfid. + + + :param field_type: The field_type of this DocVisualExtendedFieldRfid. # noqa: E501 + :type field_type: object + """ + + self._field_type = field_type + + @property + def w_field_type(self): + """Gets the w_field_type of this DocVisualExtendedFieldRfid. # noqa: E501 + + + :return: The w_field_type of this DocVisualExtendedFieldRfid. # noqa: E501 + :rtype: TextFieldType + """ + return self._w_field_type + + @w_field_type.setter + def w_field_type(self, w_field_type): + """Sets the w_field_type of this DocVisualExtendedFieldRfid. + + + :param w_field_type: The w_field_type of this DocVisualExtendedFieldRfid. # noqa: E501 + :type w_field_type: TextFieldType + """ + if self.local_vars_configuration.client_side_validation and w_field_type is None: # noqa: E501 + raise ValueError("Invalid value for `w_field_type`, must not be `None`") # noqa: E501 + + self._w_field_type = w_field_type + + @property + def field_name(self): + """Gets the field_name of this DocVisualExtendedFieldRfid. # noqa: E501 + + Field symbolic name (null-terminated string) # noqa: E501 + + :return: The field_name of this DocVisualExtendedFieldRfid. # noqa: E501 + :rtype: str + """ + return self._field_name + + @field_name.setter + def field_name(self, field_name): + """Sets the field_name of this DocVisualExtendedFieldRfid. + + Field symbolic name (null-terminated string) # noqa: E501 + + :param field_name: The field_name of this DocVisualExtendedFieldRfid. # noqa: E501 + :type field_name: str + """ + if self.local_vars_configuration.client_side_validation and field_name is None: # noqa: E501 + raise ValueError("Invalid value for `field_name`, must not be `None`") # noqa: E501 + + self._field_name = field_name + + @property + def strings_count(self): + """Gets the strings_count of this DocVisualExtendedFieldRfid. # noqa: E501 + + Number of StringsResult array elements # noqa: E501 + + :return: The strings_count of this DocVisualExtendedFieldRfid. # noqa: E501 + :rtype: float + """ + return self._strings_count + + @strings_count.setter + def strings_count(self, strings_count): + """Sets the strings_count of this DocVisualExtendedFieldRfid. + + Number of StringsResult array elements # noqa: E501 + + :param strings_count: The strings_count of this DocVisualExtendedFieldRfid. # noqa: E501 + :type strings_count: float + """ + if self.local_vars_configuration.client_side_validation and strings_count is None: # noqa: E501 + raise ValueError("Invalid value for `strings_count`, must not be `None`") # noqa: E501 + + self._strings_count = strings_count + + @property + def strings_result(self): + """Gets the strings_result of this DocVisualExtendedFieldRfid. # noqa: E501 + + Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results. # noqa: E501 + + :return: The strings_result of this DocVisualExtendedFieldRfid. # noqa: E501 + :rtype: list[StringRecognitionResult] + """ + return self._strings_result + + @strings_result.setter + def strings_result(self, strings_result): + """Sets the strings_result of this DocVisualExtendedFieldRfid. + + Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results. # noqa: E501 + + :param strings_result: The strings_result of this DocVisualExtendedFieldRfid. # noqa: E501 + :type strings_result: list[StringRecognitionResult] + """ + if self.local_vars_configuration.client_side_validation and strings_result is None: # noqa: E501 + raise ValueError("Invalid value for `strings_result`, must not be `None`") # noqa: E501 + + self._strings_result = strings_result + + @property + def buf_length(self): + """Gets the buf_length of this DocVisualExtendedFieldRfid. # noqa: E501 + + Buf_Text text string length # noqa: E501 + + :return: The buf_length of this DocVisualExtendedFieldRfid. # noqa: E501 + :rtype: float + """ + return self._buf_length + + @buf_length.setter + def buf_length(self, buf_length): + """Sets the buf_length of this DocVisualExtendedFieldRfid. + + Buf_Text text string length # noqa: E501 + + :param buf_length: The buf_length of this DocVisualExtendedFieldRfid. # noqa: E501 + :type buf_length: float + """ + if self.local_vars_configuration.client_side_validation and buf_length is None: # noqa: E501 + raise ValueError("Invalid value for `buf_length`, must not be `None`") # noqa: E501 + + self._buf_length = buf_length + + @property + def buf_text(self): + """Gets the buf_text of this DocVisualExtendedFieldRfid. # noqa: E501 + + Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' # noqa: E501 + + :return: The buf_text of this DocVisualExtendedFieldRfid. # noqa: E501 + :rtype: str + """ + return self._buf_text + + @buf_text.setter + def buf_text(self, buf_text): + """Sets the buf_text of this DocVisualExtendedFieldRfid. + + Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' # noqa: E501 + + :param buf_text: The buf_text of this DocVisualExtendedFieldRfid. # noqa: E501 + :type buf_text: str + """ + if self.local_vars_configuration.client_side_validation and buf_text is None: # noqa: E501 + raise ValueError("Invalid value for `buf_text`, must not be `None`") # noqa: E501 + + self._buf_text = buf_text + + @property + def field_mask(self): + """Gets the field_mask of this DocVisualExtendedFieldRfid. # noqa: E501 + + + :return: The field_mask of this DocVisualExtendedFieldRfid. # noqa: E501 + :rtype: object + """ + return self._field_mask + + @field_mask.setter + def field_mask(self, field_mask): + """Sets the field_mask of this DocVisualExtendedFieldRfid. + + + :param field_mask: The field_mask of this DocVisualExtendedFieldRfid. # noqa: E501 + :type field_mask: object + """ + + self._field_mask = field_mask + + @property + def validity(self): + """Gets the validity of this DocVisualExtendedFieldRfid. # noqa: E501 + + + :return: The validity of this DocVisualExtendedFieldRfid. # noqa: E501 + :rtype: object + """ + return self._validity + + @validity.setter + def validity(self, validity): + """Sets the validity of this DocVisualExtendedFieldRfid. + + + :param validity: The validity of this DocVisualExtendedFieldRfid. # noqa: E501 + :type validity: object + """ + + self._validity = validity + + @property + def in_comparison(self): + """Gets the in_comparison of this DocVisualExtendedFieldRfid. # noqa: E501 + + + :return: The in_comparison of this DocVisualExtendedFieldRfid. # noqa: E501 + :rtype: object + """ + return self._in_comparison + + @in_comparison.setter + def in_comparison(self, in_comparison): + """Sets the in_comparison of this DocVisualExtendedFieldRfid. + + + :param in_comparison: The in_comparison of this DocVisualExtendedFieldRfid. # noqa: E501 + :type in_comparison: object + """ + + self._in_comparison = in_comparison + + @property + def reserved2(self): + """Gets the reserved2 of this DocVisualExtendedFieldRfid. # noqa: E501 + + + :return: The reserved2 of this DocVisualExtendedFieldRfid. # noqa: E501 + :rtype: object + """ + return self._reserved2 + + @reserved2.setter + def reserved2(self, reserved2): + """Sets the reserved2 of this DocVisualExtendedFieldRfid. + + + :param reserved2: The reserved2 of this DocVisualExtendedFieldRfid. # noqa: E501 + :type reserved2: object + """ + + self._reserved2 = reserved2 + + @property + def reserved3(self): + """Gets the reserved3 of this DocVisualExtendedFieldRfid. # noqa: E501 + + + :return: The reserved3 of this DocVisualExtendedFieldRfid. # noqa: E501 + :rtype: object + """ + return self._reserved3 + + @reserved3.setter + def reserved3(self, reserved3): + """Sets the reserved3 of this DocVisualExtendedFieldRfid. + + + :param reserved3: The reserved3 of this DocVisualExtendedFieldRfid. # noqa: E501 + :type reserved3: object + """ + + self._reserved3 = reserved3 + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DocVisualExtendedFieldRfid): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DocVisualExtendedFieldRfid): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/doc_visual_extended_field_rfid_all_of.py b/regula/documentreader/webclient/gen/models/doc_visual_extended_field_rfid_all_of.py new file mode 100644 index 0000000..2c08958 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/doc_visual_extended_field_rfid_all_of.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" + +""" +class DocVisualExtendedFieldRfidAllOf(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'rfid_origin_dg': 'RfidDataGroupTypeTag', + 'rfid_origin_dg_tag': 'object', + 'rfid_origin_tag_entry': 'float', + 'rfid_origin_entry_view': 'object' + } + + attribute_map = { + 'rfid_origin_dg': 'RFID_OriginDG', + 'rfid_origin_dg_tag': 'RFID_OriginDGTag', + 'rfid_origin_tag_entry': 'RFID_OriginTagEntry', + 'rfid_origin_entry_view': 'RFID_OriginEntryView' + } + + def __init__(self, rfid_origin_dg=None, rfid_origin_dg_tag=None, rfid_origin_tag_entry=None, rfid_origin_entry_view=None, local_vars_configuration=None): # noqa: E501 + """DocVisualExtendedFieldRfidAllOf - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._rfid_origin_dg = None + self._rfid_origin_dg_tag = None + self._rfid_origin_tag_entry = None + self._rfid_origin_entry_view = None + self.discriminator = None + + self.rfid_origin_dg = rfid_origin_dg + self.rfid_origin_dg_tag = rfid_origin_dg_tag + self.rfid_origin_tag_entry = rfid_origin_tag_entry + self.rfid_origin_entry_view = rfid_origin_entry_view + + @property + def rfid_origin_dg(self): + """Gets the rfid_origin_dg of this DocVisualExtendedFieldRfidAllOf. # noqa: E501 + + + :return: The rfid_origin_dg of this DocVisualExtendedFieldRfidAllOf. # noqa: E501 + :rtype: RfidDataGroupTypeTag + """ + return self._rfid_origin_dg + + @rfid_origin_dg.setter + def rfid_origin_dg(self, rfid_origin_dg): + """Sets the rfid_origin_dg of this DocVisualExtendedFieldRfidAllOf. + + + :param rfid_origin_dg: The rfid_origin_dg of this DocVisualExtendedFieldRfidAllOf. # noqa: E501 + :type rfid_origin_dg: RfidDataGroupTypeTag + """ + if self.local_vars_configuration.client_side_validation and rfid_origin_dg is None: # noqa: E501 + raise ValueError("Invalid value for `rfid_origin_dg`, must not be `None`") # noqa: E501 + + self._rfid_origin_dg = rfid_origin_dg + + @property + def rfid_origin_dg_tag(self): + """Gets the rfid_origin_dg_tag of this DocVisualExtendedFieldRfidAllOf. # noqa: E501 + + + :return: The rfid_origin_dg_tag of this DocVisualExtendedFieldRfidAllOf. # noqa: E501 + :rtype: object + """ + return self._rfid_origin_dg_tag + + @rfid_origin_dg_tag.setter + def rfid_origin_dg_tag(self, rfid_origin_dg_tag): + """Sets the rfid_origin_dg_tag of this DocVisualExtendedFieldRfidAllOf. + + + :param rfid_origin_dg_tag: The rfid_origin_dg_tag of this DocVisualExtendedFieldRfidAllOf. # noqa: E501 + :type rfid_origin_dg_tag: object + """ + + self._rfid_origin_dg_tag = rfid_origin_dg_tag + + @property + def rfid_origin_tag_entry(self): + """Gets the rfid_origin_tag_entry of this DocVisualExtendedFieldRfidAllOf. # noqa: E501 + + Record index of the text field source in the data group # noqa: E501 + + :return: The rfid_origin_tag_entry of this DocVisualExtendedFieldRfidAllOf. # noqa: E501 + :rtype: float + """ + return self._rfid_origin_tag_entry + + @rfid_origin_tag_entry.setter + def rfid_origin_tag_entry(self, rfid_origin_tag_entry): + """Sets the rfid_origin_tag_entry of this DocVisualExtendedFieldRfidAllOf. + + Record index of the text field source in the data group # noqa: E501 + + :param rfid_origin_tag_entry: The rfid_origin_tag_entry of this DocVisualExtendedFieldRfidAllOf. # noqa: E501 + :type rfid_origin_tag_entry: float + """ + if self.local_vars_configuration.client_side_validation and rfid_origin_tag_entry is None: # noqa: E501 + raise ValueError("Invalid value for `rfid_origin_tag_entry`, must not be `None`") # noqa: E501 + + self._rfid_origin_tag_entry = rfid_origin_tag_entry + + @property + def rfid_origin_entry_view(self): + """Gets the rfid_origin_entry_view of this DocVisualExtendedFieldRfidAllOf. # noqa: E501 + + + :return: The rfid_origin_entry_view of this DocVisualExtendedFieldRfidAllOf. # noqa: E501 + :rtype: object + """ + return self._rfid_origin_entry_view + + @rfid_origin_entry_view.setter + def rfid_origin_entry_view(self, rfid_origin_entry_view): + """Sets the rfid_origin_entry_view of this DocVisualExtendedFieldRfidAllOf. + + + :param rfid_origin_entry_view: The rfid_origin_entry_view of this DocVisualExtendedFieldRfidAllOf. # noqa: E501 + :type rfid_origin_entry_view: object + """ + + self._rfid_origin_entry_view = rfid_origin_entry_view + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DocVisualExtendedFieldRfidAllOf): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DocVisualExtendedFieldRfidAllOf): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/doc_visual_extended_info.py b/regula/documentreader/webclient/gen/models/doc_visual_extended_info.py index a581856..5b466f4 100755 --- a/regula/documentreader/webclient/gen/models/doc_visual_extended_info.py +++ b/regula/documentreader/webclient/gen/models/doc_visual_extended_info.py @@ -32,31 +32,60 @@ class DocVisualExtendedInfo(object): and the value is json key in definition. """ openapi_types = { - 'p_array_fields': 'list[DocVisualExtendedField]' + 'n_fields': 'float', + 'p_array_fields': 'list[AnyOfDocVisualExtendedFieldRectDocVisualExtendedFieldRfid]' } attribute_map = { + 'n_fields': 'nFields', 'p_array_fields': 'pArrayFields' } - def __init__(self, p_array_fields=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, n_fields=None, p_array_fields=None, local_vars_configuration=None): # noqa: E501 """DocVisualExtendedInfo - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._n_fields = None self._p_array_fields = None self.discriminator = None + self.n_fields = n_fields self.p_array_fields = p_array_fields + @property + def n_fields(self): + """Gets the n_fields of this DocVisualExtendedInfo. # noqa: E501 + + Number of pArrayFields array elements # noqa: E501 + + :return: The n_fields of this DocVisualExtendedInfo. # noqa: E501 + :rtype: float + """ + return self._n_fields + + @n_fields.setter + def n_fields(self, n_fields): + """Sets the n_fields of this DocVisualExtendedInfo. + + Number of pArrayFields array elements # noqa: E501 + + :param n_fields: The n_fields of this DocVisualExtendedInfo. # noqa: E501 + :type n_fields: float + """ + if self.local_vars_configuration.client_side_validation and n_fields is None: # noqa: E501 + raise ValueError("Invalid value for `n_fields`, must not be `None`") # noqa: E501 + + self._n_fields = n_fields + @property def p_array_fields(self): """Gets the p_array_fields of this DocVisualExtendedInfo. # noqa: E501 :return: The p_array_fields of this DocVisualExtendedInfo. # noqa: E501 - :rtype: list[DocVisualExtendedField] + :rtype: list[AnyOfDocVisualExtendedFieldRectDocVisualExtendedFieldRfid] """ return self._p_array_fields @@ -66,7 +95,7 @@ def p_array_fields(self, p_array_fields): :param p_array_fields: The p_array_fields of this DocVisualExtendedInfo. # noqa: E501 - :type p_array_fields: list[DocVisualExtendedField] + :type p_array_fields: list[AnyOfDocVisualExtendedFieldRectDocVisualExtendedFieldRfid] """ if self.local_vars_configuration.client_side_validation and p_array_fields is None: # noqa: E501 raise ValueError("Invalid value for `p_array_fields`, must not be `None`") # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/document_binary_info_result.py b/regula/documentreader/webclient/gen/models/document_binary_info_result.py new file mode 100644 index 0000000..e6df672 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/document_binary_info_result.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" + +""" +class DocumentBinaryInfoResult(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 't_doc_binary_info': 'TDocBinaryInfo', + 'buf_length': 'int', + 'light': 'int', + 'list_idx': 'int', + 'page_idx': 'int', + 'result_type': 'int' + } + + attribute_map = { + 't_doc_binary_info': 'TDocBinaryInfo', + 'buf_length': 'buf_length', + 'light': 'light', + 'list_idx': 'list_idx', + 'page_idx': 'page_idx', + 'result_type': 'result_type' + } + + def __init__(self, t_doc_binary_info=None, buf_length=None, light=None, list_idx=None, page_idx=None, result_type=0, local_vars_configuration=None): # noqa: E501 + """DocumentBinaryInfoResult - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._t_doc_binary_info = None + self._buf_length = None + self._light = None + self._list_idx = None + self._page_idx = None + self._result_type = None + self.discriminator = None + + self.t_doc_binary_info = t_doc_binary_info + if buf_length is not None: + self.buf_length = buf_length + if light is not None: + self.light = light + if list_idx is not None: + self.list_idx = list_idx + if page_idx is not None: + self.page_idx = page_idx + self.result_type = result_type + + @property + def t_doc_binary_info(self): + """Gets the t_doc_binary_info of this DocumentBinaryInfoResult. # noqa: E501 + + + :return: The t_doc_binary_info of this DocumentBinaryInfoResult. # noqa: E501 + :rtype: TDocBinaryInfo + """ + return self._t_doc_binary_info + + @t_doc_binary_info.setter + def t_doc_binary_info(self, t_doc_binary_info): + """Sets the t_doc_binary_info of this DocumentBinaryInfoResult. + + + :param t_doc_binary_info: The t_doc_binary_info of this DocumentBinaryInfoResult. # noqa: E501 + :type t_doc_binary_info: TDocBinaryInfo + """ + if self.local_vars_configuration.client_side_validation and t_doc_binary_info is None: # noqa: E501 + raise ValueError("Invalid value for `t_doc_binary_info`, must not be `None`") # noqa: E501 + + self._t_doc_binary_info = t_doc_binary_info + + @property + def buf_length(self): + """Gets the buf_length of this DocumentBinaryInfoResult. # noqa: E501 + + + :return: The buf_length of this DocumentBinaryInfoResult. # noqa: E501 + :rtype: int + """ + return self._buf_length + + @buf_length.setter + def buf_length(self, buf_length): + """Sets the buf_length of this DocumentBinaryInfoResult. + + + :param buf_length: The buf_length of this DocumentBinaryInfoResult. # noqa: E501 + :type buf_length: int + """ + + self._buf_length = buf_length + + @property + def light(self): + """Gets the light of this DocumentBinaryInfoResult. # noqa: E501 + + + :return: The light of this DocumentBinaryInfoResult. # noqa: E501 + :rtype: int + """ + return self._light + + @light.setter + def light(self, light): + """Sets the light of this DocumentBinaryInfoResult. + + + :param light: The light of this DocumentBinaryInfoResult. # noqa: E501 + :type light: int + """ + + self._light = light + + @property + def list_idx(self): + """Gets the list_idx of this DocumentBinaryInfoResult. # noqa: E501 + + + :return: The list_idx of this DocumentBinaryInfoResult. # noqa: E501 + :rtype: int + """ + return self._list_idx + + @list_idx.setter + def list_idx(self, list_idx): + """Sets the list_idx of this DocumentBinaryInfoResult. + + + :param list_idx: The list_idx of this DocumentBinaryInfoResult. # noqa: E501 + :type list_idx: int + """ + + self._list_idx = list_idx + + @property + def page_idx(self): + """Gets the page_idx of this DocumentBinaryInfoResult. # noqa: E501 + + + :return: The page_idx of this DocumentBinaryInfoResult. # noqa: E501 + :rtype: int + """ + return self._page_idx + + @page_idx.setter + def page_idx(self, page_idx): + """Sets the page_idx of this DocumentBinaryInfoResult. + + + :param page_idx: The page_idx of this DocumentBinaryInfoResult. # noqa: E501 + :type page_idx: int + """ + + self._page_idx = page_idx + + @property + def result_type(self): + """Gets the result_type of this DocumentBinaryInfoResult. # noqa: E501 + + Same as Result type, but used for safe parsing of not-described values. See Result type. # noqa: E501 + + :return: The result_type of this DocumentBinaryInfoResult. # noqa: E501 + :rtype: int + """ + return self._result_type + + @result_type.setter + def result_type(self, result_type): + """Sets the result_type of this DocumentBinaryInfoResult. + + Same as Result type, but used for safe parsing of not-described values. See Result type. # noqa: E501 + + :param result_type: The result_type of this DocumentBinaryInfoResult. # noqa: E501 + :type result_type: int + """ + if self.local_vars_configuration.client_side_validation and result_type is None: # noqa: E501 + raise ValueError("Invalid value for `result_type`, must not be `None`") # noqa: E501 + + self._result_type = result_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DocumentBinaryInfoResult): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DocumentBinaryInfoResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/document_binary_info_result_all_of.py b/regula/documentreader/webclient/gen/models/document_binary_info_result_all_of.py new file mode 100644 index 0000000..bd0d2f7 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/document_binary_info_result_all_of.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure is used to store the data reading results from the RFID-chip in a form of a list of the logically separated data groups. +""" +class DocumentBinaryInfoResultAllOf(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 't_doc_binary_info': 'TDocBinaryInfo' + } + + attribute_map = { + 't_doc_binary_info': 'TDocBinaryInfo' + } + + def __init__(self, t_doc_binary_info=None, local_vars_configuration=None): # noqa: E501 + """DocumentBinaryInfoResultAllOf - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._t_doc_binary_info = None + self.discriminator = None + + self.t_doc_binary_info = t_doc_binary_info + + @property + def t_doc_binary_info(self): + """Gets the t_doc_binary_info of this DocumentBinaryInfoResultAllOf. # noqa: E501 + + + :return: The t_doc_binary_info of this DocumentBinaryInfoResultAllOf. # noqa: E501 + :rtype: TDocBinaryInfo + """ + return self._t_doc_binary_info + + @t_doc_binary_info.setter + def t_doc_binary_info(self, t_doc_binary_info): + """Sets the t_doc_binary_info of this DocumentBinaryInfoResultAllOf. + + + :param t_doc_binary_info: The t_doc_binary_info of this DocumentBinaryInfoResultAllOf. # noqa: E501 + :type t_doc_binary_info: TDocBinaryInfo + """ + if self.local_vars_configuration.client_side_validation and t_doc_binary_info is None: # noqa: E501 + raise ValueError("Invalid value for `t_doc_binary_info`, must not be `None`") # noqa: E501 + + self._t_doc_binary_info = t_doc_binary_info + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DocumentBinaryInfoResultAllOf): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DocumentBinaryInfoResultAllOf): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/document_format.py b/regula/documentreader/webclient/gen/models/document_format.py index 877ce21..e5d41c3 100755 --- a/regula/documentreader/webclient/gen/models/document_format.py +++ b/regula/documentreader/webclient/gen/models/document_format.py @@ -24,6 +24,8 @@ class DocumentFormat(object): Do not edit the class manually. """ + UNKNOWN = int("-1") + ID1 = int("0") ID2 = int("1") @@ -50,7 +52,7 @@ class DocumentFormat(object): FLEXIBLE = int("1002") - allowable_values = [ID1, ID2, ID3, NON, A4, ID3_X2, ID1_90, ID1_180, ID1_270, ID2_180, ID3_180, CUSTOM, FLEXIBLE] # noqa: E501 + allowable_values = [UNKNOWN, ID1, ID2, ID3, NON, A4, ID3_X2, ID1_90, ID1_180, ID1_270, ID2_180, ID3_180, CUSTOM, FLEXIBLE] # noqa: E501 """ Attributes: diff --git a/regula/documentreader/webclient/gen/models/document_image_result.py b/regula/documentreader/webclient/gen/models/document_image_result.py index 610be43..2978289 100755 --- a/regula/documentreader/webclient/gen/models/document_image_result.py +++ b/regula/documentreader/webclient/gen/models/document_image_result.py @@ -15,7 +15,7 @@ """ - +Contains cropped and rotated with perspective compensation image of document. Single input image can contain multiple document side/pages, which will be returned as separated results. Most of coordinates in other types defined on that image """ class DocumentImageResult(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -32,7 +32,7 @@ class DocumentImageResult(object): and the value is json key in definition. """ openapi_types = { - 'raw_image_container': 'ImageData', + 'raw_image_container': 'RawImageContainerFieldList', 'buf_length': 'int', 'light': 'int', 'list_idx': 'int', @@ -80,7 +80,7 @@ def raw_image_container(self): :return: The raw_image_container of this DocumentImageResult. # noqa: E501 - :rtype: ImageData + :rtype: RawImageContainerFieldList """ return self._raw_image_container @@ -90,7 +90,7 @@ def raw_image_container(self, raw_image_container): :param raw_image_container: The raw_image_container of this DocumentImageResult. # noqa: E501 - :type raw_image_container: ImageData + :type raw_image_container: RawImageContainerFieldList """ if self.local_vars_configuration.client_side_validation and raw_image_container is None: # noqa: E501 raise ValueError("Invalid value for `raw_image_container`, must not be `None`") # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/document_image_result_all_of.py b/regula/documentreader/webclient/gen/models/document_image_result_all_of.py index b10a6d9..658d811 100755 --- a/regula/documentreader/webclient/gen/models/document_image_result_all_of.py +++ b/regula/documentreader/webclient/gen/models/document_image_result_all_of.py @@ -15,7 +15,7 @@ """ -Contains cropped and rotated with perspective compensation image of document. Single input image can contain multiple document side/pages, which will be returned as separated results. Most of coordinates in other types defined on that image + """ class DocumentImageResultAllOf(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -32,7 +32,7 @@ class DocumentImageResultAllOf(object): and the value is json key in definition. """ openapi_types = { - 'raw_image_container': 'ImageData' + 'raw_image_container': 'RawImageContainerFieldList' } attribute_map = { @@ -56,7 +56,7 @@ def raw_image_container(self): :return: The raw_image_container of this DocumentImageResultAllOf. # noqa: E501 - :rtype: ImageData + :rtype: RawImageContainerFieldList """ return self._raw_image_container @@ -66,7 +66,7 @@ def raw_image_container(self, raw_image_container): :param raw_image_container: The raw_image_container of this DocumentImageResultAllOf. # noqa: E501 - :type raw_image_container: ImageData + :type raw_image_container: RawImageContainerFieldList """ if self.local_vars_configuration.client_side_validation and raw_image_container is None: # noqa: E501 raise ValueError("Invalid value for `raw_image_container`, must not be `None`") # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/document_position.py b/regula/documentreader/webclient/gen/models/document_position.py index 052c3f5..e5b45fd 100644 --- a/regula/documentreader/webclient/gen/models/document_position.py +++ b/regula/documentreader/webclient/gen/models/document_position.py @@ -75,26 +75,16 @@ def __init__(self, doc_format=None, angle=None, width=None, height=None, center= self._dpi = None self.discriminator = None - if doc_format is not None: - self.doc_format = doc_format - if angle is not None: - self.angle = angle - if width is not None: - self.width = width - if height is not None: - self.height = height - if center is not None: - self.center = center - if left_bottom is not None: - self.left_bottom = left_bottom - if left_top is not None: - self.left_top = left_top - if right_bottom is not None: - self.right_bottom = right_bottom - if right_top is not None: - self.right_top = right_top - if dpi is not None: - self.dpi = dpi + self.doc_format = doc_format + self.angle = angle + self.width = width + self.height = height + self.center = center + self.left_bottom = left_bottom + self.left_top = left_top + self.right_bottom = right_bottom + self.right_top = right_top + self.dpi = dpi @property def doc_format(self): @@ -114,6 +104,8 @@ def doc_format(self, doc_format): :param doc_format: The doc_format of this DocumentPosition. # noqa: E501 :type doc_format: DocumentFormat """ + if self.local_vars_configuration.client_side_validation and doc_format is None: # noqa: E501 + raise ValueError("Invalid value for `doc_format`, must not be `None`") # noqa: E501 self._doc_format = doc_format @@ -121,6 +113,7 @@ def doc_format(self, doc_format): def angle(self): """Gets the angle of this DocumentPosition. # noqa: E501 + Document rotation angle # noqa: E501 :return: The angle of this DocumentPosition. # noqa: E501 :rtype: float @@ -131,10 +124,13 @@ def angle(self): def angle(self, angle): """Sets the angle of this DocumentPosition. + Document rotation angle # noqa: E501 :param angle: The angle of this DocumentPosition. # noqa: E501 :type angle: float """ + if self.local_vars_configuration.client_side_validation and angle is None: # noqa: E501 + raise ValueError("Invalid value for `angle`, must not be `None`") # noqa: E501 self._angle = angle @@ -142,6 +138,7 @@ def angle(self, angle): def width(self): """Gets the width of this DocumentPosition. # noqa: E501 + Document width # noqa: E501 :return: The width of this DocumentPosition. # noqa: E501 :rtype: int @@ -152,10 +149,13 @@ def width(self): def width(self, width): """Sets the width of this DocumentPosition. + Document width # noqa: E501 :param width: The width of this DocumentPosition. # noqa: E501 :type width: int """ + if self.local_vars_configuration.client_side_validation and width is None: # noqa: E501 + raise ValueError("Invalid value for `width`, must not be `None`") # noqa: E501 self._width = width @@ -163,6 +163,7 @@ def width(self, width): def height(self): """Gets the height of this DocumentPosition. # noqa: E501 + Document height # noqa: E501 :return: The height of this DocumentPosition. # noqa: E501 :rtype: int @@ -173,10 +174,13 @@ def height(self): def height(self, height): """Sets the height of this DocumentPosition. + Document height # noqa: E501 :param height: The height of this DocumentPosition. # noqa: E501 :type height: int """ + if self.local_vars_configuration.client_side_validation and height is None: # noqa: E501 + raise ValueError("Invalid value for `height`, must not be `None`") # noqa: E501 self._height = height @@ -198,6 +202,8 @@ def center(self, center): :param center: The center of this DocumentPosition. # noqa: E501 :type center: Point """ + if self.local_vars_configuration.client_side_validation and center is None: # noqa: E501 + raise ValueError("Invalid value for `center`, must not be `None`") # noqa: E501 self._center = center @@ -219,6 +225,8 @@ def left_bottom(self, left_bottom): :param left_bottom: The left_bottom of this DocumentPosition. # noqa: E501 :type left_bottom: Point """ + if self.local_vars_configuration.client_side_validation and left_bottom is None: # noqa: E501 + raise ValueError("Invalid value for `left_bottom`, must not be `None`") # noqa: E501 self._left_bottom = left_bottom @@ -240,6 +248,8 @@ def left_top(self, left_top): :param left_top: The left_top of this DocumentPosition. # noqa: E501 :type left_top: Point """ + if self.local_vars_configuration.client_side_validation and left_top is None: # noqa: E501 + raise ValueError("Invalid value for `left_top`, must not be `None`") # noqa: E501 self._left_top = left_top @@ -261,6 +271,8 @@ def right_bottom(self, right_bottom): :param right_bottom: The right_bottom of this DocumentPosition. # noqa: E501 :type right_bottom: Point """ + if self.local_vars_configuration.client_side_validation and right_bottom is None: # noqa: E501 + raise ValueError("Invalid value for `right_bottom`, must not be `None`") # noqa: E501 self._right_bottom = right_bottom @@ -282,6 +294,8 @@ def right_top(self, right_top): :param right_top: The right_top of this DocumentPosition. # noqa: E501 :type right_top: Point """ + if self.local_vars_configuration.client_side_validation and right_top is None: # noqa: E501 + raise ValueError("Invalid value for `right_top`, must not be `None`") # noqa: E501 self._right_top = right_top @@ -303,6 +317,8 @@ def dpi(self, dpi): :param dpi: The dpi of this DocumentPosition. # noqa: E501 :type dpi: int """ + if self.local_vars_configuration.client_side_validation and dpi is None: # noqa: E501 + raise ValueError("Invalid value for `dpi`, must not be `None`") # noqa: E501 self._dpi = dpi diff --git a/regula/documentreader/webclient/gen/models/document_position_result.py b/regula/documentreader/webclient/gen/models/document_position_result.py index 404c2db..802f85a 100644 --- a/regula/documentreader/webclient/gen/models/document_position_result.py +++ b/regula/documentreader/webclient/gen/models/document_position_result.py @@ -63,8 +63,7 @@ def __init__(self, document_position=None, buf_length=None, light=None, list_idx self._result_type = None self.discriminator = None - if document_position is not None: - self.document_position = document_position + self.document_position = document_position if buf_length is not None: self.buf_length = buf_length if light is not None: @@ -93,6 +92,8 @@ def document_position(self, document_position): :param document_position: The document_position of this DocumentPositionResult. # noqa: E501 :type document_position: DocumentPosition """ + if self.local_vars_configuration.client_side_validation and document_position is None: # noqa: E501 + raise ValueError("Invalid value for `document_position`, must not be `None`") # noqa: E501 self._document_position = document_position diff --git a/regula/documentreader/webclient/gen/models/document_position_result_all_of.py b/regula/documentreader/webclient/gen/models/document_position_result_all_of.py index 2c16244..e15f775 100644 --- a/regula/documentreader/webclient/gen/models/document_position_result_all_of.py +++ b/regula/documentreader/webclient/gen/models/document_position_result_all_of.py @@ -48,8 +48,7 @@ def __init__(self, document_position=None, local_vars_configuration=None): # no self._document_position = None self.discriminator = None - if document_position is not None: - self.document_position = document_position + self.document_position = document_position @property def document_position(self): @@ -69,6 +68,8 @@ def document_position(self, document_position): :param document_position: The document_position of this DocumentPositionResultAllOf. # noqa: E501 :type document_position: DocumentPosition """ + if self.local_vars_configuration.client_side_validation and document_position is None: # noqa: E501 + raise ValueError("Invalid value for `document_position`, must not be `None`") # noqa: E501 self._document_position = document_position diff --git a/regula/documentreader/webclient/gen/models/documents_database.py b/regula/documentreader/webclient/gen/models/documents_database.py new file mode 100644 index 0000000..b479f4e --- /dev/null +++ b/regula/documentreader/webclient/gen/models/documents_database.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" + +""" +class DocumentsDatabase(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'description': 'str', + 'export_date': 'str', + 'id': 'str', + 'version': 'str' + } + + attribute_map = { + 'description': 'Description', + 'export_date': 'ExportDate', + 'id': 'ID', + 'version': 'Version' + } + + def __init__(self, description=None, export_date=None, id=None, version=None, local_vars_configuration=None): # noqa: E501 + """DocumentsDatabase - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._description = None + self._export_date = None + self._id = None + self._version = None + self.discriminator = None + + if description is not None: + self.description = description + if export_date is not None: + self.export_date = export_date + if id is not None: + self.id = id + if version is not None: + self.version = version + + @property + def description(self): + """Gets the description of this DocumentsDatabase. # noqa: E501 + + + :return: The description of this DocumentsDatabase. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this DocumentsDatabase. + + + :param description: The description of this DocumentsDatabase. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def export_date(self): + """Gets the export_date of this DocumentsDatabase. # noqa: E501 + + + :return: The export_date of this DocumentsDatabase. # noqa: E501 + :rtype: str + """ + return self._export_date + + @export_date.setter + def export_date(self, export_date): + """Sets the export_date of this DocumentsDatabase. + + + :param export_date: The export_date of this DocumentsDatabase. # noqa: E501 + :type export_date: str + """ + + self._export_date = export_date + + @property + def id(self): + """Gets the id of this DocumentsDatabase. # noqa: E501 + + + :return: The id of this DocumentsDatabase. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DocumentsDatabase. + + + :param id: The id of this DocumentsDatabase. # noqa: E501 + :type id: str + """ + + self._id = id + + @property + def version(self): + """Gets the version of this DocumentsDatabase. # noqa: E501 + + + :return: The version of this DocumentsDatabase. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this DocumentsDatabase. + + + :param version: The version of this DocumentsDatabase. # noqa: E501 + :type version: str + """ + + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DocumentsDatabase): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DocumentsDatabase): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/fdsid_list.py b/regula/documentreader/webclient/gen/models/fdsid_list.py index 1e1471e..6228696 100644 --- a/regula/documentreader/webclient/gen/models/fdsid_list.py +++ b/regula/documentreader/webclient/gen/models/fdsid_list.py @@ -33,6 +33,7 @@ class FDSIDList(object): """ openapi_types = { 'icao_code': 'str', + 'count': 'float', 'list': 'list[int]', 'd_type': 'DocumentType', 'd_format': 'DocumentFormat', @@ -47,6 +48,7 @@ class FDSIDList(object): attribute_map = { 'icao_code': 'ICAOCode', + 'count': 'Count', 'list': 'List', 'd_type': 'dType', 'd_format': 'dFormat', @@ -59,13 +61,14 @@ class FDSIDList(object): 'is_deprecated': 'isDeprecated' } - def __init__(self, icao_code=None, list=None, d_type=None, d_format=None, d_mrz=None, d_description=None, d_year=None, d_country_name=None, d_state_code=None, d_state_name=None, is_deprecated=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, icao_code=None, count=None, list=None, d_type=None, d_format=None, d_mrz=None, d_description=None, d_year=None, d_country_name=None, d_state_code=None, d_state_name=None, is_deprecated=None, local_vars_configuration=None): # noqa: E501 """FDSIDList - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._icao_code = None + self._count = None self._list = None self._d_type = None self._d_format = None @@ -78,28 +81,21 @@ def __init__(self, icao_code=None, list=None, d_type=None, d_format=None, d_mrz= self._is_deprecated = None self.discriminator = None - if icao_code is not None: - self.icao_code = icao_code - if list is not None: - self.list = list - if d_type is not None: - self.d_type = d_type - if d_format is not None: - self.d_format = d_format - if d_mrz is not None: - self.d_mrz = d_mrz + self.icao_code = icao_code + self.count = count + self.list = list + self.d_type = d_type + self.d_format = d_format + self.d_mrz = d_mrz if d_description is not None: self.d_description = d_description - if d_year is not None: - self.d_year = d_year - if d_country_name is not None: - self.d_country_name = d_country_name + self.d_year = d_year + self.d_country_name = d_country_name if d_state_code is not None: self.d_state_code = d_state_code if d_state_name is not None: self.d_state_name = d_state_name - if is_deprecated is not None: - self.is_deprecated = is_deprecated + self.is_deprecated = is_deprecated @property def icao_code(self): @@ -121,6 +117,8 @@ def icao_code(self, icao_code): :param icao_code: The icao_code of this FDSIDList. # noqa: E501 :type icao_code: str """ + if self.local_vars_configuration.client_side_validation and icao_code is None: # noqa: E501 + raise ValueError("Invalid value for `icao_code`, must not be `None`") # noqa: E501 if (self.local_vars_configuration.client_side_validation and icao_code is not None and len(icao_code) > 3): raise ValueError("Invalid value for `icao_code`, length must be less than or equal to `3`") # noqa: E501 @@ -130,6 +128,31 @@ def icao_code(self, icao_code): self._icao_code = icao_code + @property + def count(self): + """Gets the count of this FDSIDList. # noqa: E501 + + Number of elements in the List # noqa: E501 + + :return: The count of this FDSIDList. # noqa: E501 + :rtype: float + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this FDSIDList. + + Number of elements in the List # noqa: E501 + + :param count: The count of this FDSIDList. # noqa: E501 + :type count: float + """ + if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501 + raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 + + self._count = count + @property def list(self): """Gets the list of this FDSIDList. # noqa: E501 @@ -150,6 +173,8 @@ def list(self, list): :param list: The list of this FDSIDList. # noqa: E501 :type list: list[int] """ + if self.local_vars_configuration.client_side_validation and list is None: # noqa: E501 + raise ValueError("Invalid value for `list`, must not be `None`") # noqa: E501 self._list = list @@ -171,6 +196,8 @@ def d_type(self, d_type): :param d_type: The d_type of this FDSIDList. # noqa: E501 :type d_type: DocumentType """ + if self.local_vars_configuration.client_side_validation and d_type is None: # noqa: E501 + raise ValueError("Invalid value for `d_type`, must not be `None`") # noqa: E501 self._d_type = d_type @@ -192,6 +219,8 @@ def d_format(self, d_format): :param d_format: The d_format of this FDSIDList. # noqa: E501 :type d_format: DocumentFormat """ + if self.local_vars_configuration.client_side_validation and d_format is None: # noqa: E501 + raise ValueError("Invalid value for `d_format`, must not be `None`") # noqa: E501 self._d_format = d_format @@ -215,6 +244,8 @@ def d_mrz(self, d_mrz): :param d_mrz: The d_mrz of this FDSIDList. # noqa: E501 :type d_mrz: bool """ + if self.local_vars_configuration.client_side_validation and d_mrz is None: # noqa: E501 + raise ValueError("Invalid value for `d_mrz`, must not be `None`") # noqa: E501 self._d_mrz = d_mrz @@ -261,6 +292,8 @@ def d_year(self, d_year): :param d_year: The d_year of this FDSIDList. # noqa: E501 :type d_year: str """ + if self.local_vars_configuration.client_side_validation and d_year is None: # noqa: E501 + raise ValueError("Invalid value for `d_year`, must not be `None`") # noqa: E501 self._d_year = d_year @@ -284,6 +317,8 @@ def d_country_name(self, d_country_name): :param d_country_name: The d_country_name of this FDSIDList. # noqa: E501 :type d_country_name: str """ + if self.local_vars_configuration.client_side_validation and d_country_name is None: # noqa: E501 + raise ValueError("Invalid value for `d_country_name`, must not be `None`") # noqa: E501 self._d_country_name = d_country_name @@ -353,6 +388,8 @@ def is_deprecated(self, is_deprecated): :param is_deprecated: The is_deprecated of this FDSIDList. # noqa: E501 :type is_deprecated: bool """ + if self.local_vars_configuration.client_side_validation and is_deprecated is None: # noqa: E501 + raise ValueError("Invalid value for `is_deprecated`, must not be `None`") # noqa: E501 self._is_deprecated = is_deprecated diff --git a/regula/documentreader/webclient/gen/models/fiber_result.py b/regula/documentreader/webclient/gen/models/fiber_result.py index ceb6149..00897ac 100644 --- a/regula/documentreader/webclient/gen/models/fiber_result.py +++ b/regula/documentreader/webclient/gen/models/fiber_result.py @@ -91,24 +91,17 @@ def __init__(self, type=0, element_result=None, element_diagnose=None, percent_v self.element_diagnose = element_diagnose if percent_value is not None: self.percent_value = percent_value - if rect_count is not None: - self.rect_count = rect_count - if expected_count is not None: - self.expected_count = expected_count + self.rect_count = rect_count + self.expected_count = expected_count if light_value is not None: self.light_value = light_value if light_disp is not None: self.light_disp = light_disp - if rect_array is not None: - self.rect_array = rect_array - if width is not None: - self.width = width - if length is not None: - self.length = length - if area is not None: - self.area = area - if color_values is not None: - self.color_values = color_values + self.rect_array = rect_array + self.width = width + self.length = length + self.area = area + self.color_values = color_values @property def type(self): @@ -218,6 +211,8 @@ def rect_count(self, rect_count): :param rect_count: The rect_count of this FiberResult. # noqa: E501 :type rect_count: int """ + if self.local_vars_configuration.client_side_validation and rect_count is None: # noqa: E501 + raise ValueError("Invalid value for `rect_count`, must not be `None`") # noqa: E501 self._rect_count = rect_count @@ -241,6 +236,8 @@ def expected_count(self, expected_count): :param expected_count: The expected_count of this FiberResult. # noqa: E501 :type expected_count: int """ + if self.local_vars_configuration.client_side_validation and expected_count is None: # noqa: E501 + raise ValueError("Invalid value for `expected_count`, must not be `None`") # noqa: E501 self._expected_count = expected_count @@ -308,6 +305,8 @@ def rect_array(self, rect_array): :param rect_array: The rect_array of this FiberResult. # noqa: E501 :type rect_array: list[RectangleCoordinates] """ + if self.local_vars_configuration.client_side_validation and rect_array is None: # noqa: E501 + raise ValueError("Invalid value for `rect_array`, must not be `None`") # noqa: E501 self._rect_array = rect_array @@ -331,6 +330,8 @@ def width(self, width): :param width: The width of this FiberResult. # noqa: E501 :type width: list[int] """ + if self.local_vars_configuration.client_side_validation and width is None: # noqa: E501 + raise ValueError("Invalid value for `width`, must not be `None`") # noqa: E501 self._width = width @@ -354,6 +355,8 @@ def length(self, length): :param length: The length of this FiberResult. # noqa: E501 :type length: list[int] """ + if self.local_vars_configuration.client_side_validation and length is None: # noqa: E501 + raise ValueError("Invalid value for `length`, must not be `None`") # noqa: E501 self._length = length @@ -377,6 +380,8 @@ def area(self, area): :param area: The area of this FiberResult. # noqa: E501 :type area: list[int] """ + if self.local_vars_configuration.client_side_validation and area is None: # noqa: E501 + raise ValueError("Invalid value for `area`, must not be `None`") # noqa: E501 self._area = area @@ -400,6 +405,8 @@ def color_values(self, color_values): :param color_values: The color_values of this FiberResult. # noqa: E501 :type color_values: list[int] """ + if self.local_vars_configuration.client_side_validation and color_values is None: # noqa: E501 + raise ValueError("Invalid value for `color_values`, must not be `None`") # noqa: E501 self._color_values = color_values diff --git a/regula/documentreader/webclient/gen/models/fiber_result_all_of.py b/regula/documentreader/webclient/gen/models/fiber_result_all_of.py index cfaa6f5..6c9f120 100644 --- a/regula/documentreader/webclient/gen/models/fiber_result_all_of.py +++ b/regula/documentreader/webclient/gen/models/fiber_result_all_of.py @@ -72,24 +72,17 @@ def __init__(self, rect_count=None, expected_count=None, light_value=None, light self._color_values = None self.discriminator = None - if rect_count is not None: - self.rect_count = rect_count - if expected_count is not None: - self.expected_count = expected_count + self.rect_count = rect_count + self.expected_count = expected_count if light_value is not None: self.light_value = light_value if light_disp is not None: self.light_disp = light_disp - if rect_array is not None: - self.rect_array = rect_array - if width is not None: - self.width = width - if length is not None: - self.length = length - if area is not None: - self.area = area - if color_values is not None: - self.color_values = color_values + self.rect_array = rect_array + self.width = width + self.length = length + self.area = area + self.color_values = color_values @property def rect_count(self): @@ -111,6 +104,8 @@ def rect_count(self, rect_count): :param rect_count: The rect_count of this FiberResultAllOf. # noqa: E501 :type rect_count: int """ + if self.local_vars_configuration.client_side_validation and rect_count is None: # noqa: E501 + raise ValueError("Invalid value for `rect_count`, must not be `None`") # noqa: E501 self._rect_count = rect_count @@ -134,6 +129,8 @@ def expected_count(self, expected_count): :param expected_count: The expected_count of this FiberResultAllOf. # noqa: E501 :type expected_count: int """ + if self.local_vars_configuration.client_side_validation and expected_count is None: # noqa: E501 + raise ValueError("Invalid value for `expected_count`, must not be `None`") # noqa: E501 self._expected_count = expected_count @@ -201,6 +198,8 @@ def rect_array(self, rect_array): :param rect_array: The rect_array of this FiberResultAllOf. # noqa: E501 :type rect_array: list[RectangleCoordinates] """ + if self.local_vars_configuration.client_side_validation and rect_array is None: # noqa: E501 + raise ValueError("Invalid value for `rect_array`, must not be `None`") # noqa: E501 self._rect_array = rect_array @@ -224,6 +223,8 @@ def width(self, width): :param width: The width of this FiberResultAllOf. # noqa: E501 :type width: list[int] """ + if self.local_vars_configuration.client_side_validation and width is None: # noqa: E501 + raise ValueError("Invalid value for `width`, must not be `None`") # noqa: E501 self._width = width @@ -247,6 +248,8 @@ def length(self, length): :param length: The length of this FiberResultAllOf. # noqa: E501 :type length: list[int] """ + if self.local_vars_configuration.client_side_validation and length is None: # noqa: E501 + raise ValueError("Invalid value for `length`, must not be `None`") # noqa: E501 self._length = length @@ -270,6 +273,8 @@ def area(self, area): :param area: The area of this FiberResultAllOf. # noqa: E501 :type area: list[int] """ + if self.local_vars_configuration.client_side_validation and area is None: # noqa: E501 + raise ValueError("Invalid value for `area`, must not be `None`") # noqa: E501 self._area = area @@ -293,6 +298,8 @@ def color_values(self, color_values): :param color_values: The color_values of this FiberResultAllOf. # noqa: E501 :type color_values: list[int] """ + if self.local_vars_configuration.client_side_validation and color_values is None: # noqa: E501 + raise ValueError("Invalid value for `color_values`, must not be `None`") # noqa: E501 self._color_values = color_values diff --git a/regula/documentreader/webclient/gen/models/graphic_field.py b/regula/documentreader/webclient/gen/models/graphic_field.py index e2cffa2..f8f764a 100755 --- a/regula/documentreader/webclient/gen/models/graphic_field.py +++ b/regula/documentreader/webclient/gen/models/graphic_field.py @@ -15,7 +15,7 @@ """ - +Information about one graphic field - abstract class """ class GraphicField(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -33,51 +33,30 @@ class GraphicField(object): """ openapi_types = { 'field_type': 'GraphicFieldType', - 'image': 'ImageData', - 'field_rect': 'RectangleCoordinates', - 'rfid_origin_dg': 'int', - 'rfid_origin_dg_tag': 'int', - 'rfid_origin_tag_entry': 'int', - 'rfid_origin_entry_view': 'int' + 'field_name': 'str', + 'image': 'ImageData' } attribute_map = { 'field_type': 'FieldType', - 'image': 'image', - 'field_rect': 'FieldRect', - 'rfid_origin_dg': 'RFID_OriginDG', - 'rfid_origin_dg_tag': 'RFID_OriginDGTag', - 'rfid_origin_tag_entry': 'RFID_OriginTagEntry', - 'rfid_origin_entry_view': 'RFID_OriginEntryView' + 'field_name': 'FieldName', + 'image': 'image' } - def __init__(self, field_type=None, image=None, field_rect=None, rfid_origin_dg=None, rfid_origin_dg_tag=None, rfid_origin_tag_entry=None, rfid_origin_entry_view=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, field_type=None, field_name=None, image=None, local_vars_configuration=None): # noqa: E501 """GraphicField - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._field_type = None + self._field_name = None self._image = None - self._field_rect = None - self._rfid_origin_dg = None - self._rfid_origin_dg_tag = None - self._rfid_origin_tag_entry = None - self._rfid_origin_entry_view = None self.discriminator = None self.field_type = field_type + self.field_name = field_name self.image = image - if field_rect is not None: - self.field_rect = field_rect - if rfid_origin_dg is not None: - self.rfid_origin_dg = rfid_origin_dg - if rfid_origin_dg_tag is not None: - self.rfid_origin_dg_tag = rfid_origin_dg_tag - if rfid_origin_tag_entry is not None: - self.rfid_origin_tag_entry = rfid_origin_tag_entry - if rfid_origin_entry_view is not None: - self.rfid_origin_entry_view = rfid_origin_entry_view @property def field_type(self): @@ -102,6 +81,31 @@ def field_type(self, field_type): self._field_type = field_type + @property + def field_name(self): + """Gets the field_name of this GraphicField. # noqa: E501 + + Graphic field symbolic name # noqa: E501 + + :return: The field_name of this GraphicField. # noqa: E501 + :rtype: str + """ + return self._field_name + + @field_name.setter + def field_name(self, field_name): + """Sets the field_name of this GraphicField. + + Graphic field symbolic name # noqa: E501 + + :param field_name: The field_name of this GraphicField. # noqa: E501 + :type field_name: str + """ + if self.local_vars_configuration.client_side_validation and field_name is None: # noqa: E501 + raise ValueError("Invalid value for `field_name`, must not be `None`") # noqa: E501 + + self._field_name = field_name + @property def image(self): """Gets the image of this GraphicField. # noqa: E501 @@ -125,119 +129,6 @@ def image(self, image): self._image = image - @property - def field_rect(self): - """Gets the field_rect of this GraphicField. # noqa: E501 - - - :return: The field_rect of this GraphicField. # noqa: E501 - :rtype: RectangleCoordinates - """ - return self._field_rect - - @field_rect.setter - def field_rect(self, field_rect): - """Sets the field_rect of this GraphicField. - - - :param field_rect: The field_rect of this GraphicField. # noqa: E501 - :type field_rect: RectangleCoordinates - """ - - self._field_rect = field_rect - - @property - def rfid_origin_dg(self): - """Gets the rfid_origin_dg of this GraphicField. # noqa: E501 - - Source data group file. Only for Result.RFID_GRAPHICS result. # noqa: E501 - - :return: The rfid_origin_dg of this GraphicField. # noqa: E501 - :rtype: int - """ - return self._rfid_origin_dg - - @rfid_origin_dg.setter - def rfid_origin_dg(self, rfid_origin_dg): - """Sets the rfid_origin_dg of this GraphicField. - - Source data group file. Only for Result.RFID_GRAPHICS result. # noqa: E501 - - :param rfid_origin_dg: The rfid_origin_dg of this GraphicField. # noqa: E501 - :type rfid_origin_dg: int - """ - - self._rfid_origin_dg = rfid_origin_dg - - @property - def rfid_origin_dg_tag(self): - """Gets the rfid_origin_dg_tag of this GraphicField. # noqa: E501 - - Index of the source record of the image with biometric information in the information data group. Only for Result.RFID_GRAPHICS result. # noqa: E501 - - :return: The rfid_origin_dg_tag of this GraphicField. # noqa: E501 - :rtype: int - """ - return self._rfid_origin_dg_tag - - @rfid_origin_dg_tag.setter - def rfid_origin_dg_tag(self, rfid_origin_dg_tag): - """Sets the rfid_origin_dg_tag of this GraphicField. - - Index of the source record of the image with biometric information in the information data group. Only for Result.RFID_GRAPHICS result. # noqa: E501 - - :param rfid_origin_dg_tag: The rfid_origin_dg_tag of this GraphicField. # noqa: E501 - :type rfid_origin_dg_tag: int - """ - - self._rfid_origin_dg_tag = rfid_origin_dg_tag - - @property - def rfid_origin_tag_entry(self): - """Gets the rfid_origin_tag_entry of this GraphicField. # noqa: E501 - - Index of the template in the record with biometric data. Only for Result.RFID_GRAPHICS result. # noqa: E501 - - :return: The rfid_origin_tag_entry of this GraphicField. # noqa: E501 - :rtype: int - """ - return self._rfid_origin_tag_entry - - @rfid_origin_tag_entry.setter - def rfid_origin_tag_entry(self, rfid_origin_tag_entry): - """Sets the rfid_origin_tag_entry of this GraphicField. - - Index of the template in the record with biometric data. Only for Result.RFID_GRAPHICS result. # noqa: E501 - - :param rfid_origin_tag_entry: The rfid_origin_tag_entry of this GraphicField. # noqa: E501 - :type rfid_origin_tag_entry: int - """ - - self._rfid_origin_tag_entry = rfid_origin_tag_entry - - @property - def rfid_origin_entry_view(self): - """Gets the rfid_origin_entry_view of this GraphicField. # noqa: E501 - - Index of the variant of the biometric data template. Only for Result.RFID_GRAPHICS result. # noqa: E501 - - :return: The rfid_origin_entry_view of this GraphicField. # noqa: E501 - :rtype: int - """ - return self._rfid_origin_entry_view - - @rfid_origin_entry_view.setter - def rfid_origin_entry_view(self, rfid_origin_entry_view): - """Sets the rfid_origin_entry_view of this GraphicField. - - Index of the variant of the biometric data template. Only for Result.RFID_GRAPHICS result. # noqa: E501 - - :param rfid_origin_entry_view: The rfid_origin_entry_view of this GraphicField. # noqa: E501 - :type rfid_origin_entry_view: int - """ - - self._rfid_origin_entry_view = rfid_origin_entry_view - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/graphic_field_rect.py b/regula/documentreader/webclient/gen/models/graphic_field_rect.py new file mode 100644 index 0000000..4007740 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/graphic_field_rect.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Information about one graphic field, which is a rectangle +""" +class GraphicFieldRect(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'field_rect': 'RectangleCoordinates', + 'field_type': 'GraphicFieldType', + 'field_name': 'str', + 'image': 'ImageData' + } + + attribute_map = { + 'field_rect': 'FieldRect', + 'field_type': 'FieldType', + 'field_name': 'FieldName', + 'image': 'image' + } + + def __init__(self, field_rect=None, field_type=None, field_name=None, image=None, local_vars_configuration=None): # noqa: E501 + """GraphicFieldRect - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._field_rect = None + self._field_type = None + self._field_name = None + self._image = None + self.discriminator = None + + self.field_rect = field_rect + self.field_type = field_type + self.field_name = field_name + self.image = image + + @property + def field_rect(self): + """Gets the field_rect of this GraphicFieldRect. # noqa: E501 + + + :return: The field_rect of this GraphicFieldRect. # noqa: E501 + :rtype: RectangleCoordinates + """ + return self._field_rect + + @field_rect.setter + def field_rect(self, field_rect): + """Sets the field_rect of this GraphicFieldRect. + + + :param field_rect: The field_rect of this GraphicFieldRect. # noqa: E501 + :type field_rect: RectangleCoordinates + """ + if self.local_vars_configuration.client_side_validation and field_rect is None: # noqa: E501 + raise ValueError("Invalid value for `field_rect`, must not be `None`") # noqa: E501 + + self._field_rect = field_rect + + @property + def field_type(self): + """Gets the field_type of this GraphicFieldRect. # noqa: E501 + + + :return: The field_type of this GraphicFieldRect. # noqa: E501 + :rtype: GraphicFieldType + """ + return self._field_type + + @field_type.setter + def field_type(self, field_type): + """Sets the field_type of this GraphicFieldRect. + + + :param field_type: The field_type of this GraphicFieldRect. # noqa: E501 + :type field_type: GraphicFieldType + """ + if self.local_vars_configuration.client_side_validation and field_type is None: # noqa: E501 + raise ValueError("Invalid value for `field_type`, must not be `None`") # noqa: E501 + + self._field_type = field_type + + @property + def field_name(self): + """Gets the field_name of this GraphicFieldRect. # noqa: E501 + + Graphic field symbolic name # noqa: E501 + + :return: The field_name of this GraphicFieldRect. # noqa: E501 + :rtype: str + """ + return self._field_name + + @field_name.setter + def field_name(self, field_name): + """Sets the field_name of this GraphicFieldRect. + + Graphic field symbolic name # noqa: E501 + + :param field_name: The field_name of this GraphicFieldRect. # noqa: E501 + :type field_name: str + """ + if self.local_vars_configuration.client_side_validation and field_name is None: # noqa: E501 + raise ValueError("Invalid value for `field_name`, must not be `None`") # noqa: E501 + + self._field_name = field_name + + @property + def image(self): + """Gets the image of this GraphicFieldRect. # noqa: E501 + + + :return: The image of this GraphicFieldRect. # noqa: E501 + :rtype: ImageData + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this GraphicFieldRect. + + + :param image: The image of this GraphicFieldRect. # noqa: E501 + :type image: ImageData + """ + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 + + self._image = image + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GraphicFieldRect): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GraphicFieldRect): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/graphic_field_rfid.py b/regula/documentreader/webclient/gen/models/graphic_field_rfid.py new file mode 100644 index 0000000..6c488d4 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/graphic_field_rfid.py @@ -0,0 +1,290 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Information about one graphic field, which is a RFID +""" +class GraphicFieldRfid(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'rfid_origin_dg': 'RfidDataGroupTypeTag', + 'rfid_origin_dg_tag': 'int', + 'rfid_origin_tag_entry': 'int', + 'rfid_origin_entry_view': 'int', + 'field_type': 'GraphicFieldType', + 'field_name': 'str', + 'image': 'ImageData' + } + + attribute_map = { + 'rfid_origin_dg': 'RFID_OriginDG', + 'rfid_origin_dg_tag': 'RFID_OriginDGTag', + 'rfid_origin_tag_entry': 'RFID_OriginTagEntry', + 'rfid_origin_entry_view': 'RFID_OriginEntryView', + 'field_type': 'FieldType', + 'field_name': 'FieldName', + 'image': 'image' + } + + def __init__(self, rfid_origin_dg=None, rfid_origin_dg_tag=None, rfid_origin_tag_entry=None, rfid_origin_entry_view=None, field_type=None, field_name=None, image=None, local_vars_configuration=None): # noqa: E501 + """GraphicFieldRfid - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._rfid_origin_dg = None + self._rfid_origin_dg_tag = None + self._rfid_origin_tag_entry = None + self._rfid_origin_entry_view = None + self._field_type = None + self._field_name = None + self._image = None + self.discriminator = None + + self.rfid_origin_dg = rfid_origin_dg + self.rfid_origin_dg_tag = rfid_origin_dg_tag + self.rfid_origin_tag_entry = rfid_origin_tag_entry + self.rfid_origin_entry_view = rfid_origin_entry_view + self.field_type = field_type + self.field_name = field_name + self.image = image + + @property + def rfid_origin_dg(self): + """Gets the rfid_origin_dg of this GraphicFieldRfid. # noqa: E501 + + + :return: The rfid_origin_dg of this GraphicFieldRfid. # noqa: E501 + :rtype: RfidDataGroupTypeTag + """ + return self._rfid_origin_dg + + @rfid_origin_dg.setter + def rfid_origin_dg(self, rfid_origin_dg): + """Sets the rfid_origin_dg of this GraphicFieldRfid. + + + :param rfid_origin_dg: The rfid_origin_dg of this GraphicFieldRfid. # noqa: E501 + :type rfid_origin_dg: RfidDataGroupTypeTag + """ + if self.local_vars_configuration.client_side_validation and rfid_origin_dg is None: # noqa: E501 + raise ValueError("Invalid value for `rfid_origin_dg`, must not be `None`") # noqa: E501 + + self._rfid_origin_dg = rfid_origin_dg + + @property + def rfid_origin_dg_tag(self): + """Gets the rfid_origin_dg_tag of this GraphicFieldRfid. # noqa: E501 + + Index of the source record of the image with biometric information in the information data group. Only for Result.RFID_GRAPHICS result. # noqa: E501 + + :return: The rfid_origin_dg_tag of this GraphicFieldRfid. # noqa: E501 + :rtype: int + """ + return self._rfid_origin_dg_tag + + @rfid_origin_dg_tag.setter + def rfid_origin_dg_tag(self, rfid_origin_dg_tag): + """Sets the rfid_origin_dg_tag of this GraphicFieldRfid. + + Index of the source record of the image with biometric information in the information data group. Only for Result.RFID_GRAPHICS result. # noqa: E501 + + :param rfid_origin_dg_tag: The rfid_origin_dg_tag of this GraphicFieldRfid. # noqa: E501 + :type rfid_origin_dg_tag: int + """ + if self.local_vars_configuration.client_side_validation and rfid_origin_dg_tag is None: # noqa: E501 + raise ValueError("Invalid value for `rfid_origin_dg_tag`, must not be `None`") # noqa: E501 + + self._rfid_origin_dg_tag = rfid_origin_dg_tag + + @property + def rfid_origin_tag_entry(self): + """Gets the rfid_origin_tag_entry of this GraphicFieldRfid. # noqa: E501 + + Index of the template in the record with biometric data. Only for Result.RFID_GRAPHICS result. # noqa: E501 + + :return: The rfid_origin_tag_entry of this GraphicFieldRfid. # noqa: E501 + :rtype: int + """ + return self._rfid_origin_tag_entry + + @rfid_origin_tag_entry.setter + def rfid_origin_tag_entry(self, rfid_origin_tag_entry): + """Sets the rfid_origin_tag_entry of this GraphicFieldRfid. + + Index of the template in the record with biometric data. Only for Result.RFID_GRAPHICS result. # noqa: E501 + + :param rfid_origin_tag_entry: The rfid_origin_tag_entry of this GraphicFieldRfid. # noqa: E501 + :type rfid_origin_tag_entry: int + """ + if self.local_vars_configuration.client_side_validation and rfid_origin_tag_entry is None: # noqa: E501 + raise ValueError("Invalid value for `rfid_origin_tag_entry`, must not be `None`") # noqa: E501 + + self._rfid_origin_tag_entry = rfid_origin_tag_entry + + @property + def rfid_origin_entry_view(self): + """Gets the rfid_origin_entry_view of this GraphicFieldRfid. # noqa: E501 + + Index of the variant of the biometric data template. Only for Result.RFID_GRAPHICS result. # noqa: E501 + + :return: The rfid_origin_entry_view of this GraphicFieldRfid. # noqa: E501 + :rtype: int + """ + return self._rfid_origin_entry_view + + @rfid_origin_entry_view.setter + def rfid_origin_entry_view(self, rfid_origin_entry_view): + """Sets the rfid_origin_entry_view of this GraphicFieldRfid. + + Index of the variant of the biometric data template. Only for Result.RFID_GRAPHICS result. # noqa: E501 + + :param rfid_origin_entry_view: The rfid_origin_entry_view of this GraphicFieldRfid. # noqa: E501 + :type rfid_origin_entry_view: int + """ + if self.local_vars_configuration.client_side_validation and rfid_origin_entry_view is None: # noqa: E501 + raise ValueError("Invalid value for `rfid_origin_entry_view`, must not be `None`") # noqa: E501 + + self._rfid_origin_entry_view = rfid_origin_entry_view + + @property + def field_type(self): + """Gets the field_type of this GraphicFieldRfid. # noqa: E501 + + + :return: The field_type of this GraphicFieldRfid. # noqa: E501 + :rtype: GraphicFieldType + """ + return self._field_type + + @field_type.setter + def field_type(self, field_type): + """Sets the field_type of this GraphicFieldRfid. + + + :param field_type: The field_type of this GraphicFieldRfid. # noqa: E501 + :type field_type: GraphicFieldType + """ + if self.local_vars_configuration.client_side_validation and field_type is None: # noqa: E501 + raise ValueError("Invalid value for `field_type`, must not be `None`") # noqa: E501 + + self._field_type = field_type + + @property + def field_name(self): + """Gets the field_name of this GraphicFieldRfid. # noqa: E501 + + Graphic field symbolic name # noqa: E501 + + :return: The field_name of this GraphicFieldRfid. # noqa: E501 + :rtype: str + """ + return self._field_name + + @field_name.setter + def field_name(self, field_name): + """Sets the field_name of this GraphicFieldRfid. + + Graphic field symbolic name # noqa: E501 + + :param field_name: The field_name of this GraphicFieldRfid. # noqa: E501 + :type field_name: str + """ + if self.local_vars_configuration.client_side_validation and field_name is None: # noqa: E501 + raise ValueError("Invalid value for `field_name`, must not be `None`") # noqa: E501 + + self._field_name = field_name + + @property + def image(self): + """Gets the image of this GraphicFieldRfid. # noqa: E501 + + + :return: The image of this GraphicFieldRfid. # noqa: E501 + :rtype: ImageData + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this GraphicFieldRfid. + + + :param image: The image of this GraphicFieldRfid. # noqa: E501 + :type image: ImageData + """ + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 + + self._image = image + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GraphicFieldRfid): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GraphicFieldRfid): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/graphic_field_rfid_all_of.py b/regula/documentreader/webclient/gen/models/graphic_field_rfid_all_of.py new file mode 100644 index 0000000..75eb411 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/graphic_field_rfid_all_of.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" + +""" +class GraphicFieldRfidAllOf(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'rfid_origin_dg': 'RfidDataGroupTypeTag', + 'rfid_origin_dg_tag': 'int', + 'rfid_origin_tag_entry': 'int', + 'rfid_origin_entry_view': 'int' + } + + attribute_map = { + 'rfid_origin_dg': 'RFID_OriginDG', + 'rfid_origin_dg_tag': 'RFID_OriginDGTag', + 'rfid_origin_tag_entry': 'RFID_OriginTagEntry', + 'rfid_origin_entry_view': 'RFID_OriginEntryView' + } + + def __init__(self, rfid_origin_dg=None, rfid_origin_dg_tag=None, rfid_origin_tag_entry=None, rfid_origin_entry_view=None, local_vars_configuration=None): # noqa: E501 + """GraphicFieldRfidAllOf - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._rfid_origin_dg = None + self._rfid_origin_dg_tag = None + self._rfid_origin_tag_entry = None + self._rfid_origin_entry_view = None + self.discriminator = None + + if rfid_origin_dg is not None: + self.rfid_origin_dg = rfid_origin_dg + if rfid_origin_dg_tag is not None: + self.rfid_origin_dg_tag = rfid_origin_dg_tag + if rfid_origin_tag_entry is not None: + self.rfid_origin_tag_entry = rfid_origin_tag_entry + if rfid_origin_entry_view is not None: + self.rfid_origin_entry_view = rfid_origin_entry_view + + @property + def rfid_origin_dg(self): + """Gets the rfid_origin_dg of this GraphicFieldRfidAllOf. # noqa: E501 + + + :return: The rfid_origin_dg of this GraphicFieldRfidAllOf. # noqa: E501 + :rtype: RfidDataGroupTypeTag + """ + return self._rfid_origin_dg + + @rfid_origin_dg.setter + def rfid_origin_dg(self, rfid_origin_dg): + """Sets the rfid_origin_dg of this GraphicFieldRfidAllOf. + + + :param rfid_origin_dg: The rfid_origin_dg of this GraphicFieldRfidAllOf. # noqa: E501 + :type rfid_origin_dg: RfidDataGroupTypeTag + """ + + self._rfid_origin_dg = rfid_origin_dg + + @property + def rfid_origin_dg_tag(self): + """Gets the rfid_origin_dg_tag of this GraphicFieldRfidAllOf. # noqa: E501 + + Index of the source record of the image with biometric information in the information data group. Only for Result.RFID_GRAPHICS result. # noqa: E501 + + :return: The rfid_origin_dg_tag of this GraphicFieldRfidAllOf. # noqa: E501 + :rtype: int + """ + return self._rfid_origin_dg_tag + + @rfid_origin_dg_tag.setter + def rfid_origin_dg_tag(self, rfid_origin_dg_tag): + """Sets the rfid_origin_dg_tag of this GraphicFieldRfidAllOf. + + Index of the source record of the image with biometric information in the information data group. Only for Result.RFID_GRAPHICS result. # noqa: E501 + + :param rfid_origin_dg_tag: The rfid_origin_dg_tag of this GraphicFieldRfidAllOf. # noqa: E501 + :type rfid_origin_dg_tag: int + """ + + self._rfid_origin_dg_tag = rfid_origin_dg_tag + + @property + def rfid_origin_tag_entry(self): + """Gets the rfid_origin_tag_entry of this GraphicFieldRfidAllOf. # noqa: E501 + + Index of the template in the record with biometric data. Only for Result.RFID_GRAPHICS result. # noqa: E501 + + :return: The rfid_origin_tag_entry of this GraphicFieldRfidAllOf. # noqa: E501 + :rtype: int + """ + return self._rfid_origin_tag_entry + + @rfid_origin_tag_entry.setter + def rfid_origin_tag_entry(self, rfid_origin_tag_entry): + """Sets the rfid_origin_tag_entry of this GraphicFieldRfidAllOf. + + Index of the template in the record with biometric data. Only for Result.RFID_GRAPHICS result. # noqa: E501 + + :param rfid_origin_tag_entry: The rfid_origin_tag_entry of this GraphicFieldRfidAllOf. # noqa: E501 + :type rfid_origin_tag_entry: int + """ + + self._rfid_origin_tag_entry = rfid_origin_tag_entry + + @property + def rfid_origin_entry_view(self): + """Gets the rfid_origin_entry_view of this GraphicFieldRfidAllOf. # noqa: E501 + + Index of the variant of the biometric data template. Only for Result.RFID_GRAPHICS result. # noqa: E501 + + :return: The rfid_origin_entry_view of this GraphicFieldRfidAllOf. # noqa: E501 + :rtype: int + """ + return self._rfid_origin_entry_view + + @rfid_origin_entry_view.setter + def rfid_origin_entry_view(self, rfid_origin_entry_view): + """Sets the rfid_origin_entry_view of this GraphicFieldRfidAllOf. + + Index of the variant of the biometric data template. Only for Result.RFID_GRAPHICS result. # noqa: E501 + + :param rfid_origin_entry_view: The rfid_origin_entry_view of this GraphicFieldRfidAllOf. # noqa: E501 + :type rfid_origin_entry_view: int + """ + + self._rfid_origin_entry_view = rfid_origin_entry_view + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GraphicFieldRfidAllOf): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GraphicFieldRfidAllOf): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/graphic_field_type.py b/regula/documentreader/webclient/gen/models/graphic_field_type.py index 5aa1756..134a751 100755 --- a/regula/documentreader/webclient/gen/models/graphic_field_type.py +++ b/regula/documentreader/webclient/gen/models/graphic_field_type.py @@ -46,6 +46,8 @@ class GraphicFieldType(object): STAMP = int("211") + PORTRAIT_OF_CHILD = int("212") + CONTACT_CHIP = int("213") OTHER = int("250") @@ -76,7 +78,7 @@ class GraphicFieldType(object): FINGER_TWO_THUMBS = int("315") - allowable_values = [PORTRAIT, FINGERPRINT, EYE, SIGNATURE, BAR_CODE, PROOF_OF_CITIZENSHIP, DOCUMENT_FRONT, DOCUMENT_REAR, COLOR_DYNAMIC, GHOST_PORTRAIT, STAMP, CONTACT_CHIP, OTHER, FINGER_LEFT_THUMB, FINGER_LEFT_INDEX, FINGER_LEFT_MIDDLE, FINGER_LEFT_RING, FINGER_LEFT_LITTLE, FINGER_RIGHT_THUMB, FINGER_RIGHT_INDEX, FINGER_RIGHT_MIDDLE, FINGER_RIGHT_RING, FINGER_RIGHT_LITTLE, FINGER_RIGHT_FOUR_FINGERS, FINGER_LEFT_FOUR_FINGERS, FINGER_TWO_THUMBS] # noqa: E501 + allowable_values = [PORTRAIT, FINGERPRINT, EYE, SIGNATURE, BAR_CODE, PROOF_OF_CITIZENSHIP, DOCUMENT_FRONT, DOCUMENT_REAR, COLOR_DYNAMIC, GHOST_PORTRAIT, STAMP, PORTRAIT_OF_CHILD, CONTACT_CHIP, OTHER, FINGER_LEFT_THUMB, FINGER_LEFT_INDEX, FINGER_LEFT_MIDDLE, FINGER_LEFT_RING, FINGER_LEFT_LITTLE, FINGER_RIGHT_THUMB, FINGER_RIGHT_INDEX, FINGER_RIGHT_MIDDLE, FINGER_RIGHT_RING, FINGER_RIGHT_LITTLE, FINGER_RIGHT_FOUR_FINGERS, FINGER_LEFT_FOUR_FINGERS, FINGER_TWO_THUMBS] # noqa: E501 """ Attributes: diff --git a/regula/documentreader/webclient/gen/models/graphic_fields_list.py b/regula/documentreader/webclient/gen/models/graphic_fields_list.py index aa2b8f4..ce4b326 100755 --- a/regula/documentreader/webclient/gen/models/graphic_fields_list.py +++ b/regula/documentreader/webclient/gen/models/graphic_fields_list.py @@ -32,23 +32,27 @@ class GraphicFieldsList(object): and the value is json key in definition. """ openapi_types = { - 'p_array_fields': 'list[GraphicField]' + 'p_array_fields': 'list[AnyOfGraphicFieldRectGraphicFieldRfid]', + 'n_fields': 'float' } attribute_map = { - 'p_array_fields': 'pArrayFields' + 'p_array_fields': 'pArrayFields', + 'n_fields': 'nFields' } - def __init__(self, p_array_fields=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, p_array_fields=None, n_fields=None, local_vars_configuration=None): # noqa: E501 """GraphicFieldsList - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._p_array_fields = None + self._n_fields = None self.discriminator = None self.p_array_fields = p_array_fields + self.n_fields = n_fields @property def p_array_fields(self): @@ -56,7 +60,7 @@ def p_array_fields(self): :return: The p_array_fields of this GraphicFieldsList. # noqa: E501 - :rtype: list[GraphicField] + :rtype: list[AnyOfGraphicFieldRectGraphicFieldRfid] """ return self._p_array_fields @@ -66,13 +70,38 @@ def p_array_fields(self, p_array_fields): :param p_array_fields: The p_array_fields of this GraphicFieldsList. # noqa: E501 - :type p_array_fields: list[GraphicField] + :type p_array_fields: list[AnyOfGraphicFieldRectGraphicFieldRfid] """ if self.local_vars_configuration.client_side_validation and p_array_fields is None: # noqa: E501 raise ValueError("Invalid value for `p_array_fields`, must not be `None`") # noqa: E501 self._p_array_fields = p_array_fields + @property + def n_fields(self): + """Gets the n_fields of this GraphicFieldsList. # noqa: E501 + + Number of pArrayFields array elements # noqa: E501 + + :return: The n_fields of this GraphicFieldsList. # noqa: E501 + :rtype: float + """ + return self._n_fields + + @n_fields.setter + def n_fields(self, n_fields): + """Sets the n_fields of this GraphicFieldsList. + + Number of pArrayFields array elements # noqa: E501 + + :param n_fields: The n_fields of this GraphicFieldsList. # noqa: E501 + :type n_fields: float + """ + if self.local_vars_configuration.client_side_validation and n_fields is None: # noqa: E501 + raise ValueError("Invalid value for `n_fields`, must not be `None`") # noqa: E501 + + self._n_fields = n_fields + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/ident_result.py b/regula/documentreader/webclient/gen/models/ident_result.py index c005f01..d2eff9f 100644 --- a/regula/documentreader/webclient/gen/models/ident_result.py +++ b/regula/documentreader/webclient/gen/models/ident_result.py @@ -82,16 +82,11 @@ def __init__(self, type=0, element_result=None, element_diagnose=None, percent_v self.element_diagnose = element_diagnose if percent_value is not None: self.percent_value = percent_value - if element_type is not None: - self.element_type = element_type - if light_index is not None: - self.light_index = light_index - if area is not None: - self.area = area - if image is not None: - self.image = image - if etalon_image is not None: - self.etalon_image = etalon_image + self.element_type = element_type + self.light_index = light_index + self.area = area + self.image = image + self.etalon_image = etalon_image if area_list is not None: self.area_list = area_list @@ -201,6 +196,8 @@ def element_type(self, element_type): :param element_type: The element_type of this IdentResult. # noqa: E501 :type element_type: SecurityFeatureType """ + if self.local_vars_configuration.client_side_validation and element_type is None: # noqa: E501 + raise ValueError("Invalid value for `element_type`, must not be `None`") # noqa: E501 self._element_type = element_type @@ -222,6 +219,8 @@ def light_index(self, light_index): :param light_index: The light_index of this IdentResult. # noqa: E501 :type light_index: Light """ + if self.local_vars_configuration.client_side_validation and light_index is None: # noqa: E501 + raise ValueError("Invalid value for `light_index`, must not be `None`") # noqa: E501 self._light_index = light_index @@ -243,6 +242,8 @@ def area(self, area): :param area: The area of this IdentResult. # noqa: E501 :type area: RectangleCoordinates """ + if self.local_vars_configuration.client_side_validation and area is None: # noqa: E501 + raise ValueError("Invalid value for `area`, must not be `None`") # noqa: E501 self._area = area @@ -264,6 +265,8 @@ def image(self, image): :param image: The image of this IdentResult. # noqa: E501 :type image: ImageData """ + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 self._image = image @@ -285,6 +288,8 @@ def etalon_image(self, etalon_image): :param etalon_image: The etalon_image of this IdentResult. # noqa: E501 :type etalon_image: ImageData """ + if self.local_vars_configuration.client_side_validation and etalon_image is None: # noqa: E501 + raise ValueError("Invalid value for `etalon_image`, must not be `None`") # noqa: E501 self._etalon_image = etalon_image diff --git a/regula/documentreader/webclient/gen/models/ident_result_all_of.py b/regula/documentreader/webclient/gen/models/ident_result_all_of.py index 2686db8..21a3143 100644 --- a/regula/documentreader/webclient/gen/models/ident_result_all_of.py +++ b/regula/documentreader/webclient/gen/models/ident_result_all_of.py @@ -63,16 +63,11 @@ def __init__(self, element_type=None, light_index=None, area=None, image=None, e self._area_list = None self.discriminator = None - if element_type is not None: - self.element_type = element_type - if light_index is not None: - self.light_index = light_index - if area is not None: - self.area = area - if image is not None: - self.image = image - if etalon_image is not None: - self.etalon_image = etalon_image + self.element_type = element_type + self.light_index = light_index + self.area = area + self.image = image + self.etalon_image = etalon_image if area_list is not None: self.area_list = area_list @@ -94,6 +89,8 @@ def element_type(self, element_type): :param element_type: The element_type of this IdentResultAllOf. # noqa: E501 :type element_type: SecurityFeatureType """ + if self.local_vars_configuration.client_side_validation and element_type is None: # noqa: E501 + raise ValueError("Invalid value for `element_type`, must not be `None`") # noqa: E501 self._element_type = element_type @@ -115,6 +112,8 @@ def light_index(self, light_index): :param light_index: The light_index of this IdentResultAllOf. # noqa: E501 :type light_index: Light """ + if self.local_vars_configuration.client_side_validation and light_index is None: # noqa: E501 + raise ValueError("Invalid value for `light_index`, must not be `None`") # noqa: E501 self._light_index = light_index @@ -136,6 +135,8 @@ def area(self, area): :param area: The area of this IdentResultAllOf. # noqa: E501 :type area: RectangleCoordinates """ + if self.local_vars_configuration.client_side_validation and area is None: # noqa: E501 + raise ValueError("Invalid value for `area`, must not be `None`") # noqa: E501 self._area = area @@ -157,6 +158,8 @@ def image(self, image): :param image: The image of this IdentResultAllOf. # noqa: E501 :type image: ImageData """ + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 self._image = image @@ -178,6 +181,8 @@ def etalon_image(self, etalon_image): :param etalon_image: The etalon_image of this IdentResultAllOf. # noqa: E501 :type etalon_image: ImageData """ + if self.local_vars_configuration.client_side_validation and etalon_image is None: # noqa: E501 + raise ValueError("Invalid value for `etalon_image`, must not be `None`") # noqa: E501 self._etalon_image = etalon_image diff --git a/regula/documentreader/webclient/gen/models/image_qa.py b/regula/documentreader/webclient/gen/models/image_qa.py index 52aca2e..ab6766d 100644 --- a/regula/documentreader/webclient/gen/models/image_qa.py +++ b/regula/documentreader/webclient/gen/models/image_qa.py @@ -38,6 +38,7 @@ class ImageQA(object): 'focus_check': 'bool', 'glares_check': 'bool', 'colorness_check': 'bool', + 'moire_check': 'bool', 'document_position_indent': 'int' } @@ -48,10 +49,11 @@ class ImageQA(object): 'focus_check': 'focusCheck', 'glares_check': 'glaresCheck', 'colorness_check': 'colornessCheck', + 'moire_check': 'moireCheck', 'document_position_indent': 'documentPositionIndent' } - def __init__(self, brightness_threshold=None, dpi_threshold=None, angle_threshold=None, focus_check=None, glares_check=None, colorness_check=None, document_position_indent=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, brightness_threshold=None, dpi_threshold=None, angle_threshold=None, focus_check=None, glares_check=None, colorness_check=None, moire_check=None, document_position_indent=None, local_vars_configuration=None): # noqa: E501 """ImageQA - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -63,6 +65,7 @@ def __init__(self, brightness_threshold=None, dpi_threshold=None, angle_threshol self._focus_check = None self._glares_check = None self._colorness_check = None + self._moire_check = None self._document_position_indent = None self.discriminator = None @@ -78,6 +81,8 @@ def __init__(self, brightness_threshold=None, dpi_threshold=None, angle_threshol self.glares_check = glares_check if colorness_check is not None: self.colorness_check = colorness_check + if moire_check is not None: + self.moire_check = moire_check if document_position_indent is not None: self.document_position_indent = document_position_indent @@ -219,6 +224,29 @@ def colorness_check(self, colorness_check): self._colorness_check = colorness_check + @property + def moire_check(self): + """Gets the moire_check of this ImageQA. # noqa: E501 + + This option enables screen capture (moire patterns) check while performing image quality validation. # noqa: E501 + + :return: The moire_check of this ImageQA. # noqa: E501 + :rtype: bool + """ + return self._moire_check + + @moire_check.setter + def moire_check(self, moire_check): + """Sets the moire_check of this ImageQA. + + This option enables screen capture (moire patterns) check while performing image quality validation. # noqa: E501 + + :param moire_check: The moire_check of this ImageQA. # noqa: E501 + :type moire_check: bool + """ + + self._moire_check = moire_check + @property def document_position_indent(self): """Gets the document_position_indent of this ImageQA. # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/image_quality_check.py b/regula/documentreader/webclient/gen/models/image_quality_check.py index 37ec24c..222ff6a 100644 --- a/regula/documentreader/webclient/gen/models/image_quality_check.py +++ b/regula/documentreader/webclient/gen/models/image_quality_check.py @@ -66,20 +66,14 @@ def __init__(self, type=None, result=None, feature_type=None, areas=None, mean=N self._probability = None self.discriminator = None - if type is not None: - self.type = type - if result is not None: - self.result = result - if feature_type is not None: - self.feature_type = feature_type + self.type = type + self.result = result + self.feature_type = feature_type if areas is not None: self.areas = areas - if mean is not None: - self.mean = mean - if std_dev is not None: - self.std_dev = std_dev - if probability is not None: - self.probability = probability + self.mean = mean + self.std_dev = std_dev + self.probability = probability @property def type(self): @@ -99,6 +93,8 @@ def type(self, type): :param type: The type of this ImageQualityCheck. # noqa: E501 :type type: ImageQualityCheckType """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -120,6 +116,8 @@ def result(self, result): :param result: The result of this ImageQualityCheck. # noqa: E501 :type result: CheckResult """ + if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501 + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 self._result = result @@ -141,6 +139,8 @@ def feature_type(self, feature_type): :param feature_type: The feature_type of this ImageQualityCheck. # noqa: E501 :type feature_type: SecurityFeatureType """ + if self.local_vars_configuration.client_side_validation and feature_type is None: # noqa: E501 + raise ValueError("Invalid value for `feature_type`, must not be `None`") # noqa: E501 self._feature_type = feature_type @@ -169,6 +169,7 @@ def areas(self, areas): def mean(self): """Gets the mean of this ImageQualityCheck. # noqa: E501 + Check mean value # noqa: E501 :return: The mean of this ImageQualityCheck. # noqa: E501 :rtype: float @@ -179,10 +180,13 @@ def mean(self): def mean(self, mean): """Sets the mean of this ImageQualityCheck. + Check mean value # noqa: E501 :param mean: The mean of this ImageQualityCheck. # noqa: E501 :type mean: float """ + if self.local_vars_configuration.client_side_validation and mean is None: # noqa: E501 + raise ValueError("Invalid value for `mean`, must not be `None`") # noqa: E501 self._mean = mean @@ -190,6 +194,7 @@ def mean(self, mean): def std_dev(self): """Gets the std_dev of this ImageQualityCheck. # noqa: E501 + Check deviation value # noqa: E501 :return: The std_dev of this ImageQualityCheck. # noqa: E501 :rtype: float @@ -200,10 +205,13 @@ def std_dev(self): def std_dev(self, std_dev): """Sets the std_dev of this ImageQualityCheck. + Check deviation value # noqa: E501 :param std_dev: The std_dev of this ImageQualityCheck. # noqa: E501 :type std_dev: float """ + if self.local_vars_configuration.client_side_validation and std_dev is None: # noqa: E501 + raise ValueError("Invalid value for `std_dev`, must not be `None`") # noqa: E501 self._std_dev = std_dev @@ -211,6 +219,7 @@ def std_dev(self, std_dev): def probability(self): """Gets the probability of this ImageQualityCheck. # noqa: E501 + Check probability value # noqa: E501 :return: The probability of this ImageQualityCheck. # noqa: E501 :rtype: int @@ -221,10 +230,13 @@ def probability(self): def probability(self, probability): """Sets the probability of this ImageQualityCheck. + Check probability value # noqa: E501 :param probability: The probability of this ImageQualityCheck. # noqa: E501 :type probability: int """ + if self.local_vars_configuration.client_side_validation and probability is None: # noqa: E501 + raise ValueError("Invalid value for `probability`, must not be `None`") # noqa: E501 self._probability = probability diff --git a/regula/documentreader/webclient/gen/models/image_quality_check_list.py b/regula/documentreader/webclient/gen/models/image_quality_check_list.py index 0dca268..32a17f8 100644 --- a/regula/documentreader/webclient/gen/models/image_quality_check_list.py +++ b/regula/documentreader/webclient/gen/models/image_quality_check_list.py @@ -33,15 +33,17 @@ class ImageQualityCheckList(object): """ openapi_types = { 'result': 'CheckResult', - 'list': 'list[ImageQualityCheck]' + 'list': 'list[ImageQualityCheck]', + 'count': 'float' } attribute_map = { 'result': 'result', - 'list': 'List' + 'list': 'List', + 'count': 'Count' } - def __init__(self, result=None, list=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, result=None, list=None, count=None, local_vars_configuration=None): # noqa: E501 """ImageQualityCheckList - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -49,10 +51,12 @@ def __init__(self, result=None, list=None, local_vars_configuration=None): # no self._result = None self._list = None + self._count = None self.discriminator = None self.result = result self.list = list + self.count = count @property def result(self): @@ -100,6 +104,31 @@ def list(self, list): self._list = list + @property + def count(self): + """Gets the count of this ImageQualityCheckList. # noqa: E501 + + Number of List array elements # noqa: E501 + + :return: The count of this ImageQualityCheckList. # noqa: E501 + :rtype: float + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ImageQualityCheckList. + + Number of List array elements # noqa: E501 + + :param count: The count of this ImageQualityCheckList. # noqa: E501 + :type count: float + """ + if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501 + raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 + + self._count = count + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/images.py b/regula/documentreader/webclient/gen/models/images.py index cb32470..728b9fd 100755 --- a/regula/documentreader/webclient/gen/models/images.py +++ b/regula/documentreader/webclient/gen/models/images.py @@ -32,28 +32,86 @@ class Images(object): and the value is json key in definition. """ openapi_types = { + 'field_count': 'int', + 'available_source_count': 'int', 'available_source_list': 'list[ImagesAvailableSource]', 'field_list': 'list[ImagesField]' } attribute_map = { + 'field_count': 'fieldCount', + 'available_source_count': 'availableSourceCount', 'available_source_list': 'availableSourceList', 'field_list': 'fieldList' } - def __init__(self, available_source_list=None, field_list=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, field_count=None, available_source_count=None, available_source_list=None, field_list=None, local_vars_configuration=None): # noqa: E501 """Images - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._field_count = None + self._available_source_count = None self._available_source_list = None self._field_list = None self.discriminator = None + self.field_count = field_count + self.available_source_count = available_source_count self.available_source_list = available_source_list self.field_list = field_list + @property + def field_count(self): + """Gets the field_count of this Images. # noqa: E501 + + Fields count # noqa: E501 + + :return: The field_count of this Images. # noqa: E501 + :rtype: int + """ + return self._field_count + + @field_count.setter + def field_count(self, field_count): + """Sets the field_count of this Images. + + Fields count # noqa: E501 + + :param field_count: The field_count of this Images. # noqa: E501 + :type field_count: int + """ + if self.local_vars_configuration.client_side_validation and field_count is None: # noqa: E501 + raise ValueError("Invalid value for `field_count`, must not be `None`") # noqa: E501 + + self._field_count = field_count + + @property + def available_source_count(self): + """Gets the available_source_count of this Images. # noqa: E501 + + Available sources count # noqa: E501 + + :return: The available_source_count of this Images. # noqa: E501 + :rtype: int + """ + return self._available_source_count + + @available_source_count.setter + def available_source_count(self, available_source_count): + """Sets the available_source_count of this Images. + + Available sources count # noqa: E501 + + :param available_source_count: The available_source_count of this Images. # noqa: E501 + :type available_source_count: int + """ + if self.local_vars_configuration.client_side_validation and available_source_count is None: # noqa: E501 + raise ValueError("Invalid value for `available_source_count`, must not be `None`") # noqa: E501 + + self._available_source_count = available_source_count + @property def available_source_list(self): """Gets the available_source_list of this Images. # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/images_available_source.py b/regula/documentreader/webclient/gen/models/images_available_source.py index f50413b..36c47fd 100755 --- a/regula/documentreader/webclient/gen/models/images_available_source.py +++ b/regula/documentreader/webclient/gen/models/images_available_source.py @@ -51,8 +51,7 @@ def __init__(self, container_type=0, source=None, local_vars_configuration=None) self._source = None self.discriminator = None - if container_type is not None: - self.container_type = container_type + self.container_type = container_type self.source = source @property @@ -75,6 +74,8 @@ def container_type(self, container_type): :param container_type: The container_type of this ImagesAvailableSource. # noqa: E501 :type container_type: int """ + if self.local_vars_configuration.client_side_validation and container_type is None: # noqa: E501 + raise ValueError("Invalid value for `container_type`, must not be `None`") # noqa: E501 self._container_type = container_type diff --git a/regula/documentreader/webclient/gen/models/images_field.py b/regula/documentreader/webclient/gen/models/images_field.py index 6e808e4..38c2130 100755 --- a/regula/documentreader/webclient/gen/models/images_field.py +++ b/regula/documentreader/webclient/gen/models/images_field.py @@ -34,16 +34,18 @@ class ImagesField(object): openapi_types = { 'field_name': 'str', 'field_type': 'GraphicFieldType', - 'value_list': 'list[ImagesFieldValue]' + 'value_list': 'list[ImagesFieldValue]', + 'value_count': 'float' } attribute_map = { 'field_name': 'fieldName', 'field_type': 'fieldType', - 'value_list': 'valueList' + 'value_list': 'valueList', + 'value_count': 'valueCount' } - def __init__(self, field_name=None, field_type=None, value_list=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, field_name=None, field_type=None, value_list=None, value_count=None, local_vars_configuration=None): # noqa: E501 """ImagesField - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -52,11 +54,13 @@ def __init__(self, field_name=None, field_type=None, value_list=None, local_vars self._field_name = None self._field_type = None self._value_list = None + self._value_count = None self.discriminator = None self.field_name = field_name self.field_type = field_type self.value_list = value_list + self.value_count = value_count @property def field_name(self): @@ -129,6 +133,31 @@ def value_list(self, value_list): self._value_list = value_list + @property + def value_count(self): + """Gets the value_count of this ImagesField. # noqa: E501 + + Field value count # noqa: E501 + + :return: The value_count of this ImagesField. # noqa: E501 + :rtype: float + """ + return self._value_count + + @value_count.setter + def value_count(self, value_count): + """Sets the value_count of this ImagesField. + + Field value count # noqa: E501 + + :param value_count: The value_count of this ImagesField. # noqa: E501 + :type value_count: float + """ + if self.local_vars_configuration.client_side_validation and value_count is None: # noqa: E501 + raise ValueError("Invalid value for `value_count`, must not be `None`") # noqa: E501 + + self._value_count = value_count + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/images_field_value.py b/regula/documentreader/webclient/gen/models/images_field_value.py index c9e6e4e..df9c62c 100755 --- a/regula/documentreader/webclient/gen/models/images_field_value.py +++ b/regula/documentreader/webclient/gen/models/images_field_value.py @@ -73,7 +73,8 @@ def __init__(self, source=None, value=None, original_value=None, original_page_i self.discriminator = None self.source = source - self.value = value + if value is not None: + self.value = value if original_value is not None: self.original_value = original_value if original_page_index is not None: @@ -129,8 +130,6 @@ def value(self, value): :param value: The value of this ImagesFieldValue. # noqa: E501 :type value: str """ - if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 self._value = value diff --git a/regula/documentreader/webclient/gen/models/lcid.py b/regula/documentreader/webclient/gen/models/lcid.py index cda3f96..a8280c4 100755 --- a/regula/documentreader/webclient/gen/models/lcid.py +++ b/regula/documentreader/webclient/gen/models/lcid.py @@ -81,14 +81,24 @@ class LCID(object): CATALAN = int("1027") + CHINESE_HONGKONG_SAR = int("3076") + + CHINESE_MACAO_SAR = int("5124") + CHINESE = int("2052") + CHINESE_SINGAPORE = int("4100") + + CHINESE_TAIWAN = int("1028") + CROATIAN = int("1050") CZECH = int("1029") DANISH = int("1030") + DIVEHI = int("1125") + DUTCH_BELGIUM = int("2067") DUTCH_NETHERLANDS = int("1043") @@ -277,6 +287,8 @@ class LCID(object): SWEDISH_FINLAND = int("2077") + SYRIAC = int("1114") + TAMIL = int("1097") TATAR = int("1092") @@ -305,11 +317,11 @@ class LCID(object): CTC_TRADITIONAL = int("50002") - BengaliBangladesh = int("2117") + BENGALI_BANGLADESH = int("2117") - BengaliIndia = int("1093") + BENGALI_INDIA = int("1093") - Assamese = int("1101") + ASSAMESE = int("1101") ORIYA = int("1096") @@ -347,7 +359,7 @@ class LCID(object): URDU_DETECTION = int("10560") - allowable_values = [LATIN, AFRIKAANS, ALBANIAN, ARABIC_ALGERIA, ARABIC_BAHRAIN, ARABIC_EGYPT, ARABIC_IRAQ, ARABIC_JORDAN, ARABIC_KUWAIT, ARABIC_LEBANON, ARABIC_LIBYA, ARABIC_MOROCCO, ARABIC_OMAN, ARABIC_QATAR, ARABIC_SAUDI_ARABIA, ARABIC_SYRIA, ARABIC_TUNISIA, ARABIC_UAE, ARABIC_YEMEN, ARABIC_ARMENIAN, AZERI_CYRILIC, AZERI_LATIN, BASQUE, BELARUSIAN, BULGARIAN, BURMESE, CATALAN, CHINESE, CROATIAN, CZECH, DANISH, DUTCH_BELGIUM, DUTCH_NETHERLANDS, ENGLISH_AUSTRALIA, ENGLISH_BELIZE, ENGLISH_CANADA, ENGLISH_CARRIBEAN, ENGLISH_IRELAND, ENGLISH_JAMAICA, ENGLISH_NEW_ZEALAND, ENGLISH_PHILIPPINES, ENGLISH_SOUTH_AFRICA, ENGLISH_TRINIDAD, ENGLISH_UK, ENGLISH_US, ENGLISH_ZIMBABWE, ESTONIAN, FAEROESE, FARSI, FINNISH, FRENCH_BELGIUM, FRENCH_CANADA, FRENCH_FRANCE, FRENCH_LUXEMBOURG, FRENCH_MONACO, FRENCH_SWITZERLAND, FYRO_MACEDONIAN, GALICIAN, GEORGIAN, GERMAN_AUSTRIA, GERMAN_GERMANY, GERMAN_LIECHTENSTEIN, GERMAN_LUXEMBOURG, GERMAN_SWITZERLAND, GREEK, GUJARATI, HEBREW, HINDI_INDIA, HUNGARIAN, ICELANDIC, INDONESIAN, ITALIAN_ITALY, ITALIAN_SWITZERLAND, JAPANESE, KANNADA, KAZAKH, KHMER, KONKANI, KOREAN, KYRGYZ_CYRILICK, LATVIAN, LITHUANIAN, MALAY_MALAYSIA, MALAY_BRUNEI_DARUSSALAM, MALTESE, MARATHI, MONGOLIAN_CYRILIC, NORWEGIAN_BOKMAL, NORWEGIAN_NYORSK, POLISH, PORTUGUESE_BRAZIL, PORTUGUESE_PORTUGAL, PUNJABI, RHAETO_ROMANIC, ROMANIAN, RUSSIAN, SANSKRIT, SERBIAN_CYRILIC, SERBIAN_LATIN, SINHALA, SLOVAK, SLOVENIAN, SPANISH_ARGENTINA, SPANISH_BOLIVIA, SPANISH_CHILE, SPANICH_COLOMBIA, SPANISH_COSTA_RICA, SPANISH_DOMINICAN_REPUBLIC, SPANISH_ECUADOR, SPANISH_EL_SALVADOR, SPANISH_GUATEMALA, SPANISH_HONDURAS, SPANISH_MEXICO, SPANISH_NICARAGUA, SPANISH_PANAMA, SPANISH_PARAGUAY, SPANISH_PERU, SPANISH_PUERTO_RICO, SPANISH_TRADITIONAL_SORT, SPANISH_INTERNATIONAL_SORT, SPANISH_URUGUAY, SPANISH_VENEZUELA, SWAHILI, SWEDISH, SWEDISH_FINLAND, TAMIL, TATAR, TELUGU, THAI_THAILAND, TURKISH, TAJIK_CYRILLIC, TURKMEN, UKRAINIAN, URDU, UZBEK_CYRILIC, UZBEK_LATIN, VIETNAMESE, CTC_SIMPLIFIED, CTC_TRADITIONAL, BengaliBangladesh, BengaliIndia, Assamese, ORIYA, MALAYALAM, LAO, SINDHI_INDIA, AMHARIC, KASHMIRI, NEPALI, PASHTO, SINDHI, ARABIC, BANK_CARD_NUMBER, BANK_CARD_EXPIRY_DATE, BANK_CARD_NAME, BANK_CARD, BANK_CARD_CVV2, ABKHAZIAN, KARAKALPAK, URDU_DETECTION] # noqa: E501 + allowable_values = [LATIN, AFRIKAANS, ALBANIAN, ARABIC_ALGERIA, ARABIC_BAHRAIN, ARABIC_EGYPT, ARABIC_IRAQ, ARABIC_JORDAN, ARABIC_KUWAIT, ARABIC_LEBANON, ARABIC_LIBYA, ARABIC_MOROCCO, ARABIC_OMAN, ARABIC_QATAR, ARABIC_SAUDI_ARABIA, ARABIC_SYRIA, ARABIC_TUNISIA, ARABIC_UAE, ARABIC_YEMEN, ARABIC_ARMENIAN, AZERI_CYRILIC, AZERI_LATIN, BASQUE, BELARUSIAN, BULGARIAN, BURMESE, CATALAN, CHINESE_HONGKONG_SAR, CHINESE_MACAO_SAR, CHINESE, CHINESE_SINGAPORE, CHINESE_TAIWAN, CROATIAN, CZECH, DANISH, DIVEHI, DUTCH_BELGIUM, DUTCH_NETHERLANDS, ENGLISH_AUSTRALIA, ENGLISH_BELIZE, ENGLISH_CANADA, ENGLISH_CARRIBEAN, ENGLISH_IRELAND, ENGLISH_JAMAICA, ENGLISH_NEW_ZEALAND, ENGLISH_PHILIPPINES, ENGLISH_SOUTH_AFRICA, ENGLISH_TRINIDAD, ENGLISH_UK, ENGLISH_US, ENGLISH_ZIMBABWE, ESTONIAN, FAEROESE, FARSI, FINNISH, FRENCH_BELGIUM, FRENCH_CANADA, FRENCH_FRANCE, FRENCH_LUXEMBOURG, FRENCH_MONACO, FRENCH_SWITZERLAND, FYRO_MACEDONIAN, GALICIAN, GEORGIAN, GERMAN_AUSTRIA, GERMAN_GERMANY, GERMAN_LIECHTENSTEIN, GERMAN_LUXEMBOURG, GERMAN_SWITZERLAND, GREEK, GUJARATI, HEBREW, HINDI_INDIA, HUNGARIAN, ICELANDIC, INDONESIAN, ITALIAN_ITALY, ITALIAN_SWITZERLAND, JAPANESE, KANNADA, KAZAKH, KHMER, KONKANI, KOREAN, KYRGYZ_CYRILICK, LATVIAN, LITHUANIAN, MALAY_MALAYSIA, MALAY_BRUNEI_DARUSSALAM, MALTESE, MARATHI, MONGOLIAN_CYRILIC, NORWEGIAN_BOKMAL, NORWEGIAN_NYORSK, POLISH, PORTUGUESE_BRAZIL, PORTUGUESE_PORTUGAL, PUNJABI, RHAETO_ROMANIC, ROMANIAN, RUSSIAN, SANSKRIT, SERBIAN_CYRILIC, SERBIAN_LATIN, SINHALA, SLOVAK, SLOVENIAN, SPANISH_ARGENTINA, SPANISH_BOLIVIA, SPANISH_CHILE, SPANICH_COLOMBIA, SPANISH_COSTA_RICA, SPANISH_DOMINICAN_REPUBLIC, SPANISH_ECUADOR, SPANISH_EL_SALVADOR, SPANISH_GUATEMALA, SPANISH_HONDURAS, SPANISH_MEXICO, SPANISH_NICARAGUA, SPANISH_PANAMA, SPANISH_PARAGUAY, SPANISH_PERU, SPANISH_PUERTO_RICO, SPANISH_TRADITIONAL_SORT, SPANISH_INTERNATIONAL_SORT, SPANISH_URUGUAY, SPANISH_VENEZUELA, SWAHILI, SWEDISH, SWEDISH_FINLAND, SYRIAC, TAMIL, TATAR, TELUGU, THAI_THAILAND, TURKISH, TAJIK_CYRILLIC, TURKMEN, UKRAINIAN, URDU, UZBEK_CYRILIC, UZBEK_LATIN, VIETNAMESE, CTC_SIMPLIFIED, CTC_TRADITIONAL, BENGALI_BANGLADESH, BENGALI_INDIA, ASSAMESE, ORIYA, MALAYALAM, LAO, SINDHI_INDIA, AMHARIC, KASHMIRI, NEPALI, PASHTO, SINDHI, ARABIC, BANK_CARD_NUMBER, BANK_CARD_EXPIRY_DATE, BANK_CARD_NAME, BANK_CARD, BANK_CARD_CVV2, ABKHAZIAN, KARAKALPAK, URDU_DETECTION] # noqa: E501 """ Attributes: diff --git a/regula/documentreader/webclient/gen/models/lexical_analysis_result.py b/regula/documentreader/webclient/gen/models/lexical_analysis_result.py index e63f429..aec630d 100755 --- a/regula/documentreader/webclient/gen/models/lexical_analysis_result.py +++ b/regula/documentreader/webclient/gen/models/lexical_analysis_result.py @@ -67,8 +67,7 @@ def __init__(self, list_verified_fields=None, buf_length=None, light=None, list_ self._result_type = None self.discriminator = None - if list_verified_fields is not None: - self.list_verified_fields = list_verified_fields + self.list_verified_fields = list_verified_fields if buf_length is not None: self.buf_length = buf_length if light is not None: @@ -97,6 +96,8 @@ def list_verified_fields(self, list_verified_fields): :param list_verified_fields: The list_verified_fields of this LexicalAnalysisResult. # noqa: E501 :type list_verified_fields: ListVerifiedFields """ + if self.local_vars_configuration.client_side_validation and list_verified_fields is None: # noqa: E501 + raise ValueError("Invalid value for `list_verified_fields`, must not be `None`") # noqa: E501 self._list_verified_fields = list_verified_fields diff --git a/regula/documentreader/webclient/gen/models/lexical_analysis_result_all_of.py b/regula/documentreader/webclient/gen/models/lexical_analysis_result_all_of.py index 9af1d22..2ca905b 100755 --- a/regula/documentreader/webclient/gen/models/lexical_analysis_result_all_of.py +++ b/regula/documentreader/webclient/gen/models/lexical_analysis_result_all_of.py @@ -48,8 +48,7 @@ def __init__(self, list_verified_fields=None, local_vars_configuration=None): # self._list_verified_fields = None self.discriminator = None - if list_verified_fields is not None: - self.list_verified_fields = list_verified_fields + self.list_verified_fields = list_verified_fields @property def list_verified_fields(self): @@ -69,6 +68,8 @@ def list_verified_fields(self, list_verified_fields): :param list_verified_fields: The list_verified_fields of this LexicalAnalysisResultAllOf. # noqa: E501 :type list_verified_fields: ListVerifiedFields """ + if self.local_vars_configuration.client_side_validation and list_verified_fields is None: # noqa: E501 + raise ValueError("Invalid value for `list_verified_fields`, must not be `None`") # noqa: E501 self._list_verified_fields = list_verified_fields diff --git a/regula/documentreader/webclient/gen/models/light.py b/regula/documentreader/webclient/gen/models/light.py index f51a96b..fb6173a 100755 --- a/regula/documentreader/webclient/gen/models/light.py +++ b/regula/documentreader/webclient/gen/models/light.py @@ -26,13 +26,89 @@ class Light(object): OFF = int("0") + OVI = int("1") + + WHITE_TOP = int("2") + + WHITE_SIDE = int("4") + + WHITE_FRONT = int("8388608") + WHITE = int("6") + IR_TOP = int("8") + + IR_SIDE = int("16") + + IR_FRONT = int("16777216") + IR = int("24") + WHITE_GRAY = int("33554432") + UV = int("128") - allowable_values = [OFF, WHITE, IR, UV] # noqa: E501 + OVD = int("67108864") + + VIDEODETECTION = int("134217728") + + IR_870_OBL = int("268435456") + + IR_LUMINESCENCE = int("256") + + AXIAL_WHITE_LEFT = int("1024") + + AXIAL_WHITE_RIGHT = int("2048") + + AXIAL_WHITE_FRONT = int("512") + + IR_720 = int("4096") + + IR_940 = int("8192") + + AXIAL_WHITE_FULL = int("3072") + + RAW_DATA = int("2147483648") + + RAW_DATA_GRBG = int("2415919104") + + RAW_DATA_GBGR = int("2684354560") + + RAW_DATA_RGGB = int("2952790016") + + RAW_DATA_BGGR = int("3221225472") + + TRANSMITTED = int("32") + + TRANSMITTED_IR = int("64") + + ANTI_STOKES = int("65536") + + TRANSMITTED_IR940 = int("16384") + + OVD_RIGHT = int("262144") + + OVD_LEFT = int("131072") + + IR_700 = int("32768") + + IR_870 = int("16777216") + + HOLO = int("67108864") + + IR_BOTTOM = int("64") + + WHITE_BOTTOM = int("32") + + UVC = int("524288") + + UVB = int("1048576") + + WHITE_OBL = int("2097152") + + WHITE_SPECIAL = int("4194304") + + allowable_values = [OFF, OVI, WHITE_TOP, WHITE_SIDE, WHITE_FRONT, WHITE, IR_TOP, IR_SIDE, IR_FRONT, IR, WHITE_GRAY, UV, OVD, VIDEODETECTION, IR_870_OBL, IR_LUMINESCENCE, AXIAL_WHITE_LEFT, AXIAL_WHITE_RIGHT, AXIAL_WHITE_FRONT, IR_720, IR_940, AXIAL_WHITE_FULL, RAW_DATA, RAW_DATA_GRBG, RAW_DATA_GBGR, RAW_DATA_RGGB, RAW_DATA_BGGR, TRANSMITTED, TRANSMITTED_IR, ANTI_STOKES, TRANSMITTED_IR940, OVD_RIGHT, OVD_LEFT, IR_700, IR_870, HOLO, IR_BOTTOM, WHITE_BOTTOM, UVC, UVB, WHITE_OBL, WHITE_SPECIAL] # noqa: E501 """ Attributes: diff --git a/regula/documentreader/webclient/gen/models/list_verified_fields.py b/regula/documentreader/webclient/gen/models/list_verified_fields.py index 0d6c81f..6ae0a7c 100755 --- a/regula/documentreader/webclient/gen/models/list_verified_fields.py +++ b/regula/documentreader/webclient/gen/models/list_verified_fields.py @@ -32,24 +32,52 @@ class ListVerifiedFields(object): and the value is json key in definition. """ openapi_types = { + 'count': 'float', 'p_field_maps': 'list[VerifiedFieldMap]' } attribute_map = { + 'count': 'Count', 'p_field_maps': 'pFieldMaps' } - def __init__(self, p_field_maps=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, count=None, p_field_maps=None, local_vars_configuration=None): # noqa: E501 """ListVerifiedFields - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._count = None self._p_field_maps = None self.discriminator = None - if p_field_maps is not None: - self.p_field_maps = p_field_maps + self.count = count + self.p_field_maps = p_field_maps + + @property + def count(self): + """Gets the count of this ListVerifiedFields. # noqa: E501 + + Number of pFieldMaps array elements # noqa: E501 + + :return: The count of this ListVerifiedFields. # noqa: E501 + :rtype: float + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListVerifiedFields. + + Number of pFieldMaps array elements # noqa: E501 + + :param count: The count of this ListVerifiedFields. # noqa: E501 + :type count: float + """ + if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501 + raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 + + self._count = count @property def p_field_maps(self): @@ -69,6 +97,8 @@ def p_field_maps(self, p_field_maps): :param p_field_maps: The p_field_maps of this ListVerifiedFields. # noqa: E501 :type p_field_maps: list[VerifiedFieldMap] """ + if self.local_vars_configuration.client_side_validation and p_field_maps is None: # noqa: E501 + raise ValueError("Invalid value for `p_field_maps`, must not be `None`") # noqa: E501 self._p_field_maps = p_field_maps diff --git a/regula/documentreader/webclient/gen/models/ocr_security_text_result.py b/regula/documentreader/webclient/gen/models/ocr_security_text_result.py index 19f40b1..bdfb6d1 100644 --- a/regula/documentreader/webclient/gen/models/ocr_security_text_result.py +++ b/regula/documentreader/webclient/gen/models/ocr_security_text_result.py @@ -42,6 +42,7 @@ class OCRSecurityTextResult(object): 'etalon_result_type': 'int', 'etalon_field_type': 'int', 'etalon_light_type': 'int', + 'etalon_field_rect': 'RectangleCoordinates', 'security_text_result_ocr': 'str', 'etalon_result_ocr': 'str', 'reserved1': 'int', @@ -59,13 +60,14 @@ class OCRSecurityTextResult(object): 'etalon_result_type': 'EtalonResultType', 'etalon_field_type': 'EtalonFieldType', 'etalon_light_type': 'EtalonLightType', + 'etalon_field_rect': 'EtalonFieldRect', 'security_text_result_ocr': 'SecurityTextResultOCR', 'etalon_result_ocr': 'EtalonResultOCR', 'reserved1': 'Reserved1', 'reserved2': 'Reserved2' } - def __init__(self, type=0, element_result=None, element_diagnose=None, percent_value=None, critical_flag=None, light_type=None, field_rect=None, etalon_result_type=None, etalon_field_type=None, etalon_light_type=None, security_text_result_ocr=None, etalon_result_ocr=None, reserved1=None, reserved2=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, type=0, element_result=None, element_diagnose=None, percent_value=None, critical_flag=None, light_type=None, field_rect=None, etalon_result_type=None, etalon_field_type=None, etalon_light_type=None, etalon_field_rect=None, security_text_result_ocr=None, etalon_result_ocr=None, reserved1=None, reserved2=None, local_vars_configuration=None): # noqa: E501 """OCRSecurityTextResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -81,6 +83,7 @@ def __init__(self, type=0, element_result=None, element_diagnose=None, percent_v self._etalon_result_type = None self._etalon_field_type = None self._etalon_light_type = None + self._etalon_field_rect = None self._security_text_result_ocr = None self._etalon_result_ocr = None self._reserved1 = None @@ -94,22 +97,15 @@ def __init__(self, type=0, element_result=None, element_diagnose=None, percent_v self.element_diagnose = element_diagnose if percent_value is not None: self.percent_value = percent_value - if critical_flag is not None: - self.critical_flag = critical_flag - if light_type is not None: - self.light_type = light_type - if field_rect is not None: - self.field_rect = field_rect - if etalon_result_type is not None: - self.etalon_result_type = etalon_result_type - if etalon_field_type is not None: - self.etalon_field_type = etalon_field_type - if etalon_light_type is not None: - self.etalon_light_type = etalon_light_type - if security_text_result_ocr is not None: - self.security_text_result_ocr = security_text_result_ocr - if etalon_result_ocr is not None: - self.etalon_result_ocr = etalon_result_ocr + self.critical_flag = critical_flag + self.light_type = light_type + self.field_rect = field_rect + self.etalon_result_type = etalon_result_type + self.etalon_field_type = etalon_field_type + self.etalon_light_type = etalon_light_type + self.etalon_field_rect = etalon_field_rect + self.security_text_result_ocr = security_text_result_ocr + self.etalon_result_ocr = etalon_result_ocr if reserved1 is not None: self.reserved1 = reserved1 if reserved2 is not None: @@ -221,6 +217,8 @@ def critical_flag(self, critical_flag): :param critical_flag: The critical_flag of this OCRSecurityTextResult. # noqa: E501 :type critical_flag: Critical """ + if self.local_vars_configuration.client_side_validation and critical_flag is None: # noqa: E501 + raise ValueError("Invalid value for `critical_flag`, must not be `None`") # noqa: E501 self._critical_flag = critical_flag @@ -242,6 +240,8 @@ def light_type(self, light_type): :param light_type: The light_type of this OCRSecurityTextResult. # noqa: E501 :type light_type: Light """ + if self.local_vars_configuration.client_side_validation and light_type is None: # noqa: E501 + raise ValueError("Invalid value for `light_type`, must not be `None`") # noqa: E501 self._light_type = light_type @@ -263,6 +263,8 @@ def field_rect(self, field_rect): :param field_rect: The field_rect of this OCRSecurityTextResult. # noqa: E501 :type field_rect: RectangleCoordinates """ + if self.local_vars_configuration.client_side_validation and field_rect is None: # noqa: E501 + raise ValueError("Invalid value for `field_rect`, must not be `None`") # noqa: E501 self._field_rect = field_rect @@ -284,6 +286,8 @@ def etalon_result_type(self, etalon_result_type): :param etalon_result_type: The etalon_result_type of this OCRSecurityTextResult. # noqa: E501 :type etalon_result_type: int """ + if self.local_vars_configuration.client_side_validation and etalon_result_type is None: # noqa: E501 + raise ValueError("Invalid value for `etalon_result_type`, must not be `None`") # noqa: E501 self._etalon_result_type = etalon_result_type @@ -305,6 +309,8 @@ def etalon_field_type(self, etalon_field_type): :param etalon_field_type: The etalon_field_type of this OCRSecurityTextResult. # noqa: E501 :type etalon_field_type: int """ + if self.local_vars_configuration.client_side_validation and etalon_field_type is None: # noqa: E501 + raise ValueError("Invalid value for `etalon_field_type`, must not be `None`") # noqa: E501 self._etalon_field_type = etalon_field_type @@ -326,9 +332,34 @@ def etalon_light_type(self, etalon_light_type): :param etalon_light_type: The etalon_light_type of this OCRSecurityTextResult. # noqa: E501 :type etalon_light_type: int """ + if self.local_vars_configuration.client_side_validation and etalon_light_type is None: # noqa: E501 + raise ValueError("Invalid value for `etalon_light_type`, must not be `None`") # noqa: E501 self._etalon_light_type = etalon_light_type + @property + def etalon_field_rect(self): + """Gets the etalon_field_rect of this OCRSecurityTextResult. # noqa: E501 + + + :return: The etalon_field_rect of this OCRSecurityTextResult. # noqa: E501 + :rtype: RectangleCoordinates + """ + return self._etalon_field_rect + + @etalon_field_rect.setter + def etalon_field_rect(self, etalon_field_rect): + """Sets the etalon_field_rect of this OCRSecurityTextResult. + + + :param etalon_field_rect: The etalon_field_rect of this OCRSecurityTextResult. # noqa: E501 + :type etalon_field_rect: RectangleCoordinates + """ + if self.local_vars_configuration.client_side_validation and etalon_field_rect is None: # noqa: E501 + raise ValueError("Invalid value for `etalon_field_rect`, must not be `None`") # noqa: E501 + + self._etalon_field_rect = etalon_field_rect + @property def security_text_result_ocr(self): """Gets the security_text_result_ocr of this OCRSecurityTextResult. # noqa: E501 @@ -347,6 +378,8 @@ def security_text_result_ocr(self, security_text_result_ocr): :param security_text_result_ocr: The security_text_result_ocr of this OCRSecurityTextResult. # noqa: E501 :type security_text_result_ocr: str """ + if self.local_vars_configuration.client_side_validation and security_text_result_ocr is None: # noqa: E501 + raise ValueError("Invalid value for `security_text_result_ocr`, must not be `None`") # noqa: E501 self._security_text_result_ocr = security_text_result_ocr @@ -368,6 +401,8 @@ def etalon_result_ocr(self, etalon_result_ocr): :param etalon_result_ocr: The etalon_result_ocr of this OCRSecurityTextResult. # noqa: E501 :type etalon_result_ocr: str """ + if self.local_vars_configuration.client_side_validation and etalon_result_ocr is None: # noqa: E501 + raise ValueError("Invalid value for `etalon_result_ocr`, must not be `None`") # noqa: E501 self._etalon_result_ocr = etalon_result_ocr diff --git a/regula/documentreader/webclient/gen/models/ocr_security_text_result_all_of.py b/regula/documentreader/webclient/gen/models/ocr_security_text_result_all_of.py index 8748cd8..fb64bcc 100644 --- a/regula/documentreader/webclient/gen/models/ocr_security_text_result_all_of.py +++ b/regula/documentreader/webclient/gen/models/ocr_security_text_result_all_of.py @@ -38,6 +38,7 @@ class OCRSecurityTextResultAllOf(object): 'etalon_result_type': 'int', 'etalon_field_type': 'int', 'etalon_light_type': 'int', + 'etalon_field_rect': 'RectangleCoordinates', 'security_text_result_ocr': 'str', 'etalon_result_ocr': 'str', 'reserved1': 'int', @@ -51,13 +52,14 @@ class OCRSecurityTextResultAllOf(object): 'etalon_result_type': 'EtalonResultType', 'etalon_field_type': 'EtalonFieldType', 'etalon_light_type': 'EtalonLightType', + 'etalon_field_rect': 'EtalonFieldRect', 'security_text_result_ocr': 'SecurityTextResultOCR', 'etalon_result_ocr': 'EtalonResultOCR', 'reserved1': 'Reserved1', 'reserved2': 'Reserved2' } - def __init__(self, critical_flag=None, light_type=None, field_rect=None, etalon_result_type=None, etalon_field_type=None, etalon_light_type=None, security_text_result_ocr=None, etalon_result_ocr=None, reserved1=None, reserved2=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, critical_flag=None, light_type=None, field_rect=None, etalon_result_type=None, etalon_field_type=None, etalon_light_type=None, etalon_field_rect=None, security_text_result_ocr=None, etalon_result_ocr=None, reserved1=None, reserved2=None, local_vars_configuration=None): # noqa: E501 """OCRSecurityTextResultAllOf - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -69,28 +71,22 @@ def __init__(self, critical_flag=None, light_type=None, field_rect=None, etalon_ self._etalon_result_type = None self._etalon_field_type = None self._etalon_light_type = None + self._etalon_field_rect = None self._security_text_result_ocr = None self._etalon_result_ocr = None self._reserved1 = None self._reserved2 = None self.discriminator = None - if critical_flag is not None: - self.critical_flag = critical_flag - if light_type is not None: - self.light_type = light_type - if field_rect is not None: - self.field_rect = field_rect - if etalon_result_type is not None: - self.etalon_result_type = etalon_result_type - if etalon_field_type is not None: - self.etalon_field_type = etalon_field_type - if etalon_light_type is not None: - self.etalon_light_type = etalon_light_type - if security_text_result_ocr is not None: - self.security_text_result_ocr = security_text_result_ocr - if etalon_result_ocr is not None: - self.etalon_result_ocr = etalon_result_ocr + self.critical_flag = critical_flag + self.light_type = light_type + self.field_rect = field_rect + self.etalon_result_type = etalon_result_type + self.etalon_field_type = etalon_field_type + self.etalon_light_type = etalon_light_type + self.etalon_field_rect = etalon_field_rect + self.security_text_result_ocr = security_text_result_ocr + self.etalon_result_ocr = etalon_result_ocr if reserved1 is not None: self.reserved1 = reserved1 if reserved2 is not None: @@ -114,6 +110,8 @@ def critical_flag(self, critical_flag): :param critical_flag: The critical_flag of this OCRSecurityTextResultAllOf. # noqa: E501 :type critical_flag: Critical """ + if self.local_vars_configuration.client_side_validation and critical_flag is None: # noqa: E501 + raise ValueError("Invalid value for `critical_flag`, must not be `None`") # noqa: E501 self._critical_flag = critical_flag @@ -135,6 +133,8 @@ def light_type(self, light_type): :param light_type: The light_type of this OCRSecurityTextResultAllOf. # noqa: E501 :type light_type: Light """ + if self.local_vars_configuration.client_side_validation and light_type is None: # noqa: E501 + raise ValueError("Invalid value for `light_type`, must not be `None`") # noqa: E501 self._light_type = light_type @@ -156,6 +156,8 @@ def field_rect(self, field_rect): :param field_rect: The field_rect of this OCRSecurityTextResultAllOf. # noqa: E501 :type field_rect: RectangleCoordinates """ + if self.local_vars_configuration.client_side_validation and field_rect is None: # noqa: E501 + raise ValueError("Invalid value for `field_rect`, must not be `None`") # noqa: E501 self._field_rect = field_rect @@ -177,6 +179,8 @@ def etalon_result_type(self, etalon_result_type): :param etalon_result_type: The etalon_result_type of this OCRSecurityTextResultAllOf. # noqa: E501 :type etalon_result_type: int """ + if self.local_vars_configuration.client_side_validation and etalon_result_type is None: # noqa: E501 + raise ValueError("Invalid value for `etalon_result_type`, must not be `None`") # noqa: E501 self._etalon_result_type = etalon_result_type @@ -198,6 +202,8 @@ def etalon_field_type(self, etalon_field_type): :param etalon_field_type: The etalon_field_type of this OCRSecurityTextResultAllOf. # noqa: E501 :type etalon_field_type: int """ + if self.local_vars_configuration.client_side_validation and etalon_field_type is None: # noqa: E501 + raise ValueError("Invalid value for `etalon_field_type`, must not be `None`") # noqa: E501 self._etalon_field_type = etalon_field_type @@ -219,9 +225,34 @@ def etalon_light_type(self, etalon_light_type): :param etalon_light_type: The etalon_light_type of this OCRSecurityTextResultAllOf. # noqa: E501 :type etalon_light_type: int """ + if self.local_vars_configuration.client_side_validation and etalon_light_type is None: # noqa: E501 + raise ValueError("Invalid value for `etalon_light_type`, must not be `None`") # noqa: E501 self._etalon_light_type = etalon_light_type + @property + def etalon_field_rect(self): + """Gets the etalon_field_rect of this OCRSecurityTextResultAllOf. # noqa: E501 + + + :return: The etalon_field_rect of this OCRSecurityTextResultAllOf. # noqa: E501 + :rtype: RectangleCoordinates + """ + return self._etalon_field_rect + + @etalon_field_rect.setter + def etalon_field_rect(self, etalon_field_rect): + """Sets the etalon_field_rect of this OCRSecurityTextResultAllOf. + + + :param etalon_field_rect: The etalon_field_rect of this OCRSecurityTextResultAllOf. # noqa: E501 + :type etalon_field_rect: RectangleCoordinates + """ + if self.local_vars_configuration.client_side_validation and etalon_field_rect is None: # noqa: E501 + raise ValueError("Invalid value for `etalon_field_rect`, must not be `None`") # noqa: E501 + + self._etalon_field_rect = etalon_field_rect + @property def security_text_result_ocr(self): """Gets the security_text_result_ocr of this OCRSecurityTextResultAllOf. # noqa: E501 @@ -240,6 +271,8 @@ def security_text_result_ocr(self, security_text_result_ocr): :param security_text_result_ocr: The security_text_result_ocr of this OCRSecurityTextResultAllOf. # noqa: E501 :type security_text_result_ocr: str """ + if self.local_vars_configuration.client_side_validation and security_text_result_ocr is None: # noqa: E501 + raise ValueError("Invalid value for `security_text_result_ocr`, must not be `None`") # noqa: E501 self._security_text_result_ocr = security_text_result_ocr @@ -261,6 +294,8 @@ def etalon_result_ocr(self, etalon_result_ocr): :param etalon_result_ocr: The etalon_result_ocr of this OCRSecurityTextResultAllOf. # noqa: E501 :type etalon_result_ocr: str """ + if self.local_vars_configuration.client_side_validation and etalon_result_ocr is None: # noqa: E501 + raise ValueError("Invalid value for `etalon_result_ocr`, must not be `None`") # noqa: E501 self._etalon_result_ocr = etalon_result_ocr diff --git a/regula/documentreader/webclient/gen/models/one_candidate.py b/regula/documentreader/webclient/gen/models/one_candidate.py index 1c79f4a..0d90a61 100755 --- a/regula/documentreader/webclient/gen/models/one_candidate.py +++ b/regula/documentreader/webclient/gen/models/one_candidate.py @@ -35,27 +35,31 @@ class OneCandidate(object): 'document_name': 'str', 'id': 'int', 'p': 'float', + 'rotated180': 'bool', 'rfid_presence': 'RfidLocation', 'fdsid_list': 'FDSIDList', 'necessary_lights': 'int', 'check_authenticity': 'int', 'uv_exp': 'int', - 'authenticity_necessary_lights': 'int' + 'authenticity_necessary_lights': 'int', + 'ovi_exp': 'float' } attribute_map = { 'document_name': 'DocumentName', 'id': 'ID', 'p': 'P', + 'rotated180': 'Rotated180', 'rfid_presence': 'RFID_Presence', 'fdsid_list': 'FDSIDList', 'necessary_lights': 'NecessaryLights', 'check_authenticity': 'CheckAuthenticity', 'uv_exp': 'UVExp', - 'authenticity_necessary_lights': 'AuthenticityNecessaryLights' + 'authenticity_necessary_lights': 'AuthenticityNecessaryLights', + 'ovi_exp': 'OVIExp' } - def __init__(self, document_name=None, id=None, p=None, rfid_presence=None, fdsid_list=None, necessary_lights=None, check_authenticity=None, uv_exp=None, authenticity_necessary_lights=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, document_name=None, id=None, p=None, rotated180=None, rfid_presence=None, fdsid_list=None, necessary_lights=None, check_authenticity=None, uv_exp=None, authenticity_necessary_lights=None, ovi_exp=None, local_vars_configuration=None): # noqa: E501 """OneCandidate - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -64,32 +68,27 @@ def __init__(self, document_name=None, id=None, p=None, rfid_presence=None, fdsi self._document_name = None self._id = None self._p = None + self._rotated180 = None self._rfid_presence = None self._fdsid_list = None self._necessary_lights = None self._check_authenticity = None self._uv_exp = None self._authenticity_necessary_lights = None + self._ovi_exp = None self.discriminator = None - if document_name is not None: - self.document_name = document_name - if id is not None: - self.id = id - if p is not None: - self.p = p - if rfid_presence is not None: - self.rfid_presence = rfid_presence - if fdsid_list is not None: - self.fdsid_list = fdsid_list - if necessary_lights is not None: - self.necessary_lights = necessary_lights - if check_authenticity is not None: - self.check_authenticity = check_authenticity - if uv_exp is not None: - self.uv_exp = uv_exp - if authenticity_necessary_lights is not None: - self.authenticity_necessary_lights = authenticity_necessary_lights + self.document_name = document_name + self.id = id + self.p = p + self.rotated180 = rotated180 + self.rfid_presence = rfid_presence + self.fdsid_list = fdsid_list + self.necessary_lights = necessary_lights + self.check_authenticity = check_authenticity + self.uv_exp = uv_exp + self.authenticity_necessary_lights = authenticity_necessary_lights + self.ovi_exp = ovi_exp @property def document_name(self): @@ -111,6 +110,8 @@ def document_name(self, document_name): :param document_name: The document_name of this OneCandidate. # noqa: E501 :type document_name: str """ + if self.local_vars_configuration.client_side_validation and document_name is None: # noqa: E501 + raise ValueError("Invalid value for `document_name`, must not be `None`") # noqa: E501 self._document_name = document_name @@ -134,6 +135,8 @@ def id(self, id): :param id: The id of this OneCandidate. # noqa: E501 :type id: int """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 self._id = id @@ -157,6 +160,8 @@ def p(self, p): :param p: The p of this OneCandidate. # noqa: E501 :type p: float """ + if self.local_vars_configuration.client_side_validation and p is None: # noqa: E501 + raise ValueError("Invalid value for `p`, must not be `None`") # noqa: E501 if (self.local_vars_configuration.client_side_validation and p is not None and p > 1): # noqa: E501 raise ValueError("Invalid value for `p`, must be a value less than or equal to `1`") # noqa: E501 @@ -166,6 +171,31 @@ def p(self, p): self._p = p + @property + def rotated180(self): + """Gets the rotated180 of this OneCandidate. # noqa: E501 + + true if the document of the given type is rotated by 180 degrees # noqa: E501 + + :return: The rotated180 of this OneCandidate. # noqa: E501 + :rtype: bool + """ + return self._rotated180 + + @rotated180.setter + def rotated180(self, rotated180): + """Sets the rotated180 of this OneCandidate. + + true if the document of the given type is rotated by 180 degrees # noqa: E501 + + :param rotated180: The rotated180 of this OneCandidate. # noqa: E501 + :type rotated180: bool + """ + if self.local_vars_configuration.client_side_validation and rotated180 is None: # noqa: E501 + raise ValueError("Invalid value for `rotated180`, must not be `None`") # noqa: E501 + + self._rotated180 = rotated180 + @property def rfid_presence(self): """Gets the rfid_presence of this OneCandidate. # noqa: E501 @@ -184,6 +214,8 @@ def rfid_presence(self, rfid_presence): :param rfid_presence: The rfid_presence of this OneCandidate. # noqa: E501 :type rfid_presence: RfidLocation """ + if self.local_vars_configuration.client_side_validation and rfid_presence is None: # noqa: E501 + raise ValueError("Invalid value for `rfid_presence`, must not be `None`") # noqa: E501 self._rfid_presence = rfid_presence @@ -205,6 +237,8 @@ def fdsid_list(self, fdsid_list): :param fdsid_list: The fdsid_list of this OneCandidate. # noqa: E501 :type fdsid_list: FDSIDList """ + if self.local_vars_configuration.client_side_validation and fdsid_list is None: # noqa: E501 + raise ValueError("Invalid value for `fdsid_list`, must not be `None`") # noqa: E501 self._fdsid_list = fdsid_list @@ -228,6 +262,8 @@ def necessary_lights(self, necessary_lights): :param necessary_lights: The necessary_lights of this OneCandidate. # noqa: E501 :type necessary_lights: int """ + if self.local_vars_configuration.client_side_validation and necessary_lights is None: # noqa: E501 + raise ValueError("Invalid value for `necessary_lights`, must not be `None`") # noqa: E501 self._necessary_lights = necessary_lights @@ -251,6 +287,8 @@ def check_authenticity(self, check_authenticity): :param check_authenticity: The check_authenticity of this OneCandidate. # noqa: E501 :type check_authenticity: int """ + if self.local_vars_configuration.client_side_validation and check_authenticity is None: # noqa: E501 + raise ValueError("Invalid value for `check_authenticity`, must not be `None`") # noqa: E501 self._check_authenticity = check_authenticity @@ -274,6 +312,8 @@ def uv_exp(self, uv_exp): :param uv_exp: The uv_exp of this OneCandidate. # noqa: E501 :type uv_exp: int """ + if self.local_vars_configuration.client_side_validation and uv_exp is None: # noqa: E501 + raise ValueError("Invalid value for `uv_exp`, must not be `None`") # noqa: E501 self._uv_exp = uv_exp @@ -297,9 +337,36 @@ def authenticity_necessary_lights(self, authenticity_necessary_lights): :param authenticity_necessary_lights: The authenticity_necessary_lights of this OneCandidate. # noqa: E501 :type authenticity_necessary_lights: int """ + if self.local_vars_configuration.client_side_validation and authenticity_necessary_lights is None: # noqa: E501 + raise ValueError("Invalid value for `authenticity_necessary_lights`, must not be `None`") # noqa: E501 self._authenticity_necessary_lights = authenticity_necessary_lights + @property + def ovi_exp(self): + """Gets the ovi_exp of this OneCandidate. # noqa: E501 + + Camera exposure value necessary when obtaining document images of the given type for AXIAL lighting scheme # noqa: E501 + + :return: The ovi_exp of this OneCandidate. # noqa: E501 + :rtype: float + """ + return self._ovi_exp + + @ovi_exp.setter + def ovi_exp(self, ovi_exp): + """Sets the ovi_exp of this OneCandidate. + + Camera exposure value necessary when obtaining document images of the given type for AXIAL lighting scheme # noqa: E501 + + :param ovi_exp: The ovi_exp of this OneCandidate. # noqa: E501 + :type ovi_exp: float + """ + if self.local_vars_configuration.client_side_validation and ovi_exp is None: # noqa: E501 + raise ValueError("Invalid value for `ovi_exp`, must not be `None`") # noqa: E501 + + self._ovi_exp = ovi_exp + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/original_symbol.py b/regula/documentreader/webclient/gen/models/original_symbol.py index d92a11d..1c6e9aa 100755 --- a/regula/documentreader/webclient/gen/models/original_symbol.py +++ b/regula/documentreader/webclient/gen/models/original_symbol.py @@ -54,10 +54,8 @@ def __init__(self, code=None, probability=None, rect=None, local_vars_configurat self._rect = None self.discriminator = None - if code is not None: - self.code = code - if probability is not None: - self.probability = probability + self.code = code + self.probability = probability if rect is not None: self.rect = rect @@ -81,6 +79,8 @@ def code(self, code): :param code: The code of this OriginalSymbol. # noqa: E501 :type code: int """ + if self.local_vars_configuration.client_side_validation and code is None: # noqa: E501 + raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 self._code = code @@ -104,6 +104,8 @@ def probability(self, probability): :param probability: The probability of this OriginalSymbol. # noqa: E501 :type probability: int """ + if self.local_vars_configuration.client_side_validation and probability is None: # noqa: E501 + raise ValueError("Invalid value for `probability`, must not be `None`") # noqa: E501 if (self.local_vars_configuration.client_side_validation and probability is not None and probability > 100): # noqa: E501 raise ValueError("Invalid value for `probability`, must be a value less than or equal to `100`") # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/p_array_field.py b/regula/documentreader/webclient/gen/models/p_array_field.py index 164e6de..76b7412 100644 --- a/regula/documentreader/webclient/gen/models/p_array_field.py +++ b/regula/documentreader/webclient/gen/models/p_array_field.py @@ -40,7 +40,7 @@ class PArrayField(object): 'bc_roi_detect': 'BcROIDETECT', 'bc_text_decoder_types': 'int', 'bc_text_field_type': 'int', - 'bc_type_decode': 'int', + 'bc_type_decode': 'BarcodeType', 'bc_type_detect': 'int' } @@ -75,26 +75,19 @@ def __init__(self, bc_angle_detect=None, bc_code_result=None, bc_count_module=No self._bc_type_detect = None self.discriminator = None - if bc_angle_detect is not None: - self.bc_angle_detect = bc_angle_detect - if bc_code_result is not None: - self.bc_code_result = bc_code_result - if bc_count_module is not None: - self.bc_count_module = bc_count_module - if bc_data_module is not None: - self.bc_data_module = bc_data_module + self.bc_angle_detect = bc_angle_detect + self.bc_code_result = bc_code_result + self.bc_count_module = bc_count_module + self.bc_data_module = bc_data_module if bc_pdf417_info is not None: self.bc_pdf417_info = bc_pdf417_info - if bc_roi_detect is not None: - self.bc_roi_detect = bc_roi_detect + self.bc_roi_detect = bc_roi_detect if bc_text_decoder_types is not None: self.bc_text_decoder_types = bc_text_decoder_types if bc_text_field_type is not None: self.bc_text_field_type = bc_text_field_type - if bc_type_decode is not None: - self.bc_type_decode = bc_type_decode - if bc_type_detect is not None: - self.bc_type_detect = bc_type_detect + self.bc_type_decode = bc_type_decode + self.bc_type_detect = bc_type_detect @property def bc_angle_detect(self): @@ -114,6 +107,8 @@ def bc_angle_detect(self, bc_angle_detect): :param bc_angle_detect: The bc_angle_detect of this PArrayField. # noqa: E501 :type bc_angle_detect: float """ + if self.local_vars_configuration.client_side_validation and bc_angle_detect is None: # noqa: E501 + raise ValueError("Invalid value for `bc_angle_detect`, must not be `None`") # noqa: E501 self._bc_angle_detect = bc_angle_detect @@ -135,6 +130,8 @@ def bc_code_result(self, bc_code_result): :param bc_code_result: The bc_code_result of this PArrayField. # noqa: E501 :type bc_code_result: int """ + if self.local_vars_configuration.client_side_validation and bc_code_result is None: # noqa: E501 + raise ValueError("Invalid value for `bc_code_result`, must not be `None`") # noqa: E501 self._bc_code_result = bc_code_result @@ -156,6 +153,8 @@ def bc_count_module(self, bc_count_module): :param bc_count_module: The bc_count_module of this PArrayField. # noqa: E501 :type bc_count_module: int """ + if self.local_vars_configuration.client_side_validation and bc_count_module is None: # noqa: E501 + raise ValueError("Invalid value for `bc_count_module`, must not be `None`") # noqa: E501 self._bc_count_module = bc_count_module @@ -177,6 +176,8 @@ def bc_data_module(self, bc_data_module): :param bc_data_module: The bc_data_module of this PArrayField. # noqa: E501 :type bc_data_module: list[DataModule] """ + if self.local_vars_configuration.client_side_validation and bc_data_module is None: # noqa: E501 + raise ValueError("Invalid value for `bc_data_module`, must not be `None`") # noqa: E501 self._bc_data_module = bc_data_module @@ -219,6 +220,8 @@ def bc_roi_detect(self, bc_roi_detect): :param bc_roi_detect: The bc_roi_detect of this PArrayField. # noqa: E501 :type bc_roi_detect: BcROIDETECT """ + if self.local_vars_configuration.client_side_validation and bc_roi_detect is None: # noqa: E501 + raise ValueError("Invalid value for `bc_roi_detect`, must not be `None`") # noqa: E501 self._bc_roi_detect = bc_roi_detect @@ -270,7 +273,7 @@ def bc_type_decode(self): :return: The bc_type_decode of this PArrayField. # noqa: E501 - :rtype: int + :rtype: BarcodeType """ return self._bc_type_decode @@ -280,8 +283,10 @@ def bc_type_decode(self, bc_type_decode): :param bc_type_decode: The bc_type_decode of this PArrayField. # noqa: E501 - :type bc_type_decode: int + :type bc_type_decode: BarcodeType """ + if self.local_vars_configuration.client_side_validation and bc_type_decode is None: # noqa: E501 + raise ValueError("Invalid value for `bc_type_decode`, must not be `None`") # noqa: E501 self._bc_type_decode = bc_type_decode @@ -303,6 +308,8 @@ def bc_type_detect(self, bc_type_detect): :param bc_type_detect: The bc_type_detect of this PArrayField. # noqa: E501 :type bc_type_detect: int """ + if self.local_vars_configuration.client_side_validation and bc_type_detect is None: # noqa: E501 + raise ValueError("Invalid value for `bc_type_detect`, must not be `None`") # noqa: E501 self._bc_type_detect = bc_type_detect diff --git a/regula/documentreader/webclient/gen/models/parsing_error_codes.py b/regula/documentreader/webclient/gen/models/parsing_error_codes.py new file mode 100644 index 0000000..4a286b7 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/parsing_error_codes.py @@ -0,0 +1,345 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +The enumeration contains error codes that can return during the RFID chip processing. +""" +class ParsingErrorCodes(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + errLDS_Ok = int("1") + + errLDS_ASN_IncorrectData = int("2147483649") + + errLDS_ASN_NotEnoughData = int("2147483650") + + errLDS_ASN_Contents_UnexpectedData = int("2147483651") + + errLDS_ASN_SignedData_IncorrectData = int("2147483656") + + errLDS_ASN_SignedData_EncapContents_IncorrectData = int("2147483657") + + errLDS_ASN_SignedData_Version_IncorrectData = int("2147483658") + + errLDS_ASN_SignedData_DigestAlgorithms_IncorrectData = int("2147483665") + + errLDS_ASN_LDSObject_IncorrectData = int("2147483667") + + errLDS_ASN_LDSObject_Version_IncorrectData = int("2147483668") + + errLDS_ASN_LDSObject_DigestAlgorithm_IncorrectData = int("2147483669") + + errLDS_ASN_LDSObject_DGHashes_IncorrectData = int("2147483670") + + errLDS_ASN_LDSObject_VersionInfo_IncorrectData = int("2147483666") + + errLDS_ASN_Certificate_IncorrectData = int("2147483671") + + errLDS_ASN_Certificate_Version_IncorrectData = int("2147483672") + + errLDS_ASN_Certificate_SN_IncorrectData = int("2147483673") + + errLDS_ASN_Certificate_Signature_IncorrectData = int("2147483674") + + errLDS_ASN_Certificate_Issuer_IncorrectData = int("2147483675") + + errLDS_ASN_Certificate_Validity_IncorrectData = int("2147483676") + + errLDS_ASN_Certificate_Subject_IncorrectData = int("2147483677") + + errLDS_ASN_Certificate_SubjectPK_IncorrectData = int("2147483678") + + errLDS_ASN_Certificate_Extensions_IncorrectData = int("2147483679") + + errLDS_ASN_SignerInfo_IncorrectData = int("2147483680") + + errLDS_ASN_SignerInfo_Version_IncorrectData = int("2147483681") + + errLDS_ASN_SignerInfo_SID_IncorrectData = int("2147483682") + + errLDS_ASN_SignerInfo_DigestAlg_IncorrectData = int("2147483683") + + errLDS_ASN_SignerInfo_SignedAttrs_IncorrectData = int("2147483684") + + errLDS_ASN_SignerInfo_SignAlg_IncorrectData = int("2147483685") + + errLDS_ASN_SignerInfo_Signature_IncorrectData = int("2147483686") + + errLDS_ASN_SignerInfo_UnsignedAttrs_IncorrectData = int("2147483687") + + errLDS_ICAO_LDSObject_UnsupportedDigestAlgorithm = int("2147483696") + + errLDS_ICAO_SignedData_SignerInfos_Empty = int("2147483697") + + errLDS_ICAO_SignerInfo_UnsupportedDigestAlgorithm = int("2147483698") + + errLDS_ICAO_SignerInfo_UnsupportedSignatureAlgorithm = int("2147483699") + + errLDS_ICAO_SignerInfo_MessageDigestError = int("2147483700") + + errLDS_ICAO_SignerInfo_SignedAttrs_Missed = int("2147483702") + + errLDS_Auth_SignerInfo_CantFindCertificate = int("2147483701") + + errLDS_Auth_Error = int("2147483728") + + errLDS_Auth_UnsupportedSignatureAlgorithm = int("2147483729") + + errLDS_Auth_UnsupportedPublicKeyAlgorithm = int("2147483730") + + errLDS_Auth_MessedAlgorithms = int("2147483731") + + errLDS_Auth_PublicKeyDataInvalid = int("2147483732") + + errLDS_Auth_AlgorithmParametersDataInvalid = int("2147483733") + + errLDS_Auth_SignatureDataInvalid = int("2147483734") + + errLDS_Auth_UnsupportedDigestAlgorithm = int("2147483735") + + errLDS_Auth_SignatureDataIncorrect = int("2147483736") + + errLDS_Auth_AlgorithmParametersNotDefined = int("2147483737") + + errLDS_Auth_SignatureCheckFailed = int("2147483738") + + errLDS_DG_WrongTag = int("2147483760") + + errLDS_DG_Contents_UnexpectedData = int("2147483761") + + errLDS_BAP_SymmetricCypher_CantInitialize = int("2164260881") + + errLDS_PACE_Info_NotAvailable = int("2164260896") + + errLDS_PACE_SymmetricCypher_CantInitialize = int("2164260897") + + errLDS_PACE_KeyAgreement_CantInitialize = int("2164260898") + + errLDS_PACE_EphemeralKeys_CantCreate = int("2164260899") + + errLDS_PACE_Mapping_CantDecodeNonce = int("2164260900") + + errLDS_PACE_SharedSecret_CantCreate = int("2164260901") + + errLDS_PACE_DomainParams_UnsupportedFormat = int("2164260902") + + errLDS_PACE_EphemeralKeys_Incorrect = int("2164260903") + + errLDS_PACE_Mapping_EphemeralKeys_Incorrect = int("2164260904") + + errLDS_PACE_Mapping_CantPerform = int("2164260905") + + errLDS_PACE_NonMatchingAuthTokens = int("2164260906") + + errLDS_PACE_CAM_Data_Incorrect = int("2164260907") + + errLDS_PACE_CAM_Data_CantVerify = int("2164260908") + + errLDS_PACE_CAM_Data_NonMatching = int("2164260909") + + errLDS_PACE_IM_Scheme_Incorrect = int("2164260910") + + errLDS_PACE_IM_RandomMapping_Failed = int("2164260911") + + errLDS_CA_CantFindPublicKey = int("2164260912") + + errLDS_CA_CantFindInfo = int("2164260913") + + errLDS_CA_IncorrectVersion = int("2164260914") + + errLDS_CA_CantFindDomainParameters = int("2164260915") + + errLDS_CA_KeyAgreement_CantInitialize = int("2164260916") + + errLDS_CA_PublicKey_UnsupportedAlgorithm = int("2164260917") + + errLDS_CA_EphemeralKeys_CantCreate = int("2164260918") + + errLDS_CA_SharedSecret_CantCreate = int("2164260919") + + errLDS_CA_NonMatchingAuthTokens = int("2164260920") + + errLDS_TA_IncorrectVersion = int("2164260928") + + errLDS_TA_CantBuildCertificateChain = int("2164260929") + + errLDS_TA_CantFindISPrivateKey = int("2164260930") + + errLDS_TA_PublicKey_UnsupportedAlgorithm = int("2164260931") + + errLDS_TA_SignatureBuildingError = int("2164260932") + + errLDS_TA_InvalidKeyAlgorithmParameters = int("2164260933") + + errLDS_AA_PublicKey_UnsupportedAlgorithm = int("2164260944") + + errLDS_AA_PublicKey_IncorrectData = int("2164260945") + + errLDS_AA_PublicKey_IncorrectParameters = int("2164260946") + + errLDS_AA_PublicKey_UndefinedParameters = int("2164260947") + + errLDS_AA_Signature_IncorrectData = int("2164260948") + + errLDS_AA_UnsupportedRecoveryScheme = int("2164260949") + + errLDS_AA_IncorrectTrailer = int("2164260950") + + errLDS_AA_UnsupportedDigestAlgorithm = int("2164260951") + + errLDS_RI_SectorKey_CantFind = int("2164260976") + + errLDS_RI_SectorKey_IncorrectData = int("2164260977") + + errLDS_RI_SectorKey_IncompleteData = int("2164260978") + + errLDS_CV_Certificate_MissingMandatoryData_PK = int("2164260960") + + errLDS_CV_Certificate_PublicKey_Unsupported = int("2164260962") + + errLDS_CV_Certificate_CHAT_UnsupportedTerminalType = int("2164260963") + + errLDS_CV_Certificate_PrivateKey_Unsupported = int("2164260964") + + errLDS_CV_Certificate_PrivateKey_InvalidParams = int("2164260965") + + errLDS_CV_Certificate_IncorrectData = int("2164261216") + + errLDS_CV_Certificate_CPI_IncorrectData = int("2164261217") + + errLDS_CV_Certificate_CAR_IncorrectData = int("2164261218") + + errLDS_CV_Certificate_PublicKey_IncorrectData = int("2164261219") + + errLDS_CV_Certificate_CHR_IncorrectData = int("2164261220") + + errLDS_CV_Certificate_CHAT_IncorrectData = int("2164261221") + + errLDS_CV_Certificate_ValidFrom_IncorrectData = int("2164261222") + + errLDS_CV_Certificate_ValidTo_IncorrectData = int("2164261223") + + errLDS_CV_Certificate_Extensions_IncorrectData = int("2164261224") + + errLDS_CV_Certificate_PrivateKey_IncorrectData = int("2164261225") + + errLDS_CV_Certificate_PrivateKey_Missing = int("2164261226") + + errLDS_VDS_UnsupportedVersion = int("2164261376") + + errLDS_VDS_Issuing_Country_Size = int("2164261377") + + errLDS_VDS_Issuing_Country_IncorrectData = int("2164261378") + + errLDS_VDS_Signer_Certificate_Size = int("2164261379") + + errLDS_VDS_Signer_Certificate_Data = int("2164261380") + + errLDS_VDS_Signature_IncorrectData = int("2164261381") + + errLDS_VDS_NC_IncorrectData = int("2164261632") + + errLDS_VDS_NC_MissingOrIncorrect_Data = int("2164261633") + + errLDS_VDS_NC_MissingOrIncorrect_Header = int("2164261634") + + errLDS_VDS_NC_MissingOrIncorrect_Type = int("2164261635") + + errLDS_VDS_NC_MissingOrIncorrect_Version = int("2164261636") + + errLDS_VDS_NC_MissingOrIncorrect_IssuingCountry = int("2164261637") + + errLDS_VDS_NC_MissingOrIncorrect_Message = int("2164261638") + + errLDS_VDS_NC_MissingOrIncorrect_Signature = int("2164261639") + + errLDS_VDS_NC_MissingOrIncorrect_SigAlgorithm = int("2164261640") + + errLDS_VDS_NC_MissingOrIncorrect_Certificate = int("2164261641") + + errLDS_VDS_NC_MissingOrIncorrect_SigValue = int("2164261642") + + allowable_values = [errLDS_Ok, errLDS_ASN_IncorrectData, errLDS_ASN_NotEnoughData, errLDS_ASN_Contents_UnexpectedData, errLDS_ASN_SignedData_IncorrectData, errLDS_ASN_SignedData_EncapContents_IncorrectData, errLDS_ASN_SignedData_Version_IncorrectData, errLDS_ASN_SignedData_DigestAlgorithms_IncorrectData, errLDS_ASN_LDSObject_IncorrectData, errLDS_ASN_LDSObject_Version_IncorrectData, errLDS_ASN_LDSObject_DigestAlgorithm_IncorrectData, errLDS_ASN_LDSObject_DGHashes_IncorrectData, errLDS_ASN_LDSObject_VersionInfo_IncorrectData, errLDS_ASN_Certificate_IncorrectData, errLDS_ASN_Certificate_Version_IncorrectData, errLDS_ASN_Certificate_SN_IncorrectData, errLDS_ASN_Certificate_Signature_IncorrectData, errLDS_ASN_Certificate_Issuer_IncorrectData, errLDS_ASN_Certificate_Validity_IncorrectData, errLDS_ASN_Certificate_Subject_IncorrectData, errLDS_ASN_Certificate_SubjectPK_IncorrectData, errLDS_ASN_Certificate_Extensions_IncorrectData, errLDS_ASN_SignerInfo_IncorrectData, errLDS_ASN_SignerInfo_Version_IncorrectData, errLDS_ASN_SignerInfo_SID_IncorrectData, errLDS_ASN_SignerInfo_DigestAlg_IncorrectData, errLDS_ASN_SignerInfo_SignedAttrs_IncorrectData, errLDS_ASN_SignerInfo_SignAlg_IncorrectData, errLDS_ASN_SignerInfo_Signature_IncorrectData, errLDS_ASN_SignerInfo_UnsignedAttrs_IncorrectData, errLDS_ICAO_LDSObject_UnsupportedDigestAlgorithm, errLDS_ICAO_SignedData_SignerInfos_Empty, errLDS_ICAO_SignerInfo_UnsupportedDigestAlgorithm, errLDS_ICAO_SignerInfo_UnsupportedSignatureAlgorithm, errLDS_ICAO_SignerInfo_MessageDigestError, errLDS_ICAO_SignerInfo_SignedAttrs_Missed, errLDS_Auth_SignerInfo_CantFindCertificate, errLDS_Auth_Error, errLDS_Auth_UnsupportedSignatureAlgorithm, errLDS_Auth_UnsupportedPublicKeyAlgorithm, errLDS_Auth_MessedAlgorithms, errLDS_Auth_PublicKeyDataInvalid, errLDS_Auth_AlgorithmParametersDataInvalid, errLDS_Auth_SignatureDataInvalid, errLDS_Auth_UnsupportedDigestAlgorithm, errLDS_Auth_SignatureDataIncorrect, errLDS_Auth_AlgorithmParametersNotDefined, errLDS_Auth_SignatureCheckFailed, errLDS_DG_WrongTag, errLDS_DG_Contents_UnexpectedData, errLDS_BAP_SymmetricCypher_CantInitialize, errLDS_PACE_Info_NotAvailable, errLDS_PACE_SymmetricCypher_CantInitialize, errLDS_PACE_KeyAgreement_CantInitialize, errLDS_PACE_EphemeralKeys_CantCreate, errLDS_PACE_Mapping_CantDecodeNonce, errLDS_PACE_SharedSecret_CantCreate, errLDS_PACE_DomainParams_UnsupportedFormat, errLDS_PACE_EphemeralKeys_Incorrect, errLDS_PACE_Mapping_EphemeralKeys_Incorrect, errLDS_PACE_Mapping_CantPerform, errLDS_PACE_NonMatchingAuthTokens, errLDS_PACE_CAM_Data_Incorrect, errLDS_PACE_CAM_Data_CantVerify, errLDS_PACE_CAM_Data_NonMatching, errLDS_PACE_IM_Scheme_Incorrect, errLDS_PACE_IM_RandomMapping_Failed, errLDS_CA_CantFindPublicKey, errLDS_CA_CantFindInfo, errLDS_CA_IncorrectVersion, errLDS_CA_CantFindDomainParameters, errLDS_CA_KeyAgreement_CantInitialize, errLDS_CA_PublicKey_UnsupportedAlgorithm, errLDS_CA_EphemeralKeys_CantCreate, errLDS_CA_SharedSecret_CantCreate, errLDS_CA_NonMatchingAuthTokens, errLDS_TA_IncorrectVersion, errLDS_TA_CantBuildCertificateChain, errLDS_TA_CantFindISPrivateKey, errLDS_TA_PublicKey_UnsupportedAlgorithm, errLDS_TA_SignatureBuildingError, errLDS_TA_InvalidKeyAlgorithmParameters, errLDS_AA_PublicKey_UnsupportedAlgorithm, errLDS_AA_PublicKey_IncorrectData, errLDS_AA_PublicKey_IncorrectParameters, errLDS_AA_PublicKey_UndefinedParameters, errLDS_AA_Signature_IncorrectData, errLDS_AA_UnsupportedRecoveryScheme, errLDS_AA_IncorrectTrailer, errLDS_AA_UnsupportedDigestAlgorithm, errLDS_RI_SectorKey_CantFind, errLDS_RI_SectorKey_IncorrectData, errLDS_RI_SectorKey_IncompleteData, errLDS_CV_Certificate_MissingMandatoryData_PK, errLDS_CV_Certificate_PublicKey_Unsupported, errLDS_CV_Certificate_CHAT_UnsupportedTerminalType, errLDS_CV_Certificate_PrivateKey_Unsupported, errLDS_CV_Certificate_PrivateKey_InvalidParams, errLDS_CV_Certificate_IncorrectData, errLDS_CV_Certificate_CPI_IncorrectData, errLDS_CV_Certificate_CAR_IncorrectData, errLDS_CV_Certificate_PublicKey_IncorrectData, errLDS_CV_Certificate_CHR_IncorrectData, errLDS_CV_Certificate_CHAT_IncorrectData, errLDS_CV_Certificate_ValidFrom_IncorrectData, errLDS_CV_Certificate_ValidTo_IncorrectData, errLDS_CV_Certificate_Extensions_IncorrectData, errLDS_CV_Certificate_PrivateKey_IncorrectData, errLDS_CV_Certificate_PrivateKey_Missing, errLDS_VDS_UnsupportedVersion, errLDS_VDS_Issuing_Country_Size, errLDS_VDS_Issuing_Country_IncorrectData, errLDS_VDS_Signer_Certificate_Size, errLDS_VDS_Signer_Certificate_Data, errLDS_VDS_Signature_IncorrectData, errLDS_VDS_NC_IncorrectData, errLDS_VDS_NC_MissingOrIncorrect_Data, errLDS_VDS_NC_MissingOrIncorrect_Header, errLDS_VDS_NC_MissingOrIncorrect_Type, errLDS_VDS_NC_MissingOrIncorrect_Version, errLDS_VDS_NC_MissingOrIncorrect_IssuingCountry, errLDS_VDS_NC_MissingOrIncorrect_Message, errLDS_VDS_NC_MissingOrIncorrect_Signature, errLDS_VDS_NC_MissingOrIncorrect_SigAlgorithm, errLDS_VDS_NC_MissingOrIncorrect_Certificate, errLDS_VDS_NC_MissingOrIncorrect_SigValue] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """ParsingErrorCodes - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ParsingErrorCodes): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ParsingErrorCodes): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/parsing_notification_codes.py b/regula/documentreader/webclient/gen/models/parsing_notification_codes.py index 9b66ae5..f5250f2 100644 --- a/regula/documentreader/webclient/gen/models/parsing_notification_codes.py +++ b/regula/documentreader/webclient/gen/models/parsing_notification_codes.py @@ -24,283 +24,283 @@ class ParsingNotificationCodes(object): Do not edit the class manually. """ - ntfLDS_ASN_Certificate_IncorrectVersion = int("-1879048191") + ntfLDS_ASN_Certificate_IncorrectVersion = int("2415919105") - ntfLDS_ASN_Certificate_NonMatchingSignatureAlgorithm = int("-1879048190") + ntfLDS_ASN_Certificate_NonMatchingSignatureAlgorithm = int("2415919106") - ntfLDS_ASN_Certificate_IncorrectTimeCoding = int("-1879048189") + ntfLDS_ASN_Certificate_IncorrectTimeCoding = int("2415919107") - ntfLDS_ASN_Certificate_IncorrectUseOfGeneralizedTime = int("-1879048188") + ntfLDS_ASN_Certificate_IncorrectUseOfGeneralizedTime = int("2415919108") - ntfLDS_ASN_Certificate_EmptyIssuer = int("-1879048187") + ntfLDS_ASN_Certificate_EmptyIssuer = int("2415919109") - ntfLDS_ASN_Certificate_EmptySubject = int("-1879048186") + ntfLDS_ASN_Certificate_EmptySubject = int("2415919110") - ntfLDS_ASN_Certificate_UnsupportedCriticalExtension = int("-1879048184") + ntfLDS_ASN_Certificate_UnsupportedCriticalExtension = int("2415919112") - ntfLDS_ASN_Certificate_ForcedDefaultCSCARole = int("-1879048178") + ntfLDS_ASN_Certificate_ForcedDefaultCSCARole = int("2415919118") - ntfLDS_ASN_Certificate_ForcedDefaultDSRole = int("-1879048177") + ntfLDS_ASN_Certificate_ForcedDefaultDSRole = int("2415919119") - ntfLDS_ASN_Certificate_IncorrectIssuerSubjectDS = int("-1879048176") + ntfLDS_ASN_Certificate_IncorrectIssuerSubjectDS = int("2415919120") - ntfLDS_ASN_Certificate_DuplicatingExtensions = int("-1879048169") + ntfLDS_ASN_Certificate_DuplicatingExtensions = int("2415919127") - ntfLDS_ICAO_Certificate_Version_Missed = int("-1879047680") + ntfLDS_ICAO_Certificate_Version_Missed = int("2415919616") - ntfLDS_ICAO_Certificate_Version_Incorrect = int("-1879047679") + ntfLDS_ICAO_Certificate_Version_Incorrect = int("2415919617") - ntfLDS_ICAO_Certificate_Issuer_Country_Missed = int("-1879047678") + ntfLDS_ICAO_Certificate_Issuer_Country_Missed = int("2415919618") - ntfLDS_ICAO_Certificate_Issuer_CommonName_Missed = int("-1879047677") + ntfLDS_ICAO_Certificate_Issuer_CommonName_Missed = int("2415919619") - ntfLDS_ICAO_Certificate_Issuer_CountryNonCompliant = int("-1879047676") + ntfLDS_ICAO_Certificate_Issuer_CountryNonCompliant = int("2415919620") - ntfLDS_ICAO_Certificate_Subject_Country_Missed = int("-1879047675") + ntfLDS_ICAO_Certificate_Subject_Country_Missed = int("2415919621") - ntfLDS_ICAO_Certificate_Subject_CommonName_Missed = int("-1879047674") + ntfLDS_ICAO_Certificate_Subject_CommonName_Missed = int("2415919622") - ntfLDS_ICAO_Certificate_Subject_CountryNonCompliant = int("-1879047673") + ntfLDS_ICAO_Certificate_Subject_CountryNonCompliant = int("2415919623") - ntfLDS_ICAO_Certificate_UsingNonCompliantData = int("-1879047672") + ntfLDS_ICAO_Certificate_UsingNonCompliantData = int("2415919624") - ntfLDS_ICAO_Certificate_UnsupportedSignatureAlgorithm = int("-1879047671") + ntfLDS_ICAO_Certificate_UnsupportedSignatureAlgorithm = int("2415919625") - ntfLDS_ICAO_Certificate_UnsupportedPublicKeyAlgorithm = int("-1879047670") + ntfLDS_ICAO_Certificate_UnsupportedPublicKeyAlgorithm = int("2415919626") - ntfLDS_ICAO_Certificate_MissedExtensions = int("-1879047669") + ntfLDS_ICAO_Certificate_MissedExtensions = int("2415919627") - ntfLDS_ICAO_Certificate_Validity = int("-1879047668") + ntfLDS_ICAO_Certificate_Validity = int("2415919628") - ntfLDS_ICAO_Certificate_Ext_UsingNonCompliantData = int("-1879047667") + ntfLDS_ICAO_Certificate_Ext_UsingNonCompliantData = int("2415919629") - ntfLDS_ICAO_Certificate_Ext_KeyUsage_Missed = int("-1879047666") + ntfLDS_ICAO_Certificate_Ext_KeyUsage_Missed = int("2415919630") - ntfLDS_ICAO_Certificate_Ext_KeyUsage_NotCritical = int("-1879047665") + ntfLDS_ICAO_Certificate_Ext_KeyUsage_NotCritical = int("2415919631") - ntfLDS_ICAO_Certificate_Ext_KeyUsage_IncorrectData = int("-1879047664") + ntfLDS_ICAO_Certificate_Ext_KeyUsage_IncorrectData = int("2415919632") - ntfLDS_ICAO_Certificate_Ext_BasicC_Missed = int("-1879047663") + ntfLDS_ICAO_Certificate_Ext_BasicC_Missed = int("2415919633") - ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectUsage1 = int("-1879047662") + ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectUsage1 = int("2415919634") - ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectUsage2 = int("-1879047661") + ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectUsage2 = int("2415919635") - ntfLDS_ICAO_Certificate_Ext_BasicC_NotCritical = int("-1879047660") + ntfLDS_ICAO_Certificate_Ext_BasicC_NotCritical = int("2415919636") - ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectData = int("-1879047659") + ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectData = int("2415919637") - ntfLDS_ICAO_Certificate_Ext_BasicC_PathLenC_Missed = int("-1879047658") + ntfLDS_ICAO_Certificate_Ext_BasicC_PathLenC_Missed = int("2415919638") - ntfLDS_ICAO_Certificate_Ext_BasicC_PathLenC_Incorrect = int("-1879047657") + ntfLDS_ICAO_Certificate_Ext_BasicC_PathLenC_Incorrect = int("2415919639") - ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_NotCritical = int("-1879047656") + ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_NotCritical = int("2415919640") - ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_IncorrectUsage = int("-1879047655") + ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_IncorrectUsage = int("2415919641") - ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_IncorrectData = int("-1879047654") + ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_IncorrectData = int("2415919642") - ntfLDS_ICAO_Certificate_Ext_AuthKeyID_Missed = int("-1879047653") + ntfLDS_ICAO_Certificate_Ext_AuthKeyID_Missed = int("2415919643") - ntfLDS_ICAO_Certificate_Ext_AuthKeyID_IncorrectData = int("-1879047652") + ntfLDS_ICAO_Certificate_Ext_AuthKeyID_IncorrectData = int("2415919644") - ntfLDS_ICAO_Certificate_Ext_AuthKeyID_KeyID_Missed = int("-1879047651") + ntfLDS_ICAO_Certificate_Ext_AuthKeyID_KeyID_Missed = int("2415919645") - ntfLDS_ICAO_Certificate_Ext_SubjectKeyID_Missed = int("-1879047650") + ntfLDS_ICAO_Certificate_Ext_SubjectKeyID_Missed = int("2415919646") - ntfLDS_ICAO_Certificate_Ext_SubjectKeyID_IncorrectData = int("-1879047649") + ntfLDS_ICAO_Certificate_Ext_SubjectKeyID_IncorrectData = int("2415919647") - ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_Missed = int("-1879047648") + ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_Missed = int("2415919648") - ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_IncorrectData = int("-1879047647") + ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_IncorrectData = int("2415919649") - ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_Empty = int("-1879047646") + ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_Empty = int("2415919650") - ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Missed = int("-1879047645") + ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Missed = int("2415919651") - ntfLDS_ICAO_Certificate_Ext_SubjectAltName_IncorrectData = int("-1879047644") + ntfLDS_ICAO_Certificate_Ext_SubjectAltName_IncorrectData = int("2415919652") - ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Empty = int("-1879047643") + ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Empty = int("2415919653") - ntfLDS_ICAO_Certificate_Ext_SubjectAltName_NonCompliant = int("-1879047642") + ntfLDS_ICAO_Certificate_Ext_SubjectAltName_NonCompliant = int("2415919654") - ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Critical = int("-1879047640") + ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Critical = int("2415919656") - ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_Empty = int("-1879047639") + ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_Empty = int("2415919657") - ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_Incorrect = int("-1879047638") + ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_Incorrect = int("2415919658") - ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_NonCompliant = int("-1879047637") + ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_NonCompliant = int("2415919659") - ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Missed = int("-1879047636") + ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Missed = int("2415919660") - ntfLDS_ICAO_Certificate_Ext_IssuerAltName_IncorrectData = int("-1879047635") + ntfLDS_ICAO_Certificate_Ext_IssuerAltName_IncorrectData = int("2415919661") - ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Empty = int("-1879047634") + ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Empty = int("2415919662") - ntfLDS_ICAO_Certificate_Ext_IssuerAltName_NonCompliant = int("-1879047633") + ntfLDS_ICAO_Certificate_Ext_IssuerAltName_NonCompliant = int("2415919663") - ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Critical = int("-1879047631") + ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Critical = int("2415919665") - ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_Empty = int("-1879047630") + ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_Empty = int("2415919666") - ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_Incorrect = int("-1879047629") + ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_Incorrect = int("2415919667") - ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_NonCompliant = int("-1879047628") + ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_NonCompliant = int("2415919668") - ntfLDS_ICAO_Certificate_Ext_DocTypeList_Missed = int("-1879047627") + ntfLDS_ICAO_Certificate_Ext_DocTypeList_Missed = int("2415919669") - ntfLDS_ICAO_Certificate_Ext_DocTypeList_IncorrectData = int("-1879047626") + ntfLDS_ICAO_Certificate_Ext_DocTypeList_IncorrectData = int("2415919670") - ntfLDS_ICAO_Certificate_Ext_DocTypeList_Version = int("-1879047625") + ntfLDS_ICAO_Certificate_Ext_DocTypeList_Version = int("2415919671") - ntfLDS_ICAO_Certificate_Ext_DocTypeList_DocTypes = int("-1879047624") + ntfLDS_ICAO_Certificate_Ext_DocTypeList_DocTypes = int("2415919672") - ntfLDS_ICAO_Certificate_Ext_DocTypeList_DocTypes_Empty = int("-1879047623") + ntfLDS_ICAO_Certificate_Ext_DocTypeList_DocTypes_Empty = int("2415919673") - ntfLDS_ICAO_Certificate_Ext_CertPolicies_IncorrectData = int("-1879047622") + ntfLDS_ICAO_Certificate_Ext_CertPolicies_IncorrectData = int("2415919674") - ntfLDS_ICAO_Certificate_Ext_CertPolicies_Empty = int("-1879047621") + ntfLDS_ICAO_Certificate_Ext_CertPolicies_Empty = int("2415919675") - ntfLDS_ICAO_Certificate_Ext_CertPolicies_PolicyID_Missed = int("-1879047620") + ntfLDS_ICAO_Certificate_Ext_CertPolicies_PolicyID_Missed = int("2415919676") - ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_Missed = int("-1879047619") + ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_Missed = int("2415919677") - ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_IncorrectData = int("-1879047618") + ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_IncorrectData = int("2415919678") - ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_Empty = int("-1879047617") + ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_Empty = int("2415919679") - ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_PointMissed = int("-1879047616") + ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_PointMissed = int("2415919680") - ntfLDS_ICAO_Certificate_SN_NonCompliant = int("-1879047615") + ntfLDS_ICAO_Certificate_SN_NonCompliant = int("2415919681") - ntfLDS_ICAO_Certificate_Issuer_SN_NonCompliant = int("-1879047614") + ntfLDS_ICAO_Certificate_Issuer_SN_NonCompliant = int("2415919682") - ntfLDS_ICAO_Certificate_Subject_SN_NonCompliant = int("-1879047613") + ntfLDS_ICAO_Certificate_Subject_SN_NonCompliant = int("2415919683") - ntfLDS_ICAO_Certificate_Issuer_AttributeNonCompliant = int("-1879047612") + ntfLDS_ICAO_Certificate_Issuer_AttributeNonCompliant = int("2415919684") - ntfLDS_ICAO_Certificate_Subject_AttributeNonCompliant = int("-1879047611") + ntfLDS_ICAO_Certificate_Subject_AttributeNonCompliant = int("2415919685") - ntfLDS_ICAO_Certificate_IssuerSubject_Country_NonMatching = int("-1879047610") + ntfLDS_ICAO_Certificate_IssuerSubject_Country_NonMatching = int("2415919686") - ntfLDS_ICAO_Certificate_Ext_CSCA_AltNames_NonMatching = int("-1879047609") + ntfLDS_ICAO_Certificate_Ext_CSCA_AltNames_NonMatching = int("2415919687") - ntfLDS_ICAO_Certificate_Ext_NameChange_IncorrectData = int("-1879047608") + ntfLDS_ICAO_Certificate_Ext_NameChange_IncorrectData = int("2415919688") - ntfLDS_ICAO_Certificate_Ext_NameChange_NonCompliant = int("-1879047607") + ntfLDS_ICAO_Certificate_Ext_NameChange_NonCompliant = int("2415919689") - ntfLDS_ICAO_Certificate_Ext_NameChange_Critical = int("-1879047606") + ntfLDS_ICAO_Certificate_Ext_NameChange_Critical = int("2415919690") - ntfLDS_ICAO_Certificate_Ext_DocTypeList_NonCompliant = int("-1879047605") + ntfLDS_ICAO_Certificate_Ext_DocTypeList_NonCompliant = int("2415919691") - ntfLDS_ICAO_Certificate_Ext_DocTypeList_Critical = int("-1879047604") + ntfLDS_ICAO_Certificate_Ext_DocTypeList_Critical = int("2415919692") - ntfLDS_ICAO_Certificate_Ext_Optional_Critical = int("-1879047603") + ntfLDS_ICAO_Certificate_Ext_Optional_Critical = int("2415919693") - ntfLDS_ICAO_Certificate_Subject_NonCompliant = int("-1879047602") + ntfLDS_ICAO_Certificate_Subject_NonCompliant = int("2415919694") - ntfLDS_ICAO_Certificate_Subject_CommonNameNonCompliant = int("-1879047601") + ntfLDS_ICAO_Certificate_Subject_CommonNameNonCompliant = int("2415919695") - ntfLDS_ICAO_COM_LDS_Version_Incorrect = int("-1879048160") + ntfLDS_ICAO_COM_LDS_Version_Incorrect = int("2415919136") - ntfLDS_ICAO_COM_LDS_Version_Missing = int("-1879048159") + ntfLDS_ICAO_COM_LDS_Version_Missing = int("2415919137") - ntfLDS_ICAO_COM_Unicode_Version_Incorrect = int("-1879048158") + ntfLDS_ICAO_COM_Unicode_Version_Incorrect = int("2415919138") - ntfLDS_ICAO_COM_Unicode_Version_Missing = int("-1879048157") + ntfLDS_ICAO_COM_Unicode_Version_Missing = int("2415919139") - ntfLDS_ICAO_COM_DGPM_Incorrect = int("-1879048156") + ntfLDS_ICAO_COM_DGPM_Incorrect = int("2415919140") - ntfLDS_ICAO_COM_DGPM_Missing = int("-1879048155") + ntfLDS_ICAO_COM_DGPM_Missing = int("2415919141") - ntfLDS_ICAO_COM_DGPM_Unexpected = int("-1879048154") + ntfLDS_ICAO_COM_DGPM_Unexpected = int("2415919142") - ntfLDS_ICAO_Application_LDSVersion_Unsupported = int("-1879048144") + ntfLDS_ICAO_Application_LDSVersion_Unsupported = int("2415919152") - ntfLDS_ICAO_Application_UnicodeVersion_Unsupported = int("-1879048143") + ntfLDS_ICAO_Application_UnicodeVersion_Unsupported = int("2415919153") - ntfLDS_ICAO_Application_LDSVersion_Inconsistent = int("-1879048142") + ntfLDS_ICAO_Application_LDSVersion_Inconsistent = int("2415919154") - ntfLDS_ICAO_Application_UnicodeVersion_Inconsistent = int("-1879048141") + ntfLDS_ICAO_Application_UnicodeVersion_Inconsistent = int("2415919155") - ntfLDS_ASN_SignedData_OID_Incorrect = int("-1879047936") + ntfLDS_ASN_SignedData_OID_Incorrect = int("2415919360") - ntfLDS_ASN_SignedData_Version_Incorrect = int("-1879047776") + ntfLDS_ASN_SignedData_Version_Incorrect = int("2415919520") - ntfLDS_ASN_SignedData_ContentOID_Incorrect = int("-1879047775") + ntfLDS_ASN_SignedData_ContentOID_Incorrect = int("2415919521") - ntfLDS_ICAO_SignedData_Version_Incorrect = int("-1879047935") + ntfLDS_ICAO_SignedData_Version_Incorrect = int("2415919361") - ntfLDS_ICAO_SignedData_DigestAlgorithms_Empty = int("-1879047934") + ntfLDS_ICAO_SignedData_DigestAlgorithms_Empty = int("2415919362") - ntfLDS_ICAO_SignedData_DigestAlgorithms_Unsupported = int("-1879047933") + ntfLDS_ICAO_SignedData_DigestAlgorithms_Unsupported = int("2415919363") - ntfLDS_ICAO_SignedData_SignerInfos_MultipleEntries = int("-1879047927") + ntfLDS_ICAO_SignedData_SignerInfos_MultipleEntries = int("2415919369") - ntfLDS_ICAO_SignedData_Certificates_Missed = int("-1879047760") + ntfLDS_ICAO_SignedData_Certificates_Missed = int("2415919536") - ntfLDS_ICAO_SignedData_Certificates_Empty = int("-1879047759") + ntfLDS_ICAO_SignedData_Certificates_Empty = int("2415919537") - ntfLDS_ICAO_SignedData_CRLs_IncorrectUsage = int("-1879047758") + ntfLDS_ICAO_SignedData_CRLs_IncorrectUsage = int("2415919538") - ntfLDS_ICAO_LDSObject_IncorrectContentOID = int("-1879047932") + ntfLDS_ICAO_LDSObject_IncorrectContentOID = int("2415919364") - ntfLDS_ICAO_LDSObject_DGNumber_Incorrect = int("-1879047931") + ntfLDS_ICAO_LDSObject_DGNumber_Incorrect = int("2415919365") - ntfLDS_ICAO_LDSObject_DGHash_Missing = int("-1879047930") + ntfLDS_ICAO_LDSObject_DGHash_Missing = int("2415919366") - ntfLDS_ICAO_LDSObject_DGHash_Extra = int("-1879047929") + ntfLDS_ICAO_LDSObject_DGHash_Extra = int("2415919367") - ntfLDS_ICAO_LDSObject_Version_Incorrect = int("-1879047928") + ntfLDS_ICAO_LDSObject_Version_Incorrect = int("2415919368") - ntfLDS_ICAO_MasterList_Version_Incorrect = int("-1879047744") + ntfLDS_ICAO_MasterList_Version_Incorrect = int("2415919552") - ntfLDS_ICAO_DeviationList_Version_Incorrect = int("-1879047736") + ntfLDS_ICAO_DeviationList_Version_Incorrect = int("2415919560") - ntfLDS_BSI_DefectList_Version_Incorrect = int("-1879047728") + ntfLDS_BSI_DefectList_Version_Incorrect = int("2415919568") - ntfLDS_BSI_BlackList_Version_Incorrect = int("-1879047720") + ntfLDS_BSI_BlackList_Version_Incorrect = int("2415919576") - ntfLDS_ASN_SignerInfo_Version_Incorrect = int("-1879047926") + ntfLDS_ASN_SignerInfo_Version_Incorrect = int("2415919370") - ntfLDS_ASN_SignerInfo_SID_IncorrectChoice = int("-1879047925") + ntfLDS_ASN_SignerInfo_SID_IncorrectChoice = int("2415919371") - ntfLDS_ASN_SignerInfo_SID_DigestAlgorithmNotListed = int("-1879047924") + ntfLDS_ASN_SignerInfo_SID_DigestAlgorithmNotListed = int("2415919372") - ntfLDS_ASN_SignerInfo_MessageDigestAttr_Missing = int("-1879047923") + ntfLDS_ASN_SignerInfo_MessageDigestAttr_Missing = int("2415919373") - ntfLDS_ASN_SignerInfo_MessageDigestAttr_Data = int("-1879047922") + ntfLDS_ASN_SignerInfo_MessageDigestAttr_Data = int("2415919374") - ntfLDS_ASN_SignerInfo_MessageDigestAttr_Value = int("-1879047921") + ntfLDS_ASN_SignerInfo_MessageDigestAttr_Value = int("2415919375") - ntfLDS_ASN_SignerInfo_ContentTypeAttr_Missing = int("-1879047920") + ntfLDS_ASN_SignerInfo_ContentTypeAttr_Missing = int("2415919376") - ntfLDS_ASN_SignerInfo_ContentTypeAttr_Data = int("-1879047919") + ntfLDS_ASN_SignerInfo_ContentTypeAttr_Data = int("2415919377") - ntfLDS_ASN_SignerInfo_ContentTypeAttr_Value = int("-1879047918") + ntfLDS_ASN_SignerInfo_ContentTypeAttr_Value = int("2415919378") - ntfLDS_ASN_SignerInfo_SigningTimeAttr_Missing = int("-1879047909") + ntfLDS_ASN_SignerInfo_SigningTimeAttr_Missing = int("2415919387") - ntfLDS_ASN_SignerInfo_SigningTimeAttr_Data = int("-1879047908") + ntfLDS_ASN_SignerInfo_SigningTimeAttr_Data = int("2415919388") - ntfLDS_ASN_SignerInfo_SigningTimeAttr_Value = int("-1879047907") + ntfLDS_ASN_SignerInfo_SigningTimeAttr_Value = int("2415919389") - ntfLDS_ASN_SignerInfo_ListContentDescriptionAttr_Missing = int("-1879047906") + ntfLDS_ASN_SignerInfo_ListContentDescriptionAttr_Missing = int("2415919390") - ntfLDS_ASN_SignerInfo_ListContentDescriptionAttr_Data = int("-1879047905") + ntfLDS_ASN_SignerInfo_ListContentDescriptionAttr_Data = int("2415919391") - ntfLDS_Auth_SignerInfo_Certificate_Validity = int("-1879047915") + ntfLDS_Auth_SignerInfo_Certificate_Validity = int("2415919381") - ntfLDS_Auth_SignerInfo_Certificate_RootIsNotTrusted = int("-1879047914") + ntfLDS_Auth_SignerInfo_Certificate_RootIsNotTrusted = int("2415919382") - ntfLDS_Auth_SignerInfo_Certificate_CantFindCSCA = int("-1879047913") + ntfLDS_Auth_SignerInfo_Certificate_CantFindCSCA = int("2415919383") - ntfLDS_Auth_SignerInfo_Certificate_Revoked = int("-1879047912") + ntfLDS_Auth_SignerInfo_Certificate_Revoked = int("2415919384") - ntfLDS_Auth_SignerInfo_Certificate_SignatureInvalid = int("-1879047911") + ntfLDS_Auth_SignerInfo_Certificate_SignatureInvalid = int("2415919385") - ntfLDS_UnsupportedImageFormat = int("-1879047910") + ntfLDS_UnsupportedImageFormat = int("2415919386") ntfLDS_MRZ_DocumentType_Unknown = int("139272") @@ -332,141 +332,141 @@ class ParsingNotificationCodes(object): ntfLDS_MRZ_Incorrect = int("139288") - ntfLDS_Biometrics_FormatOwner_Missing = int("-1878982656") + ntfLDS_Biometrics_FormatOwner_Missing = int("2415984640") - ntfLDS_Biometrics_FormatOwner_Incorrect = int("-1878917120") + ntfLDS_Biometrics_FormatOwner_Incorrect = int("2416050176") - ntfLDS_Biometrics_FormatType_Missing = int("-1878851584") + ntfLDS_Biometrics_FormatType_Missing = int("2416115712") - ntfLDS_Biometrics_FormatType_Incorrect = int("-1878786048") + ntfLDS_Biometrics_FormatType_Incorrect = int("2416181248") - ntfLDS_Biometrics_Type_Incorrect = int("-1878720512") + ntfLDS_Biometrics_Type_Incorrect = int("2416246784") - ntfLDS_Biometrics_SubType_Missing = int("-1878654976") + ntfLDS_Biometrics_SubType_Missing = int("2416312320") - ntfLDS_Biometrics_SubType_Incorrect = int("-1878589440") + ntfLDS_Biometrics_SubType_Incorrect = int("2416377856") - ntfLDS_Biometrics_BDB_Image_Missing = int("-1878523904") + ntfLDS_Biometrics_BDB_Image_Missing = int("2416443392") - ntfLDS_Biometrics_BDB_FormatID_Incorrect = int("-1878458368") + ntfLDS_Biometrics_BDB_FormatID_Incorrect = int("2416508928") - ntfLDS_Biometrics_BDB_Version_Incorrect = int("-1878392832") + ntfLDS_Biometrics_BDB_Version_Incorrect = int("2416574464") - ntfLDS_Biometrics_BDB_DataLength_Incorrect = int("-1878327296") + ntfLDS_Biometrics_BDB_DataLength_Incorrect = int("2416640000") - ntfLDS_Biometrics_BDB_Data_Gender = int("-1877999616") + ntfLDS_Biometrics_BDB_Data_Gender = int("2416967680") - ntfLDS_Biometrics_BDB_Data_EyeColor = int("-1877934080") + ntfLDS_Biometrics_BDB_Data_EyeColor = int("2417033216") - ntfLDS_Biometrics_BDB_Data_HairColor = int("-1877868544") + ntfLDS_Biometrics_BDB_Data_HairColor = int("2417098752") - ntfLDS_Biometrics_BDB_Data_PoseAngle_Yaw = int("-1877803008") + ntfLDS_Biometrics_BDB_Data_PoseAngle_Yaw = int("2417164288") - ntfLDS_Biometrics_BDB_Data_PoseAngle_Pitch = int("-1877737472") + ntfLDS_Biometrics_BDB_Data_PoseAngle_Pitch = int("2417229824") - ntfLDS_Biometrics_BDB_Data_PoseAngle_Roll = int("-1877671936") + ntfLDS_Biometrics_BDB_Data_PoseAngle_Roll = int("2417295360") - ntfLDS_Biometrics_BDB_Data_PoseAngleU_Yaw = int("-1877606400") + ntfLDS_Biometrics_BDB_Data_PoseAngleU_Yaw = int("2417360896") - ntfLDS_Biometrics_BDB_Data_PoseAngleU_Pitch = int("-1877540864") + ntfLDS_Biometrics_BDB_Data_PoseAngleU_Pitch = int("2417426432") - ntfLDS_Biometrics_BDB_Data_PoseAngleU_Roll = int("-1877475328") + ntfLDS_Biometrics_BDB_Data_PoseAngleU_Roll = int("2417491968") - ntfLDS_Biometrics_BDB_Data_FaceImageType = int("-1877409792") + ntfLDS_Biometrics_BDB_Data_FaceImageType = int("2417557504") - ntfLDS_Biometrics_BDB_Data_ImageDataType = int("-1877344256") + ntfLDS_Biometrics_BDB_Data_ImageDataType = int("2417623040") - ntfLDS_SI_PACE_Info_UnsupportedStdParameters = int("-1862270976") + ntfLDS_SI_PACE_Info_UnsupportedStdParameters = int("2432696320") - ntfLDS_SI_PACE_Info_DeprecatedVersion = int("-1862270975") + ntfLDS_SI_PACE_Info_DeprecatedVersion = int("2432696321") - ntfLDS_SI_PACE_DomainParams_UsingStdRef = int("-1862270974") + ntfLDS_SI_PACE_DomainParams_UsingStdRef = int("2432696322") - ntfLDS_SI_PACE_DomainParams_UnsupportedAlgorithm = int("-1862270973") + ntfLDS_SI_PACE_DomainParams_UnsupportedAlgorithm = int("2432696323") - ntfLDS_SI_CA_Info_IncorrectVersion = int("-1862270972") + ntfLDS_SI_CA_Info_IncorrectVersion = int("2432696324") - ntfLDS_SI_CA_PublicKey_UnsupportedAlgorithm = int("-1862270971") + ntfLDS_SI_CA_PublicKey_UnsupportedAlgorithm = int("2432696325") - ntfLDS_SI_CA_DomainParams_UnsupportedAlgorithm = int("-1862270970") + ntfLDS_SI_CA_DomainParams_UnsupportedAlgorithm = int("2432696326") - ntfLDS_SI_TA_Info_IncorrectVersion = int("-1862270969") + ntfLDS_SI_TA_Info_IncorrectVersion = int("2432696327") - ntfLDS_SI_TA_Info_FileIDForVersion2 = int("-1862270968") + ntfLDS_SI_TA_Info_FileIDForVersion2 = int("2432696328") - ntfLDS_SI_eIDSecurity_UnsupportedDigestAlgorithm = int("-1862270967") + ntfLDS_SI_eIDSecurity_UnsupportedDigestAlgorithm = int("2432696329") - ntfLDS_SI_RI_Info_IncorrectVersion = int("-1862270966") + ntfLDS_SI_RI_Info_IncorrectVersion = int("2432696330") - ntfLDS_SI_RI_DomainParams_UnsupportedAlgorithm = int("-1862270965") + ntfLDS_SI_RI_DomainParams_UnsupportedAlgorithm = int("2432696331") - ntfLDS_SI_AA_Info_IncorrectVersion = int("-1862270964") + ntfLDS_SI_AA_Info_IncorrectVersion = int("2432696332") - ntfLDS_SI_AA_Info_UnsupportedAlgorithm = int("-1862270963") + ntfLDS_SI_AA_Info_UnsupportedAlgorithm = int("2432696333") - ntfLDS_SI_AA_Info_InconsistentAlgorithmReference = int("-1862270962") + ntfLDS_SI_AA_Info_InconsistentAlgorithmReference = int("2432696334") - ntfLDS_SI_Storage_PACE_Info_NotAvailable = int("-1862270720") + ntfLDS_SI_Storage_PACE_Info_NotAvailable = int("2432696576") - ntfLDS_SI_Storage_PACE_Info_NoStdParameters = int("-1862270719") + ntfLDS_SI_Storage_PACE_Info_NoStdParameters = int("2432696577") - ntfLDS_SI_Storage_PACE_Info_NoMatchingDomainParams = int("-1862270718") + ntfLDS_SI_Storage_PACE_Info_NoMatchingDomainParams = int("2432696578") - ntfLDS_SI_Storage_CA_Info_NotAvailable = int("-1862270717") + ntfLDS_SI_Storage_CA_Info_NotAvailable = int("2432696579") - ntfLDS_SI_Storage_CA_DomainParams_NoRequiredOption = int("-1862270716") + ntfLDS_SI_Storage_CA_DomainParams_NoRequiredOption = int("2432696580") - ntfLDS_SI_Storage_CA_DomainParams_NotAvailable = int("-1862270715") + ntfLDS_SI_Storage_CA_DomainParams_NotAvailable = int("2432696581") - ntfLDS_SI_Storage_CA_AnonymousInfos = int("-1862270714") + ntfLDS_SI_Storage_CA_AnonymousInfos = int("2432696582") - ntfLDS_SI_Storage_CA_Info_NoMatchingDomainParams = int("-1862270713") + ntfLDS_SI_Storage_CA_Info_NoMatchingDomainParams = int("2432696583") - ntfLDS_SI_Storage_CA_Info_NoMatchingPublicKey = int("-1862270712") + ntfLDS_SI_Storage_CA_Info_NoMatchingPublicKey = int("2432696584") - ntfLDS_SI_Storage_CA_IncorrectInfosQuantity = int("-1862270711") + ntfLDS_SI_Storage_CA_IncorrectInfosQuantity = int("2432696585") - ntfLDS_SI_Storage_TA_Info_NotAvailable = int("-1862270710") + ntfLDS_SI_Storage_TA_Info_NotAvailable = int("2432696586") - ntfLDS_SI_Storage_CardInfoLocator_MultipleEntries = int("-1862270709") + ntfLDS_SI_Storage_CardInfoLocator_MultipleEntries = int("2432696587") - ntfLDS_SI_Storage_eIDSecurityInfo_MultipleEntries = int("-1862270708") + ntfLDS_SI_Storage_eIDSecurityInfo_MultipleEntries = int("2432696588") - ntfLDS_SI_Storage_PrivilegedTI_MultipleEntries = int("-1862270707") + ntfLDS_SI_Storage_PrivilegedTI_MultipleEntries = int("2432696589") - ntfLDS_SI_Storage_PrivilegedTI_IncorrectUsage = int("-1862270706") + ntfLDS_SI_Storage_PrivilegedTI_IncorrectUsage = int("2432696590") - ntfLDS_SI_Storage_RI_DomainParams_MultipleEntries = int("-1862270705") + ntfLDS_SI_Storage_RI_DomainParams_MultipleEntries = int("2432696591") - ntfLDS_SI_Storage_PACEInfos_NonConsistant = int("-1862270704") + ntfLDS_SI_Storage_PACEInfos_NonConsistant = int("2432696592") - ntfLDS_CVCertificate_Profile_IncorrectVersion = int("-1862270463") + ntfLDS_CVCertificate_Profile_IncorrectVersion = int("2432696833") - ntfLDS_CVCertificate_Validity = int("-1862270462") + ntfLDS_CVCertificate_Validity = int("2432696834") - ntfLDS_CVCertificate_NonCVCADomainParameters = int("-1862270461") + ntfLDS_CVCertificate_NonCVCADomainParameters = int("2432696835") - ntfLDS_CV_Certificate_PrivateKey_IncorrectVersion = int("-1862270460") + ntfLDS_CV_Certificate_PrivateKey_IncorrectVersion = int("2432696836") - ntfLDS_TA_PACEStaticBindingUsed = int("-1862270208") + ntfLDS_TA_PACEStaticBindingUsed = int("2432697088") - ntfLDS_Auth_MLSignerInfo_Certificate_Validity = int("-1845493483") + ntfLDS_Auth_MLSignerInfo_Certificate_Validity = int("2449473813") - ntfLDS_Auth_MLSignerInfo_Certificate_RootIsNotTrusted = int("-1845493482") + ntfLDS_Auth_MLSignerInfo_Certificate_RootIsNotTrusted = int("2449473814") - ntfLDS_Auth_MLSignerInfo_Certificate_CantFindCSCA = int("-1845493481") + ntfLDS_Auth_MLSignerInfo_Certificate_CantFindCSCA = int("2449473815") - ntfLDS_Auth_MLSignerInfo_Certificate_Revoked = int("-1845493480") + ntfLDS_Auth_MLSignerInfo_Certificate_Revoked = int("2449473816") - ntfLDS_Auth_MLSignerInfo_Certificate_SignatureInvalid = int("-1845493479") + ntfLDS_Auth_MLSignerInfo_Certificate_SignatureInvalid = int("2449473817") - ntfLDS_ICAO_Certificate_Chain_Country_NonMatching = int("-1879047600") + ntfLDS_ICAO_Certificate_Chain_Country_NonMatching = int("2415919696") - ntfLDS_ICAO_Certificate_VisualMrz_Country_NonMatching = int("-1879047599") + ntfLDS_ICAO_Certificate_VisualMrz_Country_NonMatching = int("2415919697") ntfLDS_MRZ_CountryCode_VisualMrz_NonMatching = int("139289") - ntfLDS_ICAO_Certificate_MRZ_Country_NonMatching = int("-1879047598") + ntfLDS_ICAO_Certificate_MRZ_Country_NonMatching = int("2415919698") allowable_values = [ntfLDS_ASN_Certificate_IncorrectVersion, ntfLDS_ASN_Certificate_NonMatchingSignatureAlgorithm, ntfLDS_ASN_Certificate_IncorrectTimeCoding, ntfLDS_ASN_Certificate_IncorrectUseOfGeneralizedTime, ntfLDS_ASN_Certificate_EmptyIssuer, ntfLDS_ASN_Certificate_EmptySubject, ntfLDS_ASN_Certificate_UnsupportedCriticalExtension, ntfLDS_ASN_Certificate_ForcedDefaultCSCARole, ntfLDS_ASN_Certificate_ForcedDefaultDSRole, ntfLDS_ASN_Certificate_IncorrectIssuerSubjectDS, ntfLDS_ASN_Certificate_DuplicatingExtensions, ntfLDS_ICAO_Certificate_Version_Missed, ntfLDS_ICAO_Certificate_Version_Incorrect, ntfLDS_ICAO_Certificate_Issuer_Country_Missed, ntfLDS_ICAO_Certificate_Issuer_CommonName_Missed, ntfLDS_ICAO_Certificate_Issuer_CountryNonCompliant, ntfLDS_ICAO_Certificate_Subject_Country_Missed, ntfLDS_ICAO_Certificate_Subject_CommonName_Missed, ntfLDS_ICAO_Certificate_Subject_CountryNonCompliant, ntfLDS_ICAO_Certificate_UsingNonCompliantData, ntfLDS_ICAO_Certificate_UnsupportedSignatureAlgorithm, ntfLDS_ICAO_Certificate_UnsupportedPublicKeyAlgorithm, ntfLDS_ICAO_Certificate_MissedExtensions, ntfLDS_ICAO_Certificate_Validity, ntfLDS_ICAO_Certificate_Ext_UsingNonCompliantData, ntfLDS_ICAO_Certificate_Ext_KeyUsage_Missed, ntfLDS_ICAO_Certificate_Ext_KeyUsage_NotCritical, ntfLDS_ICAO_Certificate_Ext_KeyUsage_IncorrectData, ntfLDS_ICAO_Certificate_Ext_BasicC_Missed, ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectUsage1, ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectUsage2, ntfLDS_ICAO_Certificate_Ext_BasicC_NotCritical, ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectData, ntfLDS_ICAO_Certificate_Ext_BasicC_PathLenC_Missed, ntfLDS_ICAO_Certificate_Ext_BasicC_PathLenC_Incorrect, ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_NotCritical, ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_IncorrectUsage, ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_IncorrectData, ntfLDS_ICAO_Certificate_Ext_AuthKeyID_Missed, ntfLDS_ICAO_Certificate_Ext_AuthKeyID_IncorrectData, ntfLDS_ICAO_Certificate_Ext_AuthKeyID_KeyID_Missed, ntfLDS_ICAO_Certificate_Ext_SubjectKeyID_Missed, ntfLDS_ICAO_Certificate_Ext_SubjectKeyID_IncorrectData, ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_Missed, ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_IncorrectData, ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_Empty, ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Missed, ntfLDS_ICAO_Certificate_Ext_SubjectAltName_IncorrectData, ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Empty, ntfLDS_ICAO_Certificate_Ext_SubjectAltName_NonCompliant, ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Critical, ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_Empty, ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_Incorrect, ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_NonCompliant, ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Missed, ntfLDS_ICAO_Certificate_Ext_IssuerAltName_IncorrectData, ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Empty, ntfLDS_ICAO_Certificate_Ext_IssuerAltName_NonCompliant, ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Critical, ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_Empty, ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_Incorrect, ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_NonCompliant, ntfLDS_ICAO_Certificate_Ext_DocTypeList_Missed, ntfLDS_ICAO_Certificate_Ext_DocTypeList_IncorrectData, ntfLDS_ICAO_Certificate_Ext_DocTypeList_Version, ntfLDS_ICAO_Certificate_Ext_DocTypeList_DocTypes, ntfLDS_ICAO_Certificate_Ext_DocTypeList_DocTypes_Empty, ntfLDS_ICAO_Certificate_Ext_CertPolicies_IncorrectData, ntfLDS_ICAO_Certificate_Ext_CertPolicies_Empty, ntfLDS_ICAO_Certificate_Ext_CertPolicies_PolicyID_Missed, ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_Missed, ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_IncorrectData, ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_Empty, ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_PointMissed, ntfLDS_ICAO_Certificate_SN_NonCompliant, ntfLDS_ICAO_Certificate_Issuer_SN_NonCompliant, ntfLDS_ICAO_Certificate_Subject_SN_NonCompliant, ntfLDS_ICAO_Certificate_Issuer_AttributeNonCompliant, ntfLDS_ICAO_Certificate_Subject_AttributeNonCompliant, ntfLDS_ICAO_Certificate_IssuerSubject_Country_NonMatching, ntfLDS_ICAO_Certificate_Ext_CSCA_AltNames_NonMatching, ntfLDS_ICAO_Certificate_Ext_NameChange_IncorrectData, ntfLDS_ICAO_Certificate_Ext_NameChange_NonCompliant, ntfLDS_ICAO_Certificate_Ext_NameChange_Critical, ntfLDS_ICAO_Certificate_Ext_DocTypeList_NonCompliant, ntfLDS_ICAO_Certificate_Ext_DocTypeList_Critical, ntfLDS_ICAO_Certificate_Ext_Optional_Critical, ntfLDS_ICAO_Certificate_Subject_NonCompliant, ntfLDS_ICAO_Certificate_Subject_CommonNameNonCompliant, ntfLDS_ICAO_COM_LDS_Version_Incorrect, ntfLDS_ICAO_COM_LDS_Version_Missing, ntfLDS_ICAO_COM_Unicode_Version_Incorrect, ntfLDS_ICAO_COM_Unicode_Version_Missing, ntfLDS_ICAO_COM_DGPM_Incorrect, ntfLDS_ICAO_COM_DGPM_Missing, ntfLDS_ICAO_COM_DGPM_Unexpected, ntfLDS_ICAO_Application_LDSVersion_Unsupported, ntfLDS_ICAO_Application_UnicodeVersion_Unsupported, ntfLDS_ICAO_Application_LDSVersion_Inconsistent, ntfLDS_ICAO_Application_UnicodeVersion_Inconsistent, ntfLDS_ASN_SignedData_OID_Incorrect, ntfLDS_ASN_SignedData_Version_Incorrect, ntfLDS_ASN_SignedData_ContentOID_Incorrect, ntfLDS_ICAO_SignedData_Version_Incorrect, ntfLDS_ICAO_SignedData_DigestAlgorithms_Empty, ntfLDS_ICAO_SignedData_DigestAlgorithms_Unsupported, ntfLDS_ICAO_SignedData_SignerInfos_MultipleEntries, ntfLDS_ICAO_SignedData_Certificates_Missed, ntfLDS_ICAO_SignedData_Certificates_Empty, ntfLDS_ICAO_SignedData_CRLs_IncorrectUsage, ntfLDS_ICAO_LDSObject_IncorrectContentOID, ntfLDS_ICAO_LDSObject_DGNumber_Incorrect, ntfLDS_ICAO_LDSObject_DGHash_Missing, ntfLDS_ICAO_LDSObject_DGHash_Extra, ntfLDS_ICAO_LDSObject_Version_Incorrect, ntfLDS_ICAO_MasterList_Version_Incorrect, ntfLDS_ICAO_DeviationList_Version_Incorrect, ntfLDS_BSI_DefectList_Version_Incorrect, ntfLDS_BSI_BlackList_Version_Incorrect, ntfLDS_ASN_SignerInfo_Version_Incorrect, ntfLDS_ASN_SignerInfo_SID_IncorrectChoice, ntfLDS_ASN_SignerInfo_SID_DigestAlgorithmNotListed, ntfLDS_ASN_SignerInfo_MessageDigestAttr_Missing, ntfLDS_ASN_SignerInfo_MessageDigestAttr_Data, ntfLDS_ASN_SignerInfo_MessageDigestAttr_Value, ntfLDS_ASN_SignerInfo_ContentTypeAttr_Missing, ntfLDS_ASN_SignerInfo_ContentTypeAttr_Data, ntfLDS_ASN_SignerInfo_ContentTypeAttr_Value, ntfLDS_ASN_SignerInfo_SigningTimeAttr_Missing, ntfLDS_ASN_SignerInfo_SigningTimeAttr_Data, ntfLDS_ASN_SignerInfo_SigningTimeAttr_Value, ntfLDS_ASN_SignerInfo_ListContentDescriptionAttr_Missing, ntfLDS_ASN_SignerInfo_ListContentDescriptionAttr_Data, ntfLDS_Auth_SignerInfo_Certificate_Validity, ntfLDS_Auth_SignerInfo_Certificate_RootIsNotTrusted, ntfLDS_Auth_SignerInfo_Certificate_CantFindCSCA, ntfLDS_Auth_SignerInfo_Certificate_Revoked, ntfLDS_Auth_SignerInfo_Certificate_SignatureInvalid, ntfLDS_UnsupportedImageFormat, ntfLDS_MRZ_DocumentType_Unknown, ntfLDS_MRZ_IssuingState_SyntaxError, ntfLDS_MRZ_Name_IsVoid, ntfLDS_MRZ_Number_IncorrectChecksum, ntfLDS_MRZ_Nationality_SyntaxError, ntfLDS_MRZ_DOB_SyntaxError, ntfLDS_MRZ_DOB_Error, ntfLDS_MRZ_DOB_IncorrectChecksum, ntfLDS_MRZ_Sex_Incorrect, ntfLDS_MRZ_DOE_SyntaxError, ntfLDS_MRZ_DOE_Error, ntfLDS_MRZ_DOE_IncorrectChecksum, ntfLDS_MRZ_OptionalData_IncorrectChecksum, ntfLDS_MRZ_IncorrectChecksum, ntfLDS_MRZ_Incorrect, ntfLDS_Biometrics_FormatOwner_Missing, ntfLDS_Biometrics_FormatOwner_Incorrect, ntfLDS_Biometrics_FormatType_Missing, ntfLDS_Biometrics_FormatType_Incorrect, ntfLDS_Biometrics_Type_Incorrect, ntfLDS_Biometrics_SubType_Missing, ntfLDS_Biometrics_SubType_Incorrect, ntfLDS_Biometrics_BDB_Image_Missing, ntfLDS_Biometrics_BDB_FormatID_Incorrect, ntfLDS_Biometrics_BDB_Version_Incorrect, ntfLDS_Biometrics_BDB_DataLength_Incorrect, ntfLDS_Biometrics_BDB_Data_Gender, ntfLDS_Biometrics_BDB_Data_EyeColor, ntfLDS_Biometrics_BDB_Data_HairColor, ntfLDS_Biometrics_BDB_Data_PoseAngle_Yaw, ntfLDS_Biometrics_BDB_Data_PoseAngle_Pitch, ntfLDS_Biometrics_BDB_Data_PoseAngle_Roll, ntfLDS_Biometrics_BDB_Data_PoseAngleU_Yaw, ntfLDS_Biometrics_BDB_Data_PoseAngleU_Pitch, ntfLDS_Biometrics_BDB_Data_PoseAngleU_Roll, ntfLDS_Biometrics_BDB_Data_FaceImageType, ntfLDS_Biometrics_BDB_Data_ImageDataType, ntfLDS_SI_PACE_Info_UnsupportedStdParameters, ntfLDS_SI_PACE_Info_DeprecatedVersion, ntfLDS_SI_PACE_DomainParams_UsingStdRef, ntfLDS_SI_PACE_DomainParams_UnsupportedAlgorithm, ntfLDS_SI_CA_Info_IncorrectVersion, ntfLDS_SI_CA_PublicKey_UnsupportedAlgorithm, ntfLDS_SI_CA_DomainParams_UnsupportedAlgorithm, ntfLDS_SI_TA_Info_IncorrectVersion, ntfLDS_SI_TA_Info_FileIDForVersion2, ntfLDS_SI_eIDSecurity_UnsupportedDigestAlgorithm, ntfLDS_SI_RI_Info_IncorrectVersion, ntfLDS_SI_RI_DomainParams_UnsupportedAlgorithm, ntfLDS_SI_AA_Info_IncorrectVersion, ntfLDS_SI_AA_Info_UnsupportedAlgorithm, ntfLDS_SI_AA_Info_InconsistentAlgorithmReference, ntfLDS_SI_Storage_PACE_Info_NotAvailable, ntfLDS_SI_Storage_PACE_Info_NoStdParameters, ntfLDS_SI_Storage_PACE_Info_NoMatchingDomainParams, ntfLDS_SI_Storage_CA_Info_NotAvailable, ntfLDS_SI_Storage_CA_DomainParams_NoRequiredOption, ntfLDS_SI_Storage_CA_DomainParams_NotAvailable, ntfLDS_SI_Storage_CA_AnonymousInfos, ntfLDS_SI_Storage_CA_Info_NoMatchingDomainParams, ntfLDS_SI_Storage_CA_Info_NoMatchingPublicKey, ntfLDS_SI_Storage_CA_IncorrectInfosQuantity, ntfLDS_SI_Storage_TA_Info_NotAvailable, ntfLDS_SI_Storage_CardInfoLocator_MultipleEntries, ntfLDS_SI_Storage_eIDSecurityInfo_MultipleEntries, ntfLDS_SI_Storage_PrivilegedTI_MultipleEntries, ntfLDS_SI_Storage_PrivilegedTI_IncorrectUsage, ntfLDS_SI_Storage_RI_DomainParams_MultipleEntries, ntfLDS_SI_Storage_PACEInfos_NonConsistant, ntfLDS_CVCertificate_Profile_IncorrectVersion, ntfLDS_CVCertificate_Validity, ntfLDS_CVCertificate_NonCVCADomainParameters, ntfLDS_CV_Certificate_PrivateKey_IncorrectVersion, ntfLDS_TA_PACEStaticBindingUsed, ntfLDS_Auth_MLSignerInfo_Certificate_Validity, ntfLDS_Auth_MLSignerInfo_Certificate_RootIsNotTrusted, ntfLDS_Auth_MLSignerInfo_Certificate_CantFindCSCA, ntfLDS_Auth_MLSignerInfo_Certificate_Revoked, ntfLDS_Auth_MLSignerInfo_Certificate_SignatureInvalid, ntfLDS_ICAO_Certificate_Chain_Country_NonMatching, ntfLDS_ICAO_Certificate_VisualMrz_Country_NonMatching, ntfLDS_MRZ_CountryCode_VisualMrz_NonMatching, ntfLDS_ICAO_Certificate_MRZ_Country_NonMatching] # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/photo_ident_result.py b/regula/documentreader/webclient/gen/models/photo_ident_result.py index 6b14d4e..cbe2a34 100644 --- a/regula/documentreader/webclient/gen/models/photo_ident_result.py +++ b/regula/documentreader/webclient/gen/models/photo_ident_result.py @@ -44,6 +44,8 @@ class PhotoIdentResult(object): 'field_types_list': 'list[int]', 'step': 'int', 'angle': 'int', + 'reserved1': 'int', + 'reserved2': 'int', 'reserved3': 'int' } @@ -60,10 +62,12 @@ class PhotoIdentResult(object): 'field_types_list': 'FieldTypesList', 'step': 'Step', 'angle': 'Angle', + 'reserved1': 'Reserved1', + 'reserved2': 'Reserved2', 'reserved3': 'Reserved3' } - def __init__(self, type=0, element_result=None, element_diagnose=None, percent_value=None, light_index=None, area=None, source_image=None, result_images=None, field_types_count=None, field_types_list=None, step=None, angle=None, reserved3=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, type=0, element_result=None, element_diagnose=None, percent_value=None, light_index=None, area=None, source_image=None, result_images=None, field_types_count=None, field_types_list=None, step=None, angle=None, reserved1=None, reserved2=None, reserved3=None, local_vars_configuration=None): # noqa: E501 """PhotoIdentResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -81,6 +85,8 @@ def __init__(self, type=0, element_result=None, element_diagnose=None, percent_v self._field_types_list = None self._step = None self._angle = None + self._reserved1 = None + self._reserved2 = None self._reserved3 = None self.discriminator = None @@ -91,14 +97,10 @@ def __init__(self, type=0, element_result=None, element_diagnose=None, percent_v self.element_diagnose = element_diagnose if percent_value is not None: self.percent_value = percent_value - if light_index is not None: - self.light_index = light_index - if area is not None: - self.area = area - if source_image is not None: - self.source_image = source_image - if result_images is not None: - self.result_images = result_images + self.light_index = light_index + self.area = area + self.source_image = source_image + self.result_images = result_images if field_types_count is not None: self.field_types_count = field_types_count if field_types_list is not None: @@ -107,6 +109,10 @@ def __init__(self, type=0, element_result=None, element_diagnose=None, percent_v self.step = step if angle is not None: self.angle = angle + if reserved1 is not None: + self.reserved1 = reserved1 + if reserved2 is not None: + self.reserved2 = reserved2 if reserved3 is not None: self.reserved3 = reserved3 @@ -216,6 +222,8 @@ def light_index(self, light_index): :param light_index: The light_index of this PhotoIdentResult. # noqa: E501 :type light_index: Light """ + if self.local_vars_configuration.client_side_validation and light_index is None: # noqa: E501 + raise ValueError("Invalid value for `light_index`, must not be `None`") # noqa: E501 self._light_index = light_index @@ -237,6 +245,8 @@ def area(self, area): :param area: The area of this PhotoIdentResult. # noqa: E501 :type area: RectangleCoordinates """ + if self.local_vars_configuration.client_side_validation and area is None: # noqa: E501 + raise ValueError("Invalid value for `area`, must not be `None`") # noqa: E501 self._area = area @@ -258,6 +268,8 @@ def source_image(self, source_image): :param source_image: The source_image of this PhotoIdentResult. # noqa: E501 :type source_image: ImageData """ + if self.local_vars_configuration.client_side_validation and source_image is None: # noqa: E501 + raise ValueError("Invalid value for `source_image`, must not be `None`") # noqa: E501 self._source_image = source_image @@ -279,6 +291,8 @@ def result_images(self, result_images): :param result_images: The result_images of this PhotoIdentResult. # noqa: E501 :type result_images: RawImageContainerList """ + if self.local_vars_configuration.client_side_validation and result_images is None: # noqa: E501 + raise ValueError("Invalid value for `result_images`, must not be `None`") # noqa: E501 self._result_images = result_images @@ -366,6 +380,48 @@ def angle(self, angle): self._angle = angle + @property + def reserved1(self): + """Gets the reserved1 of this PhotoIdentResult. # noqa: E501 + + + :return: The reserved1 of this PhotoIdentResult. # noqa: E501 + :rtype: int + """ + return self._reserved1 + + @reserved1.setter + def reserved1(self, reserved1): + """Sets the reserved1 of this PhotoIdentResult. + + + :param reserved1: The reserved1 of this PhotoIdentResult. # noqa: E501 + :type reserved1: int + """ + + self._reserved1 = reserved1 + + @property + def reserved2(self): + """Gets the reserved2 of this PhotoIdentResult. # noqa: E501 + + + :return: The reserved2 of this PhotoIdentResult. # noqa: E501 + :rtype: int + """ + return self._reserved2 + + @reserved2.setter + def reserved2(self, reserved2): + """Sets the reserved2 of this PhotoIdentResult. + + + :param reserved2: The reserved2 of this PhotoIdentResult. # noqa: E501 + :type reserved2: int + """ + + self._reserved2 = reserved2 + @property def reserved3(self): """Gets the reserved3 of this PhotoIdentResult. # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/photo_ident_result_all_of.py b/regula/documentreader/webclient/gen/models/photo_ident_result_all_of.py index 3ad9dd6..2304c1c 100644 --- a/regula/documentreader/webclient/gen/models/photo_ident_result_all_of.py +++ b/regula/documentreader/webclient/gen/models/photo_ident_result_all_of.py @@ -40,6 +40,8 @@ class PhotoIdentResultAllOf(object): 'field_types_list': 'list[int]', 'step': 'int', 'angle': 'int', + 'reserved1': 'int', + 'reserved2': 'int', 'reserved3': 'int' } @@ -52,10 +54,12 @@ class PhotoIdentResultAllOf(object): 'field_types_list': 'FieldTypesList', 'step': 'Step', 'angle': 'Angle', + 'reserved1': 'Reserved1', + 'reserved2': 'Reserved2', 'reserved3': 'Reserved3' } - def __init__(self, light_index=None, area=None, source_image=None, result_images=None, field_types_count=None, field_types_list=None, step=None, angle=None, reserved3=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, light_index=None, area=None, source_image=None, result_images=None, field_types_count=None, field_types_list=None, step=None, angle=None, reserved1=None, reserved2=None, reserved3=None, local_vars_configuration=None): # noqa: E501 """PhotoIdentResultAllOf - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -69,17 +73,15 @@ def __init__(self, light_index=None, area=None, source_image=None, result_images self._field_types_list = None self._step = None self._angle = None + self._reserved1 = None + self._reserved2 = None self._reserved3 = None self.discriminator = None - if light_index is not None: - self.light_index = light_index - if area is not None: - self.area = area - if source_image is not None: - self.source_image = source_image - if result_images is not None: - self.result_images = result_images + self.light_index = light_index + self.area = area + self.source_image = source_image + self.result_images = result_images if field_types_count is not None: self.field_types_count = field_types_count if field_types_list is not None: @@ -88,6 +90,10 @@ def __init__(self, light_index=None, area=None, source_image=None, result_images self.step = step if angle is not None: self.angle = angle + if reserved1 is not None: + self.reserved1 = reserved1 + if reserved2 is not None: + self.reserved2 = reserved2 if reserved3 is not None: self.reserved3 = reserved3 @@ -109,6 +115,8 @@ def light_index(self, light_index): :param light_index: The light_index of this PhotoIdentResultAllOf. # noqa: E501 :type light_index: Light """ + if self.local_vars_configuration.client_side_validation and light_index is None: # noqa: E501 + raise ValueError("Invalid value for `light_index`, must not be `None`") # noqa: E501 self._light_index = light_index @@ -130,6 +138,8 @@ def area(self, area): :param area: The area of this PhotoIdentResultAllOf. # noqa: E501 :type area: RectangleCoordinates """ + if self.local_vars_configuration.client_side_validation and area is None: # noqa: E501 + raise ValueError("Invalid value for `area`, must not be `None`") # noqa: E501 self._area = area @@ -151,6 +161,8 @@ def source_image(self, source_image): :param source_image: The source_image of this PhotoIdentResultAllOf. # noqa: E501 :type source_image: ImageData """ + if self.local_vars_configuration.client_side_validation and source_image is None: # noqa: E501 + raise ValueError("Invalid value for `source_image`, must not be `None`") # noqa: E501 self._source_image = source_image @@ -172,6 +184,8 @@ def result_images(self, result_images): :param result_images: The result_images of this PhotoIdentResultAllOf. # noqa: E501 :type result_images: RawImageContainerList """ + if self.local_vars_configuration.client_side_validation and result_images is None: # noqa: E501 + raise ValueError("Invalid value for `result_images`, must not be `None`") # noqa: E501 self._result_images = result_images @@ -259,6 +273,48 @@ def angle(self, angle): self._angle = angle + @property + def reserved1(self): + """Gets the reserved1 of this PhotoIdentResultAllOf. # noqa: E501 + + + :return: The reserved1 of this PhotoIdentResultAllOf. # noqa: E501 + :rtype: int + """ + return self._reserved1 + + @reserved1.setter + def reserved1(self, reserved1): + """Sets the reserved1 of this PhotoIdentResultAllOf. + + + :param reserved1: The reserved1 of this PhotoIdentResultAllOf. # noqa: E501 + :type reserved1: int + """ + + self._reserved1 = reserved1 + + @property + def reserved2(self): + """Gets the reserved2 of this PhotoIdentResultAllOf. # noqa: E501 + + + :return: The reserved2 of this PhotoIdentResultAllOf. # noqa: E501 + :rtype: int + """ + return self._reserved2 + + @reserved2.setter + def reserved2(self, reserved2): + """Sets the reserved2 of this PhotoIdentResultAllOf. + + + :param reserved2: The reserved2 of this PhotoIdentResultAllOf. # noqa: E501 + :type reserved2: int + """ + + self._reserved2 = reserved2 + @property def reserved3(self): """Gets the reserved3 of this PhotoIdentResultAllOf. # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/point.py b/regula/documentreader/webclient/gen/models/point.py index 8880c36..9ffc420 100644 --- a/regula/documentreader/webclient/gen/models/point.py +++ b/regula/documentreader/webclient/gen/models/point.py @@ -51,10 +51,8 @@ def __init__(self, x=None, y=None, local_vars_configuration=None): # noqa: E501 self._y = None self.discriminator = None - if x is not None: - self.x = x - if y is not None: - self.y = y + self.x = x + self.y = y @property def x(self): @@ -74,6 +72,8 @@ def x(self, x): :param x: The x of this Point. # noqa: E501 :type x: int """ + if self.local_vars_configuration.client_side_validation and x is None: # noqa: E501 + raise ValueError("Invalid value for `x`, must not be `None`") # noqa: E501 self._x = x @@ -95,6 +95,8 @@ def y(self, y): :param y: The y of this Point. # noqa: E501 :type y: int """ + if self.local_vars_configuration.client_side_validation and y is None: # noqa: E501 + raise ValueError("Invalid value for `y`, must not be `None`") # noqa: E501 self._y = y diff --git a/regula/documentreader/webclient/gen/models/point_array.py b/regula/documentreader/webclient/gen/models/point_array.py index 14ae95b..bc3393a 100644 --- a/regula/documentreader/webclient/gen/models/point_array.py +++ b/regula/documentreader/webclient/gen/models/point_array.py @@ -48,8 +48,7 @@ def __init__(self, points_list=None, local_vars_configuration=None): # noqa: E5 self._points_list = None self.discriminator = None - if points_list is not None: - self.points_list = points_list + self.points_list = points_list @property def points_list(self): @@ -69,6 +68,8 @@ def points_list(self, points_list): :param points_list: The points_list of this PointArray. # noqa: E501 :type points_list: list[Point] """ + if self.local_vars_configuration.client_side_validation and points_list is None: # noqa: E501 + raise ValueError("Invalid value for `points_list`, must not be `None`") # noqa: E501 self._points_list = points_list diff --git a/regula/documentreader/webclient/gen/models/points_container.py b/regula/documentreader/webclient/gen/models/points_container.py index ab0a33f..5d2d4c8 100644 --- a/regula/documentreader/webclient/gen/models/points_container.py +++ b/regula/documentreader/webclient/gen/models/points_container.py @@ -53,8 +53,7 @@ def __init__(self, point_count=None, points_list=None, local_vars_configuration= if point_count is not None: self.point_count = point_count - if points_list is not None: - self.points_list = points_list + self.points_list = points_list @property def point_count(self): @@ -95,6 +94,8 @@ def points_list(self, points_list): :param points_list: The points_list of this PointsContainer. # noqa: E501 :type points_list: list[Point] """ + if self.local_vars_configuration.client_side_validation and points_list is None: # noqa: E501 + raise ValueError("Invalid value for `points_list`, must not be `None`") # noqa: E501 self._points_list = points_list diff --git a/regula/documentreader/webclient/gen/models/process_params.py b/regula/documentreader/webclient/gen/models/process_params.py index 989db25..35f5ca2 100755 --- a/regula/documentreader/webclient/gen/models/process_params.py +++ b/regula/documentreader/webclient/gen/models/process_params.py @@ -32,8 +32,9 @@ class ProcessParams(object): and the value is json key in definition. """ openapi_types = { - 'lcid_filter': 'list[int]', - 'lcid_ignore_filter': 'list[int]', + 'lcid_filter': 'list[LCID]', + 'check_liveness': 'bool', + 'lcid_ignore_filter': 'list[LCID]', 'one_shot_identification': 'bool', 'use_face_api': 'bool', 'face_api': 'FaceApi', @@ -70,6 +71,7 @@ class ProcessParams(object): 'return_uncropped_image': 'bool', 'mrz_formats_filter': 'list[MRZFormat]', 'force_read_mrz_before_locate': 'bool', + 'force_barcode_checks': 'bool', 'parse_barcodes': 'bool', 'convert_case': 'TextPostProcessing', 'split_names': 'bool', @@ -90,6 +92,7 @@ class ProcessParams(object): attribute_map = { 'lcid_filter': 'lcidFilter', + 'check_liveness': 'checkLiveness', 'lcid_ignore_filter': 'lcidIgnoreFilter', 'one_shot_identification': 'oneShotIdentification', 'use_face_api': 'useFaceApi', @@ -127,6 +130,7 @@ class ProcessParams(object): 'return_uncropped_image': 'returnUncroppedImage', 'mrz_formats_filter': 'mrzFormatsFilter', 'force_read_mrz_before_locate': 'forceReadMrzBeforeLocate', + 'force_barcode_checks': 'forceBarcodeChecks', 'parse_barcodes': 'parseBarcodes', 'convert_case': 'convertCase', 'split_names': 'splitNames', @@ -145,13 +149,14 @@ class ProcessParams(object): 'generate_numeric_codes': 'generateNumericCodes' } - def __init__(self, lcid_filter=None, lcid_ignore_filter=None, one_shot_identification=None, use_face_api=None, face_api=None, do_detect_can=None, image_output_max_height=None, image_output_max_width=None, scenario=None, result_type_output=None, double_page_spread=None, generate_double_page_spread_image=None, field_types_filter=None, date_format=None, measure_system=None, image_dpi_out_max=None, already_cropped=None, custom_params=None, config=None, log=None, log_level=None, force_doc_id=None, match_text_field_mask=None, fast_doc_detect=None, update_ocr_validity_by_glare=None, check_required_text_fields=None, return_cropped_barcode=None, image_qa=None, respect_image_quality=None, force_doc_format=None, no_graphics=None, depersonalize_log=None, multi_doc_on_image=None, shift_expiry_date=None, minimal_holder_age=None, return_uncropped_image=None, mrz_formats_filter=None, force_read_mrz_before_locate=None, parse_barcodes=None, convert_case=None, split_names=None, disable_perforation_ocr=None, document_group_filter=None, process_auth=None, device_id=None, device_type=None, device_type_hex=None, ignore_device_id_from_image=None, document_id_list=None, rfid=None, check_auth=None, auth_params=None, mrz_detect_mode=None, generate_numeric_codes=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, lcid_filter=None, check_liveness=None, lcid_ignore_filter=None, one_shot_identification=None, use_face_api=None, face_api=None, do_detect_can=None, image_output_max_height=None, image_output_max_width=None, scenario=None, result_type_output=None, double_page_spread=None, generate_double_page_spread_image=None, field_types_filter=None, date_format=None, measure_system=None, image_dpi_out_max=None, already_cropped=None, custom_params=None, config=None, log=None, log_level=None, force_doc_id=None, match_text_field_mask=None, fast_doc_detect=None, update_ocr_validity_by_glare=None, check_required_text_fields=None, return_cropped_barcode=None, image_qa=None, respect_image_quality=None, force_doc_format=None, no_graphics=None, depersonalize_log=None, multi_doc_on_image=None, shift_expiry_date=None, minimal_holder_age=None, return_uncropped_image=None, mrz_formats_filter=None, force_read_mrz_before_locate=None, force_barcode_checks=None, parse_barcodes=None, convert_case=None, split_names=None, disable_perforation_ocr=None, document_group_filter=None, process_auth=None, device_id=None, device_type=None, device_type_hex=None, ignore_device_id_from_image=None, document_id_list=None, rfid=None, check_auth=None, auth_params=None, mrz_detect_mode=None, generate_numeric_codes=None, local_vars_configuration=None): # noqa: E501 """ProcessParams - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._lcid_filter = None + self._check_liveness = None self._lcid_ignore_filter = None self._one_shot_identification = None self._use_face_api = None @@ -189,6 +194,7 @@ def __init__(self, lcid_filter=None, lcid_ignore_filter=None, one_shot_identific self._return_uncropped_image = None self._mrz_formats_filter = None self._force_read_mrz_before_locate = None + self._force_barcode_checks = None self._parse_barcodes = None self._convert_case = None self._split_names = None @@ -209,6 +215,8 @@ def __init__(self, lcid_filter=None, lcid_ignore_filter=None, one_shot_identific if lcid_filter is not None: self.lcid_filter = lcid_filter + if check_liveness is not None: + self.check_liveness = check_liveness if lcid_ignore_filter is not None: self.lcid_ignore_filter = lcid_ignore_filter if one_shot_identification is not None: @@ -282,6 +290,8 @@ def __init__(self, lcid_filter=None, lcid_ignore_filter=None, one_shot_identific self.mrz_formats_filter = mrz_formats_filter if force_read_mrz_before_locate is not None: self.force_read_mrz_before_locate = force_read_mrz_before_locate + if force_barcode_checks is not None: + self.force_barcode_checks = force_barcode_checks if parse_barcodes is not None: self.parse_barcodes = parse_barcodes if convert_case is not None: @@ -322,7 +332,7 @@ def lcid_filter(self): The list of LCID types to recognize. If empty, values with all LCID types will be extracted. Empty by default. # noqa: E501 :return: The lcid_filter of this ProcessParams. # noqa: E501 - :rtype: list[int] + :rtype: list[LCID] """ return self._lcid_filter @@ -333,11 +343,34 @@ def lcid_filter(self, lcid_filter): The list of LCID types to recognize. If empty, values with all LCID types will be extracted. Empty by default. # noqa: E501 :param lcid_filter: The lcid_filter of this ProcessParams. # noqa: E501 - :type lcid_filter: list[int] + :type lcid_filter: list[LCID] """ self._lcid_filter = lcid_filter + @property + def check_liveness(self): + """Gets the check_liveness of this ProcessParams. # noqa: E501 + + This parameter is used to enable document liveness check. # noqa: E501 + + :return: The check_liveness of this ProcessParams. # noqa: E501 + :rtype: bool + """ + return self._check_liveness + + @check_liveness.setter + def check_liveness(self, check_liveness): + """Sets the check_liveness of this ProcessParams. + + This parameter is used to enable document liveness check. # noqa: E501 + + :param check_liveness: The check_liveness of this ProcessParams. # noqa: E501 + :type check_liveness: bool + """ + + self._check_liveness = check_liveness + @property def lcid_ignore_filter(self): """Gets the lcid_ignore_filter of this ProcessParams. # noqa: E501 @@ -345,7 +378,7 @@ def lcid_ignore_filter(self): The list of LCID types to ignore during the recognition. If empty, values with all LCID types will be extracted. Narrowing down the list can reduce processing time. Empty by default. # noqa: E501 :return: The lcid_ignore_filter of this ProcessParams. # noqa: E501 - :rtype: list[int] + :rtype: list[LCID] """ return self._lcid_ignore_filter @@ -356,7 +389,7 @@ def lcid_ignore_filter(self, lcid_ignore_filter): The list of LCID types to ignore during the recognition. If empty, values with all LCID types will be extracted. Narrowing down the list can reduce processing time. Empty by default. # noqa: E501 :param lcid_ignore_filter: The lcid_ignore_filter of this ProcessParams. # noqa: E501 - :type lcid_ignore_filter: list[int] + :type lcid_ignore_filter: list[LCID] """ self._lcid_ignore_filter = lcid_ignore_filter @@ -1179,6 +1212,29 @@ def force_read_mrz_before_locate(self, force_read_mrz_before_locate): self._force_read_mrz_before_locate = force_read_mrz_before_locate + @property + def force_barcode_checks(self): + """Gets the force_barcode_checks of this ProcessParams. # noqa: E501 + + Allows you to bypass the minimum conditions that should be met to perform the barcode format check # noqa: E501 + + :return: The force_barcode_checks of this ProcessParams. # noqa: E501 + :rtype: bool + """ + return self._force_barcode_checks + + @force_barcode_checks.setter + def force_barcode_checks(self, force_barcode_checks): + """Sets the force_barcode_checks of this ProcessParams. + + Allows you to bypass the minimum conditions that should be met to perform the barcode format check # noqa: E501 + + :param force_barcode_checks: The force_barcode_checks of this ProcessParams. # noqa: E501 + :type force_barcode_checks: bool + """ + + self._force_barcode_checks = force_barcode_checks + @property def parse_barcodes(self): """Gets the parse_barcodes of this ProcessParams. # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/process_request.py b/regula/documentreader/webclient/gen/models/process_request.py index 719fb6f..be0c35a 100755 --- a/regula/documentreader/webclient/gen/models/process_request.py +++ b/regula/documentreader/webclient/gen/models/process_request.py @@ -32,6 +32,7 @@ class ProcessRequest(object): and the value is json key in definition. """ openapi_types = { + 'lcid_filter': 'list[LCID]', 'process_param': 'ProcessParams', 'list': 'list[ProcessRequestImage]', 'tag': 'str', @@ -45,6 +46,7 @@ class ProcessRequest(object): } attribute_map = { + 'lcid_filter': 'lcidFilter', 'process_param': 'processParam', 'list': 'List', 'tag': 'tag', @@ -57,12 +59,13 @@ class ProcessRequest(object): 'pass_back_object': 'passBackObject' } - def __init__(self, process_param=None, list=None, tag=None, tenant=None, env=None, live_portrait=None, ext_portrait=None, container_list=None, system_info=None, pass_back_object=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, lcid_filter=None, process_param=None, list=None, tag=None, tenant=None, env=None, live_portrait=None, ext_portrait=None, container_list=None, system_info=None, pass_back_object=None, local_vars_configuration=None): # noqa: E501 """ProcessRequest - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._lcid_filter = None self._process_param = None self._list = None self._tag = None @@ -75,6 +78,8 @@ def __init__(self, process_param=None, list=None, tag=None, tenant=None, env=Non self._pass_back_object = None self.discriminator = None + if lcid_filter is not None: + self.lcid_filter = lcid_filter self.process_param = process_param if list is not None: self.list = list @@ -95,6 +100,29 @@ def __init__(self, process_param=None, list=None, tag=None, tenant=None, env=Non if pass_back_object is not None: self.pass_back_object = pass_back_object + @property + def lcid_filter(self): + """Gets the lcid_filter of this ProcessRequest. # noqa: E501 + + The list of LCID types to recognize. If empty, values with all LCID types will be extracted. Empty by default. # noqa: E501 + + :return: The lcid_filter of this ProcessRequest. # noqa: E501 + :rtype: list[LCID] + """ + return self._lcid_filter + + @lcid_filter.setter + def lcid_filter(self, lcid_filter): + """Sets the lcid_filter of this ProcessRequest. + + The list of LCID types to recognize. If empty, values with all LCID types will be extracted. Empty by default. # noqa: E501 + + :param lcid_filter: The lcid_filter of this ProcessRequest. # noqa: E501 + :type lcid_filter: list[LCID] + """ + + self._lcid_filter = lcid_filter + @property def process_param(self): """Gets the process_param of this ProcessRequest. # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/process_response.py b/regula/documentreader/webclient/gen/models/process_response.py index 2514753..ee1d599 100755 --- a/regula/documentreader/webclient/gen/models/process_response.py +++ b/regula/documentreader/webclient/gen/models/process_response.py @@ -39,7 +39,8 @@ class ProcessResponse(object): 'log': 'str', 'pass_back_object': 'dict(str, object)', 'more_pages_available': 'int', - 'elapsed_time': 'int' + 'elapsed_time': 'int', + 'metadata': 'dict(str, object)' } attribute_map = { @@ -50,10 +51,11 @@ class ProcessResponse(object): 'log': 'log', 'pass_back_object': 'passBackObject', 'more_pages_available': 'morePagesAvailable', - 'elapsed_time': 'elapsedTime' + 'elapsed_time': 'elapsedTime', + 'metadata': 'metadata' } - def __init__(self, chip_page=None, processing_finished=None, container_list=None, transaction_info=None, log=None, pass_back_object=None, more_pages_available=None, elapsed_time=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, chip_page=None, processing_finished=None, container_list=None, transaction_info=None, log=None, pass_back_object=None, more_pages_available=None, elapsed_time=None, metadata=None, local_vars_configuration=None): # noqa: E501 """ProcessResponse - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -67,10 +69,10 @@ def __init__(self, chip_page=None, processing_finished=None, container_list=None self._pass_back_object = None self._more_pages_available = None self._elapsed_time = None + self._metadata = None self.discriminator = None - if chip_page is not None: - self.chip_page = chip_page + self.chip_page = chip_page self.processing_finished = processing_finished self.container_list = container_list self.transaction_info = transaction_info @@ -78,10 +80,10 @@ def __init__(self, chip_page=None, processing_finished=None, container_list=None self.log = log if pass_back_object is not None: self.pass_back_object = pass_back_object - if more_pages_available is not None: - self.more_pages_available = more_pages_available - if elapsed_time is not None: - self.elapsed_time = elapsed_time + self.more_pages_available = more_pages_available + self.elapsed_time = elapsed_time + if metadata is not None: + self.metadata = metadata @property def chip_page(self): @@ -101,6 +103,8 @@ def chip_page(self, chip_page): :param chip_page: The chip_page of this ProcessResponse. # noqa: E501 :type chip_page: RfidLocation """ + if self.local_vars_configuration.client_side_validation and chip_page is None: # noqa: E501 + raise ValueError("Invalid value for `chip_page`, must not be `None`") # noqa: E501 self._chip_page = chip_page @@ -237,6 +241,8 @@ def more_pages_available(self, more_pages_available): :param more_pages_available: The more_pages_available of this ProcessResponse. # noqa: E501 :type more_pages_available: int """ + if self.local_vars_configuration.client_side_validation and more_pages_available is None: # noqa: E501 + raise ValueError("Invalid value for `more_pages_available`, must not be `None`") # noqa: E501 self._more_pages_available = more_pages_available @@ -260,9 +266,32 @@ def elapsed_time(self, elapsed_time): :param elapsed_time: The elapsed_time of this ProcessResponse. # noqa: E501 :type elapsed_time: int """ + if self.local_vars_configuration.client_side_validation and elapsed_time is None: # noqa: E501 + raise ValueError("Invalid value for `elapsed_time`, must not be `None`") # noqa: E501 self._elapsed_time = elapsed_time + @property + def metadata(self): + """Gets the metadata of this ProcessResponse. # noqa: E501 + + + :return: The metadata of this ProcessResponse. # noqa: E501 + :rtype: dict(str, object) + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this ProcessResponse. + + + :param metadata: The metadata of this ProcessResponse. # noqa: E501 + :type metadata: dict(str, object) + """ + + self._metadata = metadata + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/raw_image_container_field_list.py b/regula/documentreader/webclient/gen/models/raw_image_container_field_list.py new file mode 100644 index 0000000..d40453f --- /dev/null +++ b/regula/documentreader/webclient/gen/models/raw_image_container_field_list.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" + +""" +class RawImageContainerFieldList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'format': 'str', + 'image': 'str' + } + + attribute_map = { + 'format': 'format', + 'image': 'image' + } + + def __init__(self, format=None, image=None, local_vars_configuration=None): # noqa: E501 + """RawImageContainerFieldList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._format = None + self._image = None + self.discriminator = None + + self.format = format + self.image = image + + @property + def format(self): + """Gets the format of this RawImageContainerFieldList. # noqa: E501 + + Image format # noqa: E501 + + :return: The format of this RawImageContainerFieldList. # noqa: E501 + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this RawImageContainerFieldList. + + Image format # noqa: E501 + + :param format: The format of this RawImageContainerFieldList. # noqa: E501 + :type format: str + """ + if self.local_vars_configuration.client_side_validation and format is None: # noqa: E501 + raise ValueError("Invalid value for `format`, must not be `None`") # noqa: E501 + + self._format = format + + @property + def image(self): + """Gets the image of this RawImageContainerFieldList. # noqa: E501 + + Base64 encoded image # noqa: E501 + + :return: The image of this RawImageContainerFieldList. # noqa: E501 + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this RawImageContainerFieldList. + + Base64 encoded image # noqa: E501 + + :param image: The image of this RawImageContainerFieldList. # noqa: E501 + :type image: str + """ + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 + + self._image = image + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RawImageContainerFieldList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RawImageContainerFieldList): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/raw_image_container_field_list_all_of.py b/regula/documentreader/webclient/gen/models/raw_image_container_field_list_all_of.py new file mode 100644 index 0000000..e4511b5 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/raw_image_container_field_list_all_of.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" + +""" +class RawImageContainerFieldListAllOf(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'format': 'str' + } + + attribute_map = { + 'format': 'format' + } + + def __init__(self, format=None, local_vars_configuration=None): # noqa: E501 + """RawImageContainerFieldListAllOf - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._format = None + self.discriminator = None + + self.format = format + + @property + def format(self): + """Gets the format of this RawImageContainerFieldListAllOf. # noqa: E501 + + Image format # noqa: E501 + + :return: The format of this RawImageContainerFieldListAllOf. # noqa: E501 + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this RawImageContainerFieldListAllOf. + + Image format # noqa: E501 + + :param format: The format of this RawImageContainerFieldListAllOf. # noqa: E501 + :type format: str + """ + if self.local_vars_configuration.client_side_validation and format is None: # noqa: E501 + raise ValueError("Invalid value for `format`, must not be `None`") # noqa: E501 + + self._format = format + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RawImageContainerFieldListAllOf): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RawImageContainerFieldListAllOf): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/raw_image_container_list.py b/regula/documentreader/webclient/gen/models/raw_image_container_list.py index 1f75ce4..b5f9e79 100644 --- a/regula/documentreader/webclient/gen/models/raw_image_container_list.py +++ b/regula/documentreader/webclient/gen/models/raw_image_container_list.py @@ -51,10 +51,8 @@ def __init__(self, count=None, images=None, local_vars_configuration=None): # n self._images = None self.discriminator = None - if count is not None: - self.count = count - if images is not None: - self.images = images + self.count = count + self.images = images @property def count(self): @@ -74,6 +72,8 @@ def count(self, count): :param count: The count of this RawImageContainerList. # noqa: E501 :type count: int """ + if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501 + raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 self._count = count @@ -95,6 +95,8 @@ def images(self, images): :param images: The images of this RawImageContainerList. # noqa: E501 :type images: list[ImageData] """ + if self.local_vars_configuration.client_side_validation and images is None: # noqa: E501 + raise ValueError("Invalid value for `images`, must not be `None`") # noqa: E501 self._images = images diff --git a/regula/documentreader/webclient/gen/models/result.py b/regula/documentreader/webclient/gen/models/result.py index cb93d97..52be979 100755 --- a/regula/documentreader/webclient/gen/models/result.py +++ b/regula/documentreader/webclient/gen/models/result.py @@ -48,22 +48,34 @@ class Result(object): AUTHENTICITY = int("20") + MAGNETIC_STRIPE_TEXT_DATA = int("26") + IMAGE_QUALITY = int("30") + LIVE_PORTRAIT = int("32") + STATUS = int("33") PORTRAIT_COMPARISON = int("34") + EXT_PORTRAIT = int("35") + TEXT = int("36") IMAGES = int("37") + FINGERPRINTS = int("38") + FINGERPRINT_COMPARISON = int("39") ENCRYPTED_RCL = int("49") LICENSE = int("50") + MRZ_POSITION = int("61") + + BARCODE_POSITION = int("62") + DOCUMENT_POSITION = int("85") RFID_RAW_DATA = int("101") @@ -76,7 +88,7 @@ class Result(object): RFID_ORIGINAL_GRAPHICS = int("105") - allowable_values = [DOCUMENT_IMAGE, MRZ_TEXT, BARCODES, VISUAL_GRAPHICS, DOCUMENT_TYPE_CANDIDATES, DOCUMENT_TYPE, LEXICAL_ANALYSIS, RAW_UNCROPPED_IMAGE, VISUAL_TEXT, BARCODE_TEXT, BARCODE_GRAPHICS, AUTHENTICITY, IMAGE_QUALITY, STATUS, PORTRAIT_COMPARISON, TEXT, IMAGES, FINGERPRINT_COMPARISON, ENCRYPTED_RCL, LICENSE, DOCUMENT_POSITION, RFID_RAW_DATA, RFID_TEXT, RFID_GRAPHICS, RFID_BINARY_DATA, RFID_ORIGINAL_GRAPHICS] # noqa: E501 + allowable_values = [DOCUMENT_IMAGE, MRZ_TEXT, BARCODES, VISUAL_GRAPHICS, DOCUMENT_TYPE_CANDIDATES, DOCUMENT_TYPE, LEXICAL_ANALYSIS, RAW_UNCROPPED_IMAGE, VISUAL_TEXT, BARCODE_TEXT, BARCODE_GRAPHICS, AUTHENTICITY, MAGNETIC_STRIPE_TEXT_DATA, IMAGE_QUALITY, LIVE_PORTRAIT, STATUS, PORTRAIT_COMPARISON, EXT_PORTRAIT, TEXT, IMAGES, FINGERPRINTS, FINGERPRINT_COMPARISON, ENCRYPTED_RCL, LICENSE, MRZ_POSITION, BARCODE_POSITION, DOCUMENT_POSITION, RFID_RAW_DATA, RFID_TEXT, RFID_GRAPHICS, RFID_BINARY_DATA, RFID_ORIGINAL_GRAPHICS] # noqa: E501 """ Attributes: diff --git a/regula/documentreader/webclient/gen/models/result_item.py b/regula/documentreader/webclient/gen/models/result_item.py index 41c2c6c..a90928d 100755 --- a/regula/documentreader/webclient/gen/models/result_item.py +++ b/regula/documentreader/webclient/gen/models/result_item.py @@ -46,30 +46,6 @@ class ResultItem(object): 'page_idx': 'page_idx', 'result_type': 'result_type' } - discriminator_value_class_map = { - 1 : 'DocumentImageResult', - 102 : 'TextDataResult', - 103 : 'GraphicsResult', - 15 : 'LexicalAnalysisResult', - 17 : 'TextDataResult', - 18 : 'TextDataResult', - 19 : 'GraphicsResult', - 20 : 'AuthenticityResult', - 3 : 'TextDataResult', - 30 : 'ImageQualityResult', - 33 : 'StatusResult', - 34 : 'AuthenticityResult', - 36 : 'TextResult', - 37 : 'ImagesResult', - 39 : 'AuthenticityResult', - 49 : 'EncryptedRCLResult', - 5 : 'DocBarCodeInfo', - 50 : 'LicenseResult', - 6 : 'GraphicsResult', - 8 : 'DocumentTypesCandidatesResult', - 85 : 'DocumentPositionResult', - 9 : 'ChosenDocumentTypeResult', - } def __init__(self, buf_length=None, light=None, list_idx=None, page_idx=None, result_type=0, local_vars_configuration=None): # noqa: E501 """ResultItem - a model defined in OpenAPI""" # noqa: E501 @@ -82,7 +58,7 @@ def __init__(self, buf_length=None, light=None, list_idx=None, page_idx=None, re self._list_idx = None self._page_idx = None self._result_type = None - self.discriminator = 'result_type' + self.discriminator = None if buf_length is not None: self.buf_length = buf_length @@ -203,13 +179,6 @@ def result_type(self, result_type): self._result_type = result_type - def get_real_child_model(self, data): - """Returns the real base class specified by the discriminator""" - discriminator_key = self.attribute_map[self.discriminator] - discriminator_value = data[discriminator_key] - from regula.documentreader.webclient.ext.models import RawResultItem - return self.discriminator_value_class_map.get(discriminator_value, RawResultItem.__name__) - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/rfid_a_chip.py b/regula/documentreader/webclient/gen/models/rfid_a_chip.py new file mode 100644 index 0000000..b942006 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_a_chip.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Enumeration contains a set of constants specifying the type of the RFIDchip from MIFARE® family (for chips of type A) +""" +class RfidAChip(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + UNKNOWN = int("0") + + MIFARE_1K = int("1") + + MIFARE_4K = int("2") + + MIFARE_ULTRALIGHT = int("3") + + MIFARE_DES_FIRE = int("4") + + MIFARE_PROX = int("5") + + allowable_values = [UNKNOWN, MIFARE_1K, MIFARE_4K, MIFARE_ULTRALIGHT, MIFARE_DES_FIRE, MIFARE_PROX] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """RfidAChip - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidAChip): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidAChip): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_access_control_info.py b/regula/documentreader/webclient/gen/models/rfid_access_control_info.py new file mode 100644 index 0000000..2f55010 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_access_control_info.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure is used to describe the results of a single authentication procedure or a procedure of secure data access within the context of the communication session with electronic document +""" +class RfidAccessControlInfo(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'type': 'RfidAccessControlProcedureType', + 'status': 'RFIDErrorCodes', + 'active_option_idx': 'float', + 'notifications': 'list[ParsingErrorCodes]', + 'access_control_options': 'list[object]' + } + + attribute_map = { + 'type': 'Type', + 'status': 'Status', + 'active_option_idx': 'ActiveOptionIdx', + 'notifications': 'Notifications', + 'access_control_options': 'AccessControlOptions' + } + + def __init__(self, type=None, status=None, active_option_idx=None, notifications=None, access_control_options=None, local_vars_configuration=None): # noqa: E501 + """RfidAccessControlInfo - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._type = None + self._status = None + self._active_option_idx = None + self._notifications = None + self._access_control_options = None + self.discriminator = None + + self.type = type + self.status = status + if active_option_idx is not None: + self.active_option_idx = active_option_idx + self.notifications = notifications + if access_control_options is not None: + self.access_control_options = access_control_options + + @property + def type(self): + """Gets the type of this RfidAccessControlInfo. # noqa: E501 + + + :return: The type of this RfidAccessControlInfo. # noqa: E501 + :rtype: RfidAccessControlProcedureType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this RfidAccessControlInfo. + + + :param type: The type of this RfidAccessControlInfo. # noqa: E501 + :type type: RfidAccessControlProcedureType + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + @property + def status(self): + """Gets the status of this RfidAccessControlInfo. # noqa: E501 + + + :return: The status of this RfidAccessControlInfo. # noqa: E501 + :rtype: RFIDErrorCodes + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this RfidAccessControlInfo. + + + :param status: The status of this RfidAccessControlInfo. # noqa: E501 + :type status: RFIDErrorCodes + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + @property + def active_option_idx(self): + """Gets the active_option_idx of this RfidAccessControlInfo. # noqa: E501 + + Index of the active variant of the procedure # noqa: E501 + + :return: The active_option_idx of this RfidAccessControlInfo. # noqa: E501 + :rtype: float + """ + return self._active_option_idx + + @active_option_idx.setter + def active_option_idx(self, active_option_idx): + """Sets the active_option_idx of this RfidAccessControlInfo. + + Index of the active variant of the procedure # noqa: E501 + + :param active_option_idx: The active_option_idx of this RfidAccessControlInfo. # noqa: E501 + :type active_option_idx: float + """ + + self._active_option_idx = active_option_idx + + @property + def notifications(self): + """Gets the notifications of this RfidAccessControlInfo. # noqa: E501 + + List of remarks arisen during the procedure. # noqa: E501 + + :return: The notifications of this RfidAccessControlInfo. # noqa: E501 + :rtype: list[ParsingErrorCodes] + """ + return self._notifications + + @notifications.setter + def notifications(self, notifications): + """Sets the notifications of this RfidAccessControlInfo. + + List of remarks arisen during the procedure. # noqa: E501 + + :param notifications: The notifications of this RfidAccessControlInfo. # noqa: E501 + :type notifications: list[ParsingErrorCodes] + """ + if self.local_vars_configuration.client_side_validation and notifications is None: # noqa: E501 + raise ValueError("Invalid value for `notifications`, must not be `None`") # noqa: E501 + + self._notifications = notifications + + @property + def access_control_options(self): + """Gets the access_control_options of this RfidAccessControlInfo. # noqa: E501 + + List of structures with are used to describe the variants of the authentication or secure data access procedure performance within the context of the communication session with electronic document # noqa: E501 + + :return: The access_control_options of this RfidAccessControlInfo. # noqa: E501 + :rtype: list[object] + """ + return self._access_control_options + + @access_control_options.setter + def access_control_options(self, access_control_options): + """Sets the access_control_options of this RfidAccessControlInfo. + + List of structures with are used to describe the variants of the authentication or secure data access procedure performance within the context of the communication session with electronic document # noqa: E501 + + :param access_control_options: The access_control_options of this RfidAccessControlInfo. # noqa: E501 + :type access_control_options: list[object] + """ + + self._access_control_options = access_control_options + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidAccessControlInfo): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidAccessControlInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_access_control_procedure_type.py b/regula/documentreader/webclient/gen/models/rfid_access_control_procedure_type.py new file mode 100644 index 0000000..65cc7e6 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_access_control_procedure_type.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Enumeration contains a set of constants that define the type of authentication or secure data access procedure +""" +class RfidAccessControlProcedureType(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + UNDEFINED = int("0") + + BAC = int("1") + + PACE = int("2") + + CA = int("3") + + TA = int("4") + + AA = int("5") + + RI = int("6") + + CARD_INFO = int("10") + + allowable_values = [UNDEFINED, BAC, PACE, CA, TA, AA, RI, CARD_INFO] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """RfidAccessControlProcedureType - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidAccessControlProcedureType): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidAccessControlProcedureType): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_access_key.py b/regula/documentreader/webclient/gen/models/rfid_access_key.py new file mode 100644 index 0000000..7d0650f --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_access_key.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure is used to describe the contents of secure data access key within the context of the communication session with electronic document +""" +class RfidAccessKey(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'access_key': 'str', + 'key_type': 'RfidPasswordType', + 'access_type': 'RfidAccessControlProcedureType', + 'check_full_key_matching': 'bool' + } + + attribute_map = { + 'access_key': 'AccessKey', + 'key_type': 'KeyType', + 'access_type': 'AccessType', + 'check_full_key_matching': 'CheckFullKeyMatching' + } + + def __init__(self, access_key=None, key_type=None, access_type=None, check_full_key_matching=None, local_vars_configuration=None): # noqa: E501 + """RfidAccessKey - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._access_key = None + self._key_type = None + self._access_type = None + self._check_full_key_matching = None + self.discriminator = None + + self.access_key = access_key + self.key_type = key_type + self.access_type = access_type + self.check_full_key_matching = check_full_key_matching + + @property + def access_key(self): + """Gets the access_key of this RfidAccessKey. # noqa: E501 + + Key contents # noqa: E501 + + :return: The access_key of this RfidAccessKey. # noqa: E501 + :rtype: str + """ + return self._access_key + + @access_key.setter + def access_key(self, access_key): + """Sets the access_key of this RfidAccessKey. + + Key contents # noqa: E501 + + :param access_key: The access_key of this RfidAccessKey. # noqa: E501 + :type access_key: str + """ + if self.local_vars_configuration.client_side_validation and access_key is None: # noqa: E501 + raise ValueError("Invalid value for `access_key`, must not be `None`") # noqa: E501 + + self._access_key = access_key + + @property + def key_type(self): + """Gets the key_type of this RfidAccessKey. # noqa: E501 + + + :return: The key_type of this RfidAccessKey. # noqa: E501 + :rtype: RfidPasswordType + """ + return self._key_type + + @key_type.setter + def key_type(self, key_type): + """Sets the key_type of this RfidAccessKey. + + + :param key_type: The key_type of this RfidAccessKey. # noqa: E501 + :type key_type: RfidPasswordType + """ + if self.local_vars_configuration.client_side_validation and key_type is None: # noqa: E501 + raise ValueError("Invalid value for `key_type`, must not be `None`") # noqa: E501 + + self._key_type = key_type + + @property + def access_type(self): + """Gets the access_type of this RfidAccessKey. # noqa: E501 + + + :return: The access_type of this RfidAccessKey. # noqa: E501 + :rtype: RfidAccessControlProcedureType + """ + return self._access_type + + @access_type.setter + def access_type(self, access_type): + """Sets the access_type of this RfidAccessKey. + + + :param access_type: The access_type of this RfidAccessKey. # noqa: E501 + :type access_type: RfidAccessControlProcedureType + """ + if self.local_vars_configuration.client_side_validation and access_type is None: # noqa: E501 + raise ValueError("Invalid value for `access_type`, must not be `None`") # noqa: E501 + + self._access_type = access_type + + @property + def check_full_key_matching(self): + """Gets the check_full_key_matching of this RfidAccessKey. # noqa: E501 + + Logical sign of the need for a full comparison of AccessKey contents with the contents of DG1 (MRZ) data group # noqa: E501 + + :return: The check_full_key_matching of this RfidAccessKey. # noqa: E501 + :rtype: bool + """ + return self._check_full_key_matching + + @check_full_key_matching.setter + def check_full_key_matching(self, check_full_key_matching): + """Sets the check_full_key_matching of this RfidAccessKey. + + Logical sign of the need for a full comparison of AccessKey contents with the contents of DG1 (MRZ) data group # noqa: E501 + + :param check_full_key_matching: The check_full_key_matching of this RfidAccessKey. # noqa: E501 + :type check_full_key_matching: bool + """ + if self.local_vars_configuration.client_side_validation and check_full_key_matching is None: # noqa: E501 + raise ValueError("Invalid value for `check_full_key_matching`, must not be `None`") # noqa: E501 + + self._check_full_key_matching = check_full_key_matching + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidAccessKey): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidAccessKey): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_application.py b/regula/documentreader/webclient/gen/models/rfid_application.py new file mode 100644 index 0000000..b340373 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_application.py @@ -0,0 +1,292 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure is used to describe the contents of a single LDS application and their analysis within the context of the communication session with electronic document +""" +class RfidApplication(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'type': 'RfidApplicationType', + 'status': 'RFIDErrorCodes', + 'application_id': 'str', + 'version': 'str', + 'unicode_version': 'str', + 'data_hash_algorithm': 'str', + 'files': 'list[RfidDataFile]' + } + + attribute_map = { + 'type': 'Type', + 'status': 'Status', + 'application_id': 'ApplicationID', + 'version': 'Version', + 'unicode_version': 'UnicodeVersion', + 'data_hash_algorithm': 'DataHashAlgorithm', + 'files': 'Files' + } + + def __init__(self, type=None, status=None, application_id=None, version=None, unicode_version=None, data_hash_algorithm=None, files=None, local_vars_configuration=None): # noqa: E501 + """RfidApplication - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._type = None + self._status = None + self._application_id = None + self._version = None + self._unicode_version = None + self._data_hash_algorithm = None + self._files = None + self.discriminator = None + + self.type = type + self.status = status + self.application_id = application_id + self.version = version + self.unicode_version = unicode_version + self.data_hash_algorithm = data_hash_algorithm + self.files = files + + @property + def type(self): + """Gets the type of this RfidApplication. # noqa: E501 + + + :return: The type of this RfidApplication. # noqa: E501 + :rtype: RfidApplicationType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this RfidApplication. + + + :param type: The type of this RfidApplication. # noqa: E501 + :type type: RfidApplicationType + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + @property + def status(self): + """Gets the status of this RfidApplication. # noqa: E501 + + + :return: The status of this RfidApplication. # noqa: E501 + :rtype: RFIDErrorCodes + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this RfidApplication. + + + :param status: The status of this RfidApplication. # noqa: E501 + :type status: RFIDErrorCodes + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + @property + def application_id(self): + """Gets the application_id of this RfidApplication. # noqa: E501 + + Application identifier # noqa: E501 + + :return: The application_id of this RfidApplication. # noqa: E501 + :rtype: str + """ + return self._application_id + + @application_id.setter + def application_id(self, application_id): + """Sets the application_id of this RfidApplication. + + Application identifier # noqa: E501 + + :param application_id: The application_id of this RfidApplication. # noqa: E501 + :type application_id: str + """ + if self.local_vars_configuration.client_side_validation and application_id is None: # noqa: E501 + raise ValueError("Invalid value for `application_id`, must not be `None`") # noqa: E501 + + self._application_id = application_id + + @property + def version(self): + """Gets the version of this RfidApplication. # noqa: E501 + + Version of the application # noqa: E501 + + :return: The version of this RfidApplication. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this RfidApplication. + + Version of the application # noqa: E501 + + :param version: The version of this RfidApplication. # noqa: E501 + :type version: str + """ + if self.local_vars_configuration.client_side_validation and version is None: # noqa: E501 + raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 + + self._version = version + + @property + def unicode_version(self): + """Gets the unicode_version of this RfidApplication. # noqa: E501 + + Unicode version for application # noqa: E501 + + :return: The unicode_version of this RfidApplication. # noqa: E501 + :rtype: str + """ + return self._unicode_version + + @unicode_version.setter + def unicode_version(self, unicode_version): + """Sets the unicode_version of this RfidApplication. + + Unicode version for application # noqa: E501 + + :param unicode_version: The unicode_version of this RfidApplication. # noqa: E501 + :type unicode_version: str + """ + if self.local_vars_configuration.client_side_validation and unicode_version is None: # noqa: E501 + raise ValueError("Invalid value for `unicode_version`, must not be `None`") # noqa: E501 + + self._unicode_version = unicode_version + + @property + def data_hash_algorithm(self): + """Gets the data_hash_algorithm of this RfidApplication. # noqa: E501 + + Algorithm for calculating hash values for files for the procedure of PA # noqa: E501 + + :return: The data_hash_algorithm of this RfidApplication. # noqa: E501 + :rtype: str + """ + return self._data_hash_algorithm + + @data_hash_algorithm.setter + def data_hash_algorithm(self, data_hash_algorithm): + """Sets the data_hash_algorithm of this RfidApplication. + + Algorithm for calculating hash values for files for the procedure of PA # noqa: E501 + + :param data_hash_algorithm: The data_hash_algorithm of this RfidApplication. # noqa: E501 + :type data_hash_algorithm: str + """ + if self.local_vars_configuration.client_side_validation and data_hash_algorithm is None: # noqa: E501 + raise ValueError("Invalid value for `data_hash_algorithm`, must not be `None`") # noqa: E501 + + self._data_hash_algorithm = data_hash_algorithm + + @property + def files(self): + """Gets the files of this RfidApplication. # noqa: E501 + + List of containers to store information about the read files of the application # noqa: E501 + + :return: The files of this RfidApplication. # noqa: E501 + :rtype: list[RfidDataFile] + """ + return self._files + + @files.setter + def files(self, files): + """Sets the files of this RfidApplication. + + List of containers to store information about the read files of the application # noqa: E501 + + :param files: The files of this RfidApplication. # noqa: E501 + :type files: list[RfidDataFile] + """ + if self.local_vars_configuration.client_side_validation and files is None: # noqa: E501 + raise ValueError("Invalid value for `files`, must not be `None`") # noqa: E501 + + self._files = files + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidApplication): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidApplication): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_application_type.py b/regula/documentreader/webclient/gen/models/rfid_application_type.py new file mode 100644 index 0000000..c952d06 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_application_type.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Enumeration contains a set of constants that define the type of application within the context of the communication session with electronic document +""" +class RfidApplicationType(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + UNSPECIFIED = int("0") + + E_PASSPORT = int("1") + + E_ID = int("2") + + E_SIGN = int("3") + + E_DL = int("4") + + ROOT_FILES = int("0") + + allowable_values = [UNSPECIFIED, E_PASSPORT, E_ID, E_SIGN, E_DL, ROOT_FILES] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """RfidApplicationType - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidApplicationType): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidApplicationType): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_attribute_data.py b/regula/documentreader/webclient/gen/models/rfid_attribute_data.py new file mode 100644 index 0000000..284e0b1 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_attribute_data.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure contains the data of one attribute of the digital signature object. +""" +class RfidAttributeData(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'type': 'str', + 'data': 'str' + } + + attribute_map = { + 'type': 'Type', + 'data': 'Data' + } + + def __init__(self, type=None, data=None, local_vars_configuration=None): # noqa: E501 + """RfidAttributeData - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._type = None + self._data = None + self.discriminator = None + + self.type = type + self.data = data + + @property + def type(self): + """Gets the type of this RfidAttributeData. # noqa: E501 + + Contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) # noqa: E501 + + :return: The type of this RfidAttributeData. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this RfidAttributeData. + + Contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) # noqa: E501 + + :param type: The type of this RfidAttributeData. # noqa: E501 + :type type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + @property + def data(self): + """Gets the data of this RfidAttributeData. # noqa: E501 + + Attribute binary data. Base64 encoded. # noqa: E501 + + :return: The data of this RfidAttributeData. # noqa: E501 + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this RfidAttributeData. + + Attribute binary data. Base64 encoded. # noqa: E501 + + :param data: The data of this RfidAttributeData. # noqa: E501 + :type data: str + """ + if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501 + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidAttributeData): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidAttributeData): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_attribute_name.py b/regula/documentreader/webclient/gen/models/rfid_attribute_name.py new file mode 100644 index 0000000..87cfa18 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_attribute_name.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure contains information that serves as the distinguished name (identifier) of an object. +""" +class RfidAttributeName(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'type': 'str', + 'value': 'TrfFtString' + } + + attribute_map = { + 'type': 'Type', + 'value': 'Value' + } + + def __init__(self, type=None, value=None, local_vars_configuration=None): # noqa: E501 + """RfidAttributeName - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._type = None + self._value = None + self.discriminator = None + + self.type = type + self.value = value + + @property + def type(self): + """Gets the type of this RfidAttributeName. # noqa: E501 + + Attribute identifier (OID ASCII string); contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) # noqa: E501 + + :return: The type of this RfidAttributeName. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this RfidAttributeName. + + Attribute identifier (OID ASCII string); contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) # noqa: E501 + + :param type: The type of this RfidAttributeName. # noqa: E501 + :type type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + @property + def value(self): + """Gets the value of this RfidAttributeName. # noqa: E501 + + + :return: The value of this RfidAttributeName. # noqa: E501 + :rtype: TrfFtString + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this RfidAttributeName. + + + :param value: The value of this RfidAttributeName. # noqa: E501 + :type value: TrfFtString + """ + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidAttributeName): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidAttributeName): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_authentication_procedure_type.py b/regula/documentreader/webclient/gen/models/rfid_authentication_procedure_type.py new file mode 100644 index 0000000..062e75b --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_authentication_procedure_type.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Enumeration contains a set of constants that define the type of performed procedure of document authentication within the current session +""" +class RfidAuthenticationProcedureType(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + UNDEFINED = int("0") + + STANDARD = int("1") + + ADVANCED = int("2") + + GENERAL = int("3") + + allowable_values = [UNDEFINED, STANDARD, ADVANCED, GENERAL] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """RfidAuthenticationProcedureType - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidAuthenticationProcedureType): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidAuthenticationProcedureType): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_baud_rate.py b/regula/documentreader/webclient/gen/models/rfid_baud_rate.py new file mode 100644 index 0000000..4fc7768 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_baud_rate.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Enumeration contains a set of constants specifying the rate of data exchange between the reader and the RFID-chip +""" +class RfidBaudRate(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + UNKNOWN = int("0") + + RFBR_106 = int("1") + + RFBR_212 = int("2") + + RFBR_424 = int("4") + + RFBR_848 = int("8") + + allowable_values = [UNKNOWN, RFBR_106, RFBR_212, RFBR_424, RFBR_848] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """RfidBaudRate - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidBaudRate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidBaudRate): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_card_properties_ext.py b/regula/documentreader/webclient/gen/models/rfid_card_properties_ext.py new file mode 100644 index 0000000..76bbea9 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_card_properties_ext.py @@ -0,0 +1,485 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure is used to store extended information about the characteristics of the RFID-chip located in the scope of the reader +""" +class RfidCardPropertiesExt(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'rfid_type': 'RfidType', + 'baudrate1': 'str', + 'baudrate2': 'str', + 'support_4': 'bool', + 'chip_type_a': 'RfidAChip', + 'support_mifare': 'bool', + 'mifare_memory': 'float', + 'uid': 'str', + 'atq_a': 'object', + 'sak': 'object', + 'atq_b': 'object', + 'bit_rate_s': 'RfidBaudRate', + 'bit_rate_r': 'RfidBaudRate', + 'atr': 'str' + } + + attribute_map = { + 'rfid_type': 'RFID_Type', + 'baudrate1': 'Baudrate1', + 'baudrate2': 'Baudrate2', + 'support_4': 'Support_4', + 'chip_type_a': 'ChipType_A', + 'support_mifare': 'Support_Mifare', + 'mifare_memory': 'MifareMemory', + 'uid': 'UID', + 'atq_a': 'ATQ_A', + 'sak': 'SAK', + 'atq_b': 'ATQ_B', + 'bit_rate_s': 'BitRateS', + 'bit_rate_r': 'BitRateR', + 'atr': 'ATR' + } + + def __init__(self, rfid_type=None, baudrate1=None, baudrate2=None, support_4=None, chip_type_a=None, support_mifare=None, mifare_memory=None, uid=None, atq_a=None, sak=None, atq_b=None, bit_rate_s=None, bit_rate_r=None, atr=None, local_vars_configuration=None): # noqa: E501 + """RfidCardPropertiesExt - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._rfid_type = None + self._baudrate1 = None + self._baudrate2 = None + self._support_4 = None + self._chip_type_a = None + self._support_mifare = None + self._mifare_memory = None + self._uid = None + self._atq_a = None + self._sak = None + self._atq_b = None + self._bit_rate_s = None + self._bit_rate_r = None + self._atr = None + self.discriminator = None + + self.rfid_type = rfid_type + self.baudrate1 = baudrate1 + self.baudrate2 = baudrate2 + self.support_4 = support_4 + self.chip_type_a = chip_type_a + self.support_mifare = support_mifare + self.mifare_memory = mifare_memory + self.uid = uid + self.atq_a = atq_a + self.sak = sak + self.atq_b = atq_b + self.bit_rate_s = bit_rate_s + self.bit_rate_r = bit_rate_r + self.atr = atr + + @property + def rfid_type(self): + """Gets the rfid_type of this RfidCardPropertiesExt. # noqa: E501 + + + :return: The rfid_type of this RfidCardPropertiesExt. # noqa: E501 + :rtype: RfidType + """ + return self._rfid_type + + @rfid_type.setter + def rfid_type(self, rfid_type): + """Sets the rfid_type of this RfidCardPropertiesExt. + + + :param rfid_type: The rfid_type of this RfidCardPropertiesExt. # noqa: E501 + :type rfid_type: RfidType + """ + if self.local_vars_configuration.client_side_validation and rfid_type is None: # noqa: E501 + raise ValueError("Invalid value for `rfid_type`, must not be `None`") # noqa: E501 + + self._rfid_type = rfid_type + + @property + def baudrate1(self): + """Gets the baudrate1 of this RfidCardPropertiesExt. # noqa: E501 + + Numeric Baudrate1 value in hexadecimal format (e.g. 0x0000000F) # noqa: E501 + + :return: The baudrate1 of this RfidCardPropertiesExt. # noqa: E501 + :rtype: str + """ + return self._baudrate1 + + @baudrate1.setter + def baudrate1(self, baudrate1): + """Sets the baudrate1 of this RfidCardPropertiesExt. + + Numeric Baudrate1 value in hexadecimal format (e.g. 0x0000000F) # noqa: E501 + + :param baudrate1: The baudrate1 of this RfidCardPropertiesExt. # noqa: E501 + :type baudrate1: str + """ + if self.local_vars_configuration.client_side_validation and baudrate1 is None: # noqa: E501 + raise ValueError("Invalid value for `baudrate1`, must not be `None`") # noqa: E501 + + self._baudrate1 = baudrate1 + + @property + def baudrate2(self): + """Gets the baudrate2 of this RfidCardPropertiesExt. # noqa: E501 + + Numeric Baudrate2 value in hexadecimal format # noqa: E501 + + :return: The baudrate2 of this RfidCardPropertiesExt. # noqa: E501 + :rtype: str + """ + return self._baudrate2 + + @baudrate2.setter + def baudrate2(self, baudrate2): + """Sets the baudrate2 of this RfidCardPropertiesExt. + + Numeric Baudrate2 value in hexadecimal format # noqa: E501 + + :param baudrate2: The baudrate2 of this RfidCardPropertiesExt. # noqa: E501 + :type baudrate2: str + """ + if self.local_vars_configuration.client_side_validation and baudrate2 is None: # noqa: E501 + raise ValueError("Invalid value for `baudrate2`, must not be `None`") # noqa: E501 + + self._baudrate2 = baudrate2 + + @property + def support_4(self): + """Gets the support_4 of this RfidCardPropertiesExt. # noqa: E501 + + Boolean Support_4 value # noqa: E501 + + :return: The support_4 of this RfidCardPropertiesExt. # noqa: E501 + :rtype: bool + """ + return self._support_4 + + @support_4.setter + def support_4(self, support_4): + """Sets the support_4 of this RfidCardPropertiesExt. + + Boolean Support_4 value # noqa: E501 + + :param support_4: The support_4 of this RfidCardPropertiesExt. # noqa: E501 + :type support_4: bool + """ + if self.local_vars_configuration.client_side_validation and support_4 is None: # noqa: E501 + raise ValueError("Invalid value for `support_4`, must not be `None`") # noqa: E501 + + self._support_4 = support_4 + + @property + def chip_type_a(self): + """Gets the chip_type_a of this RfidCardPropertiesExt. # noqa: E501 + + + :return: The chip_type_a of this RfidCardPropertiesExt. # noqa: E501 + :rtype: RfidAChip + """ + return self._chip_type_a + + @chip_type_a.setter + def chip_type_a(self, chip_type_a): + """Sets the chip_type_a of this RfidCardPropertiesExt. + + + :param chip_type_a: The chip_type_a of this RfidCardPropertiesExt. # noqa: E501 + :type chip_type_a: RfidAChip + """ + if self.local_vars_configuration.client_side_validation and chip_type_a is None: # noqa: E501 + raise ValueError("Invalid value for `chip_type_a`, must not be `None`") # noqa: E501 + + self._chip_type_a = chip_type_a + + @property + def support_mifare(self): + """Gets the support_mifare of this RfidCardPropertiesExt. # noqa: E501 + + Sign of support for ISO/IEC 14443-3 data exchange protocol # noqa: E501 + + :return: The support_mifare of this RfidCardPropertiesExt. # noqa: E501 + :rtype: bool + """ + return self._support_mifare + + @support_mifare.setter + def support_mifare(self, support_mifare): + """Sets the support_mifare of this RfidCardPropertiesExt. + + Sign of support for ISO/IEC 14443-3 data exchange protocol # noqa: E501 + + :param support_mifare: The support_mifare of this RfidCardPropertiesExt. # noqa: E501 + :type support_mifare: bool + """ + if self.local_vars_configuration.client_side_validation and support_mifare is None: # noqa: E501 + raise ValueError("Invalid value for `support_mifare`, must not be `None`") # noqa: E501 + + self._support_mifare = support_mifare + + @property + def mifare_memory(self): + """Gets the mifare_memory of this RfidCardPropertiesExt. # noqa: E501 + + Amount of operational memory MIFARE® of the chip, kilobytes # noqa: E501 + + :return: The mifare_memory of this RfidCardPropertiesExt. # noqa: E501 + :rtype: float + """ + return self._mifare_memory + + @mifare_memory.setter + def mifare_memory(self, mifare_memory): + """Sets the mifare_memory of this RfidCardPropertiesExt. + + Amount of operational memory MIFARE® of the chip, kilobytes # noqa: E501 + + :param mifare_memory: The mifare_memory of this RfidCardPropertiesExt. # noqa: E501 + :type mifare_memory: float + """ + if self.local_vars_configuration.client_side_validation and mifare_memory is None: # noqa: E501 + raise ValueError("Invalid value for `mifare_memory`, must not be `None`") # noqa: E501 + + self._mifare_memory = mifare_memory + + @property + def uid(self): + """Gets the uid of this RfidCardPropertiesExt. # noqa: E501 + + UID contents in text format. Each byte is represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. F9 4F 41 60) # noqa: E501 + + :return: The uid of this RfidCardPropertiesExt. # noqa: E501 + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this RfidCardPropertiesExt. + + UID contents in text format. Each byte is represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. F9 4F 41 60) # noqa: E501 + + :param uid: The uid of this RfidCardPropertiesExt. # noqa: E501 + :type uid: str + """ + if self.local_vars_configuration.client_side_validation and uid is None: # noqa: E501 + raise ValueError("Invalid value for `uid`, must not be `None`") # noqa: E501 + + self._uid = uid + + @property + def atq_a(self): + """Gets the atq_a of this RfidCardPropertiesExt. # noqa: E501 + + Reply of the «A» type chip to «REQA» command of ISO/IEC 14443-3 protocol (Answer To Request, Type A – ATQA) – for the internal use by the main control library # noqa: E501 + + :return: The atq_a of this RfidCardPropertiesExt. # noqa: E501 + :rtype: object + """ + return self._atq_a + + @atq_a.setter + def atq_a(self, atq_a): + """Sets the atq_a of this RfidCardPropertiesExt. + + Reply of the «A» type chip to «REQA» command of ISO/IEC 14443-3 protocol (Answer To Request, Type A – ATQA) – for the internal use by the main control library # noqa: E501 + + :param atq_a: The atq_a of this RfidCardPropertiesExt. # noqa: E501 + :type atq_a: object + """ + + self._atq_a = atq_a + + @property + def sak(self): + """Gets the sak of this RfidCardPropertiesExt. # noqa: E501 + + Response of type-A RFID-chip to SELECT command of ISO/IEC 14443-3 protocol (Select Acknowledge, SAK). # noqa: E501 + + :return: The sak of this RfidCardPropertiesExt. # noqa: E501 + :rtype: object + """ + return self._sak + + @sak.setter + def sak(self, sak): + """Sets the sak of this RfidCardPropertiesExt. + + Response of type-A RFID-chip to SELECT command of ISO/IEC 14443-3 protocol (Select Acknowledge, SAK). # noqa: E501 + + :param sak: The sak of this RfidCardPropertiesExt. # noqa: E501 + :type sak: object + """ + + self._sak = sak + + @property + def atq_b(self): + """Gets the atq_b of this RfidCardPropertiesExt. # noqa: E501 + + ATQ_B contents in text format. Each byte is represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. 50 F9 4F 41 60 00 00 00 00 77 81 81) # noqa: E501 + + :return: The atq_b of this RfidCardPropertiesExt. # noqa: E501 + :rtype: object + """ + return self._atq_b + + @atq_b.setter + def atq_b(self, atq_b): + """Sets the atq_b of this RfidCardPropertiesExt. + + ATQ_B contents in text format. Each byte is represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. 50 F9 4F 41 60 00 00 00 00 77 81 81) # noqa: E501 + + :param atq_b: The atq_b of this RfidCardPropertiesExt. # noqa: E501 + :type atq_b: object + """ + + self._atq_b = atq_b + + @property + def bit_rate_s(self): + """Gets the bit_rate_s of this RfidCardPropertiesExt. # noqa: E501 + + + :return: The bit_rate_s of this RfidCardPropertiesExt. # noqa: E501 + :rtype: RfidBaudRate + """ + return self._bit_rate_s + + @bit_rate_s.setter + def bit_rate_s(self, bit_rate_s): + """Sets the bit_rate_s of this RfidCardPropertiesExt. + + + :param bit_rate_s: The bit_rate_s of this RfidCardPropertiesExt. # noqa: E501 + :type bit_rate_s: RfidBaudRate + """ + if self.local_vars_configuration.client_side_validation and bit_rate_s is None: # noqa: E501 + raise ValueError("Invalid value for `bit_rate_s`, must not be `None`") # noqa: E501 + + self._bit_rate_s = bit_rate_s + + @property + def bit_rate_r(self): + """Gets the bit_rate_r of this RfidCardPropertiesExt. # noqa: E501 + + + :return: The bit_rate_r of this RfidCardPropertiesExt. # noqa: E501 + :rtype: RfidBaudRate + """ + return self._bit_rate_r + + @bit_rate_r.setter + def bit_rate_r(self, bit_rate_r): + """Sets the bit_rate_r of this RfidCardPropertiesExt. + + + :param bit_rate_r: The bit_rate_r of this RfidCardPropertiesExt. # noqa: E501 + :type bit_rate_r: RfidBaudRate + """ + if self.local_vars_configuration.client_side_validation and bit_rate_r is None: # noqa: E501 + raise ValueError("Invalid value for `bit_rate_r`, must not be `None`") # noqa: E501 + + self._bit_rate_r = bit_rate_r + + @property + def atr(self): + """Gets the atr of this RfidCardPropertiesExt. # noqa: E501 + + ATR-string of RFID-chip # noqa: E501 + + :return: The atr of this RfidCardPropertiesExt. # noqa: E501 + :rtype: str + """ + return self._atr + + @atr.setter + def atr(self, atr): + """Sets the atr of this RfidCardPropertiesExt. + + ATR-string of RFID-chip # noqa: E501 + + :param atr: The atr of this RfidCardPropertiesExt. # noqa: E501 + :type atr: str + """ + if self.local_vars_configuration.client_side_validation and atr is None: # noqa: E501 + raise ValueError("Invalid value for `atr`, must not be `None`") # noqa: E501 + + self._atr = atr + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidCardPropertiesExt): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidCardPropertiesExt): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_certificate_ex.py b/regula/documentreader/webclient/gen/models/rfid_certificate_ex.py new file mode 100644 index 0000000..085d2fb --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_certificate_ex.py @@ -0,0 +1,456 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure is used to describe the certificate contents used for the digital signature verification of the document security object within the context of the communication session with electronic document. +""" +class RfidCertificateEx(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'version': 'float', + 'serial_number': 'str', + 'signature_algorithm': 'str', + 'issuer': 'RfidDistinguishedName', + 'validity': 'RfidValidity', + 'subject': 'RfidDistinguishedName', + 'subject_pk_algorithm': 'str', + 'extensions': 'list[RfidPkiExtension]', + 'notifications': 'list[ParsingErrorCodes]', + 'origin': 'RfidCertificateOrigin', + 'type': 'RfidCertificateType', + 'file_name': 'TrfFtString', + 'pa_status': 'RFIDErrorCodes' + } + + attribute_map = { + 'version': 'Version', + 'serial_number': 'SerialNumber', + 'signature_algorithm': 'SignatureAlgorithm', + 'issuer': 'Issuer', + 'validity': 'Validity', + 'subject': 'Subject', + 'subject_pk_algorithm': 'SubjectPKAlgorithm', + 'extensions': 'Extensions', + 'notifications': 'Notifications', + 'origin': 'Origin', + 'type': 'Type', + 'file_name': 'FileName', + 'pa_status': 'PA_Status' + } + + def __init__(self, version=None, serial_number=None, signature_algorithm=None, issuer=None, validity=None, subject=None, subject_pk_algorithm=None, extensions=None, notifications=None, origin=None, type=None, file_name=None, pa_status=None, local_vars_configuration=None): # noqa: E501 + """RfidCertificateEx - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._version = None + self._serial_number = None + self._signature_algorithm = None + self._issuer = None + self._validity = None + self._subject = None + self._subject_pk_algorithm = None + self._extensions = None + self._notifications = None + self._origin = None + self._type = None + self._file_name = None + self._pa_status = None + self.discriminator = None + + self.version = version + self.serial_number = serial_number + self.signature_algorithm = signature_algorithm + self.issuer = issuer + self.validity = validity + self.subject = subject + self.subject_pk_algorithm = subject_pk_algorithm + self.extensions = extensions + self.notifications = notifications + self.origin = origin + self.type = type + self.file_name = file_name + self.pa_status = pa_status + + @property + def version(self): + """Gets the version of this RfidCertificateEx. # noqa: E501 + + Version of Certificate ASN.1 structure # noqa: E501 + + :return: The version of this RfidCertificateEx. # noqa: E501 + :rtype: float + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this RfidCertificateEx. + + Version of Certificate ASN.1 structure # noqa: E501 + + :param version: The version of this RfidCertificateEx. # noqa: E501 + :type version: float + """ + if self.local_vars_configuration.client_side_validation and version is None: # noqa: E501 + raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 + + self._version = version + + @property + def serial_number(self): + """Gets the serial_number of this RfidCertificateEx. # noqa: E501 + + Certificate serial number. Base64 encoded. # noqa: E501 + + :return: The serial_number of this RfidCertificateEx. # noqa: E501 + :rtype: str + """ + return self._serial_number + + @serial_number.setter + def serial_number(self, serial_number): + """Sets the serial_number of this RfidCertificateEx. + + Certificate serial number. Base64 encoded. # noqa: E501 + + :param serial_number: The serial_number of this RfidCertificateEx. # noqa: E501 + :type serial_number: str + """ + if self.local_vars_configuration.client_side_validation and serial_number is None: # noqa: E501 + raise ValueError("Invalid value for `serial_number`, must not be `None`") # noqa: E501 + + self._serial_number = serial_number + + @property + def signature_algorithm(self): + """Gets the signature_algorithm of this RfidCertificateEx. # noqa: E501 + + Certificate digital signature algorithm identifier (OID); String in the format S1 (S2), where S1 – algorithm name, S2 – identifier (OID string). # noqa: E501 + + :return: The signature_algorithm of this RfidCertificateEx. # noqa: E501 + :rtype: str + """ + return self._signature_algorithm + + @signature_algorithm.setter + def signature_algorithm(self, signature_algorithm): + """Sets the signature_algorithm of this RfidCertificateEx. + + Certificate digital signature algorithm identifier (OID); String in the format S1 (S2), where S1 – algorithm name, S2 – identifier (OID string). # noqa: E501 + + :param signature_algorithm: The signature_algorithm of this RfidCertificateEx. # noqa: E501 + :type signature_algorithm: str + """ + if self.local_vars_configuration.client_side_validation and signature_algorithm is None: # noqa: E501 + raise ValueError("Invalid value for `signature_algorithm`, must not be `None`") # noqa: E501 + + self._signature_algorithm = signature_algorithm + + @property + def issuer(self): + """Gets the issuer of this RfidCertificateEx. # noqa: E501 + + + :return: The issuer of this RfidCertificateEx. # noqa: E501 + :rtype: RfidDistinguishedName + """ + return self._issuer + + @issuer.setter + def issuer(self, issuer): + """Sets the issuer of this RfidCertificateEx. + + + :param issuer: The issuer of this RfidCertificateEx. # noqa: E501 + :type issuer: RfidDistinguishedName + """ + if self.local_vars_configuration.client_side_validation and issuer is None: # noqa: E501 + raise ValueError("Invalid value for `issuer`, must not be `None`") # noqa: E501 + + self._issuer = issuer + + @property + def validity(self): + """Gets the validity of this RfidCertificateEx. # noqa: E501 + + + :return: The validity of this RfidCertificateEx. # noqa: E501 + :rtype: RfidValidity + """ + return self._validity + + @validity.setter + def validity(self, validity): + """Sets the validity of this RfidCertificateEx. + + + :param validity: The validity of this RfidCertificateEx. # noqa: E501 + :type validity: RfidValidity + """ + if self.local_vars_configuration.client_side_validation and validity is None: # noqa: E501 + raise ValueError("Invalid value for `validity`, must not be `None`") # noqa: E501 + + self._validity = validity + + @property + def subject(self): + """Gets the subject of this RfidCertificateEx. # noqa: E501 + + + :return: The subject of this RfidCertificateEx. # noqa: E501 + :rtype: RfidDistinguishedName + """ + return self._subject + + @subject.setter + def subject(self, subject): + """Sets the subject of this RfidCertificateEx. + + + :param subject: The subject of this RfidCertificateEx. # noqa: E501 + :type subject: RfidDistinguishedName + """ + if self.local_vars_configuration.client_side_validation and subject is None: # noqa: E501 + raise ValueError("Invalid value for `subject`, must not be `None`") # noqa: E501 + + self._subject = subject + + @property + def subject_pk_algorithm(self): + """Gets the subject_pk_algorithm of this RfidCertificateEx. # noqa: E501 + + Certificate public key algorithm identifier (OID); String in the format S1 (S2), where S1 – algorithm name, S2 – identifier (OID string). # noqa: E501 + + :return: The subject_pk_algorithm of this RfidCertificateEx. # noqa: E501 + :rtype: str + """ + return self._subject_pk_algorithm + + @subject_pk_algorithm.setter + def subject_pk_algorithm(self, subject_pk_algorithm): + """Sets the subject_pk_algorithm of this RfidCertificateEx. + + Certificate public key algorithm identifier (OID); String in the format S1 (S2), where S1 – algorithm name, S2 – identifier (OID string). # noqa: E501 + + :param subject_pk_algorithm: The subject_pk_algorithm of this RfidCertificateEx. # noqa: E501 + :type subject_pk_algorithm: str + """ + if self.local_vars_configuration.client_side_validation and subject_pk_algorithm is None: # noqa: E501 + raise ValueError("Invalid value for `subject_pk_algorithm`, must not be `None`") # noqa: E501 + + self._subject_pk_algorithm = subject_pk_algorithm + + @property + def extensions(self): + """Gets the extensions of this RfidCertificateEx. # noqa: E501 + + List of the certificate extensions # noqa: E501 + + :return: The extensions of this RfidCertificateEx. # noqa: E501 + :rtype: list[RfidPkiExtension] + """ + return self._extensions + + @extensions.setter + def extensions(self, extensions): + """Sets the extensions of this RfidCertificateEx. + + List of the certificate extensions # noqa: E501 + + :param extensions: The extensions of this RfidCertificateEx. # noqa: E501 + :type extensions: list[RfidPkiExtension] + """ + if self.local_vars_configuration.client_side_validation and extensions is None: # noqa: E501 + raise ValueError("Invalid value for `extensions`, must not be `None`") # noqa: E501 + + self._extensions = extensions + + @property + def notifications(self): + """Gets the notifications of this RfidCertificateEx. # noqa: E501 + + List of remarks arisen during the analysis of the certificate data structure and its validity verification. # noqa: E501 + + :return: The notifications of this RfidCertificateEx. # noqa: E501 + :rtype: list[ParsingErrorCodes] + """ + return self._notifications + + @notifications.setter + def notifications(self, notifications): + """Sets the notifications of this RfidCertificateEx. + + List of remarks arisen during the analysis of the certificate data structure and its validity verification. # noqa: E501 + + :param notifications: The notifications of this RfidCertificateEx. # noqa: E501 + :type notifications: list[ParsingErrorCodes] + """ + if self.local_vars_configuration.client_side_validation and notifications is None: # noqa: E501 + raise ValueError("Invalid value for `notifications`, must not be `None`") # noqa: E501 + + self._notifications = notifications + + @property + def origin(self): + """Gets the origin of this RfidCertificateEx. # noqa: E501 + + + :return: The origin of this RfidCertificateEx. # noqa: E501 + :rtype: RfidCertificateOrigin + """ + return self._origin + + @origin.setter + def origin(self, origin): + """Sets the origin of this RfidCertificateEx. + + + :param origin: The origin of this RfidCertificateEx. # noqa: E501 + :type origin: RfidCertificateOrigin + """ + if self.local_vars_configuration.client_side_validation and origin is None: # noqa: E501 + raise ValueError("Invalid value for `origin`, must not be `None`") # noqa: E501 + + self._origin = origin + + @property + def type(self): + """Gets the type of this RfidCertificateEx. # noqa: E501 + + + :return: The type of this RfidCertificateEx. # noqa: E501 + :rtype: RfidCertificateType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this RfidCertificateEx. + + + :param type: The type of this RfidCertificateEx. # noqa: E501 + :type type: RfidCertificateType + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + @property + def file_name(self): + """Gets the file_name of this RfidCertificateEx. # noqa: E501 + + + :return: The file_name of this RfidCertificateEx. # noqa: E501 + :rtype: TrfFtString + """ + return self._file_name + + @file_name.setter + def file_name(self, file_name): + """Sets the file_name of this RfidCertificateEx. + + + :param file_name: The file_name of this RfidCertificateEx. # noqa: E501 + :type file_name: TrfFtString + """ + if self.local_vars_configuration.client_side_validation and file_name is None: # noqa: E501 + raise ValueError("Invalid value for `file_name`, must not be `None`") # noqa: E501 + + self._file_name = file_name + + @property + def pa_status(self): + """Gets the pa_status of this RfidCertificateEx. # noqa: E501 + + + :return: The pa_status of this RfidCertificateEx. # noqa: E501 + :rtype: RFIDErrorCodes + """ + return self._pa_status + + @pa_status.setter + def pa_status(self, pa_status): + """Sets the pa_status of this RfidCertificateEx. + + + :param pa_status: The pa_status of this RfidCertificateEx. # noqa: E501 + :type pa_status: RFIDErrorCodes + """ + if self.local_vars_configuration.client_side_validation and pa_status is None: # noqa: E501 + raise ValueError("Invalid value for `pa_status`, must not be `None`") # noqa: E501 + + self._pa_status = pa_status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidCertificateEx): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidCertificateEx): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_certificate_origin.py b/regula/documentreader/webclient/gen/models/rfid_certificate_origin.py new file mode 100644 index 0000000..b6d6858 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_certificate_origin.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Enumeration contains a set of constants that define the source of certificate used in the procedure of document security object digital signature verification +""" +class RfidCertificateOrigin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + UNDEFINED = int("0") + + PKD = int("1") + + SECURITY_OBJECT = int("2") + + USER_DEFINED = int("3") + + MASTER_LIST_PKD = int("4") + + MASTER_LIST_SO = int("5") + + DEFECT_LIST_SO = int("6") + + DEVIATION_LIST_SO = int("7") + + BLACK_LIST_SO = int("8") + + allowable_values = [UNDEFINED, PKD, SECURITY_OBJECT, USER_DEFINED, MASTER_LIST_PKD, MASTER_LIST_SO, DEFECT_LIST_SO, DEVIATION_LIST_SO, BLACK_LIST_SO] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """RfidCertificateOrigin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidCertificateOrigin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidCertificateOrigin): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_certificate_type.py b/regula/documentreader/webclient/gen/models/rfid_certificate_type.py new file mode 100644 index 0000000..c6ed588 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_certificate_type.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Enumeration contains a set of constants that define the type of certificate used in the procedure of document security object digital signature verification +""" +class RfidCertificateType(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + UNDEFINED = int("0") + + CSCA = int("1") + + CSCA_LINK = int("2") + + DS = int("3") + + MLS = int("4") + + DEV_LS = int("5") + + DEF_LS = int("6") + + BLS = int("7") + + allowable_values = [UNDEFINED, CSCA, CSCA_LINK, DS, MLS, DEV_LS, DEF_LS, BLS] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """RfidCertificateType - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidCertificateType): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidCertificateType): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_data_file.py b/regula/documentreader/webclient/gen/models/rfid_data_file.py new file mode 100644 index 0000000..7c87604 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_data_file.py @@ -0,0 +1,373 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure is used to describe the contents of a single file of the LDS of electronic document and the analysis of its contents within the context of the communication session with electronic document +""" +class RfidDataFile(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'file_id': 'str', + 'type': 'RfidDataFileType', + 'file_data': 'TrfFtBytes', + 'reading_status': 'RFIDErrorCodes', + 'reading_time': 'float', + 'pa_status': 'RFIDErrorCodes', + 'notifications': 'list[ParsingErrorCodes]', + 'doc_fields_text': 'list[TextFieldType]', + 'doc_fields_graphics': 'list[GraphicFieldType]', + 'doc_fields_originals': 'list[GraphicFieldType]' + } + + attribute_map = { + 'file_id': 'FileID', + 'type': 'Type', + 'file_data': 'FileData', + 'reading_status': 'ReadingStatus', + 'reading_time': 'ReadingTime', + 'pa_status': 'PA_Status', + 'notifications': 'Notifications', + 'doc_fields_text': 'DocFields_Text', + 'doc_fields_graphics': 'DocFields_Graphics', + 'doc_fields_originals': 'DocFields_Originals' + } + + def __init__(self, file_id=None, type=None, file_data=None, reading_status=None, reading_time=None, pa_status=None, notifications=None, doc_fields_text=None, doc_fields_graphics=None, doc_fields_originals=None, local_vars_configuration=None): # noqa: E501 + """RfidDataFile - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._file_id = None + self._type = None + self._file_data = None + self._reading_status = None + self._reading_time = None + self._pa_status = None + self._notifications = None + self._doc_fields_text = None + self._doc_fields_graphics = None + self._doc_fields_originals = None + self.discriminator = None + + if file_id is not None: + self.file_id = file_id + self.type = type + if file_data is not None: + self.file_data = file_data + self.reading_status = reading_status + self.reading_time = reading_time + self.pa_status = pa_status + self.notifications = notifications + self.doc_fields_text = doc_fields_text + self.doc_fields_graphics = doc_fields_graphics + self.doc_fields_originals = doc_fields_originals + + @property + def file_id(self): + """Gets the file_id of this RfidDataFile. # noqa: E501 + + File identifier. Each byte of FileID represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. 01 1E) # noqa: E501 + + :return: The file_id of this RfidDataFile. # noqa: E501 + :rtype: str + """ + return self._file_id + + @file_id.setter + def file_id(self, file_id): + """Sets the file_id of this RfidDataFile. + + File identifier. Each byte of FileID represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. 01 1E) # noqa: E501 + + :param file_id: The file_id of this RfidDataFile. # noqa: E501 + :type file_id: str + """ + + self._file_id = file_id + + @property + def type(self): + """Gets the type of this RfidDataFile. # noqa: E501 + + + :return: The type of this RfidDataFile. # noqa: E501 + :rtype: RfidDataFileType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this RfidDataFile. + + + :param type: The type of this RfidDataFile. # noqa: E501 + :type type: RfidDataFileType + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + @property + def file_data(self): + """Gets the file_data of this RfidDataFile. # noqa: E501 + + + :return: The file_data of this RfidDataFile. # noqa: E501 + :rtype: TrfFtBytes + """ + return self._file_data + + @file_data.setter + def file_data(self, file_data): + """Sets the file_data of this RfidDataFile. + + + :param file_data: The file_data of this RfidDataFile. # noqa: E501 + :type file_data: TrfFtBytes + """ + + self._file_data = file_data + + @property + def reading_status(self): + """Gets the reading_status of this RfidDataFile. # noqa: E501 + + + :return: The reading_status of this RfidDataFile. # noqa: E501 + :rtype: RFIDErrorCodes + """ + return self._reading_status + + @reading_status.setter + def reading_status(self, reading_status): + """Sets the reading_status of this RfidDataFile. + + + :param reading_status: The reading_status of this RfidDataFile. # noqa: E501 + :type reading_status: RFIDErrorCodes + """ + if self.local_vars_configuration.client_side_validation and reading_status is None: # noqa: E501 + raise ValueError("Invalid value for `reading_status`, must not be `None`") # noqa: E501 + + self._reading_status = reading_status + + @property + def reading_time(self): + """Gets the reading_time of this RfidDataFile. # noqa: E501 + + Time of reading, milliseconds # noqa: E501 + + :return: The reading_time of this RfidDataFile. # noqa: E501 + :rtype: float + """ + return self._reading_time + + @reading_time.setter + def reading_time(self, reading_time): + """Sets the reading_time of this RfidDataFile. + + Time of reading, milliseconds # noqa: E501 + + :param reading_time: The reading_time of this RfidDataFile. # noqa: E501 + :type reading_time: float + """ + if self.local_vars_configuration.client_side_validation and reading_time is None: # noqa: E501 + raise ValueError("Invalid value for `reading_time`, must not be `None`") # noqa: E501 + + self._reading_time = reading_time + + @property + def pa_status(self): + """Gets the pa_status of this RfidDataFile. # noqa: E501 + + + :return: The pa_status of this RfidDataFile. # noqa: E501 + :rtype: RFIDErrorCodes + """ + return self._pa_status + + @pa_status.setter + def pa_status(self, pa_status): + """Sets the pa_status of this RfidDataFile. + + + :param pa_status: The pa_status of this RfidDataFile. # noqa: E501 + :type pa_status: RFIDErrorCodes + """ + if self.local_vars_configuration.client_side_validation and pa_status is None: # noqa: E501 + raise ValueError("Invalid value for `pa_status`, must not be `None`") # noqa: E501 + + self._pa_status = pa_status + + @property + def notifications(self): + """Gets the notifications of this RfidDataFile. # noqa: E501 + + List of remarks arisen when reading data from the memory of the chip and analysing their ASN.1-structure. # noqa: E501 + + :return: The notifications of this RfidDataFile. # noqa: E501 + :rtype: list[ParsingErrorCodes] + """ + return self._notifications + + @notifications.setter + def notifications(self, notifications): + """Sets the notifications of this RfidDataFile. + + List of remarks arisen when reading data from the memory of the chip and analysing their ASN.1-structure. # noqa: E501 + + :param notifications: The notifications of this RfidDataFile. # noqa: E501 + :type notifications: list[ParsingErrorCodes] + """ + if self.local_vars_configuration.client_side_validation and notifications is None: # noqa: E501 + raise ValueError("Invalid value for `notifications`, must not be `None`") # noqa: E501 + + self._notifications = notifications + + @property + def doc_fields_text(self): + """Gets the doc_fields_text of this RfidDataFile. # noqa: E501 + + List of document text fields formed on the basis of the file contents # noqa: E501 + + :return: The doc_fields_text of this RfidDataFile. # noqa: E501 + :rtype: list[TextFieldType] + """ + return self._doc_fields_text + + @doc_fields_text.setter + def doc_fields_text(self, doc_fields_text): + """Sets the doc_fields_text of this RfidDataFile. + + List of document text fields formed on the basis of the file contents # noqa: E501 + + :param doc_fields_text: The doc_fields_text of this RfidDataFile. # noqa: E501 + :type doc_fields_text: list[TextFieldType] + """ + if self.local_vars_configuration.client_side_validation and doc_fields_text is None: # noqa: E501 + raise ValueError("Invalid value for `doc_fields_text`, must not be `None`") # noqa: E501 + + self._doc_fields_text = doc_fields_text + + @property + def doc_fields_graphics(self): + """Gets the doc_fields_graphics of this RfidDataFile. # noqa: E501 + + List of document graphic fields formed on the basis of the file contents # noqa: E501 + + :return: The doc_fields_graphics of this RfidDataFile. # noqa: E501 + :rtype: list[GraphicFieldType] + """ + return self._doc_fields_graphics + + @doc_fields_graphics.setter + def doc_fields_graphics(self, doc_fields_graphics): + """Sets the doc_fields_graphics of this RfidDataFile. + + List of document graphic fields formed on the basis of the file contents # noqa: E501 + + :param doc_fields_graphics: The doc_fields_graphics of this RfidDataFile. # noqa: E501 + :type doc_fields_graphics: list[GraphicFieldType] + """ + if self.local_vars_configuration.client_side_validation and doc_fields_graphics is None: # noqa: E501 + raise ValueError("Invalid value for `doc_fields_graphics`, must not be `None`") # noqa: E501 + + self._doc_fields_graphics = doc_fields_graphics + + @property + def doc_fields_originals(self): + """Gets the doc_fields_originals of this RfidDataFile. # noqa: E501 + + List of the original binary representation of graphic document fields formed on the basis of the file contents # noqa: E501 + + :return: The doc_fields_originals of this RfidDataFile. # noqa: E501 + :rtype: list[GraphicFieldType] + """ + return self._doc_fields_originals + + @doc_fields_originals.setter + def doc_fields_originals(self, doc_fields_originals): + """Sets the doc_fields_originals of this RfidDataFile. + + List of the original binary representation of graphic document fields formed on the basis of the file contents # noqa: E501 + + :param doc_fields_originals: The doc_fields_originals of this RfidDataFile. # noqa: E501 + :type doc_fields_originals: list[GraphicFieldType] + """ + if self.local_vars_configuration.client_side_validation and doc_fields_originals is None: # noqa: E501 + raise ValueError("Invalid value for `doc_fields_originals`, must not be `None`") # noqa: E501 + + self._doc_fields_originals = doc_fields_originals + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidDataFile): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidDataFile): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_data_file_type.py b/regula/documentreader/webclient/gen/models/rfid_data_file_type.py new file mode 100644 index 0000000..772e608 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_data_file_type.py @@ -0,0 +1,267 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Enumeration contains a set of constants that define the file type (or logical belonging of the data object) within the context of the communication session with electronic document +""" +class RfidDataFileType(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + UNSPECIFIED = int("0") + + PASSPORT_DG1 = int("1") + + PASSPORT_DG2 = int("2") + + PASSPORT_DG3 = int("3") + + PASSPORT_DG4 = int("4") + + PASSPORT_DG5 = int("5") + + PASSPORT_DG6 = int("6") + + PASSPORT_DG7 = int("7") + + PASSPORT_DG8 = int("8") + + PASSPORT_DG9 = int("9") + + PASSPORT_DG10 = int("10") + + PASSPORT_DG11 = int("11") + + PASSPORT_DG12 = int("12") + + PASSPORT_DG13 = int("13") + + PASSPORT_DG14 = int("14") + + PASSPORT_DG15 = int("15") + + PASSPORT_DG16 = int("16") + + PASSPORT_DG17 = int("17") + + PASSPORT_DG18 = int("18") + + PASSPORT_DG19 = int("19") + + PASSPORT_DG20 = int("20") + + PASSPORT_SOD = int("21") + + PASSPORT_CVCA = int("22") + + PASSPORT_COM = int("23") + + ID_DG1 = int("101") + + ID_DG2 = int("102") + + ID_DG3 = int("103") + + ID_DG4 = int("104") + + ID_DG5 = int("105") + + ID_DG6 = int("106") + + ID_DG7 = int("107") + + ID_DG8 = int("108") + + ID_DG9 = int("109") + + ID_DG10 = int("110") + + ID_DG11 = int("111") + + ID_DG12 = int("112") + + ID_DG13 = int("113") + + ID_DG14 = int("114") + + ID_DG15 = int("115") + + ID_DG16 = int("116") + + ID_DG17 = int("117") + + ID_DG18 = int("118") + + ID_DG19 = int("119") + + ID_DG20 = int("120") + + ID_DG21 = int("121") + + DL_COM = int("150") + + DL_DG1 = int("151") + + DL_DG2 = int("152") + + DL_DG3 = int("153") + + DL_DG4 = int("154") + + DL_DG5 = int("155") + + DL_DG6 = int("156") + + DL_DG7 = int("157") + + DL_DG8 = int("158") + + DL_DG9 = int("159") + + DL_DG10 = int("160") + + DL_DG11 = int("161") + + DL_DG12 = int("162") + + DL_DG13 = int("163") + + DL_DG14 = int("164") + + DL_SOD = int("165") + + DL_CE = int("166") + + DL_CVCA = int("167") + + PACE_CARD_ACCESS = int("200") + + PACE_CARD_SECURITY = int("201") + + PACE_CHIP_SECURITY = int("202") + + MIFARE_DATA = int("300") + + MIFARE_VALIDITY = int("301") + + AUTHENTICITY_V2 = int("302") + + ATR = int("400") + + _E_SIGN_PK = int("500") + + _E_SIGN_SIGNED_DATA = int("501") + + CERTIFICATE = int("600") + + MASTER_LIST = int("601") + + DEFECT_LIST = int("602") + + BLACK_LIST = int("603") + + APP_DIRECTORY = int("700") + + SESSION = int("701") + + LOG_DATA = int("702") + + CHIP_PROPERTIES = int("703") + + POST_CA_RESPONSE = int("710") + + POST_CA_PUBLIC_KEY = int("711") + + POST_CA_INFO = int("712") + + POST_CA_D_PARAMS = int("713") + + POST_CA_CHECK_PK = int("714") + + POST_CA_CHECK_SK = int("715") + + USER_DEFINED = int("1000") + + allowable_values = [UNSPECIFIED, PASSPORT_DG1, PASSPORT_DG2, PASSPORT_DG3, PASSPORT_DG4, PASSPORT_DG5, PASSPORT_DG6, PASSPORT_DG7, PASSPORT_DG8, PASSPORT_DG9, PASSPORT_DG10, PASSPORT_DG11, PASSPORT_DG12, PASSPORT_DG13, PASSPORT_DG14, PASSPORT_DG15, PASSPORT_DG16, PASSPORT_DG17, PASSPORT_DG18, PASSPORT_DG19, PASSPORT_DG20, PASSPORT_SOD, PASSPORT_CVCA, PASSPORT_COM, ID_DG1, ID_DG2, ID_DG3, ID_DG4, ID_DG5, ID_DG6, ID_DG7, ID_DG8, ID_DG9, ID_DG10, ID_DG11, ID_DG12, ID_DG13, ID_DG14, ID_DG15, ID_DG16, ID_DG17, ID_DG18, ID_DG19, ID_DG20, ID_DG21, DL_COM, DL_DG1, DL_DG2, DL_DG3, DL_DG4, DL_DG5, DL_DG6, DL_DG7, DL_DG8, DL_DG9, DL_DG10, DL_DG11, DL_DG12, DL_DG13, DL_DG14, DL_SOD, DL_CE, DL_CVCA, PACE_CARD_ACCESS, PACE_CARD_SECURITY, PACE_CHIP_SECURITY, MIFARE_DATA, MIFARE_VALIDITY, AUTHENTICITY_V2, ATR, _E_SIGN_PK, _E_SIGN_SIGNED_DATA, CERTIFICATE, MASTER_LIST, DEFECT_LIST, BLACK_LIST, APP_DIRECTORY, SESSION, LOG_DATA, CHIP_PROPERTIES, POST_CA_RESPONSE, POST_CA_PUBLIC_KEY, POST_CA_INFO, POST_CA_D_PARAMS, POST_CA_CHECK_PK, POST_CA_CHECK_SK, USER_DEFINED] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """RfidDataFileType - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidDataFileType): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidDataFileType): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_data_group_type_tag.py b/regula/documentreader/webclient/gen/models/rfid_data_group_type_tag.py new file mode 100644 index 0000000..2261f63 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_data_group_type_tag.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Enumeration representing RFID Data Group Types. Constants with prefix correspond to the informational data groups of ePassport application, with prefix EID_ – those of eID application, with prefix EDL_ – eDL application +""" +class RfidDataGroupTypeTag(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + COM = int("96") + + DG1 = int("97") + + DG2 = int("117") + + DG3 = int("99") + + DG4 = int("118") + + DG5 = int("101") + + DG6 = int("102") + + DG7 = int("103") + + DG8 = int("104") + + DG9 = int("105") + + DG10 = int("106") + + DG11 = int("107") + + DG12 = int("108") + + DG13 = int("109") + + DG14 = int("110") + + DG15 = int("111") + + DG16 = int("112") + + SOD = int("119") + + EID_DG1 = int("97") + + EID_DG2 = int("98") + + EID_DG3 = int("99") + + EID_DG4 = int("100") + + EID_DG5 = int("101") + + EID_DG6 = int("102") + + EID_DG7 = int("103") + + EID_DG8 = int("104") + + EID_DG9 = int("105") + + EID_DG10 = int("106") + + EID_DG11 = int("107") + + EID_DG12 = int("108") + + EID_DG13 = int("109") + + EID_DG14 = int("110") + + EID_DG15 = int("111") + + EID_DG16 = int("112") + + EID_DG17 = int("113") + + EID_DG18 = int("114") + + EID_DG19 = int("115") + + EID_DG20 = int("116") + + EID_DG21 = int("117") + + EDL_COM = int("96") + + EDL_SOD = int("119") + + EDL_CE = int("119") + + EDL_DG1 = int("97") + + EDL_DG2 = int("107") + + EDL_DG3 = int("108") + + EDL_DG4 = int("101") + + EDL_DG5 = int("103") + + EDL_DG6 = int("117") + + EDL_DG7 = int("99") + + EDL_DG8 = int("118") + + EDL_DG9 = int("112") + + EDL_DG11 = int("109") + + EDL_DG12 = int("113") + + EDL_DG14 = int("111") + + _110 = int("110") + + allowable_values = [COM, DG1, DG2, DG3, DG4, DG5, DG6, DG7, DG8, DG9, DG10, DG11, DG12, DG13, DG14, DG15, DG16, SOD, EID_DG1, EID_DG2, EID_DG3, EID_DG4, EID_DG5, EID_DG6, EID_DG7, EID_DG8, EID_DG9, EID_DG10, EID_DG11, EID_DG12, EID_DG13, EID_DG14, EID_DG15, EID_DG16, EID_DG17, EID_DG18, EID_DG19, EID_DG20, EID_DG21, EDL_COM, EDL_SOD, EDL_CE, EDL_DG1, EDL_DG2, EDL_DG3, EDL_DG4, EDL_DG5, EDL_DG6, EDL_DG7, EDL_DG8, EDL_DG9, EDL_DG11, EDL_DG12, EDL_DG14, _110] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """RfidDataGroupTypeTag - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidDataGroupTypeTag): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidDataGroupTypeTag): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_dg1.py b/regula/documentreader/webclient/gen/models/rfid_dg1.py new file mode 100644 index 0000000..3f13f68 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_dg1.py @@ -0,0 +1,553 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure used to store the contents of EF.DG1 informational data group of ePassport application – document MRZ data +""" +class RfidDG1(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'type': 'RfidDataGroupTypeTag', + 'document_id': 'DocumentFormat', + 'document_type': 'str', + 'state': 'str', + 'holder': 'str', + 'document_number': 'str', + 'check_digit_document_number': 'float', + 'nationality': 'str', + 'birthday': 'str', + 'check_digit_birthday': 'float', + 'sex': 'str', + 'expiry_date': 'str', + 'check_digit_expiry_date': 'float', + 'optional_data': 'str', + 'check_digit_optional_data': 'float', + 'check_digit_composite': 'float' + } + + attribute_map = { + 'type': 'Type', + 'document_id': 'DocumentID', + 'document_type': 'DocumentType', + 'state': 'State', + 'holder': 'Holder', + 'document_number': 'DocumentNumber', + 'check_digit_document_number': 'CheckDigitDocumentNumber', + 'nationality': 'Nationality', + 'birthday': 'Birthday', + 'check_digit_birthday': 'CheckDigitBirthday', + 'sex': 'Sex', + 'expiry_date': 'ExpiryDate', + 'check_digit_expiry_date': 'CheckDigitExpiryDate', + 'optional_data': 'OptionalData', + 'check_digit_optional_data': 'CheckDigitOptionalData', + 'check_digit_composite': 'CheckDigitComposite' + } + + def __init__(self, type=None, document_id=None, document_type=None, state=None, holder=None, document_number=None, check_digit_document_number=None, nationality=None, birthday=None, check_digit_birthday=None, sex=None, expiry_date=None, check_digit_expiry_date=None, optional_data=None, check_digit_optional_data=None, check_digit_composite=None, local_vars_configuration=None): # noqa: E501 + """RfidDG1 - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._type = None + self._document_id = None + self._document_type = None + self._state = None + self._holder = None + self._document_number = None + self._check_digit_document_number = None + self._nationality = None + self._birthday = None + self._check_digit_birthday = None + self._sex = None + self._expiry_date = None + self._check_digit_expiry_date = None + self._optional_data = None + self._check_digit_optional_data = None + self._check_digit_composite = None + self.discriminator = None + + self.type = type + self.document_id = document_id + self.document_type = document_type + self.state = state + self.holder = holder + self.document_number = document_number + self.check_digit_document_number = check_digit_document_number + self.nationality = nationality + self.birthday = birthday + self.check_digit_birthday = check_digit_birthday + self.sex = sex + self.expiry_date = expiry_date + self.check_digit_expiry_date = check_digit_expiry_date + self.optional_data = optional_data + self.check_digit_optional_data = check_digit_optional_data + self.check_digit_composite = check_digit_composite + + @property + def type(self): + """Gets the type of this RfidDG1. # noqa: E501 + + + :return: The type of this RfidDG1. # noqa: E501 + :rtype: RfidDataGroupTypeTag + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this RfidDG1. + + + :param type: The type of this RfidDG1. # noqa: E501 + :type type: RfidDataGroupTypeTag + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + @property + def document_id(self): + """Gets the document_id of this RfidDG1. # noqa: E501 + + + :return: The document_id of this RfidDG1. # noqa: E501 + :rtype: DocumentFormat + """ + return self._document_id + + @document_id.setter + def document_id(self, document_id): + """Sets the document_id of this RfidDG1. + + + :param document_id: The document_id of this RfidDG1. # noqa: E501 + :type document_id: DocumentFormat + """ + if self.local_vars_configuration.client_side_validation and document_id is None: # noqa: E501 + raise ValueError("Invalid value for `document_id`, must not be `None`") # noqa: E501 + + self._document_id = document_id + + @property + def document_type(self): + """Gets the document_type of this RfidDG1. # noqa: E501 + + Symbolic code of document type # noqa: E501 + + :return: The document_type of this RfidDG1. # noqa: E501 + :rtype: str + """ + return self._document_type + + @document_type.setter + def document_type(self, document_type): + """Sets the document_type of this RfidDG1. + + Symbolic code of document type # noqa: E501 + + :param document_type: The document_type of this RfidDG1. # noqa: E501 + :type document_type: str + """ + if self.local_vars_configuration.client_side_validation and document_type is None: # noqa: E501 + raise ValueError("Invalid value for `document_type`, must not be `None`") # noqa: E501 + + self._document_type = document_type + + @property + def state(self): + """Gets the state of this RfidDG1. # noqa: E501 + + Symbolic code of document issuing state # noqa: E501 + + :return: The state of this RfidDG1. # noqa: E501 + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this RfidDG1. + + Symbolic code of document issuing state # noqa: E501 + + :param state: The state of this RfidDG1. # noqa: E501 + :type state: str + """ + if self.local_vars_configuration.client_side_validation and state is None: # noqa: E501 + raise ValueError("Invalid value for `state`, must not be `None`") # noqa: E501 + + self._state = state + + @property + def holder(self): + """Gets the holder of this RfidDG1. # noqa: E501 + + DO’s name and surname # noqa: E501 + + :return: The holder of this RfidDG1. # noqa: E501 + :rtype: str + """ + return self._holder + + @holder.setter + def holder(self, holder): + """Sets the holder of this RfidDG1. + + DO’s name and surname # noqa: E501 + + :param holder: The holder of this RfidDG1. # noqa: E501 + :type holder: str + """ + if self.local_vars_configuration.client_side_validation and holder is None: # noqa: E501 + raise ValueError("Invalid value for `holder`, must not be `None`") # noqa: E501 + + self._holder = holder + + @property + def document_number(self): + """Gets the document_number of this RfidDG1. # noqa: E501 + + Document number # noqa: E501 + + :return: The document_number of this RfidDG1. # noqa: E501 + :rtype: str + """ + return self._document_number + + @document_number.setter + def document_number(self, document_number): + """Sets the document_number of this RfidDG1. + + Document number # noqa: E501 + + :param document_number: The document_number of this RfidDG1. # noqa: E501 + :type document_number: str + """ + if self.local_vars_configuration.client_side_validation and document_number is None: # noqa: E501 + raise ValueError("Invalid value for `document_number`, must not be `None`") # noqa: E501 + + self._document_number = document_number + + @property + def check_digit_document_number(self): + """Gets the check_digit_document_number of this RfidDG1. # noqa: E501 + + Check digit of document number # noqa: E501 + + :return: The check_digit_document_number of this RfidDG1. # noqa: E501 + :rtype: float + """ + return self._check_digit_document_number + + @check_digit_document_number.setter + def check_digit_document_number(self, check_digit_document_number): + """Sets the check_digit_document_number of this RfidDG1. + + Check digit of document number # noqa: E501 + + :param check_digit_document_number: The check_digit_document_number of this RfidDG1. # noqa: E501 + :type check_digit_document_number: float + """ + if self.local_vars_configuration.client_side_validation and check_digit_document_number is None: # noqa: E501 + raise ValueError("Invalid value for `check_digit_document_number`, must not be `None`") # noqa: E501 + + self._check_digit_document_number = check_digit_document_number + + @property + def nationality(self): + """Gets the nationality of this RfidDG1. # noqa: E501 + + Symbolic code of DO’s nationality # noqa: E501 + + :return: The nationality of this RfidDG1. # noqa: E501 + :rtype: str + """ + return self._nationality + + @nationality.setter + def nationality(self, nationality): + """Sets the nationality of this RfidDG1. + + Symbolic code of DO’s nationality # noqa: E501 + + :param nationality: The nationality of this RfidDG1. # noqa: E501 + :type nationality: str + """ + if self.local_vars_configuration.client_side_validation and nationality is None: # noqa: E501 + raise ValueError("Invalid value for `nationality`, must not be `None`") # noqa: E501 + + self._nationality = nationality + + @property + def birthday(self): + """Gets the birthday of this RfidDG1. # noqa: E501 + + DO’s date of birth # noqa: E501 + + :return: The birthday of this RfidDG1. # noqa: E501 + :rtype: str + """ + return self._birthday + + @birthday.setter + def birthday(self, birthday): + """Sets the birthday of this RfidDG1. + + DO’s date of birth # noqa: E501 + + :param birthday: The birthday of this RfidDG1. # noqa: E501 + :type birthday: str + """ + if self.local_vars_configuration.client_side_validation and birthday is None: # noqa: E501 + raise ValueError("Invalid value for `birthday`, must not be `None`") # noqa: E501 + + self._birthday = birthday + + @property + def check_digit_birthday(self): + """Gets the check_digit_birthday of this RfidDG1. # noqa: E501 + + Check digit of DO’s date of birth # noqa: E501 + + :return: The check_digit_birthday of this RfidDG1. # noqa: E501 + :rtype: float + """ + return self._check_digit_birthday + + @check_digit_birthday.setter + def check_digit_birthday(self, check_digit_birthday): + """Sets the check_digit_birthday of this RfidDG1. + + Check digit of DO’s date of birth # noqa: E501 + + :param check_digit_birthday: The check_digit_birthday of this RfidDG1. # noqa: E501 + :type check_digit_birthday: float + """ + if self.local_vars_configuration.client_side_validation and check_digit_birthday is None: # noqa: E501 + raise ValueError("Invalid value for `check_digit_birthday`, must not be `None`") # noqa: E501 + + self._check_digit_birthday = check_digit_birthday + + @property + def sex(self): + """Gets the sex of this RfidDG1. # noqa: E501 + + DO’s sex # noqa: E501 + + :return: The sex of this RfidDG1. # noqa: E501 + :rtype: str + """ + return self._sex + + @sex.setter + def sex(self, sex): + """Sets the sex of this RfidDG1. + + DO’s sex # noqa: E501 + + :param sex: The sex of this RfidDG1. # noqa: E501 + :type sex: str + """ + if self.local_vars_configuration.client_side_validation and sex is None: # noqa: E501 + raise ValueError("Invalid value for `sex`, must not be `None`") # noqa: E501 + + self._sex = sex + + @property + def expiry_date(self): + """Gets the expiry_date of this RfidDG1. # noqa: E501 + + Term of validity of the document # noqa: E501 + + :return: The expiry_date of this RfidDG1. # noqa: E501 + :rtype: str + """ + return self._expiry_date + + @expiry_date.setter + def expiry_date(self, expiry_date): + """Sets the expiry_date of this RfidDG1. + + Term of validity of the document # noqa: E501 + + :param expiry_date: The expiry_date of this RfidDG1. # noqa: E501 + :type expiry_date: str + """ + if self.local_vars_configuration.client_side_validation and expiry_date is None: # noqa: E501 + raise ValueError("Invalid value for `expiry_date`, must not be `None`") # noqa: E501 + + self._expiry_date = expiry_date + + @property + def check_digit_expiry_date(self): + """Gets the check_digit_expiry_date of this RfidDG1. # noqa: E501 + + Check digit of term of validity of the document # noqa: E501 + + :return: The check_digit_expiry_date of this RfidDG1. # noqa: E501 + :rtype: float + """ + return self._check_digit_expiry_date + + @check_digit_expiry_date.setter + def check_digit_expiry_date(self, check_digit_expiry_date): + """Sets the check_digit_expiry_date of this RfidDG1. + + Check digit of term of validity of the document # noqa: E501 + + :param check_digit_expiry_date: The check_digit_expiry_date of this RfidDG1. # noqa: E501 + :type check_digit_expiry_date: float + """ + if self.local_vars_configuration.client_side_validation and check_digit_expiry_date is None: # noqa: E501 + raise ValueError("Invalid value for `check_digit_expiry_date`, must not be `None`") # noqa: E501 + + self._check_digit_expiry_date = check_digit_expiry_date + + @property + def optional_data(self): + """Gets the optional_data of this RfidDG1. # noqa: E501 + + DO’s personal number or other additional data # noqa: E501 + + :return: The optional_data of this RfidDG1. # noqa: E501 + :rtype: str + """ + return self._optional_data + + @optional_data.setter + def optional_data(self, optional_data): + """Sets the optional_data of this RfidDG1. + + DO’s personal number or other additional data # noqa: E501 + + :param optional_data: The optional_data of this RfidDG1. # noqa: E501 + :type optional_data: str + """ + if self.local_vars_configuration.client_side_validation and optional_data is None: # noqa: E501 + raise ValueError("Invalid value for `optional_data`, must not be `None`") # noqa: E501 + + self._optional_data = optional_data + + @property + def check_digit_optional_data(self): + """Gets the check_digit_optional_data of this RfidDG1. # noqa: E501 + + Check digit of additional data # noqa: E501 + + :return: The check_digit_optional_data of this RfidDG1. # noqa: E501 + :rtype: float + """ + return self._check_digit_optional_data + + @check_digit_optional_data.setter + def check_digit_optional_data(self, check_digit_optional_data): + """Sets the check_digit_optional_data of this RfidDG1. + + Check digit of additional data # noqa: E501 + + :param check_digit_optional_data: The check_digit_optional_data of this RfidDG1. # noqa: E501 + :type check_digit_optional_data: float + """ + if self.local_vars_configuration.client_side_validation and check_digit_optional_data is None: # noqa: E501 + raise ValueError("Invalid value for `check_digit_optional_data`, must not be `None`") # noqa: E501 + + self._check_digit_optional_data = check_digit_optional_data + + @property + def check_digit_composite(self): + """Gets the check_digit_composite of this RfidDG1. # noqa: E501 + + General check digit # noqa: E501 + + :return: The check_digit_composite of this RfidDG1. # noqa: E501 + :rtype: float + """ + return self._check_digit_composite + + @check_digit_composite.setter + def check_digit_composite(self, check_digit_composite): + """Sets the check_digit_composite of this RfidDG1. + + General check digit # noqa: E501 + + :param check_digit_composite: The check_digit_composite of this RfidDG1. # noqa: E501 + :type check_digit_composite: float + """ + if self.local_vars_configuration.client_side_validation and check_digit_composite is None: # noqa: E501 + raise ValueError("Invalid value for `check_digit_composite`, must not be `None`") # noqa: E501 + + self._check_digit_composite = check_digit_composite + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidDG1): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidDG1): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_distinguished_name.py b/regula/documentreader/webclient/gen/models/rfid_distinguished_name.py new file mode 100644 index 0000000..458fea2 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_distinguished_name.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Contents of the identifier in binary form. Base64 encoded. +""" +class RfidDistinguishedName(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'data': 'str', + 'friendly_name': 'TrfFtString', + 'attributes': 'list[RfidAttributeName]' + } + + attribute_map = { + 'data': 'Data', + 'friendly_name': 'FriendlyName', + 'attributes': 'Attributes' + } + + def __init__(self, data=None, friendly_name=None, attributes=None, local_vars_configuration=None): # noqa: E501 + """RfidDistinguishedName - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._data = None + self._friendly_name = None + self._attributes = None + self.discriminator = None + + self.data = data + self.friendly_name = friendly_name + self.attributes = attributes + + @property + def data(self): + """Gets the data of this RfidDistinguishedName. # noqa: E501 + + Contents of the identifier in binary form. Base64 encoded. # noqa: E501 + + :return: The data of this RfidDistinguishedName. # noqa: E501 + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this RfidDistinguishedName. + + Contents of the identifier in binary form. Base64 encoded. # noqa: E501 + + :param data: The data of this RfidDistinguishedName. # noqa: E501 + :type data: str + """ + if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501 + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + @property + def friendly_name(self): + """Gets the friendly_name of this RfidDistinguishedName. # noqa: E501 + + + :return: The friendly_name of this RfidDistinguishedName. # noqa: E501 + :rtype: TrfFtString + """ + return self._friendly_name + + @friendly_name.setter + def friendly_name(self, friendly_name): + """Sets the friendly_name of this RfidDistinguishedName. + + + :param friendly_name: The friendly_name of this RfidDistinguishedName. # noqa: E501 + :type friendly_name: TrfFtString + """ + if self.local_vars_configuration.client_side_validation and friendly_name is None: # noqa: E501 + raise ValueError("Invalid value for `friendly_name`, must not be `None`") # noqa: E501 + + self._friendly_name = friendly_name + + @property + def attributes(self): + """Gets the attributes of this RfidDistinguishedName. # noqa: E501 + + List of individual attributes contained in the identifier # noqa: E501 + + :return: The attributes of this RfidDistinguishedName. # noqa: E501 + :rtype: list[RfidAttributeName] + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this RfidDistinguishedName. + + List of individual attributes contained in the identifier # noqa: E501 + + :param attributes: The attributes of this RfidDistinguishedName. # noqa: E501 + :type attributes: list[RfidAttributeName] + """ + if self.local_vars_configuration.client_side_validation and attributes is None: # noqa: E501 + raise ValueError("Invalid value for `attributes`, must not be `None`") # noqa: E501 + + self._attributes = attributes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidDistinguishedName): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidDistinguishedName): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_error_codes.py b/regula/documentreader/webclient/gen/models/rfid_error_codes.py new file mode 100644 index 0000000..201562c --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_error_codes.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Enumeration contains a set of error codes returned by SDK +""" +class RFIDErrorCodes(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + RFID_ERROR_LAYER6_FILE_EOF1 = int("2147508866") + + RFID_ERROR_LAYER6_PWD_DEACTIVATED = int("2147508867") + + RFID_ERROR_LAYER6_PWD_BLOCKED = int("2147509184") + + RFID_ERROR_LAYER6_PWD_SUSPEND = int("2147509185") + + RFID_ERROR_LAYER6_PWD_BLOCKED2 = int("2147510659") + + RFID_ERROR_LAYER6_PWD_DEACTIVATED2 = int("2147510660") + + RFID_ERROR_LAYER6_PWD_SUSPEND2 = int("2147510661") + + RFID_ERROR_LAYER6_INCORRECT_PARAMS = int("2147510912") + + RFID_ERROR_LAYER6_FILE_NOT_FOUND = int("2147510914") + + RFID_ERROR_LAYER6_NO_REFERENCE_DATA = int("2147510920") + + RFID_ERROR_LAYER6_FILE_EOF2 = int("2147511040") + + RFID_ERROR_NO_CHIP_DETECTED = int("2147549185") + + RFID_ERROR_NOT_AVAILABLE = int("2147549186") + + RFID_ERROR_INVALID_PARAMETER = int("2147549188") + + RFID_ERROR_NOT_INITIALIZED = int("2147549189") + + RFID_ERROR_NOT_ENOUGH_MEMORY = int("2147549190") + + RFID_ERROR_INVALID_DIRECTORY = int("2147549192") + + RFID_ERROR_UNKNOWN_COMMAND = int("2147549193") + + RFID_ERROR_FILE_IO_ERROR = int("2147549194") + + RFID_ERROR_BUSY = int("2147549195") + + RFID_ERROR_OLD_FIRMWARE = int("2147549196") + + RFID_ERROR_PCSC_FAILED = int("2147614720") + + RFID_ERROR_PCSC_READER_NOT_AVAILABLE = int("2147614721") + + RFID_ERROR_PCSC_CANT_CONNECT_CARD = int("2147614722") + + RFID_ERROR_PCSC_CARD_IS_NOT_CONNECTED = int("2147614723") + + RFID_ERROR_PCSC_OPERATION_CANCELLED = int("2147614724") + + RFID_ERROR_PCSC_CARD_IS_BUSY = int("2147614725") + + RFID_ERROR_PCSC_FAILED_SCARD = int("2147614726") + + RFID_ERROR_PCSC_EXT_LE_FAILED = int("2147614736") + + RFID_ERROR_LAYER6_PWD_FAILED = int("2148557760") + + RFID_ERROR_NOT_PERFORMED = int("2197815296") + + RFID_ERROR_SESSION_IS_CLOSED = int("2197815297") + + RFID_ERROR_SESSION_TERMINAL_UNSUPPORTED_OPERATION = int("2197815298") + + RFID_ERROR_SESSION_TERMINAL_TYPE_UNKNOWN = int("2197815312") + + RFID_ERROR_SESSION_TERMINAL_TYPE_BAD_CERTIFICATE = int("2197815313") + + RFID_ERROR_SESSION_TERMINAL_TYPE_NOT_SET = int("2197815314") + + RFID_ERROR_SESSION_PROCEDURE_TYPE_UNKNOWN = int("2197815315") + + RFID_ERROR_Session_Procedure_Type_Unsupported = int("2197815316") + + RFID_ERROR_SESSION_PROCEDURE_TYPE_NOT_SET = int("2197815317") + + RFID_ERROR_SESSION_ACCESS_KEY_UNKNOWN_TYPE = int("2197815318") + + RFID_ERROR_SESSION_ACCESS_KEY_UNSUPPORTED_SM_TYPE = int("2197815319") + + RFID_ERROR_SESSION_ACCESS_KEY_INCORRECT_SM_TYPE = int("2197815320") + + RFID_ERROR_SESSION_ACCESS_KEY_RESTRICTED = int("2197815321") + + RFID_ERROR_SESSION_ACCESS_KEY_INCORRECT_DATA = int("2197815322") + + RFID_ERROR_SESSION_ACCESS_KEY_NOT_SET = int("2197815323") + + RFID_ERROR_SESSION_PWD_MANAGEMENT_NOT_AUTHORIZED = int("2197815324") + + RFID_ERROR_SESSION_ACCESS_CONTROL_UNKNOWN_TYPE = int("2197815328") + + RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_SM = int("2197815329") + + RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_PACE = int("2197815330") + + RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_CA_KEYS = int("2197815331") + + RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_TA = int("2197815332") + + RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_CA = int("2197815333") + + RFID_ERROR_SESSION_ACCESS_CONTROL_INCORRECT_OPTION_CA = int("2197815334") + + RFID_ERROR_SESSION_ACCESS_CONTROL_CA_FAILED = int("2197815335") + + RFID_ERROR_SESSION_ACCESS_CONTROL_TA_FAILED = int("2197815336") + + RFID_ERROR_SESSION_ACCESS_CONTROL_AA_FAILED = int("2197815337") + + RFID_ERROR_SESSION_ACCESS_CONTROL_RI_FAILED = int("2197815338") + + RFID_ERROR_SESSION_PA_SIGNATURE_CHECK_FAILED = int("2197815344") + + RFID_ERROR_SESSION_PA_HASH_CHECK_FAILED = int("2197815345") + + RFID_ERROR_SESSION_INVALID_AUX_DATA_DATE_OF_EXPIRY = int("2197815360") + + RFID_ERROR_SESSION_INVALID_AUX_DATA_DATE_OF_BIRTH = int("2197815361") + + RFID_ERROR_SESSION_INVALID_AUX_DATA_COMMUNITY_ID = int("2197815362") + + RFID_ERROR_SESSION_E_SIGN_REQUIRES_APP_SELECTION = int("2197815376") + + RFID_ERROR_SESSION_E_SIGN_PIN_NOT_SET = int("2197815377") + + RFID_ERROR_SESSION_E_SIGN_PIN_NOT_VERIFIED = int("2197815378") + + RFID_ERROR_SESSION_INCORRECT_DATA = int("2197815392") + + RFID_ERROR_SESSION_FILE_NOT_ENOUGH_DATA = int("2197880832") + + RFID_ERROR_SESSION_FILE_INCORRECT_DATA = int("2197946368") + + RFID_ERROR_SESSION_FILE_UNEXPECTED_DATA = int("2198011904") + + RFID_ERROR_SESSION_FILE_CONTENTS_UNEXPECTED_DATA = int("2198077440") + + RFID_ERROR_SESSION_FILE_WRONG_TAG = int("2198142976") + + RFID_ERROR_SESSION_FILE_CANT_USE_DATA = int("2198208512") + + RFID_ERROR_SESSION_FILE_CANT_READ_DATA = int("2198274048") + + RFID_ERROR_SESSION_FILE_ACCESS_DENIED = int("2198339584") + + RFID_ERROR_LAYER34_NO_ERROR = int("2214592512") + + RFID_ERROR_LAYER34_TIME_OUT = int("2214658048") + + RFID_ERROR_LAYER34_COLLISION = int("2214723584") + + RFID_ERROR_LAYER34_CRC = int("2214789120") + + RFID_ERROR_LAYER34_DATA_INTEGRITY = int("2214854656") + + RFID_ERROR_LAYER34_DATA_LENGTH = int("2214920192") + + RFID_ERROR_Layer34_RFU = int("2214985728") + + RFID_ERROR_LAYER34_COLLISION_TOO_MANY = int("2215051264") + + RFID_ERROR_LAYER34_PROTOCOL_B = int("2215116800") + + RFID_ERROR_LAYER34_DATA_CONTENTS = int("2215182336") + + RFID_ERROR_LAYER34_PROTOCOL = int("2215247872") + + RFID_ERROR_LAYER34_GLOBAL_TIME_OUT = int("2215313408") + + RFID_ERROR_LAYER34_MIFARE_AUTH = int("2215378944") + + RFID_ERROR_LAYER34_SAM_ERROR = int("2215444480") + + RFID_ERROR_LAYER34_SAM_COLLISION = int("2215510016") + + RFID_ERROR_LAYER34_SAM_ACKNOWLEDGE = int("2215575552") + + RFID_ERROR_LAYER6_SECURITY_MANAGER = int("2248146944") + + RFID_ERROR_LAYER6_APP_SELECTION_FAILURE = int("2248146945") + + RFID_ERROR_LAYER6_MUTUAL_AUTH_MAC_FAIL = int("2248147200") + + RFID_ERROR_LAYER6_MUTUAL_AUTH_ENC_FAIL = int("2248147201") + + RFID_ERROR_LAYER6_MUTUAL_AUTH_FAILURE = int("2248147202") + + RFID_ERROR_LAYER6_MUTUAL_AUTH_FAILURE_DATA = int("2248147203") + + RFID_ERROR_LAYER6_SM_DO_8E_MISSING = int("2248147456") + + RFID_ERROR_LAYER6_SM_DO_87_MISSING = int("2248147457") + + RFID_ERROR_LAYER6_SM_DO_99_MISSING = int("2248147458") + + RFID_ERROR_LAYER6_SM_MAC_INCORRECT = int("2248147459") + + RFID_ERROR_LAYER6_SM_DO_87_INCORRECT = int("2248147460") + + RFID_ERROR_LAYER6_NON_TLV_RESPONSE_DATA = int("2248147712") + + RFID_ERROR_LAYER6_WRONG_RND_ICC_LENGTH = int("2248147713") + + RFID_ERROR_LAYER6_INT_AUTH_FAILURE = int("2248147714") + + RFID_ERROR_LAYER6_MSE_SET_KAT_FAILURE = int("2248147715") + + RFID_ERROR_LAYER6_MSE_SET_DST_FAILURE = int("2248147716") + + RFID_ERROR_LAYER6_PSO_CERTIFICATE_FAILURE = int("2248147717") + + RFID_ERROR_LAYER6_MSE_SET_AT_FAILURE = int("2248147718") + + RFID_ERROR_LAYER6_GET_CHALLENGE_FAILURE = int("2248147719") + + RFID_ERROR_LAYER6_EXT_AUTH_FAILURE = int("2248147720") + + RFID_ERROR_LAYER6_GENERAL_AUTH_FAILURE = int("2248147721") + + RFID_ERROR_FAILED = int("4294967295") + + RFID_ERROR_NO_ERROR = int("1") + + RFID_ERROR_ALREADY_DONE = int("2") + + allowable_values = [RFID_ERROR_LAYER6_FILE_EOF1, RFID_ERROR_LAYER6_PWD_DEACTIVATED, RFID_ERROR_LAYER6_PWD_BLOCKED, RFID_ERROR_LAYER6_PWD_SUSPEND, RFID_ERROR_LAYER6_PWD_BLOCKED2, RFID_ERROR_LAYER6_PWD_DEACTIVATED2, RFID_ERROR_LAYER6_PWD_SUSPEND2, RFID_ERROR_LAYER6_INCORRECT_PARAMS, RFID_ERROR_LAYER6_FILE_NOT_FOUND, RFID_ERROR_LAYER6_NO_REFERENCE_DATA, RFID_ERROR_LAYER6_FILE_EOF2, RFID_ERROR_NO_CHIP_DETECTED, RFID_ERROR_NOT_AVAILABLE, RFID_ERROR_INVALID_PARAMETER, RFID_ERROR_NOT_INITIALIZED, RFID_ERROR_NOT_ENOUGH_MEMORY, RFID_ERROR_INVALID_DIRECTORY, RFID_ERROR_UNKNOWN_COMMAND, RFID_ERROR_FILE_IO_ERROR, RFID_ERROR_BUSY, RFID_ERROR_OLD_FIRMWARE, RFID_ERROR_PCSC_FAILED, RFID_ERROR_PCSC_READER_NOT_AVAILABLE, RFID_ERROR_PCSC_CANT_CONNECT_CARD, RFID_ERROR_PCSC_CARD_IS_NOT_CONNECTED, RFID_ERROR_PCSC_OPERATION_CANCELLED, RFID_ERROR_PCSC_CARD_IS_BUSY, RFID_ERROR_PCSC_FAILED_SCARD, RFID_ERROR_PCSC_EXT_LE_FAILED, RFID_ERROR_LAYER6_PWD_FAILED, RFID_ERROR_NOT_PERFORMED, RFID_ERROR_SESSION_IS_CLOSED, RFID_ERROR_SESSION_TERMINAL_UNSUPPORTED_OPERATION, RFID_ERROR_SESSION_TERMINAL_TYPE_UNKNOWN, RFID_ERROR_SESSION_TERMINAL_TYPE_BAD_CERTIFICATE, RFID_ERROR_SESSION_TERMINAL_TYPE_NOT_SET, RFID_ERROR_SESSION_PROCEDURE_TYPE_UNKNOWN, RFID_ERROR_Session_Procedure_Type_Unsupported, RFID_ERROR_SESSION_PROCEDURE_TYPE_NOT_SET, RFID_ERROR_SESSION_ACCESS_KEY_UNKNOWN_TYPE, RFID_ERROR_SESSION_ACCESS_KEY_UNSUPPORTED_SM_TYPE, RFID_ERROR_SESSION_ACCESS_KEY_INCORRECT_SM_TYPE, RFID_ERROR_SESSION_ACCESS_KEY_RESTRICTED, RFID_ERROR_SESSION_ACCESS_KEY_INCORRECT_DATA, RFID_ERROR_SESSION_ACCESS_KEY_NOT_SET, RFID_ERROR_SESSION_PWD_MANAGEMENT_NOT_AUTHORIZED, RFID_ERROR_SESSION_ACCESS_CONTROL_UNKNOWN_TYPE, RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_SM, RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_PACE, RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_CA_KEYS, RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_TA, RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_CA, RFID_ERROR_SESSION_ACCESS_CONTROL_INCORRECT_OPTION_CA, RFID_ERROR_SESSION_ACCESS_CONTROL_CA_FAILED, RFID_ERROR_SESSION_ACCESS_CONTROL_TA_FAILED, RFID_ERROR_SESSION_ACCESS_CONTROL_AA_FAILED, RFID_ERROR_SESSION_ACCESS_CONTROL_RI_FAILED, RFID_ERROR_SESSION_PA_SIGNATURE_CHECK_FAILED, RFID_ERROR_SESSION_PA_HASH_CHECK_FAILED, RFID_ERROR_SESSION_INVALID_AUX_DATA_DATE_OF_EXPIRY, RFID_ERROR_SESSION_INVALID_AUX_DATA_DATE_OF_BIRTH, RFID_ERROR_SESSION_INVALID_AUX_DATA_COMMUNITY_ID, RFID_ERROR_SESSION_E_SIGN_REQUIRES_APP_SELECTION, RFID_ERROR_SESSION_E_SIGN_PIN_NOT_SET, RFID_ERROR_SESSION_E_SIGN_PIN_NOT_VERIFIED, RFID_ERROR_SESSION_INCORRECT_DATA, RFID_ERROR_SESSION_FILE_NOT_ENOUGH_DATA, RFID_ERROR_SESSION_FILE_INCORRECT_DATA, RFID_ERROR_SESSION_FILE_UNEXPECTED_DATA, RFID_ERROR_SESSION_FILE_CONTENTS_UNEXPECTED_DATA, RFID_ERROR_SESSION_FILE_WRONG_TAG, RFID_ERROR_SESSION_FILE_CANT_USE_DATA, RFID_ERROR_SESSION_FILE_CANT_READ_DATA, RFID_ERROR_SESSION_FILE_ACCESS_DENIED, RFID_ERROR_LAYER34_NO_ERROR, RFID_ERROR_LAYER34_TIME_OUT, RFID_ERROR_LAYER34_COLLISION, RFID_ERROR_LAYER34_CRC, RFID_ERROR_LAYER34_DATA_INTEGRITY, RFID_ERROR_LAYER34_DATA_LENGTH, RFID_ERROR_Layer34_RFU, RFID_ERROR_LAYER34_COLLISION_TOO_MANY, RFID_ERROR_LAYER34_PROTOCOL_B, RFID_ERROR_LAYER34_DATA_CONTENTS, RFID_ERROR_LAYER34_PROTOCOL, RFID_ERROR_LAYER34_GLOBAL_TIME_OUT, RFID_ERROR_LAYER34_MIFARE_AUTH, RFID_ERROR_LAYER34_SAM_ERROR, RFID_ERROR_LAYER34_SAM_COLLISION, RFID_ERROR_LAYER34_SAM_ACKNOWLEDGE, RFID_ERROR_LAYER6_SECURITY_MANAGER, RFID_ERROR_LAYER6_APP_SELECTION_FAILURE, RFID_ERROR_LAYER6_MUTUAL_AUTH_MAC_FAIL, RFID_ERROR_LAYER6_MUTUAL_AUTH_ENC_FAIL, RFID_ERROR_LAYER6_MUTUAL_AUTH_FAILURE, RFID_ERROR_LAYER6_MUTUAL_AUTH_FAILURE_DATA, RFID_ERROR_LAYER6_SM_DO_8E_MISSING, RFID_ERROR_LAYER6_SM_DO_87_MISSING, RFID_ERROR_LAYER6_SM_DO_99_MISSING, RFID_ERROR_LAYER6_SM_MAC_INCORRECT, RFID_ERROR_LAYER6_SM_DO_87_INCORRECT, RFID_ERROR_LAYER6_NON_TLV_RESPONSE_DATA, RFID_ERROR_LAYER6_WRONG_RND_ICC_LENGTH, RFID_ERROR_LAYER6_INT_AUTH_FAILURE, RFID_ERROR_LAYER6_MSE_SET_KAT_FAILURE, RFID_ERROR_LAYER6_MSE_SET_DST_FAILURE, RFID_ERROR_LAYER6_PSO_CERTIFICATE_FAILURE, RFID_ERROR_LAYER6_MSE_SET_AT_FAILURE, RFID_ERROR_LAYER6_GET_CHALLENGE_FAILURE, RFID_ERROR_LAYER6_EXT_AUTH_FAILURE, RFID_ERROR_LAYER6_GENERAL_AUTH_FAILURE, RFID_ERROR_FAILED, RFID_ERROR_NO_ERROR, RFID_ERROR_ALREADY_DONE] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """RFIDErrorCodes - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RFIDErrorCodes): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RFIDErrorCodes): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_origin.py b/regula/documentreader/webclient/gen/models/rfid_origin.py index 0313e5b..bf5e5d8 100755 --- a/regula/documentreader/webclient/gen/models/rfid_origin.py +++ b/regula/documentreader/webclient/gen/models/rfid_origin.py @@ -58,12 +58,9 @@ def __init__(self, dg=None, dg_tag=None, tag_entry=None, entry_view=None, local_ self.discriminator = None self.dg = dg - if dg_tag is not None: - self.dg_tag = dg_tag - if tag_entry is not None: - self.tag_entry = tag_entry - if entry_view is not None: - self.entry_view = entry_view + self.dg_tag = dg_tag + self.tag_entry = tag_entry + self.entry_view = entry_view @property def dg(self): @@ -110,6 +107,8 @@ def dg_tag(self, dg_tag): :param dg_tag: The dg_tag of this RfidOrigin. # noqa: E501 :type dg_tag: int """ + if self.local_vars_configuration.client_side_validation and dg_tag is None: # noqa: E501 + raise ValueError("Invalid value for `dg_tag`, must not be `None`") # noqa: E501 self._dg_tag = dg_tag @@ -133,6 +132,8 @@ def tag_entry(self, tag_entry): :param tag_entry: The tag_entry of this RfidOrigin. # noqa: E501 :type tag_entry: int """ + if self.local_vars_configuration.client_side_validation and tag_entry is None: # noqa: E501 + raise ValueError("Invalid value for `tag_entry`, must not be `None`") # noqa: E501 self._tag_entry = tag_entry @@ -156,6 +157,8 @@ def entry_view(self, entry_view): :param entry_view: The entry_view of this RfidOrigin. # noqa: E501 :type entry_view: int """ + if self.local_vars_configuration.client_side_validation and entry_view is None: # noqa: E501 + raise ValueError("Invalid value for `entry_view`, must not be `None`") # noqa: E501 self._entry_view = entry_view diff --git a/regula/documentreader/webclient/gen/models/rfid_password_type.py b/regula/documentreader/webclient/gen/models/rfid_password_type.py new file mode 100644 index 0000000..77a0e0a --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_password_type.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Enumeration contains a set of constants specifying the rate of data exchange between the reader and the RFID-chip +""" +class RfidPasswordType(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + UNKNOWN = int("0") + + MRZ = int("1") + + CAN = int("2") + + PIN = int("3") + + PUK = int("4") + + PIN_E_SIGN = int("5") + + SAI = int("6") + + allowable_values = [UNKNOWN, MRZ, CAN, PIN, PUK, PIN_E_SIGN, SAI] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """RfidPasswordType - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidPasswordType): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidPasswordType): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_pki_extension.py b/regula/documentreader/webclient/gen/models/rfid_pki_extension.py new file mode 100644 index 0000000..c1a7180 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_pki_extension.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Extension identifier (OID, ASCII string); Contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) +""" +class RfidPkiExtension(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'type': 'str', + 'data': 'str' + } + + attribute_map = { + 'type': 'Type', + 'data': 'Data' + } + + def __init__(self, type=None, data=None, local_vars_configuration=None): # noqa: E501 + """RfidPkiExtension - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._type = None + self._data = None + self.discriminator = None + + self.type = type + self.data = data + + @property + def type(self): + """Gets the type of this RfidPkiExtension. # noqa: E501 + + Extension identifier (OID, ASCII string); Contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) # noqa: E501 + + :return: The type of this RfidPkiExtension. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this RfidPkiExtension. + + Extension identifier (OID, ASCII string); Contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) # noqa: E501 + + :param type: The type of this RfidPkiExtension. # noqa: E501 + :type type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + @property + def data(self): + """Gets the data of this RfidPkiExtension. # noqa: E501 + + Extension binary data. Base64 encoded. # noqa: E501 + + :return: The data of this RfidPkiExtension. # noqa: E501 + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this RfidPkiExtension. + + Extension binary data. Base64 encoded. # noqa: E501 + + :param data: The data of this RfidPkiExtension. # noqa: E501 + :type data: str + """ + if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501 + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidPkiExtension): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidPkiExtension): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_security_object.py b/regula/documentreader/webclient/gen/models/rfid_security_object.py new file mode 100644 index 0000000..f911d8a --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_security_object.py @@ -0,0 +1,238 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure is used to describe the contents of a single document security object (SO) and the results of its check within the context of the communication session with electronic document +""" +class RfidSecurityObject(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'version': 'float', + 'object_type': 'str', + 'file_reference': 'float', + 'notifications': 'list[ParsingErrorCodes]', + 'signer_infos': 'list[RfidSignerInfoEx]' + } + + attribute_map = { + 'version': 'Version', + 'object_type': 'ObjectType', + 'file_reference': 'FileReference', + 'notifications': 'Notifications', + 'signer_infos': 'SignerInfos' + } + + def __init__(self, version=None, object_type=None, file_reference=None, notifications=None, signer_infos=None, local_vars_configuration=None): # noqa: E501 + """RfidSecurityObject - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._version = None + self._object_type = None + self._file_reference = None + self._notifications = None + self._signer_infos = None + self.discriminator = None + + self.version = version + self.object_type = object_type + self.file_reference = file_reference + self.notifications = notifications + self.signer_infos = signer_infos + + @property + def version(self): + """Gets the version of this RfidSecurityObject. # noqa: E501 + + Security object version # noqa: E501 + + :return: The version of this RfidSecurityObject. # noqa: E501 + :rtype: float + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this RfidSecurityObject. + + Security object version # noqa: E501 + + :param version: The version of this RfidSecurityObject. # noqa: E501 + :type version: float + """ + if self.local_vars_configuration.client_side_validation and version is None: # noqa: E501 + raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 + + self._version = version + + @property + def object_type(self): + """Gets the object_type of this RfidSecurityObject. # noqa: E501 + + Identifier of the security object # noqa: E501 + + :return: The object_type of this RfidSecurityObject. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this RfidSecurityObject. + + Identifier of the security object # noqa: E501 + + :param object_type: The object_type of this RfidSecurityObject. # noqa: E501 + :type object_type: str + """ + if self.local_vars_configuration.client_side_validation and object_type is None: # noqa: E501 + raise ValueError("Invalid value for `object_type`, must not be `None`") # noqa: E501 + + self._object_type = object_type + + @property + def file_reference(self): + """Gets the file_reference of this RfidSecurityObject. # noqa: E501 + + Reference to the source file of the security object data # noqa: E501 + + :return: The file_reference of this RfidSecurityObject. # noqa: E501 + :rtype: float + """ + return self._file_reference + + @file_reference.setter + def file_reference(self, file_reference): + """Sets the file_reference of this RfidSecurityObject. + + Reference to the source file of the security object data # noqa: E501 + + :param file_reference: The file_reference of this RfidSecurityObject. # noqa: E501 + :type file_reference: float + """ + if self.local_vars_configuration.client_side_validation and file_reference is None: # noqa: E501 + raise ValueError("Invalid value for `file_reference`, must not be `None`") # noqa: E501 + + self._file_reference = file_reference + + @property + def notifications(self): + """Gets the notifications of this RfidSecurityObject. # noqa: E501 + + List of remarks arisen during the analysis of SO data structure. # noqa: E501 + + :return: The notifications of this RfidSecurityObject. # noqa: E501 + :rtype: list[ParsingErrorCodes] + """ + return self._notifications + + @notifications.setter + def notifications(self, notifications): + """Sets the notifications of this RfidSecurityObject. + + List of remarks arisen during the analysis of SO data structure. # noqa: E501 + + :param notifications: The notifications of this RfidSecurityObject. # noqa: E501 + :type notifications: list[ParsingErrorCodes] + """ + if self.local_vars_configuration.client_side_validation and notifications is None: # noqa: E501 + raise ValueError("Invalid value for `notifications`, must not be `None`") # noqa: E501 + + self._notifications = notifications + + @property + def signer_infos(self): + """Gets the signer_infos of this RfidSecurityObject. # noqa: E501 + + List of containers to store information about digital signature objects contained in the SO # noqa: E501 + + :return: The signer_infos of this RfidSecurityObject. # noqa: E501 + :rtype: list[RfidSignerInfoEx] + """ + return self._signer_infos + + @signer_infos.setter + def signer_infos(self, signer_infos): + """Sets the signer_infos of this RfidSecurityObject. + + List of containers to store information about digital signature objects contained in the SO # noqa: E501 + + :param signer_infos: The signer_infos of this RfidSecurityObject. # noqa: E501 + :type signer_infos: list[RfidSignerInfoEx] + """ + if self.local_vars_configuration.client_side_validation and signer_infos is None: # noqa: E501 + raise ValueError("Invalid value for `signer_infos`, must not be `None`") # noqa: E501 + + self._signer_infos = signer_infos + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidSecurityObject): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidSecurityObject): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_session_data.py b/regula/documentreader/webclient/gen/models/rfid_session_data.py new file mode 100644 index 0000000..14e9077 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_session_data.py @@ -0,0 +1,539 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure is used to describe the results of work with the SDK within the context of the current communication session with electronic document +""" +class RfidSessionData(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'virtual_mode': 'object', + 'sdk_version': 'object', + 'driver_version': 'object', + 'firmware_version': 'object', + 'applications': 'list[RfidApplication]', + 'access_controls': 'list[RfidAccessControlInfo]', + 'card_properties': 'RfidCardPropertiesExt', + 'ext_le_support': 'RFIDErrorCodes', + 'process_time': 'float', + 'root_files': 'list[object]', + 'total_bytes_sent': 'float', + 'total_bytes_received': 'float', + 'session_key': 'RfidAccessKey', + 'session_terminal': 'RfidTerminal', + 'session_procedure': 'RfidAuthenticationProcedureType', + 'security_objects': 'list[RfidSecurityObject]' + } + + attribute_map = { + 'virtual_mode': 'VirtualMode', + 'sdk_version': 'SDKVersion', + 'driver_version': 'DriverVersion', + 'firmware_version': 'FirmwareVersion', + 'applications': 'Applications', + 'access_controls': 'AccessControls', + 'card_properties': 'CardProperties', + 'ext_le_support': 'ExtLeSupport', + 'process_time': 'ProcessTime', + 'root_files': 'RootFiles', + 'total_bytes_sent': 'TotalBytesSent', + 'total_bytes_received': 'TotalBytesReceived', + 'session_key': 'Session_key', + 'session_terminal': 'Session_terminal', + 'session_procedure': 'Session_procedure', + 'security_objects': 'SecurityObjects' + } + + def __init__(self, virtual_mode=None, sdk_version=None, driver_version=None, firmware_version=None, applications=None, access_controls=None, card_properties=None, ext_le_support=None, process_time=None, root_files=None, total_bytes_sent=None, total_bytes_received=None, session_key=None, session_terminal=None, session_procedure=None, security_objects=None, local_vars_configuration=None): # noqa: E501 + """RfidSessionData - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._virtual_mode = None + self._sdk_version = None + self._driver_version = None + self._firmware_version = None + self._applications = None + self._access_controls = None + self._card_properties = None + self._ext_le_support = None + self._process_time = None + self._root_files = None + self._total_bytes_sent = None + self._total_bytes_received = None + self._session_key = None + self._session_terminal = None + self._session_procedure = None + self._security_objects = None + self.discriminator = None + + self.virtual_mode = virtual_mode + self.sdk_version = sdk_version + self.driver_version = driver_version + self.firmware_version = firmware_version + self.applications = applications + self.access_controls = access_controls + self.card_properties = card_properties + self.ext_le_support = ext_le_support + self.process_time = process_time + self.root_files = root_files + self.total_bytes_sent = total_bytes_sent + self.total_bytes_received = total_bytes_received + self.session_key = session_key + self.session_terminal = session_terminal + self.session_procedure = session_procedure + self.security_objects = security_objects + + @property + def virtual_mode(self): + """Gets the virtual_mode of this RfidSessionData. # noqa: E501 + + Sign of virtual session when working with loaded data from a previous communication session with the electronic document # noqa: E501 + + :return: The virtual_mode of this RfidSessionData. # noqa: E501 + :rtype: object + """ + return self._virtual_mode + + @virtual_mode.setter + def virtual_mode(self, virtual_mode): + """Sets the virtual_mode of this RfidSessionData. + + Sign of virtual session when working with loaded data from a previous communication session with the electronic document # noqa: E501 + + :param virtual_mode: The virtual_mode of this RfidSessionData. # noqa: E501 + :type virtual_mode: object + """ + + self._virtual_mode = virtual_mode + + @property + def sdk_version(self): + """Gets the sdk_version of this RfidSessionData. # noqa: E501 + + Text SDKVersion value in format A.B (e.g. 3.1) # noqa: E501 + + :return: The sdk_version of this RfidSessionData. # noqa: E501 + :rtype: object + """ + return self._sdk_version + + @sdk_version.setter + def sdk_version(self, sdk_version): + """Sets the sdk_version of this RfidSessionData. + + Text SDKVersion value in format A.B (e.g. 3.1) # noqa: E501 + + :param sdk_version: The sdk_version of this RfidSessionData. # noqa: E501 + :type sdk_version: object + """ + + self._sdk_version = sdk_version + + @property + def driver_version(self): + """Gets the driver_version of this RfidSessionData. # noqa: E501 + + Text DriverVersion value in format A.B.C.D (e.g. 6.2.5.4) # noqa: E501 + + :return: The driver_version of this RfidSessionData. # noqa: E501 + :rtype: object + """ + return self._driver_version + + @driver_version.setter + def driver_version(self, driver_version): + """Sets the driver_version of this RfidSessionData. + + Text DriverVersion value in format A.B.C.D (e.g. 6.2.5.4) # noqa: E501 + + :param driver_version: The driver_version of this RfidSessionData. # noqa: E501 + :type driver_version: object + """ + + self._driver_version = driver_version + + @property + def firmware_version(self): + """Gets the firmware_version of this RfidSessionData. # noqa: E501 + + Text FirmwareVersion value in format A.B (e.g. 5.19) # noqa: E501 + + :return: The firmware_version of this RfidSessionData. # noqa: E501 + :rtype: object + """ + return self._firmware_version + + @firmware_version.setter + def firmware_version(self, firmware_version): + """Sets the firmware_version of this RfidSessionData. + + Text FirmwareVersion value in format A.B (e.g. 5.19) # noqa: E501 + + :param firmware_version: The firmware_version of this RfidSessionData. # noqa: E501 + :type firmware_version: object + """ + + self._firmware_version = firmware_version + + @property + def applications(self): + """Gets the applications of this RfidSessionData. # noqa: E501 + + List of containers to store information about the involved applications of electronic document # noqa: E501 + + :return: The applications of this RfidSessionData. # noqa: E501 + :rtype: list[RfidApplication] + """ + return self._applications + + @applications.setter + def applications(self, applications): + """Sets the applications of this RfidSessionData. + + List of containers to store information about the involved applications of electronic document # noqa: E501 + + :param applications: The applications of this RfidSessionData. # noqa: E501 + :type applications: list[RfidApplication] + """ + if self.local_vars_configuration.client_side_validation and applications is None: # noqa: E501 + raise ValueError("Invalid value for `applications`, must not be `None`") # noqa: E501 + + self._applications = applications + + @property + def access_controls(self): + """Gets the access_controls of this RfidSessionData. # noqa: E501 + + List of containers to store information about the supported procedures of authentication and secure data access within the context of the session # noqa: E501 + + :return: The access_controls of this RfidSessionData. # noqa: E501 + :rtype: list[RfidAccessControlInfo] + """ + return self._access_controls + + @access_controls.setter + def access_controls(self, access_controls): + """Sets the access_controls of this RfidSessionData. + + List of containers to store information about the supported procedures of authentication and secure data access within the context of the session # noqa: E501 + + :param access_controls: The access_controls of this RfidSessionData. # noqa: E501 + :type access_controls: list[RfidAccessControlInfo] + """ + if self.local_vars_configuration.client_side_validation and access_controls is None: # noqa: E501 + raise ValueError("Invalid value for `access_controls`, must not be `None`") # noqa: E501 + + self._access_controls = access_controls + + @property + def card_properties(self): + """Gets the card_properties of this RfidSessionData. # noqa: E501 + + + :return: The card_properties of this RfidSessionData. # noqa: E501 + :rtype: RfidCardPropertiesExt + """ + return self._card_properties + + @card_properties.setter + def card_properties(self, card_properties): + """Sets the card_properties of this RfidSessionData. + + + :param card_properties: The card_properties of this RfidSessionData. # noqa: E501 + :type card_properties: RfidCardPropertiesExt + """ + if self.local_vars_configuration.client_side_validation and card_properties is None: # noqa: E501 + raise ValueError("Invalid value for `card_properties`, must not be `None`") # noqa: E501 + + self._card_properties = card_properties + + @property + def ext_le_support(self): + """Gets the ext_le_support of this RfidSessionData. # noqa: E501 + + + :return: The ext_le_support of this RfidSessionData. # noqa: E501 + :rtype: RFIDErrorCodes + """ + return self._ext_le_support + + @ext_le_support.setter + def ext_le_support(self, ext_le_support): + """Sets the ext_le_support of this RfidSessionData. + + + :param ext_le_support: The ext_le_support of this RfidSessionData. # noqa: E501 + :type ext_le_support: RFIDErrorCodes + """ + if self.local_vars_configuration.client_side_validation and ext_le_support is None: # noqa: E501 + raise ValueError("Invalid value for `ext_le_support`, must not be `None`") # noqa: E501 + + self._ext_le_support = ext_le_support + + @property + def process_time(self): + """Gets the process_time of this RfidSessionData. # noqa: E501 + + Time of processing, milliseconds # noqa: E501 + + :return: The process_time of this RfidSessionData. # noqa: E501 + :rtype: float + """ + return self._process_time + + @process_time.setter + def process_time(self, process_time): + """Sets the process_time of this RfidSessionData. + + Time of processing, milliseconds # noqa: E501 + + :param process_time: The process_time of this RfidSessionData. # noqa: E501 + :type process_time: float + """ + if self.local_vars_configuration.client_side_validation and process_time is None: # noqa: E501 + raise ValueError("Invalid value for `process_time`, must not be `None`") # noqa: E501 + + self._process_time = process_time + + @property + def root_files(self): + """Gets the root_files of this RfidSessionData. # noqa: E501 + + List of containers to store information about the read files of the root Master File # noqa: E501 + + :return: The root_files of this RfidSessionData. # noqa: E501 + :rtype: list[object] + """ + return self._root_files + + @root_files.setter + def root_files(self, root_files): + """Sets the root_files of this RfidSessionData. + + List of containers to store information about the read files of the root Master File # noqa: E501 + + :param root_files: The root_files of this RfidSessionData. # noqa: E501 + :type root_files: list[object] + """ + if self.local_vars_configuration.client_side_validation and root_files is None: # noqa: E501 + raise ValueError("Invalid value for `root_files`, must not be `None`") # noqa: E501 + + self._root_files = root_files + + @property + def total_bytes_sent(self): + """Gets the total_bytes_sent of this RfidSessionData. # noqa: E501 + + Total number of bytes transmitted to the RFID-chip during the whole session # noqa: E501 + + :return: The total_bytes_sent of this RfidSessionData. # noqa: E501 + :rtype: float + """ + return self._total_bytes_sent + + @total_bytes_sent.setter + def total_bytes_sent(self, total_bytes_sent): + """Sets the total_bytes_sent of this RfidSessionData. + + Total number of bytes transmitted to the RFID-chip during the whole session # noqa: E501 + + :param total_bytes_sent: The total_bytes_sent of this RfidSessionData. # noqa: E501 + :type total_bytes_sent: float + """ + if self.local_vars_configuration.client_side_validation and total_bytes_sent is None: # noqa: E501 + raise ValueError("Invalid value for `total_bytes_sent`, must not be `None`") # noqa: E501 + + self._total_bytes_sent = total_bytes_sent + + @property + def total_bytes_received(self): + """Gets the total_bytes_received of this RfidSessionData. # noqa: E501 + + Total number of bytes received from the RFID-chip during the whole session # noqa: E501 + + :return: The total_bytes_received of this RfidSessionData. # noqa: E501 + :rtype: float + """ + return self._total_bytes_received + + @total_bytes_received.setter + def total_bytes_received(self, total_bytes_received): + """Sets the total_bytes_received of this RfidSessionData. + + Total number of bytes received from the RFID-chip during the whole session # noqa: E501 + + :param total_bytes_received: The total_bytes_received of this RfidSessionData. # noqa: E501 + :type total_bytes_received: float + """ + if self.local_vars_configuration.client_side_validation and total_bytes_received is None: # noqa: E501 + raise ValueError("Invalid value for `total_bytes_received`, must not be `None`") # noqa: E501 + + self._total_bytes_received = total_bytes_received + + @property + def session_key(self): + """Gets the session_key of this RfidSessionData. # noqa: E501 + + + :return: The session_key of this RfidSessionData. # noqa: E501 + :rtype: RfidAccessKey + """ + return self._session_key + + @session_key.setter + def session_key(self, session_key): + """Sets the session_key of this RfidSessionData. + + + :param session_key: The session_key of this RfidSessionData. # noqa: E501 + :type session_key: RfidAccessKey + """ + if self.local_vars_configuration.client_side_validation and session_key is None: # noqa: E501 + raise ValueError("Invalid value for `session_key`, must not be `None`") # noqa: E501 + + self._session_key = session_key + + @property + def session_terminal(self): + """Gets the session_terminal of this RfidSessionData. # noqa: E501 + + + :return: The session_terminal of this RfidSessionData. # noqa: E501 + :rtype: RfidTerminal + """ + return self._session_terminal + + @session_terminal.setter + def session_terminal(self, session_terminal): + """Sets the session_terminal of this RfidSessionData. + + + :param session_terminal: The session_terminal of this RfidSessionData. # noqa: E501 + :type session_terminal: RfidTerminal + """ + if self.local_vars_configuration.client_side_validation and session_terminal is None: # noqa: E501 + raise ValueError("Invalid value for `session_terminal`, must not be `None`") # noqa: E501 + + self._session_terminal = session_terminal + + @property + def session_procedure(self): + """Gets the session_procedure of this RfidSessionData. # noqa: E501 + + + :return: The session_procedure of this RfidSessionData. # noqa: E501 + :rtype: RfidAuthenticationProcedureType + """ + return self._session_procedure + + @session_procedure.setter + def session_procedure(self, session_procedure): + """Sets the session_procedure of this RfidSessionData. + + + :param session_procedure: The session_procedure of this RfidSessionData. # noqa: E501 + :type session_procedure: RfidAuthenticationProcedureType + """ + if self.local_vars_configuration.client_side_validation and session_procedure is None: # noqa: E501 + raise ValueError("Invalid value for `session_procedure`, must not be `None`") # noqa: E501 + + self._session_procedure = session_procedure + + @property + def security_objects(self): + """Gets the security_objects of this RfidSessionData. # noqa: E501 + + List of containers to store information about the detected document security objects # noqa: E501 + + :return: The security_objects of this RfidSessionData. # noqa: E501 + :rtype: list[RfidSecurityObject] + """ + return self._security_objects + + @security_objects.setter + def security_objects(self, security_objects): + """Sets the security_objects of this RfidSessionData. + + List of containers to store information about the detected document security objects # noqa: E501 + + :param security_objects: The security_objects of this RfidSessionData. # noqa: E501 + :type security_objects: list[RfidSecurityObject] + """ + if self.local_vars_configuration.client_side_validation and security_objects is None: # noqa: E501 + raise ValueError("Invalid value for `security_objects`, must not be `None`") # noqa: E501 + + self._security_objects = security_objects + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidSessionData): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidSessionData): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_signer_info_ex.py b/regula/documentreader/webclient/gen/models/rfid_signer_info_ex.py new file mode 100644 index 0000000..763a683 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_signer_info_ex.py @@ -0,0 +1,429 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure is used to describe the contents of a single copy of digital signature of the document security object and the results of its check within the context of the communication session with electronic document +""" +class RfidSignerInfoEx(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'version': 'float', + 'issuer': 'RfidDistinguishedName', + 'serial_number': 'TrfFtBytes', + 'subject_key_identifier': 'TrfFtBytes', + 'digest_algorithm': 'str', + 'signed_attributes': 'list[RfidAttributeData]', + 'signature_algorithm': 'str', + 'signature': 'TrfFtBytes', + 'pa_status': 'RFIDErrorCodes', + 'certificate_chain': 'list[RfidCertificateEx]', + 'data_to_hash': 'str', + 'notifications': 'ParsingErrorCodes' + } + + attribute_map = { + 'version': 'Version', + 'issuer': 'Issuer', + 'serial_number': 'SerialNumber', + 'subject_key_identifier': 'SubjectKeyIdentifier', + 'digest_algorithm': 'DigestAlgorithm', + 'signed_attributes': 'SignedAttributes', + 'signature_algorithm': 'SignatureAlgorithm', + 'signature': 'Signature', + 'pa_status': 'PA_Status', + 'certificate_chain': 'CertificateChain', + 'data_to_hash': 'DataToHash', + 'notifications': 'Notifications' + } + + def __init__(self, version=None, issuer=None, serial_number=None, subject_key_identifier=None, digest_algorithm=None, signed_attributes=None, signature_algorithm=None, signature=None, pa_status=None, certificate_chain=None, data_to_hash=None, notifications=None, local_vars_configuration=None): # noqa: E501 + """RfidSignerInfoEx - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._version = None + self._issuer = None + self._serial_number = None + self._subject_key_identifier = None + self._digest_algorithm = None + self._signed_attributes = None + self._signature_algorithm = None + self._signature = None + self._pa_status = None + self._certificate_chain = None + self._data_to_hash = None + self._notifications = None + self.discriminator = None + + self.version = version + self.issuer = issuer + self.serial_number = serial_number + self.subject_key_identifier = subject_key_identifier + self.digest_algorithm = digest_algorithm + self.signed_attributes = signed_attributes + self.signature_algorithm = signature_algorithm + self.signature = signature + self.pa_status = pa_status + self.certificate_chain = certificate_chain + self.data_to_hash = data_to_hash + self.notifications = notifications + + @property + def version(self): + """Gets the version of this RfidSignerInfoEx. # noqa: E501 + + Version of SignerInfo ASN.1 structure # noqa: E501 + + :return: The version of this RfidSignerInfoEx. # noqa: E501 + :rtype: float + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this RfidSignerInfoEx. + + Version of SignerInfo ASN.1 structure # noqa: E501 + + :param version: The version of this RfidSignerInfoEx. # noqa: E501 + :type version: float + """ + if self.local_vars_configuration.client_side_validation and version is None: # noqa: E501 + raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 + + self._version = version + + @property + def issuer(self): + """Gets the issuer of this RfidSignerInfoEx. # noqa: E501 + + + :return: The issuer of this RfidSignerInfoEx. # noqa: E501 + :rtype: RfidDistinguishedName + """ + return self._issuer + + @issuer.setter + def issuer(self, issuer): + """Sets the issuer of this RfidSignerInfoEx. + + + :param issuer: The issuer of this RfidSignerInfoEx. # noqa: E501 + :type issuer: RfidDistinguishedName + """ + if self.local_vars_configuration.client_side_validation and issuer is None: # noqa: E501 + raise ValueError("Invalid value for `issuer`, must not be `None`") # noqa: E501 + + self._issuer = issuer + + @property + def serial_number(self): + """Gets the serial_number of this RfidSignerInfoEx. # noqa: E501 + + + :return: The serial_number of this RfidSignerInfoEx. # noqa: E501 + :rtype: TrfFtBytes + """ + return self._serial_number + + @serial_number.setter + def serial_number(self, serial_number): + """Sets the serial_number of this RfidSignerInfoEx. + + + :param serial_number: The serial_number of this RfidSignerInfoEx. # noqa: E501 + :type serial_number: TrfFtBytes + """ + if self.local_vars_configuration.client_side_validation and serial_number is None: # noqa: E501 + raise ValueError("Invalid value for `serial_number`, must not be `None`") # noqa: E501 + + self._serial_number = serial_number + + @property + def subject_key_identifier(self): + """Gets the subject_key_identifier of this RfidSignerInfoEx. # noqa: E501 + + + :return: The subject_key_identifier of this RfidSignerInfoEx. # noqa: E501 + :rtype: TrfFtBytes + """ + return self._subject_key_identifier + + @subject_key_identifier.setter + def subject_key_identifier(self, subject_key_identifier): + """Sets the subject_key_identifier of this RfidSignerInfoEx. + + + :param subject_key_identifier: The subject_key_identifier of this RfidSignerInfoEx. # noqa: E501 + :type subject_key_identifier: TrfFtBytes + """ + if self.local_vars_configuration.client_side_validation and subject_key_identifier is None: # noqa: E501 + raise ValueError("Invalid value for `subject_key_identifier`, must not be `None`") # noqa: E501 + + self._subject_key_identifier = subject_key_identifier + + @property + def digest_algorithm(self): + """Gets the digest_algorithm of this RfidSignerInfoEx. # noqa: E501 + + Hash algorithm identifier (OID) for digital signature generation # noqa: E501 + + :return: The digest_algorithm of this RfidSignerInfoEx. # noqa: E501 + :rtype: str + """ + return self._digest_algorithm + + @digest_algorithm.setter + def digest_algorithm(self, digest_algorithm): + """Sets the digest_algorithm of this RfidSignerInfoEx. + + Hash algorithm identifier (OID) for digital signature generation # noqa: E501 + + :param digest_algorithm: The digest_algorithm of this RfidSignerInfoEx. # noqa: E501 + :type digest_algorithm: str + """ + if self.local_vars_configuration.client_side_validation and digest_algorithm is None: # noqa: E501 + raise ValueError("Invalid value for `digest_algorithm`, must not be `None`") # noqa: E501 + + self._digest_algorithm = digest_algorithm + + @property + def signed_attributes(self): + """Gets the signed_attributes of this RfidSignerInfoEx. # noqa: E501 + + List of the signed attributes # noqa: E501 + + :return: The signed_attributes of this RfidSignerInfoEx. # noqa: E501 + :rtype: list[RfidAttributeData] + """ + return self._signed_attributes + + @signed_attributes.setter + def signed_attributes(self, signed_attributes): + """Sets the signed_attributes of this RfidSignerInfoEx. + + List of the signed attributes # noqa: E501 + + :param signed_attributes: The signed_attributes of this RfidSignerInfoEx. # noqa: E501 + :type signed_attributes: list[RfidAttributeData] + """ + if self.local_vars_configuration.client_side_validation and signed_attributes is None: # noqa: E501 + raise ValueError("Invalid value for `signed_attributes`, must not be `None`") # noqa: E501 + + self._signed_attributes = signed_attributes + + @property + def signature_algorithm(self): + """Gets the signature_algorithm of this RfidSignerInfoEx. # noqa: E501 + + Digital signature algorithm identifier (OID) # noqa: E501 + + :return: The signature_algorithm of this RfidSignerInfoEx. # noqa: E501 + :rtype: str + """ + return self._signature_algorithm + + @signature_algorithm.setter + def signature_algorithm(self, signature_algorithm): + """Sets the signature_algorithm of this RfidSignerInfoEx. + + Digital signature algorithm identifier (OID) # noqa: E501 + + :param signature_algorithm: The signature_algorithm of this RfidSignerInfoEx. # noqa: E501 + :type signature_algorithm: str + """ + if self.local_vars_configuration.client_side_validation and signature_algorithm is None: # noqa: E501 + raise ValueError("Invalid value for `signature_algorithm`, must not be `None`") # noqa: E501 + + self._signature_algorithm = signature_algorithm + + @property + def signature(self): + """Gets the signature of this RfidSignerInfoEx. # noqa: E501 + + + :return: The signature of this RfidSignerInfoEx. # noqa: E501 + :rtype: TrfFtBytes + """ + return self._signature + + @signature.setter + def signature(self, signature): + """Sets the signature of this RfidSignerInfoEx. + + + :param signature: The signature of this RfidSignerInfoEx. # noqa: E501 + :type signature: TrfFtBytes + """ + if self.local_vars_configuration.client_side_validation and signature is None: # noqa: E501 + raise ValueError("Invalid value for `signature`, must not be `None`") # noqa: E501 + + self._signature = signature + + @property + def pa_status(self): + """Gets the pa_status of this RfidSignerInfoEx. # noqa: E501 + + + :return: The pa_status of this RfidSignerInfoEx. # noqa: E501 + :rtype: RFIDErrorCodes + """ + return self._pa_status + + @pa_status.setter + def pa_status(self, pa_status): + """Sets the pa_status of this RfidSignerInfoEx. + + + :param pa_status: The pa_status of this RfidSignerInfoEx. # noqa: E501 + :type pa_status: RFIDErrorCodes + """ + if self.local_vars_configuration.client_side_validation and pa_status is None: # noqa: E501 + raise ValueError("Invalid value for `pa_status`, must not be `None`") # noqa: E501 + + self._pa_status = pa_status + + @property + def certificate_chain(self): + """Gets the certificate_chain of this RfidSignerInfoEx. # noqa: E501 + + Certificate chain, used for the digital signature verification. # noqa: E501 + + :return: The certificate_chain of this RfidSignerInfoEx. # noqa: E501 + :rtype: list[RfidCertificateEx] + """ + return self._certificate_chain + + @certificate_chain.setter + def certificate_chain(self, certificate_chain): + """Sets the certificate_chain of this RfidSignerInfoEx. + + Certificate chain, used for the digital signature verification. # noqa: E501 + + :param certificate_chain: The certificate_chain of this RfidSignerInfoEx. # noqa: E501 + :type certificate_chain: list[RfidCertificateEx] + """ + if self.local_vars_configuration.client_side_validation and certificate_chain is None: # noqa: E501 + raise ValueError("Invalid value for `certificate_chain`, must not be `None`") # noqa: E501 + + self._certificate_chain = certificate_chain + + @property + def data_to_hash(self): + """Gets the data_to_hash of this RfidSignerInfoEx. # noqa: E501 + + Binary data array used to calculate the hash value for digital signature verification. Base64 encoded. # noqa: E501 + + :return: The data_to_hash of this RfidSignerInfoEx. # noqa: E501 + :rtype: str + """ + return self._data_to_hash + + @data_to_hash.setter + def data_to_hash(self, data_to_hash): + """Sets the data_to_hash of this RfidSignerInfoEx. + + Binary data array used to calculate the hash value for digital signature verification. Base64 encoded. # noqa: E501 + + :param data_to_hash: The data_to_hash of this RfidSignerInfoEx. # noqa: E501 + :type data_to_hash: str + """ + if self.local_vars_configuration.client_side_validation and data_to_hash is None: # noqa: E501 + raise ValueError("Invalid value for `data_to_hash`, must not be `None`") # noqa: E501 + + self._data_to_hash = data_to_hash + + @property + def notifications(self): + """Gets the notifications of this RfidSignerInfoEx. # noqa: E501 + + + :return: The notifications of this RfidSignerInfoEx. # noqa: E501 + :rtype: ParsingErrorCodes + """ + return self._notifications + + @notifications.setter + def notifications(self, notifications): + """Sets the notifications of this RfidSignerInfoEx. + + + :param notifications: The notifications of this RfidSignerInfoEx. # noqa: E501 + :type notifications: ParsingErrorCodes + """ + if self.local_vars_configuration.client_side_validation and notifications is None: # noqa: E501 + raise ValueError("Invalid value for `notifications`, must not be `None`") # noqa: E501 + + self._notifications = notifications + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidSignerInfoEx): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidSignerInfoEx): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_terminal.py b/regula/documentreader/webclient/gen/models/rfid_terminal.py new file mode 100644 index 0000000..be692bc --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_terminal.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure is used to describe the terminal type within the context of the communication session with electronic document +""" +class RfidTerminal(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'term_type': 'RfidTerminalType', + 'auth_req': 'float', + 'auth_req2': 'float' + } + + attribute_map = { + 'term_type': 'TermType', + 'auth_req': 'AuthReq', + 'auth_req2': 'AuthReq2' + } + + def __init__(self, term_type=None, auth_req=None, auth_req2=None, local_vars_configuration=None): # noqa: E501 + """RfidTerminal - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._term_type = None + self._auth_req = None + self._auth_req2 = None + self.discriminator = None + + self.term_type = term_type + self.auth_req = auth_req + self.auth_req2 = auth_req2 + + @property + def term_type(self): + """Gets the term_type of this RfidTerminal. # noqa: E501 + + + :return: The term_type of this RfidTerminal. # noqa: E501 + :rtype: RfidTerminalType + """ + return self._term_type + + @term_type.setter + def term_type(self, term_type): + """Sets the term_type of this RfidTerminal. + + + :param term_type: The term_type of this RfidTerminal. # noqa: E501 + :type term_type: RfidTerminalType + """ + if self.local_vars_configuration.client_side_validation and term_type is None: # noqa: E501 + raise ValueError("Invalid value for `term_type`, must not be `None`") # noqa: E501 + + self._term_type = term_type + + @property + def auth_req(self): + """Gets the auth_req of this RfidTerminal. # noqa: E501 + + Declared (set) combination of flags of access rights to the functionality of the document (combination of eRfidTerminalAuthorizationRequirement values) # noqa: E501 + + :return: The auth_req of this RfidTerminal. # noqa: E501 + :rtype: float + """ + return self._auth_req + + @auth_req.setter + def auth_req(self, auth_req): + """Sets the auth_req of this RfidTerminal. + + Declared (set) combination of flags of access rights to the functionality of the document (combination of eRfidTerminalAuthorizationRequirement values) # noqa: E501 + + :param auth_req: The auth_req of this RfidTerminal. # noqa: E501 + :type auth_req: float + """ + if self.local_vars_configuration.client_side_validation and auth_req is None: # noqa: E501 + raise ValueError("Invalid value for `auth_req`, must not be `None`") # noqa: E501 + + self._auth_req = auth_req + + @property + def auth_req2(self): + """Gets the auth_req2 of this RfidTerminal. # noqa: E501 + + Declared (set) combination of flags of access rights to the functionality of the document (combination of RfidTerminalAuthorizationRequirement values) # noqa: E501 + + :return: The auth_req2 of this RfidTerminal. # noqa: E501 + :rtype: float + """ + return self._auth_req2 + + @auth_req2.setter + def auth_req2(self, auth_req2): + """Sets the auth_req2 of this RfidTerminal. + + Declared (set) combination of flags of access rights to the functionality of the document (combination of RfidTerminalAuthorizationRequirement values) # noqa: E501 + + :param auth_req2: The auth_req2 of this RfidTerminal. # noqa: E501 + :type auth_req2: float + """ + if self.local_vars_configuration.client_side_validation and auth_req2 is None: # noqa: E501 + raise ValueError("Invalid value for `auth_req2`, must not be `None`") # noqa: E501 + + self._auth_req2 = auth_req2 + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidTerminal): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidTerminal): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_terminal_type.py b/regula/documentreader/webclient/gen/models/rfid_terminal_type.py new file mode 100644 index 0000000..2cb4722 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_terminal_type.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Enumeration contains a set of constants that define the type of terminal within the context of the communication session with electronic document +""" +class RfidTerminalType(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + UNDEFINED = int("0") + + INSPECTION_SYSTEM = int("1") + + AUTHENTICATION_TERMINAL = int("2") + + SIGNATURE_TERMINAL = int("3") + + UNAUTHENTICATED_TERMINAL = int("4") + + allowable_values = [UNDEFINED, INSPECTION_SYSTEM, AUTHENTICATION_TERMINAL, SIGNATURE_TERMINAL, UNAUTHENTICATED_TERMINAL] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """RfidTerminalType - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidTerminalType): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidTerminalType): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_type.py b/regula/documentreader/webclient/gen/models/rfid_type.py new file mode 100644 index 0000000..d8cffba --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_type.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Enumeration contains a set of constants specifying the type of the RFID-chip by the physical parameters of connection between antennas of the chip and the reader +""" +class RfidType(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + UNKNOWN = int("0") + + A = int("1") + + B = int("2") + + allowable_values = [UNKNOWN, A, B] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """RfidType - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidType): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidType): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/rfid_validity.py b/regula/documentreader/webclient/gen/models/rfid_validity.py new file mode 100644 index 0000000..8532790 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/rfid_validity.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure contains information on a certificate validity. +""" +class RfidValidity(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'not_before': 'TrfFtString', + 'not_after': 'TrfFtString' + } + + attribute_map = { + 'not_before': 'NotBefore', + 'not_after': 'NotAfter' + } + + def __init__(self, not_before=None, not_after=None, local_vars_configuration=None): # noqa: E501 + """RfidValidity - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._not_before = None + self._not_after = None + self.discriminator = None + + self.not_before = not_before + self.not_after = not_after + + @property + def not_before(self): + """Gets the not_before of this RfidValidity. # noqa: E501 + + + :return: The not_before of this RfidValidity. # noqa: E501 + :rtype: TrfFtString + """ + return self._not_before + + @not_before.setter + def not_before(self, not_before): + """Sets the not_before of this RfidValidity. + + + :param not_before: The not_before of this RfidValidity. # noqa: E501 + :type not_before: TrfFtString + """ + if self.local_vars_configuration.client_side_validation and not_before is None: # noqa: E501 + raise ValueError("Invalid value for `not_before`, must not be `None`") # noqa: E501 + + self._not_before = not_before + + @property + def not_after(self): + """Gets the not_after of this RfidValidity. # noqa: E501 + + + :return: The not_after of this RfidValidity. # noqa: E501 + :rtype: TrfFtString + """ + return self._not_after + + @not_after.setter + def not_after(self, not_after): + """Sets the not_after of this RfidValidity. + + + :param not_after: The not_after of this RfidValidity. # noqa: E501 + :type not_after: TrfFtString + """ + if self.local_vars_configuration.client_side_validation and not_after is None: # noqa: E501 + raise ValueError("Invalid value for `not_after`, must not be `None`") # noqa: E501 + + self._not_after = not_after + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RfidValidity): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RfidValidity): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/security_feature_result.py b/regula/documentreader/webclient/gen/models/security_feature_result.py index 4f60065..c8c0acf 100644 --- a/regula/documentreader/webclient/gen/models/security_feature_result.py +++ b/regula/documentreader/webclient/gen/models/security_feature_result.py @@ -82,14 +82,10 @@ def __init__(self, type=0, element_result=None, element_diagnose=None, percent_v self.element_diagnose = element_diagnose if percent_value is not None: self.percent_value = percent_value - if element_type is not None: - self.element_type = element_type - if element_rect is not None: - self.element_rect = element_rect - if visibility is not None: - self.visibility = visibility - if critical_flag is not None: - self.critical_flag = critical_flag + self.element_type = element_type + self.element_rect = element_rect + self.visibility = visibility + self.critical_flag = critical_flag if area_list is not None: self.area_list = area_list if reserved2 is not None: @@ -201,6 +197,8 @@ def element_type(self, element_type): :param element_type: The element_type of this SecurityFeatureResult. # noqa: E501 :type element_type: SecurityFeatureType """ + if self.local_vars_configuration.client_side_validation and element_type is None: # noqa: E501 + raise ValueError("Invalid value for `element_type`, must not be `None`") # noqa: E501 self._element_type = element_type @@ -222,6 +220,8 @@ def element_rect(self, element_rect): :param element_rect: The element_rect of this SecurityFeatureResult. # noqa: E501 :type element_rect: RectangleCoordinates """ + if self.local_vars_configuration.client_side_validation and element_rect is None: # noqa: E501 + raise ValueError("Invalid value for `element_rect`, must not be `None`") # noqa: E501 self._element_rect = element_rect @@ -243,6 +243,8 @@ def visibility(self, visibility): :param visibility: The visibility of this SecurityFeatureResult. # noqa: E501 :type visibility: Visibility """ + if self.local_vars_configuration.client_side_validation and visibility is None: # noqa: E501 + raise ValueError("Invalid value for `visibility`, must not be `None`") # noqa: E501 self._visibility = visibility @@ -264,6 +266,8 @@ def critical_flag(self, critical_flag): :param critical_flag: The critical_flag of this SecurityFeatureResult. # noqa: E501 :type critical_flag: Critical """ + if self.local_vars_configuration.client_side_validation and critical_flag is None: # noqa: E501 + raise ValueError("Invalid value for `critical_flag`, must not be `None`") # noqa: E501 self._critical_flag = critical_flag diff --git a/regula/documentreader/webclient/gen/models/security_feature_result_all_of.py b/regula/documentreader/webclient/gen/models/security_feature_result_all_of.py index eb0e081..f4e193a 100644 --- a/regula/documentreader/webclient/gen/models/security_feature_result_all_of.py +++ b/regula/documentreader/webclient/gen/models/security_feature_result_all_of.py @@ -63,14 +63,10 @@ def __init__(self, element_type=None, element_rect=None, visibility=None, critic self._reserved2 = None self.discriminator = None - if element_type is not None: - self.element_type = element_type - if element_rect is not None: - self.element_rect = element_rect - if visibility is not None: - self.visibility = visibility - if critical_flag is not None: - self.critical_flag = critical_flag + self.element_type = element_type + self.element_rect = element_rect + self.visibility = visibility + self.critical_flag = critical_flag if area_list is not None: self.area_list = area_list if reserved2 is not None: @@ -94,6 +90,8 @@ def element_type(self, element_type): :param element_type: The element_type of this SecurityFeatureResultAllOf. # noqa: E501 :type element_type: SecurityFeatureType """ + if self.local_vars_configuration.client_side_validation and element_type is None: # noqa: E501 + raise ValueError("Invalid value for `element_type`, must not be `None`") # noqa: E501 self._element_type = element_type @@ -115,6 +113,8 @@ def element_rect(self, element_rect): :param element_rect: The element_rect of this SecurityFeatureResultAllOf. # noqa: E501 :type element_rect: RectangleCoordinates """ + if self.local_vars_configuration.client_side_validation and element_rect is None: # noqa: E501 + raise ValueError("Invalid value for `element_rect`, must not be `None`") # noqa: E501 self._element_rect = element_rect @@ -136,6 +136,8 @@ def visibility(self, visibility): :param visibility: The visibility of this SecurityFeatureResultAllOf. # noqa: E501 :type visibility: Visibility """ + if self.local_vars_configuration.client_side_validation and visibility is None: # noqa: E501 + raise ValueError("Invalid value for `visibility`, must not be `None`") # noqa: E501 self._visibility = visibility @@ -157,6 +159,8 @@ def critical_flag(self, critical_flag): :param critical_flag: The critical_flag of this SecurityFeatureResultAllOf. # noqa: E501 :type critical_flag: Critical """ + if self.local_vars_configuration.client_side_validation and critical_flag is None: # noqa: E501 + raise ValueError("Invalid value for `critical_flag`, must not be `None`") # noqa: E501 self._critical_flag = critical_flag diff --git a/regula/documentreader/webclient/gen/models/source.py b/regula/documentreader/webclient/gen/models/source.py index 2072ee9..1e55cb4 100755 --- a/regula/documentreader/webclient/gen/models/source.py +++ b/regula/documentreader/webclient/gen/models/source.py @@ -34,7 +34,9 @@ class Source(object): MAGNETIC = "MAGNETIC" - allowable_values = [MRZ, VISUAL, BARCODE, RFID, MAGNETIC] # noqa: E501 + EXTERNAL = "EXTERNAL" + + allowable_values = [MRZ, VISUAL, BARCODE, RFID, MAGNETIC, EXTERNAL] # noqa: E501 """ Attributes: diff --git a/regula/documentreader/webclient/gen/models/status.py b/regula/documentreader/webclient/gen/models/status.py index 454cbef..a46741e 100755 --- a/regula/documentreader/webclient/gen/models/status.py +++ b/regula/documentreader/webclient/gen/models/status.py @@ -68,12 +68,9 @@ def __init__(self, overall_status=None, optical=None, portrait=None, rfid=None, self.overall_status = overall_status self.optical = optical - if portrait is not None: - self.portrait = portrait - if rfid is not None: - self.rfid = rfid - if stop_list is not None: - self.stop_list = stop_list + self.portrait = portrait + self.rfid = rfid + self.stop_list = stop_list if details_rfid is not None: self.details_rfid = details_rfid self.details_optical = details_optical @@ -142,6 +139,8 @@ def portrait(self, portrait): :param portrait: The portrait of this Status. # noqa: E501 :type portrait: CheckResult """ + if self.local_vars_configuration.client_side_validation and portrait is None: # noqa: E501 + raise ValueError("Invalid value for `portrait`, must not be `None`") # noqa: E501 self._portrait = portrait @@ -163,6 +162,8 @@ def rfid(self, rfid): :param rfid: The rfid of this Status. # noqa: E501 :type rfid: CheckResult """ + if self.local_vars_configuration.client_side_validation and rfid is None: # noqa: E501 + raise ValueError("Invalid value for `rfid`, must not be `None`") # noqa: E501 self._rfid = rfid @@ -184,6 +185,8 @@ def stop_list(self, stop_list): :param stop_list: The stop_list of this Status. # noqa: E501 :type stop_list: CheckResult """ + if self.local_vars_configuration.client_side_validation and stop_list is None: # noqa: E501 + raise ValueError("Invalid value for `stop_list`, must not be `None`") # noqa: E501 self._stop_list = stop_list diff --git a/regula/documentreader/webclient/gen/models/string_recognition_result.py b/regula/documentreader/webclient/gen/models/string_recognition_result.py index ee23a97..29b9b7a 100755 --- a/regula/documentreader/webclient/gen/models/string_recognition_result.py +++ b/regula/documentreader/webclient/gen/models/string_recognition_result.py @@ -32,23 +32,87 @@ class StringRecognitionResult(object): and the value is json key in definition. """ openapi_types = { - 'string_result': 'list[SymbolRecognitionResult]' + 'symbols_count': 'float', + 'reserved': 'object', + 'string_result': 'list[SymbolRecognitionResult]', + 'buf_length': 'float', + 'buf_text': 'str' } attribute_map = { - 'string_result': 'StringResult' + 'symbols_count': 'SymbolsCount', + 'reserved': 'Reserved', + 'string_result': 'StringResult', + 'buf_length': 'Buf_Length', + 'buf_text': 'Buf_Text' } - def __init__(self, string_result=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, symbols_count=None, reserved=None, string_result=None, buf_length=None, buf_text=None, local_vars_configuration=None): # noqa: E501 """StringRecognitionResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._symbols_count = None + self._reserved = None self._string_result = None + self._buf_length = None + self._buf_text = None self.discriminator = None + self.symbols_count = symbols_count + self.reserved = reserved self.string_result = string_result + if buf_length is not None: + self.buf_length = buf_length + if buf_text is not None: + self.buf_text = buf_text + + @property + def symbols_count(self): + """Gets the symbols_count of this StringRecognitionResult. # noqa: E501 + + Number of StringResult array elements # noqa: E501 + + :return: The symbols_count of this StringRecognitionResult. # noqa: E501 + :rtype: float + """ + return self._symbols_count + + @symbols_count.setter + def symbols_count(self, symbols_count): + """Sets the symbols_count of this StringRecognitionResult. + + Number of StringResult array elements # noqa: E501 + + :param symbols_count: The symbols_count of this StringRecognitionResult. # noqa: E501 + :type symbols_count: float + """ + if self.local_vars_configuration.client_side_validation and symbols_count is None: # noqa: E501 + raise ValueError("Invalid value for `symbols_count`, must not be `None`") # noqa: E501 + + self._symbols_count = symbols_count + + @property + def reserved(self): + """Gets the reserved of this StringRecognitionResult. # noqa: E501 + + + :return: The reserved of this StringRecognitionResult. # noqa: E501 + :rtype: object + """ + return self._reserved + + @reserved.setter + def reserved(self, reserved): + """Sets the reserved of this StringRecognitionResult. + + + :param reserved: The reserved of this StringRecognitionResult. # noqa: E501 + :type reserved: object + """ + + self._reserved = reserved @property def string_result(self): @@ -75,6 +139,52 @@ def string_result(self, string_result): self._string_result = string_result + @property + def buf_length(self): + """Gets the buf_length of this StringRecognitionResult. # noqa: E501 + + Buf_Text text string length # noqa: E501 + + :return: The buf_length of this StringRecognitionResult. # noqa: E501 + :rtype: float + """ + return self._buf_length + + @buf_length.setter + def buf_length(self, buf_length): + """Sets the buf_length of this StringRecognitionResult. + + Buf_Text text string length # noqa: E501 + + :param buf_length: The buf_length of this StringRecognitionResult. # noqa: E501 + :type buf_length: float + """ + + self._buf_length = buf_length + + @property + def buf_text(self): + """Gets the buf_text of this StringRecognitionResult. # noqa: E501 + + Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' # noqa: E501 + + :return: The buf_text of this StringRecognitionResult. # noqa: E501 + :rtype: str + """ + return self._buf_text + + @buf_text.setter + def buf_text(self, buf_text): + """Sets the buf_text of this StringRecognitionResult. + + Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' # noqa: E501 + + :param buf_text: The buf_text of this StringRecognitionResult. # noqa: E501 + :type buf_text: str + """ + + self._buf_text = buf_text + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/symbol_candidate.py b/regula/documentreader/webclient/gen/models/symbol_candidate.py index dc5a3cc..7516ee3 100755 --- a/regula/documentreader/webclient/gen/models/symbol_candidate.py +++ b/regula/documentreader/webclient/gen/models/symbol_candidate.py @@ -33,15 +33,17 @@ class SymbolCandidate(object): """ openapi_types = { 'symbol_code': 'int', - 'symbol_probability': 'int' + 'symbol_probability': 'int', + 'reserved': 'object' } attribute_map = { 'symbol_code': 'SymbolCode', - 'symbol_probability': 'SymbolProbability' + 'symbol_probability': 'SymbolProbability', + 'reserved': 'Reserved' } - def __init__(self, symbol_code=None, symbol_probability=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, symbol_code=None, symbol_probability=None, reserved=None, local_vars_configuration=None): # noqa: E501 """SymbolCandidate - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -49,10 +51,12 @@ def __init__(self, symbol_code=None, symbol_probability=None, local_vars_configu self._symbol_code = None self._symbol_probability = None + self._reserved = None self.discriminator = None self.symbol_code = symbol_code self.symbol_probability = symbol_probability + self.reserved = reserved @property def symbol_code(self): @@ -110,6 +114,27 @@ def symbol_probability(self, symbol_probability): self._symbol_probability = symbol_probability + @property + def reserved(self): + """Gets the reserved of this SymbolCandidate. # noqa: E501 + + + :return: The reserved of this SymbolCandidate. # noqa: E501 + :rtype: object + """ + return self._reserved + + @reserved.setter + def reserved(self, reserved): + """Sets the reserved of this SymbolCandidate. + + + :param reserved: The reserved of this SymbolCandidate. # noqa: E501 + :type reserved: object + """ + + self._reserved = reserved + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/symbol_recognition_result.py b/regula/documentreader/webclient/gen/models/symbol_recognition_result.py index f247802..9c200b2 100755 --- a/regula/documentreader/webclient/gen/models/symbol_recognition_result.py +++ b/regula/documentreader/webclient/gen/models/symbol_recognition_result.py @@ -33,26 +33,34 @@ class SymbolRecognitionResult(object): """ openapi_types = { 'symbol_rect': 'RectangleCoordinates', - 'list_of_candidates': 'list[SymbolCandidate]' + 'candidates_count': 'float', + 'list_of_candidates': 'list[SymbolCandidate]', + 'reserved': 'object' } attribute_map = { 'symbol_rect': 'SymbolRect', - 'list_of_candidates': 'ListOfCandidates' + 'candidates_count': 'CandidatesCount', + 'list_of_candidates': 'ListOfCandidates', + 'reserved': 'Reserved' } - def __init__(self, symbol_rect=None, list_of_candidates=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, symbol_rect=None, candidates_count=None, list_of_candidates=None, reserved=None, local_vars_configuration=None): # noqa: E501 """SymbolRecognitionResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._symbol_rect = None + self._candidates_count = None self._list_of_candidates = None + self._reserved = None self.discriminator = None self.symbol_rect = symbol_rect + self.candidates_count = candidates_count self.list_of_candidates = list_of_candidates + self.reserved = reserved @property def symbol_rect(self): @@ -77,6 +85,31 @@ def symbol_rect(self, symbol_rect): self._symbol_rect = symbol_rect + @property + def candidates_count(self): + """Gets the candidates_count of this SymbolRecognitionResult. # noqa: E501 + + Number of significant elements of ListOfCandidates array # noqa: E501 + + :return: The candidates_count of this SymbolRecognitionResult. # noqa: E501 + :rtype: float + """ + return self._candidates_count + + @candidates_count.setter + def candidates_count(self, candidates_count): + """Sets the candidates_count of this SymbolRecognitionResult. + + Number of significant elements of ListOfCandidates array # noqa: E501 + + :param candidates_count: The candidates_count of this SymbolRecognitionResult. # noqa: E501 + :type candidates_count: float + """ + if self.local_vars_configuration.client_side_validation and candidates_count is None: # noqa: E501 + raise ValueError("Invalid value for `candidates_count`, must not be `None`") # noqa: E501 + + self._candidates_count = candidates_count + @property def list_of_candidates(self): """Gets the list_of_candidates of this SymbolRecognitionResult. # noqa: E501 @@ -102,6 +135,27 @@ def list_of_candidates(self, list_of_candidates): self._list_of_candidates = list_of_candidates + @property + def reserved(self): + """Gets the reserved of this SymbolRecognitionResult. # noqa: E501 + + + :return: The reserved of this SymbolRecognitionResult. # noqa: E501 + :rtype: object + """ + return self._reserved + + @reserved.setter + def reserved(self, reserved): + """Sets the reserved of this SymbolRecognitionResult. + + + :param reserved: The reserved of this SymbolRecognitionResult. # noqa: E501 + :type reserved: object + """ + + self._reserved = reserved + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/t_doc_binary_info.py b/regula/documentreader/webclient/gen/models/t_doc_binary_info.py new file mode 100644 index 0000000..97a767f --- /dev/null +++ b/regula/documentreader/webclient/gen/models/t_doc_binary_info.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" + +""" +class TDocBinaryInfo(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'rfid_binary_data': 'BinaryData' + } + + attribute_map = { + 'rfid_binary_data': 'RFID_BINARY_DATA' + } + + def __init__(self, rfid_binary_data=None, local_vars_configuration=None): # noqa: E501 + """TDocBinaryInfo - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._rfid_binary_data = None + self.discriminator = None + + self.rfid_binary_data = rfid_binary_data + + @property + def rfid_binary_data(self): + """Gets the rfid_binary_data of this TDocBinaryInfo. # noqa: E501 + + + :return: The rfid_binary_data of this TDocBinaryInfo. # noqa: E501 + :rtype: BinaryData + """ + return self._rfid_binary_data + + @rfid_binary_data.setter + def rfid_binary_data(self, rfid_binary_data): + """Sets the rfid_binary_data of this TDocBinaryInfo. + + + :param rfid_binary_data: The rfid_binary_data of this TDocBinaryInfo. # noqa: E501 + :type rfid_binary_data: BinaryData + """ + if self.local_vars_configuration.client_side_validation and rfid_binary_data is None: # noqa: E501 + raise ValueError("Invalid value for `rfid_binary_data`, must not be `None`") # noqa: E501 + + self._rfid_binary_data = rfid_binary_data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TDocBinaryInfo): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, TDocBinaryInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/text.py b/regula/documentreader/webclient/gen/models/text.py index 3dcff59..0199816 100755 --- a/regula/documentreader/webclient/gen/models/text.py +++ b/regula/documentreader/webclient/gen/models/text.py @@ -35,6 +35,7 @@ class Text(object): 'status': 'CheckResult', 'validity_status': 'CheckResult', 'comparison_status': 'CheckResult', + 'date_format': 'str', 'field_list': 'list[TextField]', 'available_source_list': 'list[TextAvailableSource]' } @@ -43,11 +44,12 @@ class Text(object): 'status': 'status', 'validity_status': 'validityStatus', 'comparison_status': 'comparisonStatus', + 'date_format': 'dateFormat', 'field_list': 'fieldList', 'available_source_list': 'availableSourceList' } - def __init__(self, status=None, validity_status=None, comparison_status=None, field_list=None, available_source_list=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, status=None, validity_status=None, comparison_status=None, date_format=None, field_list=None, available_source_list=None, local_vars_configuration=None): # noqa: E501 """Text - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -56,6 +58,7 @@ def __init__(self, status=None, validity_status=None, comparison_status=None, fi self._status = None self._validity_status = None self._comparison_status = None + self._date_format = None self._field_list = None self._available_source_list = None self.discriminator = None @@ -63,6 +66,7 @@ def __init__(self, status=None, validity_status=None, comparison_status=None, fi self.status = status self.validity_status = validity_status self.comparison_status = comparison_status + self.date_format = date_format self.field_list = field_list self.available_source_list = available_source_list @@ -135,6 +139,31 @@ def comparison_status(self, comparison_status): self._comparison_status = comparison_status + @property + def date_format(self): + """Gets the date_format of this Text. # noqa: E501 + + Date format # noqa: E501 + + :return: The date_format of this Text. # noqa: E501 + :rtype: str + """ + return self._date_format + + @date_format.setter + def date_format(self, date_format): + """Sets the date_format of this Text. + + Date format # noqa: E501 + + :param date_format: The date_format of this Text. # noqa: E501 + :type date_format: str + """ + if self.local_vars_configuration.client_side_validation and date_format is None: # noqa: E501 + raise ValueError("Invalid value for `date_format`, must not be `None`") # noqa: E501 + + self._date_format = date_format + @property def field_list(self): """Gets the field_list of this Text. # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/text_data_result.py b/regula/documentreader/webclient/gen/models/text_data_result.py index 0677324..c242df3 100755 --- a/regula/documentreader/webclient/gen/models/text_data_result.py +++ b/regula/documentreader/webclient/gen/models/text_data_result.py @@ -63,8 +63,7 @@ def __init__(self, doc_visual_extended_info=None, buf_length=None, light=None, l self._result_type = None self.discriminator = None - if doc_visual_extended_info is not None: - self.doc_visual_extended_info = doc_visual_extended_info + self.doc_visual_extended_info = doc_visual_extended_info if buf_length is not None: self.buf_length = buf_length if light is not None: @@ -93,6 +92,8 @@ def doc_visual_extended_info(self, doc_visual_extended_info): :param doc_visual_extended_info: The doc_visual_extended_info of this TextDataResult. # noqa: E501 :type doc_visual_extended_info: DocVisualExtendedInfo """ + if self.local_vars_configuration.client_side_validation and doc_visual_extended_info is None: # noqa: E501 + raise ValueError("Invalid value for `doc_visual_extended_info`, must not be `None`") # noqa: E501 self._doc_visual_extended_info = doc_visual_extended_info diff --git a/regula/documentreader/webclient/gen/models/text_data_result_all_of.py b/regula/documentreader/webclient/gen/models/text_data_result_all_of.py index d7b6e1c..0f8c469 100755 --- a/regula/documentreader/webclient/gen/models/text_data_result_all_of.py +++ b/regula/documentreader/webclient/gen/models/text_data_result_all_of.py @@ -48,8 +48,7 @@ def __init__(self, doc_visual_extended_info=None, local_vars_configuration=None) self._doc_visual_extended_info = None self.discriminator = None - if doc_visual_extended_info is not None: - self.doc_visual_extended_info = doc_visual_extended_info + self.doc_visual_extended_info = doc_visual_extended_info @property def doc_visual_extended_info(self): @@ -69,6 +68,8 @@ def doc_visual_extended_info(self, doc_visual_extended_info): :param doc_visual_extended_info: The doc_visual_extended_info of this TextDataResultAllOf. # noqa: E501 :type doc_visual_extended_info: DocVisualExtendedInfo """ + if self.local_vars_configuration.client_side_validation and doc_visual_extended_info is None: # noqa: E501 + raise ValueError("Invalid value for `doc_visual_extended_info`, must not be `None`") # noqa: E501 self._doc_visual_extended_info = doc_visual_extended_info diff --git a/regula/documentreader/webclient/gen/models/text_field.py b/regula/documentreader/webclient/gen/models/text_field.py index 7434be5..cb01ef4 100755 --- a/regula/documentreader/webclient/gen/models/text_field.py +++ b/regula/documentreader/webclient/gen/models/text_field.py @@ -35,6 +35,7 @@ class TextField(object): 'field_type': 'TextFieldType', 'field_name': 'str', 'lcid': 'LCID', + 'lcid_name': 'str', 'status': 'CheckResult', 'validity_status': 'CheckResult', 'comparison_status': 'CheckResult', @@ -48,6 +49,7 @@ class TextField(object): 'field_type': 'fieldType', 'field_name': 'fieldName', 'lcid': 'lcid', + 'lcid_name': 'lcidName', 'status': 'status', 'validity_status': 'validityStatus', 'comparison_status': 'comparisonStatus', @@ -57,7 +59,7 @@ class TextField(object): 'comparison_list': 'comparisonList' } - def __init__(self, field_type=None, field_name=None, lcid=None, status=None, validity_status=None, comparison_status=None, value=None, value_list=None, validity_list=None, comparison_list=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, field_type=None, field_name=None, lcid=None, lcid_name=None, status=None, validity_status=None, comparison_status=None, value=None, value_list=None, validity_list=None, comparison_list=None, local_vars_configuration=None): # noqa: E501 """TextField - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -66,6 +68,7 @@ def __init__(self, field_type=None, field_name=None, lcid=None, status=None, val self._field_type = None self._field_name = None self._lcid = None + self._lcid_name = None self._status = None self._validity_status = None self._comparison_status = None @@ -77,8 +80,8 @@ def __init__(self, field_type=None, field_name=None, lcid=None, status=None, val self.field_type = field_type self.field_name = field_name - if lcid is not None: - self.lcid = lcid + self.lcid = lcid + self.lcid_name = lcid_name self.status = status self.validity_status = validity_status self.comparison_status = comparison_status @@ -153,9 +156,36 @@ def lcid(self, lcid): :param lcid: The lcid of this TextField. # noqa: E501 :type lcid: LCID """ + if self.local_vars_configuration.client_side_validation and lcid is None: # noqa: E501 + raise ValueError("Invalid value for `lcid`, must not be `None`") # noqa: E501 self._lcid = lcid + @property + def lcid_name(self): + """Gets the lcid_name of this TextField. # noqa: E501 + + LCID name # noqa: E501 + + :return: The lcid_name of this TextField. # noqa: E501 + :rtype: str + """ + return self._lcid_name + + @lcid_name.setter + def lcid_name(self, lcid_name): + """Sets the lcid_name of this TextField. + + LCID name # noqa: E501 + + :param lcid_name: The lcid_name of this TextField. # noqa: E501 + :type lcid_name: str + """ + if self.local_vars_configuration.client_side_validation and lcid_name is None: # noqa: E501 + raise ValueError("Invalid value for `lcid_name`, must not be `None`") # noqa: E501 + + self._lcid_name = lcid_name + @property def status(self): """Gets the status of this TextField. # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/text_field_value.py b/regula/documentreader/webclient/gen/models/text_field_value.py index a573df3..4daba26 100755 --- a/regula/documentreader/webclient/gen/models/text_field_value.py +++ b/regula/documentreader/webclient/gen/models/text_field_value.py @@ -35,6 +35,7 @@ class TextFieldValue(object): 'source': 'Source', 'value': 'str', 'original_value': 'str', + 'original_validity': 'CheckResult', 'original_symbols': 'list[OriginalSymbol]', 'page_index': 'int', 'probability': 'int', @@ -46,6 +47,7 @@ class TextFieldValue(object): 'source': 'source', 'value': 'value', 'original_value': 'originalValue', + 'original_validity': 'originalValidity', 'original_symbols': 'originalSymbols', 'page_index': 'pageIndex', 'probability': 'probability', @@ -53,7 +55,7 @@ class TextFieldValue(object): 'rfid_origin': 'rfidOrigin' } - def __init__(self, source=None, value=None, original_value=None, original_symbols=None, page_index=None, probability=None, field_rect=None, rfid_origin=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, source=None, value=None, original_value=None, original_validity=None, original_symbols=None, page_index=None, probability=None, field_rect=None, rfid_origin=None, local_vars_configuration=None): # noqa: E501 """TextFieldValue - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -62,6 +64,7 @@ def __init__(self, source=None, value=None, original_value=None, original_symbol self._source = None self._value = None self._original_value = None + self._original_validity = None self._original_symbols = None self._page_index = None self._probability = None @@ -73,11 +76,11 @@ def __init__(self, source=None, value=None, original_value=None, original_symbol self.value = value if original_value is not None: self.original_value = original_value + self.original_validity = original_validity if original_symbols is not None: self.original_symbols = original_symbols self.page_index = page_index - if probability is not None: - self.probability = probability + self.probability = probability if field_rect is not None: self.field_rect = field_rect if rfid_origin is not None: @@ -154,6 +157,29 @@ def original_value(self, original_value): self._original_value = original_value + @property + def original_validity(self): + """Gets the original_validity of this TextFieldValue. # noqa: E501 + + + :return: The original_validity of this TextFieldValue. # noqa: E501 + :rtype: CheckResult + """ + return self._original_validity + + @original_validity.setter + def original_validity(self, original_validity): + """Sets the original_validity of this TextFieldValue. + + + :param original_validity: The original_validity of this TextFieldValue. # noqa: E501 + :type original_validity: CheckResult + """ + if self.local_vars_configuration.client_side_validation and original_validity is None: # noqa: E501 + raise ValueError("Invalid value for `original_validity`, must not be `None`") # noqa: E501 + + self._original_validity = original_validity + @property def original_symbols(self): """Gets the original_symbols of this TextFieldValue. # noqa: E501 @@ -220,6 +246,8 @@ def probability(self, probability): :param probability: The probability of this TextFieldValue. # noqa: E501 :type probability: int """ + if self.local_vars_configuration.client_side_validation and probability is None: # noqa: E501 + raise ValueError("Invalid value for `probability`, must not be `None`") # noqa: E501 if (self.local_vars_configuration.client_side_validation and probability is not None and probability > 100): # noqa: E501 raise ValueError("Invalid value for `probability`, must be a value less than or equal to `100`") # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/transaction_info.py b/regula/documentreader/webclient/gen/models/transaction_info.py index 91f30a9..92cb472 100755 --- a/regula/documentreader/webclient/gen/models/transaction_info.py +++ b/regula/documentreader/webclient/gen/models/transaction_info.py @@ -34,18 +34,26 @@ class TransactionInfo(object): openapi_types = { 'computer_name': 'str', 'date_time': 'str', + 'documents_database': 'DocumentsDatabase', + 'system_info': 'str', + 'tag': 'str', 'transaction_id': 'str', - 'user_name': 'str' + 'user_name': 'str', + 'version': 'str' } attribute_map = { 'computer_name': 'ComputerName', 'date_time': 'DateTime', + 'documents_database': 'DocumentsDatabase', + 'system_info': 'SystemInfo', + 'tag': 'Tag', 'transaction_id': 'TransactionID', - 'user_name': 'UserName' + 'user_name': 'UserName', + 'version': 'Version' } - def __init__(self, computer_name=None, date_time=None, transaction_id=None, user_name=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, computer_name=None, date_time=None, documents_database=None, system_info=None, tag=None, transaction_id=None, user_name=None, version=None, local_vars_configuration=None): # noqa: E501 """TransactionInfo - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -53,18 +61,30 @@ def __init__(self, computer_name=None, date_time=None, transaction_id=None, user self._computer_name = None self._date_time = None + self._documents_database = None + self._system_info = None + self._tag = None self._transaction_id = None self._user_name = None + self._version = None self.discriminator = None if computer_name is not None: self.computer_name = computer_name if date_time is not None: self.date_time = date_time + if documents_database is not None: + self.documents_database = documents_database + if system_info is not None: + self.system_info = system_info + if tag is not None: + self.tag = tag if transaction_id is not None: self.transaction_id = transaction_id if user_name is not None: self.user_name = user_name + if version is not None: + self.version = version @property def computer_name(self): @@ -108,6 +128,69 @@ def date_time(self, date_time): self._date_time = date_time + @property + def documents_database(self): + """Gets the documents_database of this TransactionInfo. # noqa: E501 + + + :return: The documents_database of this TransactionInfo. # noqa: E501 + :rtype: DocumentsDatabase + """ + return self._documents_database + + @documents_database.setter + def documents_database(self, documents_database): + """Sets the documents_database of this TransactionInfo. + + + :param documents_database: The documents_database of this TransactionInfo. # noqa: E501 + :type documents_database: DocumentsDatabase + """ + + self._documents_database = documents_database + + @property + def system_info(self): + """Gets the system_info of this TransactionInfo. # noqa: E501 + + + :return: The system_info of this TransactionInfo. # noqa: E501 + :rtype: str + """ + return self._system_info + + @system_info.setter + def system_info(self, system_info): + """Sets the system_info of this TransactionInfo. + + + :param system_info: The system_info of this TransactionInfo. # noqa: E501 + :type system_info: str + """ + + self._system_info = system_info + + @property + def tag(self): + """Gets the tag of this TransactionInfo. # noqa: E501 + + + :return: The tag of this TransactionInfo. # noqa: E501 + :rtype: str + """ + return self._tag + + @tag.setter + def tag(self, tag): + """Sets the tag of this TransactionInfo. + + + :param tag: The tag of this TransactionInfo. # noqa: E501 + :type tag: str + """ + + self._tag = tag + @property def transaction_id(self): """Gets the transaction_id of this TransactionInfo. # noqa: E501 @@ -150,6 +233,27 @@ def user_name(self, user_name): self._user_name = user_name + @property + def version(self): + """Gets the version of this TransactionInfo. # noqa: E501 + + + :return: The version of this TransactionInfo. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this TransactionInfo. + + + :param version: The version of this TransactionInfo. # noqa: E501 + :type version: str + """ + + self._version = version + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/transaction_process_response.py b/regula/documentreader/webclient/gen/models/transaction_process_response.py new file mode 100644 index 0000000..3d23bf9 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/transaction_process_response.py @@ -0,0 +1,366 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" + +""" +class TransactionProcessResponse(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'core_lib_result_code': 'int', + 'chip_page': 'RfidLocation', + 'processing_finished': 'ProcessingStatus', + 'container_list': 'ContainerList', + 'transaction_info': 'TransactionInfo', + 'log': 'str', + 'pass_back_object': 'dict(str, object)', + 'more_pages_available': 'int', + 'elapsed_time': 'int', + 'metadata': 'dict(str, object)' + } + + attribute_map = { + 'core_lib_result_code': 'CoreLibResultCode', + 'chip_page': 'ChipPage', + 'processing_finished': 'ProcessingFinished', + 'container_list': 'ContainerList', + 'transaction_info': 'TransactionInfo', + 'log': 'log', + 'pass_back_object': 'passBackObject', + 'more_pages_available': 'morePagesAvailable', + 'elapsed_time': 'elapsedTime', + 'metadata': 'metadata' + } + + def __init__(self, core_lib_result_code=None, chip_page=None, processing_finished=None, container_list=None, transaction_info=None, log=None, pass_back_object=None, more_pages_available=None, elapsed_time=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """TransactionProcessResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._core_lib_result_code = None + self._chip_page = None + self._processing_finished = None + self._container_list = None + self._transaction_info = None + self._log = None + self._pass_back_object = None + self._more_pages_available = None + self._elapsed_time = None + self._metadata = None + self.discriminator = None + + self.core_lib_result_code = core_lib_result_code + self.chip_page = chip_page + self.processing_finished = processing_finished + self.container_list = container_list + self.transaction_info = transaction_info + if log is not None: + self.log = log + if pass_back_object is not None: + self.pass_back_object = pass_back_object + self.more_pages_available = more_pages_available + self.elapsed_time = elapsed_time + if metadata is not None: + self.metadata = metadata + + @property + def core_lib_result_code(self): + """Gets the core_lib_result_code of this TransactionProcessResponse. # noqa: E501 + + + :return: The core_lib_result_code of this TransactionProcessResponse. # noqa: E501 + :rtype: int + """ + return self._core_lib_result_code + + @core_lib_result_code.setter + def core_lib_result_code(self, core_lib_result_code): + """Sets the core_lib_result_code of this TransactionProcessResponse. + + + :param core_lib_result_code: The core_lib_result_code of this TransactionProcessResponse. # noqa: E501 + :type core_lib_result_code: int + """ + if self.local_vars_configuration.client_side_validation and core_lib_result_code is None: # noqa: E501 + raise ValueError("Invalid value for `core_lib_result_code`, must not be `None`") # noqa: E501 + + self._core_lib_result_code = core_lib_result_code + + @property + def chip_page(self): + """Gets the chip_page of this TransactionProcessResponse. # noqa: E501 + + + :return: The chip_page of this TransactionProcessResponse. # noqa: E501 + :rtype: RfidLocation + """ + return self._chip_page + + @chip_page.setter + def chip_page(self, chip_page): + """Sets the chip_page of this TransactionProcessResponse. + + + :param chip_page: The chip_page of this TransactionProcessResponse. # noqa: E501 + :type chip_page: RfidLocation + """ + if self.local_vars_configuration.client_side_validation and chip_page is None: # noqa: E501 + raise ValueError("Invalid value for `chip_page`, must not be `None`") # noqa: E501 + + self._chip_page = chip_page + + @property + def processing_finished(self): + """Gets the processing_finished of this TransactionProcessResponse. # noqa: E501 + + + :return: The processing_finished of this TransactionProcessResponse. # noqa: E501 + :rtype: ProcessingStatus + """ + return self._processing_finished + + @processing_finished.setter + def processing_finished(self, processing_finished): + """Sets the processing_finished of this TransactionProcessResponse. + + + :param processing_finished: The processing_finished of this TransactionProcessResponse. # noqa: E501 + :type processing_finished: ProcessingStatus + """ + if self.local_vars_configuration.client_side_validation and processing_finished is None: # noqa: E501 + raise ValueError("Invalid value for `processing_finished`, must not be `None`") # noqa: E501 + + self._processing_finished = processing_finished + + @property + def container_list(self): + """Gets the container_list of this TransactionProcessResponse. # noqa: E501 + + + :return: The container_list of this TransactionProcessResponse. # noqa: E501 + :rtype: ContainerList + """ + return self._container_list + + @container_list.setter + def container_list(self, container_list): + """Sets the container_list of this TransactionProcessResponse. + + + :param container_list: The container_list of this TransactionProcessResponse. # noqa: E501 + :type container_list: ContainerList + """ + if self.local_vars_configuration.client_side_validation and container_list is None: # noqa: E501 + raise ValueError("Invalid value for `container_list`, must not be `None`") # noqa: E501 + + self._container_list = container_list + + @property + def transaction_info(self): + """Gets the transaction_info of this TransactionProcessResponse. # noqa: E501 + + + :return: The transaction_info of this TransactionProcessResponse. # noqa: E501 + :rtype: TransactionInfo + """ + return self._transaction_info + + @transaction_info.setter + def transaction_info(self, transaction_info): + """Sets the transaction_info of this TransactionProcessResponse. + + + :param transaction_info: The transaction_info of this TransactionProcessResponse. # noqa: E501 + :type transaction_info: TransactionInfo + """ + if self.local_vars_configuration.client_side_validation and transaction_info is None: # noqa: E501 + raise ValueError("Invalid value for `transaction_info`, must not be `None`") # noqa: E501 + + self._transaction_info = transaction_info + + @property + def log(self): + """Gets the log of this TransactionProcessResponse. # noqa: E501 + + Base64 encoded transaction processing log # noqa: E501 + + :return: The log of this TransactionProcessResponse. # noqa: E501 + :rtype: str + """ + return self._log + + @log.setter + def log(self, log): + """Sets the log of this TransactionProcessResponse. + + Base64 encoded transaction processing log # noqa: E501 + + :param log: The log of this TransactionProcessResponse. # noqa: E501 + :type log: str + """ + + self._log = log + + @property + def pass_back_object(self): + """Gets the pass_back_object of this TransactionProcessResponse. # noqa: E501 + + Free-form object provided in request. See passBackObject property of ProcessRequest. # noqa: E501 + + :return: The pass_back_object of this TransactionProcessResponse. # noqa: E501 + :rtype: dict(str, object) + """ + return self._pass_back_object + + @pass_back_object.setter + def pass_back_object(self, pass_back_object): + """Sets the pass_back_object of this TransactionProcessResponse. + + Free-form object provided in request. See passBackObject property of ProcessRequest. # noqa: E501 + + :param pass_back_object: The pass_back_object of this TransactionProcessResponse. # noqa: E501 + :type pass_back_object: dict(str, object) + """ + + self._pass_back_object = pass_back_object + + @property + def more_pages_available(self): + """Gets the more_pages_available of this TransactionProcessResponse. # noqa: E501 + + + :return: The more_pages_available of this TransactionProcessResponse. # noqa: E501 + :rtype: int + """ + return self._more_pages_available + + @more_pages_available.setter + def more_pages_available(self, more_pages_available): + """Sets the more_pages_available of this TransactionProcessResponse. + + + :param more_pages_available: The more_pages_available of this TransactionProcessResponse. # noqa: E501 + :type more_pages_available: int + """ + if self.local_vars_configuration.client_side_validation and more_pages_available is None: # noqa: E501 + raise ValueError("Invalid value for `more_pages_available`, must not be `None`") # noqa: E501 + + self._more_pages_available = more_pages_available + + @property + def elapsed_time(self): + """Gets the elapsed_time of this TransactionProcessResponse. # noqa: E501 + + Time the document processing has taken, ms. # noqa: E501 + + :return: The elapsed_time of this TransactionProcessResponse. # noqa: E501 + :rtype: int + """ + return self._elapsed_time + + @elapsed_time.setter + def elapsed_time(self, elapsed_time): + """Sets the elapsed_time of this TransactionProcessResponse. + + Time the document processing has taken, ms. # noqa: E501 + + :param elapsed_time: The elapsed_time of this TransactionProcessResponse. # noqa: E501 + :type elapsed_time: int + """ + if self.local_vars_configuration.client_side_validation and elapsed_time is None: # noqa: E501 + raise ValueError("Invalid value for `elapsed_time`, must not be `None`") # noqa: E501 + + self._elapsed_time = elapsed_time + + @property + def metadata(self): + """Gets the metadata of this TransactionProcessResponse. # noqa: E501 + + + :return: The metadata of this TransactionProcessResponse. # noqa: E501 + :rtype: dict(str, object) + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this TransactionProcessResponse. + + + :param metadata: The metadata of this TransactionProcessResponse. # noqa: E501 + :type metadata: dict(str, object) + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionProcessResponse): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, TransactionProcessResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/transaction_process_response_all_of.py b/regula/documentreader/webclient/gen/models/transaction_process_response_all_of.py new file mode 100644 index 0000000..581768f --- /dev/null +++ b/regula/documentreader/webclient/gen/models/transaction_process_response_all_of.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" + +""" +class TransactionProcessResponseAllOf(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'core_lib_result_code': 'int' + } + + attribute_map = { + 'core_lib_result_code': 'CoreLibResultCode' + } + + def __init__(self, core_lib_result_code=None, local_vars_configuration=None): # noqa: E501 + """TransactionProcessResponseAllOf - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._core_lib_result_code = None + self.discriminator = None + + self.core_lib_result_code = core_lib_result_code + + @property + def core_lib_result_code(self): + """Gets the core_lib_result_code of this TransactionProcessResponseAllOf. # noqa: E501 + + + :return: The core_lib_result_code of this TransactionProcessResponseAllOf. # noqa: E501 + :rtype: int + """ + return self._core_lib_result_code + + @core_lib_result_code.setter + def core_lib_result_code(self, core_lib_result_code): + """Sets the core_lib_result_code of this TransactionProcessResponseAllOf. + + + :param core_lib_result_code: The core_lib_result_code of this TransactionProcessResponseAllOf. # noqa: E501 + :type core_lib_result_code: int + """ + if self.local_vars_configuration.client_side_validation and core_lib_result_code is None: # noqa: E501 + raise ValueError("Invalid value for `core_lib_result_code`, must not be `None`") # noqa: E501 + + self._core_lib_result_code = core_lib_result_code + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionProcessResponseAllOf): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, TransactionProcessResponseAllOf): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/transaction_process_result.py b/regula/documentreader/webclient/gen/models/transaction_process_result.py new file mode 100644 index 0000000..85202f5 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/transaction_process_result.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" + +""" +class TransactionProcessResult(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'out_data': 'OutData', + 'in_data': 'InData', + 'tag': 'str', + 'transaction_id': 'str' + } + + attribute_map = { + 'out_data': 'OutData', + 'in_data': 'InData', + 'tag': 'tag', + 'transaction_id': 'transactionId' + } + + def __init__(self, out_data=None, in_data=None, tag=None, transaction_id=None, local_vars_configuration=None): # noqa: E501 + """TransactionProcessResult - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._out_data = None + self._in_data = None + self._tag = None + self._transaction_id = None + self.discriminator = None + + if out_data is not None: + self.out_data = out_data + if in_data is not None: + self.in_data = in_data + if tag is not None: + self.tag = tag + if transaction_id is not None: + self.transaction_id = transaction_id + + @property + def out_data(self): + """Gets the out_data of this TransactionProcessResult. # noqa: E501 + + + :return: The out_data of this TransactionProcessResult. # noqa: E501 + :rtype: OutData + """ + return self._out_data + + @out_data.setter + def out_data(self, out_data): + """Sets the out_data of this TransactionProcessResult. + + + :param out_data: The out_data of this TransactionProcessResult. # noqa: E501 + :type out_data: OutData + """ + + self._out_data = out_data + + @property + def in_data(self): + """Gets the in_data of this TransactionProcessResult. # noqa: E501 + + + :return: The in_data of this TransactionProcessResult. # noqa: E501 + :rtype: InData + """ + return self._in_data + + @in_data.setter + def in_data(self, in_data): + """Sets the in_data of this TransactionProcessResult. + + + :param in_data: The in_data of this TransactionProcessResult. # noqa: E501 + :type in_data: InData + """ + + self._in_data = in_data + + @property + def tag(self): + """Gets the tag of this TransactionProcessResult. # noqa: E501 + + + :return: The tag of this TransactionProcessResult. # noqa: E501 + :rtype: str + """ + return self._tag + + @tag.setter + def tag(self, tag): + """Sets the tag of this TransactionProcessResult. + + + :param tag: The tag of this TransactionProcessResult. # noqa: E501 + :type tag: str + """ + + self._tag = tag + + @property + def transaction_id(self): + """Gets the transaction_id of this TransactionProcessResult. # noqa: E501 + + + :return: The transaction_id of this TransactionProcessResult. # noqa: E501 + :rtype: str + """ + return self._transaction_id + + @transaction_id.setter + def transaction_id(self, transaction_id): + """Sets the transaction_id of this TransactionProcessResult. + + + :param transaction_id: The transaction_id of this TransactionProcessResult. # noqa: E501 + :type transaction_id: str + """ + + self._transaction_id = transaction_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionProcessResult): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, TransactionProcessResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/trf_ft_bytes.py b/regula/documentreader/webclient/gen/models/trf_ft_bytes.py new file mode 100644 index 0000000..964246f --- /dev/null +++ b/regula/documentreader/webclient/gen/models/trf_ft_bytes.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure is used to store an array of binary information that is a part of one of the informational data groups +""" +class TrfFtBytes(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'type': 'AnyOfGraphicFieldTypeTextFieldType', + 'status': 'float', + 'length': 'float', + 'data': 'str' + } + + attribute_map = { + 'type': 'Type', + 'status': 'Status', + 'length': 'Length', + 'data': 'Data' + } + + def __init__(self, type=None, status=None, length=None, data=None, local_vars_configuration=None): # noqa: E501 + """TrfFtBytes - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._type = None + self._status = None + self._length = None + self._data = None + self.discriminator = None + + self.type = type + self.status = status + self.length = length + self.data = data + + @property + def type(self): + """Gets the type of this TrfFtBytes. # noqa: E501 + + Logical type of the field # noqa: E501 + + :return: The type of this TrfFtBytes. # noqa: E501 + :rtype: AnyOfGraphicFieldTypeTextFieldType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this TrfFtBytes. + + Logical type of the field # noqa: E501 + + :param type: The type of this TrfFtBytes. # noqa: E501 + :type type: AnyOfGraphicFieldTypeTextFieldType + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + @property + def status(self): + """Gets the status of this TrfFtBytes. # noqa: E501 + + Result of logical analysis of compliance of the contents of the field with the requirements of the specification # noqa: E501 + + :return: The status of this TrfFtBytes. # noqa: E501 + :rtype: float + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TrfFtBytes. + + Result of logical analysis of compliance of the contents of the field with the requirements of the specification # noqa: E501 + + :param status: The status of this TrfFtBytes. # noqa: E501 + :type status: float + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + @property + def length(self): + """Gets the length of this TrfFtBytes. # noqa: E501 + + Length of Data array # noqa: E501 + + :return: The length of this TrfFtBytes. # noqa: E501 + :rtype: float + """ + return self._length + + @length.setter + def length(self, length): + """Sets the length of this TrfFtBytes. + + Length of Data array # noqa: E501 + + :param length: The length of this TrfFtBytes. # noqa: E501 + :type length: float + """ + if self.local_vars_configuration.client_side_validation and length is None: # noqa: E501 + raise ValueError("Invalid value for `length`, must not be `None`") # noqa: E501 + + self._length = length + + @property + def data(self): + """Gets the data of this TrfFtBytes. # noqa: E501 + + Binary data array. Base64 encoded. # noqa: E501 + + :return: The data of this TrfFtBytes. # noqa: E501 + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this TrfFtBytes. + + Binary data array. Base64 encoded. # noqa: E501 + + :param data: The data of this TrfFtBytes. # noqa: E501 + :type data: str + """ + if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501 + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TrfFtBytes): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, TrfFtBytes): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/trf_ft_string.py b/regula/documentreader/webclient/gen/models/trf_ft_string.py new file mode 100644 index 0000000..bb4ddaf --- /dev/null +++ b/regula/documentreader/webclient/gen/models/trf_ft_string.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Structure is used to store information about the numeric field (4 bytes) that is a part of one of the informational data groups. +""" +class TrfFtString(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'type': 'AnyOfGraphicFieldTypeTextFieldType', + 'status': 'AnyOfParsingNotificationCodesParsingErrorCodes', + 'format': 'str', + 'data': 'str' + } + + attribute_map = { + 'type': 'Type', + 'status': 'Status', + 'format': 'Format', + 'data': 'Data' + } + + def __init__(self, type=None, status=None, format=None, data=None, local_vars_configuration=None): # noqa: E501 + """TrfFtString - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._type = None + self._status = None + self._format = None + self._data = None + self.discriminator = None + + self.type = type + self.status = status + self.format = format + self.data = data + + @property + def type(self): + """Gets the type of this TrfFtString. # noqa: E501 + + + :return: The type of this TrfFtString. # noqa: E501 + :rtype: AnyOfGraphicFieldTypeTextFieldType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this TrfFtString. + + + :param type: The type of this TrfFtString. # noqa: E501 + :type type: AnyOfGraphicFieldTypeTextFieldType + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + @property + def status(self): + """Gets the status of this TrfFtString. # noqa: E501 + + Result of logical analysis of compliance of the contents of the field with the requirements of the specification # noqa: E501 + + :return: The status of this TrfFtString. # noqa: E501 + :rtype: AnyOfParsingNotificationCodesParsingErrorCodes + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TrfFtString. + + Result of logical analysis of compliance of the contents of the field with the requirements of the specification # noqa: E501 + + :param status: The status of this TrfFtString. # noqa: E501 + :type status: AnyOfParsingNotificationCodesParsingErrorCodes + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + @property + def format(self): + """Gets the format of this TrfFtString. # noqa: E501 + + Mask of format of text information (for example, «YYMMDD» for date of birth) # noqa: E501 + + :return: The format of this TrfFtString. # noqa: E501 + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this TrfFtString. + + Mask of format of text information (for example, «YYMMDD» for date of birth) # noqa: E501 + + :param format: The format of this TrfFtString. # noqa: E501 + :type format: str + """ + if self.local_vars_configuration.client_side_validation and format is None: # noqa: E501 + raise ValueError("Invalid value for `format`, must not be `None`") # noqa: E501 + + self._format = format + + @property + def data(self): + """Gets the data of this TrfFtString. # noqa: E501 + + Numeric value. # noqa: E501 + + :return: The data of this TrfFtString. # noqa: E501 + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this TrfFtString. + + Numeric value. # noqa: E501 + + :param data: The data of this TrfFtString. # noqa: E501 + :type data: str + """ + if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501 + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TrfFtString): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, TrfFtString): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/verified_field_map.py b/regula/documentreader/webclient/gen/models/verified_field_map.py index 6ec5ad7..f819fff 100755 --- a/regula/documentreader/webclient/gen/models/verified_field_map.py +++ b/regula/documentreader/webclient/gen/models/verified_field_map.py @@ -66,10 +66,8 @@ def __init__(self, w_field_type=None, w_lcid=None, field_mrz=None, field_visual= self._matrix = None self.discriminator = None - if w_field_type is not None: - self.w_field_type = w_field_type - if w_lcid is not None: - self.w_lcid = w_lcid + self.w_field_type = w_field_type + self.w_lcid = w_lcid if field_mrz is not None: self.field_mrz = field_mrz if field_visual is not None: @@ -78,8 +76,7 @@ def __init__(self, w_field_type=None, w_lcid=None, field_mrz=None, field_visual= self.field_barcode = field_barcode if field_rfid is not None: self.field_rfid = field_rfid - if matrix is not None: - self.matrix = matrix + self.matrix = matrix @property def w_field_type(self): @@ -99,6 +96,8 @@ def w_field_type(self, w_field_type): :param w_field_type: The w_field_type of this VerifiedFieldMap. # noqa: E501 :type w_field_type: TextFieldType """ + if self.local_vars_configuration.client_side_validation and w_field_type is None: # noqa: E501 + raise ValueError("Invalid value for `w_field_type`, must not be `None`") # noqa: E501 self._w_field_type = w_field_type @@ -120,6 +119,8 @@ def w_lcid(self, w_lcid): :param w_lcid: The w_lcid of this VerifiedFieldMap. # noqa: E501 :type w_lcid: LCID """ + if self.local_vars_configuration.client_side_validation and w_lcid is None: # noqa: E501 + raise ValueError("Invalid value for `w_lcid`, must not be `None`") # noqa: E501 self._w_lcid = w_lcid @@ -235,6 +236,8 @@ def matrix(self, matrix): :param matrix: The matrix of this VerifiedFieldMap. # noqa: E501 :type matrix: list[VerificationResult] """ + if self.local_vars_configuration.client_side_validation and matrix is None: # noqa: E501 + raise ValueError("Invalid value for `matrix`, must not be `None`") # noqa: E501 self._matrix = matrix