@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.
@@ -1,150 +1,150 @@
1
- syntax = "proto3";
2
-
3
- package kapital.product_groups.v1;
4
-
5
- option go_package = "kapital/product_groups/v1;productgroupsv1";
6
-
7
- import "kapital/common/v1/meta.proto";
8
- import "kapital/common/v1/pagination.proto";
9
- import "kapital/product_groups/v1/product_groups_types.proto";
10
-
11
- service ProductGroupsService {
12
- rpc GetGroups(GetGroupsRequest) returns (GetGroupsResponse);
13
- rpc GetGroupById(GetGroupByIdRequest) returns (GetGroupByIdResponse);
14
- rpc CreateGroup(CreateGroupRequest) returns (CreateGroupResponse);
15
- rpc UpdateGroup(UpdateGroupRequest) returns (UpdateGroupResponse);
16
- rpc GetGroupElements(GetGroupElementsRequest) returns (GetGroupElementsResponse);
17
- rpc AddGroupElements(AddGroupElementsRequest) returns (AddGroupElementsResponse);
18
- rpc RemoveGroupElements(RemoveGroupElementsRequest) returns (RemoveGroupElementsResponse);
19
- rpc ValidateGroupName(ValidateGroupNameRequest) returns (ValidateGroupNameResponse);
20
- rpc ValidateElements(ValidateElementsRequest) returns (ValidateElementsResponse);
21
- rpc GetGroupTypes(GetGroupTypesRequest) returns (GetGroupTypesResponse);
22
- }
23
-
24
- // ============================================================================
25
- // Request / Response Messages
26
- // ============================================================================
27
-
28
- message GetGroupsRequest {
29
- kapital.common.v1.PageRequest page_request = 1;
30
- string q = 2;
31
- int32 type_id = 3;
32
- string institution_id = 4;
33
- }
34
-
35
- message GetGroupsResponse {
36
- kapital.common.v1.ResponseMeta meta = 1;
37
- kapital.common.v1.PageResponse page_response = 2;
38
- repeated ProductGroup groups = 3;
39
- }
40
-
41
- message GetGroupByIdRequest {
42
- string group_id = 1;
43
- }
44
-
45
- message GetGroupByIdResponse {
46
- kapital.common.v1.ResponseMeta meta = 1;
47
- ProductGroup group = 2;
48
- }
49
-
50
- message CreateGroupRequest {
51
- string name = 1;
52
- string description = 2;
53
- int32 type_id = 3;
54
- string institution_id = 4;
55
- string created_by = 5;
56
- }
57
-
58
- message CreateGroupResponse {
59
- kapital.common.v1.ResponseMeta meta = 1;
60
- ProductGroup group = 2;
61
- }
62
-
63
- message UpdateGroupRequest {
64
- string group_id = 1;
65
- string name = 2;
66
- string description = 3;
67
- bool active = 4;
68
- bool deleted = 5;
69
- string updated_by = 6;
70
- }
71
-
72
- message UpdateGroupResponse {
73
- kapital.common.v1.ResponseMeta meta = 1;
74
- ProductGroup group = 2;
75
- }
76
-
77
- message GetGroupElementsRequest {
78
- string group_id = 1;
79
- kapital.common.v1.PageRequest page_request = 2;
80
- string institution_id = 3;
81
- }
82
-
83
- message GetGroupElementsResponse {
84
- kapital.common.v1.ResponseMeta meta = 1;
85
- kapital.common.v1.PageResponse page_response = 2;
86
- repeated ProductGroupElement elements = 3;
87
- }
88
-
89
- message AddGroupElementsRequest {
90
- string group_id = 1;
91
- repeated ElementInput elements = 2;
92
- string institution_id = 3;
93
- string created_by = 4;
94
- }
95
-
96
- message ElementInput {
97
- string value = 1;
98
- string start = 2;
99
- string end = 3;
100
- bool is_range = 4;
101
- }
102
-
103
- message AddGroupElementsResponse {
104
- kapital.common.v1.ResponseMeta meta = 1;
105
- int32 added_count = 2;
106
- }
107
-
108
- message RemoveGroupElementsRequest {
109
- string group_id = 1;
110
- repeated string element_ids = 2;
111
- }
112
-
113
- message RemoveGroupElementsResponse {
114
- kapital.common.v1.ResponseMeta meta = 1;
115
- int32 removed_count = 2;
116
- }
117
-
118
- message ValidateGroupNameRequest {
119
- string name = 1;
120
- int32 type_id = 2;
121
- string exclude_group_id = 3;
122
- string institution_id = 4;
123
- }
124
-
125
- message ValidateGroupNameResponse {
126
- kapital.common.v1.ResponseMeta meta = 1;
127
- bool is_valid = 2;
128
- string message = 3;
129
- }
130
-
131
- message ValidateElementsRequest {
132
- int32 type_id = 1;
133
- repeated ElementInput elements = 2;
134
- }
135
-
136
- message ValidateElementsResponse {
137
- kapital.common.v1.ResponseMeta meta = 1;
138
- bool is_valid = 2;
139
- repeated string invalid_elements = 3;
140
- string message = 4;
141
- }
142
-
143
- message GetGroupTypesRequest {
144
- string institution_id = 1;
145
- }
146
-
147
- message GetGroupTypesResponse {
148
- kapital.common.v1.ResponseMeta meta = 1;
149
- repeated ProductGroupType types = 2;
150
- }
1
+ syntax = "proto3";
2
+
3
+ package kapital.product_groups.v1;
4
+
5
+ option go_package = "kapital/product_groups/v1;productgroupsv1";
6
+
7
+ import "kapital/common/v1/meta.proto";
8
+ import "kapital/common/v1/pagination.proto";
9
+ import "kapital/product_groups/v1/product_groups_types.proto";
10
+
11
+ service ProductGroupsService {
12
+ rpc GetGroups(GetGroupsRequest) returns (GetGroupsResponse);
13
+ rpc GetGroupById(GetGroupByIdRequest) returns (GetGroupByIdResponse);
14
+ rpc CreateGroup(CreateGroupRequest) returns (CreateGroupResponse);
15
+ rpc UpdateGroup(UpdateGroupRequest) returns (UpdateGroupResponse);
16
+ rpc GetGroupElements(GetGroupElementsRequest) returns (GetGroupElementsResponse);
17
+ rpc AddGroupElements(AddGroupElementsRequest) returns (AddGroupElementsResponse);
18
+ rpc RemoveGroupElements(RemoveGroupElementsRequest) returns (RemoveGroupElementsResponse);
19
+ rpc ValidateGroupName(ValidateGroupNameRequest) returns (ValidateGroupNameResponse);
20
+ rpc ValidateElements(ValidateElementsRequest) returns (ValidateElementsResponse);
21
+ rpc GetGroupTypes(GetGroupTypesRequest) returns (GetGroupTypesResponse);
22
+ }
23
+
24
+ // ============================================================================
25
+ // Request / Response Messages
26
+ // ============================================================================
27
+
28
+ message GetGroupsRequest {
29
+ kapital.common.v1.PageRequest page_request = 1;
30
+ string q = 2;
31
+ int32 type_id = 3;
32
+ string institution_id = 4;
33
+ }
34
+
35
+ message GetGroupsResponse {
36
+ kapital.common.v1.ResponseMeta meta = 1;
37
+ kapital.common.v1.PageResponse page_response = 2;
38
+ repeated ProductGroup groups = 3;
39
+ }
40
+
41
+ message GetGroupByIdRequest {
42
+ string group_id = 1;
43
+ }
44
+
45
+ message GetGroupByIdResponse {
46
+ kapital.common.v1.ResponseMeta meta = 1;
47
+ ProductGroup group = 2;
48
+ }
49
+
50
+ message CreateGroupRequest {
51
+ string name = 1;
52
+ string description = 2;
53
+ int32 type_id = 3;
54
+ string institution_id = 4;
55
+ string created_by = 5;
56
+ }
57
+
58
+ message CreateGroupResponse {
59
+ kapital.common.v1.ResponseMeta meta = 1;
60
+ ProductGroup group = 2;
61
+ }
62
+
63
+ message UpdateGroupRequest {
64
+ string group_id = 1;
65
+ string name = 2;
66
+ string description = 3;
67
+ bool active = 4;
68
+ bool deleted = 5;
69
+ string updated_by = 6;
70
+ }
71
+
72
+ message UpdateGroupResponse {
73
+ kapital.common.v1.ResponseMeta meta = 1;
74
+ ProductGroup group = 2;
75
+ }
76
+
77
+ message GetGroupElementsRequest {
78
+ string group_id = 1;
79
+ kapital.common.v1.PageRequest page_request = 2;
80
+ string institution_id = 3;
81
+ }
82
+
83
+ message GetGroupElementsResponse {
84
+ kapital.common.v1.ResponseMeta meta = 1;
85
+ kapital.common.v1.PageResponse page_response = 2;
86
+ repeated ProductGroupElement elements = 3;
87
+ }
88
+
89
+ message AddGroupElementsRequest {
90
+ string group_id = 1;
91
+ repeated ElementInput elements = 2;
92
+ string institution_id = 3;
93
+ string created_by = 4;
94
+ }
95
+
96
+ message ElementInput {
97
+ string value = 1;
98
+ string start = 2;
99
+ string end = 3;
100
+ bool is_range = 4;
101
+ }
102
+
103
+ message AddGroupElementsResponse {
104
+ kapital.common.v1.ResponseMeta meta = 1;
105
+ int32 added_count = 2;
106
+ }
107
+
108
+ message RemoveGroupElementsRequest {
109
+ string group_id = 1;
110
+ repeated string element_ids = 2;
111
+ }
112
+
113
+ message RemoveGroupElementsResponse {
114
+ kapital.common.v1.ResponseMeta meta = 1;
115
+ int32 removed_count = 2;
116
+ }
117
+
118
+ message ValidateGroupNameRequest {
119
+ string name = 1;
120
+ int32 type_id = 2;
121
+ string exclude_group_id = 3;
122
+ string institution_id = 4;
123
+ }
124
+
125
+ message ValidateGroupNameResponse {
126
+ kapital.common.v1.ResponseMeta meta = 1;
127
+ bool is_valid = 2;
128
+ string message = 3;
129
+ }
130
+
131
+ message ValidateElementsRequest {
132
+ int32 type_id = 1;
133
+ repeated ElementInput elements = 2;
134
+ }
135
+
136
+ message ValidateElementsResponse {
137
+ kapital.common.v1.ResponseMeta meta = 1;
138
+ bool is_valid = 2;
139
+ repeated string invalid_elements = 3;
140
+ string message = 4;
141
+ }
142
+
143
+ message GetGroupTypesRequest {
144
+ string institution_id = 1;
145
+ }
146
+
147
+ message GetGroupTypesResponse {
148
+ kapital.common.v1.ResponseMeta meta = 1;
149
+ repeated ProductGroupType types = 2;
150
+ }
@@ -1,48 +1,48 @@
1
- syntax = "proto3";
2
-
3
- package kapital.product_groups.v1;
4
-
5
- option go_package = "kapital/product_groups/v1;productgroupsv1";
6
-
7
- // ============================================================================
8
- // Product Groups Entity
9
- // ============================================================================
10
-
11
- message ProductGroupType {
12
- int32 id = 1;
13
- string name = 2;
14
- string name_es = 3;
15
- string name_en = 4;
16
- bool active = 5;
17
- bool group_products = 6;
18
- }
19
-
20
- message ProductGroup {
21
- string id = 1;
22
- string name = 2;
23
- string description = 3;
24
- bool active = 4;
25
- bool deleted = 5;
26
- ProductGroupType type = 6;
27
- string institution_id = 7;
28
- string created_by = 8;
29
- string updated_by = 9;
30
- string created_at = 10;
31
- string updated_at = 11;
32
- }
33
-
34
- message ProductGroupElement {
35
- string id = 1;
36
- string group_id = 2;
37
- string element_value = 3;
38
- string element_start = 4;
39
- string element_end = 5;
40
- bool is_range = 6;
41
- bool active = 7;
42
- bool deleted = 8;
43
- string institution_id = 9;
44
- string created_by = 10;
45
- string updated_by = 11;
46
- string created_at = 12;
47
- string updated_at = 13;
48
- }
1
+ syntax = "proto3";
2
+
3
+ package kapital.product_groups.v1;
4
+
5
+ option go_package = "kapital/product_groups/v1;productgroupsv1";
6
+
7
+ // ============================================================================
8
+ // Product Groups Entity
9
+ // ============================================================================
10
+
11
+ message ProductGroupType {
12
+ int32 id = 1;
13
+ string name = 2;
14
+ string name_es = 3;
15
+ string name_en = 4;
16
+ bool active = 5;
17
+ bool group_products = 6;
18
+ }
19
+
20
+ message ProductGroup {
21
+ string id = 1;
22
+ string name = 2;
23
+ string description = 3;
24
+ bool active = 4;
25
+ bool deleted = 5;
26
+ ProductGroupType type = 6;
27
+ string institution_id = 7;
28
+ string created_by = 8;
29
+ string updated_by = 9;
30
+ string created_at = 10;
31
+ string updated_at = 11;
32
+ }
33
+
34
+ message ProductGroupElement {
35
+ string id = 1;
36
+ string group_id = 2;
37
+ string element_value = 3;
38
+ string element_start = 4;
39
+ string element_end = 5;
40
+ bool is_range = 6;
41
+ bool active = 7;
42
+ bool deleted = 8;
43
+ string institution_id = 9;
44
+ string created_by = 10;
45
+ string updated_by = 11;
46
+ string created_at = 12;
47
+ string updated_at = 13;
48
+ }
@@ -1,91 +1,91 @@
1
- syntax = "proto3";
2
-
3
- package kapital.transactions.v1;
4
-
5
- option go_package = "kapital/transactions/v1;transactionsv1";
6
-
7
- message TransactionDetail {
8
- bool is_savings = 1;
9
- string deny_code = 2;
10
- bool disputable = 3;
11
- string details = 4;
12
- string act_type = 5;
13
- string act_type_description = 6;
14
- string latest_incremental_id = 7;
15
- string original_incremental_id = 8;
16
- string post_ts = 9;
17
- double amt = 10;
18
- string source_id = 11;
19
- string type = 12;
20
- string type_description = 13;
21
- string trans_code = 14;
22
- string arn = 15;
23
- string merchant_id = 16;
24
- string external_trans_id = 17;
25
- double calculated_balance = 18;
26
- string ach_trans_id = 19;
27
- string auth_ts = 20;
28
- string prior_id = 21;
29
- string card_id = 22;
30
- string formatted_merchant_desc = 23;
31
- string network_code = 24;
32
- string auth_id = 25;
33
- double local_amt = 26;
34
- string local_curr_code = 27;
35
- double settle_amt = 28;
36
- string settle_curr_code = 29;
37
- double billing_amt = 30;
38
- string billing_curr_code = 31;
39
- string pmt_ref_no = 32;
40
- string mcc_code = 33;
41
- string credit_ind = 34;
42
- double iac_tax = 35;
43
- double iva_tax = 36;
44
- string funding_account_prn = 37;
45
- string spending_account_prn = 38;
46
- }
47
-
48
- message Sums {
49
- double unsettled = 1;
50
- double settled = 2;
51
- double adjustment = 3;
52
- double fee = 4;
53
- double payment = 5;
54
- }
55
-
56
- message Transaction {
57
- string pmt_ref_no = 1;
58
- string act_id = 2;
59
- string act_type = 3;
60
- string post_ts = 4;
61
- string amt = 5;
62
- string details = 6;
63
- string description = 7;
64
- string source_id = 8;
65
- string bal_id = 9;
66
- string prod_id = 10;
67
- string auth_ts = 11;
68
- string trans_code = 12;
69
- string ach_transaction_id = 13;
70
- string external_trans_id = 14;
71
- string original_auth_id = 15;
72
- string network_code = 16;
73
- string local_amt = 17;
74
- string local_curr_code = 18;
75
- string settle_amt = 19;
76
- string settle_curr_code = 20;
77
- string billing_amt = 21;
78
- string billing_curr_code = 22;
79
- string mcc = 23;
80
- string merchant_id = 24;
81
- string formatted_merchant_desc = 25;
82
- string terminal_id = 26;
83
- string card_id = 27;
84
- string credit_ind = 28;
85
- double iac_tax = 29;
86
- double iva_tax = 30;
87
- string funding_account_prn = 31;
88
- string spending_account_prn = 32;
89
- int64 original_incremental_id = 33;
90
- int64 latest_incremental_id = 34;
1
+ syntax = "proto3";
2
+
3
+ package kapital.transactions.v1;
4
+
5
+ option go_package = "kapital/transactions/v1;transactionsv1";
6
+
7
+ message TransactionDetail {
8
+ bool is_savings = 1;
9
+ string deny_code = 2;
10
+ bool disputable = 3;
11
+ string details = 4;
12
+ string act_type = 5;
13
+ string act_type_description = 6;
14
+ string latest_incremental_id = 7;
15
+ string original_incremental_id = 8;
16
+ string post_ts = 9;
17
+ double amt = 10;
18
+ string source_id = 11;
19
+ string type = 12;
20
+ string type_description = 13;
21
+ string trans_code = 14;
22
+ string arn = 15;
23
+ string merchant_id = 16;
24
+ string external_trans_id = 17;
25
+ double calculated_balance = 18;
26
+ string ach_trans_id = 19;
27
+ string auth_ts = 20;
28
+ string prior_id = 21;
29
+ string card_id = 22;
30
+ string formatted_merchant_desc = 23;
31
+ string network_code = 24;
32
+ string auth_id = 25;
33
+ double local_amt = 26;
34
+ string local_curr_code = 27;
35
+ double settle_amt = 28;
36
+ string settle_curr_code = 29;
37
+ double billing_amt = 30;
38
+ string billing_curr_code = 31;
39
+ string pmt_ref_no = 32;
40
+ string mcc_code = 33;
41
+ string credit_ind = 34;
42
+ double iac_tax = 35;
43
+ double iva_tax = 36;
44
+ string funding_account_prn = 37;
45
+ string spending_account_prn = 38;
46
+ }
47
+
48
+ message Sums {
49
+ double unsettled = 1;
50
+ double settled = 2;
51
+ double adjustment = 3;
52
+ double fee = 4;
53
+ double payment = 5;
54
+ }
55
+
56
+ message Transaction {
57
+ string pmt_ref_no = 1;
58
+ string act_id = 2;
59
+ string act_type = 3;
60
+ string post_ts = 4;
61
+ string amt = 5;
62
+ string details = 6;
63
+ string description = 7;
64
+ string source_id = 8;
65
+ string bal_id = 9;
66
+ string prod_id = 10;
67
+ string auth_ts = 11;
68
+ string trans_code = 12;
69
+ string ach_transaction_id = 13;
70
+ string external_trans_id = 14;
71
+ string original_auth_id = 15;
72
+ string network_code = 16;
73
+ string local_amt = 17;
74
+ string local_curr_code = 18;
75
+ string settle_amt = 19;
76
+ string settle_curr_code = 20;
77
+ string billing_amt = 21;
78
+ string billing_curr_code = 22;
79
+ string mcc = 23;
80
+ string merchant_id = 24;
81
+ string formatted_merchant_desc = 25;
82
+ string terminal_id = 26;
83
+ string card_id = 27;
84
+ string credit_ind = 28;
85
+ double iac_tax = 29;
86
+ double iva_tax = 30;
87
+ string funding_account_prn = 31;
88
+ string spending_account_prn = 32;
89
+ int64 original_incremental_id = 33;
90
+ int64 latest_incremental_id = 34;
91
91
  }