@alexochihua/protos 1.0.41 → 1.0.42
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 -2
- package/dist/generated/kapital/contracts/v1/contracts.js +14 -10
- package/dist/generated/kapital/contracts/v1/contracts.js.map +1 -1
- package/package.json +1 -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/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 +2 -2
- 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_types.proto +17 -17
- 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_types.proto +90 -90
package/package.json
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package kapital.accounts.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "kapital/accounts/v1;accountsv1";
|
|
6
|
-
|
|
7
|
-
import "kapital/common/v1/meta.proto";
|
|
8
|
-
import "kapital/common/v1/pagination.proto";
|
|
9
|
-
import "kapital/accounts/v1/accounts_types.proto";
|
|
10
|
-
|
|
11
|
-
service AccountsService {
|
|
12
|
-
rpc GetAccounts(GetAccountsRequest) returns (GetAccountsResponse);
|
|
13
|
-
rpc GetAccountDetail(GetAccountDetailRequest) returns (GetAccountDetailResponse);
|
|
14
|
-
rpc ExportAccounts(ExportAccountsRequest) returns (ExportAccountsResponse);
|
|
15
|
-
rpc ExportAccountDetail(ExportAccountDetailRequest) returns (ExportAccountDetailResponse);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
message GetAccountsRequest {
|
|
19
|
-
kapital.common.v1.PageRequest page_request = 1;
|
|
20
|
-
string account_number = 2;
|
|
21
|
-
string rfc = 3;
|
|
22
|
-
string social_reason = 4;
|
|
23
|
-
string status = 5;
|
|
24
|
-
string q = 6;
|
|
25
|
-
string institution_id = 7;
|
|
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
|
-
kapital.common.v1.PageRequest page_request = 1;
|
|
36
|
-
string account_id = 2;
|
|
37
|
-
string status = 3;
|
|
38
|
-
string date = 4;
|
|
39
|
-
string movement_type = 5;
|
|
40
|
-
string q = 6;
|
|
41
|
-
string institution_id = 7;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
message GetAccountDetailResponse {
|
|
45
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
46
|
-
kapital.common.v1.PageResponse page_response = 2;
|
|
47
|
-
repeated Movement movements = 3;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
message ExportAccountsRequest {
|
|
51
|
-
kapital.common.v1.PageRequest page_request = 1;
|
|
52
|
-
string account_number = 2;
|
|
53
|
-
string rfc = 3;
|
|
54
|
-
string social_reason = 4;
|
|
55
|
-
string status = 5;
|
|
56
|
-
string q = 6;
|
|
57
|
-
string institution_id = 7;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
message ExportAccountsResponse {
|
|
61
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
62
|
-
bytes file = 2;
|
|
63
|
-
string filename = 3;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
message ExportAccountDetailRequest {
|
|
67
|
-
kapital.common.v1.PageRequest page_request = 1;
|
|
68
|
-
string account_id = 2;
|
|
69
|
-
string status = 3;
|
|
70
|
-
string date = 4;
|
|
71
|
-
string movement_type = 5;
|
|
72
|
-
string q = 6;
|
|
73
|
-
string institution_id = 7;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
message ExportAccountDetailResponse {
|
|
77
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
78
|
-
bytes file = 2;
|
|
79
|
-
string filename = 3;
|
|
80
|
-
}
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.accounts.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/accounts/v1;accountsv1";
|
|
6
|
+
|
|
7
|
+
import "kapital/common/v1/meta.proto";
|
|
8
|
+
import "kapital/common/v1/pagination.proto";
|
|
9
|
+
import "kapital/accounts/v1/accounts_types.proto";
|
|
10
|
+
|
|
11
|
+
service AccountsService {
|
|
12
|
+
rpc GetAccounts(GetAccountsRequest) returns (GetAccountsResponse);
|
|
13
|
+
rpc GetAccountDetail(GetAccountDetailRequest) returns (GetAccountDetailResponse);
|
|
14
|
+
rpc ExportAccounts(ExportAccountsRequest) returns (ExportAccountsResponse);
|
|
15
|
+
rpc ExportAccountDetail(ExportAccountDetailRequest) returns (ExportAccountDetailResponse);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message GetAccountsRequest {
|
|
19
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
20
|
+
string account_number = 2;
|
|
21
|
+
string rfc = 3;
|
|
22
|
+
string social_reason = 4;
|
|
23
|
+
string status = 5;
|
|
24
|
+
string q = 6;
|
|
25
|
+
string institution_id = 7;
|
|
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
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
36
|
+
string account_id = 2;
|
|
37
|
+
string status = 3;
|
|
38
|
+
string date = 4;
|
|
39
|
+
string movement_type = 5;
|
|
40
|
+
string q = 6;
|
|
41
|
+
string institution_id = 7;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message GetAccountDetailResponse {
|
|
45
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
46
|
+
kapital.common.v1.PageResponse page_response = 2;
|
|
47
|
+
repeated Movement movements = 3;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message ExportAccountsRequest {
|
|
51
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
52
|
+
string account_number = 2;
|
|
53
|
+
string rfc = 3;
|
|
54
|
+
string social_reason = 4;
|
|
55
|
+
string status = 5;
|
|
56
|
+
string q = 6;
|
|
57
|
+
string institution_id = 7;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message ExportAccountsResponse {
|
|
61
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
62
|
+
bytes file = 2;
|
|
63
|
+
string filename = 3;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message ExportAccountDetailRequest {
|
|
67
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
68
|
+
string account_id = 2;
|
|
69
|
+
string status = 3;
|
|
70
|
+
string date = 4;
|
|
71
|
+
string movement_type = 5;
|
|
72
|
+
string q = 6;
|
|
73
|
+
string institution_id = 7;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message ExportAccountDetailResponse {
|
|
77
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
78
|
+
bytes file = 2;
|
|
79
|
+
string filename = 3;
|
|
80
|
+
}
|
|
@@ -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
|
+
}
|