@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.
Files changed (76) hide show
  1. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.d.ts +365 -0
  2. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js +1798 -0
  3. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js.map +1 -0
  4. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.d.ts +89 -0
  5. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.js +849 -0
  6. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.js.map +1 -0
  7. package/dist/generated/kapital/fraud_groups/v1/fraud_groups.d.ts +475 -0
  8. package/dist/generated/kapital/fraud_groups/v1/fraud_groups.js +2446 -0
  9. package/dist/generated/kapital/fraud_groups/v1/fraud_groups.js.map +1 -0
  10. package/dist/generated/kapital/fraud_groups/v1/fraud_groups_types.d.ts +63 -0
  11. package/dist/generated/kapital/fraud_groups/v1/fraud_groups_types.js +571 -0
  12. package/dist/generated/kapital/fraud_groups/v1/fraud_groups_types.js.map +1 -0
  13. package/dist/generated/kapital/fraud_rules/v1/fraud_rules.d.ts +241 -0
  14. package/dist/generated/kapital/fraud_rules/v1/fraud_rules.js +1282 -0
  15. package/dist/generated/kapital/fraud_rules/v1/fraud_rules.js.map +1 -0
  16. package/dist/generated/kapital/fraud_rules/v1/fraud_rules_types.d.ts +56 -0
  17. package/dist/generated/kapital/fraud_rules/v1/fraud_rules_types.js +499 -0
  18. package/dist/generated/kapital/fraud_rules/v1/fraud_rules_types.js.map +1 -0
  19. package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists.d.ts +449 -0
  20. package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists.js +2304 -0
  21. package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists.js.map +1 -0
  22. package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists_types.d.ts +63 -0
  23. package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists_types.js +571 -0
  24. package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists_types.js.map +1 -0
  25. package/dist/generated/kapital/frauds/v1/frauds.d.ts +164 -0
  26. package/dist/generated/kapital/frauds/v1/frauds.js +833 -0
  27. package/dist/generated/kapital/frauds/v1/frauds.js.map +1 -0
  28. package/dist/generated/kapital/frauds/v1/frauds_types.d.ts +62 -0
  29. package/dist/generated/kapital/frauds/v1/frauds_types.js +561 -0
  30. package/dist/generated/kapital/frauds/v1/frauds_types.js.map +1 -0
  31. package/dist/generated/kapital/products/v1/products.d.ts +1 -1
  32. package/dist/generated/kapital/products/v1/products.js +3 -3
  33. package/dist/generated/kapital/products/v1/products.js.map +1 -1
  34. package/dist/index.d.ts +10 -0
  35. package/dist/index.js +11 -1
  36. package/dist/index.js.map +1 -1
  37. package/package.json +71 -1
  38. package/proto/kapital/accounts/v1/accounts.proto +80 -80
  39. package/proto/kapital/accounts/v1/accounts_types.proto +31 -31
  40. package/proto/kapital/accumulates/v1/accumulates_service.proto +81 -81
  41. package/proto/kapital/accumulates/v1/accumulates_types.proto +30 -30
  42. package/proto/kapital/cards/v1/cards.proto +32 -32
  43. package/proto/kapital/cards/v1/cards_types.proto +33 -33
  44. package/proto/kapital/collections_recovery/v1/collections_recovery.proto +80 -80
  45. package/proto/kapital/collections_recovery/v1/collections_recovery_types.proto +46 -46
  46. package/proto/kapital/commissions/v1/commissions.proto +69 -69
  47. package/proto/kapital/commissions/v1/commissions_types.proto +21 -21
  48. package/proto/kapital/common/v1/error.proto +18 -18
  49. package/proto/kapital/common/v1/meta.proto +13 -13
  50. package/proto/kapital/common/v1/pagination.proto +18 -18
  51. package/proto/kapital/contracts/v1/contracts_types.proto +315 -315
  52. package/proto/kapital/credit_accounts/v1/credit_accounts.proto +84 -84
  53. package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +40 -40
  54. package/proto/kapital/credit_configurations/v1/credit_configurations.proto +54 -54
  55. package/proto/kapital/credit_configurations/v1/credit_configurations_types.proto +14 -14
  56. package/proto/kapital/fraud_catalogs/v1/fraud_catalogs.proto +177 -0
  57. package/proto/kapital/fraud_catalogs/v1/fraud_catalogs_types.proto +81 -0
  58. package/proto/kapital/fraud_groups/v1/fraud_groups.proto +242 -0
  59. package/proto/kapital/fraud_groups/v1/fraud_groups_types.proto +55 -0
  60. package/proto/kapital/fraud_rules/v1/fraud_rules.proto +127 -0
  61. package/proto/kapital/fraud_rules/v1/fraud_rules_types.proto +48 -0
  62. package/proto/kapital/fraud_whitelists/v1/fraud_whitelists.proto +227 -0
  63. package/proto/kapital/fraud_whitelists/v1/fraud_whitelists_types.proto +55 -0
  64. package/proto/kapital/frauds/v1/frauds.proto +90 -0
  65. package/proto/kapital/frauds/v1/frauds_types.proto +54 -0
  66. package/proto/kapital/offers/v1/offers.proto +111 -111
  67. package/proto/kapital/offers/v1/offers_types.proto +54 -54
  68. package/proto/kapital/payments/v1/payments.proto +93 -93
  69. package/proto/kapital/payments/v1/payments_types.proto +17 -17
  70. package/proto/kapital/payments_methods/v1/payments_methods.proto +511 -511
  71. package/proto/kapital/payments_methods/v1/payments_methods_types.proto +157 -157
  72. package/proto/kapital/product_groups/v1/product_groups.proto +150 -150
  73. package/proto/kapital/product_groups/v1/product_groups_types.proto +48 -48
  74. package/proto/kapital/products/v1/products.proto +1 -1
  75. package/proto/kapital/transactions/v1/transactions.proto +70 -70
  76. package/proto/kapital/transactions/v1/transactions_types.proto +90 -90
@@ -1,84 +1,84 @@
1
- syntax = "proto3";
2
-
3
- package kapital.credit_accounts.v1;
4
-
5
- option go_package = "kapital/credit_accounts/v1;creditaccountsv1";
6
-
7
- import "kapital/common/v1/meta.proto";
8
- import "kapital/common/v1/pagination.proto";
9
- import "kapital/credit_accounts/v1/credit_accounts_types.proto";
10
-
11
- service CreditAccountsService {
12
- rpc GetAccounts(GetAccountsRequest) returns (GetAccountsResponse);
13
- rpc GetAccountDetail(GetAccountDetailRequest) returns (GetAccountDetailResponse);
14
- rpc GetAccountProductById(GetAccountProductByIdRequest) returns (GetAccountProductByIdResponse);
15
- rpc CreateAccountProduct(CreateAccountProductRequest) returns (CreateAccountProductResponse);
16
- rpc UpdateAccountProduct(UpdateAccountProductRequest) returns (UpdateAccountProductResponse);
17
- }
18
-
19
- message GetAccountsRequest {
20
- kapital.common.v1.PageRequest page_request = 1;
21
- string rfc = 2;
22
- string business_name = 3;
23
- string status = 4;
24
- string q = 5;
25
- string account = 6;
26
- }
27
-
28
- message GetAccountsResponse {
29
- kapital.common.v1.ResponseMeta meta = 1;
30
- kapital.common.v1.PageResponse page_response = 2;
31
- repeated Account accounts = 3;
32
- }
33
-
34
- message GetAccountDetailRequest {
35
- string account_id = 1;
36
- kapital.common.v1.PageRequest page_request = 2;
37
- string status = 3;
38
- string date = 4;
39
- string movement_type = 5;
40
- string q = 6;
41
- }
42
-
43
- message GetAccountDetailResponse {
44
- kapital.common.v1.ResponseMeta meta = 1;
45
- kapital.common.v1.PageResponse page_response = 2;
46
- repeated Movement movements = 3;
47
- }
48
-
49
- message GetAccountProductByIdRequest {
50
- string account_id = 1;
51
- string product_id = 2;
52
- }
53
-
54
- message GetAccountProductByIdResponse {
55
- kapital.common.v1.ResponseMeta meta = 1;
56
- AccountProduct product = 2;
57
- }
58
-
59
- message CreateAccountProductRequest {
60
- string account_id = 1;
61
- string product = 2;
62
- string rate_selection = 3;
63
- int32 allowed_cards = 4;
64
- string credit_amount = 5;
65
- }
66
-
67
- message CreateAccountProductResponse {
68
- kapital.common.v1.ResponseMeta meta = 1;
69
- AccountProduct product = 2;
70
- }
71
-
72
- message UpdateAccountProductRequest {
73
- string account_id = 1;
74
- string product_id = 2;
75
- string product = 3;
76
- string rate_selection = 4;
77
- int32 allowed_cards = 5;
78
- string credit_amount = 6;
79
- }
80
-
81
- message UpdateAccountProductResponse {
82
- kapital.common.v1.ResponseMeta meta = 1;
83
- AccountProduct product = 2;
84
- }
1
+ syntax = "proto3";
2
+
3
+ package kapital.credit_accounts.v1;
4
+
5
+ option go_package = "kapital/credit_accounts/v1;creditaccountsv1";
6
+
7
+ import "kapital/common/v1/meta.proto";
8
+ import "kapital/common/v1/pagination.proto";
9
+ import "kapital/credit_accounts/v1/credit_accounts_types.proto";
10
+
11
+ service CreditAccountsService {
12
+ rpc GetAccounts(GetAccountsRequest) returns (GetAccountsResponse);
13
+ rpc GetAccountDetail(GetAccountDetailRequest) returns (GetAccountDetailResponse);
14
+ rpc GetAccountProductById(GetAccountProductByIdRequest) returns (GetAccountProductByIdResponse);
15
+ rpc CreateAccountProduct(CreateAccountProductRequest) returns (CreateAccountProductResponse);
16
+ rpc UpdateAccountProduct(UpdateAccountProductRequest) returns (UpdateAccountProductResponse);
17
+ }
18
+
19
+ message GetAccountsRequest {
20
+ kapital.common.v1.PageRequest page_request = 1;
21
+ string rfc = 2;
22
+ string business_name = 3;
23
+ string status = 4;
24
+ string q = 5;
25
+ string account = 6;
26
+ }
27
+
28
+ message GetAccountsResponse {
29
+ kapital.common.v1.ResponseMeta meta = 1;
30
+ kapital.common.v1.PageResponse page_response = 2;
31
+ repeated Account accounts = 3;
32
+ }
33
+
34
+ message GetAccountDetailRequest {
35
+ string account_id = 1;
36
+ kapital.common.v1.PageRequest page_request = 2;
37
+ string status = 3;
38
+ string date = 4;
39
+ string movement_type = 5;
40
+ string q = 6;
41
+ }
42
+
43
+ message GetAccountDetailResponse {
44
+ kapital.common.v1.ResponseMeta meta = 1;
45
+ kapital.common.v1.PageResponse page_response = 2;
46
+ repeated Movement movements = 3;
47
+ }
48
+
49
+ message GetAccountProductByIdRequest {
50
+ string account_id = 1;
51
+ string product_id = 2;
52
+ }
53
+
54
+ message GetAccountProductByIdResponse {
55
+ kapital.common.v1.ResponseMeta meta = 1;
56
+ AccountProduct product = 2;
57
+ }
58
+
59
+ message CreateAccountProductRequest {
60
+ string account_id = 1;
61
+ string product = 2;
62
+ string rate_selection = 3;
63
+ int32 allowed_cards = 4;
64
+ string credit_amount = 5;
65
+ }
66
+
67
+ message CreateAccountProductResponse {
68
+ kapital.common.v1.ResponseMeta meta = 1;
69
+ AccountProduct product = 2;
70
+ }
71
+
72
+ message UpdateAccountProductRequest {
73
+ string account_id = 1;
74
+ string product_id = 2;
75
+ string product = 3;
76
+ string rate_selection = 4;
77
+ int32 allowed_cards = 5;
78
+ string credit_amount = 6;
79
+ }
80
+
81
+ message UpdateAccountProductResponse {
82
+ kapital.common.v1.ResponseMeta meta = 1;
83
+ AccountProduct product = 2;
84
+ }
@@ -1,40 +1,40 @@
1
- syntax = "proto3";
2
-
3
- package kapital.credit_accounts.v1;
4
-
5
- option go_package = "kapital/credit_accounts/v1;creditaccountsv1";
6
-
7
- message AccountProduct {
8
- string id_short = 1;
9
- string id_long = 2;
10
- string product = 3;
11
- string rate_selection = 4;
12
- int32 allowed_cards = 5;
13
- string credit_amount = 6;
14
- }
15
-
16
- message Account {
17
- string id_short = 1;
18
- string id_long = 2;
19
- string account = 3;
20
- string product_type = 4;
21
- int32 number_cards = 5;
22
- double rate = 6;
23
- double available_limits = 7;
24
- double balance = 8;
25
- string status = 9;
26
- string status_label = 10;
27
- string rfc = 11;
28
- string business_name = 12;
29
- }
30
-
31
- message Movement {
32
- string id_short = 1;
33
- string id_long = 2;
34
- string access_method = 3;
35
- string concept = 4;
36
- string movement_type = 5;
37
- double amount = 6;
38
- string date = 7;
39
- string status = 8;
40
- }
1
+ syntax = "proto3";
2
+
3
+ package kapital.credit_accounts.v1;
4
+
5
+ option go_package = "kapital/credit_accounts/v1;creditaccountsv1";
6
+
7
+ message AccountProduct {
8
+ string id_short = 1;
9
+ string id_long = 2;
10
+ string product = 3;
11
+ string rate_selection = 4;
12
+ int32 allowed_cards = 5;
13
+ string credit_amount = 6;
14
+ }
15
+
16
+ message Account {
17
+ string id_short = 1;
18
+ string id_long = 2;
19
+ string account = 3;
20
+ string product_type = 4;
21
+ int32 number_cards = 5;
22
+ double rate = 6;
23
+ double available_limits = 7;
24
+ double balance = 8;
25
+ string status = 9;
26
+ string status_label = 10;
27
+ string rfc = 11;
28
+ string business_name = 12;
29
+ }
30
+
31
+ message Movement {
32
+ string id_short = 1;
33
+ string id_long = 2;
34
+ string access_method = 3;
35
+ string concept = 4;
36
+ string movement_type = 5;
37
+ double amount = 6;
38
+ string date = 7;
39
+ string status = 8;
40
+ }
@@ -1,54 +1,54 @@
1
- syntax = "proto3";
2
-
3
- package kapital.credit_configurations.v1;
4
-
5
- option go_package = "kapital/credit_configurations/v1;creditconfigurationsv1";
6
-
7
- import "kapital/common/v1/meta.proto";
8
- import "kapital/credit_configurations/v1/credit_configurations_types.proto";
9
-
10
- service CreditConfigurationsService {
11
- rpc GetAccountStatementConfiguration(GetAccountStatementConfigurationRequest) returns (GetAccountStatementConfigurationResponse);
12
- rpc GetAccountStatementById(GetAccountStatementByIdRequest) returns (GetAccountStatementByIdResponse);
13
- rpc SaveAccountStatementConfiguration(SaveAccountStatementConfigurationRequest) returns (SaveAccountStatementConfigurationResponse);
14
- rpc DownloadAccountStatementPdf(DownloadAccountStatementPdfRequest) returns (DownloadAccountStatementPdfResponse);
15
- }
16
-
17
- message GetAccountStatementConfigurationRequest {
18
- string statement_section_id = 1;
19
- }
20
-
21
- message GetAccountStatementConfigurationResponse {
22
- kapital.common.v1.ResponseMeta meta = 1;
23
- repeated AccountStatementConfiguration configurations = 2;
24
- }
25
-
26
- message GetAccountStatementByIdRequest {
27
- string id = 1;
28
- }
29
-
30
- message GetAccountStatementByIdResponse {
31
- kapital.common.v1.ResponseMeta meta = 1;
32
- AccountStatementConfiguration configuration = 2;
33
- }
34
-
35
- message SaveAccountStatementConfigurationRequest {
36
- string product_id = 1;
37
- string statement_section_id = 2;
38
- string description = 3;
39
- }
40
-
41
- message SaveAccountStatementConfigurationResponse {
42
- kapital.common.v1.ResponseMeta meta = 1;
43
- AccountStatementConfiguration configuration = 2;
44
- }
45
-
46
- message DownloadAccountStatementPdfRequest {
47
- string product_id = 1;
48
- }
49
-
50
- message DownloadAccountStatementPdfResponse {
51
- kapital.common.v1.ResponseMeta meta = 1;
52
- bytes file = 2;
53
- string filename = 3;
54
- }
1
+ syntax = "proto3";
2
+
3
+ package kapital.credit_configurations.v1;
4
+
5
+ option go_package = "kapital/credit_configurations/v1;creditconfigurationsv1";
6
+
7
+ import "kapital/common/v1/meta.proto";
8
+ import "kapital/credit_configurations/v1/credit_configurations_types.proto";
9
+
10
+ service CreditConfigurationsService {
11
+ rpc GetAccountStatementConfiguration(GetAccountStatementConfigurationRequest) returns (GetAccountStatementConfigurationResponse);
12
+ rpc GetAccountStatementById(GetAccountStatementByIdRequest) returns (GetAccountStatementByIdResponse);
13
+ rpc SaveAccountStatementConfiguration(SaveAccountStatementConfigurationRequest) returns (SaveAccountStatementConfigurationResponse);
14
+ rpc DownloadAccountStatementPdf(DownloadAccountStatementPdfRequest) returns (DownloadAccountStatementPdfResponse);
15
+ }
16
+
17
+ message GetAccountStatementConfigurationRequest {
18
+ string statement_section_id = 1;
19
+ }
20
+
21
+ message GetAccountStatementConfigurationResponse {
22
+ kapital.common.v1.ResponseMeta meta = 1;
23
+ repeated AccountStatementConfiguration configurations = 2;
24
+ }
25
+
26
+ message GetAccountStatementByIdRequest {
27
+ string id = 1;
28
+ }
29
+
30
+ message GetAccountStatementByIdResponse {
31
+ kapital.common.v1.ResponseMeta meta = 1;
32
+ AccountStatementConfiguration configuration = 2;
33
+ }
34
+
35
+ message SaveAccountStatementConfigurationRequest {
36
+ string product_id = 1;
37
+ string statement_section_id = 2;
38
+ string description = 3;
39
+ }
40
+
41
+ message SaveAccountStatementConfigurationResponse {
42
+ kapital.common.v1.ResponseMeta meta = 1;
43
+ AccountStatementConfiguration configuration = 2;
44
+ }
45
+
46
+ message DownloadAccountStatementPdfRequest {
47
+ string product_id = 1;
48
+ }
49
+
50
+ message DownloadAccountStatementPdfResponse {
51
+ kapital.common.v1.ResponseMeta meta = 1;
52
+ bytes file = 2;
53
+ string filename = 3;
54
+ }
@@ -1,14 +1,14 @@
1
- syntax = "proto3";
2
-
3
- package kapital.credit_configurations.v1;
4
-
5
- option go_package = "kapital/credit_configurations/v1;creditconfigurationsv1";
6
-
7
- message AccountStatementConfiguration {
8
- string id = 1;
9
- string product_id = 2;
10
- string statement_section_id = 3;
11
- string description = 4;
12
- string created_at = 5;
13
- string updated_at = 6;
14
- }
1
+ syntax = "proto3";
2
+
3
+ package kapital.credit_configurations.v1;
4
+
5
+ option go_package = "kapital/credit_configurations/v1;creditconfigurationsv1";
6
+
7
+ message AccountStatementConfiguration {
8
+ string id = 1;
9
+ string product_id = 2;
10
+ string statement_section_id = 3;
11
+ string description = 4;
12
+ string created_at = 5;
13
+ string updated_at = 6;
14
+ }
@@ -0,0 +1,177 @@
1
+ syntax = "proto3";
2
+
3
+ package kapital.fraud_catalogs.v1;
4
+
5
+ option go_package = "kapital/fraud_catalogs/v1;fraudcatalogsv1";
6
+
7
+ import "kapital/common/v1/meta.proto";
8
+ import "kapital/common/v1/pagination.proto";
9
+ import "kapital/fraud_catalogs/v1/fraud_catalogs_types.proto";
10
+
11
+ service FraudCatalogsService {
12
+ rpc GetCatalogList(GetCatalogListRequest) returns (GetCatalogListResponse);
13
+ rpc GetCatalogById(GetCatalogByIdRequest) returns (GetCatalogByIdResponse);
14
+ rpc CreateUpdateCatalog(CreateUpdateCatalogRequest) returns (CreateUpdateCatalogResponse);
15
+ rpc DeleteCatalog(DeleteCatalogRequest) returns (DeleteCatalogResponse);
16
+ rpc GetCatalogInfo(GetCatalogInfoRequest) returns (GetCatalogInfoResponse);
17
+ rpc GetResponseCodes(GetResponseCodesRequest) returns (GetResponseCodesResponse);
18
+ rpc GetFraudStatuses(GetFraudStatusesRequest) returns (GetFraudStatusesResponse);
19
+ rpc GetCurrencies(GetCurrenciesRequest) returns (GetCurrenciesResponse);
20
+ rpc GetMccCatalog(GetMccCatalogRequest) returns (GetMccCatalogResponse);
21
+ rpc GetGeolocations(GetGeolocationsRequest) returns (GetGeolocationsResponse);
22
+ rpc GetMtiCatalog(GetMtiCatalogRequest) returns (GetMtiCatalogResponse);
23
+ rpc GetGroupTypeCatalogs(GetGroupTypeCatalogsRequest) returns (GetGroupTypeCatalogsResponse);
24
+ rpc GetRuleActions(GetRuleActionsRequest) returns (GetRuleActionsResponse);
25
+ rpc ExportCatalog(ExportCatalogRequest) returns (ExportCatalogResponse);
26
+ }
27
+
28
+ message GetCatalogListRequest {
29
+ kapital.common.v1.PageRequest page_request = 1;
30
+ string catalog_type = 2;
31
+ string institution_id = 3;
32
+ string search = 4;
33
+ string sort_by = 5;
34
+ bool descending = 6;
35
+ }
36
+
37
+ message GetCatalogListResponse {
38
+ kapital.common.v1.ResponseMeta meta = 1;
39
+ kapital.common.v1.PageResponse page_response = 2;
40
+ repeated CatalogItem items = 3;
41
+ }
42
+
43
+ message GetCatalogByIdRequest {
44
+ string catalog_type = 1;
45
+ string catalog_id = 2;
46
+ }
47
+
48
+ message GetCatalogByIdResponse {
49
+ kapital.common.v1.ResponseMeta meta = 1;
50
+ CatalogItem item = 2;
51
+ }
52
+
53
+ message CreateUpdateCatalogRequest {
54
+ string catalog_type = 1;
55
+ string catalog_id = 2;
56
+ string value = 3;
57
+ Label label = 4;
58
+ string code = 5;
59
+ string a2 = 6;
60
+ string a3 = 7;
61
+ string n = 8;
62
+ string institution_id = 9;
63
+ string user_id = 10;
64
+ }
65
+
66
+ message CreateUpdateCatalogResponse {
67
+ kapital.common.v1.ResponseMeta meta = 1;
68
+ CatalogItem item = 2;
69
+ }
70
+
71
+ message DeleteCatalogRequest {
72
+ string catalog_type = 1;
73
+ string catalog_id = 2;
74
+ string user_id = 3;
75
+ }
76
+
77
+ message DeleteCatalogResponse {
78
+ kapital.common.v1.ResponseMeta meta = 1;
79
+ }
80
+
81
+ message GetCatalogInfoRequest {
82
+ string catalog_type = 1;
83
+ string institution_id = 2;
84
+ }
85
+
86
+ message GetCatalogInfoResponse {
87
+ kapital.common.v1.ResponseMeta meta = 1;
88
+ CatalogInfo info = 2;
89
+ }
90
+
91
+ message GetResponseCodesRequest {}
92
+
93
+ message GetResponseCodesResponse {
94
+ kapital.common.v1.ResponseMeta meta = 1;
95
+ int32 total = 2;
96
+ repeated CatalogItem items = 3;
97
+ }
98
+
99
+ message GetFraudStatusesRequest {}
100
+
101
+ message GetFraudStatusesResponse {
102
+ kapital.common.v1.ResponseMeta meta = 1;
103
+ int32 total = 2;
104
+ repeated CatalogItem items = 3;
105
+ }
106
+
107
+ message GetCurrenciesRequest {
108
+ string institution_id = 1;
109
+ }
110
+
111
+ message GetCurrenciesResponse {
112
+ kapital.common.v1.ResponseMeta meta = 1;
113
+ int32 total = 2;
114
+ repeated CurrencyItem items = 3;
115
+ }
116
+
117
+ message GetMccCatalogRequest {
118
+ string institution_id = 1;
119
+ }
120
+
121
+ message GetMccCatalogResponse {
122
+ kapital.common.v1.ResponseMeta meta = 1;
123
+ int32 total = 2;
124
+ repeated CatalogItem items = 3;
125
+ }
126
+
127
+ message GetGeolocationsRequest {
128
+ string institution_id = 1;
129
+ }
130
+
131
+ message GetGeolocationsResponse {
132
+ kapital.common.v1.ResponseMeta meta = 1;
133
+ int32 total = 2;
134
+ repeated GeolocationItem items = 3;
135
+ }
136
+
137
+ message GetMtiCatalogRequest {
138
+ string institution_id = 1;
139
+ }
140
+
141
+ message GetMtiCatalogResponse {
142
+ kapital.common.v1.ResponseMeta meta = 1;
143
+ int32 total = 2;
144
+ repeated MtiItem items = 3;
145
+ }
146
+
147
+ message GetGroupTypeCatalogsRequest {}
148
+
149
+ message GetGroupTypeCatalogsResponse {
150
+ kapital.common.v1.ResponseMeta meta = 1;
151
+ int32 total = 2;
152
+ repeated GroupTypeCatalogItem items = 3;
153
+ }
154
+
155
+ message GetRuleActionsRequest {
156
+ string institution_id = 1;
157
+ }
158
+
159
+ message GetRuleActionsResponse {
160
+ kapital.common.v1.ResponseMeta meta = 1;
161
+ int32 total = 2;
162
+ repeated RuleActionItem items = 3;
163
+ }
164
+
165
+ message ExportCatalogRequest {
166
+ string catalog_type = 1;
167
+ string institution_id = 2;
168
+ string search = 3;
169
+ string sort_by = 4;
170
+ bool descending = 5;
171
+ }
172
+
173
+ message ExportCatalogResponse {
174
+ kapital.common.v1.ResponseMeta meta = 1;
175
+ bytes file_data = 2;
176
+ string file_name = 3;
177
+ }
@@ -0,0 +1,81 @@
1
+ syntax = "proto3";
2
+
3
+ package kapital.fraud_catalogs.v1;
4
+
5
+ option go_package = "kapital/fraud_catalogs/v1;fraudcatalogsv1";
6
+
7
+ message CatalogItem {
8
+ string id = 1;
9
+ string value = 2;
10
+ Label label = 3;
11
+ bool active = 4;
12
+ bool deleted = 5;
13
+ string institution_id = 6;
14
+ string created_by = 7;
15
+ string updated_by = 8;
16
+ string created_at = 9;
17
+ string updated_at = 10;
18
+ }
19
+
20
+ message Label {
21
+ string es = 1;
22
+ string en = 2;
23
+ }
24
+
25
+ message CatalogInfo {
26
+ string id = 1;
27
+ string label = 2;
28
+ string description = 3;
29
+ int32 type = 4;
30
+ string type_name = 5;
31
+ bool active = 6;
32
+ bool deleted = 7;
33
+ string model_name = 8;
34
+ string institution_id = 9;
35
+ }
36
+
37
+ message CurrencyItem {
38
+ string id = 1;
39
+ string value = 2;
40
+ string code = 3;
41
+ Label label = 4;
42
+ bool active = 5;
43
+ bool deleted = 6;
44
+ string institution_id = 7;
45
+ }
46
+
47
+ message GeolocationItem {
48
+ string id = 1;
49
+ string value = 2;
50
+ Label label = 3;
51
+ string a2 = 4;
52
+ string a3 = 5;
53
+ string n = 6;
54
+ bool active = 7;
55
+ bool deleted = 8;
56
+ string institution_id = 9;
57
+ }
58
+
59
+ message RuleActionItem {
60
+ string id = 1;
61
+ string value = 2;
62
+ Label label = 3;
63
+ repeated string conflicts_with = 4;
64
+ string institution_id = 5;
65
+ }
66
+
67
+ message GroupTypeCatalogItem {
68
+ string id = 1;
69
+ Label label = 2;
70
+ int32 value = 3;
71
+ repeated string config = 4;
72
+ }
73
+
74
+ message MtiItem {
75
+ string id = 1;
76
+ string value = 2;
77
+ Label label = 3;
78
+ bool active = 4;
79
+ bool deleted = 5;
80
+ string institution_id = 6;
81
+ }