@alexochihua/protos 1.0.4 → 1.0.6
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/contracts/v1/contracts.d.ts +2 -0
- package/dist/generated/kapital/contracts/v1/contracts.js +210 -186
- package/dist/generated/kapital/contracts/v1/contracts.js.map +1 -1
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.d.ts +365 -0
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js +1804 -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 +855 -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 +2452 -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 +577 -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 +1288 -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 +505 -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 +2310 -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 +577 -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 +839 -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 +567 -0
- package/dist/generated/kapital/frauds/v1/frauds_types.js.map +1 -0
- 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.proto +90 -88
- 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/transactions/v1/transactions.proto +70 -70
- package/proto/kapital/transactions/v1/transactions_types.proto +90 -90
|
@@ -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
|
+
}
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package kapital.commissions.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "kapital/commissions/v1;commissionsv1";
|
|
6
|
-
|
|
7
|
-
import "kapital/common/v1/meta.proto";
|
|
8
|
-
import "kapital/common/v1/pagination.proto";
|
|
9
|
-
import "kapital/commissions/v1/commissions_types.proto";
|
|
10
|
-
|
|
11
|
-
service CommissionsService {
|
|
12
|
-
rpc GetCommissions(GetCommissionsRequest) returns (GetCommissionsResponse);
|
|
13
|
-
rpc GetCommissionById(GetCommissionByIdRequest) returns (GetCommissionByIdResponse);
|
|
14
|
-
rpc CreateCommission(CreateCommissionRequest) returns (CreateCommissionResponse);
|
|
15
|
-
rpc UpdateCommission(UpdateCommissionRequest) returns (UpdateCommissionResponse);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// ============================================================================
|
|
19
|
-
// Request / Response Messages
|
|
20
|
-
// ============================================================================
|
|
21
|
-
|
|
22
|
-
message GetCommissionsRequest {
|
|
23
|
-
kapital.common.v1.PageRequest page_request = 1;
|
|
24
|
-
string q = 2;
|
|
25
|
-
string name = 3;
|
|
26
|
-
string commission_type = 4;
|
|
27
|
-
string currency = 5;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
message GetCommissionsResponse {
|
|
31
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
32
|
-
kapital.common.v1.PageResponse page_response = 2;
|
|
33
|
-
repeated Commission commissions = 3;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
message GetCommissionByIdRequest {
|
|
37
|
-
string commission_id = 1;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
message GetCommissionByIdResponse {
|
|
41
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
42
|
-
Commission commission = 2;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
message CreateCommissionRequest {
|
|
46
|
-
string name = 1;
|
|
47
|
-
string commission_type = 2;
|
|
48
|
-
string currency = 3;
|
|
49
|
-
string created_by = 4;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
message CreateCommissionResponse {
|
|
53
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
54
|
-
Commission commission = 2;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
message UpdateCommissionRequest {
|
|
58
|
-
string commission_id = 1;
|
|
59
|
-
string name = 2;
|
|
60
|
-
string commission_type = 3;
|
|
61
|
-
string currency = 4;
|
|
62
|
-
bool deleted = 5;
|
|
63
|
-
string updated_by = 6;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
message UpdateCommissionResponse {
|
|
67
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
68
|
-
Commission commission = 2;
|
|
69
|
-
}
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.commissions.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/commissions/v1;commissionsv1";
|
|
6
|
+
|
|
7
|
+
import "kapital/common/v1/meta.proto";
|
|
8
|
+
import "kapital/common/v1/pagination.proto";
|
|
9
|
+
import "kapital/commissions/v1/commissions_types.proto";
|
|
10
|
+
|
|
11
|
+
service CommissionsService {
|
|
12
|
+
rpc GetCommissions(GetCommissionsRequest) returns (GetCommissionsResponse);
|
|
13
|
+
rpc GetCommissionById(GetCommissionByIdRequest) returns (GetCommissionByIdResponse);
|
|
14
|
+
rpc CreateCommission(CreateCommissionRequest) returns (CreateCommissionResponse);
|
|
15
|
+
rpc UpdateCommission(UpdateCommissionRequest) returns (UpdateCommissionResponse);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// ============================================================================
|
|
19
|
+
// Request / Response Messages
|
|
20
|
+
// ============================================================================
|
|
21
|
+
|
|
22
|
+
message GetCommissionsRequest {
|
|
23
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
24
|
+
string q = 2;
|
|
25
|
+
string name = 3;
|
|
26
|
+
string commission_type = 4;
|
|
27
|
+
string currency = 5;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message GetCommissionsResponse {
|
|
31
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
32
|
+
kapital.common.v1.PageResponse page_response = 2;
|
|
33
|
+
repeated Commission commissions = 3;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message GetCommissionByIdRequest {
|
|
37
|
+
string commission_id = 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message GetCommissionByIdResponse {
|
|
41
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
42
|
+
Commission commission = 2;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message CreateCommissionRequest {
|
|
46
|
+
string name = 1;
|
|
47
|
+
string commission_type = 2;
|
|
48
|
+
string currency = 3;
|
|
49
|
+
string created_by = 4;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message CreateCommissionResponse {
|
|
53
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
54
|
+
Commission commission = 2;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message UpdateCommissionRequest {
|
|
58
|
+
string commission_id = 1;
|
|
59
|
+
string name = 2;
|
|
60
|
+
string commission_type = 3;
|
|
61
|
+
string currency = 4;
|
|
62
|
+
bool deleted = 5;
|
|
63
|
+
string updated_by = 6;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message UpdateCommissionResponse {
|
|
67
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
68
|
+
Commission commission = 2;
|
|
69
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package kapital.commissions.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "kapital/commissions/v1;commissionsv1";
|
|
6
|
-
|
|
7
|
-
// ============================================================================
|
|
8
|
-
// Commission Entity
|
|
9
|
-
// ============================================================================
|
|
10
|
-
|
|
11
|
-
message Commission {
|
|
12
|
-
string id = 1;
|
|
13
|
-
string name = 2;
|
|
14
|
-
string commission_type = 3;
|
|
15
|
-
string currency = 4;
|
|
16
|
-
bool deleted = 5;
|
|
17
|
-
string created_by = 6;
|
|
18
|
-
string updated_by = 7;
|
|
19
|
-
string created_at = 8;
|
|
20
|
-
string updated_at = 9;
|
|
21
|
-
}
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.commissions.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/commissions/v1;commissionsv1";
|
|
6
|
+
|
|
7
|
+
// ============================================================================
|
|
8
|
+
// Commission Entity
|
|
9
|
+
// ============================================================================
|
|
10
|
+
|
|
11
|
+
message Commission {
|
|
12
|
+
string id = 1;
|
|
13
|
+
string name = 2;
|
|
14
|
+
string commission_type = 3;
|
|
15
|
+
string currency = 4;
|
|
16
|
+
bool deleted = 5;
|
|
17
|
+
string created_by = 6;
|
|
18
|
+
string updated_by = 7;
|
|
19
|
+
string created_at = 8;
|
|
20
|
+
string updated_at = 9;
|
|
21
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package kapital.common.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "kapital/common/v1;commonv1";
|
|
6
|
-
|
|
7
|
-
import "kapital/common/v1/meta.proto";
|
|
8
|
-
|
|
9
|
-
message FieldViolation {
|
|
10
|
-
string field = 1;
|
|
11
|
-
string description = 2;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
message ErrorDetail {
|
|
15
|
-
ResponseMeta meta = 1;
|
|
16
|
-
repeated FieldViolation field_violations = 2;
|
|
17
|
-
}
|
|
18
|
-
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.common.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/common/v1;commonv1";
|
|
6
|
+
|
|
7
|
+
import "kapital/common/v1/meta.proto";
|
|
8
|
+
|
|
9
|
+
message FieldViolation {
|
|
10
|
+
string field = 1;
|
|
11
|
+
string description = 2;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message ErrorDetail {
|
|
15
|
+
ResponseMeta meta = 1;
|
|
16
|
+
repeated FieldViolation field_violations = 2;
|
|
17
|
+
}
|
|
18
|
+
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package kapital.common.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "kapital/common/v1;commonv1";
|
|
6
|
-
|
|
7
|
-
message ResponseMeta {
|
|
8
|
-
string request_id = 1;
|
|
9
|
-
string code = 2;
|
|
10
|
-
string title = 3;
|
|
11
|
-
string description = 4;
|
|
12
|
-
}
|
|
13
|
-
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.common.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/common/v1;commonv1";
|
|
6
|
+
|
|
7
|
+
message ResponseMeta {
|
|
8
|
+
string request_id = 1;
|
|
9
|
+
string code = 2;
|
|
10
|
+
string title = 3;
|
|
11
|
+
string description = 4;
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package kapital.common.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "kapital/common/v1;commonv1";
|
|
6
|
-
|
|
7
|
-
message PageRequest {
|
|
8
|
-
int32 page = 1;
|
|
9
|
-
int32 rows_per_page = 2;
|
|
10
|
-
string sort_by = 3;
|
|
11
|
-
bool descending = 4;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
message PageResponse {
|
|
15
|
-
int32 total = 1;
|
|
16
|
-
int32 page = 2;
|
|
17
|
-
int32 rows_per_page = 3;
|
|
18
|
-
}
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.common.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/common/v1;commonv1";
|
|
6
|
+
|
|
7
|
+
message PageRequest {
|
|
8
|
+
int32 page = 1;
|
|
9
|
+
int32 rows_per_page = 2;
|
|
10
|
+
string sort_by = 3;
|
|
11
|
+
bool descending = 4;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message PageResponse {
|
|
15
|
+
int32 total = 1;
|
|
16
|
+
int32 page = 2;
|
|
17
|
+
int32 rows_per_page = 3;
|
|
18
|
+
}
|