Skip to content
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
3 changes: 2 additions & 1 deletion .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ 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_info2.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
Expand Down Expand Up @@ -64,6 +63,8 @@ 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
regula/documentreader/webclient/gen/models/graphics_result_all_of.py
regula/documentreader/webclient/gen/models/healthcheck.py
regula/documentreader/webclient/gen/models/healthcheck_documents_database.py
regula/documentreader/webclient/gen/models/ident_result.py
regula/documentreader/webclient/gen/models/ident_result_all_of.py
regula/documentreader/webclient/gen/models/image_data.py
Expand Down
3 changes: 2 additions & 1 deletion regula/documentreader/webclient/gen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
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_info2 import DeviceInfo2
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
Expand Down Expand Up @@ -80,6 +79,8 @@
from regula.documentreader.webclient.gen.models.graphic_fields_list import GraphicFieldsList
from regula.documentreader.webclient.gen.models.graphics_result import GraphicsResult
from regula.documentreader.webclient.gen.models.graphics_result_all_of import GraphicsResultAllOf
from regula.documentreader.webclient.gen.models.healthcheck import Healthcheck
from regula.documentreader.webclient.gen.models.healthcheck_documents_database import HealthcheckDocumentsDatabase
from regula.documentreader.webclient.gen.models.ident_result import IdentResult
from regula.documentreader.webclient.gen.models.ident_result_all_of import IdentResultAllOf
from regula.documentreader.webclient.gen.models.image_data import ImageData
Expand Down
14 changes: 7 additions & 7 deletions regula/documentreader/webclient/gen/api/healthcheck_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self, api_client=None):
self.api_client = api_client

def healthz(self, **kwargs): # noqa: E501
"""Server healthcheck # 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
Expand All @@ -54,13 +54,13 @@ def healthz(self, **kwargs): # noqa: E501
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: DeviceInfo2
:rtype: Healthcheck
"""
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
"""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
Expand Down Expand Up @@ -90,7 +90,7 @@ def healthz_with_http_info(self, **kwargs): # noqa: E501
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(DeviceInfo2, status_code(int), headers(HTTPHeaderDict))
:rtype: tuple(Healthcheck, status_code(int), headers(HTTPHeaderDict))
"""

local_var_params = locals()
Expand Down Expand Up @@ -139,7 +139,7 @@ def healthz_with_http_info(self, **kwargs): # noqa: E501
auth_settings = [] # noqa: E501

response_types_map = {
200: "DeviceInfo2",
200: "Healthcheck",
}

return self.api_client.call_api(
Expand Down Expand Up @@ -289,7 +289,7 @@ def ping_with_http_info(self, **kwargs): # noqa: E501
_request_auth=local_var_params.get('_request_auth'))

def readyz(self, **kwargs): # noqa: E501
"""License healthcheck # noqa: E501
"""License health check # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
Expand Down Expand Up @@ -318,7 +318,7 @@ def readyz(self, **kwargs): # noqa: E501
return self.readyz_with_http_info(**kwargs) # noqa: E501

def readyz_with_http_info(self, **kwargs): # noqa: E501
"""License healthcheck # noqa: E501
"""License health check # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
Expand Down
20 changes: 10 additions & 10 deletions regula/documentreader/webclient/gen/api/transaction_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def api_v2_tag_tag_id_delete(self, tag_id, **kwargs): # noqa: E501
>>> result = thread.get()

:param tag_id: Tag id (required)
:type tag_id: int
:type tag_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
Expand Down Expand Up @@ -69,7 +69,7 @@ def api_v2_tag_tag_id_delete_with_http_info(self, tag_id, **kwargs): # noqa: E5
>>> result = thread.get()

:param tag_id: Tag id (required)
:type tag_id: int
:type tag_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
Expand Down Expand Up @@ -310,7 +310,7 @@ def api_v2_transaction_transaction_id_file_get(self, transaction_id, name, **kwa
>>> result = thread.get()

:param transaction_id: Transaction id (required)
:type transaction_id: int
:type transaction_id: str
:param name: File name (required)
:type name: str
:param async_req: Whether to execute the request asynchronously.
Expand Down Expand Up @@ -341,7 +341,7 @@ def api_v2_transaction_transaction_id_file_get_with_http_info(self, transaction_
>>> result = thread.get()

:param transaction_id: Transaction id (required)
:type transaction_id: int
:type transaction_id: str
:param name: File name (required)
:type name: str
:param async_req: Whether to execute the request asynchronously.
Expand Down Expand Up @@ -455,7 +455,7 @@ def api_v2_transaction_transaction_id_get(self, transaction_id, **kwargs): # no
>>> result = thread.get()

:param transaction_id: Transaction id (required)
:type transaction_id: int
:type transaction_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
Expand Down Expand Up @@ -484,7 +484,7 @@ def api_v2_transaction_transaction_id_get_with_http_info(self, transaction_id, *
>>> result = thread.get()

:param transaction_id: Transaction id (required)
:type transaction_id: int
:type transaction_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
Expand Down Expand Up @@ -590,7 +590,7 @@ def api_v2_transaction_transaction_id_process_post(self, transaction_id, transac
>>> result = thread.get()

:param transaction_id: Transaction id (required)
:type transaction_id: int
:type transaction_id: str
:param transaction_process_request: (required)
:type transaction_process_request: TransactionProcessRequest
:param async_req: Whether to execute the request asynchronously.
Expand Down Expand Up @@ -621,7 +621,7 @@ def api_v2_transaction_transaction_id_process_post_with_http_info(self, transact
>>> result = thread.get()

:param transaction_id: Transaction id (required)
:type transaction_id: int
:type transaction_id: str
:param transaction_process_request: (required)
:type transaction_process_request: TransactionProcessRequest
:param async_req: Whether to execute the request asynchronously.
Expand Down Expand Up @@ -740,7 +740,7 @@ def api_v2_transaction_transaction_id_results_get(self, transaction_id, **kwargs
>>> result = thread.get()

:param transaction_id: Transaction id (required)
:type transaction_id: int
:type transaction_id: str
:param with_images: With base64 images or url
:type with_images: bool
:param async_req: Whether to execute the request asynchronously.
Expand Down Expand Up @@ -771,7 +771,7 @@ def api_v2_transaction_transaction_id_results_get_with_http_info(self, transacti
>>> result = thread.get()

:param transaction_id: Transaction id (required)
:type transaction_id: int
:type transaction_id: str
:param with_images: With base64 images or url
:type with_images: bool
:param async_req: Whether to execute the request asynchronously.
Expand Down
3 changes: 2 additions & 1 deletion regula/documentreader/webclient/gen/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
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_info2 import DeviceInfo2
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
Expand Down Expand Up @@ -63,6 +62,8 @@
from regula.documentreader.webclient.gen.models.graphic_fields_list import GraphicFieldsList
from regula.documentreader.webclient.gen.models.graphics_result import GraphicsResult
from regula.documentreader.webclient.gen.models.graphics_result_all_of import GraphicsResultAllOf
from regula.documentreader.webclient.gen.models.healthcheck import Healthcheck
from regula.documentreader.webclient.gen.models.healthcheck_documents_database import HealthcheckDocumentsDatabase
from regula.documentreader.webclient.gen.models.ident_result import IdentResult
from regula.documentreader.webclient.gen.models.ident_result_all_of import IdentResultAllOf
from regula.documentreader.webclient.gen.models.image_data import ImageData
Expand Down
34 changes: 31 additions & 3 deletions regula/documentreader/webclient/gen/models/document_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,28 @@ class DocumentImage(object):
and the value is json key in definition.
"""
openapi_types = {
'image': 'str'
'image': 'str',
'format': 'str'
}

attribute_map = {
'image': 'image'
'image': 'image',
'format': 'format'
}

def __init__(self, image=None, local_vars_configuration=None): # noqa: E501
def __init__(self, image=None, format=None, local_vars_configuration=None): # noqa: E501
"""DocumentImage - 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._image = None
self._format = None
self.discriminator = None

self.image = image
if format is not None:
self.format = format

@property
def image(self):
Expand All @@ -75,6 +80,29 @@ def image(self, image):

self._image = image

@property
def format(self):
"""Gets the format of this DocumentImage. # noqa: E501

Image format # noqa: E501

:return: The format of this DocumentImage. # noqa: E501
:rtype: str
"""
return self._format

@format.setter
def format(self, format):
"""Sets the format of this DocumentImage.

Image format # noqa: E501

:param format: The format of this DocumentImage. # noqa: E501
:type format: str
"""

self._format = format

def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


"""

Contains document image.
"""
class DocumentImageResult(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class GetTransactionsByTagResponse(object):
and the value is json key in definition.
"""
openapi_types = {
'id': 'int',
'id': 'str',
'state': 'int',
'updated_at': 'datetime'
}
Expand Down Expand Up @@ -68,7 +68,7 @@ def id(self):
Transaction id # noqa: E501

:return: The id of this GetTransactionsByTagResponse. # noqa: E501
:rtype: int
:rtype: str
"""
return self._id

Expand All @@ -79,7 +79,7 @@ def id(self, id):
Transaction id # noqa: E501

:param id: The id of this GetTransactionsByTagResponse. # noqa: E501
:type id: int
:type id: str
"""

self._id = id
Expand Down
Loading
Loading