-
Notifications
You must be signed in to change notification settings - Fork 0
/
Commons.proto
84 lines (71 loc) · 1.58 KB
/
Commons.proto
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
option java_package = "com.idamobile.instabank.dto.protobuf";
option java_outer_classname = "Commons";
message DiagnosticMessageProtobufDTO {
required string info = 1;
}
enum Platform {
IOS = 0;
ANDROID = 1;
NOKIA_X = 2;
}
enum CommentType {
REGULAR = 0;
UNSUBSCRIBE = 1;
}
enum TransactionStatus {
PENDING = 0;
FIXED = 1;
ERROR = 2;
}
enum TransactionType {
WITHDRAWAL = 0;
DEPOSIT = 1;
PURCHASE = 2;
TRANSFER = 3;
}
enum TransactionClass {
ATM_OR_TERMINAL = 0;
INTERNET_BANK = 1;
INTERNET_PURCHASE = 2;
PHYSICAL_PURCHASE = 3;
INTERNAL_TRANSFER = 4;
ABS_BALANCE_CHANGE = 5;
NOT_CLASSIFIED = 6;
BENEFICIARY_PAYMENT = 7;
ACCOUNT_MIGRATION = 8;
}
enum TerminalType {
ATM = 0;
POS = 1;
/* Don't have any idea what it is. Never seen in real life */
CRT = 2;
Internet = 3;
}
enum CardOrderStatus {
NOT_ORDERED = 0;
HAS_ORDER = 1;
SENT_TO_BANK = 2;
EMITTED = 3;
}
message CommentProtobufDTO {
required string commentId = 1;
required string userId = 2;
required string message = 3;
required int64 timestamp = 4;
required CommentType type = 5;
}
message EnvelopeProtobufDTO {
/* Length is confined to 255 symbols */
optional string message = 1;
optional string imageResourceId = 2;
/* Foursquare venue ID */
optional string locationId = 3;
}
message FieldValueProtobufDTO {
required string name = 1;
required string value = 2;
}
message LimitPairDTO {
required int64 limit = 1;
required int64 currentValue = 2;
}