@alexochihua/protos 1.0.9 → 1.0.11
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.
- package/dist/generated/google/protobuf/struct.d.ts +97 -0
- package/dist/generated/google/protobuf/struct.js +348 -0
- package/dist/generated/google/protobuf/struct.js.map +1 -0
- package/dist/generated/kapital/disputes/v1/disputes.d.ts +198 -0
- package/dist/generated/kapital/disputes/v1/disputes.js +1207 -0
- package/dist/generated/kapital/disputes/v1/disputes.js.map +1 -0
- package/dist/generated/kapital/disputes/v1/disputes_types.d.ts +73 -0
- package/dist/generated/kapital/disputes/v1/disputes_types.js +697 -0
- package/dist/generated/kapital/disputes/v1/disputes_types.js.map +1 -0
- package/dist/generated/kapital/frauds/v1/frauds.d.ts +28 -2
- package/dist/generated/kapital/frauds/v1/frauds.js +131 -6
- package/dist/generated/kapital/frauds/v1/frauds.js.map +1 -1
- package/dist/generated/kapital/frauds/v1/frauds_types.d.ts +3 -19
- package/dist/generated/kapital/frauds/v1/frauds_types.js +5 -217
- package/dist/generated/kapital/frauds/v1/frauds_types.js.map +1 -1
- package/dist/generated/kapital/transactions/v1/transactions.d.ts +26 -0
- package/dist/generated/kapital/transactions/v1/transactions.js +138 -1
- package/dist/generated/kapital/transactions/v1/transactions.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +15 -1
- package/proto/kapital/disputes/v1/disputes.proto +121 -0
- package/proto/kapital/disputes/v1/disputes_types.proto +65 -0
- package/proto/kapital/frauds/v1/frauds.proto +14 -1
- package/proto/kapital/frauds/v1/frauds_types.proto +4 -19
- package/proto/kapital/transactions/v1/transactions.proto +84 -70
package/dist/index.d.ts
CHANGED
|
@@ -43,4 +43,6 @@ export * as productsV1 from './generated/kapital/products/v1/products';
|
|
|
43
43
|
export * as productsTypesV1 from './generated/kapital/products/v1/products_types';
|
|
44
44
|
export * as transactionsV1 from './generated/kapital/transactions/v1/transactions';
|
|
45
45
|
export * as transactionsTypesV1 from './generated/kapital/transactions/v1/transactions_types';
|
|
46
|
+
export * as disputesV1 from './generated/kapital/disputes/v1/disputes';
|
|
47
|
+
export * as disputesTypesV1 from './generated/kapital/disputes/v1/disputes_types';
|
|
46
48
|
export * as grpcRuntime from './runtime/grpc';
|
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.grpcRuntime = exports.transactionsTypesV1 = exports.transactionsV1 = exports.productsTypesV1 = exports.productsV1 = exports.productGroupsTypesV1 = exports.productGroupsV1 = exports.paymentsMethodsTypesV1 = exports.paymentsMethodsV1 = exports.paymentsTypesV1 = exports.paymentsV1 = exports.offersTypesV1 = exports.offersV1 = exports.fraudsTypesV1 = exports.fraudsV1 = exports.fraudWhitelistsTypesV1 = exports.fraudWhitelistsV1 = exports.fraudRulesTypesV1 = exports.fraudRulesV1 = exports.fraudGroupsTypesV1 = exports.fraudGroupsV1 = exports.fraudCatalogsTypesV1 = exports.fraudCatalogsV1 = exports.customersTypesV1 = exports.customersV1 = exports.creditConfigurationsTypesV1 = exports.creditConfigurationsV1 = exports.creditCatalogsTypesV1 = exports.creditCatalogsV1 = exports.creditAccountsTypesV1 = exports.creditAccountsV1 = exports.contractsTypesV1 = exports.contractsV1 = exports.commonPaginationV1 = exports.commonMetaV1 = exports.commonErrorV1 = exports.commissionsTypesV1 = exports.commissionsV1 = exports.collectionsRecoveryTypesV1 = exports.collectionsRecoveryV1 = exports.cardsTypesV1 = exports.cardsV1 = exports.accumulatesTypesV1 = exports.accumulatesV1 = exports.accountsTypesV1 = exports.accountsV1 = void 0;
|
|
36
|
+
exports.grpcRuntime = exports.disputesTypesV1 = exports.disputesV1 = exports.transactionsTypesV1 = exports.transactionsV1 = exports.productsTypesV1 = exports.productsV1 = exports.productGroupsTypesV1 = exports.productGroupsV1 = exports.paymentsMethodsTypesV1 = exports.paymentsMethodsV1 = exports.paymentsTypesV1 = exports.paymentsV1 = exports.offersTypesV1 = exports.offersV1 = exports.fraudsTypesV1 = exports.fraudsV1 = exports.fraudWhitelistsTypesV1 = exports.fraudWhitelistsV1 = exports.fraudRulesTypesV1 = exports.fraudRulesV1 = exports.fraudGroupsTypesV1 = exports.fraudGroupsV1 = exports.fraudCatalogsTypesV1 = exports.fraudCatalogsV1 = exports.customersTypesV1 = exports.customersV1 = exports.creditConfigurationsTypesV1 = exports.creditConfigurationsV1 = exports.creditCatalogsTypesV1 = exports.creditCatalogsV1 = exports.creditAccountsTypesV1 = exports.creditAccountsV1 = exports.contractsTypesV1 = exports.contractsV1 = exports.commonPaginationV1 = exports.commonMetaV1 = exports.commonErrorV1 = exports.commissionsTypesV1 = exports.commissionsV1 = exports.collectionsRecoveryTypesV1 = exports.collectionsRecoveryV1 = exports.cardsTypesV1 = exports.cardsV1 = exports.accumulatesTypesV1 = exports.accumulatesV1 = exports.accountsTypesV1 = exports.accountsV1 = void 0;
|
|
37
37
|
exports.accountsV1 = __importStar(require("./generated/kapital/accounts/v1/accounts"));
|
|
38
38
|
exports.accountsTypesV1 = __importStar(require("./generated/kapital/accounts/v1/accounts_types"));
|
|
39
39
|
exports.accumulatesV1 = __importStar(require("./generated/kapital/accumulates/v1/accumulates_service"));
|
|
@@ -79,5 +79,7 @@ exports.productsV1 = __importStar(require("./generated/kapital/products/v1/produ
|
|
|
79
79
|
exports.productsTypesV1 = __importStar(require("./generated/kapital/products/v1/products_types"));
|
|
80
80
|
exports.transactionsV1 = __importStar(require("./generated/kapital/transactions/v1/transactions"));
|
|
81
81
|
exports.transactionsTypesV1 = __importStar(require("./generated/kapital/transactions/v1/transactions_types"));
|
|
82
|
+
exports.disputesV1 = __importStar(require("./generated/kapital/disputes/v1/disputes"));
|
|
83
|
+
exports.disputesTypesV1 = __importStar(require("./generated/kapital/disputes/v1/disputes_types"));
|
|
82
84
|
exports.grpcRuntime = __importStar(require("./runtime/grpc"));
|
|
83
85
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uFAAuE;AACvE,kGAAkF;AAClF,wGAAwF;AACxF,2GAA2F;AAC3F,8EAA8D;AAC9D,yFAAyE;AACzE,0HAA0G;AAC1G,qIAAqH;AACrH,gGAAgF;AAChF,2GAA2F;AAC3F,qFAAqE;AACrE,mFAAmE;AACnE,+FAA+E;AAC/E,0FAA0E;AAC1E,qGAAqF;AACrF,2GAA2F;AAC3F,sHAAsG;AACtG,2GAA2F;AAC3F,sHAAsG;AACtG,6HAA6G;AAC7G,wIAAwH;AACxH,0FAA0E;AAC1E,qGAAqF;AACrF,wGAAwF;AACxF,mHAAmG;AACnG,kGAAkF;AAClF,6GAA6F;AAC7F,+FAA+E;AAC/E,0GAA0F;AAC1F,8GAA8F;AAC9F,yHAAyG;AACzG,iFAAiE;AACjE,4FAA4E;AAC5E,iFAAiE;AACjE,4FAA4E;AAC5E,uFAAuE;AACvE,kGAAkF;AAClF,8GAA8F;AAC9F,yHAAyG;AACzG,wGAAwF;AACxF,mHAAmG;AACnG,uFAAuE;AACvE,kGAAkF;AAClF,mGAAmF;AACnF,8GAA8F;AAC9F,8DAA8C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uFAAuE;AACvE,kGAAkF;AAClF,wGAAwF;AACxF,2GAA2F;AAC3F,8EAA8D;AAC9D,yFAAyE;AACzE,0HAA0G;AAC1G,qIAAqH;AACrH,gGAAgF;AAChF,2GAA2F;AAC3F,qFAAqE;AACrE,mFAAmE;AACnE,+FAA+E;AAC/E,0FAA0E;AAC1E,qGAAqF;AACrF,2GAA2F;AAC3F,sHAAsG;AACtG,2GAA2F;AAC3F,sHAAsG;AACtG,6HAA6G;AAC7G,wIAAwH;AACxH,0FAA0E;AAC1E,qGAAqF;AACrF,wGAAwF;AACxF,mHAAmG;AACnG,kGAAkF;AAClF,6GAA6F;AAC7F,+FAA+E;AAC/E,0GAA0F;AAC1F,8GAA8F;AAC9F,yHAAyG;AACzG,iFAAiE;AACjE,4FAA4E;AAC5E,iFAAiE;AACjE,4FAA4E;AAC5E,uFAAuE;AACvE,kGAAkF;AAClF,8GAA8F;AAC9F,yHAAyG;AACzG,wGAAwF;AACxF,mHAAmG;AACnG,uFAAuE;AACvE,kGAAkF;AAClF,mGAAmF;AACnF,8GAA8F;AAC9F,uFAAuE;AACvE,kGAAkF;AAClF,8DAA8C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexochihua/protos",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared gRPC contracts and generated clients for Kapital services.",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -152,6 +152,12 @@
|
|
|
152
152
|
],
|
|
153
153
|
"kapital/frauds/v1/frauds_types": [
|
|
154
154
|
"dist/generated/kapital/frauds/v1/frauds_types.d.ts"
|
|
155
|
+
],
|
|
156
|
+
"kapital/disputes/v1/disputes": [
|
|
157
|
+
"dist/generated/kapital/disputes/v1/disputes.d.ts"
|
|
158
|
+
],
|
|
159
|
+
"kapital/disputes/v1/disputes_types": [
|
|
160
|
+
"dist/generated/kapital/disputes/v1/disputes_types.d.ts"
|
|
155
161
|
]
|
|
156
162
|
}
|
|
157
163
|
},
|
|
@@ -344,6 +350,14 @@
|
|
|
344
350
|
"./kapital/frauds/v1/frauds_types": {
|
|
345
351
|
"types": "./dist/generated/kapital/frauds/v1/frauds_types.d.ts",
|
|
346
352
|
"default": "./dist/generated/kapital/frauds/v1/frauds_types.js"
|
|
353
|
+
},
|
|
354
|
+
"./kapital/disputes/v1/disputes": {
|
|
355
|
+
"types": "./dist/generated/kapital/disputes/v1/disputes.d.ts",
|
|
356
|
+
"default": "./dist/generated/kapital/disputes/v1/disputes.js"
|
|
357
|
+
},
|
|
358
|
+
"./kapital/disputes/v1/disputes_types": {
|
|
359
|
+
"types": "./dist/generated/kapital/disputes/v1/disputes_types.d.ts",
|
|
360
|
+
"default": "./dist/generated/kapital/disputes/v1/disputes_types.js"
|
|
347
361
|
}
|
|
348
362
|
},
|
|
349
363
|
"scripts": {
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.disputes.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/disputes/v1;disputesv1";
|
|
6
|
+
|
|
7
|
+
import "kapital/common/v1/meta.proto";
|
|
8
|
+
import "kapital/common/v1/pagination.proto";
|
|
9
|
+
import "kapital/disputes/v1/disputes_types.proto";
|
|
10
|
+
|
|
11
|
+
service DisputesService {
|
|
12
|
+
rpc CheckDispute(CheckDisputeRequest) returns (CheckDisputeResponse);
|
|
13
|
+
rpc CreateDispute(CreateDisputeRequest) returns (CreateDisputeResponse);
|
|
14
|
+
rpc UpdateDispute(UpdateDisputeRequest) returns (UpdateDisputeResponse);
|
|
15
|
+
rpc FindAll(FindAllRequest) returns (FindAllResponse);
|
|
16
|
+
rpc GetDashboard(GetDashboardRequest) returns (GetDashboardResponse);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// ================== CheckDispute ==================
|
|
20
|
+
message CheckDisputeRequest {
|
|
21
|
+
string dispute_id = 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message CheckDisputeResponse {
|
|
25
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
26
|
+
string dispute_id = 2;
|
|
27
|
+
bool exists = 3;
|
|
28
|
+
optional string status = 4;
|
|
29
|
+
optional string response_code = 5;
|
|
30
|
+
optional string phase = 6;
|
|
31
|
+
optional string update_at = 7;
|
|
32
|
+
optional string due_date = 8;
|
|
33
|
+
optional string amount_formatted = 9;
|
|
34
|
+
repeated File files = 10;
|
|
35
|
+
optional string phase_started = 11;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// ================== CreateDispute ==================
|
|
39
|
+
message CreateDisputeRequest {
|
|
40
|
+
string transaction_id = 1;
|
|
41
|
+
string status = 2;
|
|
42
|
+
string dispute_uuid = 3;
|
|
43
|
+
string request_date = 4;
|
|
44
|
+
CreateExtraData extra_data = 5;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message CreateDisputeResponse {
|
|
48
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
49
|
+
string transaction_id = 2;
|
|
50
|
+
string dispute_id = 3;
|
|
51
|
+
string custom_id = 4;
|
|
52
|
+
string amount_formatted = 5;
|
|
53
|
+
string status = 6;
|
|
54
|
+
string response_code = 7;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// ================== UpdateDispute ==================
|
|
58
|
+
message UpdateDisputeRequest {
|
|
59
|
+
string dispute_id = 1;
|
|
60
|
+
string status = 2;
|
|
61
|
+
optional string phase = 3;
|
|
62
|
+
optional string due_date = 4;
|
|
63
|
+
optional string comments = 5;
|
|
64
|
+
repeated File files = 6;
|
|
65
|
+
UpdateExtraData extra_data = 7;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message UpdateDisputeResponse {
|
|
69
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
70
|
+
string dispute_id = 2;
|
|
71
|
+
optional string status = 3;
|
|
72
|
+
optional string phase = 4;
|
|
73
|
+
optional string updated_date = 5;
|
|
74
|
+
optional string due_date = 6;
|
|
75
|
+
optional string custom_id = 7;
|
|
76
|
+
repeated File files = 8;
|
|
77
|
+
optional string amount_formatted = 9;
|
|
78
|
+
optional string response_code = 10;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// ================== FindAll ==================
|
|
82
|
+
message FindAllRequest {
|
|
83
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
84
|
+
optional string start_date = 2;
|
|
85
|
+
optional string end_date = 3;
|
|
86
|
+
optional string pan_hmac = 4;
|
|
87
|
+
optional string q = 5;
|
|
88
|
+
optional string view = 6;
|
|
89
|
+
optional string status = 7;
|
|
90
|
+
optional string current_phase = 8;
|
|
91
|
+
optional string id_dispute = 9;
|
|
92
|
+
optional string custom_id = 10;
|
|
93
|
+
optional string transaction_status = 11;
|
|
94
|
+
optional string remaining_days = 12;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
message FindAllResponse {
|
|
98
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
99
|
+
kapital.common.v1.PageResponse page_response = 2;
|
|
100
|
+
repeated DisputeItem disputes = 3;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// ================== GetDashboard ==================
|
|
104
|
+
message GetDashboardRequest {
|
|
105
|
+
optional string start_date = 1;
|
|
106
|
+
optional string end_date = 2;
|
|
107
|
+
optional string pan_hmac = 3;
|
|
108
|
+
optional string q = 4;
|
|
109
|
+
optional string view = 5;
|
|
110
|
+
optional string status = 6;
|
|
111
|
+
optional string current_phase = 7;
|
|
112
|
+
optional string id_dispute = 8;
|
|
113
|
+
optional string custom_id = 9;
|
|
114
|
+
optional string transaction_status = 10;
|
|
115
|
+
optional string remaining_days = 11;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
message GetDashboardResponse {
|
|
119
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
120
|
+
DashboardData data = 2;
|
|
121
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.disputes.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/disputes/v1;disputesv1";
|
|
6
|
+
|
|
7
|
+
message CreateExtraData {
|
|
8
|
+
string date_request = 1;
|
|
9
|
+
string description = 2;
|
|
10
|
+
string reason_code = 3;
|
|
11
|
+
string custom_id = 4;
|
|
12
|
+
string pending_action = 5;
|
|
13
|
+
string clarification_flow = 6;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message UpdateExtraData {
|
|
17
|
+
optional string description = 1;
|
|
18
|
+
optional string type_request = 2;
|
|
19
|
+
optional string phase_started = 3;
|
|
20
|
+
optional string date_response = 4;
|
|
21
|
+
optional string answer_description = 5;
|
|
22
|
+
optional string adjustment_amount = 6;
|
|
23
|
+
optional string answer_reason_code = 7;
|
|
24
|
+
optional string recovered_amount = 8;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message File {
|
|
28
|
+
string file_name = 1;
|
|
29
|
+
string file = 2;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message DisputeItem {
|
|
33
|
+
string id_long = 1;
|
|
34
|
+
string id_short = 2;
|
|
35
|
+
optional string acquirer_id = 3;
|
|
36
|
+
optional string amount_formatted = 4;
|
|
37
|
+
optional string approval_code = 5;
|
|
38
|
+
optional string status = 6;
|
|
39
|
+
optional string update_at = 7;
|
|
40
|
+
optional string merchant_name = 8;
|
|
41
|
+
optional string pan_masked = 9;
|
|
42
|
+
optional string txn_formatted_datetime = 10;
|
|
43
|
+
optional string txn_date = 11;
|
|
44
|
+
optional string txn_time = 12;
|
|
45
|
+
optional string sort = 13;
|
|
46
|
+
double amount = 14;
|
|
47
|
+
optional string phase = 15;
|
|
48
|
+
optional string sla = 16;
|
|
49
|
+
optional string custom_id = 17;
|
|
50
|
+
optional string pending_action = 18;
|
|
51
|
+
optional string reason_code = 19;
|
|
52
|
+
optional string recovered_amount = 20;
|
|
53
|
+
repeated File files = 21;
|
|
54
|
+
optional string comments = 22;
|
|
55
|
+
optional string clarification_flow = 23;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message DashboardData {
|
|
59
|
+
double actives = 1;
|
|
60
|
+
double expired = 2;
|
|
61
|
+
double amount_risk = 3;
|
|
62
|
+
double winners = 4;
|
|
63
|
+
double losers = 5;
|
|
64
|
+
double avg_days = 6;
|
|
65
|
+
}
|
|
@@ -7,6 +7,7 @@ option go_package = "kapital/frauds/v1;fraudsv1";
|
|
|
7
7
|
import "kapital/common/v1/meta.proto";
|
|
8
8
|
import "kapital/common/v1/pagination.proto";
|
|
9
9
|
import "kapital/frauds/v1/frauds_types.proto";
|
|
10
|
+
import "google/protobuf/struct.proto";
|
|
10
11
|
|
|
11
12
|
service FraudsService {
|
|
12
13
|
rpc CreateFraud(CreateFraudRequest) returns (CreateFraudResponse);
|
|
@@ -14,6 +15,7 @@ service FraudsService {
|
|
|
14
15
|
rpc GetFraudById(GetFraudByIdRequest) returns (GetFraudByIdResponse);
|
|
15
16
|
rpc UpdateFraudStatus(UpdateFraudStatusRequest) returns (UpdateFraudStatusResponse);
|
|
16
17
|
rpc GetFraudStatuses(GetFraudStatusesRequest) returns (GetFraudStatusesResponse);
|
|
18
|
+
rpc UpdateTransactionFraudStatus(UpdateTransactionFraudStatusRequest) returns (UpdateTransactionFraudStatusResponse);
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
// ============================================================================
|
|
@@ -25,7 +27,7 @@ message CreateFraudRequest {
|
|
|
25
27
|
string index_id = 2;
|
|
26
28
|
string initial_comment = 3;
|
|
27
29
|
string user_id = 4;
|
|
28
|
-
|
|
30
|
+
google.protobuf.Struct transaction_data = 5;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
message CreateFraudResponse {
|
|
@@ -88,3 +90,14 @@ message GetFraudStatusesResponse {
|
|
|
88
90
|
int32 total = 2;
|
|
89
91
|
repeated CatalogItem items = 3;
|
|
90
92
|
}
|
|
93
|
+
|
|
94
|
+
message UpdateTransactionFraudStatusRequest {
|
|
95
|
+
string sql_id = 1;
|
|
96
|
+
string fraud_id = 2;
|
|
97
|
+
string fraud_status = 3;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
message UpdateTransactionFraudStatusResponse {
|
|
101
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
102
|
+
bool success = 2;
|
|
103
|
+
}
|
|
@@ -4,6 +4,9 @@ package kapital.frauds.v1;
|
|
|
4
4
|
|
|
5
5
|
option go_package = "kapital/frauds/v1;fraudsv1";
|
|
6
6
|
|
|
7
|
+
import "kapital/common/v1/pagination.proto";
|
|
8
|
+
import "google/protobuf/struct.proto";
|
|
9
|
+
|
|
7
10
|
message FraudComment {
|
|
8
11
|
string comment = 1;
|
|
9
12
|
string created_at = 2;
|
|
@@ -22,25 +25,7 @@ message Fraud {
|
|
|
22
25
|
string updated_by = 9;
|
|
23
26
|
string created_at = 10;
|
|
24
27
|
string updated_at = 11;
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
message TransactionData {
|
|
29
|
-
string uuid = 1;
|
|
30
|
-
string channel = 2;
|
|
31
|
-
string pan_hmac = 3;
|
|
32
|
-
string pan_last4 = 4;
|
|
33
|
-
double amount = 5;
|
|
34
|
-
string currency_code = 6;
|
|
35
|
-
string mti = 7;
|
|
36
|
-
string mcc = 8;
|
|
37
|
-
string merchant_name = 9;
|
|
38
|
-
string response_code = 10;
|
|
39
|
-
string formatted_date = 11;
|
|
40
|
-
string fraud_status = 12;
|
|
41
|
-
string fraud_id = 13;
|
|
42
|
-
string fraud_reported_at = 14;
|
|
43
|
-
repeated FraudComment fraud_comments = 15;
|
|
28
|
+
google.protobuf.Struct transaction_data = 12;
|
|
44
29
|
}
|
|
45
30
|
|
|
46
31
|
message CatalogItem {
|
|
@@ -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
|
-
|
|
12
|
-
|
|
13
|
-
rpc
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
string
|
|
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
|
-
string
|
|
65
|
-
string
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
+
|