From acec14d4fa671c90a1001721be1630bccbec282d Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 23 Sep 2024 08:52:25 +0000 Subject: [PATCH] update-clients --- .openapi-generator/FILES | 5 + .../documentreader/webclient/gen/__init__.py | 5 + .../webclient/gen/models/__init__.py | 5 + .../gen/models/binary_data_result.py | 147 +++++++++ .../webclient/gen/models/ident_result.py | 2 - .../gen/models/ident_result_all_of.py | 30 +- .../gen/models/original_graphics_result.py | 147 +++++++++ .../webclient/gen/models/raw_data_result.py | 147 +++++++++ .../webclient/gen/models/result_item.py | 3 + .../webclient/gen/models/t_binary_data.py | 197 ++++++++++++ .../gen/models/t_original_rfid_graphics.py | 301 ++++++++++++++++++ 11 files changed, 958 insertions(+), 31 deletions(-) create mode 100644 regula/documentreader/webclient/gen/models/binary_data_result.py create mode 100644 regula/documentreader/webclient/gen/models/original_graphics_result.py create mode 100644 regula/documentreader/webclient/gen/models/raw_data_result.py create mode 100644 regula/documentreader/webclient/gen/models/t_binary_data.py create mode 100644 regula/documentreader/webclient/gen/models/t_original_rfid_graphics.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 796d723..4e1970f 100755 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -19,6 +19,7 @@ regula/documentreader/webclient/gen/models/authenticity_result_all_of.py regula/documentreader/webclient/gen/models/authenticity_result_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_result.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 @@ -98,6 +99,7 @@ regula/documentreader/webclient/gen/models/mrz_format.py regula/documentreader/webclient/gen/models/ocr_security_text_result.py regula/documentreader/webclient/gen/models/ocr_security_text_result_all_of.py regula/documentreader/webclient/gen/models/one_candidate.py +regula/documentreader/webclient/gen/models/original_graphics_result.py 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 @@ -116,6 +118,7 @@ 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_data_result.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 @@ -134,6 +137,8 @@ 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_binary_data.py +regula/documentreader/webclient/gen/models/t_original_rfid_graphics.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 diff --git a/regula/documentreader/webclient/gen/__init__.py b/regula/documentreader/webclient/gen/__init__.py index 65bb5de..f985667 100755 --- a/regula/documentreader/webclient/gen/__init__.py +++ b/regula/documentreader/webclient/gen/__init__.py @@ -36,6 +36,7 @@ from regula.documentreader.webclient.gen.models.authenticity_result_type import AuthenticityResultType 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_result import BinaryDataResult 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 @@ -116,6 +117,7 @@ from regula.documentreader.webclient.gen.models.ocr_security_text_result import OCRSecurityTextResult from regula.documentreader.webclient.gen.models.ocr_security_text_result_all_of import OCRSecurityTextResultAllOf from regula.documentreader.webclient.gen.models.one_candidate import OneCandidate +from regula.documentreader.webclient.gen.models.original_graphics_result import OriginalGraphicsResult from regula.documentreader.webclient.gen.models.original_symbol import OriginalSymbol from regula.documentreader.webclient.gen.models.out_data import OutData from regula.documentreader.webclient.gen.models.out_data_transaction_images_field_value import OutDataTransactionImagesFieldValue @@ -134,6 +136,7 @@ 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.raw_data_result import RawDataResult 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 @@ -152,6 +155,8 @@ 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_binary_data import TBinaryData +from regula.documentreader.webclient.gen.models.t_original_rfid_graphics import TOriginalRFIDGraphics 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 diff --git a/regula/documentreader/webclient/gen/models/__init__.py b/regula/documentreader/webclient/gen/models/__init__.py index d8e11f0..312632d 100755 --- a/regula/documentreader/webclient/gen/models/__init__.py +++ b/regula/documentreader/webclient/gen/models/__init__.py @@ -19,6 +19,7 @@ from regula.documentreader.webclient.gen.models.authenticity_result_type import AuthenticityResultType 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_result import BinaryDataResult 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 @@ -99,6 +100,7 @@ from regula.documentreader.webclient.gen.models.ocr_security_text_result import OCRSecurityTextResult from regula.documentreader.webclient.gen.models.ocr_security_text_result_all_of import OCRSecurityTextResultAllOf from regula.documentreader.webclient.gen.models.one_candidate import OneCandidate +from regula.documentreader.webclient.gen.models.original_graphics_result import OriginalGraphicsResult from regula.documentreader.webclient.gen.models.original_symbol import OriginalSymbol from regula.documentreader.webclient.gen.models.out_data import OutData from regula.documentreader.webclient.gen.models.out_data_transaction_images_field_value import OutDataTransactionImagesFieldValue @@ -117,6 +119,7 @@ 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.raw_data_result import RawDataResult 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 @@ -135,6 +138,8 @@ 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_binary_data import TBinaryData +from regula.documentreader.webclient.gen.models.t_original_rfid_graphics import TOriginalRFIDGraphics 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 diff --git a/regula/documentreader/webclient/gen/models/binary_data_result.py b/regula/documentreader/webclient/gen/models/binary_data_result.py new file mode 100644 index 0000000..657e5ab --- /dev/null +++ b/regula/documentreader/webclient/gen/models/binary_data_result.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 * + + +""" + +""" +class BinaryDataResult(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 = { + 'n_fields': 'int', + 'p_array_fields': 'list[TBinaryData]' + } + + attribute_map = { + 'n_fields': 'nFields', + 'p_array_fields': 'pArrayFields' + } + + def __init__(self, n_fields=None, p_array_fields=None, local_vars_configuration=None): # noqa: E501 + """BinaryDataResult - 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 + + 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 + + @property + def n_fields(self): + """Gets the n_fields of this BinaryDataResult. # noqa: E501 + + Count of array fields # noqa: E501 + + :return: The n_fields of this BinaryDataResult. # noqa: E501 + :rtype: int + """ + return self._n_fields + + @n_fields.setter + def n_fields(self, n_fields): + """Sets the n_fields of this BinaryDataResult. + + Count of array fields # noqa: E501 + + :param n_fields: The n_fields of this BinaryDataResult. # noqa: E501 + :type n_fields: int + """ + + self._n_fields = n_fields + + @property + def p_array_fields(self): + """Gets the p_array_fields of this BinaryDataResult. # noqa: E501 + + + :return: The p_array_fields of this BinaryDataResult. # noqa: E501 + :rtype: list[TBinaryData] + """ + return self._p_array_fields + + @p_array_fields.setter + def p_array_fields(self, p_array_fields): + """Sets the p_array_fields of this BinaryDataResult. + + + :param p_array_fields: The p_array_fields of this BinaryDataResult. # noqa: E501 + :type p_array_fields: list[TBinaryData] + """ + + self._p_array_fields = p_array_fields + + 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, BinaryDataResult): + 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, BinaryDataResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/ident_result.py b/regula/documentreader/webclient/gen/models/ident_result.py index 3b28a47..c005f01 100644 --- a/regula/documentreader/webclient/gen/models/ident_result.py +++ b/regula/documentreader/webclient/gen/models/ident_result.py @@ -166,7 +166,6 @@ def element_diagnose(self, element_diagnose): def percent_value(self): """Gets the percent_value of this IdentResult. # noqa: E501 - Probability percent for IMAGE_PATTERN check or element's visibility for IR_VISIBILITY # noqa: E501 :return: The percent_value of this IdentResult. # noqa: E501 :rtype: int @@ -177,7 +176,6 @@ def percent_value(self): def percent_value(self, percent_value): """Sets the percent_value of this IdentResult. - Probability percent for IMAGE_PATTERN check or element's visibility for IR_VISIBILITY # noqa: E501 :param percent_value: The percent_value of this IdentResult. # noqa: E501 :type percent_value: int 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 63bbd7a..2686db8 100644 --- a/regula/documentreader/webclient/gen/models/ident_result_all_of.py +++ b/regula/documentreader/webclient/gen/models/ident_result_all_of.py @@ -37,7 +37,6 @@ class IdentResultAllOf(object): 'area': 'RectangleCoordinates', 'image': 'ImageData', 'etalon_image': 'ImageData', - 'percent_value': 'int', 'area_list': 'AreaContainer' } @@ -47,11 +46,10 @@ class IdentResultAllOf(object): 'area': 'Area', 'image': 'Image', 'etalon_image': 'EtalonImage', - 'percent_value': 'PercentValue', 'area_list': 'AreaList' } - def __init__(self, element_type=None, light_index=None, area=None, image=None, etalon_image=None, percent_value=None, area_list=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, element_type=None, light_index=None, area=None, image=None, etalon_image=None, area_list=None, local_vars_configuration=None): # noqa: E501 """IdentResultAllOf - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -62,7 +60,6 @@ def __init__(self, element_type=None, light_index=None, area=None, image=None, e self._area = None self._image = None self._etalon_image = None - self._percent_value = None self._area_list = None self.discriminator = None @@ -76,8 +73,6 @@ def __init__(self, element_type=None, light_index=None, area=None, image=None, e self.image = image if etalon_image is not None: self.etalon_image = etalon_image - if percent_value is not None: - self.percent_value = percent_value if area_list is not None: self.area_list = area_list @@ -186,29 +181,6 @@ def etalon_image(self, etalon_image): self._etalon_image = etalon_image - @property - def percent_value(self): - """Gets the percent_value of this IdentResultAllOf. # noqa: E501 - - Probability percent for IMAGE_PATTERN check or element's visibility for IR_VISIBILITY # noqa: E501 - - :return: The percent_value of this IdentResultAllOf. # noqa: E501 - :rtype: int - """ - return self._percent_value - - @percent_value.setter - def percent_value(self, percent_value): - """Sets the percent_value of this IdentResultAllOf. - - Probability percent for IMAGE_PATTERN check or element's visibility for IR_VISIBILITY # noqa: E501 - - :param percent_value: The percent_value of this IdentResultAllOf. # noqa: E501 - :type percent_value: int - """ - - self._percent_value = percent_value - @property def area_list(self): """Gets the area_list of this IdentResultAllOf. # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/original_graphics_result.py b/regula/documentreader/webclient/gen/models/original_graphics_result.py new file mode 100644 index 0000000..657d45e --- /dev/null +++ b/regula/documentreader/webclient/gen/models/original_graphics_result.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 * + + +""" + +""" +class OriginalGraphicsResult(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 = { + 'n_fields': 'int', + 'p_array_fields': 'list[TOriginalRFIDGraphics]' + } + + attribute_map = { + 'n_fields': 'nFields', + 'p_array_fields': 'pArrayFields' + } + + def __init__(self, n_fields=None, p_array_fields=None, local_vars_configuration=None): # noqa: E501 + """OriginalGraphicsResult - 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 + + 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 + + @property + def n_fields(self): + """Gets the n_fields of this OriginalGraphicsResult. # noqa: E501 + + Count of array fields # noqa: E501 + + :return: The n_fields of this OriginalGraphicsResult. # noqa: E501 + :rtype: int + """ + return self._n_fields + + @n_fields.setter + def n_fields(self, n_fields): + """Sets the n_fields of this OriginalGraphicsResult. + + Count of array fields # noqa: E501 + + :param n_fields: The n_fields of this OriginalGraphicsResult. # noqa: E501 + :type n_fields: int + """ + + self._n_fields = n_fields + + @property + def p_array_fields(self): + """Gets the p_array_fields of this OriginalGraphicsResult. # noqa: E501 + + + :return: The p_array_fields of this OriginalGraphicsResult. # noqa: E501 + :rtype: list[TOriginalRFIDGraphics] + """ + return self._p_array_fields + + @p_array_fields.setter + def p_array_fields(self, p_array_fields): + """Sets the p_array_fields of this OriginalGraphicsResult. + + + :param p_array_fields: The p_array_fields of this OriginalGraphicsResult. # noqa: E501 + :type p_array_fields: list[TOriginalRFIDGraphics] + """ + + self._p_array_fields = p_array_fields + + 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, OriginalGraphicsResult): + 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, OriginalGraphicsResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/raw_data_result.py b/regula/documentreader/webclient/gen/models/raw_data_result.py new file mode 100644 index 0000000..91c2b5d --- /dev/null +++ b/regula/documentreader/webclient/gen/models/raw_data_result.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 * + + +""" + +""" +class RawDataResult(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 = { + 'n_fields': 'int', + 'p_array_fields': 'list[TBinaryData]' + } + + attribute_map = { + 'n_fields': 'nFields', + 'p_array_fields': 'pArrayFields' + } + + def __init__(self, n_fields=None, p_array_fields=None, local_vars_configuration=None): # noqa: E501 + """RawDataResult - 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 + + 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 + + @property + def n_fields(self): + """Gets the n_fields of this RawDataResult. # noqa: E501 + + Count of array fields # noqa: E501 + + :return: The n_fields of this RawDataResult. # noqa: E501 + :rtype: int + """ + return self._n_fields + + @n_fields.setter + def n_fields(self, n_fields): + """Sets the n_fields of this RawDataResult. + + Count of array fields # noqa: E501 + + :param n_fields: The n_fields of this RawDataResult. # noqa: E501 + :type n_fields: int + """ + + self._n_fields = n_fields + + @property + def p_array_fields(self): + """Gets the p_array_fields of this RawDataResult. # noqa: E501 + + + :return: The p_array_fields of this RawDataResult. # noqa: E501 + :rtype: list[TBinaryData] + """ + return self._p_array_fields + + @p_array_fields.setter + def p_array_fields(self, p_array_fields): + """Sets the p_array_fields of this RawDataResult. + + + :param p_array_fields: The p_array_fields of this RawDataResult. # noqa: E501 + :type p_array_fields: list[TBinaryData] + """ + + self._p_array_fields = p_array_fields + + 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, RawDataResult): + 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, RawDataResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/result_item.py b/regula/documentreader/webclient/gen/models/result_item.py index 41c2c6c..bb03549 100755 --- a/regula/documentreader/webclient/gen/models/result_item.py +++ b/regula/documentreader/webclient/gen/models/result_item.py @@ -48,8 +48,11 @@ class ResultItem(object): } discriminator_value_class_map = { 1 : 'DocumentImageResult', + 101 : 'RawDataResult', 102 : 'TextDataResult', 103 : 'GraphicsResult', + 104 : 'BinaryDataResult', + 105 : 'OriginalGraphicsResult', 15 : 'LexicalAnalysisResult', 17 : 'TextDataResult', 18 : 'TextDataResult', diff --git a/regula/documentreader/webclient/gen/models/t_binary_data.py b/regula/documentreader/webclient/gen/models/t_binary_data.py new file mode 100644 index 0000000..fe82b22 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/t_binary_data.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 * + + +""" +Container for extracted text fields. Fields are identified by type and language +""" +class TBinaryData(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_type': 'int', + 'field_name': 'str', + 'buf_length': 'int', + 'buffer': 'str' + } + + attribute_map = { + 'field_type': 'FieldType', + 'field_name': 'FieldName', + 'buf_length': 'Buf_Length', + 'buffer': 'Buffer' + } + + def __init__(self, field_type=None, field_name=None, buf_length=None, buffer=None, local_vars_configuration=None): # noqa: E501 + """TBinaryData - 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._buf_length = None + self._buffer = None + self.discriminator = None + + if field_type is not None: + self.field_type = field_type + if field_name is not None: + self.field_name = field_name + if buf_length is not None: + self.buf_length = buf_length + if buffer is not None: + self.buffer = buffer + + @property + def field_type(self): + """Gets the field_type of this TBinaryData. # noqa: E501 + + + :return: The field_type of this TBinaryData. # noqa: E501 + :rtype: int + """ + return self._field_type + + @field_type.setter + def field_type(self, field_type): + """Sets the field_type of this TBinaryData. + + + :param field_type: The field_type of this TBinaryData. # noqa: E501 + :type field_type: int + """ + + self._field_type = field_type + + @property + def field_name(self): + """Gets the field_name of this TBinaryData. # noqa: E501 + + + :return: The field_name of this TBinaryData. # noqa: E501 + :rtype: str + """ + return self._field_name + + @field_name.setter + def field_name(self, field_name): + """Sets the field_name of this TBinaryData. + + + :param field_name: The field_name of this TBinaryData. # noqa: E501 + :type field_name: str + """ + + self._field_name = field_name + + @property + def buf_length(self): + """Gets the buf_length of this TBinaryData. # noqa: E501 + + + :return: The buf_length of this TBinaryData. # noqa: E501 + :rtype: int + """ + return self._buf_length + + @buf_length.setter + def buf_length(self, buf_length): + """Sets the buf_length of this TBinaryData. + + + :param buf_length: The buf_length of this TBinaryData. # noqa: E501 + :type buf_length: int + """ + + self._buf_length = buf_length + + @property + def buffer(self): + """Gets the buffer of this TBinaryData. # noqa: E501 + + + :return: The buffer of this TBinaryData. # noqa: E501 + :rtype: str + """ + return self._buffer + + @buffer.setter + def buffer(self, buffer): + """Sets the buffer of this TBinaryData. + + + :param buffer: The buffer of this TBinaryData. # noqa: E501 + :type buffer: str + """ + + self._buffer = buffer + + 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, TBinaryData): + 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, TBinaryData): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/t_original_rfid_graphics.py b/regula/documentreader/webclient/gen/models/t_original_rfid_graphics.py new file mode 100644 index 0000000..9fd1c7f --- /dev/null +++ b/regula/documentreader/webclient/gen/models/t_original_rfid_graphics.py @@ -0,0 +1,301 @@ +# 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 TOriginalRFIDGraphics(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_type': 'int', + 'graphics_type': 'int', + 'rfid_origin_dg': 'int', + 'rfid_origin_dg_tag': 'int', + 'rfid_origin_tag_entry': 'int', + 'rfid_origin_entry_view': 'int', + 'buf_length': 'int', + 'buffer': 'str' + } + + attribute_map = { + 'field_type': 'FieldType', + 'graphics_type': 'GraphicsType', + 'rfid_origin_dg': 'RFID_OriginDG', + 'rfid_origin_dg_tag': 'RFID_OriginDGTag', + 'rfid_origin_tag_entry': 'RFID_OriginTagEntry', + 'rfid_origin_entry_view': 'RFID_OriginEntryView', + 'buf_length': 'Buf_Length', + 'buffer': 'Buffer' + } + + def __init__(self, field_type=None, graphics_type=None, rfid_origin_dg=None, rfid_origin_dg_tag=None, rfid_origin_tag_entry=None, rfid_origin_entry_view=None, buf_length=None, buffer=None, local_vars_configuration=None): # noqa: E501 + """TOriginalRFIDGraphics - 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._graphics_type = 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._buf_length = None + self._buffer = None + self.discriminator = None + + if field_type is not None: + self.field_type = field_type + if graphics_type is not None: + self.graphics_type = graphics_type + 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 + if buf_length is not None: + self.buf_length = buf_length + if buffer is not None: + self.buffer = buffer + + @property + def field_type(self): + """Gets the field_type of this TOriginalRFIDGraphics. # noqa: E501 + + + :return: The field_type of this TOriginalRFIDGraphics. # noqa: E501 + :rtype: int + """ + return self._field_type + + @field_type.setter + def field_type(self, field_type): + """Sets the field_type of this TOriginalRFIDGraphics. + + + :param field_type: The field_type of this TOriginalRFIDGraphics. # noqa: E501 + :type field_type: int + """ + + self._field_type = field_type + + @property + def graphics_type(self): + """Gets the graphics_type of this TOriginalRFIDGraphics. # noqa: E501 + + + :return: The graphics_type of this TOriginalRFIDGraphics. # noqa: E501 + :rtype: int + """ + return self._graphics_type + + @graphics_type.setter + def graphics_type(self, graphics_type): + """Sets the graphics_type of this TOriginalRFIDGraphics. + + + :param graphics_type: The graphics_type of this TOriginalRFIDGraphics. # noqa: E501 + :type graphics_type: int + """ + + self._graphics_type = graphics_type + + @property + def rfid_origin_dg(self): + """Gets the rfid_origin_dg of this TOriginalRFIDGraphics. # noqa: E501 + + + :return: The rfid_origin_dg of this TOriginalRFIDGraphics. # 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 TOriginalRFIDGraphics. + + + :param rfid_origin_dg: The rfid_origin_dg of this TOriginalRFIDGraphics. # 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 TOriginalRFIDGraphics. # noqa: E501 + + + :return: The rfid_origin_dg_tag of this TOriginalRFIDGraphics. # 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 TOriginalRFIDGraphics. + + + :param rfid_origin_dg_tag: The rfid_origin_dg_tag of this TOriginalRFIDGraphics. # 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 TOriginalRFIDGraphics. # noqa: E501 + + + :return: The rfid_origin_tag_entry of this TOriginalRFIDGraphics. # 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 TOriginalRFIDGraphics. + + + :param rfid_origin_tag_entry: The rfid_origin_tag_entry of this TOriginalRFIDGraphics. # 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 TOriginalRFIDGraphics. # noqa: E501 + + + :return: The rfid_origin_entry_view of this TOriginalRFIDGraphics. # 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 TOriginalRFIDGraphics. + + + :param rfid_origin_entry_view: The rfid_origin_entry_view of this TOriginalRFIDGraphics. # noqa: E501 + :type rfid_origin_entry_view: int + """ + + self._rfid_origin_entry_view = rfid_origin_entry_view + + @property + def buf_length(self): + """Gets the buf_length of this TOriginalRFIDGraphics. # noqa: E501 + + + :return: The buf_length of this TOriginalRFIDGraphics. # noqa: E501 + :rtype: int + """ + return self._buf_length + + @buf_length.setter + def buf_length(self, buf_length): + """Sets the buf_length of this TOriginalRFIDGraphics. + + + :param buf_length: The buf_length of this TOriginalRFIDGraphics. # noqa: E501 + :type buf_length: int + """ + + self._buf_length = buf_length + + @property + def buffer(self): + """Gets the buffer of this TOriginalRFIDGraphics. # noqa: E501 + + + :return: The buffer of this TOriginalRFIDGraphics. # noqa: E501 + :rtype: str + """ + return self._buffer + + @buffer.setter + def buffer(self, buffer): + """Sets the buffer of this TOriginalRFIDGraphics. + + + :param buffer: The buffer of this TOriginalRFIDGraphics. # noqa: E501 + :type buffer: str + """ + + self._buffer = buffer + + 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, TOriginalRFIDGraphics): + 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, TOriginalRFIDGraphics): + return True + + return self.to_dict() != other.to_dict()