forked from s7techlab/cckit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstate.proto
More file actions
40 lines (31 loc) · 940 Bytes
/
state.proto
File metadata and controls
40 lines (31 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
syntax = "proto3";
option go_package = "github.com/s7techlab/cckit/examples/cpaper_extended/schema";
package cpaper_extended.schema;
import "google/protobuf/timestamp.proto";
// Commercial Paper state entry
message CommercialPaper {
enum State {
ISSUED = 0;
TRADING = 1;
REDEEMED = 2;
}
// Issuer and Paper number comprises composite primary key of Commercial paper entry
string issuer = 1;
string paper_number = 2;
string owner = 3;
google.protobuf.Timestamp issue_date = 4;
google.protobuf.Timestamp maturity_date = 5;
int32 face_value = 6;
State state = 7;
// Additional unique field for entry
string external_id = 8;
}
// CommercialPaperId identifier part
message CommercialPaperId {
string issuer = 1;
string paper_number = 2;
}
// Container for returning multiple entities
message CommercialPaperList {
repeated CommercialPaper items = 1;
}