Skip to content

Commit

Permalink
Merge pull request #112 from regulaforensics/2f129802
Browse files Browse the repository at this point in the history
update
  • Loading branch information
GubinAlexander authored Feb 27, 2024
2 parents 470fa55 + 99f4dca commit 61709bd
Show file tree
Hide file tree
Showing 8 changed files with 271 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion regula/documentreader/webclient/gen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
21 changes: 5 additions & 16 deletions regula/documentreader/webclient/gen/api/transaction_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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(
Expand All @@ -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
Expand All @@ -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 = {}
Expand Down
2 changes: 1 addition & 1 deletion regula/documentreader/webclient/gen/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
34 changes: 4 additions & 30 deletions regula/documentreader/webclient/gen/models/in_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -109,7 +83,7 @@ def images(self):
:return: The images of this InData. # noqa: E501
:rtype: list[ImageTransactionData]
:rtype: list[TransactionImagesFieldValue]
"""
return self._images

Expand All @@ -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
Expand Down
36 changes: 31 additions & 5 deletions regula/documentreader/webclient/gen/models/out_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -66,14 +71,35 @@ 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
"""

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 = {}
Expand Down
Loading

0 comments on commit 61709bd

Please sign in to comment.