Skip to content

Commit e4df33f

Browse files
committed
PATCH: (visa) add validations_in_error to serializer
1 parent 9186b5e commit e4df33f

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

bimdata_api_client/models/visa.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class Visa(object):
3636
openapi_types = {
3737
'id': 'int',
3838
'validations': 'list[VisaValidation]',
39+
'validations_in_error': 'list[int]',
3940
'creator': 'UserProject',
4041
'creator_id': 'int',
4142
'status': 'str',
@@ -50,6 +51,7 @@ class Visa(object):
5051
attribute_map = {
5152
'id': 'id',
5253
'validations': 'validations',
54+
'validations_in_error': 'validations_in_error',
5355
'creator': 'creator',
5456
'creator_id': 'creator_id',
5557
'status': 'status',
@@ -61,14 +63,15 @@ class Visa(object):
6163
'updated_at': 'updated_at'
6264
}
6365

64-
def __init__(self, id=None, validations=None, creator=None, creator_id=None, status=None, description=None, document=None, comments=None, deadline=None, created_at=None, updated_at=None, local_vars_configuration=None): # noqa: E501
66+
def __init__(self, id=None, validations=None, validations_in_error=None, creator=None, creator_id=None, status=None, description=None, document=None, comments=None, deadline=None, created_at=None, updated_at=None, local_vars_configuration=None): # noqa: E501
6567
"""Visa - a model defined in OpenAPI""" # noqa: E501
6668
if local_vars_configuration is None:
6769
local_vars_configuration = Configuration()
6870
self.local_vars_configuration = local_vars_configuration
6971

7072
self._id = None
7173
self._validations = None
74+
self._validations_in_error = None
7275
self._creator = None
7376
self._creator_id = None
7477
self._status = None
@@ -84,6 +87,8 @@ def __init__(self, id=None, validations=None, creator=None, creator_id=None, sta
8487
self.id = id
8588
if validations is not None:
8689
self.validations = validations
90+
if validations_in_error is not None:
91+
self.validations_in_error = validations_in_error
8792
if creator is not None:
8893
self.creator = creator
8994
if creator_id is not None:
@@ -143,6 +148,29 @@ def validations(self, validations):
143148

144149
self._validations = validations
145150

151+
@property
152+
def validations_in_error(self):
153+
"""Gets the validations_in_error of this Visa. # noqa: E501
154+
155+
Validation IDs where one or more validators have no longer access to the visa document. # noqa: E501
156+
157+
:return: The validations_in_error of this Visa. # noqa: E501
158+
:rtype: list[int]
159+
"""
160+
return self._validations_in_error
161+
162+
@validations_in_error.setter
163+
def validations_in_error(self, validations_in_error):
164+
"""Sets the validations_in_error of this Visa.
165+
166+
Validation IDs where one or more validators have no longer access to the visa document. # noqa: E501
167+
168+
:param validations_in_error: The validations_in_error of this Visa. # noqa: E501
169+
:type: list[int]
170+
"""
171+
172+
self._validations_in_error = validations_in_error
173+
146174
@property
147175
def creator(self):
148176
"""Gets the creator of this Visa. # noqa: E501

docs/Visa.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**id** | **int** | | [optional] [readonly]
77
**validations** | [**list[VisaValidation]**](VisaValidation.md) | | [optional] [readonly]
8+
**validations_in_error** | **list[int]** | Validation IDs where one or more validators have no longer access to the visa document. | [optional] [readonly]
89
**creator** | [**UserProject**](UserProject.md) | | [optional]
910
**creator_id** | **int** | This is the userproject_id. This field is only used if the call is made from an App | [optional]
1011
**status** | **str** | | [optional] [readonly]

test/test_visa.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ def make_instance(self, include_optional):
5757
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
5858
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
5959
],
60+
validations_in_error = [
61+
56
62+
],
6063
creator = bimdata_api_client.models.user_project.UserProject(
6164
id = 56,
6265
user_id = 56,

0 commit comments

Comments
 (0)