diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 9997179..bf1a063 100755 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -77,7 +77,6 @@ regula/documentreader/webclient/gen/models/images_field_value.py regula/documentreader/webclient/gen/models/images_result.py regula/documentreader/webclient/gen/models/images_result_all_of.py regula/documentreader/webclient/gen/models/in_data.py -regula/documentreader/webclient/gen/models/in_data_rfid_session.py regula/documentreader/webclient/gen/models/in_data_video.py regula/documentreader/webclient/gen/models/inline_response200.py regula/documentreader/webclient/gen/models/inline_response2001.py @@ -141,6 +140,7 @@ regula/documentreader/webclient/gen/models/text_post_processing.py regula/documentreader/webclient/gen/models/text_result.py regula/documentreader/webclient/gen/models/text_result_all_of.py regula/documentreader/webclient/gen/models/transaction_image.py +regula/documentreader/webclient/gen/models/transaction_images_field_value.py regula/documentreader/webclient/gen/models/transaction_info.py regula/documentreader/webclient/gen/models/transaction_process_get_response.py regula/documentreader/webclient/gen/models/transaction_process_request.py diff --git a/regula/documentreader/webclient/gen/__init__.py b/regula/documentreader/webclient/gen/__init__.py index 067ccb3..8c4a78b 100755 --- a/regula/documentreader/webclient/gen/__init__.py +++ b/regula/documentreader/webclient/gen/__init__.py @@ -95,7 +95,6 @@ from regula.documentreader.webclient.gen.models.images_result import ImagesResult from regula.documentreader.webclient.gen.models.images_result_all_of import ImagesResultAllOf from regula.documentreader.webclient.gen.models.in_data import InData -from regula.documentreader.webclient.gen.models.in_data_rfid_session import InDataRfidSession from regula.documentreader.webclient.gen.models.in_data_video import InDataVideo from regula.documentreader.webclient.gen.models.inline_response200 import InlineResponse200 from regula.documentreader.webclient.gen.models.inline_response2001 import InlineResponse2001 @@ -159,6 +158,7 @@ from regula.documentreader.webclient.gen.models.text_result import TextResult from regula.documentreader.webclient.gen.models.text_result_all_of import TextResultAllOf from regula.documentreader.webclient.gen.models.transaction_image import TransactionImage +from regula.documentreader.webclient.gen.models.transaction_images_field_value import TransactionImagesFieldValue from regula.documentreader.webclient.gen.models.transaction_info import TransactionInfo from regula.documentreader.webclient.gen.models.transaction_process_get_response import TransactionProcessGetResponse from regula.documentreader.webclient.gen.models.transaction_process_request import TransactionProcessRequest diff --git a/regula/documentreader/webclient/gen/api/transaction_api.py b/regula/documentreader/webclient/gen/api/transaction_api.py index bf0fba7..18866a0 100644 --- a/regula/documentreader/webclient/gen/api/transaction_api.py +++ b/regula/documentreader/webclient/gen/api/transaction_api.py @@ -300,19 +300,17 @@ def api_v2_transaction_transaction_id_get_with_http_info(self, transaction_id, * collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) - def api_v2_transaction_transaction_id_process_post(self, transaction_id, x_client_key, transaction_process_request, **kwargs): # noqa: E501 + def api_v2_transaction_transaction_id_process_post(self, transaction_id, transaction_process_request, **kwargs): # noqa: E501 """Preprocess # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_v2_transaction_transaction_id_process_post(transaction_id, x_client_key, transaction_process_request, async_req=True) + >>> thread = api.api_v2_transaction_transaction_id_process_post(transaction_id, transaction_process_request, async_req=True) >>> result = thread.get() :param transaction_id: Transaction id (required) :type transaction_id: int - :param x_client_key: (required) - :type x_client_key: str :param transaction_process_request: (required) :type transaction_process_request: TransactionProcessRequest :param async_req: Whether to execute the request asynchronously. @@ -331,21 +329,19 @@ def api_v2_transaction_transaction_id_process_post(self, transaction_id, x_clien :rtype: InlineResponse200 """ kwargs['_return_http_data_only'] = True - return self.api_v2_transaction_transaction_id_process_post_with_http_info(transaction_id, x_client_key, transaction_process_request, **kwargs) # noqa: E501 + return self.api_v2_transaction_transaction_id_process_post_with_http_info(transaction_id, transaction_process_request, **kwargs) # noqa: E501 - def api_v2_transaction_transaction_id_process_post_with_http_info(self, transaction_id, x_client_key, transaction_process_request, **kwargs): # noqa: E501 + def api_v2_transaction_transaction_id_process_post_with_http_info(self, transaction_id, transaction_process_request, **kwargs): # noqa: E501 """Preprocess # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_v2_transaction_transaction_id_process_post_with_http_info(transaction_id, x_client_key, transaction_process_request, async_req=True) + >>> thread = api.api_v2_transaction_transaction_id_process_post_with_http_info(transaction_id, transaction_process_request, async_req=True) >>> result = thread.get() :param transaction_id: Transaction id (required) :type transaction_id: int - :param x_client_key: (required) - :type x_client_key: str :param transaction_process_request: (required) :type transaction_process_request: TransactionProcessRequest :param async_req: Whether to execute the request asynchronously. @@ -375,7 +371,6 @@ def api_v2_transaction_transaction_id_process_post_with_http_info(self, transact all_params = [ 'transaction_id', - 'x_client_key', 'transaction_process_request' ] all_params.extend( @@ -400,10 +395,6 @@ def api_v2_transaction_transaction_id_process_post_with_http_info(self, transact if self.api_client.client_side_validation and ('transaction_id' not in local_var_params or # noqa: E501 local_var_params['transaction_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `transaction_id` when calling `api_v2_transaction_transaction_id_process_post`") # noqa: E501 - # verify the required parameter 'x_client_key' is set - if self.api_client.client_side_validation and ('x_client_key' not in local_var_params or # noqa: E501 - local_var_params['x_client_key'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `x_client_key` when calling `api_v2_transaction_transaction_id_process_post`") # noqa: E501 # verify the required parameter 'transaction_process_request' is set if self.api_client.client_side_validation and ('transaction_process_request' not in local_var_params or # noqa: E501 local_var_params['transaction_process_request'] is None): # noqa: E501 @@ -418,8 +409,6 @@ def api_v2_transaction_transaction_id_process_post_with_http_info(self, transact query_params = [] header_params = {} - if 'x_client_key' in local_var_params: - header_params['X-CLIENT-KEY'] = local_var_params['x_client_key'] # noqa: E501 form_params = [] local_var_files = {} diff --git a/regula/documentreader/webclient/gen/models/__init__.py b/regula/documentreader/webclient/gen/models/__init__.py index 05aee1e..2795c4d 100755 --- a/regula/documentreader/webclient/gen/models/__init__.py +++ b/regula/documentreader/webclient/gen/models/__init__.py @@ -78,7 +78,6 @@ from regula.documentreader.webclient.gen.models.images_result import ImagesResult from regula.documentreader.webclient.gen.models.images_result_all_of import ImagesResultAllOf from regula.documentreader.webclient.gen.models.in_data import InData -from regula.documentreader.webclient.gen.models.in_data_rfid_session import InDataRfidSession from regula.documentreader.webclient.gen.models.in_data_video import InDataVideo from regula.documentreader.webclient.gen.models.inline_response200 import InlineResponse200 from regula.documentreader.webclient.gen.models.inline_response2001 import InlineResponse2001 @@ -142,6 +141,7 @@ from regula.documentreader.webclient.gen.models.text_result import TextResult from regula.documentreader.webclient.gen.models.text_result_all_of import TextResultAllOf from regula.documentreader.webclient.gen.models.transaction_image import TransactionImage +from regula.documentreader.webclient.gen.models.transaction_images_field_value import TransactionImagesFieldValue from regula.documentreader.webclient.gen.models.transaction_info import TransactionInfo from regula.documentreader.webclient.gen.models.transaction_process_get_response import TransactionProcessGetResponse from regula.documentreader.webclient.gen.models.transaction_process_request import TransactionProcessRequest diff --git a/regula/documentreader/webclient/gen/models/image_quality_check_type.py b/regula/documentreader/webclient/gen/models/image_quality_check_type.py index d3d4b68..645d478 100644 --- a/regula/documentreader/webclient/gen/models/image_quality_check_type.py +++ b/regula/documentreader/webclient/gen/models/image_quality_check_type.py @@ -40,7 +40,7 @@ class ImageQualityCheckType(object): Portrait = int("7") - Brightness = int("8") + Brightness = int("9") allowable_values = [ImageGlares, ImageFocus, ImageResolution, ImageColorness, Perspective, Bounds, ScreenCapture, Portrait, Brightness] # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/in_data.py b/regula/documentreader/webclient/gen/models/in_data.py index 40fc58d..c9790cd 100644 --- a/regula/documentreader/webclient/gen/models/in_data.py +++ b/regula/documentreader/webclient/gen/models/in_data.py @@ -32,56 +32,30 @@ class InData(object): and the value is json key in definition. """ openapi_types = { - 'rfid_session': 'InDataRfidSession', 'video': 'InDataVideo', - 'images': 'list[ImageTransactionData]' + 'images': 'list[TransactionImagesFieldValue]' } attribute_map = { - 'rfid_session': 'rfidSession', 'video': 'video', 'images': 'images' } - def __init__(self, rfid_session=None, video=None, images=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, video=None, images=None, local_vars_configuration=None): # noqa: E501 """InData - 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._rfid_session = None self._video = None self._images = None self.discriminator = None - if rfid_session is not None: - self.rfid_session = rfid_session if video is not None: self.video = video if images is not None: self.images = images - @property - def rfid_session(self): - """Gets the rfid_session of this InData. # noqa: E501 - - - :return: The rfid_session of this InData. # noqa: E501 - :rtype: InDataRfidSession - """ - return self._rfid_session - - @rfid_session.setter - def rfid_session(self, rfid_session): - """Sets the rfid_session of this InData. - - - :param rfid_session: The rfid_session of this InData. # noqa: E501 - :type rfid_session: InDataRfidSession - """ - - self._rfid_session = rfid_session - @property def video(self): """Gets the video of this InData. # noqa: E501 @@ -109,7 +83,7 @@ def images(self): :return: The images of this InData. # noqa: E501 - :rtype: list[ImageTransactionData] + :rtype: list[TransactionImagesFieldValue] """ return self._images @@ -119,7 +93,7 @@ def images(self, images): :param images: The images of this InData. # noqa: E501 - :type images: list[ImageTransactionData] + :type images: list[TransactionImagesFieldValue] """ self._images = images diff --git a/regula/documentreader/webclient/gen/models/out_data.py b/regula/documentreader/webclient/gen/models/out_data.py index d340129..14b806b 100644 --- a/regula/documentreader/webclient/gen/models/out_data.py +++ b/regula/documentreader/webclient/gen/models/out_data.py @@ -32,30 +32,35 @@ class OutData(object): and the value is json key in definition. """ openapi_types = { - 'url': 'str' + 'url': 'str', + 'images': 'list[TransactionImagesFieldValue]' } attribute_map = { - 'url': 'url' + 'url': 'url', + 'images': 'images' } - def __init__(self, url=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, url=None, images=None, local_vars_configuration=None): # noqa: E501 """OutData - 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._url = None + self._images = None self.discriminator = None if url is not None: self.url = url + if images is not None: + self.images = images @property def url(self): """Gets the url of this OutData. # noqa: E501 - Image url # noqa: E501 + Response url # noqa: E501 :return: The url of this OutData. # noqa: E501 :rtype: str @@ -66,7 +71,7 @@ def url(self): def url(self, url): """Sets the url of this OutData. - Image url # noqa: E501 + Response url # noqa: E501 :param url: The url of this OutData. # noqa: E501 :type url: str @@ -74,6 +79,27 @@ def url(self, url): self._url = url + @property + def images(self): + """Gets the images of this OutData. # noqa: E501 + + + :return: The images of this OutData. # noqa: E501 + :rtype: list[TransactionImagesFieldValue] + """ + return self._images + + @images.setter + def images(self, images): + """Sets the images of this OutData. + + + :param images: The images of this OutData. # noqa: E501 + :type images: list[TransactionImagesFieldValue] + """ + + self._images = images + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/transaction_images_field_value.py b/regula/documentreader/webclient/gen/models/transaction_images_field_value.py new file mode 100644 index 0000000..90e28f0 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/transaction_images_field_value.py @@ -0,0 +1,227 @@ +# 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 TransactionImagesFieldValue(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': 'GraphicFieldType', + 'light': 'Light', + 'list_idx': 'int', + 'page_idx': 'int', + 'url': 'str' + } + + attribute_map = { + 'field_type': 'fieldType', + 'light': 'light', + 'list_idx': 'listIdx', + 'page_idx': 'pageIdx', + 'url': 'url' + } + + def __init__(self, field_type=None, light=None, list_idx=None, page_idx=None, url=None, local_vars_configuration=None): # noqa: E501 + """TransactionImagesFieldValue - 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._light = None + self._list_idx = None + self._page_idx = None + self._url = None + self.discriminator = None + + if field_type is not None: + self.field_type = field_type + if light is not None: + self.light = light + if list_idx is not None: + self.list_idx = list_idx + if page_idx is not None: + self.page_idx = page_idx + if url is not None: + self.url = url + + @property + def field_type(self): + """Gets the field_type of this TransactionImagesFieldValue. # noqa: E501 + + + :return: The field_type of this TransactionImagesFieldValue. # noqa: E501 + :rtype: GraphicFieldType + """ + return self._field_type + + @field_type.setter + def field_type(self, field_type): + """Sets the field_type of this TransactionImagesFieldValue. + + + :param field_type: The field_type of this TransactionImagesFieldValue. # noqa: E501 + :type field_type: GraphicFieldType + """ + + self._field_type = field_type + + @property + def light(self): + """Gets the light of this TransactionImagesFieldValue. # noqa: E501 + + + :return: The light of this TransactionImagesFieldValue. # noqa: E501 + :rtype: Light + """ + return self._light + + @light.setter + def light(self, light): + """Sets the light of this TransactionImagesFieldValue. + + + :param light: The light of this TransactionImagesFieldValue. # noqa: E501 + :type light: Light + """ + + self._light = light + + @property + def list_idx(self): + """Gets the list_idx of this TransactionImagesFieldValue. # noqa: E501 + + + :return: The list_idx of this TransactionImagesFieldValue. # noqa: E501 + :rtype: int + """ + return self._list_idx + + @list_idx.setter + def list_idx(self, list_idx): + """Sets the list_idx of this TransactionImagesFieldValue. + + + :param list_idx: The list_idx of this TransactionImagesFieldValue. # noqa: E501 + :type list_idx: int + """ + + self._list_idx = list_idx + + @property + def page_idx(self): + """Gets the page_idx of this TransactionImagesFieldValue. # noqa: E501 + + Page index of the image from input list # noqa: E501 + + :return: The page_idx of this TransactionImagesFieldValue. # noqa: E501 + :rtype: int + """ + return self._page_idx + + @page_idx.setter + def page_idx(self, page_idx): + """Sets the page_idx of this TransactionImagesFieldValue. + + Page index of the image from input list # noqa: E501 + + :param page_idx: The page_idx of this TransactionImagesFieldValue. # noqa: E501 + :type page_idx: int + """ + + self._page_idx = page_idx + + @property + def url(self): + """Gets the url of this TransactionImagesFieldValue. # noqa: E501 + + Image url # noqa: E501 + + :return: The url of this TransactionImagesFieldValue. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this TransactionImagesFieldValue. + + Image url # noqa: E501 + + :param url: The url of this TransactionImagesFieldValue. # noqa: E501 + :type url: str + """ + + self._url = url + + 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, TransactionImagesFieldValue): + 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, TransactionImagesFieldValue): + return True + + return self.to_dict() != other.to_dict()