@stashfin/grpc 1.2.632 → 1.2.633

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.
@@ -0,0 +1,1150 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v5.29.3
6
+ // source: loans/getlocdetails.proto
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.GetLocDetailsResponse = exports.GetLocDetailsRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "loans.getlocdetails";
15
+ function createBaseGetLocDetailsRequest() {
16
+ return {};
17
+ }
18
+ exports.GetLocDetailsRequest = {
19
+ encode(_, writer = minimal_1.default.Writer.create()) {
20
+ return writer;
21
+ },
22
+ decode(input, length) {
23
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
24
+ let end = length === undefined ? reader.len : reader.pos + length;
25
+ const message = createBaseGetLocDetailsRequest();
26
+ while (reader.pos < end) {
27
+ const tag = reader.uint32();
28
+ switch (tag >>> 3) {
29
+ }
30
+ if ((tag & 7) === 4 || tag === 0) {
31
+ break;
32
+ }
33
+ reader.skipType(tag & 7);
34
+ }
35
+ return message;
36
+ },
37
+ fromJSON(_) {
38
+ return {};
39
+ },
40
+ toJSON(_) {
41
+ const obj = {};
42
+ return obj;
43
+ },
44
+ create(base) {
45
+ return exports.GetLocDetailsRequest.fromPartial(base ?? {});
46
+ },
47
+ fromPartial(_) {
48
+ const message = createBaseGetLocDetailsRequest();
49
+ return message;
50
+ },
51
+ };
52
+ function createBaseGetLocDetailsResponse() {
53
+ return {
54
+ matched: false,
55
+ requested_amount: 0,
56
+ tenure: 0,
57
+ emi_amount: 0,
58
+ net_amount_payable: 0,
59
+ first_emi_date: "",
60
+ emi_date: "",
61
+ final_disbursal_amount: 0,
62
+ upfront_interest: 0,
63
+ approved_amount: 0,
64
+ processing_fees: 0,
65
+ gst: 0,
66
+ loan_id: "",
67
+ rate_of_interest: 0,
68
+ bill_amount: undefined,
69
+ early_foreclosure_fees: 0,
70
+ convenience_fees: 0,
71
+ total_interest_pay: 0,
72
+ effective_annual_rate: 0,
73
+ transaction_rate: 0,
74
+ transaction_fee_amount: 0,
75
+ emi_date_l: "",
76
+ emi_amount_l: "",
77
+ first_emi_date_l: "",
78
+ final_disbursal_amount_l: "",
79
+ upfront_interest_l: "",
80
+ processing_fees_l: "",
81
+ gst_l: "",
82
+ rate_of_interest_l: "",
83
+ trans_fee_plus_gst: 0,
84
+ processing_fee_plus_gst: 0,
85
+ bill_amount_l: "",
86
+ early_foreclosure_fees_l: "",
87
+ convenience_fees_l: "",
88
+ total_interest_pay_l: 0,
89
+ effective_annual_rate_l: "",
90
+ trans_fee_plus_gst_l: 0,
91
+ processing_fee_plus_gst_l: 0,
92
+ max_amount_l: "",
93
+ credit_report_fees_l: "",
94
+ fee_and_charges_l: "",
95
+ fee_and_charges: 0,
96
+ add_on_l: "",
97
+ total_loan_amount_l: "",
98
+ loan_amount_l: "",
99
+ disbursed_amount_l: "",
100
+ total_payable_amount_l: "",
101
+ disbursal_amount_l: "",
102
+ fcp_interest: 0,
103
+ number_of_emi_l: "",
104
+ first_emi_amt_l: "",
105
+ subsequent_emi_l: "",
106
+ effective_roi: 0,
107
+ effective_roi_l: "",
108
+ effective_annual_roi: 0,
109
+ effective_annual_roi_l: "",
110
+ insurance_l: "",
111
+ emi_card_description: "",
112
+ bill_card_description: "",
113
+ installment_amounts: "",
114
+ apr_title: "",
115
+ apr_value: "",
116
+ apr_type: "",
117
+ credit_line_details_sheet: "",
118
+ Acknowledgement: "",
119
+ payment_undertaking: "",
120
+ key_fact_statement: "",
121
+ sanction_letter: "",
122
+ financing_documents: "",
123
+ };
124
+ }
125
+ exports.GetLocDetailsResponse = {
126
+ encode(message, writer = minimal_1.default.Writer.create()) {
127
+ if (message.matched !== false) {
128
+ writer.uint32(8).bool(message.matched);
129
+ }
130
+ if (message.requested_amount !== 0) {
131
+ writer.uint32(16).int32(message.requested_amount);
132
+ }
133
+ if (message.tenure !== 0) {
134
+ writer.uint32(24).int32(message.tenure);
135
+ }
136
+ if (message.emi_amount !== 0) {
137
+ writer.uint32(32).int32(message.emi_amount);
138
+ }
139
+ if (message.net_amount_payable !== 0) {
140
+ writer.uint32(40).int32(message.net_amount_payable);
141
+ }
142
+ if (message.first_emi_date !== "") {
143
+ writer.uint32(50).string(message.first_emi_date);
144
+ }
145
+ if (message.emi_date !== "") {
146
+ writer.uint32(58).string(message.emi_date);
147
+ }
148
+ if (message.final_disbursal_amount !== 0) {
149
+ writer.uint32(64).int32(message.final_disbursal_amount);
150
+ }
151
+ if (message.upfront_interest !== 0) {
152
+ writer.uint32(72).int32(message.upfront_interest);
153
+ }
154
+ if (message.approved_amount !== 0) {
155
+ writer.uint32(80).int32(message.approved_amount);
156
+ }
157
+ if (message.processing_fees !== 0) {
158
+ writer.uint32(88).int32(message.processing_fees);
159
+ }
160
+ if (message.gst !== 0) {
161
+ writer.uint32(96).int32(message.gst);
162
+ }
163
+ if (message.loan_id !== "") {
164
+ writer.uint32(106).string(message.loan_id);
165
+ }
166
+ if (message.rate_of_interest !== 0) {
167
+ writer.uint32(117).float(message.rate_of_interest);
168
+ }
169
+ if (message.bill_amount !== undefined) {
170
+ writer.uint32(122).string(message.bill_amount);
171
+ }
172
+ if (message.early_foreclosure_fees !== 0) {
173
+ writer.uint32(128).int32(message.early_foreclosure_fees);
174
+ }
175
+ if (message.convenience_fees !== 0) {
176
+ writer.uint32(136).int32(message.convenience_fees);
177
+ }
178
+ if (message.total_interest_pay !== 0) {
179
+ writer.uint32(144).int32(message.total_interest_pay);
180
+ }
181
+ if (message.effective_annual_rate !== 0) {
182
+ writer.uint32(157).float(message.effective_annual_rate);
183
+ }
184
+ if (message.transaction_rate !== 0) {
185
+ writer.uint32(165).float(message.transaction_rate);
186
+ }
187
+ if (message.transaction_fee_amount !== 0) {
188
+ writer.uint32(168).int32(message.transaction_fee_amount);
189
+ }
190
+ if (message.emi_date_l !== "") {
191
+ writer.uint32(178).string(message.emi_date_l);
192
+ }
193
+ if (message.emi_amount_l !== "") {
194
+ writer.uint32(186).string(message.emi_amount_l);
195
+ }
196
+ if (message.first_emi_date_l !== "") {
197
+ writer.uint32(194).string(message.first_emi_date_l);
198
+ }
199
+ if (message.final_disbursal_amount_l !== "") {
200
+ writer.uint32(202).string(message.final_disbursal_amount_l);
201
+ }
202
+ if (message.upfront_interest_l !== "") {
203
+ writer.uint32(210).string(message.upfront_interest_l);
204
+ }
205
+ if (message.processing_fees_l !== "") {
206
+ writer.uint32(218).string(message.processing_fees_l);
207
+ }
208
+ if (message.gst_l !== "") {
209
+ writer.uint32(226).string(message.gst_l);
210
+ }
211
+ if (message.rate_of_interest_l !== "") {
212
+ writer.uint32(234).string(message.rate_of_interest_l);
213
+ }
214
+ if (message.trans_fee_plus_gst !== 0) {
215
+ writer.uint32(240).int32(message.trans_fee_plus_gst);
216
+ }
217
+ if (message.processing_fee_plus_gst !== 0) {
218
+ writer.uint32(248).int32(message.processing_fee_plus_gst);
219
+ }
220
+ if (message.bill_amount_l !== "") {
221
+ writer.uint32(258).string(message.bill_amount_l);
222
+ }
223
+ if (message.early_foreclosure_fees_l !== "") {
224
+ writer.uint32(266).string(message.early_foreclosure_fees_l);
225
+ }
226
+ if (message.convenience_fees_l !== "") {
227
+ writer.uint32(274).string(message.convenience_fees_l);
228
+ }
229
+ if (message.total_interest_pay_l !== 0) {
230
+ writer.uint32(280).int32(message.total_interest_pay_l);
231
+ }
232
+ if (message.effective_annual_rate_l !== "") {
233
+ writer.uint32(290).string(message.effective_annual_rate_l);
234
+ }
235
+ if (message.trans_fee_plus_gst_l !== 0) {
236
+ writer.uint32(296).int32(message.trans_fee_plus_gst_l);
237
+ }
238
+ if (message.processing_fee_plus_gst_l !== 0) {
239
+ writer.uint32(304).int32(message.processing_fee_plus_gst_l);
240
+ }
241
+ if (message.max_amount_l !== "") {
242
+ writer.uint32(314).string(message.max_amount_l);
243
+ }
244
+ if (message.credit_report_fees_l !== "") {
245
+ writer.uint32(322).string(message.credit_report_fees_l);
246
+ }
247
+ if (message.fee_and_charges_l !== "") {
248
+ writer.uint32(330).string(message.fee_and_charges_l);
249
+ }
250
+ if (message.fee_and_charges !== 0) {
251
+ writer.uint32(336).int32(message.fee_and_charges);
252
+ }
253
+ if (message.add_on_l !== "") {
254
+ writer.uint32(346).string(message.add_on_l);
255
+ }
256
+ if (message.total_loan_amount_l !== "") {
257
+ writer.uint32(354).string(message.total_loan_amount_l);
258
+ }
259
+ if (message.loan_amount_l !== "") {
260
+ writer.uint32(362).string(message.loan_amount_l);
261
+ }
262
+ if (message.disbursed_amount_l !== "") {
263
+ writer.uint32(370).string(message.disbursed_amount_l);
264
+ }
265
+ if (message.total_payable_amount_l !== "") {
266
+ writer.uint32(378).string(message.total_payable_amount_l);
267
+ }
268
+ if (message.disbursal_amount_l !== "") {
269
+ writer.uint32(386).string(message.disbursal_amount_l);
270
+ }
271
+ if (message.fcp_interest !== 0) {
272
+ writer.uint32(392).int32(message.fcp_interest);
273
+ }
274
+ if (message.number_of_emi_l !== "") {
275
+ writer.uint32(402).string(message.number_of_emi_l);
276
+ }
277
+ if (message.first_emi_amt_l !== "") {
278
+ writer.uint32(410).string(message.first_emi_amt_l);
279
+ }
280
+ if (message.subsequent_emi_l !== "") {
281
+ writer.uint32(418).string(message.subsequent_emi_l);
282
+ }
283
+ if (message.effective_roi !== 0) {
284
+ writer.uint32(429).float(message.effective_roi);
285
+ }
286
+ if (message.effective_roi_l !== "") {
287
+ writer.uint32(434).string(message.effective_roi_l);
288
+ }
289
+ if (message.effective_annual_roi !== 0) {
290
+ writer.uint32(445).float(message.effective_annual_roi);
291
+ }
292
+ if (message.effective_annual_roi_l !== "") {
293
+ writer.uint32(450).string(message.effective_annual_roi_l);
294
+ }
295
+ if (message.insurance_l !== "") {
296
+ writer.uint32(458).string(message.insurance_l);
297
+ }
298
+ if (message.emi_card_description !== "") {
299
+ writer.uint32(466).string(message.emi_card_description);
300
+ }
301
+ if (message.bill_card_description !== "") {
302
+ writer.uint32(474).string(message.bill_card_description);
303
+ }
304
+ if (message.installment_amounts !== "") {
305
+ writer.uint32(482).string(message.installment_amounts);
306
+ }
307
+ if (message.apr_title !== "") {
308
+ writer.uint32(490).string(message.apr_title);
309
+ }
310
+ if (message.apr_value !== "") {
311
+ writer.uint32(498).string(message.apr_value);
312
+ }
313
+ if (message.apr_type !== "") {
314
+ writer.uint32(506).string(message.apr_type);
315
+ }
316
+ if (message.credit_line_details_sheet !== "") {
317
+ writer.uint32(514).string(message.credit_line_details_sheet);
318
+ }
319
+ if (message.Acknowledgement !== "") {
320
+ writer.uint32(522).string(message.Acknowledgement);
321
+ }
322
+ if (message.payment_undertaking !== "") {
323
+ writer.uint32(530).string(message.payment_undertaking);
324
+ }
325
+ if (message.key_fact_statement !== "") {
326
+ writer.uint32(538).string(message.key_fact_statement);
327
+ }
328
+ if (message.sanction_letter !== "") {
329
+ writer.uint32(546).string(message.sanction_letter);
330
+ }
331
+ if (message.financing_documents !== "") {
332
+ writer.uint32(554).string(message.financing_documents);
333
+ }
334
+ return writer;
335
+ },
336
+ decode(input, length) {
337
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
338
+ let end = length === undefined ? reader.len : reader.pos + length;
339
+ const message = createBaseGetLocDetailsResponse();
340
+ while (reader.pos < end) {
341
+ const tag = reader.uint32();
342
+ switch (tag >>> 3) {
343
+ case 1:
344
+ if (tag !== 8) {
345
+ break;
346
+ }
347
+ message.matched = reader.bool();
348
+ continue;
349
+ case 2:
350
+ if (tag !== 16) {
351
+ break;
352
+ }
353
+ message.requested_amount = reader.int32();
354
+ continue;
355
+ case 3:
356
+ if (tag !== 24) {
357
+ break;
358
+ }
359
+ message.tenure = reader.int32();
360
+ continue;
361
+ case 4:
362
+ if (tag !== 32) {
363
+ break;
364
+ }
365
+ message.emi_amount = reader.int32();
366
+ continue;
367
+ case 5:
368
+ if (tag !== 40) {
369
+ break;
370
+ }
371
+ message.net_amount_payable = reader.int32();
372
+ continue;
373
+ case 6:
374
+ if (tag !== 50) {
375
+ break;
376
+ }
377
+ message.first_emi_date = reader.string();
378
+ continue;
379
+ case 7:
380
+ if (tag !== 58) {
381
+ break;
382
+ }
383
+ message.emi_date = reader.string();
384
+ continue;
385
+ case 8:
386
+ if (tag !== 64) {
387
+ break;
388
+ }
389
+ message.final_disbursal_amount = reader.int32();
390
+ continue;
391
+ case 9:
392
+ if (tag !== 72) {
393
+ break;
394
+ }
395
+ message.upfront_interest = reader.int32();
396
+ continue;
397
+ case 10:
398
+ if (tag !== 80) {
399
+ break;
400
+ }
401
+ message.approved_amount = reader.int32();
402
+ continue;
403
+ case 11:
404
+ if (tag !== 88) {
405
+ break;
406
+ }
407
+ message.processing_fees = reader.int32();
408
+ continue;
409
+ case 12:
410
+ if (tag !== 96) {
411
+ break;
412
+ }
413
+ message.gst = reader.int32();
414
+ continue;
415
+ case 13:
416
+ if (tag !== 106) {
417
+ break;
418
+ }
419
+ message.loan_id = reader.string();
420
+ continue;
421
+ case 14:
422
+ if (tag !== 117) {
423
+ break;
424
+ }
425
+ message.rate_of_interest = reader.float();
426
+ continue;
427
+ case 15:
428
+ if (tag !== 122) {
429
+ break;
430
+ }
431
+ message.bill_amount = reader.string();
432
+ continue;
433
+ case 16:
434
+ if (tag !== 128) {
435
+ break;
436
+ }
437
+ message.early_foreclosure_fees = reader.int32();
438
+ continue;
439
+ case 17:
440
+ if (tag !== 136) {
441
+ break;
442
+ }
443
+ message.convenience_fees = reader.int32();
444
+ continue;
445
+ case 18:
446
+ if (tag !== 144) {
447
+ break;
448
+ }
449
+ message.total_interest_pay = reader.int32();
450
+ continue;
451
+ case 19:
452
+ if (tag !== 157) {
453
+ break;
454
+ }
455
+ message.effective_annual_rate = reader.float();
456
+ continue;
457
+ case 20:
458
+ if (tag !== 165) {
459
+ break;
460
+ }
461
+ message.transaction_rate = reader.float();
462
+ continue;
463
+ case 21:
464
+ if (tag !== 168) {
465
+ break;
466
+ }
467
+ message.transaction_fee_amount = reader.int32();
468
+ continue;
469
+ case 22:
470
+ if (tag !== 178) {
471
+ break;
472
+ }
473
+ message.emi_date_l = reader.string();
474
+ continue;
475
+ case 23:
476
+ if (tag !== 186) {
477
+ break;
478
+ }
479
+ message.emi_amount_l = reader.string();
480
+ continue;
481
+ case 24:
482
+ if (tag !== 194) {
483
+ break;
484
+ }
485
+ message.first_emi_date_l = reader.string();
486
+ continue;
487
+ case 25:
488
+ if (tag !== 202) {
489
+ break;
490
+ }
491
+ message.final_disbursal_amount_l = reader.string();
492
+ continue;
493
+ case 26:
494
+ if (tag !== 210) {
495
+ break;
496
+ }
497
+ message.upfront_interest_l = reader.string();
498
+ continue;
499
+ case 27:
500
+ if (tag !== 218) {
501
+ break;
502
+ }
503
+ message.processing_fees_l = reader.string();
504
+ continue;
505
+ case 28:
506
+ if (tag !== 226) {
507
+ break;
508
+ }
509
+ message.gst_l = reader.string();
510
+ continue;
511
+ case 29:
512
+ if (tag !== 234) {
513
+ break;
514
+ }
515
+ message.rate_of_interest_l = reader.string();
516
+ continue;
517
+ case 30:
518
+ if (tag !== 240) {
519
+ break;
520
+ }
521
+ message.trans_fee_plus_gst = reader.int32();
522
+ continue;
523
+ case 31:
524
+ if (tag !== 248) {
525
+ break;
526
+ }
527
+ message.processing_fee_plus_gst = reader.int32();
528
+ continue;
529
+ case 32:
530
+ if (tag !== 258) {
531
+ break;
532
+ }
533
+ message.bill_amount_l = reader.string();
534
+ continue;
535
+ case 33:
536
+ if (tag !== 266) {
537
+ break;
538
+ }
539
+ message.early_foreclosure_fees_l = reader.string();
540
+ continue;
541
+ case 34:
542
+ if (tag !== 274) {
543
+ break;
544
+ }
545
+ message.convenience_fees_l = reader.string();
546
+ continue;
547
+ case 35:
548
+ if (tag !== 280) {
549
+ break;
550
+ }
551
+ message.total_interest_pay_l = reader.int32();
552
+ continue;
553
+ case 36:
554
+ if (tag !== 290) {
555
+ break;
556
+ }
557
+ message.effective_annual_rate_l = reader.string();
558
+ continue;
559
+ case 37:
560
+ if (tag !== 296) {
561
+ break;
562
+ }
563
+ message.trans_fee_plus_gst_l = reader.int32();
564
+ continue;
565
+ case 38:
566
+ if (tag !== 304) {
567
+ break;
568
+ }
569
+ message.processing_fee_plus_gst_l = reader.int32();
570
+ continue;
571
+ case 39:
572
+ if (tag !== 314) {
573
+ break;
574
+ }
575
+ message.max_amount_l = reader.string();
576
+ continue;
577
+ case 40:
578
+ if (tag !== 322) {
579
+ break;
580
+ }
581
+ message.credit_report_fees_l = reader.string();
582
+ continue;
583
+ case 41:
584
+ if (tag !== 330) {
585
+ break;
586
+ }
587
+ message.fee_and_charges_l = reader.string();
588
+ continue;
589
+ case 42:
590
+ if (tag !== 336) {
591
+ break;
592
+ }
593
+ message.fee_and_charges = reader.int32();
594
+ continue;
595
+ case 43:
596
+ if (tag !== 346) {
597
+ break;
598
+ }
599
+ message.add_on_l = reader.string();
600
+ continue;
601
+ case 44:
602
+ if (tag !== 354) {
603
+ break;
604
+ }
605
+ message.total_loan_amount_l = reader.string();
606
+ continue;
607
+ case 45:
608
+ if (tag !== 362) {
609
+ break;
610
+ }
611
+ message.loan_amount_l = reader.string();
612
+ continue;
613
+ case 46:
614
+ if (tag !== 370) {
615
+ break;
616
+ }
617
+ message.disbursed_amount_l = reader.string();
618
+ continue;
619
+ case 47:
620
+ if (tag !== 378) {
621
+ break;
622
+ }
623
+ message.total_payable_amount_l = reader.string();
624
+ continue;
625
+ case 48:
626
+ if (tag !== 386) {
627
+ break;
628
+ }
629
+ message.disbursal_amount_l = reader.string();
630
+ continue;
631
+ case 49:
632
+ if (tag !== 392) {
633
+ break;
634
+ }
635
+ message.fcp_interest = reader.int32();
636
+ continue;
637
+ case 50:
638
+ if (tag !== 402) {
639
+ break;
640
+ }
641
+ message.number_of_emi_l = reader.string();
642
+ continue;
643
+ case 51:
644
+ if (tag !== 410) {
645
+ break;
646
+ }
647
+ message.first_emi_amt_l = reader.string();
648
+ continue;
649
+ case 52:
650
+ if (tag !== 418) {
651
+ break;
652
+ }
653
+ message.subsequent_emi_l = reader.string();
654
+ continue;
655
+ case 53:
656
+ if (tag !== 429) {
657
+ break;
658
+ }
659
+ message.effective_roi = reader.float();
660
+ continue;
661
+ case 54:
662
+ if (tag !== 434) {
663
+ break;
664
+ }
665
+ message.effective_roi_l = reader.string();
666
+ continue;
667
+ case 55:
668
+ if (tag !== 445) {
669
+ break;
670
+ }
671
+ message.effective_annual_roi = reader.float();
672
+ continue;
673
+ case 56:
674
+ if (tag !== 450) {
675
+ break;
676
+ }
677
+ message.effective_annual_roi_l = reader.string();
678
+ continue;
679
+ case 57:
680
+ if (tag !== 458) {
681
+ break;
682
+ }
683
+ message.insurance_l = reader.string();
684
+ continue;
685
+ case 58:
686
+ if (tag !== 466) {
687
+ break;
688
+ }
689
+ message.emi_card_description = reader.string();
690
+ continue;
691
+ case 59:
692
+ if (tag !== 474) {
693
+ break;
694
+ }
695
+ message.bill_card_description = reader.string();
696
+ continue;
697
+ case 60:
698
+ if (tag !== 482) {
699
+ break;
700
+ }
701
+ message.installment_amounts = reader.string();
702
+ continue;
703
+ case 61:
704
+ if (tag !== 490) {
705
+ break;
706
+ }
707
+ message.apr_title = reader.string();
708
+ continue;
709
+ case 62:
710
+ if (tag !== 498) {
711
+ break;
712
+ }
713
+ message.apr_value = reader.string();
714
+ continue;
715
+ case 63:
716
+ if (tag !== 506) {
717
+ break;
718
+ }
719
+ message.apr_type = reader.string();
720
+ continue;
721
+ case 64:
722
+ if (tag !== 514) {
723
+ break;
724
+ }
725
+ message.credit_line_details_sheet = reader.string();
726
+ continue;
727
+ case 65:
728
+ if (tag !== 522) {
729
+ break;
730
+ }
731
+ message.Acknowledgement = reader.string();
732
+ continue;
733
+ case 66:
734
+ if (tag !== 530) {
735
+ break;
736
+ }
737
+ message.payment_undertaking = reader.string();
738
+ continue;
739
+ case 67:
740
+ if (tag !== 538) {
741
+ break;
742
+ }
743
+ message.key_fact_statement = reader.string();
744
+ continue;
745
+ case 68:
746
+ if (tag !== 546) {
747
+ break;
748
+ }
749
+ message.sanction_letter = reader.string();
750
+ continue;
751
+ case 69:
752
+ if (tag !== 554) {
753
+ break;
754
+ }
755
+ message.financing_documents = reader.string();
756
+ continue;
757
+ }
758
+ if ((tag & 7) === 4 || tag === 0) {
759
+ break;
760
+ }
761
+ reader.skipType(tag & 7);
762
+ }
763
+ return message;
764
+ },
765
+ fromJSON(object) {
766
+ return {
767
+ matched: isSet(object.matched) ? globalThis.Boolean(object.matched) : false,
768
+ requested_amount: isSet(object.requested_amount) ? globalThis.Number(object.requested_amount) : 0,
769
+ tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
770
+ emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : 0,
771
+ net_amount_payable: isSet(object.net_amount_payable) ? globalThis.Number(object.net_amount_payable) : 0,
772
+ first_emi_date: isSet(object.first_emi_date) ? globalThis.String(object.first_emi_date) : "",
773
+ emi_date: isSet(object.emi_date) ? globalThis.String(object.emi_date) : "",
774
+ final_disbursal_amount: isSet(object.final_disbursal_amount)
775
+ ? globalThis.Number(object.final_disbursal_amount)
776
+ : 0,
777
+ upfront_interest: isSet(object.upfront_interest) ? globalThis.Number(object.upfront_interest) : 0,
778
+ approved_amount: isSet(object.approved_amount) ? globalThis.Number(object.approved_amount) : 0,
779
+ processing_fees: isSet(object.processing_fees) ? globalThis.Number(object.processing_fees) : 0,
780
+ gst: isSet(object.gst) ? globalThis.Number(object.gst) : 0,
781
+ loan_id: isSet(object.loan_id) ? globalThis.String(object.loan_id) : "",
782
+ rate_of_interest: isSet(object.rate_of_interest) ? globalThis.Number(object.rate_of_interest) : 0,
783
+ bill_amount: isSet(object.bill_amount) ? globalThis.String(object.bill_amount) : undefined,
784
+ early_foreclosure_fees: isSet(object.early_foreclosure_fees)
785
+ ? globalThis.Number(object.early_foreclosure_fees)
786
+ : 0,
787
+ convenience_fees: isSet(object.convenience_fees) ? globalThis.Number(object.convenience_fees) : 0,
788
+ total_interest_pay: isSet(object.total_interest_pay) ? globalThis.Number(object.total_interest_pay) : 0,
789
+ effective_annual_rate: isSet(object.effective_annual_rate) ? globalThis.Number(object.effective_annual_rate) : 0,
790
+ transaction_rate: isSet(object.transaction_rate) ? globalThis.Number(object.transaction_rate) : 0,
791
+ transaction_fee_amount: isSet(object.transaction_fee_amount)
792
+ ? globalThis.Number(object.transaction_fee_amount)
793
+ : 0,
794
+ emi_date_l: isSet(object.emi_date_l) ? globalThis.String(object.emi_date_l) : "",
795
+ emi_amount_l: isSet(object.emi_amount_l) ? globalThis.String(object.emi_amount_l) : "",
796
+ first_emi_date_l: isSet(object.first_emi_date_l) ? globalThis.String(object.first_emi_date_l) : "",
797
+ final_disbursal_amount_l: isSet(object.final_disbursal_amount_l)
798
+ ? globalThis.String(object.final_disbursal_amount_l)
799
+ : "",
800
+ upfront_interest_l: isSet(object.upfront_interest_l) ? globalThis.String(object.upfront_interest_l) : "",
801
+ processing_fees_l: isSet(object.processing_fees_l) ? globalThis.String(object.processing_fees_l) : "",
802
+ gst_l: isSet(object.gst_l) ? globalThis.String(object.gst_l) : "",
803
+ rate_of_interest_l: isSet(object.rate_of_interest_l) ? globalThis.String(object.rate_of_interest_l) : "",
804
+ trans_fee_plus_gst: isSet(object.trans_fee_plus_gst) ? globalThis.Number(object.trans_fee_plus_gst) : 0,
805
+ processing_fee_plus_gst: isSet(object.processing_fee_plus_gst)
806
+ ? globalThis.Number(object.processing_fee_plus_gst)
807
+ : 0,
808
+ bill_amount_l: isSet(object.bill_amount_l) ? globalThis.String(object.bill_amount_l) : "",
809
+ early_foreclosure_fees_l: isSet(object.early_foreclosure_fees_l)
810
+ ? globalThis.String(object.early_foreclosure_fees_l)
811
+ : "",
812
+ convenience_fees_l: isSet(object.convenience_fees_l) ? globalThis.String(object.convenience_fees_l) : "",
813
+ total_interest_pay_l: isSet(object.total_interest_pay_l) ? globalThis.Number(object.total_interest_pay_l) : 0,
814
+ effective_annual_rate_l: isSet(object.effective_annual_rate_l)
815
+ ? globalThis.String(object.effective_annual_rate_l)
816
+ : "",
817
+ trans_fee_plus_gst_l: isSet(object.trans_fee_plus_gst_l) ? globalThis.Number(object.trans_fee_plus_gst_l) : 0,
818
+ processing_fee_plus_gst_l: isSet(object.processing_fee_plus_gst_l)
819
+ ? globalThis.Number(object.processing_fee_plus_gst_l)
820
+ : 0,
821
+ max_amount_l: isSet(object.max_amount_l) ? globalThis.String(object.max_amount_l) : "",
822
+ credit_report_fees_l: isSet(object.credit_report_fees_l) ? globalThis.String(object.credit_report_fees_l) : "",
823
+ fee_and_charges_l: isSet(object.fee_and_charges_l) ? globalThis.String(object.fee_and_charges_l) : "",
824
+ fee_and_charges: isSet(object.fee_and_charges) ? globalThis.Number(object.fee_and_charges) : 0,
825
+ add_on_l: isSet(object.add_on_l) ? globalThis.String(object.add_on_l) : "",
826
+ total_loan_amount_l: isSet(object.total_loan_amount_l) ? globalThis.String(object.total_loan_amount_l) : "",
827
+ loan_amount_l: isSet(object.loan_amount_l) ? globalThis.String(object.loan_amount_l) : "",
828
+ disbursed_amount_l: isSet(object.disbursed_amount_l) ? globalThis.String(object.disbursed_amount_l) : "",
829
+ total_payable_amount_l: isSet(object.total_payable_amount_l)
830
+ ? globalThis.String(object.total_payable_amount_l)
831
+ : "",
832
+ disbursal_amount_l: isSet(object.disbursal_amount_l) ? globalThis.String(object.disbursal_amount_l) : "",
833
+ fcp_interest: isSet(object.fcp_interest) ? globalThis.Number(object.fcp_interest) : 0,
834
+ number_of_emi_l: isSet(object.number_of_emi_l) ? globalThis.String(object.number_of_emi_l) : "",
835
+ first_emi_amt_l: isSet(object.first_emi_amt_l) ? globalThis.String(object.first_emi_amt_l) : "",
836
+ subsequent_emi_l: isSet(object.subsequent_emi_l) ? globalThis.String(object.subsequent_emi_l) : "",
837
+ effective_roi: isSet(object.effective_roi) ? globalThis.Number(object.effective_roi) : 0,
838
+ effective_roi_l: isSet(object.effective_roi_l) ? globalThis.String(object.effective_roi_l) : "",
839
+ effective_annual_roi: isSet(object.effective_annual_roi) ? globalThis.Number(object.effective_annual_roi) : 0,
840
+ effective_annual_roi_l: isSet(object.effective_annual_roi_l)
841
+ ? globalThis.String(object.effective_annual_roi_l)
842
+ : "",
843
+ insurance_l: isSet(object.insurance_l) ? globalThis.String(object.insurance_l) : "",
844
+ emi_card_description: isSet(object.emi_card_description) ? globalThis.String(object.emi_card_description) : "",
845
+ bill_card_description: isSet(object.bill_card_description) ? globalThis.String(object.bill_card_description) : "",
846
+ installment_amounts: isSet(object.installment_amounts) ? globalThis.String(object.installment_amounts) : "",
847
+ apr_title: isSet(object.apr_title) ? globalThis.String(object.apr_title) : "",
848
+ apr_value: isSet(object.apr_value) ? globalThis.String(object.apr_value) : "",
849
+ apr_type: isSet(object.apr_type) ? globalThis.String(object.apr_type) : "",
850
+ credit_line_details_sheet: isSet(object.credit_line_details_sheet)
851
+ ? globalThis.String(object.credit_line_details_sheet)
852
+ : "",
853
+ Acknowledgement: isSet(object.Acknowledgement) ? globalThis.String(object.Acknowledgement) : "",
854
+ payment_undertaking: isSet(object.payment_undertaking) ? globalThis.String(object.payment_undertaking) : "",
855
+ key_fact_statement: isSet(object.key_fact_statement) ? globalThis.String(object.key_fact_statement) : "",
856
+ sanction_letter: isSet(object.sanction_letter) ? globalThis.String(object.sanction_letter) : "",
857
+ financing_documents: isSet(object.financing_documents) ? globalThis.String(object.financing_documents) : "",
858
+ };
859
+ },
860
+ toJSON(message) {
861
+ const obj = {};
862
+ if (message.matched !== false) {
863
+ obj.matched = message.matched;
864
+ }
865
+ if (message.requested_amount !== 0) {
866
+ obj.requested_amount = Math.round(message.requested_amount);
867
+ }
868
+ if (message.tenure !== 0) {
869
+ obj.tenure = Math.round(message.tenure);
870
+ }
871
+ if (message.emi_amount !== 0) {
872
+ obj.emi_amount = Math.round(message.emi_amount);
873
+ }
874
+ if (message.net_amount_payable !== 0) {
875
+ obj.net_amount_payable = Math.round(message.net_amount_payable);
876
+ }
877
+ if (message.first_emi_date !== "") {
878
+ obj.first_emi_date = message.first_emi_date;
879
+ }
880
+ if (message.emi_date !== "") {
881
+ obj.emi_date = message.emi_date;
882
+ }
883
+ if (message.final_disbursal_amount !== 0) {
884
+ obj.final_disbursal_amount = Math.round(message.final_disbursal_amount);
885
+ }
886
+ if (message.upfront_interest !== 0) {
887
+ obj.upfront_interest = Math.round(message.upfront_interest);
888
+ }
889
+ if (message.approved_amount !== 0) {
890
+ obj.approved_amount = Math.round(message.approved_amount);
891
+ }
892
+ if (message.processing_fees !== 0) {
893
+ obj.processing_fees = Math.round(message.processing_fees);
894
+ }
895
+ if (message.gst !== 0) {
896
+ obj.gst = Math.round(message.gst);
897
+ }
898
+ if (message.loan_id !== "") {
899
+ obj.loan_id = message.loan_id;
900
+ }
901
+ if (message.rate_of_interest !== 0) {
902
+ obj.rate_of_interest = message.rate_of_interest;
903
+ }
904
+ if (message.bill_amount !== undefined) {
905
+ obj.bill_amount = message.bill_amount;
906
+ }
907
+ if (message.early_foreclosure_fees !== 0) {
908
+ obj.early_foreclosure_fees = Math.round(message.early_foreclosure_fees);
909
+ }
910
+ if (message.convenience_fees !== 0) {
911
+ obj.convenience_fees = Math.round(message.convenience_fees);
912
+ }
913
+ if (message.total_interest_pay !== 0) {
914
+ obj.total_interest_pay = Math.round(message.total_interest_pay);
915
+ }
916
+ if (message.effective_annual_rate !== 0) {
917
+ obj.effective_annual_rate = message.effective_annual_rate;
918
+ }
919
+ if (message.transaction_rate !== 0) {
920
+ obj.transaction_rate = message.transaction_rate;
921
+ }
922
+ if (message.transaction_fee_amount !== 0) {
923
+ obj.transaction_fee_amount = Math.round(message.transaction_fee_amount);
924
+ }
925
+ if (message.emi_date_l !== "") {
926
+ obj.emi_date_l = message.emi_date_l;
927
+ }
928
+ if (message.emi_amount_l !== "") {
929
+ obj.emi_amount_l = message.emi_amount_l;
930
+ }
931
+ if (message.first_emi_date_l !== "") {
932
+ obj.first_emi_date_l = message.first_emi_date_l;
933
+ }
934
+ if (message.final_disbursal_amount_l !== "") {
935
+ obj.final_disbursal_amount_l = message.final_disbursal_amount_l;
936
+ }
937
+ if (message.upfront_interest_l !== "") {
938
+ obj.upfront_interest_l = message.upfront_interest_l;
939
+ }
940
+ if (message.processing_fees_l !== "") {
941
+ obj.processing_fees_l = message.processing_fees_l;
942
+ }
943
+ if (message.gst_l !== "") {
944
+ obj.gst_l = message.gst_l;
945
+ }
946
+ if (message.rate_of_interest_l !== "") {
947
+ obj.rate_of_interest_l = message.rate_of_interest_l;
948
+ }
949
+ if (message.trans_fee_plus_gst !== 0) {
950
+ obj.trans_fee_plus_gst = Math.round(message.trans_fee_plus_gst);
951
+ }
952
+ if (message.processing_fee_plus_gst !== 0) {
953
+ obj.processing_fee_plus_gst = Math.round(message.processing_fee_plus_gst);
954
+ }
955
+ if (message.bill_amount_l !== "") {
956
+ obj.bill_amount_l = message.bill_amount_l;
957
+ }
958
+ if (message.early_foreclosure_fees_l !== "") {
959
+ obj.early_foreclosure_fees_l = message.early_foreclosure_fees_l;
960
+ }
961
+ if (message.convenience_fees_l !== "") {
962
+ obj.convenience_fees_l = message.convenience_fees_l;
963
+ }
964
+ if (message.total_interest_pay_l !== 0) {
965
+ obj.total_interest_pay_l = Math.round(message.total_interest_pay_l);
966
+ }
967
+ if (message.effective_annual_rate_l !== "") {
968
+ obj.effective_annual_rate_l = message.effective_annual_rate_l;
969
+ }
970
+ if (message.trans_fee_plus_gst_l !== 0) {
971
+ obj.trans_fee_plus_gst_l = Math.round(message.trans_fee_plus_gst_l);
972
+ }
973
+ if (message.processing_fee_plus_gst_l !== 0) {
974
+ obj.processing_fee_plus_gst_l = Math.round(message.processing_fee_plus_gst_l);
975
+ }
976
+ if (message.max_amount_l !== "") {
977
+ obj.max_amount_l = message.max_amount_l;
978
+ }
979
+ if (message.credit_report_fees_l !== "") {
980
+ obj.credit_report_fees_l = message.credit_report_fees_l;
981
+ }
982
+ if (message.fee_and_charges_l !== "") {
983
+ obj.fee_and_charges_l = message.fee_and_charges_l;
984
+ }
985
+ if (message.fee_and_charges !== 0) {
986
+ obj.fee_and_charges = Math.round(message.fee_and_charges);
987
+ }
988
+ if (message.add_on_l !== "") {
989
+ obj.add_on_l = message.add_on_l;
990
+ }
991
+ if (message.total_loan_amount_l !== "") {
992
+ obj.total_loan_amount_l = message.total_loan_amount_l;
993
+ }
994
+ if (message.loan_amount_l !== "") {
995
+ obj.loan_amount_l = message.loan_amount_l;
996
+ }
997
+ if (message.disbursed_amount_l !== "") {
998
+ obj.disbursed_amount_l = message.disbursed_amount_l;
999
+ }
1000
+ if (message.total_payable_amount_l !== "") {
1001
+ obj.total_payable_amount_l = message.total_payable_amount_l;
1002
+ }
1003
+ if (message.disbursal_amount_l !== "") {
1004
+ obj.disbursal_amount_l = message.disbursal_amount_l;
1005
+ }
1006
+ if (message.fcp_interest !== 0) {
1007
+ obj.fcp_interest = Math.round(message.fcp_interest);
1008
+ }
1009
+ if (message.number_of_emi_l !== "") {
1010
+ obj.number_of_emi_l = message.number_of_emi_l;
1011
+ }
1012
+ if (message.first_emi_amt_l !== "") {
1013
+ obj.first_emi_amt_l = message.first_emi_amt_l;
1014
+ }
1015
+ if (message.subsequent_emi_l !== "") {
1016
+ obj.subsequent_emi_l = message.subsequent_emi_l;
1017
+ }
1018
+ if (message.effective_roi !== 0) {
1019
+ obj.effective_roi = message.effective_roi;
1020
+ }
1021
+ if (message.effective_roi_l !== "") {
1022
+ obj.effective_roi_l = message.effective_roi_l;
1023
+ }
1024
+ if (message.effective_annual_roi !== 0) {
1025
+ obj.effective_annual_roi = message.effective_annual_roi;
1026
+ }
1027
+ if (message.effective_annual_roi_l !== "") {
1028
+ obj.effective_annual_roi_l = message.effective_annual_roi_l;
1029
+ }
1030
+ if (message.insurance_l !== "") {
1031
+ obj.insurance_l = message.insurance_l;
1032
+ }
1033
+ if (message.emi_card_description !== "") {
1034
+ obj.emi_card_description = message.emi_card_description;
1035
+ }
1036
+ if (message.bill_card_description !== "") {
1037
+ obj.bill_card_description = message.bill_card_description;
1038
+ }
1039
+ if (message.installment_amounts !== "") {
1040
+ obj.installment_amounts = message.installment_amounts;
1041
+ }
1042
+ if (message.apr_title !== "") {
1043
+ obj.apr_title = message.apr_title;
1044
+ }
1045
+ if (message.apr_value !== "") {
1046
+ obj.apr_value = message.apr_value;
1047
+ }
1048
+ if (message.apr_type !== "") {
1049
+ obj.apr_type = message.apr_type;
1050
+ }
1051
+ if (message.credit_line_details_sheet !== "") {
1052
+ obj.credit_line_details_sheet = message.credit_line_details_sheet;
1053
+ }
1054
+ if (message.Acknowledgement !== "") {
1055
+ obj.Acknowledgement = message.Acknowledgement;
1056
+ }
1057
+ if (message.payment_undertaking !== "") {
1058
+ obj.payment_undertaking = message.payment_undertaking;
1059
+ }
1060
+ if (message.key_fact_statement !== "") {
1061
+ obj.key_fact_statement = message.key_fact_statement;
1062
+ }
1063
+ if (message.sanction_letter !== "") {
1064
+ obj.sanction_letter = message.sanction_letter;
1065
+ }
1066
+ if (message.financing_documents !== "") {
1067
+ obj.financing_documents = message.financing_documents;
1068
+ }
1069
+ return obj;
1070
+ },
1071
+ create(base) {
1072
+ return exports.GetLocDetailsResponse.fromPartial(base ?? {});
1073
+ },
1074
+ fromPartial(object) {
1075
+ const message = createBaseGetLocDetailsResponse();
1076
+ message.matched = object.matched ?? false;
1077
+ message.requested_amount = object.requested_amount ?? 0;
1078
+ message.tenure = object.tenure ?? 0;
1079
+ message.emi_amount = object.emi_amount ?? 0;
1080
+ message.net_amount_payable = object.net_amount_payable ?? 0;
1081
+ message.first_emi_date = object.first_emi_date ?? "";
1082
+ message.emi_date = object.emi_date ?? "";
1083
+ message.final_disbursal_amount = object.final_disbursal_amount ?? 0;
1084
+ message.upfront_interest = object.upfront_interest ?? 0;
1085
+ message.approved_amount = object.approved_amount ?? 0;
1086
+ message.processing_fees = object.processing_fees ?? 0;
1087
+ message.gst = object.gst ?? 0;
1088
+ message.loan_id = object.loan_id ?? "";
1089
+ message.rate_of_interest = object.rate_of_interest ?? 0;
1090
+ message.bill_amount = object.bill_amount ?? undefined;
1091
+ message.early_foreclosure_fees = object.early_foreclosure_fees ?? 0;
1092
+ message.convenience_fees = object.convenience_fees ?? 0;
1093
+ message.total_interest_pay = object.total_interest_pay ?? 0;
1094
+ message.effective_annual_rate = object.effective_annual_rate ?? 0;
1095
+ message.transaction_rate = object.transaction_rate ?? 0;
1096
+ message.transaction_fee_amount = object.transaction_fee_amount ?? 0;
1097
+ message.emi_date_l = object.emi_date_l ?? "";
1098
+ message.emi_amount_l = object.emi_amount_l ?? "";
1099
+ message.first_emi_date_l = object.first_emi_date_l ?? "";
1100
+ message.final_disbursal_amount_l = object.final_disbursal_amount_l ?? "";
1101
+ message.upfront_interest_l = object.upfront_interest_l ?? "";
1102
+ message.processing_fees_l = object.processing_fees_l ?? "";
1103
+ message.gst_l = object.gst_l ?? "";
1104
+ message.rate_of_interest_l = object.rate_of_interest_l ?? "";
1105
+ message.trans_fee_plus_gst = object.trans_fee_plus_gst ?? 0;
1106
+ message.processing_fee_plus_gst = object.processing_fee_plus_gst ?? 0;
1107
+ message.bill_amount_l = object.bill_amount_l ?? "";
1108
+ message.early_foreclosure_fees_l = object.early_foreclosure_fees_l ?? "";
1109
+ message.convenience_fees_l = object.convenience_fees_l ?? "";
1110
+ message.total_interest_pay_l = object.total_interest_pay_l ?? 0;
1111
+ message.effective_annual_rate_l = object.effective_annual_rate_l ?? "";
1112
+ message.trans_fee_plus_gst_l = object.trans_fee_plus_gst_l ?? 0;
1113
+ message.processing_fee_plus_gst_l = object.processing_fee_plus_gst_l ?? 0;
1114
+ message.max_amount_l = object.max_amount_l ?? "";
1115
+ message.credit_report_fees_l = object.credit_report_fees_l ?? "";
1116
+ message.fee_and_charges_l = object.fee_and_charges_l ?? "";
1117
+ message.fee_and_charges = object.fee_and_charges ?? 0;
1118
+ message.add_on_l = object.add_on_l ?? "";
1119
+ message.total_loan_amount_l = object.total_loan_amount_l ?? "";
1120
+ message.loan_amount_l = object.loan_amount_l ?? "";
1121
+ message.disbursed_amount_l = object.disbursed_amount_l ?? "";
1122
+ message.total_payable_amount_l = object.total_payable_amount_l ?? "";
1123
+ message.disbursal_amount_l = object.disbursal_amount_l ?? "";
1124
+ message.fcp_interest = object.fcp_interest ?? 0;
1125
+ message.number_of_emi_l = object.number_of_emi_l ?? "";
1126
+ message.first_emi_amt_l = object.first_emi_amt_l ?? "";
1127
+ message.subsequent_emi_l = object.subsequent_emi_l ?? "";
1128
+ message.effective_roi = object.effective_roi ?? 0;
1129
+ message.effective_roi_l = object.effective_roi_l ?? "";
1130
+ message.effective_annual_roi = object.effective_annual_roi ?? 0;
1131
+ message.effective_annual_roi_l = object.effective_annual_roi_l ?? "";
1132
+ message.insurance_l = object.insurance_l ?? "";
1133
+ message.emi_card_description = object.emi_card_description ?? "";
1134
+ message.bill_card_description = object.bill_card_description ?? "";
1135
+ message.installment_amounts = object.installment_amounts ?? "";
1136
+ message.apr_title = object.apr_title ?? "";
1137
+ message.apr_value = object.apr_value ?? "";
1138
+ message.apr_type = object.apr_type ?? "";
1139
+ message.credit_line_details_sheet = object.credit_line_details_sheet ?? "";
1140
+ message.Acknowledgement = object.Acknowledgement ?? "";
1141
+ message.payment_undertaking = object.payment_undertaking ?? "";
1142
+ message.key_fact_statement = object.key_fact_statement ?? "";
1143
+ message.sanction_letter = object.sanction_letter ?? "";
1144
+ message.financing_documents = object.financing_documents ?? "";
1145
+ return message;
1146
+ },
1147
+ };
1148
+ function isSet(value) {
1149
+ return value !== null && value !== undefined;
1150
+ }