@alexochihua/protos 1.0.0 → 1.0.1
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/README.md +2 -2
- package/dist/generated/kapital/cards/v1/cards.d.ts +2 -436
- package/dist/generated/kapital/cards/v1/cards.js +36 -2795
- package/dist/generated/kapital/cards/v1/cards.js.map +1 -1
- package/dist/generated/kapital/cards/v1/cards_types.d.ts +25 -109
- package/dist/generated/kapital/cards/v1/cards_types.js +150 -1075
- package/dist/generated/kapital/cards/v1/cards_types.js.map +1 -1
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery.d.ts +153 -0
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery.js +711 -0
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery.js.map +1 -0
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.d.ts +54 -0
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.js +494 -0
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.js.map +1 -0
- package/dist/generated/kapital/commissions/v1/commissions.d.ts +130 -0
- package/dist/generated/kapital/commissions/v1/commissions.js +588 -0
- package/dist/generated/kapital/commissions/v1/commissions.js.map +1 -0
- package/dist/generated/kapital/commissions/v1/commissions_types.d.ts +25 -0
- package/dist/generated/kapital/commissions/v1/commissions_types.js +151 -0
- package/dist/generated/kapital/commissions/v1/commissions_types.js.map +1 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.d.ts +105 -1
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js +603 -1
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js.map +1 -1
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.d.ts +11 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js +128 -1
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js.map +1 -1
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations.d.ts +119 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations.js +471 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations.js.map +1 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.d.ts +22 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.js +108 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.js.map +1 -0
- package/dist/generated/kapital/offers/v1/offers.d.ts +172 -0
- package/dist/generated/kapital/offers/v1/offers.js +1097 -0
- package/dist/generated/kapital/offers/v1/offers.js.map +1 -0
- package/dist/generated/kapital/offers/v1/offers_types.d.ts +58 -0
- package/dist/generated/kapital/offers/v1/offers_types.js +542 -0
- package/dist/generated/kapital/offers/v1/offers_types.js.map +1 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods.d.ts +994 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods.js +5049 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods.js.map +1 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods_types.d.ts +165 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js +1751 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js.map +1 -0
- package/dist/generated/kapital/product_groups/v1/product_groups.d.ts +283 -0
- package/dist/generated/kapital/product_groups/v1/product_groups.js +1444 -0
- package/dist/generated/kapital/product_groups/v1/product_groups.js.map +1 -0
- package/dist/generated/kapital/product_groups/v1/product_groups_types.d.ts +52 -0
- package/dist/generated/kapital/product_groups/v1/product_groups_types.js +460 -0
- package/dist/generated/kapital/product_groups/v1/product_groups_types.js.map +1 -0
- package/dist/index.d.ts +25 -13
- package/dist/index.js +26 -14
- package/dist/index.js.map +1 -1
- package/package.json +277 -193
- package/proto/kapital/cards/v1/cards.proto +3 -269
- package/proto/kapital/cards/v1/cards_types.proto +26 -110
- package/proto/kapital/collections_recovery/v1/collections_recovery.proto +80 -0
- package/proto/kapital/collections_recovery/v1/collections_recovery_types.proto +46 -0
- package/proto/kapital/commissions/v1/commissions.proto +69 -0
- package/proto/kapital/commissions/v1/commissions_types.proto +21 -0
- package/proto/kapital/credit_accounts/v1/credit_accounts.proto +56 -0
- package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +11 -0
- package/proto/kapital/credit_configurations/v1/credit_configurations.proto +54 -0
- package/proto/kapital/credit_configurations/v1/credit_configurations_types.proto +14 -0
- package/proto/kapital/offers/v1/offers.proto +111 -0
- package/proto/kapital/offers/v1/offers_types.proto +54 -0
- package/proto/kapital/payments_methods/v1/payments_methods.proto +511 -0
- package/proto/kapital/payments_methods/v1/payments_methods_types.proto +157 -0
- package/proto/kapital/product_groups/v1/product_groups.proto +150 -0
- package/proto/kapital/product_groups/v1/product_groups_types.proto +48 -0
|
@@ -8,47 +8,10 @@ import "kapital/common/v1/meta.proto";
|
|
|
8
8
|
import "kapital/cards/v1/cards_types.proto";
|
|
9
9
|
|
|
10
10
|
service CardsService {
|
|
11
|
-
rpc
|
|
12
|
-
rpc
|
|
13
|
-
rpc GetExistsCard (GetExistsCardRequest) returns (GetExistsCardResponse);
|
|
14
|
-
rpc GetContractCards (GetContractCardsRequest) returns (GetContractCardsResponse);
|
|
15
|
-
rpc GetCard (GetCardRequest) returns (GetCardResponse);
|
|
16
|
-
rpc ActivateCard (ActivateCardRequest) returns (ActivateCardResponse);
|
|
17
|
-
rpc ReplaceLostStolenCard (ReplaceLostStolenCardRequest) returns (ReplaceLostStolenCardResponse);
|
|
18
|
-
rpc VerifyCvv (VerifyCvvRequest) returns (VerifyCvvResponse);
|
|
19
|
-
rpc VoidAddCard (VoidAddCardRequest) returns (VoidAddCardResponse);
|
|
20
|
-
rpc ReissueCard (ReissueCardRequest) returns (ReissueCardResponse);
|
|
21
|
-
rpc CreateSingleUseVirtualCard (CreateSingleUseVirtualCardRequest) returns (CreateSingleUseVirtualCardResponse);
|
|
22
|
-
rpc ModifyContract (ModifyContractRequest) returns (ModifyContractResponse);
|
|
23
|
-
rpc GetCardId (GetCardIdRequest) returns (GetCardIdResponse);
|
|
24
|
-
rpc ModifyCard (ModifyCardRequest) returns (ModifyCardResponse);
|
|
25
|
-
rpc ModifyContractAndCard (ModifyContractAndCardRequest) returns (ModifyContractAndCardResponse);
|
|
26
|
-
rpc GetCardPinChangeKey (GetCardPinChangeKeyRequest) returns (GetCardPinChangeKeyResponse);
|
|
11
|
+
rpc GetExistsCard(GetExistsCardRequest) returns (GetExistsCardResponse);
|
|
12
|
+
rpc GetCard(GetCardRequest) returns (GetCardResponse);
|
|
27
13
|
}
|
|
28
14
|
|
|
29
|
-
// ================== GetExistsCustomer ==================
|
|
30
|
-
message GetExistsCustomerRequest {
|
|
31
|
-
string customer_id = 1;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
message GetExistsCustomerResponse {
|
|
35
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
36
|
-
string customer_id = 2;
|
|
37
|
-
bool exists = 3;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// ================== GetExistsContract ==================
|
|
41
|
-
message GetExistsContractRequest {
|
|
42
|
-
string contract_id = 1;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
message GetExistsContractResponse {
|
|
46
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
47
|
-
string contract_id = 2;
|
|
48
|
-
bool exists = 3;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// ================== GetExistsCard ==================
|
|
52
15
|
message GetExistsCardRequest {
|
|
53
16
|
string card_id = 1;
|
|
54
17
|
}
|
|
@@ -59,240 +22,11 @@ message GetExistsCardResponse {
|
|
|
59
22
|
bool exists = 3;
|
|
60
23
|
}
|
|
61
24
|
|
|
62
|
-
// ================== GetContractCards ==================
|
|
63
|
-
message GetContractCardsRequest {
|
|
64
|
-
string customer_id = 1;
|
|
65
|
-
string provider_id = 2;
|
|
66
|
-
string transaction_id = 3;
|
|
67
|
-
optional int32 included_related = 4;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
message GetContractCardsResponse {
|
|
71
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
72
|
-
CustomerContractCards customer = 2;
|
|
73
|
-
repeated CardContractCards contracts = 3;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// ================== GetCard ==================
|
|
77
25
|
message GetCardRequest {
|
|
78
26
|
string card_id = 1;
|
|
79
|
-
string provider_id = 2;
|
|
80
|
-
string transaction_id = 3;
|
|
81
27
|
}
|
|
82
28
|
|
|
83
29
|
message GetCardResponse {
|
|
84
30
|
kapital.common.v1.ResponseMeta meta = 1;
|
|
85
|
-
|
|
86
|
-
optional string expiry_date = 3;
|
|
87
|
-
optional string card_security_code = 4;
|
|
88
|
-
string status = 5;
|
|
89
|
-
string card_id = 6;
|
|
90
|
-
optional string external_card_id = 7;
|
|
91
|
-
string pmt_ref_no = 8;
|
|
92
|
-
optional string first_name = 9;
|
|
93
|
-
optional string middle_name = 10;
|
|
94
|
-
optional string last_name = 11;
|
|
95
|
-
optional string encrypted_card_number = 12;
|
|
96
|
-
optional string encrypted_expiry_date = 13;
|
|
97
|
-
optional string emboss_uuid = 14;
|
|
98
|
-
repeated EmbossedCard embossed_cards = 15;
|
|
99
|
-
FreezeInfo freeze_info = 16;
|
|
100
|
-
optional string pin_fail_count = 17;
|
|
101
|
-
optional string pin_fail_date = 18;
|
|
102
|
-
SpendControls spend_controls = 19;
|
|
103
|
-
optional string ssn = 20;
|
|
104
|
-
optional string card_format = 21;
|
|
105
|
-
optional string card_type = 22;
|
|
106
|
-
optional string address_1 = 23;
|
|
107
|
-
optional string address_2 = 24;
|
|
108
|
-
optional string city = 25;
|
|
109
|
-
optional string state = 26;
|
|
110
|
-
optional string postal_code = 27;
|
|
111
|
-
optional string country_code = 28;
|
|
112
|
-
optional string preferred_name = 29;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// ================== ActivateCard ==================
|
|
116
|
-
message ActivateCardRequest {
|
|
117
|
-
string card_id = 1;
|
|
118
|
-
string provider_id = 2;
|
|
119
|
-
string transaction_id = 3;
|
|
120
|
-
optional string card_expiry_date = 4;
|
|
121
|
-
optional string card_security_code = 5;
|
|
122
|
-
optional string card_number_last_4 = 6;
|
|
123
|
-
optional int32 deactivate_temporary_cards = 7;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
message ActivateCardResponse {
|
|
127
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
128
|
-
string card_number_last_4 = 2;
|
|
129
|
-
string emboss_uuid = 3;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// ================== ReplaceLostStolenCard ==================
|
|
133
|
-
message ReplaceLostStolenCardRequest {
|
|
134
|
-
string card_id = 1;
|
|
135
|
-
string provider_id = 2;
|
|
136
|
-
string transaction_id = 3;
|
|
137
|
-
optional string by_pass_rep_fee = 4;
|
|
138
|
-
optional string card_status = 5;
|
|
139
|
-
optional string card_number_last_4 = 6;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
message ReplaceLostStolenCardResponse {
|
|
143
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
144
|
-
string card_number = 2;
|
|
145
|
-
string emboss_uuid = 3;
|
|
146
|
-
string expiry_date = 4;
|
|
147
|
-
string card_security_code = 5;
|
|
148
|
-
string status = 6;
|
|
149
|
-
string card_id = 7;
|
|
150
|
-
string external_card_id = 8;
|
|
151
|
-
string pmt_ref_number = 9;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
// ================== VerifyCvv ==================
|
|
155
|
-
message VerifyCvvRequest {
|
|
156
|
-
string card_id = 1;
|
|
157
|
-
string provider_id = 2;
|
|
158
|
-
string transaction_id = 3;
|
|
159
|
-
string card_number = 4;
|
|
160
|
-
string card_security_code = 5;
|
|
161
|
-
optional string card_expiry_date = 6;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
message VerifyCvvResponse {
|
|
165
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
166
|
-
bool verified = 2;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// ================== VoidAddCard ==================
|
|
170
|
-
message VoidAddCardRequest {
|
|
171
|
-
string card_id = 1;
|
|
172
|
-
string provider_id = 2;
|
|
173
|
-
string transaction_id = 3;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
message VoidAddCardResponse {
|
|
177
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
178
|
-
bool voided = 2;
|
|
31
|
+
Card card = 2;
|
|
179
32
|
}
|
|
180
|
-
|
|
181
|
-
// ================== ReissueCard ==================
|
|
182
|
-
message ReissueCardRequest {
|
|
183
|
-
string card_id = 1;
|
|
184
|
-
string provider_id = 2;
|
|
185
|
-
string transaction_id = 3;
|
|
186
|
-
optional string new_pan = 4;
|
|
187
|
-
optional string new_expiry_date = 5;
|
|
188
|
-
optional string emboss = 6;
|
|
189
|
-
optional string old_card_status = 7;
|
|
190
|
-
optional string by_pass_mail_fee = 8;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
message ReissueCardResponse {
|
|
194
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
195
|
-
string prn = 2;
|
|
196
|
-
string prod_id = 3;
|
|
197
|
-
string app_date = 4;
|
|
198
|
-
string status = 5;
|
|
199
|
-
string active_flag = 6;
|
|
200
|
-
int32 bill_cycle_day = 7;
|
|
201
|
-
string group_id = 8;
|
|
202
|
-
string start_date = 9;
|
|
203
|
-
string contract_number = 10;
|
|
204
|
-
string new_emboss_uuid = 11;
|
|
205
|
-
repeated ContractCardReissue cards = 12;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
// ================== CreateSingleUseVirtualCard ==================
|
|
209
|
-
message CreateSingleUseVirtualCardRequest {
|
|
210
|
-
string provider_id = 1;
|
|
211
|
-
string transaction_id = 2;
|
|
212
|
-
string primary_account_number = 3;
|
|
213
|
-
int32 prod_id = 4;
|
|
214
|
-
double credit_limit = 5;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
message CreateSingleUseVirtualCardResponse {
|
|
218
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
219
|
-
string pmt_ref_number = 2;
|
|
220
|
-
string card_id = 3;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
// ================== ModifyStatus ==================
|
|
224
|
-
message ModifyStatusRequest {
|
|
225
|
-
string provider_id = 1;
|
|
226
|
-
string transaction_id = 2;
|
|
227
|
-
string contract_id = 3;
|
|
228
|
-
int32 type = 4;
|
|
229
|
-
optional string start_date = 5;
|
|
230
|
-
optional string end_date = 6;
|
|
231
|
-
optional string by_pass_rep_fee = 7;
|
|
232
|
-
optional string card_number_last_4 = 8;
|
|
233
|
-
optional string closure_reason = 9;
|
|
234
|
-
optional string by_pass_mail_fee = 10;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
// ================== ModifyContract ==================
|
|
238
|
-
message ModifyContractRequest {
|
|
239
|
-
string contract_id = 1;
|
|
240
|
-
ModifyStatusRequest modify_status_dto = 2;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
message ModifyContractResponse {
|
|
244
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
245
|
-
string pmt_ref_number = 2;
|
|
246
|
-
string account_status = 3;
|
|
247
|
-
string new_emboss_uuid = 4;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
// ================== GetCardId ==================
|
|
251
|
-
message GetCardIdRequest {
|
|
252
|
-
string contract_id = 1;
|
|
253
|
-
string card_number_last_4 = 2;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
message GetCardIdResponse {
|
|
257
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
258
|
-
string card_id = 2;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
// ================== ModifyCard ==================
|
|
262
|
-
message ModifyCardRequest {
|
|
263
|
-
string card_id = 1;
|
|
264
|
-
ModifyStatusRequest modify_status_dto = 2;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
message ModifyCardResponse {
|
|
268
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
269
|
-
string pmt_ref_number = 2;
|
|
270
|
-
string account_status = 3;
|
|
271
|
-
string new_emboss_uuid = 4;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
// ================== ModifyContractAndCard ==================
|
|
275
|
-
message ModifyContractAndCardRequest {
|
|
276
|
-
string contract_id = 1;
|
|
277
|
-
string card_id = 2;
|
|
278
|
-
ModifyStatusRequest modify_status_dto = 3;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
message ModifyContractAndCardResponse {
|
|
282
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
283
|
-
string pmt_ref_number = 2;
|
|
284
|
-
string account_status = 3;
|
|
285
|
-
string new_emboss_uuid = 4;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
// ================== GetCardPinChangeKey ==================
|
|
289
|
-
message GetCardPinChangeKeyRequest {
|
|
290
|
-
string card_id = 1;
|
|
291
|
-
string provider_id = 2;
|
|
292
|
-
string transaction_id = 3;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
message GetCardPinChangeKeyResponse {
|
|
296
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
297
|
-
string token = 2;
|
|
298
|
-
}
|
|
@@ -4,114 +4,30 @@ package kapital.cards.v1;
|
|
|
4
4
|
|
|
5
5
|
option go_package = "kapital/cards/v1;cardsv1";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
string
|
|
10
|
-
|
|
11
|
-
string
|
|
12
|
-
string
|
|
13
|
-
|
|
14
|
-
string
|
|
15
|
-
string
|
|
16
|
-
string
|
|
17
|
-
string
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
string
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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;
|
|
27
33
|
}
|
|
28
|
-
|
|
29
|
-
message AddressContractCards {
|
|
30
|
-
string address_1 = 1;
|
|
31
|
-
optional string address_2 = 2;
|
|
32
|
-
string city = 3;
|
|
33
|
-
string state = 4;
|
|
34
|
-
string postal_code = 5;
|
|
35
|
-
string country_code = 6;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
message RelatedContractCards {
|
|
39
|
-
string pmt_ref_no = 1;
|
|
40
|
-
string product_id = 2;
|
|
41
|
-
string active = 3;
|
|
42
|
-
string status = 4;
|
|
43
|
-
optional string group_id = 5;
|
|
44
|
-
string application_date = 6;
|
|
45
|
-
string start_date = 7;
|
|
46
|
-
optional string bill_cycle_day = 8;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
message ContractContractCards {
|
|
50
|
-
string active = 1;
|
|
51
|
-
string application_date = 2;
|
|
52
|
-
optional string bill_cycle_day = 3;
|
|
53
|
-
optional string group_id = 4;
|
|
54
|
-
string pmt_ref_no = 5;
|
|
55
|
-
string product_id = 6;
|
|
56
|
-
string start_date = 7;
|
|
57
|
-
string status = 8;
|
|
58
|
-
repeated CardContractCards cards = 9;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
message CardContractCards {
|
|
62
|
-
string card_id = 1;
|
|
63
|
-
string card_number = 2;
|
|
64
|
-
string emboss_uuid = 3;
|
|
65
|
-
string card_status = 4;
|
|
66
|
-
string expiry_date = 5;
|
|
67
|
-
optional string external_card_id = 6;
|
|
68
|
-
string pin_fail_count = 7;
|
|
69
|
-
optional string pin_fail_date = 8;
|
|
70
|
-
FreezeInfo freeze_info = 9;
|
|
71
|
-
repeated EmbossedCard embossed_cards = 10;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
message FreezeInfo {
|
|
75
|
-
string status = 1;
|
|
76
|
-
optional string start_date = 2;
|
|
77
|
-
optional string end_date = 3;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
message EmbossedCard {
|
|
81
|
-
string created_date = 1;
|
|
82
|
-
string emboss_uuid = 2;
|
|
83
|
-
string emboss_date = 3;
|
|
84
|
-
string expiry_date = 4;
|
|
85
|
-
string status = 5;
|
|
86
|
-
string shipping_type = 6;
|
|
87
|
-
string product_id = 7;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// ================== GetCard ==================
|
|
91
|
-
message SpendControls {
|
|
92
|
-
optional string available_credit = 1;
|
|
93
|
-
optional string single_use = 2;
|
|
94
|
-
optional string credit_limit = 3;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// ================== ReissueCard ==================
|
|
98
|
-
message ContractCardReissue {
|
|
99
|
-
string card_number = 1;
|
|
100
|
-
optional string expiry_date = 2;
|
|
101
|
-
optional string card_security_code = 3;
|
|
102
|
-
string status = 4;
|
|
103
|
-
string card_id = 5;
|
|
104
|
-
optional string emboss_uuid = 6;
|
|
105
|
-
optional string external_card_id = 7;
|
|
106
|
-
string pmt_ref_no = 8;
|
|
107
|
-
optional string first_name = 9;
|
|
108
|
-
optional string middle_name = 10;
|
|
109
|
-
optional string last_name = 11;
|
|
110
|
-
optional string encrypted_card_number = 12;
|
|
111
|
-
optional string encrypted_expiry_date = 13;
|
|
112
|
-
repeated EmbossedCard embossed_cards = 14;
|
|
113
|
-
optional string pin_fail_count = 15;
|
|
114
|
-
optional string pin_fail_date = 16;
|
|
115
|
-
FreezeInfo freeze_info = 17;
|
|
116
|
-
SpendControls spend_controls = 18;
|
|
117
|
-
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|