diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 03293af..65d984d 100755 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -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 @@ -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 diff --git a/regula/documentreader/webclient/gen/__init__.py b/regula/documentreader/webclient/gen/__init__.py index 6434788..af78264 100755 --- a/regula/documentreader/webclient/gen/__init__.py +++ b/regula/documentreader/webclient/gen/__init__.py @@ -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 @@ -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 diff --git a/regula/documentreader/webclient/gen/api/healthcheck_api.py b/regula/documentreader/webclient/gen/api/healthcheck_api.py index 5abfd5b..98f5ad6 100644 --- a/regula/documentreader/webclient/gen/api/healthcheck_api.py +++ b/regula/documentreader/webclient/gen/api/healthcheck_api.py @@ -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 @@ -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 @@ -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() @@ -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( @@ -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 @@ -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 diff --git a/regula/documentreader/webclient/gen/api/transaction_api.py b/regula/documentreader/webclient/gen/api/transaction_api.py index 992003f..f708054 100644 --- a/regula/documentreader/webclient/gen/api/transaction_api.py +++ b/regula/documentreader/webclient/gen/api/transaction_api.py @@ -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 @@ -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 @@ -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. @@ -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. @@ -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 @@ -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 @@ -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. @@ -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. @@ -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. @@ -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. diff --git a/regula/documentreader/webclient/gen/models/__init__.py b/regula/documentreader/webclient/gen/models/__init__.py index c902658..35d2eb0 100755 --- a/regula/documentreader/webclient/gen/models/__init__.py +++ b/regula/documentreader/webclient/gen/models/__init__.py @@ -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 @@ -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 diff --git a/regula/documentreader/webclient/gen/models/document_image.py b/regula/documentreader/webclient/gen/models/document_image.py index 6a4bc03..8ce9b9f 100644 --- a/regula/documentreader/webclient/gen/models/document_image.py +++ b/regula/documentreader/webclient/gen/models/document_image.py @@ -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): @@ -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 = {} diff --git a/regula/documentreader/webclient/gen/models/document_image_result.py b/regula/documentreader/webclient/gen/models/document_image_result.py index 610be43..c43cd56 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 document image. """ class DocumentImageResult(object): """NOTE: This class is auto generated by OpenAPI Generator. 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..9d82027 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. diff --git a/regula/documentreader/webclient/gen/models/get_transactions_by_tag_response.py b/regula/documentreader/webclient/gen/models/get_transactions_by_tag_response.py index 9d1524c..c7f78dd 100644 --- a/regula/documentreader/webclient/gen/models/get_transactions_by_tag_response.py +++ b/regula/documentreader/webclient/gen/models/get_transactions_by_tag_response.py @@ -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' } @@ -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 @@ -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 diff --git a/regula/documentreader/webclient/gen/models/healthcheck.py b/regula/documentreader/webclient/gen/models/healthcheck.py new file mode 100644 index 0000000..e6232b4 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/healthcheck.py @@ -0,0 +1,310 @@ +# 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 Healthcheck(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': 'str', + 'license_id': 'str', + 'license_type': 'str', + 'license_serial': 'str', + 'license_valid_until': 'datetime', + 'scenarios': 'list[str]', + 'version': 'str', + 'documents_database': 'HealthcheckDocumentsDatabase' + } + + attribute_map = { + 'app': 'app', + 'license_id': 'licenseId', + 'license_type': 'licenseType', + 'license_serial': 'licenseSerial', + 'license_valid_until': 'licenseValidUntil', + 'scenarios': 'scenarios', + 'version': 'version', + 'documents_database': 'documentsDatabase' + } + + def __init__(self, app=None, license_id=None, license_type=None, license_serial=None, license_valid_until=None, scenarios=None, version=None, documents_database=None, local_vars_configuration=None): # noqa: E501 + """Healthcheck - 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 = None + self._license_id = None + self._license_type = None + self._license_serial = None + self._license_valid_until = None + self._scenarios = None + self._version = None + self._documents_database = None + self.discriminator = None + + self.app = app + self.license_id = license_id + self.license_type = license_type + self.license_serial = license_serial + self.license_valid_until = license_valid_until + self.scenarios = scenarios + self.version = version + if documents_database is not None: + self.documents_database = documents_database + + @property + def app(self): + """Gets the app of this Healthcheck. # noqa: E501 + + Application name. # noqa: E501 + + :return: The app of this Healthcheck. # noqa: E501 + :rtype: str + """ + return self._app + + @app.setter + def app(self, app): + """Sets the app of this Healthcheck. + + Application name. # noqa: E501 + + :param app: The app of this Healthcheck. # noqa: E501 + :type app: str + """ + if self.local_vars_configuration.client_side_validation and app is None: # noqa: E501 + raise ValueError("Invalid value for `app`, must not be `None`") # noqa: E501 + + self._app = app + + @property + def license_id(self): + """Gets the license_id of this Healthcheck. # noqa: E501 + + Unique license identifier. # noqa: E501 + + :return: The license_id of this Healthcheck. # noqa: E501 + :rtype: str + """ + return self._license_id + + @license_id.setter + def license_id(self, license_id): + """Sets the license_id of this Healthcheck. + + Unique license identifier. # noqa: E501 + + :param license_id: The license_id of this Healthcheck. # noqa: E501 + :type license_id: str + """ + + self._license_id = license_id + + @property + def license_type(self): + """Gets the license_type of this Healthcheck. # noqa: E501 + + License type. # noqa: E501 + + :return: The license_type of this Healthcheck. # noqa: E501 + :rtype: str + """ + return self._license_type + + @license_type.setter + def license_type(self, license_type): + """Sets the license_type of this Healthcheck. + + License type. # noqa: E501 + + :param license_type: The license_type of this Healthcheck. # noqa: E501 + :type license_type: str + """ + + self._license_type = license_type + + @property + def license_serial(self): + """Gets the license_serial of this Healthcheck. # noqa: E501 + + License serial number. # noqa: E501 + + :return: The license_serial of this Healthcheck. # noqa: E501 + :rtype: str + """ + return self._license_serial + + @license_serial.setter + def license_serial(self, license_serial): + """Sets the license_serial of this Healthcheck. + + License serial number. # noqa: E501 + + :param license_serial: The license_serial of this Healthcheck. # noqa: E501 + :type license_serial: str + """ + + self._license_serial = license_serial + + @property + def license_valid_until(self): + """Gets the license_valid_until of this Healthcheck. # noqa: E501 + + License validity date. # noqa: E501 + + :return: The license_valid_until of this Healthcheck. # noqa: E501 + :rtype: datetime + """ + return self._license_valid_until + + @license_valid_until.setter + def license_valid_until(self, license_valid_until): + """Sets the license_valid_until of this Healthcheck. + + License validity date. # noqa: E501 + + :param license_valid_until: The license_valid_until of this Healthcheck. # noqa: E501 + :type license_valid_until: datetime + """ + + self._license_valid_until = license_valid_until + + @property + def scenarios(self): + """Gets the scenarios of this Healthcheck. # noqa: E501 + + List of supported scenarios. # noqa: E501 + + :return: The scenarios of this Healthcheck. # noqa: E501 + :rtype: list[str] + """ + return self._scenarios + + @scenarios.setter + def scenarios(self, scenarios): + """Sets the scenarios of this Healthcheck. + + List of supported scenarios. # noqa: E501 + + :param scenarios: The scenarios of this Healthcheck. # noqa: E501 + :type scenarios: list[str] + """ + + self._scenarios = scenarios + + @property + def version(self): + """Gets the version of this Healthcheck. # noqa: E501 + + Product version. # noqa: E501 + + :return: The version of this Healthcheck. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this Healthcheck. + + Product version. # noqa: E501 + + :param version: The version of this Healthcheck. # noqa: E501 + :type version: str + """ + + self._version = version + + @property + def documents_database(self): + """Gets the documents_database of this Healthcheck. # noqa: E501 + + + :return: The documents_database of this Healthcheck. # noqa: E501 + :rtype: HealthcheckDocumentsDatabase + """ + return self._documents_database + + @documents_database.setter + def documents_database(self, documents_database): + """Sets the documents_database of this Healthcheck. + + + :param documents_database: The documents_database of this Healthcheck. # noqa: E501 + :type documents_database: HealthcheckDocumentsDatabase + """ + + self._documents_database = documents_database + + 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, Healthcheck): + 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, Healthcheck): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/healthcheck_documents_database.py b/regula/documentreader/webclient/gen/models/healthcheck_documents_database.py new file mode 100644 index 0000000..5433e08 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/healthcheck_documents_database.py @@ -0,0 +1,201 @@ +# 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 * + + +""" +Database information. +""" +class HealthcheckDocumentsDatabase(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 = { + 'id': 'str', + 'version': 'str', + 'export_date': 'date', + 'description': 'str' + } + + attribute_map = { + 'id': 'id', + 'version': 'version', + 'export_date': 'exportDate', + 'description': 'description' + } + + def __init__(self, id=None, version=None, export_date=None, description=None, local_vars_configuration=None): # noqa: E501 + """HealthcheckDocumentsDatabase - 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._id = None + self._version = None + self._export_date = None + self._description = None + self.discriminator = None + + self.id = id + self.version = version + self.export_date = export_date + self.description = description + + @property + def id(self): + """Gets the id of this HealthcheckDocumentsDatabase. # noqa: E501 + + Database identifier. # noqa: E501 + + :return: The id of this HealthcheckDocumentsDatabase. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this HealthcheckDocumentsDatabase. + + Database identifier. # noqa: E501 + + :param id: The id of this HealthcheckDocumentsDatabase. # noqa: E501 + :type id: str + """ + + self._id = id + + @property + def version(self): + """Gets the version of this HealthcheckDocumentsDatabase. # noqa: E501 + + Database version. # noqa: E501 + + :return: The version of this HealthcheckDocumentsDatabase. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this HealthcheckDocumentsDatabase. + + Database version. # noqa: E501 + + :param version: The version of this HealthcheckDocumentsDatabase. # noqa: E501 + :type version: str + """ + + self._version = version + + @property + def export_date(self): + """Gets the export_date of this HealthcheckDocumentsDatabase. # noqa: E501 + + Date of database creation. # noqa: E501 + + :return: The export_date of this HealthcheckDocumentsDatabase. # noqa: E501 + :rtype: date + """ + return self._export_date + + @export_date.setter + def export_date(self, export_date): + """Sets the export_date of this HealthcheckDocumentsDatabase. + + Date of database creation. # noqa: E501 + + :param export_date: The export_date of this HealthcheckDocumentsDatabase. # noqa: E501 + :type export_date: date + """ + + self._export_date = export_date + + @property + def description(self): + """Gets the description of this HealthcheckDocumentsDatabase. # noqa: E501 + + Description of the database contents, such as the list of supported countries and documents. # noqa: E501 + + :return: The description of this HealthcheckDocumentsDatabase. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this HealthcheckDocumentsDatabase. + + Description of the database contents, such as the list of supported countries and documents. # noqa: E501 + + :param description: The description of this HealthcheckDocumentsDatabase. # noqa: E501 + :type description: str + """ + + self._description = description + + 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, HealthcheckDocumentsDatabase): + 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, HealthcheckDocumentsDatabase): + return True + + return self.to_dict() != other.to_dict() diff --git a/regula/documentreader/webclient/gen/models/image_data.py b/regula/documentreader/webclient/gen/models/image_data.py index ba78c87..8a8a349 100755 --- a/regula/documentreader/webclient/gen/models/image_data.py +++ b/regula/documentreader/webclient/gen/models/image_data.py @@ -32,23 +32,28 @@ class ImageData(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 """ImageData - 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): @@ -75,6 +80,29 @@ def image(self, image): self._image = image + @property + def format(self): + """Gets the format of this ImageData. # noqa: E501 + + Image format # noqa: E501 + + :return: The format of this ImageData. # noqa: E501 + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this ImageData. + + Image format # noqa: E501 + + :param format: The format of this ImageData. # noqa: E501 + :type format: str + """ + + self._format = format + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/process_params.py b/regula/documentreader/webclient/gen/models/process_params.py index 989db25..8a6f231 100755 --- a/regula/documentreader/webclient/gen/models/process_params.py +++ b/regula/documentreader/webclient/gen/models/process_params.py @@ -60,6 +60,7 @@ class ProcessParams(object): 'check_required_text_fields': 'bool', 'return_cropped_barcode': 'bool', 'image_qa': 'ImageQA', + 'strict_image_quality': 'bool', 'respect_image_quality': 'bool', 'force_doc_format': 'DocumentFormat', 'no_graphics': 'bool', @@ -85,7 +86,8 @@ class ProcessParams(object): 'check_auth': 'bool', 'auth_params': 'AuthParams', 'mrz_detect_mode': 'MrzDetectModeEnum', - 'generate_numeric_codes': 'bool' + 'generate_numeric_codes': 'bool', + 'strict_barcode_digital_signature_check': 'bool' } attribute_map = { @@ -117,6 +119,7 @@ class ProcessParams(object): 'check_required_text_fields': 'checkRequiredTextFields', 'return_cropped_barcode': 'returnCroppedBarcode', 'image_qa': 'imageQa', + 'strict_image_quality': 'strictImageQuality', 'respect_image_quality': 'respectImageQuality', 'force_doc_format': 'forceDocFormat', 'no_graphics': 'noGraphics', @@ -142,10 +145,11 @@ class ProcessParams(object): 'check_auth': 'checkAuth', 'auth_params': 'authParams', 'mrz_detect_mode': 'mrzDetectMode', - 'generate_numeric_codes': 'generateNumericCodes' + 'generate_numeric_codes': 'generateNumericCodes', + 'strict_barcode_digital_signature_check': 'strictBarcodeDigitalSignatureCheck' } - 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, 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, strict_image_quality=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, strict_barcode_digital_signature_check=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() @@ -179,6 +183,7 @@ def __init__(self, lcid_filter=None, lcid_ignore_filter=None, one_shot_identific self._check_required_text_fields = None self._return_cropped_barcode = None self._image_qa = None + self._strict_image_quality = None self._respect_image_quality = None self._force_doc_format = None self._no_graphics = None @@ -205,6 +210,7 @@ def __init__(self, lcid_filter=None, lcid_ignore_filter=None, one_shot_identific self._auth_params = None self._mrz_detect_mode = None self._generate_numeric_codes = None + self._strict_barcode_digital_signature_check = None self.discriminator = None if lcid_filter is not None: @@ -262,6 +268,8 @@ def __init__(self, lcid_filter=None, lcid_ignore_filter=None, one_shot_identific self.return_cropped_barcode = return_cropped_barcode if image_qa is not None: self.image_qa = image_qa + if strict_image_quality is not None: + self.strict_image_quality = strict_image_quality if respect_image_quality is not None: self.respect_image_quality = respect_image_quality if force_doc_format is not None: @@ -314,6 +322,8 @@ def __init__(self, lcid_filter=None, lcid_ignore_filter=None, one_shot_identific self.mrz_detect_mode = mrz_detect_mode if generate_numeric_codes is not None: self.generate_numeric_codes = generate_numeric_codes + if strict_barcode_digital_signature_check is not None: + self.strict_barcode_digital_signature_check = strict_barcode_digital_signature_check @property def lcid_filter(self): @@ -951,11 +961,34 @@ def image_qa(self, image_qa): self._image_qa = image_qa + @property + def strict_image_quality(self): + """Gets the strict_image_quality of this ProcessParams. # noqa: E501 + + When enabled, the image quality check status affects the document optical and overall status. Disabled by default. # noqa: E501 + + :return: The strict_image_quality of this ProcessParams. # noqa: E501 + :rtype: bool + """ + return self._strict_image_quality + + @strict_image_quality.setter + def strict_image_quality(self, strict_image_quality): + """Sets the strict_image_quality of this ProcessParams. + + When enabled, the image quality check status affects the document optical and overall status. Disabled by default. # noqa: E501 + + :param strict_image_quality: The strict_image_quality of this ProcessParams. # noqa: E501 + :type strict_image_quality: bool + """ + + self._strict_image_quality = strict_image_quality + @property def respect_image_quality(self): """Gets the respect_image_quality of this ProcessParams. # noqa: E501 - When enabled, image quality checks status affects document optical and overall status. Disabled by default. # noqa: E501 + Deprecated. Please use strictImageQuality instead. When enabled, image quality checks status affects document optical and overall status. Disabled by default. # noqa: E501 :return: The respect_image_quality of this ProcessParams. # noqa: E501 :rtype: bool @@ -966,7 +999,7 @@ def respect_image_quality(self): def respect_image_quality(self, respect_image_quality): """Sets the respect_image_quality of this ProcessParams. - When enabled, image quality checks status affects document optical and overall status. Disabled by default. # noqa: E501 + Deprecated. Please use strictImageQuality instead. When enabled, image quality checks status affects document optical and overall status. Disabled by default. # noqa: E501 :param respect_image_quality: The respect_image_quality of this ProcessParams. # noqa: E501 :type respect_image_quality: bool @@ -1539,6 +1572,29 @@ def generate_numeric_codes(self, generate_numeric_codes): self._generate_numeric_codes = generate_numeric_codes + @property + def strict_barcode_digital_signature_check(self): + """Gets the strict_barcode_digital_signature_check of this ProcessParams. # noqa: E501 + + This parameter if enabled will require all necessary certificates to verify digital signature in barcode data to be present in order for the Barcode format check to succeed. # noqa: E501 + + :return: The strict_barcode_digital_signature_check of this ProcessParams. # noqa: E501 + :rtype: bool + """ + return self._strict_barcode_digital_signature_check + + @strict_barcode_digital_signature_check.setter + def strict_barcode_digital_signature_check(self, strict_barcode_digital_signature_check): + """Sets the strict_barcode_digital_signature_check of this ProcessParams. + + This parameter if enabled will require all necessary certificates to verify digital signature in barcode data to be present in order for the Barcode format check to succeed. # noqa: E501 + + :param strict_barcode_digital_signature_check: The strict_barcode_digital_signature_check of this ProcessParams. # noqa: E501 + :type strict_barcode_digital_signature_check: bool + """ + + self._strict_barcode_digital_signature_check = strict_barcode_digital_signature_check + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/process_request.py b/regula/documentreader/webclient/gen/models/process_request.py index 719fb6f..977adf2 100755 --- a/regula/documentreader/webclient/gen/models/process_request.py +++ b/regula/documentreader/webclient/gen/models/process_request.py @@ -41,7 +41,8 @@ class ProcessRequest(object): 'ext_portrait': 'str', 'container_list': 'ContainerList', 'system_info': 'ProcessSystemInfo', - 'pass_back_object': 'dict(str, object)' + 'pass_back_object': 'dict(str, object)', + 'image_urls': 'list[str]' } attribute_map = { @@ -54,10 +55,11 @@ class ProcessRequest(object): 'ext_portrait': 'extPortrait', 'container_list': 'ContainerList', 'system_info': 'systemInfo', - 'pass_back_object': 'passBackObject' + 'pass_back_object': 'passBackObject', + 'image_urls': 'ImageUrls' } - 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, 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, image_urls=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() @@ -73,6 +75,7 @@ def __init__(self, process_param=None, list=None, tag=None, tenant=None, env=Non self._container_list = None self._system_info = None self._pass_back_object = None + self._image_urls = None self.discriminator = None self.process_param = process_param @@ -94,6 +97,8 @@ def __init__(self, process_param=None, list=None, tag=None, tenant=None, env=Non self.system_info = system_info if pass_back_object is not None: self.pass_back_object = pass_back_object + if image_urls is not None: + self.image_urls = image_urls @property def process_param(self): @@ -319,6 +324,29 @@ def pass_back_object(self, pass_back_object): self._pass_back_object = pass_back_object + @property + def image_urls(self): + """Gets the image_urls of this ProcessRequest. # noqa: E501 + + URLs to the document images for processing. # noqa: E501 + + :return: The image_urls of this ProcessRequest. # noqa: E501 + :rtype: list[str] + """ + return self._image_urls + + @image_urls.setter + def image_urls(self, image_urls): + """Sets the image_urls of this ProcessRequest. + + URLs to the document images for processing. # noqa: E501 + + :param image_urls: The image_urls of this ProcessRequest. # noqa: E501 + :type image_urls: list[str] + """ + + self._image_urls = image_urls + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/result_item.py b/regula/documentreader/webclient/gen/models/result_item.py index 41c2c6c..31cc982 100755 --- a/regula/documentreader/webclient/gen/models/result_item.py +++ b/regula/documentreader/webclient/gen/models/result_item.py @@ -51,6 +51,7 @@ class ResultItem(object): 102 : 'TextDataResult', 103 : 'GraphicsResult', 15 : 'LexicalAnalysisResult', + 16 : 'DocumentImageResult', 17 : 'TextDataResult', 18 : 'TextDataResult', 19 : 'GraphicsResult', diff --git a/regula/documentreader/webclient/gen/models/transaction_process_get_response.py b/regula/documentreader/webclient/gen/models/transaction_process_get_response.py index ddab9f3..ed842b8 100644 --- a/regula/documentreader/webclient/gen/models/transaction_process_get_response.py +++ b/regula/documentreader/webclient/gen/models/transaction_process_get_response.py @@ -32,7 +32,7 @@ class TransactionProcessGetResponse(object): and the value is json key in definition. """ openapi_types = { - 'transaction_id': 'int', + 'transaction_id': 'str', 'tag': 'str', 'out_data': 'OutData', 'in_data': 'InData' @@ -72,7 +72,7 @@ def transaction_id(self): :return: The transaction_id of this TransactionProcessGetResponse. # noqa: E501 - :rtype: int + :rtype: str """ return self._transaction_id @@ -82,7 +82,7 @@ def transaction_id(self, transaction_id): :param transaction_id: The transaction_id of this TransactionProcessGetResponse. # noqa: E501 - :type transaction_id: int + :type transaction_id: str """ self._transaction_id = transaction_id