@stashfin/grpc 1.2.857 → 1.2.859

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.857",
3
+ "version": "1.2.859",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -28,12 +28,12 @@ export interface GetLocDetailsResponse {
28
28
  loan_id: string;
29
29
  rate_of_interest: number;
30
30
  bill_amount?: string | undefined;
31
- early_foreclosure_fees?: number | undefined;
32
- convenience_fees?: number | undefined;
33
- total_interest_pay?: number | undefined;
34
- effective_annual_rate?: number | undefined;
35
- transaction_rate?: number | undefined;
36
- transaction_fee_amount?: number | undefined;
31
+ early_foreclosure_fees: number;
32
+ convenience_fees: number;
33
+ total_interest_pay: number;
34
+ effective_annual_rate: number;
35
+ transaction_rate: number;
36
+ transaction_fee_amount: number;
37
37
  emi_date_l: string;
38
38
  emi_amount_l: string;
39
39
  first_emi_date_l: string;
@@ -42,8 +42,8 @@ export interface GetLocDetailsResponse {
42
42
  processing_fees_l: string;
43
43
  gst_l: string;
44
44
  rate_of_interest_l: string;
45
- trans_fee_plus_gst?: number | undefined;
46
- processing_fee_plus_gst?: number | undefined;
45
+ trans_fee_plus_gst: number;
46
+ processing_fee_plus_gst: number;
47
47
  bill_amount_l: string;
48
48
  early_foreclosure_fees_l: string;
49
49
  convenience_fees_l: string;
@@ -54,20 +54,20 @@ export interface GetLocDetailsResponse {
54
54
  max_amount_l: string;
55
55
  credit_report_fees_l: string;
56
56
  fee_and_charges_l: string;
57
- fee_and_charges?: number | undefined;
57
+ fee_and_charges: number;
58
58
  add_on_l: string;
59
59
  total_loan_amount_l: string;
60
60
  loan_amount_l: string;
61
61
  disbursed_amount_l: string;
62
62
  total_payable_amount_l: string;
63
63
  disbursal_amount_l: string;
64
- fcp_interest?: number | undefined;
64
+ fcp_interest: number;
65
65
  number_of_emi_l: string;
66
66
  first_emi_amt_l: string;
67
67
  subsequent_emi_l: string;
68
- effective_roi?: number | undefined;
68
+ effective_roi: number;
69
69
  effective_roi_l: string;
70
- effective_annual_roi?: number | undefined;
70
+ effective_annual_roi: number;
71
71
  effective_annual_roi_l: string;
72
72
  insurance_l: string;
73
73
  emi_card_description: string;
@@ -76,19 +76,21 @@ export interface GetLocDetailsResponse {
76
76
  apr_title?: string | undefined;
77
77
  apr_value?: string | undefined;
78
78
  apr_type?: string | undefined;
79
- credit_line_details_sheet?: string | undefined;
80
- Acknowledgement?: string | undefined;
81
- payment_undertaking?: string | undefined;
82
- key_fact_statement?: string | undefined;
83
- sanction_letter?: string | undefined;
84
- financing_documents?: string | undefined;
85
- max_amount?: number | undefined;
86
- credit_report_fees?: number | undefined;
87
- credit_report_actual_fees?: number | undefined;
88
- plan_id?: string | undefined;
89
- insurance_title?: string | undefined;
79
+ credit_line_details_sheet: string;
80
+ Acknowledgement: string;
81
+ payment_undertaking: string;
82
+ key_fact_statement: string;
83
+ sanction_letter: string;
84
+ financing_documents: string;
85
+ max_amount: number;
86
+ credit_report_fees: number;
87
+ insurance_title: string;
90
88
  insurance_desc: InsuranceDescItem[];
91
- upfront_interest_description?: string | undefined;
89
+ upfront_interest_description: string;
90
+ credit_report_actual_fees_int?: number | undefined;
91
+ credit_report_actual_fees_str?: string | undefined;
92
+ plan_id_int?: number | undefined;
93
+ plan_id_str?: string | undefined;
92
94
  }
93
95
  export declare const GetLocDetailsRequest: {
94
96
  encode(message: GetLocDetailsRequest, writer?: _m0.Writer): _m0.Writer;
@@ -219,12 +219,12 @@ function createBaseGetLocDetailsResponse() {
219
219
  loan_id: "",
220
220
  rate_of_interest: 0,
221
221
  bill_amount: undefined,
222
- early_foreclosure_fees: undefined,
223
- convenience_fees: undefined,
224
- total_interest_pay: undefined,
225
- effective_annual_rate: undefined,
226
- transaction_rate: undefined,
227
- transaction_fee_amount: undefined,
222
+ early_foreclosure_fees: 0,
223
+ convenience_fees: 0,
224
+ total_interest_pay: 0,
225
+ effective_annual_rate: 0,
226
+ transaction_rate: 0,
227
+ transaction_fee_amount: 0,
228
228
  emi_date_l: "",
229
229
  emi_amount_l: "",
230
230
  first_emi_date_l: "",
@@ -233,8 +233,8 @@ function createBaseGetLocDetailsResponse() {
233
233
  processing_fees_l: "",
234
234
  gst_l: "",
235
235
  rate_of_interest_l: "",
236
- trans_fee_plus_gst: undefined,
237
- processing_fee_plus_gst: undefined,
236
+ trans_fee_plus_gst: 0,
237
+ processing_fee_plus_gst: 0,
238
238
  bill_amount_l: "",
239
239
  early_foreclosure_fees_l: "",
240
240
  convenience_fees_l: "",
@@ -245,20 +245,20 @@ function createBaseGetLocDetailsResponse() {
245
245
  max_amount_l: "",
246
246
  credit_report_fees_l: "",
247
247
  fee_and_charges_l: "",
248
- fee_and_charges: undefined,
248
+ fee_and_charges: 0,
249
249
  add_on_l: "",
250
250
  total_loan_amount_l: "",
251
251
  loan_amount_l: "",
252
252
  disbursed_amount_l: "",
253
253
  total_payable_amount_l: "",
254
254
  disbursal_amount_l: "",
255
- fcp_interest: undefined,
255
+ fcp_interest: 0,
256
256
  number_of_emi_l: "",
257
257
  first_emi_amt_l: "",
258
258
  subsequent_emi_l: "",
259
- effective_roi: undefined,
259
+ effective_roi: 0,
260
260
  effective_roi_l: "",
261
- effective_annual_roi: undefined,
261
+ effective_annual_roi: 0,
262
262
  effective_annual_roi_l: "",
263
263
  insurance_l: "",
264
264
  emi_card_description: "",
@@ -267,19 +267,21 @@ function createBaseGetLocDetailsResponse() {
267
267
  apr_title: undefined,
268
268
  apr_value: undefined,
269
269
  apr_type: undefined,
270
- credit_line_details_sheet: undefined,
271
- Acknowledgement: undefined,
272
- payment_undertaking: undefined,
273
- key_fact_statement: undefined,
274
- sanction_letter: undefined,
275
- financing_documents: undefined,
276
- max_amount: undefined,
277
- credit_report_fees: undefined,
278
- credit_report_actual_fees: undefined,
279
- plan_id: undefined,
280
- insurance_title: undefined,
270
+ credit_line_details_sheet: "",
271
+ Acknowledgement: "",
272
+ payment_undertaking: "",
273
+ key_fact_statement: "",
274
+ sanction_letter: "",
275
+ financing_documents: "",
276
+ max_amount: 0,
277
+ credit_report_fees: 0,
278
+ insurance_title: "",
281
279
  insurance_desc: [],
282
- upfront_interest_description: undefined,
280
+ upfront_interest_description: "",
281
+ credit_report_actual_fees_int: undefined,
282
+ credit_report_actual_fees_str: undefined,
283
+ plan_id_int: undefined,
284
+ plan_id_str: undefined,
283
285
  };
284
286
  }
285
287
  exports.GetLocDetailsResponse = {
@@ -329,22 +331,22 @@ exports.GetLocDetailsResponse = {
329
331
  if (message.bill_amount !== undefined) {
330
332
  writer.uint32(122).string(message.bill_amount);
331
333
  }
332
- if (message.early_foreclosure_fees !== undefined) {
334
+ if (message.early_foreclosure_fees !== 0) {
333
335
  writer.uint32(128).int32(message.early_foreclosure_fees);
334
336
  }
335
- if (message.convenience_fees !== undefined) {
337
+ if (message.convenience_fees !== 0) {
336
338
  writer.uint32(136).int32(message.convenience_fees);
337
339
  }
338
- if (message.total_interest_pay !== undefined) {
340
+ if (message.total_interest_pay !== 0) {
339
341
  writer.uint32(144).int32(message.total_interest_pay);
340
342
  }
341
- if (message.effective_annual_rate !== undefined) {
343
+ if (message.effective_annual_rate !== 0) {
342
344
  writer.uint32(157).float(message.effective_annual_rate);
343
345
  }
344
- if (message.transaction_rate !== undefined) {
346
+ if (message.transaction_rate !== 0) {
345
347
  writer.uint32(165).float(message.transaction_rate);
346
348
  }
347
- if (message.transaction_fee_amount !== undefined) {
349
+ if (message.transaction_fee_amount !== 0) {
348
350
  writer.uint32(168).int32(message.transaction_fee_amount);
349
351
  }
350
352
  if (message.emi_date_l !== "") {
@@ -371,10 +373,10 @@ exports.GetLocDetailsResponse = {
371
373
  if (message.rate_of_interest_l !== "") {
372
374
  writer.uint32(234).string(message.rate_of_interest_l);
373
375
  }
374
- if (message.trans_fee_plus_gst !== undefined) {
376
+ if (message.trans_fee_plus_gst !== 0) {
375
377
  writer.uint32(240).int32(message.trans_fee_plus_gst);
376
378
  }
377
- if (message.processing_fee_plus_gst !== undefined) {
379
+ if (message.processing_fee_plus_gst !== 0) {
378
380
  writer.uint32(248).int32(message.processing_fee_plus_gst);
379
381
  }
380
382
  if (message.bill_amount_l !== "") {
@@ -407,7 +409,7 @@ exports.GetLocDetailsResponse = {
407
409
  if (message.fee_and_charges_l !== "") {
408
410
  writer.uint32(330).string(message.fee_and_charges_l);
409
411
  }
410
- if (message.fee_and_charges !== undefined) {
412
+ if (message.fee_and_charges !== 0) {
411
413
  writer.uint32(336).int32(message.fee_and_charges);
412
414
  }
413
415
  if (message.add_on_l !== "") {
@@ -428,7 +430,7 @@ exports.GetLocDetailsResponse = {
428
430
  if (message.disbursal_amount_l !== "") {
429
431
  writer.uint32(386).string(message.disbursal_amount_l);
430
432
  }
431
- if (message.fcp_interest !== undefined) {
433
+ if (message.fcp_interest !== 0) {
432
434
  writer.uint32(392).int32(message.fcp_interest);
433
435
  }
434
436
  if (message.number_of_emi_l !== "") {
@@ -440,13 +442,13 @@ exports.GetLocDetailsResponse = {
440
442
  if (message.subsequent_emi_l !== "") {
441
443
  writer.uint32(418).string(message.subsequent_emi_l);
442
444
  }
443
- if (message.effective_roi !== undefined) {
445
+ if (message.effective_roi !== 0) {
444
446
  writer.uint32(429).float(message.effective_roi);
445
447
  }
446
448
  if (message.effective_roi_l !== "") {
447
449
  writer.uint32(434).string(message.effective_roi_l);
448
450
  }
449
- if (message.effective_annual_roi !== undefined) {
451
+ if (message.effective_annual_roi !== 0) {
450
452
  writer.uint32(445).float(message.effective_annual_roi);
451
453
  }
452
454
  if (message.effective_annual_roi_l !== "") {
@@ -473,45 +475,51 @@ exports.GetLocDetailsResponse = {
473
475
  if (message.apr_type !== undefined) {
474
476
  writer.uint32(506).string(message.apr_type);
475
477
  }
476
- if (message.credit_line_details_sheet !== undefined) {
478
+ if (message.credit_line_details_sheet !== "") {
477
479
  writer.uint32(514).string(message.credit_line_details_sheet);
478
480
  }
479
- if (message.Acknowledgement !== undefined) {
481
+ if (message.Acknowledgement !== "") {
480
482
  writer.uint32(522).string(message.Acknowledgement);
481
483
  }
482
- if (message.payment_undertaking !== undefined) {
484
+ if (message.payment_undertaking !== "") {
483
485
  writer.uint32(530).string(message.payment_undertaking);
484
486
  }
485
- if (message.key_fact_statement !== undefined) {
487
+ if (message.key_fact_statement !== "") {
486
488
  writer.uint32(538).string(message.key_fact_statement);
487
489
  }
488
- if (message.sanction_letter !== undefined) {
490
+ if (message.sanction_letter !== "") {
489
491
  writer.uint32(546).string(message.sanction_letter);
490
492
  }
491
- if (message.financing_documents !== undefined) {
493
+ if (message.financing_documents !== "") {
492
494
  writer.uint32(554).string(message.financing_documents);
493
495
  }
494
- if (message.max_amount !== undefined) {
496
+ if (message.max_amount !== 0) {
495
497
  writer.uint32(560).int32(message.max_amount);
496
498
  }
497
- if (message.credit_report_fees !== undefined) {
499
+ if (message.credit_report_fees !== 0) {
498
500
  writer.uint32(568).int32(message.credit_report_fees);
499
501
  }
500
- if (message.credit_report_actual_fees !== undefined) {
501
- writer.uint32(576).int32(message.credit_report_actual_fees);
502
- }
503
- if (message.plan_id !== undefined) {
504
- writer.uint32(586).string(message.plan_id);
505
- }
506
- if (message.insurance_title !== undefined) {
502
+ if (message.insurance_title !== "") {
507
503
  writer.uint32(594).string(message.insurance_title);
508
504
  }
509
505
  for (const v of message.insurance_desc) {
510
506
  exports.InsuranceDescItem.encode(v, writer.uint32(602).fork()).ldelim();
511
507
  }
512
- if (message.upfront_interest_description !== undefined) {
508
+ if (message.upfront_interest_description !== "") {
513
509
  writer.uint32(610).string(message.upfront_interest_description);
514
510
  }
511
+ if (message.credit_report_actual_fees_int !== undefined) {
512
+ writer.uint32(576).int32(message.credit_report_actual_fees_int);
513
+ }
514
+ if (message.credit_report_actual_fees_str !== undefined) {
515
+ writer.uint32(618).string(message.credit_report_actual_fees_str);
516
+ }
517
+ if (message.plan_id_int !== undefined) {
518
+ writer.uint32(584).int32(message.plan_id_int);
519
+ }
520
+ if (message.plan_id_str !== undefined) {
521
+ writer.uint32(626).string(message.plan_id_str);
522
+ }
515
523
  return writer;
516
524
  },
517
525
  decode(input, length) {
@@ -947,18 +955,6 @@ exports.GetLocDetailsResponse = {
947
955
  }
948
956
  message.credit_report_fees = reader.int32();
949
957
  continue;
950
- case 72:
951
- if (tag !== 576) {
952
- break;
953
- }
954
- message.credit_report_actual_fees = reader.int32();
955
- continue;
956
- case 73:
957
- if (tag !== 586) {
958
- break;
959
- }
960
- message.plan_id = reader.string();
961
- continue;
962
958
  case 74:
963
959
  if (tag !== 594) {
964
960
  break;
@@ -977,6 +973,30 @@ exports.GetLocDetailsResponse = {
977
973
  }
978
974
  message.upfront_interest_description = reader.string();
979
975
  continue;
976
+ case 72:
977
+ if (tag !== 576) {
978
+ break;
979
+ }
980
+ message.credit_report_actual_fees_int = reader.int32();
981
+ continue;
982
+ case 77:
983
+ if (tag !== 618) {
984
+ break;
985
+ }
986
+ message.credit_report_actual_fees_str = reader.string();
987
+ continue;
988
+ case 73:
989
+ if (tag !== 584) {
990
+ break;
991
+ }
992
+ message.plan_id_int = reader.int32();
993
+ continue;
994
+ case 78:
995
+ if (tag !== 626) {
996
+ break;
997
+ }
998
+ message.plan_id_str = reader.string();
999
+ continue;
980
1000
  }
981
1001
  if ((tag & 7) === 4 || tag === 0) {
982
1002
  break;
@@ -1006,16 +1026,14 @@ exports.GetLocDetailsResponse = {
1006
1026
  bill_amount: isSet(object.bill_amount) ? globalThis.String(object.bill_amount) : undefined,
1007
1027
  early_foreclosure_fees: isSet(object.early_foreclosure_fees)
1008
1028
  ? globalThis.Number(object.early_foreclosure_fees)
1009
- : undefined,
1010
- convenience_fees: isSet(object.convenience_fees) ? globalThis.Number(object.convenience_fees) : undefined,
1011
- total_interest_pay: isSet(object.total_interest_pay) ? globalThis.Number(object.total_interest_pay) : undefined,
1012
- effective_annual_rate: isSet(object.effective_annual_rate)
1013
- ? globalThis.Number(object.effective_annual_rate)
1014
- : undefined,
1015
- transaction_rate: isSet(object.transaction_rate) ? globalThis.Number(object.transaction_rate) : undefined,
1029
+ : 0,
1030
+ convenience_fees: isSet(object.convenience_fees) ? globalThis.Number(object.convenience_fees) : 0,
1031
+ total_interest_pay: isSet(object.total_interest_pay) ? globalThis.Number(object.total_interest_pay) : 0,
1032
+ effective_annual_rate: isSet(object.effective_annual_rate) ? globalThis.Number(object.effective_annual_rate) : 0,
1033
+ transaction_rate: isSet(object.transaction_rate) ? globalThis.Number(object.transaction_rate) : 0,
1016
1034
  transaction_fee_amount: isSet(object.transaction_fee_amount)
1017
1035
  ? globalThis.Number(object.transaction_fee_amount)
1018
- : undefined,
1036
+ : 0,
1019
1037
  emi_date_l: isSet(object.emi_date_l) ? globalThis.String(object.emi_date_l) : "",
1020
1038
  emi_amount_l: isSet(object.emi_amount_l) ? globalThis.String(object.emi_amount_l) : "",
1021
1039
  first_emi_date_l: isSet(object.first_emi_date_l) ? globalThis.String(object.first_emi_date_l) : "",
@@ -1026,10 +1044,10 @@ exports.GetLocDetailsResponse = {
1026
1044
  processing_fees_l: isSet(object.processing_fees_l) ? globalThis.String(object.processing_fees_l) : "",
1027
1045
  gst_l: isSet(object.gst_l) ? globalThis.String(object.gst_l) : "",
1028
1046
  rate_of_interest_l: isSet(object.rate_of_interest_l) ? globalThis.String(object.rate_of_interest_l) : "",
1029
- trans_fee_plus_gst: isSet(object.trans_fee_plus_gst) ? globalThis.Number(object.trans_fee_plus_gst) : undefined,
1047
+ trans_fee_plus_gst: isSet(object.trans_fee_plus_gst) ? globalThis.Number(object.trans_fee_plus_gst) : 0,
1030
1048
  processing_fee_plus_gst: isSet(object.processing_fee_plus_gst)
1031
1049
  ? globalThis.Number(object.processing_fee_plus_gst)
1032
- : undefined,
1050
+ : 0,
1033
1051
  bill_amount_l: isSet(object.bill_amount_l) ? globalThis.String(object.bill_amount_l) : "",
1034
1052
  early_foreclosure_fees_l: isSet(object.early_foreclosure_fees_l)
1035
1053
  ? globalThis.String(object.early_foreclosure_fees_l)
@@ -1046,7 +1064,7 @@ exports.GetLocDetailsResponse = {
1046
1064
  max_amount_l: isSet(object.max_amount_l) ? globalThis.String(object.max_amount_l) : "",
1047
1065
  credit_report_fees_l: isSet(object.credit_report_fees_l) ? globalThis.String(object.credit_report_fees_l) : "",
1048
1066
  fee_and_charges_l: isSet(object.fee_and_charges_l) ? globalThis.String(object.fee_and_charges_l) : "",
1049
- fee_and_charges: isSet(object.fee_and_charges) ? globalThis.Number(object.fee_and_charges) : undefined,
1067
+ fee_and_charges: isSet(object.fee_and_charges) ? globalThis.Number(object.fee_and_charges) : 0,
1050
1068
  add_on_l: isSet(object.add_on_l) ? globalThis.String(object.add_on_l) : "",
1051
1069
  total_loan_amount_l: isSet(object.total_loan_amount_l) ? globalThis.String(object.total_loan_amount_l) : "",
1052
1070
  loan_amount_l: isSet(object.loan_amount_l) ? globalThis.String(object.loan_amount_l) : "",
@@ -1055,15 +1073,13 @@ exports.GetLocDetailsResponse = {
1055
1073
  ? globalThis.String(object.total_payable_amount_l)
1056
1074
  : "",
1057
1075
  disbursal_amount_l: isSet(object.disbursal_amount_l) ? globalThis.String(object.disbursal_amount_l) : "",
1058
- fcp_interest: isSet(object.fcp_interest) ? globalThis.Number(object.fcp_interest) : undefined,
1076
+ fcp_interest: isSet(object.fcp_interest) ? globalThis.Number(object.fcp_interest) : 0,
1059
1077
  number_of_emi_l: isSet(object.number_of_emi_l) ? globalThis.String(object.number_of_emi_l) : "",
1060
1078
  first_emi_amt_l: isSet(object.first_emi_amt_l) ? globalThis.String(object.first_emi_amt_l) : "",
1061
1079
  subsequent_emi_l: isSet(object.subsequent_emi_l) ? globalThis.String(object.subsequent_emi_l) : "",
1062
- effective_roi: isSet(object.effective_roi) ? globalThis.Number(object.effective_roi) : undefined,
1080
+ effective_roi: isSet(object.effective_roi) ? globalThis.Number(object.effective_roi) : 0,
1063
1081
  effective_roi_l: isSet(object.effective_roi_l) ? globalThis.String(object.effective_roi_l) : "",
1064
- effective_annual_roi: isSet(object.effective_annual_roi)
1065
- ? globalThis.Number(object.effective_annual_roi)
1066
- : undefined,
1082
+ effective_annual_roi: isSet(object.effective_annual_roi) ? globalThis.Number(object.effective_annual_roi) : 0,
1067
1083
  effective_annual_roi_l: isSet(object.effective_annual_roi_l)
1068
1084
  ? globalThis.String(object.effective_annual_roi_l)
1069
1085
  : "",
@@ -1076,29 +1092,29 @@ exports.GetLocDetailsResponse = {
1076
1092
  apr_type: isSet(object.apr_type) ? globalThis.String(object.apr_type) : undefined,
1077
1093
  credit_line_details_sheet: isSet(object.credit_line_details_sheet)
1078
1094
  ? globalThis.String(object.credit_line_details_sheet)
1079
- : undefined,
1080
- Acknowledgement: isSet(object.Acknowledgement) ? globalThis.String(object.Acknowledgement) : undefined,
1081
- payment_undertaking: isSet(object.payment_undertaking)
1082
- ? globalThis.String(object.payment_undertaking)
1083
- : undefined,
1084
- key_fact_statement: isSet(object.key_fact_statement) ? globalThis.String(object.key_fact_statement) : undefined,
1085
- sanction_letter: isSet(object.sanction_letter) ? globalThis.String(object.sanction_letter) : undefined,
1086
- financing_documents: isSet(object.financing_documents)
1087
- ? globalThis.String(object.financing_documents)
1088
- : undefined,
1089
- max_amount: isSet(object.max_amount) ? globalThis.Number(object.max_amount) : undefined,
1090
- credit_report_fees: isSet(object.credit_report_fees) ? globalThis.Number(object.credit_report_fees) : undefined,
1091
- credit_report_actual_fees: isSet(object.credit_report_actual_fees)
1092
- ? globalThis.Number(object.credit_report_actual_fees)
1093
- : undefined,
1094
- plan_id: isSet(object.plan_id) ? globalThis.String(object.plan_id) : undefined,
1095
- insurance_title: isSet(object.insurance_title) ? globalThis.String(object.insurance_title) : undefined,
1095
+ : "",
1096
+ Acknowledgement: isSet(object.Acknowledgement) ? globalThis.String(object.Acknowledgement) : "",
1097
+ payment_undertaking: isSet(object.payment_undertaking) ? globalThis.String(object.payment_undertaking) : "",
1098
+ key_fact_statement: isSet(object.key_fact_statement) ? globalThis.String(object.key_fact_statement) : "",
1099
+ sanction_letter: isSet(object.sanction_letter) ? globalThis.String(object.sanction_letter) : "",
1100
+ financing_documents: isSet(object.financing_documents) ? globalThis.String(object.financing_documents) : "",
1101
+ max_amount: isSet(object.max_amount) ? globalThis.Number(object.max_amount) : 0,
1102
+ credit_report_fees: isSet(object.credit_report_fees) ? globalThis.Number(object.credit_report_fees) : 0,
1103
+ insurance_title: isSet(object.insurance_title) ? globalThis.String(object.insurance_title) : "",
1096
1104
  insurance_desc: globalThis.Array.isArray(object?.insurance_desc)
1097
1105
  ? object.insurance_desc.map((e) => exports.InsuranceDescItem.fromJSON(e))
1098
1106
  : [],
1099
1107
  upfront_interest_description: isSet(object.upfront_interest_description)
1100
1108
  ? globalThis.String(object.upfront_interest_description)
1109
+ : "",
1110
+ credit_report_actual_fees_int: isSet(object.credit_report_actual_fees_int)
1111
+ ? globalThis.Number(object.credit_report_actual_fees_int)
1112
+ : undefined,
1113
+ credit_report_actual_fees_str: isSet(object.credit_report_actual_fees_str)
1114
+ ? globalThis.String(object.credit_report_actual_fees_str)
1101
1115
  : undefined,
1116
+ plan_id_int: isSet(object.plan_id_int) ? globalThis.Number(object.plan_id_int) : undefined,
1117
+ plan_id_str: isSet(object.plan_id_str) ? globalThis.String(object.plan_id_str) : undefined,
1102
1118
  };
1103
1119
  },
1104
1120
  toJSON(message) {
@@ -1148,22 +1164,22 @@ exports.GetLocDetailsResponse = {
1148
1164
  if (message.bill_amount !== undefined) {
1149
1165
  obj.bill_amount = message.bill_amount;
1150
1166
  }
1151
- if (message.early_foreclosure_fees !== undefined) {
1167
+ if (message.early_foreclosure_fees !== 0) {
1152
1168
  obj.early_foreclosure_fees = Math.round(message.early_foreclosure_fees);
1153
1169
  }
1154
- if (message.convenience_fees !== undefined) {
1170
+ if (message.convenience_fees !== 0) {
1155
1171
  obj.convenience_fees = Math.round(message.convenience_fees);
1156
1172
  }
1157
- if (message.total_interest_pay !== undefined) {
1173
+ if (message.total_interest_pay !== 0) {
1158
1174
  obj.total_interest_pay = Math.round(message.total_interest_pay);
1159
1175
  }
1160
- if (message.effective_annual_rate !== undefined) {
1176
+ if (message.effective_annual_rate !== 0) {
1161
1177
  obj.effective_annual_rate = message.effective_annual_rate;
1162
1178
  }
1163
- if (message.transaction_rate !== undefined) {
1179
+ if (message.transaction_rate !== 0) {
1164
1180
  obj.transaction_rate = message.transaction_rate;
1165
1181
  }
1166
- if (message.transaction_fee_amount !== undefined) {
1182
+ if (message.transaction_fee_amount !== 0) {
1167
1183
  obj.transaction_fee_amount = Math.round(message.transaction_fee_amount);
1168
1184
  }
1169
1185
  if (message.emi_date_l !== "") {
@@ -1190,10 +1206,10 @@ exports.GetLocDetailsResponse = {
1190
1206
  if (message.rate_of_interest_l !== "") {
1191
1207
  obj.rate_of_interest_l = message.rate_of_interest_l;
1192
1208
  }
1193
- if (message.trans_fee_plus_gst !== undefined) {
1209
+ if (message.trans_fee_plus_gst !== 0) {
1194
1210
  obj.trans_fee_plus_gst = Math.round(message.trans_fee_plus_gst);
1195
1211
  }
1196
- if (message.processing_fee_plus_gst !== undefined) {
1212
+ if (message.processing_fee_plus_gst !== 0) {
1197
1213
  obj.processing_fee_plus_gst = Math.round(message.processing_fee_plus_gst);
1198
1214
  }
1199
1215
  if (message.bill_amount_l !== "") {
@@ -1226,7 +1242,7 @@ exports.GetLocDetailsResponse = {
1226
1242
  if (message.fee_and_charges_l !== "") {
1227
1243
  obj.fee_and_charges_l = message.fee_and_charges_l;
1228
1244
  }
1229
- if (message.fee_and_charges !== undefined) {
1245
+ if (message.fee_and_charges !== 0) {
1230
1246
  obj.fee_and_charges = Math.round(message.fee_and_charges);
1231
1247
  }
1232
1248
  if (message.add_on_l !== "") {
@@ -1247,7 +1263,7 @@ exports.GetLocDetailsResponse = {
1247
1263
  if (message.disbursal_amount_l !== "") {
1248
1264
  obj.disbursal_amount_l = message.disbursal_amount_l;
1249
1265
  }
1250
- if (message.fcp_interest !== undefined) {
1266
+ if (message.fcp_interest !== 0) {
1251
1267
  obj.fcp_interest = Math.round(message.fcp_interest);
1252
1268
  }
1253
1269
  if (message.number_of_emi_l !== "") {
@@ -1259,13 +1275,13 @@ exports.GetLocDetailsResponse = {
1259
1275
  if (message.subsequent_emi_l !== "") {
1260
1276
  obj.subsequent_emi_l = message.subsequent_emi_l;
1261
1277
  }
1262
- if (message.effective_roi !== undefined) {
1278
+ if (message.effective_roi !== 0) {
1263
1279
  obj.effective_roi = message.effective_roi;
1264
1280
  }
1265
1281
  if (message.effective_roi_l !== "") {
1266
1282
  obj.effective_roi_l = message.effective_roi_l;
1267
1283
  }
1268
- if (message.effective_annual_roi !== undefined) {
1284
+ if (message.effective_annual_roi !== 0) {
1269
1285
  obj.effective_annual_roi = message.effective_annual_roi;
1270
1286
  }
1271
1287
  if (message.effective_annual_roi_l !== "") {
@@ -1292,45 +1308,51 @@ exports.GetLocDetailsResponse = {
1292
1308
  if (message.apr_type !== undefined) {
1293
1309
  obj.apr_type = message.apr_type;
1294
1310
  }
1295
- if (message.credit_line_details_sheet !== undefined) {
1311
+ if (message.credit_line_details_sheet !== "") {
1296
1312
  obj.credit_line_details_sheet = message.credit_line_details_sheet;
1297
1313
  }
1298
- if (message.Acknowledgement !== undefined) {
1314
+ if (message.Acknowledgement !== "") {
1299
1315
  obj.Acknowledgement = message.Acknowledgement;
1300
1316
  }
1301
- if (message.payment_undertaking !== undefined) {
1317
+ if (message.payment_undertaking !== "") {
1302
1318
  obj.payment_undertaking = message.payment_undertaking;
1303
1319
  }
1304
- if (message.key_fact_statement !== undefined) {
1320
+ if (message.key_fact_statement !== "") {
1305
1321
  obj.key_fact_statement = message.key_fact_statement;
1306
1322
  }
1307
- if (message.sanction_letter !== undefined) {
1323
+ if (message.sanction_letter !== "") {
1308
1324
  obj.sanction_letter = message.sanction_letter;
1309
1325
  }
1310
- if (message.financing_documents !== undefined) {
1326
+ if (message.financing_documents !== "") {
1311
1327
  obj.financing_documents = message.financing_documents;
1312
1328
  }
1313
- if (message.max_amount !== undefined) {
1329
+ if (message.max_amount !== 0) {
1314
1330
  obj.max_amount = Math.round(message.max_amount);
1315
1331
  }
1316
- if (message.credit_report_fees !== undefined) {
1332
+ if (message.credit_report_fees !== 0) {
1317
1333
  obj.credit_report_fees = Math.round(message.credit_report_fees);
1318
1334
  }
1319
- if (message.credit_report_actual_fees !== undefined) {
1320
- obj.credit_report_actual_fees = Math.round(message.credit_report_actual_fees);
1321
- }
1322
- if (message.plan_id !== undefined) {
1323
- obj.plan_id = message.plan_id;
1324
- }
1325
- if (message.insurance_title !== undefined) {
1335
+ if (message.insurance_title !== "") {
1326
1336
  obj.insurance_title = message.insurance_title;
1327
1337
  }
1328
1338
  if (message.insurance_desc?.length) {
1329
1339
  obj.insurance_desc = message.insurance_desc.map((e) => exports.InsuranceDescItem.toJSON(e));
1330
1340
  }
1331
- if (message.upfront_interest_description !== undefined) {
1341
+ if (message.upfront_interest_description !== "") {
1332
1342
  obj.upfront_interest_description = message.upfront_interest_description;
1333
1343
  }
1344
+ if (message.credit_report_actual_fees_int !== undefined) {
1345
+ obj.credit_report_actual_fees_int = Math.round(message.credit_report_actual_fees_int);
1346
+ }
1347
+ if (message.credit_report_actual_fees_str !== undefined) {
1348
+ obj.credit_report_actual_fees_str = message.credit_report_actual_fees_str;
1349
+ }
1350
+ if (message.plan_id_int !== undefined) {
1351
+ obj.plan_id_int = Math.round(message.plan_id_int);
1352
+ }
1353
+ if (message.plan_id_str !== undefined) {
1354
+ obj.plan_id_str = message.plan_id_str;
1355
+ }
1334
1356
  return obj;
1335
1357
  },
1336
1358
  create(base) {
@@ -1353,12 +1375,12 @@ exports.GetLocDetailsResponse = {
1353
1375
  message.loan_id = object.loan_id ?? "";
1354
1376
  message.rate_of_interest = object.rate_of_interest ?? 0;
1355
1377
  message.bill_amount = object.bill_amount ?? undefined;
1356
- message.early_foreclosure_fees = object.early_foreclosure_fees ?? undefined;
1357
- message.convenience_fees = object.convenience_fees ?? undefined;
1358
- message.total_interest_pay = object.total_interest_pay ?? undefined;
1359
- message.effective_annual_rate = object.effective_annual_rate ?? undefined;
1360
- message.transaction_rate = object.transaction_rate ?? undefined;
1361
- message.transaction_fee_amount = object.transaction_fee_amount ?? undefined;
1378
+ message.early_foreclosure_fees = object.early_foreclosure_fees ?? 0;
1379
+ message.convenience_fees = object.convenience_fees ?? 0;
1380
+ message.total_interest_pay = object.total_interest_pay ?? 0;
1381
+ message.effective_annual_rate = object.effective_annual_rate ?? 0;
1382
+ message.transaction_rate = object.transaction_rate ?? 0;
1383
+ message.transaction_fee_amount = object.transaction_fee_amount ?? 0;
1362
1384
  message.emi_date_l = object.emi_date_l ?? "";
1363
1385
  message.emi_amount_l = object.emi_amount_l ?? "";
1364
1386
  message.first_emi_date_l = object.first_emi_date_l ?? "";
@@ -1367,8 +1389,8 @@ exports.GetLocDetailsResponse = {
1367
1389
  message.processing_fees_l = object.processing_fees_l ?? "";
1368
1390
  message.gst_l = object.gst_l ?? "";
1369
1391
  message.rate_of_interest_l = object.rate_of_interest_l ?? "";
1370
- message.trans_fee_plus_gst = object.trans_fee_plus_gst ?? undefined;
1371
- message.processing_fee_plus_gst = object.processing_fee_plus_gst ?? undefined;
1392
+ message.trans_fee_plus_gst = object.trans_fee_plus_gst ?? 0;
1393
+ message.processing_fee_plus_gst = object.processing_fee_plus_gst ?? 0;
1372
1394
  message.bill_amount_l = object.bill_amount_l ?? "";
1373
1395
  message.early_foreclosure_fees_l = object.early_foreclosure_fees_l ?? "";
1374
1396
  message.convenience_fees_l = object.convenience_fees_l ?? "";
@@ -1379,20 +1401,20 @@ exports.GetLocDetailsResponse = {
1379
1401
  message.max_amount_l = object.max_amount_l ?? "";
1380
1402
  message.credit_report_fees_l = object.credit_report_fees_l ?? "";
1381
1403
  message.fee_and_charges_l = object.fee_and_charges_l ?? "";
1382
- message.fee_and_charges = object.fee_and_charges ?? undefined;
1404
+ message.fee_and_charges = object.fee_and_charges ?? 0;
1383
1405
  message.add_on_l = object.add_on_l ?? "";
1384
1406
  message.total_loan_amount_l = object.total_loan_amount_l ?? "";
1385
1407
  message.loan_amount_l = object.loan_amount_l ?? "";
1386
1408
  message.disbursed_amount_l = object.disbursed_amount_l ?? "";
1387
1409
  message.total_payable_amount_l = object.total_payable_amount_l ?? "";
1388
1410
  message.disbursal_amount_l = object.disbursal_amount_l ?? "";
1389
- message.fcp_interest = object.fcp_interest ?? undefined;
1411
+ message.fcp_interest = object.fcp_interest ?? 0;
1390
1412
  message.number_of_emi_l = object.number_of_emi_l ?? "";
1391
1413
  message.first_emi_amt_l = object.first_emi_amt_l ?? "";
1392
1414
  message.subsequent_emi_l = object.subsequent_emi_l ?? "";
1393
- message.effective_roi = object.effective_roi ?? undefined;
1415
+ message.effective_roi = object.effective_roi ?? 0;
1394
1416
  message.effective_roi_l = object.effective_roi_l ?? "";
1395
- message.effective_annual_roi = object.effective_annual_roi ?? undefined;
1417
+ message.effective_annual_roi = object.effective_annual_roi ?? 0;
1396
1418
  message.effective_annual_roi_l = object.effective_annual_roi_l ?? "";
1397
1419
  message.insurance_l = object.insurance_l ?? "";
1398
1420
  message.emi_card_description = object.emi_card_description ?? "";
@@ -1401,19 +1423,21 @@ exports.GetLocDetailsResponse = {
1401
1423
  message.apr_title = object.apr_title ?? undefined;
1402
1424
  message.apr_value = object.apr_value ?? undefined;
1403
1425
  message.apr_type = object.apr_type ?? undefined;
1404
- message.credit_line_details_sheet = object.credit_line_details_sheet ?? undefined;
1405
- message.Acknowledgement = object.Acknowledgement ?? undefined;
1406
- message.payment_undertaking = object.payment_undertaking ?? undefined;
1407
- message.key_fact_statement = object.key_fact_statement ?? undefined;
1408
- message.sanction_letter = object.sanction_letter ?? undefined;
1409
- message.financing_documents = object.financing_documents ?? undefined;
1410
- message.max_amount = object.max_amount ?? undefined;
1411
- message.credit_report_fees = object.credit_report_fees ?? undefined;
1412
- message.credit_report_actual_fees = object.credit_report_actual_fees ?? undefined;
1413
- message.plan_id = object.plan_id ?? undefined;
1414
- message.insurance_title = object.insurance_title ?? undefined;
1426
+ message.credit_line_details_sheet = object.credit_line_details_sheet ?? "";
1427
+ message.Acknowledgement = object.Acknowledgement ?? "";
1428
+ message.payment_undertaking = object.payment_undertaking ?? "";
1429
+ message.key_fact_statement = object.key_fact_statement ?? "";
1430
+ message.sanction_letter = object.sanction_letter ?? "";
1431
+ message.financing_documents = object.financing_documents ?? "";
1432
+ message.max_amount = object.max_amount ?? 0;
1433
+ message.credit_report_fees = object.credit_report_fees ?? 0;
1434
+ message.insurance_title = object.insurance_title ?? "";
1415
1435
  message.insurance_desc = object.insurance_desc?.map((e) => exports.InsuranceDescItem.fromPartial(e)) || [];
1416
- message.upfront_interest_description = object.upfront_interest_description ?? undefined;
1436
+ message.upfront_interest_description = object.upfront_interest_description ?? "";
1437
+ message.credit_report_actual_fees_int = object.credit_report_actual_fees_int ?? undefined;
1438
+ message.credit_report_actual_fees_str = object.credit_report_actual_fees_str ?? undefined;
1439
+ message.plan_id_int = object.plan_id_int ?? undefined;
1440
+ message.plan_id_str = object.plan_id_str ?? undefined;
1417
1441
  return message;
1418
1442
  },
1419
1443
  };