Skip to content

Commit

Permalink
Merge branch 'master' into MODINVOSTO-187
Browse files Browse the repository at this point in the history
  • Loading branch information
Saba-Zedginidze-EPAM authored Nov 6, 2024
2 parents d539620 + 680fe63 commit 00cc5df
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 0 deletions.
17 changes: 17 additions & 0 deletions mod-finance/examples/fund_update_log.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"id": "a93373df-e7ec-4d31-b200-719736610d89",
"_version": 1,
"jobNumber": 1,
"jobName": "Daily Fund Update",
"jobDetails": {
"description": "Updating fund records for the day"
},
"status": "IN_PROGRESS",
"recordsCount": 100,
"metadata": {
"createdDate": "2023-10-01T12:00:00Z",
"createdByUserId": "d93373df-e7ec-4d31-b200-719736610d89",
"updatedDate": "2023-10-01T12:00:00Z",
"updatedByUserId": "d93373df-e7ec-4d31-b200-719736610d89"
}
}
22 changes: 22 additions & 0 deletions mod-finance/examples/fund_update_log_collection.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"fundUpdateLogs": [
{
"id": "a93373df-e7ec-4d31-b200-719736610d89",
"_version": 1,
"jobNumber": 1,
"jobName": "Daily Fund Update",
"jobDetails": {
"description": "Updating fund records for the day"
},
"status": "IN_PROGRESS",
"recordsCount": 100,
"metadata": {
"createdDate": "2023-10-01T12:00:00Z",
"createdByUserId": "user123",
"updatedDate": "2023-10-01T12:00:00Z",
"updatedByUserId": "user123"
}
}
],
"totalRecords": 1
}
49 changes: 49 additions & 0 deletions mod-finance/schemas/fund_update_log.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Fund update logs",
"type": "object",
"properties": {
"id": {
"description": "UUID of fund update log",
"$ref": "../../common/schemas/uuid.json"
},
"_version": {
"type": "integer",
"description": "Record version for optimistic locking"
},
"jobNumber": {
"description": "The number of the job",
"type": "integer"
},
"jobName": {
"description": "The name of the job",
"type": "string"
},
"jobDetails": {
"description": "details of job",
"type": "object"
},
"status": {
"description": "The status of the job",
"type": "string",
"enum": [
"IN_PROGRESS",
"COMPLETED",
"ERROR"
]
},
"recordsCount": {
"description": "The count of records",
"type": "integer"
},
"metadata": {
"type": "object",
"$ref": "../../../raml-util/schemas/metadata.schema",
"readonly": true
}
},
"additionalProperties": false,
"required": [
"jobName"
]
}
24 changes: 24 additions & 0 deletions mod-finance/schemas/fund_update_log_collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "A collection of fund update logs",
"type": "object",
"properties": {
"fundUpdateLogs": {
"description": "The list of objects contained in this collection",
"type": "array",
"items": {
"type": "object",
"$ref": "fund_update_log.json"
}
},
"totalRecords": {
"description": "The number of object contained in this collection",
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"fundUpdateLogs",
"totalRecords"
]
}

0 comments on commit 00cc5df

Please sign in to comment.