feat: enrich saved leasing events with bounded Fedresurs details
All checks were successful
Mostovik Backend CI/CD / Tests and lint (push) Successful in 3m26s
Mostovik Backend CI/CD / Build linux/amd64 release images (push) Successful in 3m28s
Mostovik Backend CI/CD / Deploy and verify internal main (push) Has been skipped
Mostovik Backend CI/CD / Deploy dev (push) Successful in 2m3s
All checks were successful
Mostovik Backend CI/CD / Tests and lint (push) Successful in 3m26s
Mostovik Backend CI/CD / Build linux/amd64 release images (push) Successful in 3m28s
Mostovik Backend CI/CD / Deploy and verify internal main (push) Has been skipped
Mostovik Backend CI/CD / Deploy dev (push) Successful in 2m3s
This commit is contained in:
@@ -1083,6 +1083,12 @@
|
||||
},
|
||||
"lease_event_type": {
|
||||
"type": "string"
|
||||
},
|
||||
"lease_details": {
|
||||
"$ref": "#/components/schemas/LeaseDetails"
|
||||
},
|
||||
"lease_details_status": {
|
||||
"$ref": "#/components/schemas/LeaseDetailsStatus"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -1312,5 +1318,183 @@
|
||||
"$ref": "#/components/schemas/ExchangeInstrumentListPayload"
|
||||
}
|
||||
]
|
||||
},
|
||||
"LeaseParty": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"inn": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"ogrn": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name",
|
||||
"inn",
|
||||
"ogrn"
|
||||
]
|
||||
},
|
||||
"LeaseSubject": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"identifier_raw": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"classifier_code": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"classifier_name": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"identifier",
|
||||
"identifier_raw",
|
||||
"classifier_code",
|
||||
"classifier_name",
|
||||
"description"
|
||||
]
|
||||
},
|
||||
"LeaseRelatedMessage": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"guid": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
},
|
||||
"label": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"guid",
|
||||
"url",
|
||||
"label"
|
||||
]
|
||||
},
|
||||
"LeaseDetails": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"contract_number": {
|
||||
"type": "string"
|
||||
},
|
||||
"contract_date": {
|
||||
"type": "string",
|
||||
"format": "date"
|
||||
},
|
||||
"lease_start_date": {
|
||||
"type": "string",
|
||||
"format": "date"
|
||||
},
|
||||
"lease_end_date": {
|
||||
"type": "string",
|
||||
"format": "date"
|
||||
},
|
||||
"lessors": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/LeaseParty"
|
||||
}
|
||||
},
|
||||
"lessees": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/LeaseParty"
|
||||
}
|
||||
},
|
||||
"subjects": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/LeaseSubject"
|
||||
}
|
||||
},
|
||||
"terminated_on": {
|
||||
"type": "string",
|
||||
"nullable": true,
|
||||
"format": "date"
|
||||
},
|
||||
"termination_reason": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"related_messages": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/LeaseRelatedMessage"
|
||||
}
|
||||
},
|
||||
"message_text": {
|
||||
"type": "string"
|
||||
},
|
||||
"source_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"fetched_at": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"contract_number",
|
||||
"contract_date",
|
||||
"lease_start_date",
|
||||
"lease_end_date",
|
||||
"lessors",
|
||||
"lessees",
|
||||
"subjects",
|
||||
"terminated_on",
|
||||
"termination_reason",
|
||||
"related_messages",
|
||||
"message_text",
|
||||
"source_url",
|
||||
"fetched_at"
|
||||
]
|
||||
},
|
||||
"LeaseDetailsStatus": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"loaded",
|
||||
"failed"
|
||||
]
|
||||
},
|
||||
"checked_at": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"error_code": {
|
||||
"type": "string"
|
||||
},
|
||||
"next_retry_at": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"status",
|
||||
"checked_at"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user