Skip to content

Commit 33ab3e7

Browse files
committed
Regenerate models from latest definitions
1 parent baf558a commit 33ab3e7

File tree

10 files changed

+46
-46
lines changed

10 files changed

+46
-46
lines changed

.openapi-generator/FILES

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ regula/documentreader/webclient/gen/models/details_rfid.py
1717
regula/documentreader/webclient/gen/models/doc_visual_extended_field.py
1818
regula/documentreader/webclient/gen/models/doc_visual_extended_info.py
1919
regula/documentreader/webclient/gen/models/document_format.py
20+
regula/documentreader/webclient/gen/models/document_image_result.py
21+
regula/documentreader/webclient/gen/models/document_image_result_all_of.py
2022
regula/documentreader/webclient/gen/models/document_type.py
2123
regula/documentreader/webclient/gen/models/document_type_recognition_result.py
2224
regula/documentreader/webclient/gen/models/document_types_candidates_list.py
@@ -47,8 +49,6 @@ regula/documentreader/webclient/gen/models/process_request_image.py
4749
regula/documentreader/webclient/gen/models/process_response.py
4850
regula/documentreader/webclient/gen/models/process_system_info.py
4951
regula/documentreader/webclient/gen/models/processing_status.py
50-
regula/documentreader/webclient/gen/models/raw_image_result.py
51-
regula/documentreader/webclient/gen/models/raw_image_result_all_of.py
5252
regula/documentreader/webclient/gen/models/rectangle_coordinates.py
5353
regula/documentreader/webclient/gen/models/result.py
5454
regula/documentreader/webclient/gen/models/result_item.py

Pipfile.lock

100644100755
File mode changed.

example/Pipfile.lock

100644100755
File mode changed.

regula/documentreader/webclient/ext/models/images.py

100644100755
File mode changed.

regula/documentreader/webclient/gen/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
from regula.documentreader.webclient.gen.models.doc_visual_extended_field import DocVisualExtendedField
4040
from regula.documentreader.webclient.gen.models.doc_visual_extended_info import DocVisualExtendedInfo
4141
from regula.documentreader.webclient.gen.models.document_format import DocumentFormat
42+
from regula.documentreader.webclient.gen.models.document_image_result import DocumentImageResult
43+
from regula.documentreader.webclient.gen.models.document_image_result_all_of import DocumentImageResultAllOf
4244
from regula.documentreader.webclient.gen.models.document_type import DocumentType
4345
from regula.documentreader.webclient.gen.models.document_type_recognition_result import DocumentTypeRecognitionResult
4446
from regula.documentreader.webclient.gen.models.document_types_candidates_list import DocumentTypesCandidatesList
@@ -69,8 +71,6 @@
6971
from regula.documentreader.webclient.gen.models.process_response import ProcessResponse
7072
from regula.documentreader.webclient.gen.models.process_system_info import ProcessSystemInfo
7173
from regula.documentreader.webclient.gen.models.processing_status import ProcessingStatus
72-
from regula.documentreader.webclient.gen.models.raw_image_result import RawImageResult
73-
from regula.documentreader.webclient.gen.models.raw_image_result_all_of import RawImageResultAllOf
7474
from regula.documentreader.webclient.gen.models.rectangle_coordinates import RectangleCoordinates
7575
from regula.documentreader.webclient.gen.models.result import Result
7676
from regula.documentreader.webclient.gen.models.result_item import ResultItem

regula/documentreader/webclient/gen/models/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
from regula.documentreader.webclient.gen.models.doc_visual_extended_field import DocVisualExtendedField
2525
from regula.documentreader.webclient.gen.models.doc_visual_extended_info import DocVisualExtendedInfo
2626
from regula.documentreader.webclient.gen.models.document_format import DocumentFormat
27+
from regula.documentreader.webclient.gen.models.document_image_result import DocumentImageResult
28+
from regula.documentreader.webclient.gen.models.document_image_result_all_of import DocumentImageResultAllOf
2729
from regula.documentreader.webclient.gen.models.document_type import DocumentType
2830
from regula.documentreader.webclient.gen.models.document_type_recognition_result import DocumentTypeRecognitionResult
2931
from regula.documentreader.webclient.gen.models.document_types_candidates_list import DocumentTypesCandidatesList
@@ -54,8 +56,6 @@
5456
from regula.documentreader.webclient.gen.models.process_response import ProcessResponse
5557
from regula.documentreader.webclient.gen.models.process_system_info import ProcessSystemInfo
5658
from regula.documentreader.webclient.gen.models.processing_status import ProcessingStatus
57-
from regula.documentreader.webclient.gen.models.raw_image_result import RawImageResult
58-
from regula.documentreader.webclient.gen.models.raw_image_result_all_of import RawImageResultAllOf
5959
from regula.documentreader.webclient.gen.models.rectangle_coordinates import RectangleCoordinates
6060
from regula.documentreader.webclient.gen.models.result import Result
6161
from regula.documentreader.webclient.gen.models.result_item import ResultItem

regula/documentreader/webclient/gen/models/raw_image_result.py renamed to regula/documentreader/webclient/gen/models/document_image_result.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from regula.documentreader.webclient.gen.models import *
2121

2222

23-
class RawImageResult(object):
23+
class DocumentImageResult(object):
2424
"""NOTE: This class is auto generated by OpenAPI Generator.
2525
Ref: https://openapi-generator.tech
2626
@@ -53,7 +53,7 @@ class RawImageResult(object):
5353
}
5454

5555
def __init__(self, buf_length=None, light=None, list_idx=None, page_idx=None, result_type=None, raw_image_container=None, local_vars_configuration=None): # noqa: E501
56-
"""RawImageResult - a model defined in OpenAPI""" # noqa: E501
56+
"""DocumentImageResult - a model defined in OpenAPI""" # noqa: E501
5757
if local_vars_configuration is None:
5858
local_vars_configuration = Configuration()
5959
self.local_vars_configuration = local_vars_configuration
@@ -79,106 +79,106 @@ def __init__(self, buf_length=None, light=None, list_idx=None, page_idx=None, re
7979

8080
@property
8181
def buf_length(self):
82-
"""Gets the buf_length of this RawImageResult. # noqa: E501
82+
"""Gets the buf_length of this DocumentImageResult. # noqa: E501
8383
8484
85-
:return: The buf_length of this RawImageResult. # noqa: E501
85+
:return: The buf_length of this DocumentImageResult. # noqa: E501
8686
:rtype: int
8787
"""
8888
return self._buf_length
8989

9090
@buf_length.setter
9191
def buf_length(self, buf_length):
92-
"""Sets the buf_length of this RawImageResult.
92+
"""Sets the buf_length of this DocumentImageResult.
9393
9494
95-
:param buf_length: The buf_length of this RawImageResult. # noqa: E501
95+
:param buf_length: The buf_length of this DocumentImageResult. # noqa: E501
9696
:type buf_length: int
9797
"""
9898

9999
self._buf_length = buf_length
100100

101101
@property
102102
def light(self):
103-
"""Gets the light of this RawImageResult. # noqa: E501
103+
"""Gets the light of this DocumentImageResult. # noqa: E501
104104
105105
106-
:return: The light of this RawImageResult. # noqa: E501
106+
:return: The light of this DocumentImageResult. # noqa: E501
107107
:rtype: int
108108
"""
109109
return self._light
110110

111111
@light.setter
112112
def light(self, light):
113-
"""Sets the light of this RawImageResult.
113+
"""Sets the light of this DocumentImageResult.
114114
115115
116-
:param light: The light of this RawImageResult. # noqa: E501
116+
:param light: The light of this DocumentImageResult. # noqa: E501
117117
:type light: int
118118
"""
119119

120120
self._light = light
121121

122122
@property
123123
def list_idx(self):
124-
"""Gets the list_idx of this RawImageResult. # noqa: E501
124+
"""Gets the list_idx of this DocumentImageResult. # noqa: E501
125125
126126
127-
:return: The list_idx of this RawImageResult. # noqa: E501
127+
:return: The list_idx of this DocumentImageResult. # noqa: E501
128128
:rtype: int
129129
"""
130130
return self._list_idx
131131

132132
@list_idx.setter
133133
def list_idx(self, list_idx):
134-
"""Sets the list_idx of this RawImageResult.
134+
"""Sets the list_idx of this DocumentImageResult.
135135
136136
137-
:param list_idx: The list_idx of this RawImageResult. # noqa: E501
137+
:param list_idx: The list_idx of this DocumentImageResult. # noqa: E501
138138
:type list_idx: int
139139
"""
140140

141141
self._list_idx = list_idx
142142

143143
@property
144144
def page_idx(self):
145-
"""Gets the page_idx of this RawImageResult. # noqa: E501
145+
"""Gets the page_idx of this DocumentImageResult. # noqa: E501
146146
147147
148-
:return: The page_idx of this RawImageResult. # noqa: E501
148+
:return: The page_idx of this DocumentImageResult. # noqa: E501
149149
:rtype: int
150150
"""
151151
return self._page_idx
152152

153153
@page_idx.setter
154154
def page_idx(self, page_idx):
155-
"""Sets the page_idx of this RawImageResult.
155+
"""Sets the page_idx of this DocumentImageResult.
156156
157157
158-
:param page_idx: The page_idx of this RawImageResult. # noqa: E501
158+
:param page_idx: The page_idx of this DocumentImageResult. # noqa: E501
159159
:type page_idx: int
160160
"""
161161

162162
self._page_idx = page_idx
163163

164164
@property
165165
def result_type(self):
166-
"""Gets the result_type of this RawImageResult. # noqa: E501
166+
"""Gets the result_type of this DocumentImageResult. # noqa: E501
167167
168168
Same as Result type, but used for safe parsing of not-described values. See Result type. # noqa: E501
169169
170-
:return: The result_type of this RawImageResult. # noqa: E501
170+
:return: The result_type of this DocumentImageResult. # noqa: E501
171171
:rtype: int
172172
"""
173173
return self._result_type
174174

175175
@result_type.setter
176176
def result_type(self, result_type):
177-
"""Sets the result_type of this RawImageResult.
177+
"""Sets the result_type of this DocumentImageResult.
178178
179179
Same as Result type, but used for safe parsing of not-described values. See Result type. # noqa: E501
180180
181-
:param result_type: The result_type of this RawImageResult. # noqa: E501
181+
:param result_type: The result_type of this DocumentImageResult. # noqa: E501
182182
:type result_type: int
183183
"""
184184
if self.local_vars_configuration.client_side_validation and result_type is None: # noqa: E501
@@ -188,20 +188,20 @@ def result_type(self, result_type):
188188

189189
@property
190190
def raw_image_container(self):
191-
"""Gets the raw_image_container of this RawImageResult. # noqa: E501
191+
"""Gets the raw_image_container of this DocumentImageResult. # noqa: E501
192192
193193
194-
:return: The raw_image_container of this RawImageResult. # noqa: E501
194+
:return: The raw_image_container of this DocumentImageResult. # noqa: E501
195195
:rtype: ImageData
196196
"""
197197
return self._raw_image_container
198198

199199
@raw_image_container.setter
200200
def raw_image_container(self, raw_image_container):
201-
"""Sets the raw_image_container of this RawImageResult.
201+
"""Sets the raw_image_container of this DocumentImageResult.
202202
203203
204-
:param raw_image_container: The raw_image_container of this RawImageResult. # noqa: E501
204+
:param raw_image_container: The raw_image_container of this DocumentImageResult. # noqa: E501
205205
:type raw_image_container: ImageData
206206
"""
207207
if self.local_vars_configuration.client_side_validation and raw_image_container is None: # noqa: E501
@@ -243,14 +243,14 @@ def __repr__(self):
243243

244244
def __eq__(self, other):
245245
"""Returns true if both objects are equal"""
246-
if not isinstance(other, RawImageResult):
246+
if not isinstance(other, DocumentImageResult):
247247
return False
248248

249249
return self.to_dict() == other.to_dict()
250250

251251
def __ne__(self, other):
252252
"""Returns true if both objects are not equal"""
253-
if not isinstance(other, RawImageResult):
253+
if not isinstance(other, DocumentImageResult):
254254
return True
255255

256256
return self.to_dict() != other.to_dict()

regula/documentreader/webclient/gen/models/raw_image_result_all_of.py renamed to regula/documentreader/webclient/gen/models/document_image_result_all_of.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from regula.documentreader.webclient.gen.models import *
2121

2222

23-
class RawImageResultAllOf(object):
23+
class DocumentImageResultAllOf(object):
2424
"""NOTE: This class is auto generated by OpenAPI Generator.
2525
Ref: https://openapi-generator.tech
2626
@@ -43,7 +43,7 @@ class RawImageResultAllOf(object):
4343
}
4444

4545
def __init__(self, raw_image_container=None, local_vars_configuration=None): # noqa: E501
46-
"""RawImageResultAllOf - a model defined in OpenAPI""" # noqa: E501
46+
"""DocumentImageResultAllOf - a model defined in OpenAPI""" # noqa: E501
4747
if local_vars_configuration is None:
4848
local_vars_configuration = Configuration()
4949
self.local_vars_configuration = local_vars_configuration
@@ -55,20 +55,20 @@ def __init__(self, raw_image_container=None, local_vars_configuration=None): #
5555

5656
@property
5757
def raw_image_container(self):
58-
"""Gets the raw_image_container of this RawImageResultAllOf. # noqa: E501
58+
"""Gets the raw_image_container of this DocumentImageResultAllOf. # noqa: E501
5959
6060
61-
:return: The raw_image_container of this RawImageResultAllOf. # noqa: E501
61+
:return: The raw_image_container of this DocumentImageResultAllOf. # noqa: E501
6262
:rtype: ImageData
6363
"""
6464
return self._raw_image_container
6565

6666
@raw_image_container.setter
6767
def raw_image_container(self, raw_image_container):
68-
"""Sets the raw_image_container of this RawImageResultAllOf.
68+
"""Sets the raw_image_container of this DocumentImageResultAllOf.
6969
7070
71-
:param raw_image_container: The raw_image_container of this RawImageResultAllOf. # noqa: E501
71+
:param raw_image_container: The raw_image_container of this DocumentImageResultAllOf. # noqa: E501
7272
:type raw_image_container: ImageData
7373
"""
7474
if self.local_vars_configuration.client_side_validation and raw_image_container is None: # noqa: E501
@@ -110,14 +110,14 @@ def __repr__(self):
110110

111111
def __eq__(self, other):
112112
"""Returns true if both objects are equal"""
113-
if not isinstance(other, RawImageResultAllOf):
113+
if not isinstance(other, DocumentImageResultAllOf):
114114
return False
115115

116116
return self.to_dict() == other.to_dict()
117117

118118
def __ne__(self, other):
119119
"""Returns true if both objects are not equal"""
120-
if not isinstance(other, RawImageResultAllOf):
120+
if not isinstance(other, DocumentImageResultAllOf):
121121
return True
122122

123123
return self.to_dict() != other.to_dict()

regula/documentreader/webclient/gen/models/result.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class Result(object):
2727
Do not edit the class manually.
2828
"""
2929

30-
"Contains cropped and rotated image of document. Most of coordinates in other types defined on that image"
31-
RAW_IMAGE = int("1")
30+
"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"
31+
DOCUMENT_IMAGE = int("1")
3232

3333
"Contains check statuses with details, grouped by source"
3434
STATUS = int("33")
@@ -69,7 +69,7 @@ class Result(object):
6969
"Contains description of determined document type, if any"
7070
DOCUMENT_TYPE = int("9")
7171

72-
allowable_values = [RAW_IMAGE, STATUS, TEXT, IMAGES, MRZ_TEXT, VISUAL_TEXT, BARCODE_TEXT, RFID_TEXT, LEXICAL_ANALYSIS, VISUAL_GRAPHICS, BARCODE_GRAPHICS, RFID_GRAPHICS, DOCUMENT_TYPE_CANDIDATES, DOCUMENT_TYPE] # noqa: E501
72+
allowable_values = [DOCUMENT_IMAGE, STATUS, TEXT, IMAGES, MRZ_TEXT, VISUAL_TEXT, BARCODE_TEXT, RFID_TEXT, LEXICAL_ANALYSIS, VISUAL_GRAPHICS, BARCODE_GRAPHICS, RFID_GRAPHICS, DOCUMENT_TYPE_CANDIDATES, DOCUMENT_TYPE] # noqa: E501
7373

7474
"""
7575
Attributes:

regula/documentreader/webclient/gen/models/result_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class ResultItem(object):
5050
'result_type': 'result_type'
5151
}
5252
discriminator_value_class_map = {
53-
1 : 'RawImageResult',
53+
1 : 'DocumentImageResult',
5454
3 : 'TextDataResult',
5555
6 : 'GraphicsResult',
5656
8 : 'DocumentTypesCandidatesResult',

0 commit comments

Comments
 (0)