@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.
Files changed (47) hide show
  1. package/buf.gen.yaml +2 -2
  2. package/dist/generated/kapital/contracts/v1/contracts.d.ts +7 -31
  3. package/dist/generated/kapital/contracts/v1/contracts.js +338 -615
  4. package/dist/generated/kapital/contracts/v1/contracts.js.map +1 -1
  5. package/dist/generated/kapital/contracts/v1/contracts_types.d.ts +5 -0
  6. package/dist/generated/kapital/contracts/v1/contracts_types.js +53 -1
  7. package/dist/generated/kapital/contracts/v1/contracts_types.js.map +1 -1
  8. package/dist/generated/kapital/customers/v1/customers_types.d.ts +2 -0
  9. package/dist/generated/kapital/customers/v1/customers_types.js +24 -0
  10. package/dist/generated/kapital/customers/v1/customers_types.js.map +1 -1
  11. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.d.ts +5 -5
  12. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js.map +1 -1
  13. package/dist/generated/kapital/payments/v1/payments.d.ts +0 -4
  14. package/dist/generated/kapital/payments/v1/payments.js +77 -132
  15. package/dist/generated/kapital/payments/v1/payments.js.map +1 -1
  16. package/dist/generated/kapital/payments_methods/v1/payments_methods.d.ts +12 -0
  17. package/dist/generated/kapital/payments_methods/v1/payments_methods.js +138 -1
  18. package/dist/generated/kapital/payments_methods/v1/payments_methods.js.map +1 -1
  19. package/dist/generated/kapital/payments_methods/v1/payments_methods_types.d.ts +1 -0
  20. package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js +12 -0
  21. package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js.map +1 -1
  22. package/dist/generated/kapital/transactions/v1/transactions.d.ts +0 -2
  23. package/dist/generated/kapital/transactions/v1/transactions.js +20 -50
  24. package/dist/generated/kapital/transactions/v1/transactions.js.map +1 -1
  25. package/package.json +1 -1
  26. package/proto/kapital/accounts/v1/accounts.proto +80 -80
  27. package/proto/kapital/accounts/v1/accounts_types.proto +31 -31
  28. package/proto/kapital/accumulates/v1/accumulates_service.proto +81 -81
  29. package/proto/kapital/accumulates/v1/accumulates_types.proto +30 -30
  30. package/proto/kapital/cards/v1/cards.proto +32 -32
  31. package/proto/kapital/cards/v1/cards_types.proto +33 -33
  32. package/proto/kapital/commissions/v1/commissions.proto +69 -69
  33. package/proto/kapital/commissions/v1/commissions_types.proto +21 -21
  34. package/proto/kapital/common/v1/error.proto +18 -18
  35. package/proto/kapital/common/v1/meta.proto +13 -13
  36. package/proto/kapital/common/v1/pagination.proto +18 -18
  37. package/proto/kapital/contracts/v1/contracts.proto +133 -161
  38. package/proto/kapital/contracts/v1/contracts_types.proto +5 -0
  39. package/proto/kapital/customers/v1/customers_types.proto +2 -0
  40. package/proto/kapital/offers/v1/offers.proto +111 -111
  41. package/proto/kapital/offers/v1/offers_types.proto +54 -54
  42. package/proto/kapital/payments/v1/payments.proto +34 -38
  43. package/proto/kapital/payments/v1/payments_types.proto +17 -17
  44. package/proto/kapital/product_groups/v1/product_groups.proto +150 -150
  45. package/proto/kapital/product_groups/v1/product_groups_types.proto +48 -48
  46. package/proto/kapital/transactions/v1/transactions.proto +9 -11
  47. 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
- string card_number_virtual = 6;
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 = 3;
200
+ int32 prod_id = 1;
203
201
 
204
- int32 id_type = 4;
205
- string id = 5;
202
+ int32 id_type = 2;
203
+ string id = 3;
206
204
 
207
- int32 id_type_2 = 6;
208
- string id_2 = 7;
205
+ int32 id_type_2 = 4;
206
+ string id_2 = 5;
209
207
 
210
- string locale = 8;
208
+ string locale = 6;
211
209
 
212
- string first_name = 9;
213
- string middle_name = 10;
214
- string last_name = 11;
215
- string date_of_birth = 12;
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 = 13;
218
- string address_2 = 14;
219
- string address_3 = 15;
220
- string address_4 = 16;
221
- string address_5 = 17;
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 = 18;
224
- string state = 19;
225
- string zip = 20;
226
- string country_code = 21;
221
+ string city = 16;
222
+ string state = 17;
223
+ string zip = 18;
224
+ string country_code = 19;
227
225
 
228
- string primary_phone = 22;
229
- string other_phone = 23;
230
- string mobile_phone = 24;
231
- string mobile_carrier_id = 25;
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 = 26;
231
+ string email = 24;
234
232
 
235
- string secret_question = 27;
236
- string secret_answer = 28;
233
+ string secret_question = 25;
234
+ string secret_answer = 26;
237
235
 
238
- double load_amount = 29;
239
- string load_type = 30;
236
+ double load_amount = 27;
237
+ string load_type = 28;
240
238
 
241
- string external_account_id = 31;
242
- string primary_account = 32;
239
+ string external_account_id = 29;
240
+ string primary_account = 30;
243
241
 
244
- int32 shared_balance = 33;
242
+ int32 shared_balance = 31;
245
243
 
246
- string user_data = 34;
244
+ string user_data = 32;
247
245
 
248
- int32 verify_only = 35;
246
+ int32 verify_only = 33;
249
247
 
250
- string load_from_account = 36;
251
- string sweep_date = 37;
248
+ string load_from_account = 34;
249
+ string sweep_date = 35;
252
250
 
253
- double credit_limit = 38;
251
+ double credit_limit = 36;
254
252
 
255
- string single_use = 39;
253
+ string single_use = 37;
256
254
 
257
- string business_name = 40;
255
+ string business_name = 38;
258
256
 
259
- string mobile_phone_country_code = 41;
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 = 4;
344
- string id = 5;
339
+ int32 id_type = 2;
340
+ string id = 3;
345
341
 
346
- int32 id_type_2 = 6;
347
- string id_2 = 7;
342
+ int32 id_type_2 = 4;
343
+ string id_2 = 5;
348
344
 
349
- int32 id_type_3 = 8;
350
- string id_3 = 9;
345
+ int32 id_type_3 = 6;
346
+ string id_3 = 7;
351
347
 
352
- int32 location_type = 10;
353
- string location = 11;
354
- string locale = 12;
348
+ int32 location_type = 8;
349
+ string location = 9;
350
+ string locale = 10;
355
351
 
356
- string external_account_id = 13;
352
+ string external_account_id = 11;
357
353
 
358
- string first_name = 14;
359
- string middle_name = 15;
360
- string last_name = 16;
361
- string date_of_birth = 17;
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 = 18;
364
- string address_2 = 19;
365
- string address_3 = 20;
366
- string address_4 = 21;
367
- string address_5 = 22;
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 = 23;
370
- string state = 24;
371
- string zip = 25;
372
- string country_code = 26;
365
+ string city = 21;
366
+ string state = 22;
367
+ string zip = 23;
368
+ string country_code = 24;
373
369
 
374
- string primary_phone = 27;
375
- string other_phone = 28;
376
- string mobile_phone = 29;
377
- string mobile_carrier_id = 30;
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 = 31;
375
+ string email = 29;
380
376
 
381
- string secret_question = 32;
382
- string secret_answer = 33;
377
+ string secret_question = 30;
378
+ string secret_answer = 31;
383
379
 
384
- string income_source = 34;
385
- string occupation = 35;
380
+ string income_source = 32;
381
+ string occupation = 33;
386
382
 
387
- string nationality = 36;
388
- string place_of_birth = 37;
389
- string curp = 38;
383
+ string nationality = 34;
384
+ string place_of_birth = 35;
385
+ string curp = 36;
390
386
 
391
- int32 political_affiliation = 39;
387
+ int32 political_affiliation = 37;
392
388
 
393
- string key_ref_number = 40;
394
- double monthly_income = 41;
389
+ string key_ref_number = 38;
390
+ double monthly_income = 39;
395
391
 
396
- string external_customer_id = 42;
392
+ string external_customer_id = 40;
397
393
 
398
- string mail_bounced = 43;
394
+ string mail_bounced = 41;
399
395
 
400
- string shipping_address_1 = 44;
401
- string shipping_address_2 = 45;
402
- string shipping_city = 46;
403
- string shipping_state = 47;
404
- string shipping_zip = 48;
405
- string shipping_country_code = 49;
406
- string shipping_address_permanent = 50;
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 = 51;
409
- string business_name = 52;
404
+ string emboss_line_2 = 49;
405
+ string business_name = 50;
410
406
 
411
- string mobile_phone_country_code = 53;
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
- string provider_id = 2;
434
- string transaction_id = 3;
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 provider_id = 2;
463
- string transaction_id = 3;
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
- string provider_id = 2;
477
- string transaction_id = 3;
478
- int32 prod_id = 4;
479
- string location = 5;
480
- int32 location_type = 6;
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 provider_id = 1;
501
- string transaction_id = 2;
502
- optional string account_number = 3;
503
- optional string first_name = 4;
504
- optional string middle_name = 5;
505
- optional string last_name = 6;
506
- optional string date_of_birth = 7;
507
- optional string zip = 8;
508
- optional string primary_phone = 9;
509
- optional string other_phone = 10;
510
- optional string mobile_phone = 11;
511
- optional string email = 12;
512
- optional string user_data = 13;
513
- optional string eext_id = 14;
514
- optional int32 record_cnt = 15;
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 provider_id = 2;
531
- string transaction_id = 3;
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 provider_id = 2;
545
- string transaction_id = 3;
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 provider_id = 2;
569
- string transaction_id = 3;
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 provider_id = 2;
583
- string transaction_id = 3;
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 provider_id = 2;
597
- string transaction_id = 3;
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 provider_id = 2;
611
- string transaction_id = 3;
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 provider_id = 2;
625
- string transaction_id = 3;
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 {
@@ -33,6 +33,11 @@ message CIPFull {
33
33
  string customer_id = 14;
34
34
  }
35
35
 
36
+ message CardInfo {
37
+ string card_number = 1;
38
+ string card_status = 2;
39
+ }
40
+
36
41
  // ================== CreateVirtualCardContract ==================
37
42
  message CIP {
38
43
  string status = 1;
@@ -25,6 +25,8 @@ message Customer {
25
25
  string birthdate = 18;
26
26
  int32 total_contracts = 19;
27
27
  int32 active_cards_count = 20;
28
+ string channel = 21;
29
+ string channel_value = 22;
28
30
  }
29
31
 
30
32
  message ContractBalance {