-
Notifications
You must be signed in to change notification settings - Fork 0
/
Entities.proto
81 lines (67 loc) · 2.56 KB
/
Entities.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
option java_package = "com.idamobile.instabank.dto.protobuf";
option java_outer_classname = "Entities";
import "Commons.proto";
message TransactionProtobufDTO {
required string transactionId = 1;
required int64 amount = 2;
required int64 createdWhen = 3;
required int64 modifiedWhen = 4;
required TransactionStatus status = 5;
required EnvelopeProtobufDTO envelope = 6;
optional string systemMessage = 7;
optional string payeeId = 8;
optional string payerId = 9;
optional string predefinedLocationId = 10;
repeated CommentProtobufDTO comments = 11;
/* Mapped category from Foursquare */
/* Deprecated since we have custom categories */
optional string categoryId = 12;
optional TerminalType terminalType = 13;
required TransactionType transactionType = 14;
required TransactionClass transactionClass = 15;
/* True if terminal was not bound and location
* is guessed by location and city.
* This parameter makes sense only for
* external transactions.
*/
optional bool isGuess = 16;
/* Populated if transactionClass = BENEFICIARY_PAYMENT */
optional string beneficiaryId = 17;
/* Transaction amount in original currency */
optional int64 originalCurrencyAmount = 18;
/* Original currency. 3-character ISO-4217 code */
optional string originalCurrency = 19;
/* Remaining balance after transaction is completed */
optional int64 remainingBalance = 20;
optional string errorMessage = 21;
/* Custom category ID */
optional string transactionCategoryId = 22;
}
message MoneyRequestProtobufDTO {
required string orderId = 1;
required string ownerId = 2;
required EnvelopeProtobufDTO envelope = 3;
required int64 amount = 5;
required int64 createdWhen = 6;
required int64 modifiedWhen = 7;
repeated string participantIds = 8;
repeated CommentProtobufDTO comments = 9;
repeated TransactionProtobufDTO transactions = 10;
}
message EntityContainerProtobufDTO {
optional MoneyRequestProtobufDTO moneyRequest = 1;
optional TransactionProtobufDTO transaction = 2;
}
message TransactionCategory {
required string categoryId = 1;
optional string parentId = 2;
optional string nameEn = 3;
optional string nameRu = 4;
repeated string thirdPartyCategoryIds = 5;
optional string iconResource = 6;
optional string wallpaperResource = 7;
optional int32 color = 8;
optional string coloredIconResource = 9;
/* true if it is allowed to use category in manual selection */
optional bool editable = 10;
}