@alexochihua/protos 1.0.7 → 1.0.8
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/credit_catalogs/v1/credit_catalogs.d.ts +92 -0
- package/dist/generated/kapital/credit_catalogs/v1/credit_catalogs.js +308 -0
- package/dist/generated/kapital/credit_catalogs/v1/credit_catalogs.js.map +1 -0
- package/dist/generated/kapital/credit_catalogs/v1/credit_catalogs_types.d.ts +35 -0
- package/dist/generated/kapital/credit_catalogs/v1/credit_catalogs_types.js +245 -0
- package/dist/generated/kapital/credit_catalogs/v1/credit_catalogs_types.js.map +1 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations.d.ts +303 -1
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations.js +1698 -1
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations.js.map +1 -1
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.d.ts +28 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.js +308 -1
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.js.map +1 -1
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js +6 -0
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js.map +1 -1
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.js +6 -0
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.js.map +1 -1
- package/dist/generated/kapital/fraud_groups/v1/fraud_groups.js +6 -0
- package/dist/generated/kapital/fraud_groups/v1/fraud_groups.js.map +1 -1
- package/dist/generated/kapital/fraud_groups/v1/fraud_groups_types.js +6 -0
- package/dist/generated/kapital/fraud_groups/v1/fraud_groups_types.js.map +1 -1
- package/dist/generated/kapital/fraud_rules/v1/fraud_rules.js +6 -0
- package/dist/generated/kapital/fraud_rules/v1/fraud_rules.js.map +1 -1
- package/dist/generated/kapital/fraud_rules/v1/fraud_rules_types.js +6 -0
- package/dist/generated/kapital/fraud_rules/v1/fraud_rules_types.js.map +1 -1
- package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists.js +6 -0
- package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists.js.map +1 -1
- package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists_types.js +6 -0
- package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists_types.js.map +1 -1
- package/dist/generated/kapital/frauds/v1/frauds.js +6 -0
- package/dist/generated/kapital/frauds/v1/frauds.js.map +1 -1
- package/dist/generated/kapital/frauds/v1/frauds_types.js +6 -0
- package/dist/generated/kapital/frauds/v1/frauds_types.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/collections_recovery/v1/collections_recovery.proto +80 -80
- package/proto/kapital/collections_recovery/v1/collections_recovery_types.proto +46 -46
- 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_catalogs/v1/credit_catalogs.proto +37 -0
- package/proto/kapital/credit_catalogs/v1/credit_catalogs_types.proto +27 -0
- package/proto/kapital/credit_configurations/v1/credit_configurations.proto +212 -54
- package/proto/kapital/credit_configurations/v1/credit_configurations_types.proto +42 -14
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.credit_catalogs.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/credit_catalogs/v1;creditcatalogsv1";
|
|
6
|
+
|
|
7
|
+
import "kapital/common/v1/meta.proto";
|
|
8
|
+
import "kapital/credit_catalogs/v1/credit_catalogs_types.proto";
|
|
9
|
+
|
|
10
|
+
service CreditCatalogsService {
|
|
11
|
+
rpc GetCollectionRecoveryStatuses(GetCollectionRecoveryStatusesRequest) returns (GetCollectionRecoveryStatusesResponse);
|
|
12
|
+
rpc GetCardProducts(GetCardProductsRequest) returns (GetCardProductsResponse);
|
|
13
|
+
rpc GetAccountStatementStatuses(GetAccountStatementStatusesRequest) returns (GetAccountStatementStatusesResponse);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message GetCollectionRecoveryStatusesRequest {}
|
|
17
|
+
|
|
18
|
+
message GetCollectionRecoveryStatusesResponse {
|
|
19
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
20
|
+
repeated CatalogItem items = 2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message GetCardProductsRequest {}
|
|
24
|
+
|
|
25
|
+
message GetCardProductsResponse {
|
|
26
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
27
|
+
repeated CatalogItem items = 2;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message GetAccountStatementStatusesRequest {
|
|
31
|
+
string product_id = 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message GetAccountStatementStatusesResponse {
|
|
35
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
36
|
+
repeated CatalogItemWithProductId items = 2;
|
|
37
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.credit_catalogs.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/credit_catalogs/v1;creditcatalogsv1";
|
|
6
|
+
|
|
7
|
+
message Label {
|
|
8
|
+
string es = 1;
|
|
9
|
+
string en = 2;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message CatalogItem {
|
|
13
|
+
string id = 1;
|
|
14
|
+
string value = 2;
|
|
15
|
+
Label label = 3;
|
|
16
|
+
bool active = 4;
|
|
17
|
+
bool deleted = 5;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message CatalogItemWithProductId {
|
|
21
|
+
string id = 1;
|
|
22
|
+
string value = 2;
|
|
23
|
+
Label label = 3;
|
|
24
|
+
string product_id = 4;
|
|
25
|
+
bool active = 5;
|
|
26
|
+
bool deleted = 6;
|
|
27
|
+
}
|
|
@@ -1,54 +1,212 @@
|
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
message
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
+
rpc GetCatalogMenu(GetCatalogMenuRequest) returns (GetCatalogMenuResponse);
|
|
17
|
+
rpc GetCatalogRecords(GetCatalogRecordsRequest) returns (GetCatalogRecordsResponse);
|
|
18
|
+
rpc GetCatalogRecordByUniqueIdentifier(GetCatalogRecordByUniqueIdentifierRequest) returns (GetCatalogRecordByUniqueIdentifierResponse);
|
|
19
|
+
rpc CreateCatalogRecord(CreateCatalogRecordRequest) returns (CreateCatalogRecordResponse);
|
|
20
|
+
rpc UpdateCatalogRecord(UpdateCatalogRecordRequest) returns (UpdateCatalogRecordResponse);
|
|
21
|
+
rpc GetAllCatalogRecords(GetAllCatalogRecordsRequest) returns (GetAllCatalogRecordsResponse);
|
|
22
|
+
rpc GetCardProducts(GetCardProductsRequest) returns (GetCardProductsResponse);
|
|
23
|
+
|
|
24
|
+
rpc GetCreditCalculationByProduct(GetCreditCalculationByProductRequest) returns (GetCreditCalculationByProductResponse);
|
|
25
|
+
rpc UpdateCreditCalculation(UpdateCreditCalculationRequest) returns (UpdateCreditCalculationResponse);
|
|
26
|
+
rpc GetCreditGeneralParameters(GetCreditGeneralParametersRequest) returns (GetCreditGeneralParametersResponse);
|
|
27
|
+
rpc CreateCreditGeneralParameters(CreateCreditGeneralParametersRequest) returns (CreateCreditGeneralParametersResponse);
|
|
28
|
+
rpc UpdateCreditGeneralParameters(UpdateCreditGeneralParametersRequest) returns (UpdateCreditGeneralParametersResponse);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message GetAccountStatementConfigurationRequest {
|
|
32
|
+
string statement_section_id = 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message GetAccountStatementConfigurationResponse {
|
|
36
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
37
|
+
repeated AccountStatementConfiguration configurations = 2;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message GetAccountStatementByIdRequest {
|
|
41
|
+
string id = 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message GetAccountStatementByIdResponse {
|
|
45
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
46
|
+
AccountStatementConfiguration configuration = 2;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message SaveAccountStatementConfigurationRequest {
|
|
50
|
+
string product_id = 1;
|
|
51
|
+
string statement_section_id = 2;
|
|
52
|
+
string description = 3;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message SaveAccountStatementConfigurationResponse {
|
|
56
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
57
|
+
AccountStatementConfiguration configuration = 2;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message DownloadAccountStatementPdfRequest {
|
|
61
|
+
string product_id = 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message DownloadAccountStatementPdfResponse {
|
|
65
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
66
|
+
bytes file = 2;
|
|
67
|
+
string filename = 3;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
message GetCatalogMenuRequest {}
|
|
71
|
+
|
|
72
|
+
message GetCatalogMenuResponse {
|
|
73
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
74
|
+
repeated CatalogTypeItem items = 2;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
message GetCatalogRecordsRequest {
|
|
78
|
+
string collection_db_name = 1;
|
|
79
|
+
int32 page = 2;
|
|
80
|
+
int32 rows_per_page = 3;
|
|
81
|
+
string sort_by = 4;
|
|
82
|
+
string descending = 5;
|
|
83
|
+
string q = 6;
|
|
84
|
+
string lang = 7;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
message GetCatalogRecordsResponse {
|
|
88
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
89
|
+
int32 total = 2;
|
|
90
|
+
int32 page = 3;
|
|
91
|
+
int32 rows_per_page = 4;
|
|
92
|
+
repeated CatalogRecordItem records = 5;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
message GetCatalogRecordByUniqueIdentifierRequest {
|
|
96
|
+
string collection_db_name = 1;
|
|
97
|
+
string unique_identifier = 2;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
message GetCatalogRecordByUniqueIdentifierResponse {
|
|
101
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
102
|
+
CatalogRecordItem record = 2;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
message CreateCatalogRecordRequest {
|
|
106
|
+
string collection_db_name = 1;
|
|
107
|
+
string unique_identifier = 2;
|
|
108
|
+
string description_es = 3;
|
|
109
|
+
string description_en = 4;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
message CreateCatalogRecordResponse {
|
|
113
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
114
|
+
CatalogRecordItem record = 2;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
message UpdateCatalogRecordRequest {
|
|
118
|
+
string collection_db_name = 1;
|
|
119
|
+
string record_id = 2;
|
|
120
|
+
string unique_identifier = 3;
|
|
121
|
+
string description_es = 4;
|
|
122
|
+
string description_en = 5;
|
|
123
|
+
bool active = 6;
|
|
124
|
+
bool deleted = 7;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
message UpdateCatalogRecordResponse {
|
|
128
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
129
|
+
CatalogRecordItem record = 2;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
message GetAllCatalogRecordsRequest {
|
|
133
|
+
string collection_db_name = 1;
|
|
134
|
+
string sort_by = 2;
|
|
135
|
+
string descending = 3;
|
|
136
|
+
string q = 4;
|
|
137
|
+
string lang = 5;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
message GetAllCatalogRecordsResponse {
|
|
141
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
142
|
+
repeated CatalogRecordItem records = 2;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
message GetCardProductsRequest {}
|
|
146
|
+
|
|
147
|
+
message GetCardProductsResponse {
|
|
148
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
149
|
+
repeated CatalogRecordItem products = 2;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
message GetCreditCalculationByProductRequest {
|
|
153
|
+
string product_id = 1;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
message GetCreditCalculationByProductResponse {
|
|
157
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
158
|
+
string calculations_json = 2;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
message CalculationInput {
|
|
162
|
+
string name = 1;
|
|
163
|
+
string value = 2;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
message UpdateCreditCalculationRequest {
|
|
167
|
+
string product_id = 1;
|
|
168
|
+
string calculation = 2;
|
|
169
|
+
repeated CalculationInput inputs = 3;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
message UpdateCreditCalculationResponse {
|
|
173
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
174
|
+
string calculation_json = 2;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
message GetCreditGeneralParametersRequest {
|
|
178
|
+
string product_id = 1;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
message GetCreditGeneralParametersResponse {
|
|
182
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
183
|
+
CreditGeneralParameter general_parameter = 2;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
message CreateCreditGeneralParametersRequest {
|
|
187
|
+
string card_product_id = 1;
|
|
188
|
+
double minimum_payment_percentage = 2;
|
|
189
|
+
double vat_rate = 3;
|
|
190
|
+
int32 days_in_interest_formulas = 4;
|
|
191
|
+
int32 cut_off_date = 5;
|
|
192
|
+
string payment_date = 6;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
message CreateCreditGeneralParametersResponse {
|
|
196
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
197
|
+
CreditGeneralParameter parameters = 2;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
message UpdateCreditGeneralParametersRequest {
|
|
201
|
+
string product_id = 1;
|
|
202
|
+
double minimum_payment_percentage = 2;
|
|
203
|
+
double vat_rate = 3;
|
|
204
|
+
int32 days_in_interest_formulas = 4;
|
|
205
|
+
int32 cut_off_date = 5;
|
|
206
|
+
string payment_date = 6;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
message UpdateCreditGeneralParametersResponse {
|
|
210
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
211
|
+
CreditGeneralParameter general_parameter = 2;
|
|
212
|
+
}
|
|
@@ -1,14 +1,42 @@
|
|
|
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
|
+
}
|
|
15
|
+
|
|
16
|
+
message Label {
|
|
17
|
+
string es = 1;
|
|
18
|
+
string en = 2;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message CatalogTypeItem {
|
|
22
|
+
string id = 1;
|
|
23
|
+
string collection_db_name = 2;
|
|
24
|
+
string name = 3;
|
|
25
|
+
Label internationalization = 4;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message CatalogRecordItem {
|
|
29
|
+
string id = 1;
|
|
30
|
+
string unique_identifier = 2;
|
|
31
|
+
Label description = 3;
|
|
32
|
+
bool active = 4;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message CreditGeneralParameter {
|
|
36
|
+
string card_product_id = 1;
|
|
37
|
+
double minimum_payment_percentage = 2;
|
|
38
|
+
double vat_rate = 3;
|
|
39
|
+
int32 days_in_interest_formulas = 4;
|
|
40
|
+
int32 cut_off_date = 5;
|
|
41
|
+
string payment_date = 6;
|
|
42
|
+
}
|