Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SP-11417: Missing results for DocBarCodeInfo #97

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ 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/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_bar_code_info_result.py
regula/documentreader/webclient/gen/models/doc_bar_code_info_result_all_of.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
Expand Down
5 changes: 3 additions & 2 deletions regula/documentreader/webclient/gen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@
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.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_bar_code_info_result import DocBarCodeInfoResult
from regula.documentreader.webclient.gen.models.doc_bar_code_info_result_all_of import DocBarCodeInfoResultAllOf
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
Expand Down
5 changes: 3 additions & 2 deletions regula/documentreader/webclient/gen/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
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.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_bar_code_info_result import DocBarCodeInfoResult
from regula.documentreader.webclient.gen.models.doc_bar_code_info_result_all_of import DocBarCodeInfoResultAllOf
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
Expand Down
Original file line number Diff line number Diff line change
@@ -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()
Loading
Loading