Skip to content

Commit 2ec598a

Browse files
committed
PATCH: add document_id to visa serializer
1 parent fd858fb commit 2ec598a

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

bimdata_api_client/model/visa.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def openapi_types():
101101
'validations': ([VisaValidation],), # noqa: E501
102102
'validations_in_error': ([int],), # noqa: E501
103103
'creator': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
104+
'document_id': (int,), # noqa: E501
104105
'status': (str,), # noqa: E501
105106
'comments': ([VisaComment],), # noqa: E501
106107
'created_at': (datetime,), # noqa: E501
@@ -119,6 +120,7 @@ def discriminator():
119120
'validations': 'validations', # noqa: E501
120121
'validations_in_error': 'validations_in_error', # noqa: E501
121122
'creator': 'creator', # noqa: E501
123+
'document_id': 'document_id', # noqa: E501
122124
'status': 'status', # noqa: E501
123125
'comments': 'comments', # noqa: E501
124126
'created_at': 'created_at', # noqa: E501
@@ -132,6 +134,7 @@ def discriminator():
132134
'validations', # noqa: E501
133135
'validations_in_error', # noqa: E501
134136
'creator', # noqa: E501
137+
'document_id', # noqa: E501
135138
'status', # noqa: E501
136139
'comments', # noqa: E501
137140
'created_at', # noqa: E501
@@ -142,14 +145,15 @@ def discriminator():
142145

143146
@classmethod
144147
@convert_js_args_to_python_args
145-
def _from_openapi_data(cls, id, validations, validations_in_error, creator, status, comments, created_at, updated_at, *args, **kwargs): # noqa: E501
148+
def _from_openapi_data(cls, id, validations, validations_in_error, creator, document_id, status, comments, created_at, updated_at, *args, **kwargs): # noqa: E501
146149
"""Visa - a model defined in OpenAPI
147150
148151
Args:
149152
id (int):
150153
validations ([VisaValidation]):
151154
validations_in_error ([int]): Validation IDs where one or more validators have no longer access to the visa document.
152155
creator (bool, date, datetime, dict, float, int, list, str, none_type):
156+
document_id (int):
153157
status (str):
154158
comments ([VisaComment]):
155159
created_at (datetime):
@@ -219,6 +223,7 @@ def _from_openapi_data(cls, id, validations, validations_in_error, creator, stat
219223
self.validations = validations
220224
self.validations_in_error = validations_in_error
221225
self.creator = creator
226+
self.document_id = document_id
222227
self.status = status
223228
self.comments = comments
224229
self.created_at = created_at

docs/Visa.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**validations** | [**[VisaValidation]**](VisaValidation.md) | | [readonly]
99
**validations_in_error** | **[int]** | Validation IDs where one or more validators have no longer access to the visa document. | [readonly]
1010
**creator** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [readonly]
11+
**document_id** | **int** | | [readonly]
1112
**status** | **str** | | [readonly]
1213
**comments** | [**[VisaComment]**](VisaComment.md) | | [readonly]
1314
**created_at** | **datetime** | | [readonly]

0 commit comments

Comments
 (0)