@alexochihua/protos 1.0.5 → 1.0.7
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/kapital/fraud_catalogs/v1/fraud_catalogs.d.ts +365 -0
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js +1798 -0
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js.map +1 -0
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.d.ts +89 -0
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.js +849 -0
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.js.map +1 -0
- package/dist/generated/kapital/fraud_groups/v1/fraud_groups.d.ts +475 -0
- package/dist/generated/kapital/fraud_groups/v1/fraud_groups.js +2446 -0
- package/dist/generated/kapital/fraud_groups/v1/fraud_groups.js.map +1 -0
- package/dist/generated/kapital/fraud_groups/v1/fraud_groups_types.d.ts +63 -0
- package/dist/generated/kapital/fraud_groups/v1/fraud_groups_types.js +571 -0
- package/dist/generated/kapital/fraud_groups/v1/fraud_groups_types.js.map +1 -0
- package/dist/generated/kapital/fraud_rules/v1/fraud_rules.d.ts +241 -0
- package/dist/generated/kapital/fraud_rules/v1/fraud_rules.js +1282 -0
- package/dist/generated/kapital/fraud_rules/v1/fraud_rules.js.map +1 -0
- package/dist/generated/kapital/fraud_rules/v1/fraud_rules_types.d.ts +56 -0
- package/dist/generated/kapital/fraud_rules/v1/fraud_rules_types.js +499 -0
- package/dist/generated/kapital/fraud_rules/v1/fraud_rules_types.js.map +1 -0
- package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists.d.ts +449 -0
- package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists.js +2304 -0
- package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists.js.map +1 -0
- package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists_types.d.ts +63 -0
- package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists_types.js +571 -0
- package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists_types.js.map +1 -0
- package/dist/generated/kapital/frauds/v1/frauds.d.ts +164 -0
- package/dist/generated/kapital/frauds/v1/frauds.js +833 -0
- package/dist/generated/kapital/frauds/v1/frauds.js.map +1 -0
- package/dist/generated/kapital/frauds/v1/frauds_types.d.ts +62 -0
- package/dist/generated/kapital/frauds/v1/frauds_types.js +561 -0
- package/dist/generated/kapital/frauds/v1/frauds_types.js.map +1 -0
- package/dist/generated/kapital/products/v1/products.d.ts +1 -1
- package/dist/generated/kapital/products/v1/products.js +3 -3
- package/dist/generated/kapital/products/v1/products.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +71 -1
- package/proto/kapital/accounts/v1/accounts.proto +80 -80
- package/proto/kapital/accounts/v1/accounts_types.proto +31 -31
- package/proto/kapital/accumulates/v1/accumulates_service.proto +81 -81
- package/proto/kapital/accumulates/v1/accumulates_types.proto +30 -30
- package/proto/kapital/cards/v1/cards.proto +32 -32
- package/proto/kapital/cards/v1/cards_types.proto +33 -33
- package/proto/kapital/collections_recovery/v1/collections_recovery.proto +80 -80
- package/proto/kapital/collections_recovery/v1/collections_recovery_types.proto +46 -46
- package/proto/kapital/commissions/v1/commissions.proto +69 -69
- package/proto/kapital/commissions/v1/commissions_types.proto +21 -21
- package/proto/kapital/common/v1/error.proto +18 -18
- package/proto/kapital/common/v1/meta.proto +13 -13
- package/proto/kapital/common/v1/pagination.proto +18 -18
- package/proto/kapital/contracts/v1/contracts_types.proto +315 -315
- package/proto/kapital/credit_accounts/v1/credit_accounts.proto +84 -84
- package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +40 -40
- package/proto/kapital/credit_configurations/v1/credit_configurations.proto +54 -54
- package/proto/kapital/credit_configurations/v1/credit_configurations_types.proto +14 -14
- package/proto/kapital/fraud_catalogs/v1/fraud_catalogs.proto +177 -0
- package/proto/kapital/fraud_catalogs/v1/fraud_catalogs_types.proto +81 -0
- package/proto/kapital/fraud_groups/v1/fraud_groups.proto +242 -0
- package/proto/kapital/fraud_groups/v1/fraud_groups_types.proto +55 -0
- package/proto/kapital/fraud_rules/v1/fraud_rules.proto +127 -0
- package/proto/kapital/fraud_rules/v1/fraud_rules_types.proto +48 -0
- package/proto/kapital/fraud_whitelists/v1/fraud_whitelists.proto +227 -0
- package/proto/kapital/fraud_whitelists/v1/fraud_whitelists_types.proto +55 -0
- package/proto/kapital/frauds/v1/frauds.proto +90 -0
- package/proto/kapital/frauds/v1/frauds_types.proto +54 -0
- package/proto/kapital/offers/v1/offers.proto +111 -111
- package/proto/kapital/offers/v1/offers_types.proto +54 -54
- package/proto/kapital/payments/v1/payments.proto +93 -93
- package/proto/kapital/payments/v1/payments_types.proto +17 -17
- package/proto/kapital/payments_methods/v1/payments_methods.proto +511 -511
- package/proto/kapital/payments_methods/v1/payments_methods_types.proto +157 -157
- package/proto/kapital/product_groups/v1/product_groups.proto +150 -150
- package/proto/kapital/product_groups/v1/product_groups_types.proto +48 -48
- package/proto/kapital/products/v1/products.proto +1 -1
- package/proto/kapital/transactions/v1/transactions.proto +70 -70
- package/proto/kapital/transactions/v1/transactions_types.proto +90 -90
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package kapital.accounts.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "kapital/accounts/v1;accountsv1";
|
|
6
|
-
|
|
7
|
-
message Account {
|
|
8
|
-
string id_short = 1;
|
|
9
|
-
string id_long = 2;
|
|
10
|
-
string account_number = 3;
|
|
11
|
-
string rfc = 4;
|
|
12
|
-
string business_name = 5;
|
|
13
|
-
string main_contact = 6;
|
|
14
|
-
double balance = 7;
|
|
15
|
-
double credit_line = 8;
|
|
16
|
-
int32 activated_cards_count = 9;
|
|
17
|
-
int32 deactivated_cards_count = 10;
|
|
18
|
-
string status = 11;
|
|
19
|
-
string block_description = 12;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
message Movement {
|
|
23
|
-
string id_short = 1;
|
|
24
|
-
string id_long = 2;
|
|
25
|
-
string access_method = 3;
|
|
26
|
-
string concept = 4;
|
|
27
|
-
string movement_type = 5;
|
|
28
|
-
double amount = 6;
|
|
29
|
-
string date = 7;
|
|
30
|
-
string status = 8;
|
|
31
|
-
}
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.accounts.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/accounts/v1;accountsv1";
|
|
6
|
+
|
|
7
|
+
message Account {
|
|
8
|
+
string id_short = 1;
|
|
9
|
+
string id_long = 2;
|
|
10
|
+
string account_number = 3;
|
|
11
|
+
string rfc = 4;
|
|
12
|
+
string business_name = 5;
|
|
13
|
+
string main_contact = 6;
|
|
14
|
+
double balance = 7;
|
|
15
|
+
double credit_line = 8;
|
|
16
|
+
int32 activated_cards_count = 9;
|
|
17
|
+
int32 deactivated_cards_count = 10;
|
|
18
|
+
string status = 11;
|
|
19
|
+
string block_description = 12;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message Movement {
|
|
23
|
+
string id_short = 1;
|
|
24
|
+
string id_long = 2;
|
|
25
|
+
string access_method = 3;
|
|
26
|
+
string concept = 4;
|
|
27
|
+
string movement_type = 5;
|
|
28
|
+
double amount = 6;
|
|
29
|
+
string date = 7;
|
|
30
|
+
string status = 8;
|
|
31
|
+
}
|
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package kapital.accumulates.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "kapital/accumulates/v1;accumulatesv1";
|
|
6
|
-
|
|
7
|
-
import "kapital/common/v1/meta.proto";
|
|
8
|
-
import "kapital/common/v1/pagination.proto";
|
|
9
|
-
import "kapital/accumulates/v1/accumulates_types.proto";
|
|
10
|
-
|
|
11
|
-
service AccumulatesService {
|
|
12
|
-
rpc GetAccumulates(GetAccumulatesRequest) returns (GetAccumulatesResponse);
|
|
13
|
-
rpc GetAccumulateDetail(GetAccumulateDetailRequest) returns (GetAccumulateDetailResponse);
|
|
14
|
-
rpc ExportAccumulates(ExportAccumulatesRequest) returns (ExportAccumulatesResponse);
|
|
15
|
-
rpc ExportAccumulateDetail(ExportAccumulateDetailRequest) returns (ExportAccumulateDetailResponse);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
message GetAccumulatesRequest {
|
|
19
|
-
string institution_id = 1;
|
|
20
|
-
kapital.common.v1.PageRequest page_request = 2;
|
|
21
|
-
string q = 3;
|
|
22
|
-
string card = 4;
|
|
23
|
-
string initial_date = 5;
|
|
24
|
-
string final_date = 6;
|
|
25
|
-
string period = 7;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
message GetAccumulatesResponse {
|
|
29
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
30
|
-
kapital.common.v1.PageResponse page_response = 2;
|
|
31
|
-
repeated Accumulated accumulateds = 3;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
message GetAccumulateDetailRequest {
|
|
35
|
-
string institution_id = 1;
|
|
36
|
-
string accumulate_id = 2;
|
|
37
|
-
kapital.common.v1.PageRequest page_request = 3;
|
|
38
|
-
string q = 4;
|
|
39
|
-
string date = 5;
|
|
40
|
-
string channel = 6;
|
|
41
|
-
string transaction_type_code = 7;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
message GetAccumulateDetailResponse {
|
|
45
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
46
|
-
kapital.common.v1.PageResponse page_response = 2;
|
|
47
|
-
repeated Transaction transactions = 3;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
message ExportAccumulatesRequest {
|
|
51
|
-
string institution_id = 1;
|
|
52
|
-
kapital.common.v1.PageRequest page_request = 2;
|
|
53
|
-
string q = 3;
|
|
54
|
-
string card = 4;
|
|
55
|
-
string initial_date = 5;
|
|
56
|
-
string final_date = 6;
|
|
57
|
-
string period = 7;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
message ExportAccumulatesResponse {
|
|
61
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
62
|
-
bytes file = 2;
|
|
63
|
-
string filename = 3;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
message ExportAccumulateDetailRequest {
|
|
67
|
-
string institution_id = 1;
|
|
68
|
-
string accumulate_id = 2;
|
|
69
|
-
kapital.common.v1.PageRequest page_request = 3;
|
|
70
|
-
string q = 4;
|
|
71
|
-
string date = 5;
|
|
72
|
-
string channel = 6;
|
|
73
|
-
string transaction_type_code = 7;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
message ExportAccumulateDetailResponse {
|
|
77
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
78
|
-
bytes file = 2;
|
|
79
|
-
string filename = 3;
|
|
80
|
-
}
|
|
81
|
-
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.accumulates.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/accumulates/v1;accumulatesv1";
|
|
6
|
+
|
|
7
|
+
import "kapital/common/v1/meta.proto";
|
|
8
|
+
import "kapital/common/v1/pagination.proto";
|
|
9
|
+
import "kapital/accumulates/v1/accumulates_types.proto";
|
|
10
|
+
|
|
11
|
+
service AccumulatesService {
|
|
12
|
+
rpc GetAccumulates(GetAccumulatesRequest) returns (GetAccumulatesResponse);
|
|
13
|
+
rpc GetAccumulateDetail(GetAccumulateDetailRequest) returns (GetAccumulateDetailResponse);
|
|
14
|
+
rpc ExportAccumulates(ExportAccumulatesRequest) returns (ExportAccumulatesResponse);
|
|
15
|
+
rpc ExportAccumulateDetail(ExportAccumulateDetailRequest) returns (ExportAccumulateDetailResponse);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message GetAccumulatesRequest {
|
|
19
|
+
string institution_id = 1;
|
|
20
|
+
kapital.common.v1.PageRequest page_request = 2;
|
|
21
|
+
string q = 3;
|
|
22
|
+
string card = 4;
|
|
23
|
+
string initial_date = 5;
|
|
24
|
+
string final_date = 6;
|
|
25
|
+
string period = 7;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message GetAccumulatesResponse {
|
|
29
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
30
|
+
kapital.common.v1.PageResponse page_response = 2;
|
|
31
|
+
repeated Accumulated accumulateds = 3;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message GetAccumulateDetailRequest {
|
|
35
|
+
string institution_id = 1;
|
|
36
|
+
string accumulate_id = 2;
|
|
37
|
+
kapital.common.v1.PageRequest page_request = 3;
|
|
38
|
+
string q = 4;
|
|
39
|
+
string date = 5;
|
|
40
|
+
string channel = 6;
|
|
41
|
+
string transaction_type_code = 7;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message GetAccumulateDetailResponse {
|
|
45
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
46
|
+
kapital.common.v1.PageResponse page_response = 2;
|
|
47
|
+
repeated Transaction transactions = 3;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message ExportAccumulatesRequest {
|
|
51
|
+
string institution_id = 1;
|
|
52
|
+
kapital.common.v1.PageRequest page_request = 2;
|
|
53
|
+
string q = 3;
|
|
54
|
+
string card = 4;
|
|
55
|
+
string initial_date = 5;
|
|
56
|
+
string final_date = 6;
|
|
57
|
+
string period = 7;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message ExportAccumulatesResponse {
|
|
61
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
62
|
+
bytes file = 2;
|
|
63
|
+
string filename = 3;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message ExportAccumulateDetailRequest {
|
|
67
|
+
string institution_id = 1;
|
|
68
|
+
string accumulate_id = 2;
|
|
69
|
+
kapital.common.v1.PageRequest page_request = 3;
|
|
70
|
+
string q = 4;
|
|
71
|
+
string date = 5;
|
|
72
|
+
string channel = 6;
|
|
73
|
+
string transaction_type_code = 7;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message ExportAccumulateDetailResponse {
|
|
77
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
78
|
+
bytes file = 2;
|
|
79
|
+
string filename = 3;
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package kapital.accumulates.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "kapital/accumulates/v1;accumulatesv1";
|
|
6
|
-
|
|
7
|
-
message Accumulated {
|
|
8
|
-
string id_short = 1;
|
|
9
|
-
string id_long = 2;
|
|
10
|
-
string card = 3;
|
|
11
|
-
string period = 4;
|
|
12
|
-
double accumulated_amount = 5;
|
|
13
|
-
string channel = 6;
|
|
14
|
-
int32 total_transactions = 7;
|
|
15
|
-
string date = 8;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
message Transaction {
|
|
19
|
-
string id_short = 1;
|
|
20
|
-
string id_long = 2;
|
|
21
|
-
string transaction_type = 3;
|
|
22
|
-
string transaction_type_code = 4;
|
|
23
|
-
double amount = 5;
|
|
24
|
-
string date = 6;
|
|
25
|
-
string concept = 7;
|
|
26
|
-
string business_line = 8;
|
|
27
|
-
string merchant = 9;
|
|
28
|
-
string channel = 10;
|
|
29
|
-
}
|
|
30
|
-
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.accumulates.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/accumulates/v1;accumulatesv1";
|
|
6
|
+
|
|
7
|
+
message Accumulated {
|
|
8
|
+
string id_short = 1;
|
|
9
|
+
string id_long = 2;
|
|
10
|
+
string card = 3;
|
|
11
|
+
string period = 4;
|
|
12
|
+
double accumulated_amount = 5;
|
|
13
|
+
string channel = 6;
|
|
14
|
+
int32 total_transactions = 7;
|
|
15
|
+
string date = 8;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message Transaction {
|
|
19
|
+
string id_short = 1;
|
|
20
|
+
string id_long = 2;
|
|
21
|
+
string transaction_type = 3;
|
|
22
|
+
string transaction_type_code = 4;
|
|
23
|
+
double amount = 5;
|
|
24
|
+
string date = 6;
|
|
25
|
+
string concept = 7;
|
|
26
|
+
string business_line = 8;
|
|
27
|
+
string merchant = 9;
|
|
28
|
+
string channel = 10;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package kapital.cards.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "kapital/cards/v1;cardsv1";
|
|
6
|
-
|
|
7
|
-
import "kapital/common/v1/meta.proto";
|
|
8
|
-
import "kapital/cards/v1/cards_types.proto";
|
|
9
|
-
|
|
10
|
-
service CardsService {
|
|
11
|
-
rpc GetExistsCard(GetExistsCardRequest) returns (GetExistsCardResponse);
|
|
12
|
-
rpc GetCard(GetCardRequest) returns (GetCardResponse);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
message GetExistsCardRequest {
|
|
16
|
-
string card_id = 1;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
message GetExistsCardResponse {
|
|
20
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
21
|
-
string card_id = 2;
|
|
22
|
-
bool exists = 3;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
message GetCardRequest {
|
|
26
|
-
string card_id = 1;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
message GetCardResponse {
|
|
30
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
31
|
-
Card card = 2;
|
|
32
|
-
}
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.cards.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/cards/v1;cardsv1";
|
|
6
|
+
|
|
7
|
+
import "kapital/common/v1/meta.proto";
|
|
8
|
+
import "kapital/cards/v1/cards_types.proto";
|
|
9
|
+
|
|
10
|
+
service CardsService {
|
|
11
|
+
rpc GetExistsCard(GetExistsCardRequest) returns (GetExistsCardResponse);
|
|
12
|
+
rpc GetCard(GetCardRequest) returns (GetCardResponse);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message GetExistsCardRequest {
|
|
16
|
+
string card_id = 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message GetExistsCardResponse {
|
|
20
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
21
|
+
string card_id = 2;
|
|
22
|
+
bool exists = 3;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message GetCardRequest {
|
|
26
|
+
string card_id = 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message GetCardResponse {
|
|
30
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
31
|
+
Card card = 2;
|
|
32
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package kapital.cards.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "kapital/cards/v1;cardsv1";
|
|
6
|
-
|
|
7
|
-
message Card {
|
|
8
|
-
string id = 1;
|
|
9
|
-
string activation_status = 2;
|
|
10
|
-
string available_balance = 3;
|
|
11
|
-
string bin = 4;
|
|
12
|
-
string card_brand = 5;
|
|
13
|
-
string card_type = 6;
|
|
14
|
-
string cardholder = 7;
|
|
15
|
-
string client_id = 8;
|
|
16
|
-
string client_name = 9;
|
|
17
|
-
string contract_id = 10;
|
|
18
|
-
string credit_limit = 11;
|
|
19
|
-
bool is_active = 12;
|
|
20
|
-
bool is_virtual = 13;
|
|
21
|
-
string limit_amount = 14;
|
|
22
|
-
string pan = 15;
|
|
23
|
-
string payment_due_date = 16;
|
|
24
|
-
string physical_card_id = 17;
|
|
25
|
-
string product = 18;
|
|
26
|
-
string product_id = 19;
|
|
27
|
-
string status = 20;
|
|
28
|
-
string status_id = 21;
|
|
29
|
-
string created_by = 22;
|
|
30
|
-
string updated_by = 23;
|
|
31
|
-
string created_at = 24;
|
|
32
|
-
string updated_at = 25;
|
|
33
|
-
}
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.cards.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/cards/v1;cardsv1";
|
|
6
|
+
|
|
7
|
+
message Card {
|
|
8
|
+
string id = 1;
|
|
9
|
+
string activation_status = 2;
|
|
10
|
+
string available_balance = 3;
|
|
11
|
+
string bin = 4;
|
|
12
|
+
string card_brand = 5;
|
|
13
|
+
string card_type = 6;
|
|
14
|
+
string cardholder = 7;
|
|
15
|
+
string client_id = 8;
|
|
16
|
+
string client_name = 9;
|
|
17
|
+
string contract_id = 10;
|
|
18
|
+
string credit_limit = 11;
|
|
19
|
+
bool is_active = 12;
|
|
20
|
+
bool is_virtual = 13;
|
|
21
|
+
string limit_amount = 14;
|
|
22
|
+
string pan = 15;
|
|
23
|
+
string payment_due_date = 16;
|
|
24
|
+
string physical_card_id = 17;
|
|
25
|
+
string product = 18;
|
|
26
|
+
string product_id = 19;
|
|
27
|
+
string status = 20;
|
|
28
|
+
string status_id = 21;
|
|
29
|
+
string created_by = 22;
|
|
30
|
+
string updated_by = 23;
|
|
31
|
+
string created_at = 24;
|
|
32
|
+
string updated_at = 25;
|
|
33
|
+
}
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package kapital.collections_recovery.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "kapital/collections_recovery/v1;collectionsrecoveryv1";
|
|
6
|
-
|
|
7
|
-
import "kapital/common/v1/meta.proto";
|
|
8
|
-
import "kapital/common/v1/pagination.proto";
|
|
9
|
-
import "kapital/collections_recovery/v1/collections_recovery_types.proto";
|
|
10
|
-
|
|
11
|
-
service CollectionsRecoveryService {
|
|
12
|
-
rpc GetDelinquencyTracking(GetDelinquencyTrackingRequest) returns (GetDelinquencyTrackingResponse);
|
|
13
|
-
rpc GetDelinquencyTrackingById(GetDelinquencyTrackingByIdRequest) returns (GetDelinquencyTrackingByIdResponse);
|
|
14
|
-
rpc GetRefinancingPlans(GetRefinancingPlansRequest) returns (GetRefinancingPlansResponse);
|
|
15
|
-
rpc GetRefinancingPlanById(GetRefinancingPlanByIdRequest) returns (GetRefinancingPlanByIdResponse);
|
|
16
|
-
rpc UpdateRefinancingPlan(UpdateRefinancingPlanRequest) returns (UpdateRefinancingPlanResponse);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// ============================================================================
|
|
20
|
-
// Request/Response Messages
|
|
21
|
-
// ============================================================================
|
|
22
|
-
|
|
23
|
-
message GetDelinquencyTrackingRequest {
|
|
24
|
-
kapital.common.v1.PageRequest page_request = 1;
|
|
25
|
-
string q = 2;
|
|
26
|
-
string status = 3;
|
|
27
|
-
string rfc = 4;
|
|
28
|
-
string customer_number = 5;
|
|
29
|
-
int32 min_overdue_days = 6;
|
|
30
|
-
int32 max_overdue_days = 7;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
message GetDelinquencyTrackingResponse {
|
|
34
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
35
|
-
int32 total = 2;
|
|
36
|
-
repeated DelinquencyTrackingRecord records = 3;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
message GetDelinquencyTrackingByIdRequest {
|
|
40
|
-
string id = 1;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
message GetDelinquencyTrackingByIdResponse {
|
|
44
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
45
|
-
DelinquencyTrackingRecord record = 2;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
message GetRefinancingPlansRequest {
|
|
49
|
-
kapital.common.v1.PageRequest page_request = 1;
|
|
50
|
-
string q = 2;
|
|
51
|
-
string status = 3;
|
|
52
|
-
string rfc = 4;
|
|
53
|
-
string account = 5;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
message GetRefinancingPlansResponse {
|
|
57
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
58
|
-
int32 total = 2;
|
|
59
|
-
repeated RefinancingPlanRecord records = 3;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
message GetRefinancingPlanByIdRequest {
|
|
63
|
-
string id = 1;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
message GetRefinancingPlanByIdResponse {
|
|
67
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
68
|
-
RefinancingPlanRecord record = 2;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
message UpdateRefinancingPlanRequest {
|
|
72
|
-
string id = 1;
|
|
73
|
-
string balance = 2;
|
|
74
|
-
string interest_rate = 3;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
message UpdateRefinancingPlanResponse {
|
|
78
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
79
|
-
RefinancingPlanRecord record = 2;
|
|
80
|
-
}
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.collections_recovery.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/collections_recovery/v1;collectionsrecoveryv1";
|
|
6
|
+
|
|
7
|
+
import "kapital/common/v1/meta.proto";
|
|
8
|
+
import "kapital/common/v1/pagination.proto";
|
|
9
|
+
import "kapital/collections_recovery/v1/collections_recovery_types.proto";
|
|
10
|
+
|
|
11
|
+
service CollectionsRecoveryService {
|
|
12
|
+
rpc GetDelinquencyTracking(GetDelinquencyTrackingRequest) returns (GetDelinquencyTrackingResponse);
|
|
13
|
+
rpc GetDelinquencyTrackingById(GetDelinquencyTrackingByIdRequest) returns (GetDelinquencyTrackingByIdResponse);
|
|
14
|
+
rpc GetRefinancingPlans(GetRefinancingPlansRequest) returns (GetRefinancingPlansResponse);
|
|
15
|
+
rpc GetRefinancingPlanById(GetRefinancingPlanByIdRequest) returns (GetRefinancingPlanByIdResponse);
|
|
16
|
+
rpc UpdateRefinancingPlan(UpdateRefinancingPlanRequest) returns (UpdateRefinancingPlanResponse);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// ============================================================================
|
|
20
|
+
// Request/Response Messages
|
|
21
|
+
// ============================================================================
|
|
22
|
+
|
|
23
|
+
message GetDelinquencyTrackingRequest {
|
|
24
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
25
|
+
string q = 2;
|
|
26
|
+
string status = 3;
|
|
27
|
+
string rfc = 4;
|
|
28
|
+
string customer_number = 5;
|
|
29
|
+
int32 min_overdue_days = 6;
|
|
30
|
+
int32 max_overdue_days = 7;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message GetDelinquencyTrackingResponse {
|
|
34
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
35
|
+
int32 total = 2;
|
|
36
|
+
repeated DelinquencyTrackingRecord records = 3;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message GetDelinquencyTrackingByIdRequest {
|
|
40
|
+
string id = 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message GetDelinquencyTrackingByIdResponse {
|
|
44
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
45
|
+
DelinquencyTrackingRecord record = 2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message GetRefinancingPlansRequest {
|
|
49
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
50
|
+
string q = 2;
|
|
51
|
+
string status = 3;
|
|
52
|
+
string rfc = 4;
|
|
53
|
+
string account = 5;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
message GetRefinancingPlansResponse {
|
|
57
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
58
|
+
int32 total = 2;
|
|
59
|
+
repeated RefinancingPlanRecord records = 3;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message GetRefinancingPlanByIdRequest {
|
|
63
|
+
string id = 1;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message GetRefinancingPlanByIdResponse {
|
|
67
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
68
|
+
RefinancingPlanRecord record = 2;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
message UpdateRefinancingPlanRequest {
|
|
72
|
+
string id = 1;
|
|
73
|
+
string balance = 2;
|
|
74
|
+
string interest_rate = 3;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
message UpdateRefinancingPlanResponse {
|
|
78
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
79
|
+
RefinancingPlanRecord record = 2;
|
|
80
|
+
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package kapital.collections_recovery.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "kapital/collections_recovery/v1;collectionsrecoveryv1";
|
|
6
|
-
|
|
7
|
-
message DelinquencyTrackingRecord {
|
|
8
|
-
string id = 1;
|
|
9
|
-
string customer_id = 2;
|
|
10
|
-
string contract_id = 3;
|
|
11
|
-
string account = 4;
|
|
12
|
-
string product_type = 5;
|
|
13
|
-
int32 number_cards = 6;
|
|
14
|
-
string pending_balance = 7;
|
|
15
|
-
int32 overdue_days = 8;
|
|
16
|
-
string overdue_amount = 9;
|
|
17
|
-
string status = 10;
|
|
18
|
-
string rfc = 11;
|
|
19
|
-
string business_name = 12;
|
|
20
|
-
string customer_number = 13;
|
|
21
|
-
string created_at = 14;
|
|
22
|
-
string updated_at = 15;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
message RefinancingPlanRecord {
|
|
26
|
-
string id = 1;
|
|
27
|
-
string delinquency_tracking_id = 2;
|
|
28
|
-
string account = 3;
|
|
29
|
-
string product_type = 4;
|
|
30
|
-
int32 number_cards = 5;
|
|
31
|
-
string interest_rate = 6;
|
|
32
|
-
string balance = 7;
|
|
33
|
-
string available_limit = 8;
|
|
34
|
-
int32 transactions_per_period = 9;
|
|
35
|
-
string status = 10;
|
|
36
|
-
string rfc = 11;
|
|
37
|
-
string business_name = 12;
|
|
38
|
-
string last_refinancing_date = 13;
|
|
39
|
-
string refinancing_description = 14;
|
|
40
|
-
string activated_by = 15;
|
|
41
|
-
int32 activation_count = 16;
|
|
42
|
-
string closing_date = 17;
|
|
43
|
-
string deactivated_by = 18;
|
|
44
|
-
string created_at = 19;
|
|
45
|
-
string updated_at = 20;
|
|
46
|
-
}
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.collections_recovery.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/collections_recovery/v1;collectionsrecoveryv1";
|
|
6
|
+
|
|
7
|
+
message DelinquencyTrackingRecord {
|
|
8
|
+
string id = 1;
|
|
9
|
+
string customer_id = 2;
|
|
10
|
+
string contract_id = 3;
|
|
11
|
+
string account = 4;
|
|
12
|
+
string product_type = 5;
|
|
13
|
+
int32 number_cards = 6;
|
|
14
|
+
string pending_balance = 7;
|
|
15
|
+
int32 overdue_days = 8;
|
|
16
|
+
string overdue_amount = 9;
|
|
17
|
+
string status = 10;
|
|
18
|
+
string rfc = 11;
|
|
19
|
+
string business_name = 12;
|
|
20
|
+
string customer_number = 13;
|
|
21
|
+
string created_at = 14;
|
|
22
|
+
string updated_at = 15;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message RefinancingPlanRecord {
|
|
26
|
+
string id = 1;
|
|
27
|
+
string delinquency_tracking_id = 2;
|
|
28
|
+
string account = 3;
|
|
29
|
+
string product_type = 4;
|
|
30
|
+
int32 number_cards = 5;
|
|
31
|
+
string interest_rate = 6;
|
|
32
|
+
string balance = 7;
|
|
33
|
+
string available_limit = 8;
|
|
34
|
+
int32 transactions_per_period = 9;
|
|
35
|
+
string status = 10;
|
|
36
|
+
string rfc = 11;
|
|
37
|
+
string business_name = 12;
|
|
38
|
+
string last_refinancing_date = 13;
|
|
39
|
+
string refinancing_description = 14;
|
|
40
|
+
string activated_by = 15;
|
|
41
|
+
int32 activation_count = 16;
|
|
42
|
+
string closing_date = 17;
|
|
43
|
+
string deactivated_by = 18;
|
|
44
|
+
string created_at = 19;
|
|
45
|
+
string updated_at = 20;
|
|
46
|
+
}
|