@alexochihua/protos 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,70 +1,84 @@
1
- syntax = "proto3";
2
-
3
- package kapital.transactions.v1;
4
-
5
- option go_package = "kapital/transactions/v1;transactionsv1";
6
-
7
- import "kapital/common/v1/meta.proto";
8
- import "kapital/transactions/v1/transactions_types.proto";
9
-
10
- service TransactionsService {
11
- rpc GetExistsContract (GetExistsContractRequest) returns (GetExistsContractResponse);
12
- rpc GetTransactionsPosted (GetTransactionsPostedRequest) returns (GetTransactionsPostedResponse);
13
- rpc GetAllTransactions (GetAllTransactionsRequest) returns (GetAllTransactionsResponse);
14
- }
15
-
16
- // ================== GetExistsContract ==================
17
- message GetExistsContractRequest {
18
- string contract_id = 1;
19
- }
20
-
21
- message GetExistsContractResponse {
22
- kapital.common.v1.ResponseMeta meta = 1;
23
- string contract_id = 2;
24
- bool exists = 3;
25
- }
26
-
27
- // ================== GetTransactionsPosted ==================
28
- message GetTransactionsPostedRequest {
29
- string contract_id = 1;
30
- string transaction_id = 2;
31
- string start_date = 3;
32
- string end_date = 4;
33
- int32 record_count = 5;
34
- int32 page = 6;
35
- int32 included_related = 7;
36
- }
37
-
38
- message GetTransactionsPostedResponse {
39
- kapital.common.v1.ResponseMeta meta = 1;
40
- string start_date = 2;
41
- string end_date = 3;
42
- int32 number_of_pages = 4;
43
- int32 page = 5;
44
- int32 total_record_count = 6;
45
- repeated Transaction transactions = 7;
46
- }
47
-
48
- // ================== GetAllTransactions ==================
49
- message GetAllTransactionsRequest {
50
- string contract_id = 1;
51
- string transaction_id = 2;
52
- string start_date = 3;
53
- string end_date = 4;
54
- int32 record_count = 5;
55
- int32 page = 6;
56
- }
57
-
58
- message GetAllTransactionsResponse {
59
- kapital.common.v1.ResponseMeta meta = 1;
60
- int32 transaction_count = 2;
61
- int32 page = 3;
62
- int32 total_record_count = 4;
63
- int32 number_of_pages = 5;
64
- string start_date = 6;
65
- string end_date = 7;
66
- Sums sums = 8;
67
- repeated TransactionDetail transactions = 9;
68
- double beginning_balance = 10;
69
- }
70
-
1
+ syntax = "proto3";
2
+
3
+ package kapital.transactions.v1;
4
+
5
+ option go_package = "kapital/transactions/v1;transactionsv1";
6
+
7
+ import "kapital/common/v1/meta.proto";
8
+ import "kapital/transactions/v1/transactions_types.proto";
9
+
10
+ service TransactionsService {
11
+ rpc CheckTransaction(CheckTransactionRequest) returns (CheckTransactionResponse);
12
+ rpc GetExistsContract(GetExistsContractRequest) returns (GetExistsContractResponse);
13
+ rpc GetTransactionsPosted(GetTransactionsPostedRequest) returns (GetTransactionsPostedResponse);
14
+ rpc GetAllTransactions(GetAllTransactionsRequest) returns (GetAllTransactionsResponse);
15
+ }
16
+
17
+ // ================== CheckTransaction ==================
18
+ message CheckTransactionRequest {
19
+ string transaction_id = 1;
20
+ }
21
+
22
+ message CheckTransactionResponse {
23
+ kapital.common.v1.ResponseMeta meta = 1;
24
+ string transaction_id = 2;
25
+ bool exists = 3;
26
+ optional string status = 4;
27
+ optional string response_code = 5;
28
+ }
29
+
30
+ // ================== GetExistsContract ==================
31
+ message GetExistsContractRequest {
32
+ string contract_id = 1;
33
+ }
34
+
35
+ message GetExistsContractResponse {
36
+ kapital.common.v1.ResponseMeta meta = 1;
37
+ string contract_id = 2;
38
+ bool exists = 3;
39
+ }
40
+
41
+ // ================== GetTransactionsPosted ==================
42
+ message GetTransactionsPostedRequest {
43
+ string contract_id = 1;
44
+ string transaction_id = 2;
45
+ string start_date = 3;
46
+ string end_date = 4;
47
+ int32 record_count = 5;
48
+ int32 page = 6;
49
+ int32 included_related = 7;
50
+ }
51
+
52
+ message GetTransactionsPostedResponse {
53
+ kapital.common.v1.ResponseMeta meta = 1;
54
+ string start_date = 2;
55
+ string end_date = 3;
56
+ int32 number_of_pages = 4;
57
+ int32 page = 5;
58
+ int32 total_record_count = 6;
59
+ repeated Transaction transactions = 7;
60
+ }
61
+
62
+ // ================== GetAllTransactions ==================
63
+ message GetAllTransactionsRequest {
64
+ string contract_id = 1;
65
+ string transaction_id = 2;
66
+ string start_date = 3;
67
+ string end_date = 4;
68
+ int32 record_count = 5;
69
+ int32 page = 6;
70
+ }
71
+
72
+ message GetAllTransactionsResponse {
73
+ kapital.common.v1.ResponseMeta meta = 1;
74
+ int32 transaction_count = 2;
75
+ int32 page = 3;
76
+ int32 total_record_count = 4;
77
+ int32 number_of_pages = 5;
78
+ string start_date = 6;
79
+ string end_date = 7;
80
+ Sums sums = 8;
81
+ repeated TransactionDetail transactions = 9;
82
+ double beginning_balance = 10;
83
+ }
84
+