From 943f71f4fa6b29ddc2b0c3a2bcb6e16082071edb Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 18 Sep 2023 08:54:29 +0000 Subject: [PATCH] SP-11417: Missing results for DocBarCodeInfo --- .openapi-generator/FILES | 1 + .../documentreader/webclient/gen/__init__.py | 1 + .../webclient/gen/models/__init__.py | 1 + .../webclient/gen/models/doc_bar_code_info.py | 64 ++------ .../gen/models/doc_bar_code_info_all_of.py | 64 ++------ .../models/doc_bar_code_info_fields_list.py | 149 ++++++++++++++++++ 6 files changed, 186 insertions(+), 94 deletions(-) create mode 100644 regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index d4b1624..f1bcb06 100755 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -30,6 +30,7 @@ regula/documentreader/webclient/gen/models/details_rfid.py regula/documentreader/webclient/gen/models/device_info.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_info.py regula/documentreader/webclient/gen/models/document_format.py diff --git a/regula/documentreader/webclient/gen/__init__.py b/regula/documentreader/webclient/gen/__init__.py index 43bf5c9..d3eb0c7 100755 --- a/regula/documentreader/webclient/gen/__init__.py +++ b/regula/documentreader/webclient/gen/__init__.py @@ -48,6 +48,7 @@ from regula.documentreader.webclient.gen.models.device_info import DeviceInfo 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_info import DocVisualExtendedInfo from regula.documentreader.webclient.gen.models.document_format import DocumentFormat diff --git a/regula/documentreader/webclient/gen/models/__init__.py b/regula/documentreader/webclient/gen/models/__init__.py index ad283c1..ffe04d6 100755 --- a/regula/documentreader/webclient/gen/models/__init__.py +++ b/regula/documentreader/webclient/gen/models/__init__.py @@ -32,6 +32,7 @@ from regula.documentreader.webclient.gen.models.device_info import DeviceInfo 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_info import DocVisualExtendedInfo from regula.documentreader.webclient.gen.models.document_format import DocumentFormat 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 a21eccf..50e532c 100644 --- a/regula/documentreader/webclient/gen/models/doc_bar_code_info.py +++ b/regula/documentreader/webclient/gen/models/doc_bar_code_info.py @@ -32,8 +32,7 @@ class DocBarCodeInfo(object): and the value is json key in definition. """ openapi_types = { - 'n_fields': 'int', - 'p_array_fields': 'list[PArrayField]', + 'doc_bar_code_info': 'DocBarCodeInfoFieldsList', 'buf_length': 'int', 'light': 'int', 'list_idx': 'int', @@ -42,8 +41,7 @@ class DocBarCodeInfo(object): } attribute_map = { - 'n_fields': 'nFields', - 'p_array_fields': 'pArrayFields', + 'doc_bar_code_info': 'DocBarCodeInfo', 'buf_length': 'buf_length', 'light': 'light', 'list_idx': 'list_idx', @@ -51,14 +49,13 @@ class DocBarCodeInfo(object): 'result_type': 'result_type' } - def __init__(self, n_fields=None, p_array_fields=None, buf_length=None, light=None, list_idx=None, page_idx=None, result_type=0, local_vars_configuration=None): # noqa: E501 + def __init__(self, doc_bar_code_info=None, buf_length=None, light=None, list_idx=None, page_idx=None, result_type=0, local_vars_configuration=None): # noqa: E501 """DocBarCodeInfo - 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._doc_bar_code_info = None self._buf_length = None self._light = None self._list_idx = None @@ -66,10 +63,8 @@ def __init__(self, n_fields=None, p_array_fields=None, buf_length=None, light=No self._result_type = 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 + if doc_bar_code_info is not None: + 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: @@ -81,50 +76,25 @@ def __init__(self, n_fields=None, p_array_fields=None, buf_length=None, light=No self.result_type = result_type @property - def n_fields(self): - """Gets the n_fields of this DocBarCodeInfo. # noqa: E501 + def doc_bar_code_info(self): + """Gets the doc_bar_code_info of this DocBarCodeInfo. # noqa: E501 - Count of array fields # noqa: E501 - :return: The n_fields of this DocBarCodeInfo. # noqa: E501 - :rtype: int - """ - return self._n_fields - - @n_fields.setter - def n_fields(self, n_fields): - """Sets the n_fields of this DocBarCodeInfo. - - Count of array fields # noqa: E501 - - :param n_fields: The n_fields of this DocBarCodeInfo. # noqa: E501 - :type n_fields: int - """ - - self._n_fields = n_fields - - @property - def p_array_fields(self): - """Gets the p_array_fields of this DocBarCodeInfo. # noqa: E501 - - Data from barcode # noqa: E501 - - :return: The p_array_fields of this DocBarCodeInfo. # noqa: E501 - :rtype: list[PArrayField] + :return: The doc_bar_code_info of this DocBarCodeInfo. # noqa: E501 + :rtype: DocBarCodeInfoFieldsList """ - return self._p_array_fields + return self._doc_bar_code_info - @p_array_fields.setter - def p_array_fields(self, p_array_fields): - """Sets the p_array_fields of this DocBarCodeInfo. + @doc_bar_code_info.setter + def doc_bar_code_info(self, doc_bar_code_info): + """Sets the doc_bar_code_info of this DocBarCodeInfo. - Data from barcode # noqa: E501 - :param p_array_fields: The p_array_fields of this DocBarCodeInfo. # noqa: E501 - :type p_array_fields: list[PArrayField] + :param doc_bar_code_info: The doc_bar_code_info of this DocBarCodeInfo. # noqa: E501 + :type doc_bar_code_info: DocBarCodeInfoFieldsList """ - self._p_array_fields = p_array_fields + self._doc_bar_code_info = doc_bar_code_info @property def buf_length(self): 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 c04c1e8..eb38328 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 @@ -32,75 +32,45 @@ class DocBarCodeInfoAllOf(object): and the value is json key in definition. """ openapi_types = { - 'n_fields': 'int', - 'p_array_fields': 'list[PArrayField]' + 'doc_bar_code_info': 'DocBarCodeInfoFieldsList' } attribute_map = { - 'n_fields': 'nFields', - 'p_array_fields': 'pArrayFields' + 'doc_bar_code_info': 'DocBarCodeInfo' } - def __init__(self, n_fields=None, p_array_fields=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, doc_bar_code_info=None, local_vars_configuration=None): # noqa: E501 """DocBarCodeInfoAllOf - 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._doc_bar_code_info = 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 + if doc_bar_code_info is not None: + self.doc_bar_code_info = doc_bar_code_info @property - def n_fields(self): - """Gets the n_fields of this DocBarCodeInfoAllOf. # noqa: E501 + def doc_bar_code_info(self): + """Gets the doc_bar_code_info of this DocBarCodeInfoAllOf. # noqa: E501 - Count of array fields # noqa: E501 - :return: The n_fields of this DocBarCodeInfoAllOf. # noqa: E501 - :rtype: int + :return: The doc_bar_code_info of this DocBarCodeInfoAllOf. # noqa: E501 + :rtype: DocBarCodeInfoFieldsList """ - return self._n_fields + return self._doc_bar_code_info - @n_fields.setter - def n_fields(self, n_fields): - """Sets the n_fields of this DocBarCodeInfoAllOf. + @doc_bar_code_info.setter + def doc_bar_code_info(self, doc_bar_code_info): + """Sets the doc_bar_code_info of this DocBarCodeInfoAllOf. - Count of array fields # noqa: E501 - :param n_fields: The n_fields of this DocBarCodeInfoAllOf. # noqa: E501 - :type n_fields: int + :param doc_bar_code_info: The doc_bar_code_info of this DocBarCodeInfoAllOf. # noqa: E501 + :type doc_bar_code_info: DocBarCodeInfoFieldsList """ - self._n_fields = n_fields - - @property - def p_array_fields(self): - """Gets the p_array_fields of this DocBarCodeInfoAllOf. # noqa: E501 - - Data from barcode # noqa: E501 - - :return: The p_array_fields of this DocBarCodeInfoAllOf. # noqa: E501 - :rtype: list[PArrayField] - """ - return self._p_array_fields - - @p_array_fields.setter - def p_array_fields(self, p_array_fields): - """Sets the p_array_fields of this DocBarCodeInfoAllOf. - - Data from barcode # noqa: E501 - - :param p_array_fields: The p_array_fields of this DocBarCodeInfoAllOf. # noqa: E501 - :type p_array_fields: list[PArrayField] - """ - - self._p_array_fields = p_array_fields + self._doc_bar_code_info = doc_bar_code_info def to_dict(self): """Returns the model properties as a dict""" 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 new file mode 100644 index 0000000..fef5559 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.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 * + + +""" + +""" +class DocBarCodeInfoFieldsList(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[PArrayField]' + } + + 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 + """DocBarCodeInfoFieldsList - 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 DocBarCodeInfoFieldsList. # noqa: E501 + + Count of array fields # noqa: E501 + + :return: The n_fields of this DocBarCodeInfoFieldsList. # noqa: E501 + :rtype: int + """ + return self._n_fields + + @n_fields.setter + def n_fields(self, n_fields): + """Sets the n_fields of this DocBarCodeInfoFieldsList. + + Count of array fields # noqa: E501 + + :param n_fields: The n_fields of this DocBarCodeInfoFieldsList. # noqa: E501 + :type n_fields: int + """ + + self._n_fields = n_fields + + @property + def p_array_fields(self): + """Gets the p_array_fields of this DocBarCodeInfoFieldsList. # noqa: E501 + + Data from barcode # noqa: E501 + + :return: The p_array_fields of this DocBarCodeInfoFieldsList. # noqa: E501 + :rtype: list[PArrayField] + """ + return self._p_array_fields + + @p_array_fields.setter + def p_array_fields(self, p_array_fields): + """Sets the p_array_fields of this DocBarCodeInfoFieldsList. + + Data from barcode # noqa: E501 + + :param p_array_fields: The p_array_fields of this DocBarCodeInfoFieldsList. # noqa: E501 + :type p_array_fields: list[PArrayField] + """ + + 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, DocBarCodeInfoFieldsList): + 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, DocBarCodeInfoFieldsList): + return True + + return self.to_dict() != other.to_dict()