@stashfin/grpc 1.2.855 → 1.2.857

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.855",
3
+ "version": "1.2.857",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -16,15 +16,23 @@ export interface EmploymentData {
16
16
  export interface Data {
17
17
  code: string;
18
18
  message: string;
19
- employment_data: EmploymentData | undefined;
19
+ employment_data?: EmploymentData | undefined;
20
+ error?: EmploymentDataError | undefined;
20
21
  }
21
22
  export interface fetchEmploymentHistoryResponse {
22
23
  data: Data | undefined;
23
- request_id: string;
24
+ request_id?: string | undefined;
24
25
  customer_id: number;
25
26
  url: string;
26
27
  uan: string;
27
28
  }
29
+ export interface EmploymentDataError {
30
+ ver: string;
31
+ timestamp: string;
32
+ txnid: string;
33
+ errorCode: string;
34
+ errorMessage: string;
35
+ }
28
36
  export declare const fetchEmploymentHistoryRequest: {
29
37
  encode(message: fetchEmploymentHistoryRequest, writer?: _m0.Writer): _m0.Writer;
30
38
  decode(input: _m0.Reader | Uint8Array, length?: number): fetchEmploymentHistoryRequest;
@@ -57,6 +65,14 @@ export declare const fetchEmploymentHistoryResponse: {
57
65
  create<I extends Exact<DeepPartial<fetchEmploymentHistoryResponse>, I>>(base?: I): fetchEmploymentHistoryResponse;
58
66
  fromPartial<I extends Exact<DeepPartial<fetchEmploymentHistoryResponse>, I>>(object: I): fetchEmploymentHistoryResponse;
59
67
  };
68
+ export declare const EmploymentDataError: {
69
+ encode(message: EmploymentDataError, writer?: _m0.Writer): _m0.Writer;
70
+ decode(input: _m0.Reader | Uint8Array, length?: number): EmploymentDataError;
71
+ fromJSON(object: any): EmploymentDataError;
72
+ toJSON(message: EmploymentDataError): unknown;
73
+ create<I extends Exact<DeepPartial<EmploymentDataError>, I>>(base?: I): EmploymentDataError;
74
+ fromPartial<I extends Exact<DeepPartial<EmploymentDataError>, I>>(object: I): EmploymentDataError;
75
+ };
60
76
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
61
77
  export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
62
78
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
9
9
  };
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.fetchEmploymentHistoryResponse = exports.Data = exports.EmploymentData = exports.fetchEmploymentHistoryRequest = exports.protobufPackage = void 0;
11
+ exports.EmploymentDataError = exports.fetchEmploymentHistoryResponse = exports.Data = exports.EmploymentData = exports.fetchEmploymentHistoryRequest = exports.protobufPackage = void 0;
12
12
  /* eslint-disable */
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "kyc.fetchemploymenthistory";
@@ -223,7 +223,7 @@ exports.EmploymentData = {
223
223
  },
224
224
  };
225
225
  function createBaseData() {
226
- return { code: "", message: "", employment_data: undefined };
226
+ return { code: "", message: "", employment_data: undefined, error: undefined };
227
227
  }
228
228
  exports.Data = {
229
229
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -236,6 +236,9 @@ exports.Data = {
236
236
  if (message.employment_data !== undefined) {
237
237
  exports.EmploymentData.encode(message.employment_data, writer.uint32(26).fork()).ldelim();
238
238
  }
239
+ if (message.error !== undefined) {
240
+ exports.EmploymentDataError.encode(message.error, writer.uint32(34).fork()).ldelim();
241
+ }
239
242
  return writer;
240
243
  },
241
244
  decode(input, length) {
@@ -263,6 +266,12 @@ exports.Data = {
263
266
  }
264
267
  message.employment_data = exports.EmploymentData.decode(reader, reader.uint32());
265
268
  continue;
269
+ case 4:
270
+ if (tag !== 34) {
271
+ break;
272
+ }
273
+ message.error = exports.EmploymentDataError.decode(reader, reader.uint32());
274
+ continue;
266
275
  }
267
276
  if ((tag & 7) === 4 || tag === 0) {
268
277
  break;
@@ -276,6 +285,7 @@ exports.Data = {
276
285
  code: isSet(object.code) ? globalThis.String(object.code) : "",
277
286
  message: isSet(object.message) ? globalThis.String(object.message) : "",
278
287
  employment_data: isSet(object.employment_data) ? exports.EmploymentData.fromJSON(object.employment_data) : undefined,
288
+ error: isSet(object.error) ? exports.EmploymentDataError.fromJSON(object.error) : undefined,
279
289
  };
280
290
  },
281
291
  toJSON(message) {
@@ -289,6 +299,9 @@ exports.Data = {
289
299
  if (message.employment_data !== undefined) {
290
300
  obj.employment_data = exports.EmploymentData.toJSON(message.employment_data);
291
301
  }
302
+ if (message.error !== undefined) {
303
+ obj.error = exports.EmploymentDataError.toJSON(message.error);
304
+ }
292
305
  return obj;
293
306
  },
294
307
  create(base) {
@@ -301,18 +314,21 @@ exports.Data = {
301
314
  message.employment_data = (object.employment_data !== undefined && object.employment_data !== null)
302
315
  ? exports.EmploymentData.fromPartial(object.employment_data)
303
316
  : undefined;
317
+ message.error = (object.error !== undefined && object.error !== null)
318
+ ? exports.EmploymentDataError.fromPartial(object.error)
319
+ : undefined;
304
320
  return message;
305
321
  },
306
322
  };
307
323
  function createBasefetchEmploymentHistoryResponse() {
308
- return { data: undefined, request_id: "", customer_id: 0, url: "", uan: "" };
324
+ return { data: undefined, request_id: undefined, customer_id: 0, url: "", uan: "" };
309
325
  }
310
326
  exports.fetchEmploymentHistoryResponse = {
311
327
  encode(message, writer = minimal_1.default.Writer.create()) {
312
328
  if (message.data !== undefined) {
313
329
  exports.Data.encode(message.data, writer.uint32(10).fork()).ldelim();
314
330
  }
315
- if (message.request_id !== "") {
331
+ if (message.request_id !== undefined) {
316
332
  writer.uint32(18).string(message.request_id);
317
333
  }
318
334
  if (message.customer_id !== 0) {
@@ -374,7 +390,7 @@ exports.fetchEmploymentHistoryResponse = {
374
390
  fromJSON(object) {
375
391
  return {
376
392
  data: isSet(object.data) ? exports.Data.fromJSON(object.data) : undefined,
377
- request_id: isSet(object.request_id) ? globalThis.String(object.request_id) : "",
393
+ request_id: isSet(object.request_id) ? globalThis.String(object.request_id) : undefined,
378
394
  customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
379
395
  url: isSet(object.url) ? globalThis.String(object.url) : "",
380
396
  uan: isSet(object.uan) ? globalThis.String(object.uan) : "",
@@ -385,7 +401,7 @@ exports.fetchEmploymentHistoryResponse = {
385
401
  if (message.data !== undefined) {
386
402
  obj.data = exports.Data.toJSON(message.data);
387
403
  }
388
- if (message.request_id !== "") {
404
+ if (message.request_id !== undefined) {
389
405
  obj.request_id = message.request_id;
390
406
  }
391
407
  if (message.customer_id !== 0) {
@@ -405,13 +421,121 @@ exports.fetchEmploymentHistoryResponse = {
405
421
  fromPartial(object) {
406
422
  const message = createBasefetchEmploymentHistoryResponse();
407
423
  message.data = (object.data !== undefined && object.data !== null) ? exports.Data.fromPartial(object.data) : undefined;
408
- message.request_id = object.request_id ?? "";
424
+ message.request_id = object.request_id ?? undefined;
409
425
  message.customer_id = object.customer_id ?? 0;
410
426
  message.url = object.url ?? "";
411
427
  message.uan = object.uan ?? "";
412
428
  return message;
413
429
  },
414
430
  };
431
+ function createBaseEmploymentDataError() {
432
+ return { ver: "", timestamp: "", txnid: "", errorCode: "", errorMessage: "" };
433
+ }
434
+ exports.EmploymentDataError = {
435
+ encode(message, writer = minimal_1.default.Writer.create()) {
436
+ if (message.ver !== "") {
437
+ writer.uint32(10).string(message.ver);
438
+ }
439
+ if (message.timestamp !== "") {
440
+ writer.uint32(18).string(message.timestamp);
441
+ }
442
+ if (message.txnid !== "") {
443
+ writer.uint32(26).string(message.txnid);
444
+ }
445
+ if (message.errorCode !== "") {
446
+ writer.uint32(34).string(message.errorCode);
447
+ }
448
+ if (message.errorMessage !== "") {
449
+ writer.uint32(42).string(message.errorMessage);
450
+ }
451
+ return writer;
452
+ },
453
+ decode(input, length) {
454
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
455
+ let end = length === undefined ? reader.len : reader.pos + length;
456
+ const message = createBaseEmploymentDataError();
457
+ while (reader.pos < end) {
458
+ const tag = reader.uint32();
459
+ switch (tag >>> 3) {
460
+ case 1:
461
+ if (tag !== 10) {
462
+ break;
463
+ }
464
+ message.ver = reader.string();
465
+ continue;
466
+ case 2:
467
+ if (tag !== 18) {
468
+ break;
469
+ }
470
+ message.timestamp = reader.string();
471
+ continue;
472
+ case 3:
473
+ if (tag !== 26) {
474
+ break;
475
+ }
476
+ message.txnid = reader.string();
477
+ continue;
478
+ case 4:
479
+ if (tag !== 34) {
480
+ break;
481
+ }
482
+ message.errorCode = reader.string();
483
+ continue;
484
+ case 5:
485
+ if (tag !== 42) {
486
+ break;
487
+ }
488
+ message.errorMessage = reader.string();
489
+ continue;
490
+ }
491
+ if ((tag & 7) === 4 || tag === 0) {
492
+ break;
493
+ }
494
+ reader.skipType(tag & 7);
495
+ }
496
+ return message;
497
+ },
498
+ fromJSON(object) {
499
+ return {
500
+ ver: isSet(object.ver) ? globalThis.String(object.ver) : "",
501
+ timestamp: isSet(object.timestamp) ? globalThis.String(object.timestamp) : "",
502
+ txnid: isSet(object.txnid) ? globalThis.String(object.txnid) : "",
503
+ errorCode: isSet(object.errorCode) ? globalThis.String(object.errorCode) : "",
504
+ errorMessage: isSet(object.errorMessage) ? globalThis.String(object.errorMessage) : "",
505
+ };
506
+ },
507
+ toJSON(message) {
508
+ const obj = {};
509
+ if (message.ver !== "") {
510
+ obj.ver = message.ver;
511
+ }
512
+ if (message.timestamp !== "") {
513
+ obj.timestamp = message.timestamp;
514
+ }
515
+ if (message.txnid !== "") {
516
+ obj.txnid = message.txnid;
517
+ }
518
+ if (message.errorCode !== "") {
519
+ obj.errorCode = message.errorCode;
520
+ }
521
+ if (message.errorMessage !== "") {
522
+ obj.errorMessage = message.errorMessage;
523
+ }
524
+ return obj;
525
+ },
526
+ create(base) {
527
+ return exports.EmploymentDataError.fromPartial(base ?? {});
528
+ },
529
+ fromPartial(object) {
530
+ const message = createBaseEmploymentDataError();
531
+ message.ver = object.ver ?? "";
532
+ message.timestamp = object.timestamp ?? "";
533
+ message.txnid = object.txnid ?? "";
534
+ message.errorCode = object.errorCode ?? "";
535
+ message.errorMessage = object.errorMessage ?? "";
536
+ return message;
537
+ },
538
+ };
415
539
  function isSet(value) {
416
540
  return value !== null && value !== undefined;
417
541
  }
@@ -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;
32
- convenience_fees: number;
33
- total_interest_pay: number;
34
- effective_annual_rate: number;
35
- transaction_rate: number;
36
- transaction_fee_amount: number;
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;
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;
46
- processing_fee_plus_gst: number;
45
+ trans_fee_plus_gst?: number | undefined;
46
+ processing_fee_plus_gst?: number | undefined;
47
47
  bill_amount_l: string;
48
48
  early_foreclosure_fees_l: string;
49
49
  convenience_fees_l: string;
@@ -54,41 +54,41 @@ 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;
57
+ fee_and_charges?: number | undefined;
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;
64
+ fcp_interest?: number | undefined;
65
65
  number_of_emi_l: string;
66
66
  first_emi_amt_l: string;
67
67
  subsequent_emi_l: string;
68
- effective_roi: number;
68
+ effective_roi?: number | undefined;
69
69
  effective_roi_l: string;
70
- effective_annual_roi: number;
70
+ effective_annual_roi?: number | undefined;
71
71
  effective_annual_roi_l: string;
72
72
  insurance_l: string;
73
73
  emi_card_description: string;
74
74
  bill_card_description: string;
75
75
  installment_amounts: string;
76
- apr_title: string;
77
- apr_value: string;
78
- apr_type: string;
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
- credit_report_actual_fees: number;
88
- plan_id: string;
89
- insurance_title: string;
76
+ apr_title?: string | undefined;
77
+ apr_value?: string | undefined;
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;
90
90
  insurance_desc: InsuranceDescItem[];
91
- upfront_interest_description: string;
91
+ upfront_interest_description?: string | undefined;
92
92
  }
93
93
  export declare const GetLocDetailsRequest: {
94
94
  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: 0,
223
- convenience_fees: 0,
224
- total_interest_pay: 0,
225
- effective_annual_rate: 0,
226
- transaction_rate: 0,
227
- transaction_fee_amount: 0,
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,
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: 0,
237
- processing_fee_plus_gst: 0,
236
+ trans_fee_plus_gst: undefined,
237
+ processing_fee_plus_gst: undefined,
238
238
  bill_amount_l: "",
239
239
  early_foreclosure_fees_l: "",
240
240
  convenience_fees_l: "",
@@ -245,41 +245,41 @@ function createBaseGetLocDetailsResponse() {
245
245
  max_amount_l: "",
246
246
  credit_report_fees_l: "",
247
247
  fee_and_charges_l: "",
248
- fee_and_charges: 0,
248
+ fee_and_charges: undefined,
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: 0,
255
+ fcp_interest: undefined,
256
256
  number_of_emi_l: "",
257
257
  first_emi_amt_l: "",
258
258
  subsequent_emi_l: "",
259
- effective_roi: 0,
259
+ effective_roi: undefined,
260
260
  effective_roi_l: "",
261
- effective_annual_roi: 0,
261
+ effective_annual_roi: undefined,
262
262
  effective_annual_roi_l: "",
263
263
  insurance_l: "",
264
264
  emi_card_description: "",
265
265
  bill_card_description: "",
266
266
  installment_amounts: "",
267
- apr_title: "",
268
- apr_value: "",
269
- apr_type: "",
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
- credit_report_actual_fees: 0,
279
- plan_id: "",
280
- insurance_title: "",
267
+ apr_title: undefined,
268
+ apr_value: undefined,
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,
281
281
  insurance_desc: [],
282
- upfront_interest_description: "",
282
+ upfront_interest_description: undefined,
283
283
  };
284
284
  }
285
285
  exports.GetLocDetailsResponse = {
@@ -329,22 +329,22 @@ exports.GetLocDetailsResponse = {
329
329
  if (message.bill_amount !== undefined) {
330
330
  writer.uint32(122).string(message.bill_amount);
331
331
  }
332
- if (message.early_foreclosure_fees !== 0) {
332
+ if (message.early_foreclosure_fees !== undefined) {
333
333
  writer.uint32(128).int32(message.early_foreclosure_fees);
334
334
  }
335
- if (message.convenience_fees !== 0) {
335
+ if (message.convenience_fees !== undefined) {
336
336
  writer.uint32(136).int32(message.convenience_fees);
337
337
  }
338
- if (message.total_interest_pay !== 0) {
338
+ if (message.total_interest_pay !== undefined) {
339
339
  writer.uint32(144).int32(message.total_interest_pay);
340
340
  }
341
- if (message.effective_annual_rate !== 0) {
341
+ if (message.effective_annual_rate !== undefined) {
342
342
  writer.uint32(157).float(message.effective_annual_rate);
343
343
  }
344
- if (message.transaction_rate !== 0) {
344
+ if (message.transaction_rate !== undefined) {
345
345
  writer.uint32(165).float(message.transaction_rate);
346
346
  }
347
- if (message.transaction_fee_amount !== 0) {
347
+ if (message.transaction_fee_amount !== undefined) {
348
348
  writer.uint32(168).int32(message.transaction_fee_amount);
349
349
  }
350
350
  if (message.emi_date_l !== "") {
@@ -371,10 +371,10 @@ exports.GetLocDetailsResponse = {
371
371
  if (message.rate_of_interest_l !== "") {
372
372
  writer.uint32(234).string(message.rate_of_interest_l);
373
373
  }
374
- if (message.trans_fee_plus_gst !== 0) {
374
+ if (message.trans_fee_plus_gst !== undefined) {
375
375
  writer.uint32(240).int32(message.trans_fee_plus_gst);
376
376
  }
377
- if (message.processing_fee_plus_gst !== 0) {
377
+ if (message.processing_fee_plus_gst !== undefined) {
378
378
  writer.uint32(248).int32(message.processing_fee_plus_gst);
379
379
  }
380
380
  if (message.bill_amount_l !== "") {
@@ -407,7 +407,7 @@ exports.GetLocDetailsResponse = {
407
407
  if (message.fee_and_charges_l !== "") {
408
408
  writer.uint32(330).string(message.fee_and_charges_l);
409
409
  }
410
- if (message.fee_and_charges !== 0) {
410
+ if (message.fee_and_charges !== undefined) {
411
411
  writer.uint32(336).int32(message.fee_and_charges);
412
412
  }
413
413
  if (message.add_on_l !== "") {
@@ -428,7 +428,7 @@ exports.GetLocDetailsResponse = {
428
428
  if (message.disbursal_amount_l !== "") {
429
429
  writer.uint32(386).string(message.disbursal_amount_l);
430
430
  }
431
- if (message.fcp_interest !== 0) {
431
+ if (message.fcp_interest !== undefined) {
432
432
  writer.uint32(392).int32(message.fcp_interest);
433
433
  }
434
434
  if (message.number_of_emi_l !== "") {
@@ -440,13 +440,13 @@ exports.GetLocDetailsResponse = {
440
440
  if (message.subsequent_emi_l !== "") {
441
441
  writer.uint32(418).string(message.subsequent_emi_l);
442
442
  }
443
- if (message.effective_roi !== 0) {
443
+ if (message.effective_roi !== undefined) {
444
444
  writer.uint32(429).float(message.effective_roi);
445
445
  }
446
446
  if (message.effective_roi_l !== "") {
447
447
  writer.uint32(434).string(message.effective_roi_l);
448
448
  }
449
- if (message.effective_annual_roi !== 0) {
449
+ if (message.effective_annual_roi !== undefined) {
450
450
  writer.uint32(445).float(message.effective_annual_roi);
451
451
  }
452
452
  if (message.effective_annual_roi_l !== "") {
@@ -464,52 +464,52 @@ exports.GetLocDetailsResponse = {
464
464
  if (message.installment_amounts !== "") {
465
465
  writer.uint32(482).string(message.installment_amounts);
466
466
  }
467
- if (message.apr_title !== "") {
467
+ if (message.apr_title !== undefined) {
468
468
  writer.uint32(490).string(message.apr_title);
469
469
  }
470
- if (message.apr_value !== "") {
470
+ if (message.apr_value !== undefined) {
471
471
  writer.uint32(498).string(message.apr_value);
472
472
  }
473
- if (message.apr_type !== "") {
473
+ if (message.apr_type !== undefined) {
474
474
  writer.uint32(506).string(message.apr_type);
475
475
  }
476
- if (message.credit_line_details_sheet !== "") {
476
+ if (message.credit_line_details_sheet !== undefined) {
477
477
  writer.uint32(514).string(message.credit_line_details_sheet);
478
478
  }
479
- if (message.Acknowledgement !== "") {
479
+ if (message.Acknowledgement !== undefined) {
480
480
  writer.uint32(522).string(message.Acknowledgement);
481
481
  }
482
- if (message.payment_undertaking !== "") {
482
+ if (message.payment_undertaking !== undefined) {
483
483
  writer.uint32(530).string(message.payment_undertaking);
484
484
  }
485
- if (message.key_fact_statement !== "") {
485
+ if (message.key_fact_statement !== undefined) {
486
486
  writer.uint32(538).string(message.key_fact_statement);
487
487
  }
488
- if (message.sanction_letter !== "") {
488
+ if (message.sanction_letter !== undefined) {
489
489
  writer.uint32(546).string(message.sanction_letter);
490
490
  }
491
- if (message.financing_documents !== "") {
491
+ if (message.financing_documents !== undefined) {
492
492
  writer.uint32(554).string(message.financing_documents);
493
493
  }
494
- if (message.max_amount !== 0) {
494
+ if (message.max_amount !== undefined) {
495
495
  writer.uint32(560).int32(message.max_amount);
496
496
  }
497
- if (message.credit_report_fees !== 0) {
497
+ if (message.credit_report_fees !== undefined) {
498
498
  writer.uint32(568).int32(message.credit_report_fees);
499
499
  }
500
- if (message.credit_report_actual_fees !== 0) {
500
+ if (message.credit_report_actual_fees !== undefined) {
501
501
  writer.uint32(576).int32(message.credit_report_actual_fees);
502
502
  }
503
- if (message.plan_id !== "") {
503
+ if (message.plan_id !== undefined) {
504
504
  writer.uint32(586).string(message.plan_id);
505
505
  }
506
- if (message.insurance_title !== "") {
506
+ if (message.insurance_title !== undefined) {
507
507
  writer.uint32(594).string(message.insurance_title);
508
508
  }
509
509
  for (const v of message.insurance_desc) {
510
510
  exports.InsuranceDescItem.encode(v, writer.uint32(602).fork()).ldelim();
511
511
  }
512
- if (message.upfront_interest_description !== "") {
512
+ if (message.upfront_interest_description !== undefined) {
513
513
  writer.uint32(610).string(message.upfront_interest_description);
514
514
  }
515
515
  return writer;
@@ -1006,14 +1006,16 @@ exports.GetLocDetailsResponse = {
1006
1006
  bill_amount: isSet(object.bill_amount) ? globalThis.String(object.bill_amount) : undefined,
1007
1007
  early_foreclosure_fees: isSet(object.early_foreclosure_fees)
1008
1008
  ? globalThis.Number(object.early_foreclosure_fees)
1009
- : 0,
1010
- convenience_fees: isSet(object.convenience_fees) ? globalThis.Number(object.convenience_fees) : 0,
1011
- total_interest_pay: isSet(object.total_interest_pay) ? globalThis.Number(object.total_interest_pay) : 0,
1012
- effective_annual_rate: isSet(object.effective_annual_rate) ? globalThis.Number(object.effective_annual_rate) : 0,
1013
- transaction_rate: isSet(object.transaction_rate) ? globalThis.Number(object.transaction_rate) : 0,
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,
1014
1016
  transaction_fee_amount: isSet(object.transaction_fee_amount)
1015
1017
  ? globalThis.Number(object.transaction_fee_amount)
1016
- : 0,
1018
+ : undefined,
1017
1019
  emi_date_l: isSet(object.emi_date_l) ? globalThis.String(object.emi_date_l) : "",
1018
1020
  emi_amount_l: isSet(object.emi_amount_l) ? globalThis.String(object.emi_amount_l) : "",
1019
1021
  first_emi_date_l: isSet(object.first_emi_date_l) ? globalThis.String(object.first_emi_date_l) : "",
@@ -1024,10 +1026,10 @@ exports.GetLocDetailsResponse = {
1024
1026
  processing_fees_l: isSet(object.processing_fees_l) ? globalThis.String(object.processing_fees_l) : "",
1025
1027
  gst_l: isSet(object.gst_l) ? globalThis.String(object.gst_l) : "",
1026
1028
  rate_of_interest_l: isSet(object.rate_of_interest_l) ? globalThis.String(object.rate_of_interest_l) : "",
1027
- trans_fee_plus_gst: isSet(object.trans_fee_plus_gst) ? globalThis.Number(object.trans_fee_plus_gst) : 0,
1029
+ trans_fee_plus_gst: isSet(object.trans_fee_plus_gst) ? globalThis.Number(object.trans_fee_plus_gst) : undefined,
1028
1030
  processing_fee_plus_gst: isSet(object.processing_fee_plus_gst)
1029
1031
  ? globalThis.Number(object.processing_fee_plus_gst)
1030
- : 0,
1032
+ : undefined,
1031
1033
  bill_amount_l: isSet(object.bill_amount_l) ? globalThis.String(object.bill_amount_l) : "",
1032
1034
  early_foreclosure_fees_l: isSet(object.early_foreclosure_fees_l)
1033
1035
  ? globalThis.String(object.early_foreclosure_fees_l)
@@ -1044,7 +1046,7 @@ exports.GetLocDetailsResponse = {
1044
1046
  max_amount_l: isSet(object.max_amount_l) ? globalThis.String(object.max_amount_l) : "",
1045
1047
  credit_report_fees_l: isSet(object.credit_report_fees_l) ? globalThis.String(object.credit_report_fees_l) : "",
1046
1048
  fee_and_charges_l: isSet(object.fee_and_charges_l) ? globalThis.String(object.fee_and_charges_l) : "",
1047
- fee_and_charges: isSet(object.fee_and_charges) ? globalThis.Number(object.fee_and_charges) : 0,
1049
+ fee_and_charges: isSet(object.fee_and_charges) ? globalThis.Number(object.fee_and_charges) : undefined,
1048
1050
  add_on_l: isSet(object.add_on_l) ? globalThis.String(object.add_on_l) : "",
1049
1051
  total_loan_amount_l: isSet(object.total_loan_amount_l) ? globalThis.String(object.total_loan_amount_l) : "",
1050
1052
  loan_amount_l: isSet(object.loan_amount_l) ? globalThis.String(object.loan_amount_l) : "",
@@ -1053,13 +1055,15 @@ exports.GetLocDetailsResponse = {
1053
1055
  ? globalThis.String(object.total_payable_amount_l)
1054
1056
  : "",
1055
1057
  disbursal_amount_l: isSet(object.disbursal_amount_l) ? globalThis.String(object.disbursal_amount_l) : "",
1056
- fcp_interest: isSet(object.fcp_interest) ? globalThis.Number(object.fcp_interest) : 0,
1058
+ fcp_interest: isSet(object.fcp_interest) ? globalThis.Number(object.fcp_interest) : undefined,
1057
1059
  number_of_emi_l: isSet(object.number_of_emi_l) ? globalThis.String(object.number_of_emi_l) : "",
1058
1060
  first_emi_amt_l: isSet(object.first_emi_amt_l) ? globalThis.String(object.first_emi_amt_l) : "",
1059
1061
  subsequent_emi_l: isSet(object.subsequent_emi_l) ? globalThis.String(object.subsequent_emi_l) : "",
1060
- effective_roi: isSet(object.effective_roi) ? globalThis.Number(object.effective_roi) : 0,
1062
+ effective_roi: isSet(object.effective_roi) ? globalThis.Number(object.effective_roi) : undefined,
1061
1063
  effective_roi_l: isSet(object.effective_roi_l) ? globalThis.String(object.effective_roi_l) : "",
1062
- effective_annual_roi: isSet(object.effective_annual_roi) ? globalThis.Number(object.effective_annual_roi) : 0,
1064
+ effective_annual_roi: isSet(object.effective_annual_roi)
1065
+ ? globalThis.Number(object.effective_annual_roi)
1066
+ : undefined,
1063
1067
  effective_annual_roi_l: isSet(object.effective_annual_roi_l)
1064
1068
  ? globalThis.String(object.effective_annual_roi_l)
1065
1069
  : "",
@@ -1067,30 +1071,34 @@ exports.GetLocDetailsResponse = {
1067
1071
  emi_card_description: isSet(object.emi_card_description) ? globalThis.String(object.emi_card_description) : "",
1068
1072
  bill_card_description: isSet(object.bill_card_description) ? globalThis.String(object.bill_card_description) : "",
1069
1073
  installment_amounts: isSet(object.installment_amounts) ? globalThis.String(object.installment_amounts) : "",
1070
- apr_title: isSet(object.apr_title) ? globalThis.String(object.apr_title) : "",
1071
- apr_value: isSet(object.apr_value) ? globalThis.String(object.apr_value) : "",
1072
- apr_type: isSet(object.apr_type) ? globalThis.String(object.apr_type) : "",
1074
+ apr_title: isSet(object.apr_title) ? globalThis.String(object.apr_title) : undefined,
1075
+ apr_value: isSet(object.apr_value) ? globalThis.String(object.apr_value) : undefined,
1076
+ apr_type: isSet(object.apr_type) ? globalThis.String(object.apr_type) : undefined,
1073
1077
  credit_line_details_sheet: isSet(object.credit_line_details_sheet)
1074
1078
  ? globalThis.String(object.credit_line_details_sheet)
1075
- : "",
1076
- Acknowledgement: isSet(object.Acknowledgement) ? globalThis.String(object.Acknowledgement) : "",
1077
- payment_undertaking: isSet(object.payment_undertaking) ? globalThis.String(object.payment_undertaking) : "",
1078
- key_fact_statement: isSet(object.key_fact_statement) ? globalThis.String(object.key_fact_statement) : "",
1079
- sanction_letter: isSet(object.sanction_letter) ? globalThis.String(object.sanction_letter) : "",
1080
- financing_documents: isSet(object.financing_documents) ? globalThis.String(object.financing_documents) : "",
1081
- max_amount: isSet(object.max_amount) ? globalThis.Number(object.max_amount) : 0,
1082
- credit_report_fees: isSet(object.credit_report_fees) ? globalThis.Number(object.credit_report_fees) : 0,
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,
1083
1091
  credit_report_actual_fees: isSet(object.credit_report_actual_fees)
1084
1092
  ? globalThis.Number(object.credit_report_actual_fees)
1085
- : 0,
1086
- plan_id: isSet(object.plan_id) ? globalThis.String(object.plan_id) : "",
1087
- insurance_title: isSet(object.insurance_title) ? globalThis.String(object.insurance_title) : "",
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,
1088
1096
  insurance_desc: globalThis.Array.isArray(object?.insurance_desc)
1089
1097
  ? object.insurance_desc.map((e) => exports.InsuranceDescItem.fromJSON(e))
1090
1098
  : [],
1091
1099
  upfront_interest_description: isSet(object.upfront_interest_description)
1092
1100
  ? globalThis.String(object.upfront_interest_description)
1093
- : "",
1101
+ : undefined,
1094
1102
  };
1095
1103
  },
1096
1104
  toJSON(message) {
@@ -1140,22 +1148,22 @@ exports.GetLocDetailsResponse = {
1140
1148
  if (message.bill_amount !== undefined) {
1141
1149
  obj.bill_amount = message.bill_amount;
1142
1150
  }
1143
- if (message.early_foreclosure_fees !== 0) {
1151
+ if (message.early_foreclosure_fees !== undefined) {
1144
1152
  obj.early_foreclosure_fees = Math.round(message.early_foreclosure_fees);
1145
1153
  }
1146
- if (message.convenience_fees !== 0) {
1154
+ if (message.convenience_fees !== undefined) {
1147
1155
  obj.convenience_fees = Math.round(message.convenience_fees);
1148
1156
  }
1149
- if (message.total_interest_pay !== 0) {
1157
+ if (message.total_interest_pay !== undefined) {
1150
1158
  obj.total_interest_pay = Math.round(message.total_interest_pay);
1151
1159
  }
1152
- if (message.effective_annual_rate !== 0) {
1160
+ if (message.effective_annual_rate !== undefined) {
1153
1161
  obj.effective_annual_rate = message.effective_annual_rate;
1154
1162
  }
1155
- if (message.transaction_rate !== 0) {
1163
+ if (message.transaction_rate !== undefined) {
1156
1164
  obj.transaction_rate = message.transaction_rate;
1157
1165
  }
1158
- if (message.transaction_fee_amount !== 0) {
1166
+ if (message.transaction_fee_amount !== undefined) {
1159
1167
  obj.transaction_fee_amount = Math.round(message.transaction_fee_amount);
1160
1168
  }
1161
1169
  if (message.emi_date_l !== "") {
@@ -1182,10 +1190,10 @@ exports.GetLocDetailsResponse = {
1182
1190
  if (message.rate_of_interest_l !== "") {
1183
1191
  obj.rate_of_interest_l = message.rate_of_interest_l;
1184
1192
  }
1185
- if (message.trans_fee_plus_gst !== 0) {
1193
+ if (message.trans_fee_plus_gst !== undefined) {
1186
1194
  obj.trans_fee_plus_gst = Math.round(message.trans_fee_plus_gst);
1187
1195
  }
1188
- if (message.processing_fee_plus_gst !== 0) {
1196
+ if (message.processing_fee_plus_gst !== undefined) {
1189
1197
  obj.processing_fee_plus_gst = Math.round(message.processing_fee_plus_gst);
1190
1198
  }
1191
1199
  if (message.bill_amount_l !== "") {
@@ -1218,7 +1226,7 @@ exports.GetLocDetailsResponse = {
1218
1226
  if (message.fee_and_charges_l !== "") {
1219
1227
  obj.fee_and_charges_l = message.fee_and_charges_l;
1220
1228
  }
1221
- if (message.fee_and_charges !== 0) {
1229
+ if (message.fee_and_charges !== undefined) {
1222
1230
  obj.fee_and_charges = Math.round(message.fee_and_charges);
1223
1231
  }
1224
1232
  if (message.add_on_l !== "") {
@@ -1239,7 +1247,7 @@ exports.GetLocDetailsResponse = {
1239
1247
  if (message.disbursal_amount_l !== "") {
1240
1248
  obj.disbursal_amount_l = message.disbursal_amount_l;
1241
1249
  }
1242
- if (message.fcp_interest !== 0) {
1250
+ if (message.fcp_interest !== undefined) {
1243
1251
  obj.fcp_interest = Math.round(message.fcp_interest);
1244
1252
  }
1245
1253
  if (message.number_of_emi_l !== "") {
@@ -1251,13 +1259,13 @@ exports.GetLocDetailsResponse = {
1251
1259
  if (message.subsequent_emi_l !== "") {
1252
1260
  obj.subsequent_emi_l = message.subsequent_emi_l;
1253
1261
  }
1254
- if (message.effective_roi !== 0) {
1262
+ if (message.effective_roi !== undefined) {
1255
1263
  obj.effective_roi = message.effective_roi;
1256
1264
  }
1257
1265
  if (message.effective_roi_l !== "") {
1258
1266
  obj.effective_roi_l = message.effective_roi_l;
1259
1267
  }
1260
- if (message.effective_annual_roi !== 0) {
1268
+ if (message.effective_annual_roi !== undefined) {
1261
1269
  obj.effective_annual_roi = message.effective_annual_roi;
1262
1270
  }
1263
1271
  if (message.effective_annual_roi_l !== "") {
@@ -1275,52 +1283,52 @@ exports.GetLocDetailsResponse = {
1275
1283
  if (message.installment_amounts !== "") {
1276
1284
  obj.installment_amounts = message.installment_amounts;
1277
1285
  }
1278
- if (message.apr_title !== "") {
1286
+ if (message.apr_title !== undefined) {
1279
1287
  obj.apr_title = message.apr_title;
1280
1288
  }
1281
- if (message.apr_value !== "") {
1289
+ if (message.apr_value !== undefined) {
1282
1290
  obj.apr_value = message.apr_value;
1283
1291
  }
1284
- if (message.apr_type !== "") {
1292
+ if (message.apr_type !== undefined) {
1285
1293
  obj.apr_type = message.apr_type;
1286
1294
  }
1287
- if (message.credit_line_details_sheet !== "") {
1295
+ if (message.credit_line_details_sheet !== undefined) {
1288
1296
  obj.credit_line_details_sheet = message.credit_line_details_sheet;
1289
1297
  }
1290
- if (message.Acknowledgement !== "") {
1298
+ if (message.Acknowledgement !== undefined) {
1291
1299
  obj.Acknowledgement = message.Acknowledgement;
1292
1300
  }
1293
- if (message.payment_undertaking !== "") {
1301
+ if (message.payment_undertaking !== undefined) {
1294
1302
  obj.payment_undertaking = message.payment_undertaking;
1295
1303
  }
1296
- if (message.key_fact_statement !== "") {
1304
+ if (message.key_fact_statement !== undefined) {
1297
1305
  obj.key_fact_statement = message.key_fact_statement;
1298
1306
  }
1299
- if (message.sanction_letter !== "") {
1307
+ if (message.sanction_letter !== undefined) {
1300
1308
  obj.sanction_letter = message.sanction_letter;
1301
1309
  }
1302
- if (message.financing_documents !== "") {
1310
+ if (message.financing_documents !== undefined) {
1303
1311
  obj.financing_documents = message.financing_documents;
1304
1312
  }
1305
- if (message.max_amount !== 0) {
1313
+ if (message.max_amount !== undefined) {
1306
1314
  obj.max_amount = Math.round(message.max_amount);
1307
1315
  }
1308
- if (message.credit_report_fees !== 0) {
1316
+ if (message.credit_report_fees !== undefined) {
1309
1317
  obj.credit_report_fees = Math.round(message.credit_report_fees);
1310
1318
  }
1311
- if (message.credit_report_actual_fees !== 0) {
1319
+ if (message.credit_report_actual_fees !== undefined) {
1312
1320
  obj.credit_report_actual_fees = Math.round(message.credit_report_actual_fees);
1313
1321
  }
1314
- if (message.plan_id !== "") {
1322
+ if (message.plan_id !== undefined) {
1315
1323
  obj.plan_id = message.plan_id;
1316
1324
  }
1317
- if (message.insurance_title !== "") {
1325
+ if (message.insurance_title !== undefined) {
1318
1326
  obj.insurance_title = message.insurance_title;
1319
1327
  }
1320
1328
  if (message.insurance_desc?.length) {
1321
1329
  obj.insurance_desc = message.insurance_desc.map((e) => exports.InsuranceDescItem.toJSON(e));
1322
1330
  }
1323
- if (message.upfront_interest_description !== "") {
1331
+ if (message.upfront_interest_description !== undefined) {
1324
1332
  obj.upfront_interest_description = message.upfront_interest_description;
1325
1333
  }
1326
1334
  return obj;
@@ -1345,12 +1353,12 @@ exports.GetLocDetailsResponse = {
1345
1353
  message.loan_id = object.loan_id ?? "";
1346
1354
  message.rate_of_interest = object.rate_of_interest ?? 0;
1347
1355
  message.bill_amount = object.bill_amount ?? undefined;
1348
- message.early_foreclosure_fees = object.early_foreclosure_fees ?? 0;
1349
- message.convenience_fees = object.convenience_fees ?? 0;
1350
- message.total_interest_pay = object.total_interest_pay ?? 0;
1351
- message.effective_annual_rate = object.effective_annual_rate ?? 0;
1352
- message.transaction_rate = object.transaction_rate ?? 0;
1353
- message.transaction_fee_amount = object.transaction_fee_amount ?? 0;
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;
1354
1362
  message.emi_date_l = object.emi_date_l ?? "";
1355
1363
  message.emi_amount_l = object.emi_amount_l ?? "";
1356
1364
  message.first_emi_date_l = object.first_emi_date_l ?? "";
@@ -1359,8 +1367,8 @@ exports.GetLocDetailsResponse = {
1359
1367
  message.processing_fees_l = object.processing_fees_l ?? "";
1360
1368
  message.gst_l = object.gst_l ?? "";
1361
1369
  message.rate_of_interest_l = object.rate_of_interest_l ?? "";
1362
- message.trans_fee_plus_gst = object.trans_fee_plus_gst ?? 0;
1363
- message.processing_fee_plus_gst = object.processing_fee_plus_gst ?? 0;
1370
+ message.trans_fee_plus_gst = object.trans_fee_plus_gst ?? undefined;
1371
+ message.processing_fee_plus_gst = object.processing_fee_plus_gst ?? undefined;
1364
1372
  message.bill_amount_l = object.bill_amount_l ?? "";
1365
1373
  message.early_foreclosure_fees_l = object.early_foreclosure_fees_l ?? "";
1366
1374
  message.convenience_fees_l = object.convenience_fees_l ?? "";
@@ -1371,41 +1379,41 @@ exports.GetLocDetailsResponse = {
1371
1379
  message.max_amount_l = object.max_amount_l ?? "";
1372
1380
  message.credit_report_fees_l = object.credit_report_fees_l ?? "";
1373
1381
  message.fee_and_charges_l = object.fee_and_charges_l ?? "";
1374
- message.fee_and_charges = object.fee_and_charges ?? 0;
1382
+ message.fee_and_charges = object.fee_and_charges ?? undefined;
1375
1383
  message.add_on_l = object.add_on_l ?? "";
1376
1384
  message.total_loan_amount_l = object.total_loan_amount_l ?? "";
1377
1385
  message.loan_amount_l = object.loan_amount_l ?? "";
1378
1386
  message.disbursed_amount_l = object.disbursed_amount_l ?? "";
1379
1387
  message.total_payable_amount_l = object.total_payable_amount_l ?? "";
1380
1388
  message.disbursal_amount_l = object.disbursal_amount_l ?? "";
1381
- message.fcp_interest = object.fcp_interest ?? 0;
1389
+ message.fcp_interest = object.fcp_interest ?? undefined;
1382
1390
  message.number_of_emi_l = object.number_of_emi_l ?? "";
1383
1391
  message.first_emi_amt_l = object.first_emi_amt_l ?? "";
1384
1392
  message.subsequent_emi_l = object.subsequent_emi_l ?? "";
1385
- message.effective_roi = object.effective_roi ?? 0;
1393
+ message.effective_roi = object.effective_roi ?? undefined;
1386
1394
  message.effective_roi_l = object.effective_roi_l ?? "";
1387
- message.effective_annual_roi = object.effective_annual_roi ?? 0;
1395
+ message.effective_annual_roi = object.effective_annual_roi ?? undefined;
1388
1396
  message.effective_annual_roi_l = object.effective_annual_roi_l ?? "";
1389
1397
  message.insurance_l = object.insurance_l ?? "";
1390
1398
  message.emi_card_description = object.emi_card_description ?? "";
1391
1399
  message.bill_card_description = object.bill_card_description ?? "";
1392
1400
  message.installment_amounts = object.installment_amounts ?? "";
1393
- message.apr_title = object.apr_title ?? "";
1394
- message.apr_value = object.apr_value ?? "";
1395
- message.apr_type = object.apr_type ?? "";
1396
- message.credit_line_details_sheet = object.credit_line_details_sheet ?? "";
1397
- message.Acknowledgement = object.Acknowledgement ?? "";
1398
- message.payment_undertaking = object.payment_undertaking ?? "";
1399
- message.key_fact_statement = object.key_fact_statement ?? "";
1400
- message.sanction_letter = object.sanction_letter ?? "";
1401
- message.financing_documents = object.financing_documents ?? "";
1402
- message.max_amount = object.max_amount ?? 0;
1403
- message.credit_report_fees = object.credit_report_fees ?? 0;
1404
- message.credit_report_actual_fees = object.credit_report_actual_fees ?? 0;
1405
- message.plan_id = object.plan_id ?? "";
1406
- message.insurance_title = object.insurance_title ?? "";
1401
+ message.apr_title = object.apr_title ?? undefined;
1402
+ message.apr_value = object.apr_value ?? undefined;
1403
+ 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;
1407
1415
  message.insurance_desc = object.insurance_desc?.map((e) => exports.InsuranceDescItem.fromPartial(e)) || [];
1408
- message.upfront_interest_description = object.upfront_interest_description ?? "";
1416
+ message.upfront_interest_description = object.upfront_interest_description ?? undefined;
1409
1417
  return message;
1410
1418
  },
1411
1419
  };
@@ -98,9 +98,9 @@ export interface GetLocWithdrawlResponse {
98
98
  bill_card_description: string;
99
99
  loan_id?: string | undefined;
100
100
  installment_amounts: string;
101
- apr_title: string;
102
- apr_value: string;
103
- apr_type: string;
101
+ apr_title?: string | undefined;
102
+ apr_value?: string | undefined;
103
+ apr_type?: string | undefined;
104
104
  colender_id?: number | undefined;
105
105
  credit_line_details_sheet?: string | undefined;
106
106
  Acknowledgement?: string | undefined;
@@ -112,14 +112,16 @@ export interface GetLocWithdrawlResponse {
112
112
  agreement_links: AgreementLinks | undefined;
113
113
  max_amount?: number | undefined;
114
114
  credit_report_fees?: number | undefined;
115
- credit_report_actual_fees?: number | undefined;
116
- plan_id?: number | undefined;
117
115
  lender_name?: string | undefined;
118
116
  free_loc_eligible_bank?: string | undefined;
119
117
  insurance_title?: string | undefined;
120
118
  insurance_desc: InsuranceDesc[];
121
119
  upfront_interest_description?: string | undefined;
122
120
  txn_id?: string | undefined;
121
+ credit_report_actual_fees_int?: number | undefined;
122
+ credit_report_actual_fees_str?: string | undefined;
123
+ plan_id_int?: number | undefined;
124
+ plan_id_str?: string | undefined;
123
125
  }
124
126
  export declare const GetLocWithdrawlRequest: {
125
127
  encode(message: GetLocWithdrawlRequest, writer?: _m0.Writer): _m0.Writer;
@@ -584,9 +584,9 @@ function createBaseGetLocWithdrawlResponse() {
584
584
  bill_card_description: "",
585
585
  loan_id: undefined,
586
586
  installment_amounts: "",
587
- apr_title: "",
588
- apr_value: "",
589
- apr_type: "",
587
+ apr_title: undefined,
588
+ apr_value: undefined,
589
+ apr_type: undefined,
590
590
  colender_id: undefined,
591
591
  credit_line_details_sheet: undefined,
592
592
  Acknowledgement: undefined,
@@ -598,14 +598,16 @@ function createBaseGetLocWithdrawlResponse() {
598
598
  agreement_links: undefined,
599
599
  max_amount: undefined,
600
600
  credit_report_fees: undefined,
601
- credit_report_actual_fees: undefined,
602
- plan_id: undefined,
603
601
  lender_name: undefined,
604
602
  free_loc_eligible_bank: undefined,
605
603
  insurance_title: undefined,
606
604
  insurance_desc: [],
607
605
  upfront_interest_description: undefined,
608
606
  txn_id: undefined,
607
+ credit_report_actual_fees_int: undefined,
608
+ credit_report_actual_fees_str: undefined,
609
+ plan_id_int: undefined,
610
+ plan_id_str: undefined,
609
611
  };
610
612
  }
611
613
  exports.GetLocWithdrawlResponse = {
@@ -808,13 +810,13 @@ exports.GetLocWithdrawlResponse = {
808
810
  if (message.installment_amounts !== "") {
809
811
  writer.uint32(530).string(message.installment_amounts);
810
812
  }
811
- if (message.apr_title !== "") {
813
+ if (message.apr_title !== undefined) {
812
814
  writer.uint32(538).string(message.apr_title);
813
815
  }
814
- if (message.apr_value !== "") {
816
+ if (message.apr_value !== undefined) {
815
817
  writer.uint32(546).string(message.apr_value);
816
818
  }
817
- if (message.apr_type !== "") {
819
+ if (message.apr_type !== undefined) {
818
820
  writer.uint32(554).string(message.apr_type);
819
821
  }
820
822
  if (message.colender_id !== undefined) {
@@ -850,17 +852,11 @@ exports.GetLocWithdrawlResponse = {
850
852
  if (message.credit_report_fees !== undefined) {
851
853
  writer.uint32(640).int32(message.credit_report_fees);
852
854
  }
853
- if (message.credit_report_actual_fees !== undefined) {
854
- writer.uint32(648).int32(message.credit_report_actual_fees);
855
- }
856
- if (message.plan_id !== undefined) {
857
- writer.uint32(656).int32(message.plan_id);
858
- }
859
855
  if (message.lender_name !== undefined) {
860
- writer.uint32(666).string(message.lender_name);
856
+ writer.uint32(714).string(message.lender_name);
861
857
  }
862
858
  if (message.free_loc_eligible_bank !== undefined) {
863
- writer.uint32(674).string(message.free_loc_eligible_bank);
859
+ writer.uint32(722).string(message.free_loc_eligible_bank);
864
860
  }
865
861
  if (message.insurance_title !== undefined) {
866
862
  writer.uint32(682).string(message.insurance_title);
@@ -874,6 +870,18 @@ exports.GetLocWithdrawlResponse = {
874
870
  if (message.txn_id !== undefined) {
875
871
  writer.uint32(706).string(message.txn_id);
876
872
  }
873
+ if (message.credit_report_actual_fees_int !== undefined) {
874
+ writer.uint32(648).int32(message.credit_report_actual_fees_int);
875
+ }
876
+ if (message.credit_report_actual_fees_str !== undefined) {
877
+ writer.uint32(658).string(message.credit_report_actual_fees_str);
878
+ }
879
+ if (message.plan_id_int !== undefined) {
880
+ writer.uint32(664).int32(message.plan_id_int);
881
+ }
882
+ if (message.plan_id_str !== undefined) {
883
+ writer.uint32(674).string(message.plan_id_str);
884
+ }
877
885
  return writer;
878
886
  },
879
887
  decode(input, length) {
@@ -1363,26 +1371,14 @@ exports.GetLocWithdrawlResponse = {
1363
1371
  }
1364
1372
  message.credit_report_fees = reader.int32();
1365
1373
  continue;
1366
- case 81:
1367
- if (tag !== 648) {
1368
- break;
1369
- }
1370
- message.credit_report_actual_fees = reader.int32();
1371
- continue;
1372
- case 82:
1373
- if (tag !== 656) {
1374
- break;
1375
- }
1376
- message.plan_id = reader.int32();
1377
- continue;
1378
- case 83:
1379
- if (tag !== 666) {
1374
+ case 89:
1375
+ if (tag !== 714) {
1380
1376
  break;
1381
1377
  }
1382
1378
  message.lender_name = reader.string();
1383
1379
  continue;
1384
- case 84:
1385
- if (tag !== 674) {
1380
+ case 90:
1381
+ if (tag !== 722) {
1386
1382
  break;
1387
1383
  }
1388
1384
  message.free_loc_eligible_bank = reader.string();
@@ -1411,6 +1407,30 @@ exports.GetLocWithdrawlResponse = {
1411
1407
  }
1412
1408
  message.txn_id = reader.string();
1413
1409
  continue;
1410
+ case 81:
1411
+ if (tag !== 648) {
1412
+ break;
1413
+ }
1414
+ message.credit_report_actual_fees_int = reader.int32();
1415
+ continue;
1416
+ case 82:
1417
+ if (tag !== 658) {
1418
+ break;
1419
+ }
1420
+ message.credit_report_actual_fees_str = reader.string();
1421
+ continue;
1422
+ case 83:
1423
+ if (tag !== 664) {
1424
+ break;
1425
+ }
1426
+ message.plan_id_int = reader.int32();
1427
+ continue;
1428
+ case 84:
1429
+ if (tag !== 674) {
1430
+ break;
1431
+ }
1432
+ message.plan_id_str = reader.string();
1433
+ continue;
1414
1434
  }
1415
1435
  if ((tag & 7) === 4 || tag === 0) {
1416
1436
  break;
@@ -1517,9 +1537,9 @@ exports.GetLocWithdrawlResponse = {
1517
1537
  bill_card_description: isSet(object.bill_card_description) ? globalThis.String(object.bill_card_description) : "",
1518
1538
  loan_id: isSet(object.loan_id) ? globalThis.String(object.loan_id) : undefined,
1519
1539
  installment_amounts: isSet(object.installment_amounts) ? globalThis.String(object.installment_amounts) : "",
1520
- apr_title: isSet(object.apr_title) ? globalThis.String(object.apr_title) : "",
1521
- apr_value: isSet(object.apr_value) ? globalThis.String(object.apr_value) : "",
1522
- apr_type: isSet(object.apr_type) ? globalThis.String(object.apr_type) : "",
1540
+ apr_title: isSet(object.apr_title) ? globalThis.String(object.apr_title) : undefined,
1541
+ apr_value: isSet(object.apr_value) ? globalThis.String(object.apr_value) : undefined,
1542
+ apr_type: isSet(object.apr_type) ? globalThis.String(object.apr_type) : undefined,
1523
1543
  colender_id: isSet(object.colender_id) ? globalThis.Number(object.colender_id) : undefined,
1524
1544
  credit_line_details_sheet: isSet(object.credit_line_details_sheet)
1525
1545
  ? globalThis.String(object.credit_line_details_sheet)
@@ -1539,10 +1559,6 @@ exports.GetLocWithdrawlResponse = {
1539
1559
  agreement_links: isSet(object.agreement_links) ? exports.AgreementLinks.fromJSON(object.agreement_links) : undefined,
1540
1560
  max_amount: isSet(object.max_amount) ? globalThis.Number(object.max_amount) : undefined,
1541
1561
  credit_report_fees: isSet(object.credit_report_fees) ? globalThis.Number(object.credit_report_fees) : undefined,
1542
- credit_report_actual_fees: isSet(object.credit_report_actual_fees)
1543
- ? globalThis.Number(object.credit_report_actual_fees)
1544
- : undefined,
1545
- plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : undefined,
1546
1562
  lender_name: isSet(object.lender_name) ? globalThis.String(object.lender_name) : undefined,
1547
1563
  free_loc_eligible_bank: isSet(object.free_loc_eligible_bank)
1548
1564
  ? globalThis.String(object.free_loc_eligible_bank)
@@ -1555,6 +1571,14 @@ exports.GetLocWithdrawlResponse = {
1555
1571
  ? globalThis.String(object.upfront_interest_description)
1556
1572
  : undefined,
1557
1573
  txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : undefined,
1574
+ credit_report_actual_fees_int: isSet(object.credit_report_actual_fees_int)
1575
+ ? globalThis.Number(object.credit_report_actual_fees_int)
1576
+ : undefined,
1577
+ credit_report_actual_fees_str: isSet(object.credit_report_actual_fees_str)
1578
+ ? globalThis.String(object.credit_report_actual_fees_str)
1579
+ : undefined,
1580
+ plan_id_int: isSet(object.plan_id_int) ? globalThis.Number(object.plan_id_int) : undefined,
1581
+ plan_id_str: isSet(object.plan_id_str) ? globalThis.String(object.plan_id_str) : undefined,
1558
1582
  };
1559
1583
  },
1560
1584
  toJSON(message) {
@@ -1757,13 +1781,13 @@ exports.GetLocWithdrawlResponse = {
1757
1781
  if (message.installment_amounts !== "") {
1758
1782
  obj.installment_amounts = message.installment_amounts;
1759
1783
  }
1760
- if (message.apr_title !== "") {
1784
+ if (message.apr_title !== undefined) {
1761
1785
  obj.apr_title = message.apr_title;
1762
1786
  }
1763
- if (message.apr_value !== "") {
1787
+ if (message.apr_value !== undefined) {
1764
1788
  obj.apr_value = message.apr_value;
1765
1789
  }
1766
- if (message.apr_type !== "") {
1790
+ if (message.apr_type !== undefined) {
1767
1791
  obj.apr_type = message.apr_type;
1768
1792
  }
1769
1793
  if (message.colender_id !== undefined) {
@@ -1799,12 +1823,6 @@ exports.GetLocWithdrawlResponse = {
1799
1823
  if (message.credit_report_fees !== undefined) {
1800
1824
  obj.credit_report_fees = Math.round(message.credit_report_fees);
1801
1825
  }
1802
- if (message.credit_report_actual_fees !== undefined) {
1803
- obj.credit_report_actual_fees = Math.round(message.credit_report_actual_fees);
1804
- }
1805
- if (message.plan_id !== undefined) {
1806
- obj.plan_id = Math.round(message.plan_id);
1807
- }
1808
1826
  if (message.lender_name !== undefined) {
1809
1827
  obj.lender_name = message.lender_name;
1810
1828
  }
@@ -1823,6 +1841,18 @@ exports.GetLocWithdrawlResponse = {
1823
1841
  if (message.txn_id !== undefined) {
1824
1842
  obj.txn_id = message.txn_id;
1825
1843
  }
1844
+ if (message.credit_report_actual_fees_int !== undefined) {
1845
+ obj.credit_report_actual_fees_int = Math.round(message.credit_report_actual_fees_int);
1846
+ }
1847
+ if (message.credit_report_actual_fees_str !== undefined) {
1848
+ obj.credit_report_actual_fees_str = message.credit_report_actual_fees_str;
1849
+ }
1850
+ if (message.plan_id_int !== undefined) {
1851
+ obj.plan_id_int = Math.round(message.plan_id_int);
1852
+ }
1853
+ if (message.plan_id_str !== undefined) {
1854
+ obj.plan_id_str = message.plan_id_str;
1855
+ }
1826
1856
  return obj;
1827
1857
  },
1828
1858
  create(base) {
@@ -1896,9 +1926,9 @@ exports.GetLocWithdrawlResponse = {
1896
1926
  message.bill_card_description = object.bill_card_description ?? "";
1897
1927
  message.loan_id = object.loan_id ?? undefined;
1898
1928
  message.installment_amounts = object.installment_amounts ?? "";
1899
- message.apr_title = object.apr_title ?? "";
1900
- message.apr_value = object.apr_value ?? "";
1901
- message.apr_type = object.apr_type ?? "";
1929
+ message.apr_title = object.apr_title ?? undefined;
1930
+ message.apr_value = object.apr_value ?? undefined;
1931
+ message.apr_type = object.apr_type ?? undefined;
1902
1932
  message.colender_id = object.colender_id ?? undefined;
1903
1933
  message.credit_line_details_sheet = object.credit_line_details_sheet ?? undefined;
1904
1934
  message.Acknowledgement = object.Acknowledgement ?? undefined;
@@ -1912,14 +1942,16 @@ exports.GetLocWithdrawlResponse = {
1912
1942
  : undefined;
1913
1943
  message.max_amount = object.max_amount ?? undefined;
1914
1944
  message.credit_report_fees = object.credit_report_fees ?? undefined;
1915
- message.credit_report_actual_fees = object.credit_report_actual_fees ?? undefined;
1916
- message.plan_id = object.plan_id ?? undefined;
1917
1945
  message.lender_name = object.lender_name ?? undefined;
1918
1946
  message.free_loc_eligible_bank = object.free_loc_eligible_bank ?? undefined;
1919
1947
  message.insurance_title = object.insurance_title ?? undefined;
1920
1948
  message.insurance_desc = object.insurance_desc?.map((e) => exports.InsuranceDesc.fromPartial(e)) || [];
1921
1949
  message.upfront_interest_description = object.upfront_interest_description ?? undefined;
1922
1950
  message.txn_id = object.txn_id ?? undefined;
1951
+ message.credit_report_actual_fees_int = object.credit_report_actual_fees_int ?? undefined;
1952
+ message.credit_report_actual_fees_str = object.credit_report_actual_fees_str ?? undefined;
1953
+ message.plan_id_int = object.plan_id_int ?? undefined;
1954
+ message.plan_id_str = object.plan_id_str ?? undefined;
1923
1955
  return message;
1924
1956
  },
1925
1957
  };