ledger_models/
fintekkers.requests.security.rs

1/// A request to allow clients to find existing securities.
2#[allow(clippy::derive_partial_eq_without_eq)]
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct QuerySecurityRequestProto {
5    #[prost(string, tag = "1")]
6    pub object_class: ::prost::alloc::string::String,
7    #[prost(string, tag = "2")]
8    pub version: ::prost::alloc::string::String,
9    /// The list of UUIds to return
10    #[prost(message, repeated, tag = "21")]
11    pub uu_ids: ::prost::alloc::vec::Vec<super::super::models::util::UuidProto>,
12    /// A list of position filters that will filter securities that match.
13    #[prost(message, optional, tag = "22")]
14    pub search_security_input: ::core::option::Option<
15        super::super::models::position::PositionFilterProto,
16    >,
17    #[prost(message, optional, tag = "23")]
18    pub as_of: ::core::option::Option<super::super::models::util::LocalTimestampProto>,
19}
20#[allow(clippy::derive_partial_eq_without_eq)]
21#[derive(Clone, PartialEq, ::prost::Message)]
22pub struct QuerySecurityResponseProto {
23    #[prost(string, tag = "1")]
24    pub object_class: ::prost::alloc::string::String,
25    #[prost(string, tag = "2")]
26    pub version: ::prost::alloc::string::String,
27    /// The input that was provided for this request.
28    #[prost(message, optional, tag = "20")]
29    pub query_security_input: ::core::option::Option<QuerySecurityRequestProto>,
30    /// The security (or securities) that was matched by this request.
31    #[prost(message, repeated, tag = "30")]
32    pub security_response: ::prost::alloc::vec::Vec<
33        super::super::models::security::SecurityProto,
34    >,
35    /// Any errors or warnings related to this request
36    #[prost(message, repeated, tag = "40")]
37    pub errors_or_warnings: ::prost::alloc::vec::Vec<super::util::errors::SummaryProto>,
38}
39#[allow(clippy::derive_partial_eq_without_eq)]
40#[derive(Clone, PartialEq, ::prost::Message)]
41pub struct GetFieldsResponseProto {
42    #[prost(string, tag = "1")]
43    pub object_class: ::prost::alloc::string::String,
44    #[prost(string, tag = "2")]
45    pub version: ::prost::alloc::string::String,
46    #[prost(
47        enumeration = "super::super::models::position::FieldProto",
48        repeated,
49        tag = "10"
50    )]
51    pub fields: ::prost::alloc::vec::Vec<i32>,
52}
53/// Use this request to create or update securities. Uniqueness is guaranteed via the UUID.
54/// Security identifiers do not guarantee uniqueness. As an example a bond ISIN or stock ticker
55/// may be re-used over time. Therefore if you send 2 requests with the same security identifier
56/// you will create two securities. In order to avoid duplication you should either re-use the UUID
57/// when calling the API, in which case an update will be applied. If you do not know the UUID, you
58/// should first do a search operation.
59///
60/// It is preferred that the client generates the UUID. This will avoid issues in the network leading
61/// to duplicate securities.
62#[allow(clippy::derive_partial_eq_without_eq)]
63#[derive(Clone, PartialEq, ::prost::Message)]
64pub struct CreateSecurityRequestProto {
65    #[prost(string, tag = "1")]
66    pub object_class: ::prost::alloc::string::String,
67    #[prost(string, tag = "2")]
68    pub version: ::prost::alloc::string::String,
69    /// A fully formed security object to be created or updated. Validations may be applied
70    /// before creating. For example creating an equity security with bond fields may be invalid and
71    /// therefore rejected.
72    #[prost(message, optional, tag = "20")]
73    pub security_input: ::core::option::Option<
74        super::super::models::security::SecurityProto,
75    >,
76}
77#[allow(clippy::derive_partial_eq_without_eq)]
78#[derive(Clone, PartialEq, ::prost::Message)]
79pub struct CreateSecurityResponseProto {
80    #[prost(string, tag = "1")]
81    pub object_class: ::prost::alloc::string::String,
82    #[prost(string, tag = "2")]
83    pub version: ::prost::alloc::string::String,
84    /// The input that was provided for this request.
85    #[prost(message, optional, tag = "20")]
86    pub security_request: ::core::option::Option<CreateSecurityRequestProto>,
87    /// The security (or securities) that were created in response to this request
88    #[prost(message, optional, tag = "30")]
89    pub security_response: ::core::option::Option<
90        super::super::models::security::SecurityProto,
91    >,
92    /// If no errors or warnings in the response then the request was processed successfully without any
93    /// contingencies.
94    #[prost(message, optional, tag = "40")]
95    pub errors_or_warnings: ::core::option::Option<super::util::errors::SummaryProto>,
96}
97#[allow(clippy::derive_partial_eq_without_eq)]
98#[derive(Clone, PartialEq, ::prost::Message)]
99pub struct GetFieldValuesRequestProto {
100    #[prost(string, tag = "1")]
101    pub object_class: ::prost::alloc::string::String,
102    #[prost(string, tag = "2")]
103    pub version: ::prost::alloc::string::String,
104    #[prost(enumeration = "super::super::models::position::FieldProto", tag = "10")]
105    pub field: i32,
106}
107#[allow(clippy::derive_partial_eq_without_eq)]
108#[derive(Clone, PartialEq, ::prost::Message)]
109pub struct GetFieldValuesResponseProto {
110    #[prost(string, tag = "1")]
111    pub object_class: ::prost::alloc::string::String,
112    #[prost(string, tag = "2")]
113    pub version: ::prost::alloc::string::String,
114    #[prost(message, repeated, tag = "10")]
115    pub values: ::prost::alloc::vec::Vec<::prost_types::Any>,
116}