Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 025b32e

Browse files
committed
PATCH: add document_id to visa serializer
1 parent 37f3202 commit 025b32e

3 files changed

Lines changed: 20 additions & 3 deletions

File tree

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
**validationsInError** | **[Number]** | Validation IDs where one or more validators have no longer access to the visa document. | [readonly]
1010
**creator** | [**UserProject**](UserProject.md) | | [readonly]
11+
**documentId** | **Number** | | [readonly]
1112
**status** | **String** | | [readonly]
1213
**description** | **String** | Description of the visa | [optional]
1314
**comments** | [**[VisaComment]**](VisaComment.md) | | [readonly]

src/model/Visa.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,28 @@ class Visa {
2929
* @param validations {Array.<module:model/VisaValidation>}
3030
* @param validationsInError {Array.<Number>} Validation IDs where one or more validators have no longer access to the visa document.
3131
* @param creator {module:model/UserProject}
32+
* @param documentId {Number}
3233
* @param status {module:model/Visa.StatusEnum}
3334
* @param comments {Array.<module:model/VisaComment>}
3435
* @param createdAt {Date}
3536
* @param updatedAt {Date}
3637
*/
37-
constructor(id, validations, validationsInError, creator, status, comments, createdAt, updatedAt) {
38+
constructor(id, validations, validationsInError, creator, documentId, status, comments, createdAt, updatedAt) {
3839

39-
Visa.initialize(this, id, validations, validationsInError, creator, status, comments, createdAt, updatedAt);
40+
Visa.initialize(this, id, validations, validationsInError, creator, documentId, status, comments, createdAt, updatedAt);
4041
}
4142

4243
/**
4344
* Initializes the fields of this object.
4445
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
4546
* Only for internal use.
4647
*/
47-
static initialize(obj, id, validations, validationsInError, creator, status, comments, createdAt, updatedAt) {
48+
static initialize(obj, id, validations, validationsInError, creator, documentId, status, comments, createdAt, updatedAt) {
4849
obj['id'] = id;
4950
obj['validations'] = validations;
5051
obj['validations_in_error'] = validationsInError;
5152
obj['creator'] = creator;
53+
obj['document_id'] = documentId;
5254
obj['status'] = status;
5355
obj['comments'] = comments;
5456
obj['created_at'] = createdAt;
@@ -78,6 +80,9 @@ class Visa {
7880
if (data.hasOwnProperty('creator')) {
7981
obj['creator'] = ApiClient.convertToType(data['creator'], UserProject);
8082
}
83+
if (data.hasOwnProperty('document_id')) {
84+
obj['document_id'] = ApiClient.convertToType(data['document_id'], 'Number');
85+
}
8186
if (data.hasOwnProperty('status')) {
8287
obj['status'] = ApiClient.convertToType(data['status'], 'String');
8388
}
@@ -124,6 +129,11 @@ Visa.prototype['validations_in_error'] = undefined;
124129
*/
125130
Visa.prototype['creator'] = undefined;
126131

132+
/**
133+
* @member {Number} document_id
134+
*/
135+
Visa.prototype['document_id'] = undefined;
136+
127137
/**
128138
* @member {module:model/Visa.StatusEnum} status
129139
*/

test/model/Visa.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@
7878
//expect(instance).to.be();
7979
});
8080

81+
it('should have the property documentId (base name: "document_id")', function() {
82+
// uncomment below and update the code to test the property documentId
83+
//var instance = new bimdata.Visa();
84+
//expect(instance).to.be();
85+
});
86+
8187
it('should have the property status (base name: "status")', function() {
8288
// uncomment below and update the code to test the property status
8389
//var instance = new bimdata.Visa();

0 commit comments

Comments
 (0)