@alexochihua/protos 1.0.0
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 +26 -0
- package/buf.gen.yaml +14 -0
- package/buf.yaml +9 -0
- package/dist/generated/kapital/accounts/v1/accounts.d.ts +145 -0
- package/dist/generated/kapital/accounts/v1/accounts.js +787 -0
- package/dist/generated/kapital/accounts/v1/accounts.js.map +1 -0
- package/dist/generated/kapital/accounts/v1/accounts_types.d.ts +39 -0
- package/dist/generated/kapital/accounts/v1/accounts_types.js +314 -0
- package/dist/generated/kapital/accounts/v1/accounts_types.js.map +1 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_service.d.ts +145 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_service.js +771 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_service.js.map +1 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_types.d.ts +37 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_types.js +290 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_types.js.map +1 -0
- package/dist/generated/kapital/cards/v1/cards.d.ts +507 -0
- package/dist/generated/kapital/cards/v1/cards.js +2996 -0
- package/dist/generated/kapital/cards/v1/cards.js.map +1 -0
- package/dist/generated/kapital/cards/v1/cards_types.d.ts +125 -0
- package/dist/generated/kapital/cards/v1/cards_types.js +1268 -0
- package/dist/generated/kapital/cards/v1/cards_types.js.map +1 -0
- package/dist/generated/kapital/common/v1/error.d.ts +24 -0
- package/dist/generated/kapital/common/v1/error.js +119 -0
- package/dist/generated/kapital/common/v1/error.js.map +1 -0
- package/dist/generated/kapital/common/v1/meta.d.ts +20 -0
- package/dist/generated/kapital/common/v1/meta.js +86 -0
- package/dist/generated/kapital/common/v1/meta.js.map +1 -0
- package/dist/generated/kapital/common/v1/pagination.d.ts +26 -0
- package/dist/generated/kapital/common/v1/pagination.js +149 -0
- package/dist/generated/kapital/common/v1/pagination.js.map +1 -0
- package/dist/generated/kapital/contracts/v1/contracts.d.ts +829 -0
- package/dist/generated/kapital/contracts/v1/contracts.js +5840 -0
- package/dist/generated/kapital/contracts/v1/contracts.js.map +1 -0
- package/dist/generated/kapital/contracts/v1/contracts_types.d.ts +293 -0
- package/dist/generated/kapital/contracts/v1/contracts_types.js +3101 -0
- package/dist/generated/kapital/contracts/v1/contracts_types.js.map +1 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.d.ts +57 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js +193 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js.map +1 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.d.ts +37 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js +283 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js.map +1 -0
- package/dist/generated/kapital/customers/v1/customers.d.ts +493 -0
- package/dist/generated/kapital/customers/v1/customers.js +2542 -0
- package/dist/generated/kapital/customers/v1/customers.js.map +1 -0
- package/dist/generated/kapital/customers/v1/customers_types.d.ts +95 -0
- package/dist/generated/kapital/customers/v1/customers_types.js +951 -0
- package/dist/generated/kapital/customers/v1/customers_types.js.map +1 -0
- package/dist/generated/kapital/payments/v1/payments.d.ts +145 -0
- package/dist/generated/kapital/payments/v1/payments.js +915 -0
- package/dist/generated/kapital/payments/v1/payments.js.map +1 -0
- package/dist/generated/kapital/payments/v1/payments_types.d.ts +26 -0
- package/dist/generated/kapital/payments/v1/payments_types.js +163 -0
- package/dist/generated/kapital/payments/v1/payments_types.js.map +1 -0
- package/dist/generated/kapital/products/v1/products.d.ts +234 -0
- package/dist/generated/kapital/products/v1/products.js +1369 -0
- package/dist/generated/kapital/products/v1/products.js.map +1 -0
- package/dist/generated/kapital/products/v1/products_types.d.ts +159 -0
- package/dist/generated/kapital/products/v1/products_types.js +1696 -0
- package/dist/generated/kapital/products/v1/products_types.js.map +1 -0
- package/dist/generated/kapital/transactions/v1/transactions.d.ts +122 -0
- package/dist/generated/kapital/transactions/v1/transactions.js +632 -0
- package/dist/generated/kapital/transactions/v1/transactions.js.map +1 -0
- package/dist/generated/kapital/transactions/v1/transactions_types.d.ts +99 -0
- package/dist/generated/kapital/transactions/v1/transactions_types.js +1023 -0
- package/dist/generated/kapital/transactions/v1/transactions_types.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime/grpc.d.ts +2 -0
- package/dist/runtime/grpc.js +9 -0
- package/dist/runtime/grpc.js.map +1 -0
- package/package.json +195 -0
- package/proto/kapital/accounts/v1/accounts.proto +80 -0
- package/proto/kapital/accounts/v1/accounts_types.proto +31 -0
- package/proto/kapital/accumulates/v1/accumulates_service.proto +81 -0
- package/proto/kapital/accumulates/v1/accumulates_types.proto +30 -0
- package/proto/kapital/cards/v1/cards.proto +298 -0
- package/proto/kapital/cards/v1/cards_types.proto +117 -0
- package/proto/kapital/common/v1/error.proto +18 -0
- package/proto/kapital/common/v1/meta.proto +13 -0
- package/proto/kapital/common/v1/pagination.proto +18 -0
- package/proto/kapital/contracts/v1/contracts.proto +629 -0
- package/proto/kapital/contracts/v1/contracts_types.proto +316 -0
- package/proto/kapital/credit_accounts/v1/credit_accounts.proto +28 -0
- package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +29 -0
- package/proto/kapital/customers/v1/customers.proto +235 -0
- package/proto/kapital/customers/v1/customers_types.proto +87 -0
- package/proto/kapital/payments/v1/payments.proto +94 -0
- package/proto/kapital/payments/v1/payments_types.proto +18 -0
- package/proto/kapital/products/v1/products.proto +139 -0
- package/proto/kapital/products/v1/products_types.proto +156 -0
- package/proto/kapital/transactions/v1/transactions.proto +70 -0
- package/proto/kapital/transactions/v1/transactions_types.proto +91 -0
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.contracts.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/contracts/v1;contractsv1";
|
|
6
|
+
|
|
7
|
+
// ================== CreatePhysicalCardContract ==================
|
|
8
|
+
message ModelResults {
|
|
9
|
+
string model_name = 1;
|
|
10
|
+
string model_version = 2;
|
|
11
|
+
string code = 3;
|
|
12
|
+
string text = 4;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message CIPFull {
|
|
16
|
+
string status = 1;
|
|
17
|
+
repeated ModelResults model_results = 2;
|
|
18
|
+
string date_time = 3;
|
|
19
|
+
|
|
20
|
+
string first_name = 4;
|
|
21
|
+
string middle_name = 5;
|
|
22
|
+
string last_name = 6;
|
|
23
|
+
|
|
24
|
+
string address_1 = 7;
|
|
25
|
+
string address_2 = 8;
|
|
26
|
+
string city = 9;
|
|
27
|
+
string state = 10;
|
|
28
|
+
|
|
29
|
+
string primary_phone = 11;
|
|
30
|
+
string other_phone = 12;
|
|
31
|
+
|
|
32
|
+
string entity_id = 13;
|
|
33
|
+
string customer_id = 14;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// ================== CreateVirtualCardContract ==================
|
|
37
|
+
message CIP {
|
|
38
|
+
string status = 1;
|
|
39
|
+
repeated ModelResults model_results = 2;
|
|
40
|
+
string date_time = 3;
|
|
41
|
+
|
|
42
|
+
string first_name = 4;
|
|
43
|
+
string middle_name = 5;
|
|
44
|
+
string last_name = 6;
|
|
45
|
+
|
|
46
|
+
string address_1 = 7;
|
|
47
|
+
string address_2 = 8;
|
|
48
|
+
string city = 9;
|
|
49
|
+
string state = 10;
|
|
50
|
+
|
|
51
|
+
string primary_phone = 11;
|
|
52
|
+
string other_phone = 12;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// ================== UpdateContract ==================
|
|
56
|
+
message Address {
|
|
57
|
+
string address_1 = 1;
|
|
58
|
+
string address_2 = 2;
|
|
59
|
+
string city = 3;
|
|
60
|
+
string state = 4;
|
|
61
|
+
string zip = 5;
|
|
62
|
+
string country_code = 6;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
message CustomerProfile {
|
|
66
|
+
string first_name = 1;
|
|
67
|
+
string middle_name = 2;
|
|
68
|
+
string last_name = 3;
|
|
69
|
+
string preferred_name = 4;
|
|
70
|
+
string preferred_name_only_on_card = 5;
|
|
71
|
+
string address_1 = 6;
|
|
72
|
+
string address_2 = 7;
|
|
73
|
+
string city = 8;
|
|
74
|
+
string state = 9;
|
|
75
|
+
string zip = 10;
|
|
76
|
+
string country_code = 11;
|
|
77
|
+
string mobile_phone = 12;
|
|
78
|
+
string email = 13;
|
|
79
|
+
Address ship_address = 14;
|
|
80
|
+
string express_mail = 15;
|
|
81
|
+
int32 related_accounts = 16;
|
|
82
|
+
string occupation = 17;
|
|
83
|
+
string income_source = 18;
|
|
84
|
+
string embossed_line_2 = 19;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// ================== GetContractById ==================
|
|
88
|
+
message Card {
|
|
89
|
+
string card_id = 1;
|
|
90
|
+
string card_status = 2;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
message Contract {
|
|
94
|
+
string prn = 1;
|
|
95
|
+
string prod_id = 2;
|
|
96
|
+
string app_date = 3;
|
|
97
|
+
string status = 4;
|
|
98
|
+
string active_flag = 5;
|
|
99
|
+
double balance = 6;
|
|
100
|
+
string contract_number = 7;
|
|
101
|
+
repeated Card cards = 8;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// ================== GetRelatedContracts ==================
|
|
105
|
+
message RelatedData {
|
|
106
|
+
string prn = 1;
|
|
107
|
+
string product_id = 2;
|
|
108
|
+
string contract_number = 3;
|
|
109
|
+
string status = 4;
|
|
110
|
+
string active = 5;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// ================== VerifyContract ==================
|
|
114
|
+
message ContractVerify {
|
|
115
|
+
string max_load_amount = 1;
|
|
116
|
+
double balance = 2;
|
|
117
|
+
string external_account_id = 3;
|
|
118
|
+
string pmt_ref_number = 4;
|
|
119
|
+
string account_status = 5;
|
|
120
|
+
string contract_number = 6;
|
|
121
|
+
string product_id = 7;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// ================== SearchContracts ==================
|
|
125
|
+
message ContractSearch {
|
|
126
|
+
string pmt_ref_number = 1;
|
|
127
|
+
string first_name = 2;
|
|
128
|
+
string middle_name = 3;
|
|
129
|
+
string last_name = 4;
|
|
130
|
+
string email = 5;
|
|
131
|
+
string status = 6;
|
|
132
|
+
string active = 7;
|
|
133
|
+
string contract_number = 8;
|
|
134
|
+
string product_id = 9;
|
|
135
|
+
string group_id = 10;
|
|
136
|
+
string application_date = 11;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// ================== GetContractData ==================
|
|
140
|
+
message ContractOverview {
|
|
141
|
+
string pmt_ref_no = 1;
|
|
142
|
+
string status = 2;
|
|
143
|
+
string first_fund_date = 3;
|
|
144
|
+
string application_date = 4;
|
|
145
|
+
double balance = 5;
|
|
146
|
+
string currency_code = 6;
|
|
147
|
+
string start_date = 7;
|
|
148
|
+
string end_date = 8;
|
|
149
|
+
int32 transaction_count = 9;
|
|
150
|
+
int32 authorization_count = 10;
|
|
151
|
+
string kyc_ref_no = 11;
|
|
152
|
+
string curp = 12;
|
|
153
|
+
string political_affiliation = 13;
|
|
154
|
+
string place_of_birth = 14;
|
|
155
|
+
string nationality = 15;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// ================== GetCustomerProfile ==================
|
|
159
|
+
|
|
160
|
+
message Profile {
|
|
161
|
+
string id = 1;
|
|
162
|
+
optional string id2 = 2;
|
|
163
|
+
optional string id3 = 3;
|
|
164
|
+
|
|
165
|
+
int32 id_type = 4;
|
|
166
|
+
optional int32 id2_type = 5;
|
|
167
|
+
optional int32 id3_type = 6;
|
|
168
|
+
|
|
169
|
+
string first_name = 7;
|
|
170
|
+
optional string middle_name = 8;
|
|
171
|
+
string last_name = 9;
|
|
172
|
+
|
|
173
|
+
optional string address_1 = 10;
|
|
174
|
+
optional string address_2 = 11;
|
|
175
|
+
|
|
176
|
+
optional string business_name = 12;
|
|
177
|
+
|
|
178
|
+
optional string city = 13;
|
|
179
|
+
string state = 14;
|
|
180
|
+
string postal_code = 15;
|
|
181
|
+
optional string country_code = 16;
|
|
182
|
+
|
|
183
|
+
optional string home_phone = 17;
|
|
184
|
+
optional string mobile_phone = 18;
|
|
185
|
+
optional string mobile_phone_country_code = 19;
|
|
186
|
+
optional int32 carrier_id = 20;
|
|
187
|
+
|
|
188
|
+
optional string email = 21;
|
|
189
|
+
optional string dob = 22;
|
|
190
|
+
|
|
191
|
+
Address ship_to_address = 23;
|
|
192
|
+
|
|
193
|
+
optional string express_mail = 24;
|
|
194
|
+
optional string occupation = 25;
|
|
195
|
+
optional string income_source = 26;
|
|
196
|
+
optional string monthly_income = 27;
|
|
197
|
+
optional string preferred_lang = 28;
|
|
198
|
+
|
|
199
|
+
string preferred_name = 29;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// ================== GetTransactions ==================
|
|
203
|
+
message Transaction {
|
|
204
|
+
string pmt_ref_no = 1;
|
|
205
|
+
optional string act_id = 2;
|
|
206
|
+
optional string act_type = 3;
|
|
207
|
+
string mcc = 4;
|
|
208
|
+
optional string post_ts = 5;
|
|
209
|
+
string amt = 6;
|
|
210
|
+
string details = 7;
|
|
211
|
+
optional string description = 8;
|
|
212
|
+
string source_id = 9;
|
|
213
|
+
string bal_id = 10;
|
|
214
|
+
string prod_id = 11;
|
|
215
|
+
string auth_ts = 12;
|
|
216
|
+
string trans_code = 13;
|
|
217
|
+
optional string ach_transaction_id = 14;
|
|
218
|
+
optional string external_trans_id = 15;
|
|
219
|
+
optional string original_auth_id = 16;
|
|
220
|
+
optional string network_id = 17;
|
|
221
|
+
optional string local_amt = 18;
|
|
222
|
+
optional string local_curr_code = 19;
|
|
223
|
+
optional string settle_amt = 20;
|
|
224
|
+
optional string settle_curr_code = 21;
|
|
225
|
+
optional string billing_amt = 22;
|
|
226
|
+
optional string billing_curr_code = 23;
|
|
227
|
+
optional string credit_ind = 24;
|
|
228
|
+
optional double iac_tax = 25;
|
|
229
|
+
optional double iva_tax = 26;
|
|
230
|
+
optional string funding_account_prn = 27;
|
|
231
|
+
optional string spending_account_prn = 28;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// ================== GetAuthorizations ==================
|
|
235
|
+
message Authorization {
|
|
236
|
+
string auth_id = 1;
|
|
237
|
+
|
|
238
|
+
string details = 2;
|
|
239
|
+
string details_formatted = 3;
|
|
240
|
+
|
|
241
|
+
string amount = 4;
|
|
242
|
+
|
|
243
|
+
optional string timestamp = 5;
|
|
244
|
+
|
|
245
|
+
string type = 6;
|
|
246
|
+
|
|
247
|
+
string mcc = 7;
|
|
248
|
+
string merchant_id = 8;
|
|
249
|
+
string acq_id = 9;
|
|
250
|
+
string terminal_id = 10;
|
|
251
|
+
|
|
252
|
+
string can_be_expired = 11;
|
|
253
|
+
|
|
254
|
+
optional string original_auth_id = 12;
|
|
255
|
+
optional string network_code = 13;
|
|
256
|
+
|
|
257
|
+
optional string local_amt = 14;
|
|
258
|
+
optional string local_curr_code = 15;
|
|
259
|
+
|
|
260
|
+
optional string settle_amt = 16;
|
|
261
|
+
optional string settle_curr_code = 17;
|
|
262
|
+
|
|
263
|
+
optional string billing_amt = 18;
|
|
264
|
+
optional string billing_curr_code = 19;
|
|
265
|
+
|
|
266
|
+
optional double iac_tax = 20;
|
|
267
|
+
optional double iva_tax = 21;
|
|
268
|
+
|
|
269
|
+
optional string latest_incremental_id = 22;
|
|
270
|
+
optional string original_incremental_id = 23;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// ================== GetPendingFees ==================
|
|
274
|
+
message FeeRelatedTransaction {
|
|
275
|
+
optional string details = 1;
|
|
276
|
+
double amt = 2;
|
|
277
|
+
string post_ts = 3;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
message PendingFee {
|
|
281
|
+
string fee_event_id = 1;
|
|
282
|
+
string type = 2;
|
|
283
|
+
string type_description = 3;
|
|
284
|
+
string amt = 4;
|
|
285
|
+
string fee_date = 5;
|
|
286
|
+
optional int64 card_id = 6;
|
|
287
|
+
string fee_description = 7;
|
|
288
|
+
optional FeeRelatedTransaction related_transaction = 8;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
// ================== GetSavingsInterest ==================
|
|
292
|
+
message SavingsInterest {
|
|
293
|
+
string start_date = 1;
|
|
294
|
+
string end_date = 2;
|
|
295
|
+
string accrual_interest = 3;
|
|
296
|
+
string interest_ytd = 4;
|
|
297
|
+
string apy = 5;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
// ================== GetHolds ==================
|
|
301
|
+
message Hold {
|
|
302
|
+
string hold_id = 1;
|
|
303
|
+
optional string create_dt = 2;
|
|
304
|
+
optional string expiry_dt = 3;
|
|
305
|
+
optional string source_id = 4;
|
|
306
|
+
optional string change_ts = 5;
|
|
307
|
+
optional string hold_type = 6;
|
|
308
|
+
optional string ext_id = 7;
|
|
309
|
+
optional string dscr = 8;
|
|
310
|
+
optional string originating_system_id = 9;
|
|
311
|
+
optional string agent_id = 10;
|
|
312
|
+
double amount = 11;
|
|
313
|
+
optional string xid = 12;
|
|
314
|
+
optional string expiring_system_id = 13;
|
|
315
|
+
optional string expiring_agent_id = 14;
|
|
316
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.credit_accounts.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/credit_accounts/v1;creditaccountsv1";
|
|
6
|
+
|
|
7
|
+
import "kapital/common/v1/meta.proto";
|
|
8
|
+
import "kapital/common/v1/pagination.proto";
|
|
9
|
+
import "kapital/credit_accounts/v1/credit_accounts_types.proto";
|
|
10
|
+
|
|
11
|
+
service CreditAccountsService {
|
|
12
|
+
rpc GetAccounts(GetAccountsRequest) returns (GetAccountsResponse);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message GetAccountsRequest {
|
|
16
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
17
|
+
string rfc = 2;
|
|
18
|
+
string business_name = 3;
|
|
19
|
+
string status = 4;
|
|
20
|
+
string q = 5;
|
|
21
|
+
string account = 6;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message GetAccountsResponse {
|
|
25
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
26
|
+
kapital.common.v1.PageResponse page_response = 2;
|
|
27
|
+
repeated Account accounts = 3;
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.credit_accounts.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/credit_accounts/v1;creditaccountsv1";
|
|
6
|
+
|
|
7
|
+
message AccountProduct {
|
|
8
|
+
string id_short = 1;
|
|
9
|
+
string id_long = 2;
|
|
10
|
+
string product = 3;
|
|
11
|
+
string rate_selection = 4;
|
|
12
|
+
int32 allowed_cards = 5;
|
|
13
|
+
string credit_amount = 6;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message Account {
|
|
17
|
+
string id_short = 1;
|
|
18
|
+
string id_long = 2;
|
|
19
|
+
string account = 3;
|
|
20
|
+
string product_type = 4;
|
|
21
|
+
int32 number_cards = 5;
|
|
22
|
+
double rate = 6;
|
|
23
|
+
double available_limits = 7;
|
|
24
|
+
double balance = 8;
|
|
25
|
+
string status = 9;
|
|
26
|
+
string status_label = 10;
|
|
27
|
+
string rfc = 11;
|
|
28
|
+
string business_name = 12;
|
|
29
|
+
}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.customers.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/customers/v1;customersv1";
|
|
6
|
+
|
|
7
|
+
import "kapital/common/v1/meta.proto";
|
|
8
|
+
import "kapital/common/v1/pagination.proto";
|
|
9
|
+
import "kapital/customers/v1/customers_types.proto";
|
|
10
|
+
|
|
11
|
+
service CustomersService {
|
|
12
|
+
rpc GetCustomers(GetCustomersRequest) returns (GetCustomersResponse);
|
|
13
|
+
rpc GetCustomerById(GetCustomerByIdRequest) returns (GetCustomerByIdResponse);
|
|
14
|
+
rpc GetContractsByCustomer(GetContractsByCustomerRequest) returns (GetContractsByCustomerResponse);
|
|
15
|
+
rpc GetContractById(GetContractByIdRequest) returns (GetContractByIdResponse);
|
|
16
|
+
|
|
17
|
+
rpc GetTransactionsByContract(GetTransactionsByContractRequest) returns (GetTransactionsByContractResponse);
|
|
18
|
+
rpc GetCardsByContract(GetCardsByContractRequest) returns (GetCardsByContractResponse);
|
|
19
|
+
rpc GetCardDetail(GetCardDetailRequest) returns (GetCardDetailResponse);
|
|
20
|
+
rpc GetCardTransactions(GetCardTransactionsRequest) returns (GetCardTransactionsResponse);
|
|
21
|
+
rpc GetContractPeriods(GetContractPeriodsRequest) returns (GetContractPeriodsResponse);
|
|
22
|
+
rpc GetCardPeriods(GetCardPeriodsRequest) returns (GetCardPeriodsResponse);
|
|
23
|
+
rpc GetCustomerStatuses(GetCustomerStatusesRequest) returns (GetCustomerStatusesResponse);
|
|
24
|
+
rpc GetDelinquencyLevels(GetDelinquencyLevelsRequest) returns (GetDelinquencyLevelsResponse);
|
|
25
|
+
rpc GetContractStatuses(GetContractStatusesRequest) returns (GetContractStatusesResponse);
|
|
26
|
+
rpc GetCustomerCardStatuses(GetCustomerCardStatusesRequest) returns (GetCustomerCardStatusesResponse);
|
|
27
|
+
rpc GetCustomerProductTypes(GetCustomerProductTypesRequest) returns (GetCustomerProductTypesResponse);
|
|
28
|
+
rpc GetCustomerCardTypes(GetCustomerCardTypesRequest) returns (GetCustomerCardTypesResponse);
|
|
29
|
+
rpc GetMccs(GetMccsRequest) returns (GetMccsResponse);
|
|
30
|
+
rpc GetTransactionTypes(GetTransactionTypesRequest) returns (GetTransactionTypesResponse);
|
|
31
|
+
rpc GetTransactionChannels(GetTransactionChannelsRequest) returns (GetTransactionChannelsResponse);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// ============================================================================
|
|
35
|
+
// Request/Response Messages
|
|
36
|
+
// ============================================================================
|
|
37
|
+
|
|
38
|
+
message GetCustomersRequest {
|
|
39
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
40
|
+
string q = 2;
|
|
41
|
+
string status = 3;
|
|
42
|
+
string rfc = 4;
|
|
43
|
+
string customer_number = 5;
|
|
44
|
+
string product_type = 6;
|
|
45
|
+
string product = 7;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message GetCustomersResponse {
|
|
49
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
50
|
+
kapital.common.v1.PageResponse page_response = 2;
|
|
51
|
+
repeated Customer customers = 3;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message GetCustomerByIdRequest {
|
|
55
|
+
string customer_id = 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message GetCustomerByIdResponse {
|
|
59
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
60
|
+
Customer customer = 2;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message GetContractsByCustomerRequest {
|
|
64
|
+
string customer_id = 1;
|
|
65
|
+
kapital.common.v1.PageRequest page_request = 2;
|
|
66
|
+
string q = 3;
|
|
67
|
+
string status = 4;
|
|
68
|
+
string rfc = 5;
|
|
69
|
+
string business_name = 6;
|
|
70
|
+
string product = 7;
|
|
71
|
+
string product_type = 8;
|
|
72
|
+
string card_number = 9;
|
|
73
|
+
string clabe = 10;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message GetContractsByCustomerResponse {
|
|
77
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
78
|
+
string customer = 2;
|
|
79
|
+
kapital.common.v1.PageResponse page_response = 3;
|
|
80
|
+
repeated Contract contracts = 4;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
message GetContractByIdRequest {
|
|
84
|
+
string customer_id = 1;
|
|
85
|
+
string contract_id = 2;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message GetContractByIdResponse {
|
|
89
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
90
|
+
Contract contract = 2;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
message GetTransactionsByContractRequest {
|
|
94
|
+
string contract_number = 1;
|
|
95
|
+
kapital.common.v1.PageRequest page_request = 2;
|
|
96
|
+
string q = 3;
|
|
97
|
+
string status = 4;
|
|
98
|
+
string transaction_type = 5;
|
|
99
|
+
string date = 6;
|
|
100
|
+
string start_date = 7;
|
|
101
|
+
string end_date = 8;
|
|
102
|
+
string card_number = 9;
|
|
103
|
+
string merchant_number = 10;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
message GetTransactionsByContractResponse {
|
|
107
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
108
|
+
kapital.common.v1.PageResponse page_response = 2;
|
|
109
|
+
repeated Transaction transactions = 3;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
message GetCardsByContractRequest {
|
|
113
|
+
string customer_id = 1;
|
|
114
|
+
string contract_id = 2;
|
|
115
|
+
kapital.common.v1.PageRequest page_request = 3;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
message GetCardsByContractResponse {
|
|
119
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
120
|
+
kapital.common.v1.PageResponse page_response = 2;
|
|
121
|
+
repeated CustomerCard cards = 3;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
message GetCardDetailRequest {
|
|
125
|
+
string customer_id = 1;
|
|
126
|
+
string contract_id = 2;
|
|
127
|
+
string card_id = 3;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
message GetCardDetailResponse {
|
|
131
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
132
|
+
CustomerCard card = 2;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
message GetCardTransactionsRequest {
|
|
136
|
+
string customer_id = 1;
|
|
137
|
+
string contract_id = 2;
|
|
138
|
+
string card_id = 3;
|
|
139
|
+
kapital.common.v1.PageRequest page_request = 4;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
message GetCardTransactionsResponse {
|
|
143
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
144
|
+
kapital.common.v1.PageResponse page_response = 2;
|
|
145
|
+
repeated Transaction transactions = 3;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
message GetContractPeriodsRequest {
|
|
149
|
+
string customer_id = 1;
|
|
150
|
+
string contract_id = 2;
|
|
151
|
+
kapital.common.v1.PageRequest page_request = 3;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
message GetContractPeriodsResponse {
|
|
155
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
156
|
+
int32 total = 2;
|
|
157
|
+
repeated Period periods = 3;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
message GetCardPeriodsRequest {
|
|
161
|
+
string customer_id = 1;
|
|
162
|
+
string contract_id = 2;
|
|
163
|
+
string card_id = 3;
|
|
164
|
+
kapital.common.v1.PageRequest page_request = 4;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
message GetCardPeriodsResponse {
|
|
168
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
169
|
+
int32 total = 2;
|
|
170
|
+
repeated Period periods = 3;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// Catalogs
|
|
174
|
+
message GetCustomerStatusesRequest {}
|
|
175
|
+
message GetCustomerStatusesResponse {
|
|
176
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
177
|
+
int32 total = 2;
|
|
178
|
+
repeated CatalogItem items = 3;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
message GetDelinquencyLevelsRequest {}
|
|
182
|
+
message GetDelinquencyLevelsResponse {
|
|
183
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
184
|
+
int32 total = 2;
|
|
185
|
+
repeated CatalogItem items = 3;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
message GetContractStatusesRequest {}
|
|
189
|
+
message GetContractStatusesResponse {
|
|
190
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
191
|
+
int32 total = 2;
|
|
192
|
+
repeated CatalogItem items = 3;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
message GetCustomerCardStatusesRequest {}
|
|
196
|
+
message GetCustomerCardStatusesResponse {
|
|
197
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
198
|
+
int32 total = 2;
|
|
199
|
+
repeated CatalogItem items = 3;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
message GetCustomerProductTypesRequest {}
|
|
203
|
+
message GetCustomerProductTypesResponse {
|
|
204
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
205
|
+
int32 total = 2;
|
|
206
|
+
repeated CatalogItem items = 3;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
message GetCustomerCardTypesRequest {}
|
|
210
|
+
message GetCustomerCardTypesResponse {
|
|
211
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
212
|
+
int32 total = 2;
|
|
213
|
+
repeated CatalogItem items = 3;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
message GetMccsRequest {}
|
|
217
|
+
message GetMccsResponse {
|
|
218
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
219
|
+
int32 total = 2;
|
|
220
|
+
repeated CatalogItem items = 3;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
message GetTransactionTypesRequest {}
|
|
224
|
+
message GetTransactionTypesResponse {
|
|
225
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
226
|
+
int32 total = 2;
|
|
227
|
+
repeated CatalogItem items = 3;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
message GetTransactionChannelsRequest {}
|
|
231
|
+
message GetTransactionChannelsResponse {
|
|
232
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
233
|
+
int32 total = 2;
|
|
234
|
+
repeated CatalogItem items = 3;
|
|
235
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.customers.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/customers/v1;customersv1";
|
|
6
|
+
|
|
7
|
+
message Customer {
|
|
8
|
+
string id_short = 1;
|
|
9
|
+
string id_long = 2;
|
|
10
|
+
string customer_number = 3;
|
|
11
|
+
string business_name = 4;
|
|
12
|
+
string customer_name = 5;
|
|
13
|
+
string rfc = 6;
|
|
14
|
+
string curp = 7;
|
|
15
|
+
string status = 8;
|
|
16
|
+
string delinquency = 9;
|
|
17
|
+
string risk_status = 10;
|
|
18
|
+
string credit_rating = 11;
|
|
19
|
+
string registration_date = 12;
|
|
20
|
+
string address = 13;
|
|
21
|
+
string phone = 14;
|
|
22
|
+
string email = 15;
|
|
23
|
+
string assigned_branch = 16;
|
|
24
|
+
bool has_credit_contracts = 17;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message Contract {
|
|
28
|
+
string id_short = 1;
|
|
29
|
+
string id_long = 2;
|
|
30
|
+
string contract_number = 3;
|
|
31
|
+
string clabe = 4;
|
|
32
|
+
string product = 5;
|
|
33
|
+
string product_type = 6;
|
|
34
|
+
int32 number_cards = 7;
|
|
35
|
+
double rate = 8;
|
|
36
|
+
string status = 9;
|
|
37
|
+
string delinquency = 10;
|
|
38
|
+
int32 delinquency_days = 11;
|
|
39
|
+
int32 cutoff_day = 12;
|
|
40
|
+
string payment_due_date = 13;
|
|
41
|
+
double available_limit = 14;
|
|
42
|
+
double available_balance = 15;
|
|
43
|
+
double total_balance = 16;
|
|
44
|
+
double cutoff_debt_balance = 17;
|
|
45
|
+
double current_debt_balance = 18;
|
|
46
|
+
int32 transactions_per_period = 19;
|
|
47
|
+
string rfc = 20;
|
|
48
|
+
string business_name = 21;
|
|
49
|
+
string customer_name = 22;
|
|
50
|
+
string primary_card = 23;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
message Transaction {
|
|
54
|
+
string id_short = 1;
|
|
55
|
+
string id_long = 2;
|
|
56
|
+
string transaction_number = 3;
|
|
57
|
+
string transaction_type = 4;
|
|
58
|
+
string transaction_channel = 5;
|
|
59
|
+
string concept = 6;
|
|
60
|
+
double amount = 7;
|
|
61
|
+
string transaction_date = 8;
|
|
62
|
+
string card_number = 9;
|
|
63
|
+
string merchant_number = 10;
|
|
64
|
+
string merchant_name = 11;
|
|
65
|
+
string status = 12;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message CustomerCard {
|
|
69
|
+
string id_short = 1;
|
|
70
|
+
string id_long = 2;
|
|
71
|
+
string card_number = 3;
|
|
72
|
+
string card_type = 4;
|
|
73
|
+
string status = 5;
|
|
74
|
+
string expiration_date = 6;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
message Period {
|
|
78
|
+
string id = 1;
|
|
79
|
+
string period = 2;
|
|
80
|
+
string start_date = 3;
|
|
81
|
+
string end_date = 4;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
message CatalogItem {
|
|
85
|
+
string value = 1;
|
|
86
|
+
string label = 2;
|
|
87
|
+
}
|