@alexochihua/protos 1.0.38 → 1.0.41
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/buf.gen.yaml +2 -2
- package/dist/generated/kapital/contracts/v1/contracts.d.ts +7 -31
- package/dist/generated/kapital/contracts/v1/contracts.js +338 -615
- package/dist/generated/kapital/contracts/v1/contracts.js.map +1 -1
- package/dist/generated/kapital/contracts/v1/contracts_types.d.ts +5 -0
- package/dist/generated/kapital/contracts/v1/contracts_types.js +53 -1
- package/dist/generated/kapital/contracts/v1/contracts_types.js.map +1 -1
- package/dist/generated/kapital/customers/v1/customers_types.d.ts +2 -0
- package/dist/generated/kapital/customers/v1/customers_types.js +24 -0
- package/dist/generated/kapital/customers/v1/customers_types.js.map +1 -1
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.d.ts +5 -5
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js.map +1 -1
- package/dist/generated/kapital/payments/v1/payments.d.ts +0 -4
- package/dist/generated/kapital/payments/v1/payments.js +77 -132
- package/dist/generated/kapital/payments/v1/payments.js.map +1 -1
- package/dist/generated/kapital/payments_methods/v1/payments_methods.d.ts +12 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods.js +138 -1
- package/dist/generated/kapital/payments_methods/v1/payments_methods.js.map +1 -1
- package/dist/generated/kapital/payments_methods/v1/payments_methods_types.d.ts +1 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js +12 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js.map +1 -1
- package/dist/generated/kapital/transactions/v1/transactions.d.ts +0 -2
- package/dist/generated/kapital/transactions/v1/transactions.js +20 -50
- package/dist/generated/kapital/transactions/v1/transactions.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 +133 -161
- package/proto/kapital/contracts/v1/contracts_types.proto +5 -0
- package/proto/kapital/customers/v1/customers_types.proto +2 -0
- package/proto/kapital/offers/v1/offers.proto +111 -111
- package/proto/kapital/offers/v1/offers_types.proto +54 -54
- package/proto/kapital/payments/v1/payments.proto +34 -38
- 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.proto +9 -11
- package/proto/kapital/transactions/v1/transactions_types.proto +90 -90
|
@@ -92,6 +92,8 @@ message CreateContractRequest {
|
|
|
92
92
|
optional string ship_country_code = 43;
|
|
93
93
|
|
|
94
94
|
optional string business_name = 44;
|
|
95
|
+
optional string channel = 45;
|
|
96
|
+
optional string channel_value = 46;
|
|
95
97
|
}
|
|
96
98
|
|
|
97
99
|
message CreateContractResponse {
|
|
@@ -99,17 +101,13 @@ message CreateContractResponse {
|
|
|
99
101
|
string pmt_ref_number = 2;
|
|
100
102
|
string product_id = 3;
|
|
101
103
|
string contract_number = 4;
|
|
102
|
-
|
|
103
104
|
repeated CIPFull cip = 5;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
string card_number_physical = 7;
|
|
105
|
+
optional CardInfo card_virtual = 6;
|
|
106
|
+
optional CardInfo card_physical = 7;
|
|
107
107
|
string new_emboss_uuid = 8;
|
|
108
|
-
|
|
109
108
|
string expiry_date = 9;
|
|
110
109
|
string card_security_code = 10;
|
|
111
110
|
string emboss_line_2 = 11;
|
|
112
|
-
|
|
113
111
|
int32 billing_cycle_day = 12;
|
|
114
112
|
}
|
|
115
113
|
|
|
@@ -173,6 +171,8 @@ message CreatePhysicalCardContractRequest {
|
|
|
173
171
|
optional string ship_country_code = 43;
|
|
174
172
|
|
|
175
173
|
optional string business_name = 44;
|
|
174
|
+
optional string channel = 45;
|
|
175
|
+
optional string channel_value = 46;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
message CreatePhysicalCardContractResponse {
|
|
@@ -196,67 +196,65 @@ message CreatePhysicalCardContractResponse {
|
|
|
196
196
|
|
|
197
197
|
// ================== CreateVirtualCardContract ==================
|
|
198
198
|
message CreateVirtualCardContractRequest {
|
|
199
|
-
string provider_id = 1;
|
|
200
|
-
string transaction_id = 2;
|
|
201
199
|
|
|
202
|
-
int32 prod_id =
|
|
200
|
+
int32 prod_id = 1;
|
|
203
201
|
|
|
204
|
-
int32 id_type =
|
|
205
|
-
string id =
|
|
202
|
+
int32 id_type = 2;
|
|
203
|
+
string id = 3;
|
|
206
204
|
|
|
207
|
-
int32 id_type_2 =
|
|
208
|
-
string id_2 =
|
|
205
|
+
int32 id_type_2 = 4;
|
|
206
|
+
string id_2 = 5;
|
|
209
207
|
|
|
210
|
-
string locale =
|
|
208
|
+
string locale = 6;
|
|
211
209
|
|
|
212
|
-
string first_name =
|
|
213
|
-
string middle_name =
|
|
214
|
-
string last_name =
|
|
215
|
-
string date_of_birth =
|
|
210
|
+
string first_name = 7;
|
|
211
|
+
string middle_name = 8;
|
|
212
|
+
string last_name = 9;
|
|
213
|
+
string date_of_birth = 10;
|
|
216
214
|
|
|
217
|
-
string address_1 =
|
|
218
|
-
string address_2 =
|
|
219
|
-
string address_3 =
|
|
220
|
-
string address_4 =
|
|
221
|
-
string address_5 =
|
|
215
|
+
string address_1 = 11;
|
|
216
|
+
string address_2 = 12;
|
|
217
|
+
string address_3 = 13;
|
|
218
|
+
string address_4 = 14;
|
|
219
|
+
string address_5 = 15;
|
|
222
220
|
|
|
223
|
-
string city =
|
|
224
|
-
string state =
|
|
225
|
-
string zip =
|
|
226
|
-
string country_code =
|
|
221
|
+
string city = 16;
|
|
222
|
+
string state = 17;
|
|
223
|
+
string zip = 18;
|
|
224
|
+
string country_code = 19;
|
|
227
225
|
|
|
228
|
-
string primary_phone =
|
|
229
|
-
string other_phone =
|
|
230
|
-
string mobile_phone =
|
|
231
|
-
string mobile_carrier_id =
|
|
226
|
+
string primary_phone = 20;
|
|
227
|
+
string other_phone = 21;
|
|
228
|
+
string mobile_phone = 22;
|
|
229
|
+
string mobile_carrier_id = 23;
|
|
232
230
|
|
|
233
|
-
string email =
|
|
231
|
+
string email = 24;
|
|
234
232
|
|
|
235
|
-
string secret_question =
|
|
236
|
-
string secret_answer =
|
|
233
|
+
string secret_question = 25;
|
|
234
|
+
string secret_answer = 26;
|
|
237
235
|
|
|
238
|
-
double load_amount =
|
|
239
|
-
string load_type =
|
|
236
|
+
double load_amount = 27;
|
|
237
|
+
string load_type = 28;
|
|
240
238
|
|
|
241
|
-
string external_account_id =
|
|
242
|
-
string primary_account =
|
|
239
|
+
string external_account_id = 29;
|
|
240
|
+
string primary_account = 30;
|
|
243
241
|
|
|
244
|
-
int32 shared_balance =
|
|
242
|
+
int32 shared_balance = 31;
|
|
245
243
|
|
|
246
|
-
string user_data =
|
|
244
|
+
string user_data = 32;
|
|
247
245
|
|
|
248
|
-
int32 verify_only =
|
|
246
|
+
int32 verify_only = 33;
|
|
249
247
|
|
|
250
|
-
string load_from_account =
|
|
251
|
-
string sweep_date =
|
|
248
|
+
string load_from_account = 34;
|
|
249
|
+
string sweep_date = 35;
|
|
252
250
|
|
|
253
|
-
double credit_limit =
|
|
251
|
+
double credit_limit = 36;
|
|
254
252
|
|
|
255
|
-
string single_use =
|
|
253
|
+
string single_use = 37;
|
|
256
254
|
|
|
257
|
-
string business_name =
|
|
255
|
+
string business_name = 38;
|
|
258
256
|
|
|
259
|
-
string mobile_phone_country_code =
|
|
257
|
+
string mobile_phone_country_code = 39;
|
|
260
258
|
}
|
|
261
259
|
|
|
262
260
|
message CreateVirtualCardContractResponse {
|
|
@@ -337,78 +335,76 @@ message GetCustomerIdByContractIdResponse {
|
|
|
337
335
|
// ================== UpdateContract ==================
|
|
338
336
|
message UpdateContractRequest {
|
|
339
337
|
string contract_id = 1;
|
|
340
|
-
string provider_id = 2;
|
|
341
|
-
string transaction_id = 3;
|
|
342
338
|
|
|
343
|
-
int32 id_type =
|
|
344
|
-
string id =
|
|
339
|
+
int32 id_type = 2;
|
|
340
|
+
string id = 3;
|
|
345
341
|
|
|
346
|
-
int32 id_type_2 =
|
|
347
|
-
string id_2 =
|
|
342
|
+
int32 id_type_2 = 4;
|
|
343
|
+
string id_2 = 5;
|
|
348
344
|
|
|
349
|
-
int32 id_type_3 =
|
|
350
|
-
string id_3 =
|
|
345
|
+
int32 id_type_3 = 6;
|
|
346
|
+
string id_3 = 7;
|
|
351
347
|
|
|
352
|
-
int32 location_type =
|
|
353
|
-
string location =
|
|
354
|
-
string locale =
|
|
348
|
+
int32 location_type = 8;
|
|
349
|
+
string location = 9;
|
|
350
|
+
string locale = 10;
|
|
355
351
|
|
|
356
|
-
string external_account_id =
|
|
352
|
+
string external_account_id = 11;
|
|
357
353
|
|
|
358
|
-
string first_name =
|
|
359
|
-
string middle_name =
|
|
360
|
-
string last_name =
|
|
361
|
-
string date_of_birth =
|
|
354
|
+
string first_name = 12;
|
|
355
|
+
string middle_name = 13;
|
|
356
|
+
string last_name = 14;
|
|
357
|
+
string date_of_birth = 15;
|
|
362
358
|
|
|
363
|
-
string address_1 =
|
|
364
|
-
string address_2 =
|
|
365
|
-
string address_3 =
|
|
366
|
-
string address_4 =
|
|
367
|
-
string address_5 =
|
|
359
|
+
string address_1 = 16;
|
|
360
|
+
string address_2 = 17;
|
|
361
|
+
string address_3 = 18;
|
|
362
|
+
string address_4 = 19;
|
|
363
|
+
string address_5 = 20;
|
|
368
364
|
|
|
369
|
-
string city =
|
|
370
|
-
string state =
|
|
371
|
-
string zip =
|
|
372
|
-
string country_code =
|
|
365
|
+
string city = 21;
|
|
366
|
+
string state = 22;
|
|
367
|
+
string zip = 23;
|
|
368
|
+
string country_code = 24;
|
|
373
369
|
|
|
374
|
-
string primary_phone =
|
|
375
|
-
string other_phone =
|
|
376
|
-
string mobile_phone =
|
|
377
|
-
string mobile_carrier_id =
|
|
370
|
+
string primary_phone = 25;
|
|
371
|
+
string other_phone = 26;
|
|
372
|
+
string mobile_phone = 27;
|
|
373
|
+
string mobile_carrier_id = 28;
|
|
378
374
|
|
|
379
|
-
string email =
|
|
375
|
+
string email = 29;
|
|
380
376
|
|
|
381
|
-
string secret_question =
|
|
382
|
-
string secret_answer =
|
|
377
|
+
string secret_question = 30;
|
|
378
|
+
string secret_answer = 31;
|
|
383
379
|
|
|
384
|
-
string income_source =
|
|
385
|
-
string occupation =
|
|
380
|
+
string income_source = 32;
|
|
381
|
+
string occupation = 33;
|
|
386
382
|
|
|
387
|
-
string nationality =
|
|
388
|
-
string place_of_birth =
|
|
389
|
-
string curp =
|
|
383
|
+
string nationality = 34;
|
|
384
|
+
string place_of_birth = 35;
|
|
385
|
+
string curp = 36;
|
|
390
386
|
|
|
391
|
-
int32 political_affiliation =
|
|
387
|
+
int32 political_affiliation = 37;
|
|
392
388
|
|
|
393
|
-
string key_ref_number =
|
|
394
|
-
double monthly_income =
|
|
389
|
+
string key_ref_number = 38;
|
|
390
|
+
double monthly_income = 39;
|
|
395
391
|
|
|
396
|
-
string external_customer_id =
|
|
392
|
+
string external_customer_id = 40;
|
|
397
393
|
|
|
398
|
-
string mail_bounced =
|
|
394
|
+
string mail_bounced = 41;
|
|
399
395
|
|
|
400
|
-
string shipping_address_1 =
|
|
401
|
-
string shipping_address_2 =
|
|
402
|
-
string shipping_city =
|
|
403
|
-
string shipping_state =
|
|
404
|
-
string shipping_zip =
|
|
405
|
-
string shipping_country_code =
|
|
406
|
-
string shipping_address_permanent =
|
|
396
|
+
string shipping_address_1 = 42;
|
|
397
|
+
string shipping_address_2 = 43;
|
|
398
|
+
string shipping_city = 44;
|
|
399
|
+
string shipping_state = 45;
|
|
400
|
+
string shipping_zip = 46;
|
|
401
|
+
string shipping_country_code = 47;
|
|
402
|
+
string shipping_address_permanent = 48;
|
|
407
403
|
|
|
408
|
-
string emboss_line_2 =
|
|
409
|
-
string business_name =
|
|
404
|
+
string emboss_line_2 = 49;
|
|
405
|
+
string business_name = 50;
|
|
410
406
|
|
|
411
|
-
string mobile_phone_country_code =
|
|
407
|
+
string mobile_phone_country_code = 51;
|
|
412
408
|
}
|
|
413
409
|
|
|
414
410
|
message UpdateContractResponse {
|
|
@@ -430,10 +426,8 @@ message GetExistsCustomerResponse {
|
|
|
430
426
|
// ================== GetContractById ==================
|
|
431
427
|
message GetContractByIdRequest {
|
|
432
428
|
string customer_id = 1;
|
|
433
|
-
|
|
434
|
-
string
|
|
435
|
-
int32 id_type = 4;
|
|
436
|
-
string external_customer_id = 5;
|
|
429
|
+
int32 id_type = 2;
|
|
430
|
+
string external_customer_id = 3;
|
|
437
431
|
}
|
|
438
432
|
|
|
439
433
|
message GetContractByIdResponse {
|
|
@@ -444,8 +438,6 @@ message GetContractByIdResponse {
|
|
|
444
438
|
// ================== GetRelatedContracts ==================
|
|
445
439
|
message GetRelatedContractsRequest {
|
|
446
440
|
string contract_id = 1;
|
|
447
|
-
string provider_id = 2;
|
|
448
|
-
string transaction_id = 3;
|
|
449
441
|
}
|
|
450
442
|
|
|
451
443
|
message GetRelatedContractsResponse {
|
|
@@ -459,10 +451,8 @@ message GetRelatedContractsResponse {
|
|
|
459
451
|
// ================== VerifyContract ==================
|
|
460
452
|
message VerifyContractRequest {
|
|
461
453
|
string contract_id = 1;
|
|
462
|
-
string
|
|
463
|
-
|
|
464
|
-
string load_type = 4;
|
|
465
|
-
int32 included_related = 5;
|
|
454
|
+
string load_type = 2;
|
|
455
|
+
int32 included_related = 3;
|
|
466
456
|
}
|
|
467
457
|
|
|
468
458
|
message VerifyContractResponse {
|
|
@@ -473,13 +463,11 @@ message VerifyContractResponse {
|
|
|
473
463
|
// ================== AddContract ==================
|
|
474
464
|
message AddContractRequest {
|
|
475
465
|
string contract_id = 1;
|
|
476
|
-
|
|
477
|
-
string
|
|
478
|
-
int32
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
int32 shared_balance = 7;
|
|
482
|
-
string funding_account_number = 8;
|
|
466
|
+
int32 prod_id = 2;
|
|
467
|
+
string location = 3;
|
|
468
|
+
int32 location_type = 4;
|
|
469
|
+
int32 shared_balance = 5;
|
|
470
|
+
string funding_account_number = 6;
|
|
483
471
|
}
|
|
484
472
|
|
|
485
473
|
message AddContractResponse {
|
|
@@ -497,23 +485,21 @@ message AddContractResponse {
|
|
|
497
485
|
|
|
498
486
|
// ================== SearchContracts ==================
|
|
499
487
|
message SearchContractsRequest {
|
|
500
|
-
string
|
|
501
|
-
string
|
|
502
|
-
optional string
|
|
503
|
-
optional string
|
|
504
|
-
optional string
|
|
505
|
-
optional string
|
|
506
|
-
optional string
|
|
507
|
-
optional string
|
|
508
|
-
optional string
|
|
509
|
-
optional string
|
|
510
|
-
optional string
|
|
511
|
-
optional string
|
|
512
|
-
optional
|
|
513
|
-
optional
|
|
514
|
-
optional
|
|
515
|
-
optional int32 page = 16;
|
|
516
|
-
optional string mobile_phone_country_code = 17;
|
|
488
|
+
optional string account_number = 1;
|
|
489
|
+
optional string first_name = 2;
|
|
490
|
+
optional string middle_name = 3;
|
|
491
|
+
optional string last_name = 4;
|
|
492
|
+
optional string date_of_birth = 5;
|
|
493
|
+
optional string zip = 6;
|
|
494
|
+
optional string primary_phone = 7;
|
|
495
|
+
optional string other_phone = 8;
|
|
496
|
+
optional string mobile_phone = 9;
|
|
497
|
+
optional string email = 10;
|
|
498
|
+
optional string user_data = 11;
|
|
499
|
+
optional string eext_id = 12;
|
|
500
|
+
optional int32 record_cnt = 13;
|
|
501
|
+
optional int32 page = 14;
|
|
502
|
+
optional string mobile_phone_country_code = 15;
|
|
517
503
|
}
|
|
518
504
|
|
|
519
505
|
message SearchContractsResponse {
|
|
@@ -527,10 +513,8 @@ message SearchContractsResponse {
|
|
|
527
513
|
// ================== ChargeOffContract ==================
|
|
528
514
|
message ChargeOffContractRequest {
|
|
529
515
|
string contract_id = 1;
|
|
530
|
-
string
|
|
531
|
-
|
|
532
|
-
string charge_off_details = 4;
|
|
533
|
-
optional int32 close_associated_accounts = 5;
|
|
516
|
+
string charge_off_details = 2;
|
|
517
|
+
optional int32 close_associated_accounts = 3;
|
|
534
518
|
}
|
|
535
519
|
|
|
536
520
|
message ChargeOffContractResponse {
|
|
@@ -541,10 +525,8 @@ message ChargeOffContractResponse {
|
|
|
541
525
|
// ================== GetContractData ==================
|
|
542
526
|
message GetContractDataRequest {
|
|
543
527
|
string contract_id = 1;
|
|
544
|
-
string
|
|
545
|
-
string
|
|
546
|
-
optional string start_date = 4;
|
|
547
|
-
optional string end_date = 5;
|
|
528
|
+
optional string start_date = 2;
|
|
529
|
+
optional string end_date = 3;
|
|
548
530
|
}
|
|
549
531
|
|
|
550
532
|
message GetContractDataResponse {
|
|
@@ -565,10 +547,8 @@ message GetCustomerProfileResponse {
|
|
|
565
547
|
// ================== GetTransactions ==================
|
|
566
548
|
message GetTransactionsRequest {
|
|
567
549
|
string contract_id = 1;
|
|
568
|
-
string
|
|
569
|
-
string
|
|
570
|
-
optional string start_date = 4;
|
|
571
|
-
optional string end_date = 5;
|
|
550
|
+
optional string start_date = 2;
|
|
551
|
+
optional string end_date = 3;
|
|
572
552
|
}
|
|
573
553
|
|
|
574
554
|
message GetTransactionsResponse {
|
|
@@ -579,10 +559,8 @@ message GetTransactionsResponse {
|
|
|
579
559
|
// ================== GetAuthorizations ==================
|
|
580
560
|
message GetAuthorizationsRequest {
|
|
581
561
|
string contract_id = 1;
|
|
582
|
-
string
|
|
583
|
-
string
|
|
584
|
-
optional string start_date = 4;
|
|
585
|
-
optional string end_date = 5;
|
|
562
|
+
optional string start_date = 2;
|
|
563
|
+
optional string end_date = 3;
|
|
586
564
|
}
|
|
587
565
|
|
|
588
566
|
message GetAuthorizationsResponse {
|
|
@@ -593,10 +571,8 @@ message GetAuthorizationsResponse {
|
|
|
593
571
|
// ================== GetPendingFees ==================
|
|
594
572
|
message GetPendingFeesRequest {
|
|
595
573
|
string contract_id = 1;
|
|
596
|
-
string
|
|
597
|
-
string
|
|
598
|
-
optional string start_date = 4;
|
|
599
|
-
optional string end_date = 5;
|
|
574
|
+
optional string start_date = 2;
|
|
575
|
+
optional string end_date = 3;
|
|
600
576
|
}
|
|
601
577
|
|
|
602
578
|
message GetPendingFeesResponse {
|
|
@@ -607,10 +583,8 @@ message GetPendingFeesResponse {
|
|
|
607
583
|
// ================== GetSavingsInterest ==================
|
|
608
584
|
message GetSavingsInterestRequest {
|
|
609
585
|
string contract_id = 1;
|
|
610
|
-
string
|
|
611
|
-
string
|
|
612
|
-
optional string start_date = 4;
|
|
613
|
-
optional string end_date = 5;
|
|
586
|
+
optional string start_date = 2;
|
|
587
|
+
optional string end_date = 3;
|
|
614
588
|
}
|
|
615
589
|
|
|
616
590
|
message GetSavingsInterestResponse {
|
|
@@ -621,10 +595,8 @@ message GetSavingsInterestResponse {
|
|
|
621
595
|
// ================== GetHolds ==================
|
|
622
596
|
message GetHoldsRequest {
|
|
623
597
|
string contract_id = 1;
|
|
624
|
-
string
|
|
625
|
-
string
|
|
626
|
-
optional string start_date = 4;
|
|
627
|
-
optional string end_date = 5;
|
|
598
|
+
optional string start_date = 2;
|
|
599
|
+
optional string end_date = 3;
|
|
628
600
|
}
|
|
629
601
|
|
|
630
602
|
message GetHoldsResponse {
|