@stashfin/grpc 1.2.98 → 1.2.99

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.98",
3
+ "version": "1.2.99",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,35 +1,51 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "loans.loansummary";
3
3
  export interface loanSummaryRequest {
4
+ addons: number;
5
+ amount: number;
6
+ tenure: number;
7
+ emi_amount: number;
4
8
  }
5
9
  export interface loanSummaryResponse {
6
- loc_limit: number;
10
+ gateway_fees: number;
11
+ striked_gateway_fees: number;
7
12
  bill_date: string;
8
- minimum_request_amount: number;
9
- request_amount_increment_step: number;
10
- used_loc: number;
11
- max_tenure: number;
12
- min_tenure: number;
13
+ requested_amount: number;
14
+ tenure: number;
15
+ emi_amount: number;
16
+ net_amount_payable: number;
17
+ first_emi_date: string;
18
+ final_disbursal_amount: number;
19
+ upfront_interest: number;
13
20
  rate_of_interest: number;
14
- exposure_limit_info_popup_heading: string;
15
- exposure_limit_info_popup_body: string;
16
- sanctioned_limit_heading: string;
17
- exposure_limit_heading: string;
18
- request_max_percentage: number;
19
- loc_disable: boolean;
20
- exposure_limit: number;
21
- sanctioned_limit: number;
22
- remaining_sanctioned_limit: number;
23
- sanctioned_limit_info_popup_heading: string;
24
- sanctioned_limit_info_popup_body: string;
21
+ bill_amount: number;
22
+ total_interest_pay: number;
23
+ effective_annual_rate: number;
24
+ transaction_fee_bill_amount: number;
25
+ processing_fee_plus_gst: number;
26
+ trans_fee_plus_gst: number;
27
+ fee_and_charges: number;
28
+ fee_and_charges_bill: number;
29
+ effective_roi: number;
30
+ effective_annual_roi: number;
31
+ emi_card_description: string;
32
+ bill_card_description: string;
33
+ apr_value: number;
34
+ apr_type: string;
35
+ max_amount: number;
36
+ credit_report_fees: number;
37
+ credit_report_actual_fees: number;
38
+ plan_id: number;
39
+ lender_name: string;
40
+ landers_credit_facility_form: string;
25
41
  }
26
42
  export declare const loanSummaryRequest: {
27
- encode(_: loanSummaryRequest, writer?: _m0.Writer): _m0.Writer;
43
+ encode(message: loanSummaryRequest, writer?: _m0.Writer): _m0.Writer;
28
44
  decode(input: _m0.Reader | Uint8Array, length?: number): loanSummaryRequest;
29
- fromJSON(_: any): loanSummaryRequest;
30
- toJSON(_: loanSummaryRequest): unknown;
45
+ fromJSON(object: any): loanSummaryRequest;
46
+ toJSON(message: loanSummaryRequest): unknown;
31
47
  create<I extends Exact<DeepPartial<loanSummaryRequest>, I>>(base?: I): loanSummaryRequest;
32
- fromPartial<I extends Exact<DeepPartial<loanSummaryRequest>, I>>(_: I): loanSummaryRequest;
48
+ fromPartial<I extends Exact<DeepPartial<loanSummaryRequest>, I>>(object: I): loanSummaryRequest;
33
49
  };
34
50
  export declare const loanSummaryResponse: {
35
51
  encode(message: loanSummaryResponse, writer?: _m0.Writer): _m0.Writer;
@@ -13,10 +13,22 @@ exports.loanSummaryResponse = exports.loanSummaryRequest = exports.protobufPacka
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "loans.loansummary";
15
15
  function createBaseloanSummaryRequest() {
16
- return {};
16
+ return { addons: 0, amount: 0, tenure: 0, emi_amount: 0 };
17
17
  }
18
18
  exports.loanSummaryRequest = {
19
- encode(_, writer = minimal_1.default.Writer.create()) {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.addons !== 0) {
21
+ writer.uint32(8).int32(message.addons);
22
+ }
23
+ if (message.amount !== 0) {
24
+ writer.uint32(16).int32(message.amount);
25
+ }
26
+ if (message.tenure !== 0) {
27
+ writer.uint32(24).int32(message.tenure);
28
+ }
29
+ if (message.emi_amount !== 0) {
30
+ writer.uint32(32).int32(message.emi_amount);
31
+ }
20
32
  return writer;
21
33
  },
22
34
  decode(input, length) {
@@ -26,6 +38,30 @@ exports.loanSummaryRequest = {
26
38
  while (reader.pos < end) {
27
39
  const tag = reader.uint32();
28
40
  switch (tag >>> 3) {
41
+ case 1:
42
+ if (tag !== 8) {
43
+ break;
44
+ }
45
+ message.addons = reader.int32();
46
+ continue;
47
+ case 2:
48
+ if (tag !== 16) {
49
+ break;
50
+ }
51
+ message.amount = reader.int32();
52
+ continue;
53
+ case 3:
54
+ if (tag !== 24) {
55
+ break;
56
+ }
57
+ message.tenure = reader.int32();
58
+ continue;
59
+ case 4:
60
+ if (tag !== 32) {
61
+ break;
62
+ }
63
+ message.emi_amount = reader.int32();
64
+ continue;
29
65
  }
30
66
  if ((tag & 7) === 4 || tag === 0) {
31
67
  break;
@@ -34,102 +70,171 @@ exports.loanSummaryRequest = {
34
70
  }
35
71
  return message;
36
72
  },
37
- fromJSON(_) {
38
- return {};
73
+ fromJSON(object) {
74
+ return {
75
+ addons: isSet(object.addons) ? globalThis.Number(object.addons) : 0,
76
+ amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
77
+ tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
78
+ emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : 0,
79
+ };
39
80
  },
40
- toJSON(_) {
81
+ toJSON(message) {
41
82
  const obj = {};
83
+ if (message.addons !== 0) {
84
+ obj.addons = Math.round(message.addons);
85
+ }
86
+ if (message.amount !== 0) {
87
+ obj.amount = Math.round(message.amount);
88
+ }
89
+ if (message.tenure !== 0) {
90
+ obj.tenure = Math.round(message.tenure);
91
+ }
92
+ if (message.emi_amount !== 0) {
93
+ obj.emi_amount = Math.round(message.emi_amount);
94
+ }
42
95
  return obj;
43
96
  },
44
97
  create(base) {
45
98
  return exports.loanSummaryRequest.fromPartial(base ?? {});
46
99
  },
47
- fromPartial(_) {
100
+ fromPartial(object) {
48
101
  const message = createBaseloanSummaryRequest();
102
+ message.addons = object.addons ?? 0;
103
+ message.amount = object.amount ?? 0;
104
+ message.tenure = object.tenure ?? 0;
105
+ message.emi_amount = object.emi_amount ?? 0;
49
106
  return message;
50
107
  },
51
108
  };
52
109
  function createBaseloanSummaryResponse() {
53
110
  return {
54
- loc_limit: 0,
111
+ gateway_fees: 0,
112
+ striked_gateway_fees: 0,
55
113
  bill_date: "",
56
- minimum_request_amount: 0,
57
- request_amount_increment_step: 0,
58
- used_loc: 0,
59
- max_tenure: 0,
60
- min_tenure: 0,
114
+ requested_amount: 0,
115
+ tenure: 0,
116
+ emi_amount: 0,
117
+ net_amount_payable: 0,
118
+ first_emi_date: "",
119
+ final_disbursal_amount: 0,
120
+ upfront_interest: 0,
61
121
  rate_of_interest: 0,
62
- exposure_limit_info_popup_heading: "",
63
- exposure_limit_info_popup_body: "",
64
- sanctioned_limit_heading: "",
65
- exposure_limit_heading: "",
66
- request_max_percentage: 0,
67
- loc_disable: false,
68
- exposure_limit: 0,
69
- sanctioned_limit: 0,
70
- remaining_sanctioned_limit: 0,
71
- sanctioned_limit_info_popup_heading: "",
72
- sanctioned_limit_info_popup_body: "",
122
+ bill_amount: 0,
123
+ total_interest_pay: 0,
124
+ effective_annual_rate: 0,
125
+ transaction_fee_bill_amount: 0,
126
+ processing_fee_plus_gst: 0,
127
+ trans_fee_plus_gst: 0,
128
+ fee_and_charges: 0,
129
+ fee_and_charges_bill: 0,
130
+ effective_roi: 0,
131
+ effective_annual_roi: 0,
132
+ emi_card_description: "",
133
+ bill_card_description: "",
134
+ apr_value: 0,
135
+ apr_type: "",
136
+ max_amount: 0,
137
+ credit_report_fees: 0,
138
+ credit_report_actual_fees: 0,
139
+ plan_id: 0,
140
+ lender_name: "",
141
+ landers_credit_facility_form: "",
73
142
  };
74
143
  }
75
144
  exports.loanSummaryResponse = {
76
145
  encode(message, writer = minimal_1.default.Writer.create()) {
77
- if (message.loc_limit !== 0) {
78
- writer.uint32(8).int32(message.loc_limit);
146
+ if (message.gateway_fees !== 0) {
147
+ writer.uint32(8).int32(message.gateway_fees);
148
+ }
149
+ if (message.striked_gateway_fees !== 0) {
150
+ writer.uint32(16).int32(message.striked_gateway_fees);
79
151
  }
80
152
  if (message.bill_date !== "") {
81
- writer.uint32(18).string(message.bill_date);
153
+ writer.uint32(26).string(message.bill_date);
82
154
  }
83
- if (message.minimum_request_amount !== 0) {
84
- writer.uint32(24).int32(message.minimum_request_amount);
155
+ if (message.requested_amount !== 0) {
156
+ writer.uint32(32).int32(message.requested_amount);
85
157
  }
86
- if (message.request_amount_increment_step !== 0) {
87
- writer.uint32(32).int32(message.request_amount_increment_step);
158
+ if (message.tenure !== 0) {
159
+ writer.uint32(40).int32(message.tenure);
88
160
  }
89
- if (message.used_loc !== 0) {
90
- writer.uint32(40).int32(message.used_loc);
161
+ if (message.emi_amount !== 0) {
162
+ writer.uint32(48).int32(message.emi_amount);
91
163
  }
92
- if (message.max_tenure !== 0) {
93
- writer.uint32(48).int32(message.max_tenure);
164
+ if (message.net_amount_payable !== 0) {
165
+ writer.uint32(56).int32(message.net_amount_payable);
94
166
  }
95
- if (message.min_tenure !== 0) {
96
- writer.uint32(56).int32(message.min_tenure);
167
+ if (message.first_emi_date !== "") {
168
+ writer.uint32(66).string(message.first_emi_date);
169
+ }
170
+ if (message.final_disbursal_amount !== 0) {
171
+ writer.uint32(72).int32(message.final_disbursal_amount);
172
+ }
173
+ if (message.upfront_interest !== 0) {
174
+ writer.uint32(80).int32(message.upfront_interest);
97
175
  }
98
176
  if (message.rate_of_interest !== 0) {
99
- writer.uint32(64).int32(message.rate_of_interest);
177
+ writer.uint32(88).int32(message.rate_of_interest);
178
+ }
179
+ if (message.bill_amount !== 0) {
180
+ writer.uint32(96).int32(message.bill_amount);
181
+ }
182
+ if (message.total_interest_pay !== 0) {
183
+ writer.uint32(104).int32(message.total_interest_pay);
184
+ }
185
+ if (message.effective_annual_rate !== 0) {
186
+ writer.uint32(112).int32(message.effective_annual_rate);
187
+ }
188
+ if (message.transaction_fee_bill_amount !== 0) {
189
+ writer.uint32(120).int32(message.transaction_fee_bill_amount);
100
190
  }
101
- if (message.exposure_limit_info_popup_heading !== "") {
102
- writer.uint32(74).string(message.exposure_limit_info_popup_heading);
191
+ if (message.processing_fee_plus_gst !== 0) {
192
+ writer.uint32(128).int32(message.processing_fee_plus_gst);
103
193
  }
104
- if (message.exposure_limit_info_popup_body !== "") {
105
- writer.uint32(82).string(message.exposure_limit_info_popup_body);
194
+ if (message.trans_fee_plus_gst !== 0) {
195
+ writer.uint32(136).int32(message.trans_fee_plus_gst);
106
196
  }
107
- if (message.sanctioned_limit_heading !== "") {
108
- writer.uint32(90).string(message.sanctioned_limit_heading);
197
+ if (message.fee_and_charges !== 0) {
198
+ writer.uint32(144).int32(message.fee_and_charges);
109
199
  }
110
- if (message.exposure_limit_heading !== "") {
111
- writer.uint32(98).string(message.exposure_limit_heading);
200
+ if (message.fee_and_charges_bill !== 0) {
201
+ writer.uint32(152).int32(message.fee_and_charges_bill);
112
202
  }
113
- if (message.request_max_percentage !== 0) {
114
- writer.uint32(104).int32(message.request_max_percentage);
203
+ if (message.effective_roi !== 0) {
204
+ writer.uint32(160).int32(message.effective_roi);
115
205
  }
116
- if (message.loc_disable !== false) {
117
- writer.uint32(112).bool(message.loc_disable);
206
+ if (message.effective_annual_roi !== 0) {
207
+ writer.uint32(168).int32(message.effective_annual_roi);
118
208
  }
119
- if (message.exposure_limit !== 0) {
120
- writer.uint32(120).int32(message.exposure_limit);
209
+ if (message.emi_card_description !== "") {
210
+ writer.uint32(178).string(message.emi_card_description);
121
211
  }
122
- if (message.sanctioned_limit !== 0) {
123
- writer.uint32(128).int32(message.sanctioned_limit);
212
+ if (message.bill_card_description !== "") {
213
+ writer.uint32(186).string(message.bill_card_description);
124
214
  }
125
- if (message.remaining_sanctioned_limit !== 0) {
126
- writer.uint32(136).int32(message.remaining_sanctioned_limit);
215
+ if (message.apr_value !== 0) {
216
+ writer.uint32(192).int32(message.apr_value);
127
217
  }
128
- if (message.sanctioned_limit_info_popup_heading !== "") {
129
- writer.uint32(146).string(message.sanctioned_limit_info_popup_heading);
218
+ if (message.apr_type !== "") {
219
+ writer.uint32(202).string(message.apr_type);
130
220
  }
131
- if (message.sanctioned_limit_info_popup_body !== "") {
132
- writer.uint32(154).string(message.sanctioned_limit_info_popup_body);
221
+ if (message.max_amount !== 0) {
222
+ writer.uint32(208).int32(message.max_amount);
223
+ }
224
+ if (message.credit_report_fees !== 0) {
225
+ writer.uint32(216).int32(message.credit_report_fees);
226
+ }
227
+ if (message.credit_report_actual_fees !== 0) {
228
+ writer.uint32(224).int32(message.credit_report_actual_fees);
229
+ }
230
+ if (message.plan_id !== 0) {
231
+ writer.uint32(232).int32(message.plan_id);
232
+ }
233
+ if (message.lender_name !== "") {
234
+ writer.uint32(242).string(message.lender_name);
235
+ }
236
+ if (message.landers_credit_facility_form !== "") {
237
+ writer.uint32(250).string(message.landers_credit_facility_form);
133
238
  }
134
239
  return writer;
135
240
  },
@@ -144,115 +249,187 @@ exports.loanSummaryResponse = {
144
249
  if (tag !== 8) {
145
250
  break;
146
251
  }
147
- message.loc_limit = reader.int32();
252
+ message.gateway_fees = reader.int32();
148
253
  continue;
149
254
  case 2:
150
- if (tag !== 18) {
255
+ if (tag !== 16) {
151
256
  break;
152
257
  }
153
- message.bill_date = reader.string();
258
+ message.striked_gateway_fees = reader.int32();
154
259
  continue;
155
260
  case 3:
156
- if (tag !== 24) {
261
+ if (tag !== 26) {
157
262
  break;
158
263
  }
159
- message.minimum_request_amount = reader.int32();
264
+ message.bill_date = reader.string();
160
265
  continue;
161
266
  case 4:
162
267
  if (tag !== 32) {
163
268
  break;
164
269
  }
165
- message.request_amount_increment_step = reader.int32();
270
+ message.requested_amount = reader.int32();
166
271
  continue;
167
272
  case 5:
168
273
  if (tag !== 40) {
169
274
  break;
170
275
  }
171
- message.used_loc = reader.int32();
276
+ message.tenure = reader.int32();
172
277
  continue;
173
278
  case 6:
174
279
  if (tag !== 48) {
175
280
  break;
176
281
  }
177
- message.max_tenure = reader.int32();
282
+ message.emi_amount = reader.int32();
178
283
  continue;
179
284
  case 7:
180
285
  if (tag !== 56) {
181
286
  break;
182
287
  }
183
- message.min_tenure = reader.int32();
288
+ message.net_amount_payable = reader.int32();
184
289
  continue;
185
290
  case 8:
186
- if (tag !== 64) {
291
+ if (tag !== 66) {
187
292
  break;
188
293
  }
189
- message.rate_of_interest = reader.int32();
294
+ message.first_emi_date = reader.string();
190
295
  continue;
191
296
  case 9:
192
- if (tag !== 74) {
297
+ if (tag !== 72) {
193
298
  break;
194
299
  }
195
- message.exposure_limit_info_popup_heading = reader.string();
300
+ message.final_disbursal_amount = reader.int32();
196
301
  continue;
197
302
  case 10:
198
- if (tag !== 82) {
303
+ if (tag !== 80) {
199
304
  break;
200
305
  }
201
- message.exposure_limit_info_popup_body = reader.string();
306
+ message.upfront_interest = reader.int32();
202
307
  continue;
203
308
  case 11:
204
- if (tag !== 90) {
309
+ if (tag !== 88) {
205
310
  break;
206
311
  }
207
- message.sanctioned_limit_heading = reader.string();
312
+ message.rate_of_interest = reader.int32();
208
313
  continue;
209
314
  case 12:
210
- if (tag !== 98) {
315
+ if (tag !== 96) {
211
316
  break;
212
317
  }
213
- message.exposure_limit_heading = reader.string();
318
+ message.bill_amount = reader.int32();
214
319
  continue;
215
320
  case 13:
216
321
  if (tag !== 104) {
217
322
  break;
218
323
  }
219
- message.request_max_percentage = reader.int32();
324
+ message.total_interest_pay = reader.int32();
220
325
  continue;
221
326
  case 14:
222
327
  if (tag !== 112) {
223
328
  break;
224
329
  }
225
- message.loc_disable = reader.bool();
330
+ message.effective_annual_rate = reader.int32();
226
331
  continue;
227
332
  case 15:
228
333
  if (tag !== 120) {
229
334
  break;
230
335
  }
231
- message.exposure_limit = reader.int32();
336
+ message.transaction_fee_bill_amount = reader.int32();
232
337
  continue;
233
338
  case 16:
234
339
  if (tag !== 128) {
235
340
  break;
236
341
  }
237
- message.sanctioned_limit = reader.int32();
342
+ message.processing_fee_plus_gst = reader.int32();
238
343
  continue;
239
344
  case 17:
240
345
  if (tag !== 136) {
241
346
  break;
242
347
  }
243
- message.remaining_sanctioned_limit = reader.int32();
348
+ message.trans_fee_plus_gst = reader.int32();
244
349
  continue;
245
350
  case 18:
246
- if (tag !== 146) {
351
+ if (tag !== 144) {
247
352
  break;
248
353
  }
249
- message.sanctioned_limit_info_popup_heading = reader.string();
354
+ message.fee_and_charges = reader.int32();
250
355
  continue;
251
356
  case 19:
252
- if (tag !== 154) {
357
+ if (tag !== 152) {
358
+ break;
359
+ }
360
+ message.fee_and_charges_bill = reader.int32();
361
+ continue;
362
+ case 20:
363
+ if (tag !== 160) {
253
364
  break;
254
365
  }
255
- message.sanctioned_limit_info_popup_body = reader.string();
366
+ message.effective_roi = reader.int32();
367
+ continue;
368
+ case 21:
369
+ if (tag !== 168) {
370
+ break;
371
+ }
372
+ message.effective_annual_roi = reader.int32();
373
+ continue;
374
+ case 22:
375
+ if (tag !== 178) {
376
+ break;
377
+ }
378
+ message.emi_card_description = reader.string();
379
+ continue;
380
+ case 23:
381
+ if (tag !== 186) {
382
+ break;
383
+ }
384
+ message.bill_card_description = reader.string();
385
+ continue;
386
+ case 24:
387
+ if (tag !== 192) {
388
+ break;
389
+ }
390
+ message.apr_value = reader.int32();
391
+ continue;
392
+ case 25:
393
+ if (tag !== 202) {
394
+ break;
395
+ }
396
+ message.apr_type = reader.string();
397
+ continue;
398
+ case 26:
399
+ if (tag !== 208) {
400
+ break;
401
+ }
402
+ message.max_amount = reader.int32();
403
+ continue;
404
+ case 27:
405
+ if (tag !== 216) {
406
+ break;
407
+ }
408
+ message.credit_report_fees = reader.int32();
409
+ continue;
410
+ case 28:
411
+ if (tag !== 224) {
412
+ break;
413
+ }
414
+ message.credit_report_actual_fees = reader.int32();
415
+ continue;
416
+ case 29:
417
+ if (tag !== 232) {
418
+ break;
419
+ }
420
+ message.plan_id = reader.int32();
421
+ continue;
422
+ case 30:
423
+ if (tag !== 242) {
424
+ break;
425
+ }
426
+ message.lender_name = reader.string();
427
+ continue;
428
+ case 31:
429
+ if (tag !== 250) {
430
+ break;
431
+ }
432
+ message.landers_credit_facility_form = reader.string();
256
433
  continue;
257
434
  }
258
435
  if ((tag & 7) === 4 || tag === 0) {
@@ -264,105 +441,143 @@ exports.loanSummaryResponse = {
264
441
  },
265
442
  fromJSON(object) {
266
443
  return {
267
- loc_limit: isSet(object.loc_limit) ? globalThis.Number(object.loc_limit) : 0,
444
+ gateway_fees: isSet(object.gateway_fees) ? globalThis.Number(object.gateway_fees) : 0,
445
+ striked_gateway_fees: isSet(object.striked_gateway_fees) ? globalThis.Number(object.striked_gateway_fees) : 0,
268
446
  bill_date: isSet(object.bill_date) ? globalThis.String(object.bill_date) : "",
269
- minimum_request_amount: isSet(object.minimum_request_amount)
270
- ? globalThis.Number(object.minimum_request_amount)
447
+ requested_amount: isSet(object.requested_amount) ? globalThis.Number(object.requested_amount) : 0,
448
+ tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
449
+ emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : 0,
450
+ net_amount_payable: isSet(object.net_amount_payable) ? globalThis.Number(object.net_amount_payable) : 0,
451
+ first_emi_date: isSet(object.first_emi_date) ? globalThis.String(object.first_emi_date) : "",
452
+ final_disbursal_amount: isSet(object.final_disbursal_amount)
453
+ ? globalThis.Number(object.final_disbursal_amount)
271
454
  : 0,
272
- request_amount_increment_step: isSet(object.request_amount_increment_step)
273
- ? globalThis.Number(object.request_amount_increment_step)
274
- : 0,
275
- used_loc: isSet(object.used_loc) ? globalThis.Number(object.used_loc) : 0,
276
- max_tenure: isSet(object.max_tenure) ? globalThis.Number(object.max_tenure) : 0,
277
- min_tenure: isSet(object.min_tenure) ? globalThis.Number(object.min_tenure) : 0,
455
+ upfront_interest: isSet(object.upfront_interest) ? globalThis.Number(object.upfront_interest) : 0,
278
456
  rate_of_interest: isSet(object.rate_of_interest) ? globalThis.Number(object.rate_of_interest) : 0,
279
- exposure_limit_info_popup_heading: isSet(object.exposure_limit_info_popup_heading)
280
- ? globalThis.String(object.exposure_limit_info_popup_heading)
281
- : "",
282
- exposure_limit_info_popup_body: isSet(object.exposure_limit_info_popup_body)
283
- ? globalThis.String(object.exposure_limit_info_popup_body)
284
- : "",
285
- sanctioned_limit_heading: isSet(object.sanctioned_limit_heading)
286
- ? globalThis.String(object.sanctioned_limit_heading)
287
- : "",
288
- exposure_limit_heading: isSet(object.exposure_limit_heading)
289
- ? globalThis.String(object.exposure_limit_heading)
290
- : "",
291
- request_max_percentage: isSet(object.request_max_percentage)
292
- ? globalThis.Number(object.request_max_percentage)
457
+ bill_amount: isSet(object.bill_amount) ? globalThis.Number(object.bill_amount) : 0,
458
+ total_interest_pay: isSet(object.total_interest_pay) ? globalThis.Number(object.total_interest_pay) : 0,
459
+ effective_annual_rate: isSet(object.effective_annual_rate) ? globalThis.Number(object.effective_annual_rate) : 0,
460
+ transaction_fee_bill_amount: isSet(object.transaction_fee_bill_amount)
461
+ ? globalThis.Number(object.transaction_fee_bill_amount)
293
462
  : 0,
294
- loc_disable: isSet(object.loc_disable) ? globalThis.Boolean(object.loc_disable) : false,
295
- exposure_limit: isSet(object.exposure_limit) ? globalThis.Number(object.exposure_limit) : 0,
296
- sanctioned_limit: isSet(object.sanctioned_limit) ? globalThis.Number(object.sanctioned_limit) : 0,
297
- remaining_sanctioned_limit: isSet(object.remaining_sanctioned_limit)
298
- ? globalThis.Number(object.remaining_sanctioned_limit)
463
+ processing_fee_plus_gst: isSet(object.processing_fee_plus_gst)
464
+ ? globalThis.Number(object.processing_fee_plus_gst)
299
465
  : 0,
300
- sanctioned_limit_info_popup_heading: isSet(object.sanctioned_limit_info_popup_heading)
301
- ? globalThis.String(object.sanctioned_limit_info_popup_heading)
302
- : "",
303
- sanctioned_limit_info_popup_body: isSet(object.sanctioned_limit_info_popup_body)
304
- ? globalThis.String(object.sanctioned_limit_info_popup_body)
466
+ trans_fee_plus_gst: isSet(object.trans_fee_plus_gst) ? globalThis.Number(object.trans_fee_plus_gst) : 0,
467
+ fee_and_charges: isSet(object.fee_and_charges) ? globalThis.Number(object.fee_and_charges) : 0,
468
+ fee_and_charges_bill: isSet(object.fee_and_charges_bill) ? globalThis.Number(object.fee_and_charges_bill) : 0,
469
+ effective_roi: isSet(object.effective_roi) ? globalThis.Number(object.effective_roi) : 0,
470
+ effective_annual_roi: isSet(object.effective_annual_roi) ? globalThis.Number(object.effective_annual_roi) : 0,
471
+ emi_card_description: isSet(object.emi_card_description) ? globalThis.String(object.emi_card_description) : "",
472
+ bill_card_description: isSet(object.bill_card_description) ? globalThis.String(object.bill_card_description) : "",
473
+ apr_value: isSet(object.apr_value) ? globalThis.Number(object.apr_value) : 0,
474
+ apr_type: isSet(object.apr_type) ? globalThis.String(object.apr_type) : "",
475
+ max_amount: isSet(object.max_amount) ? globalThis.Number(object.max_amount) : 0,
476
+ credit_report_fees: isSet(object.credit_report_fees) ? globalThis.Number(object.credit_report_fees) : 0,
477
+ credit_report_actual_fees: isSet(object.credit_report_actual_fees)
478
+ ? globalThis.Number(object.credit_report_actual_fees)
479
+ : 0,
480
+ plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
481
+ lender_name: isSet(object.lender_name) ? globalThis.String(object.lender_name) : "",
482
+ landers_credit_facility_form: isSet(object.landers_credit_facility_form)
483
+ ? globalThis.String(object.landers_credit_facility_form)
305
484
  : "",
306
485
  };
307
486
  },
308
487
  toJSON(message) {
309
488
  const obj = {};
310
- if (message.loc_limit !== 0) {
311
- obj.loc_limit = Math.round(message.loc_limit);
489
+ if (message.gateway_fees !== 0) {
490
+ obj.gateway_fees = Math.round(message.gateway_fees);
491
+ }
492
+ if (message.striked_gateway_fees !== 0) {
493
+ obj.striked_gateway_fees = Math.round(message.striked_gateway_fees);
312
494
  }
313
495
  if (message.bill_date !== "") {
314
496
  obj.bill_date = message.bill_date;
315
497
  }
316
- if (message.minimum_request_amount !== 0) {
317
- obj.minimum_request_amount = Math.round(message.minimum_request_amount);
498
+ if (message.requested_amount !== 0) {
499
+ obj.requested_amount = Math.round(message.requested_amount);
500
+ }
501
+ if (message.tenure !== 0) {
502
+ obj.tenure = Math.round(message.tenure);
503
+ }
504
+ if (message.emi_amount !== 0) {
505
+ obj.emi_amount = Math.round(message.emi_amount);
318
506
  }
319
- if (message.request_amount_increment_step !== 0) {
320
- obj.request_amount_increment_step = Math.round(message.request_amount_increment_step);
507
+ if (message.net_amount_payable !== 0) {
508
+ obj.net_amount_payable = Math.round(message.net_amount_payable);
321
509
  }
322
- if (message.used_loc !== 0) {
323
- obj.used_loc = Math.round(message.used_loc);
510
+ if (message.first_emi_date !== "") {
511
+ obj.first_emi_date = message.first_emi_date;
324
512
  }
325
- if (message.max_tenure !== 0) {
326
- obj.max_tenure = Math.round(message.max_tenure);
513
+ if (message.final_disbursal_amount !== 0) {
514
+ obj.final_disbursal_amount = Math.round(message.final_disbursal_amount);
327
515
  }
328
- if (message.min_tenure !== 0) {
329
- obj.min_tenure = Math.round(message.min_tenure);
516
+ if (message.upfront_interest !== 0) {
517
+ obj.upfront_interest = Math.round(message.upfront_interest);
330
518
  }
331
519
  if (message.rate_of_interest !== 0) {
332
520
  obj.rate_of_interest = Math.round(message.rate_of_interest);
333
521
  }
334
- if (message.exposure_limit_info_popup_heading !== "") {
335
- obj.exposure_limit_info_popup_heading = message.exposure_limit_info_popup_heading;
522
+ if (message.bill_amount !== 0) {
523
+ obj.bill_amount = Math.round(message.bill_amount);
524
+ }
525
+ if (message.total_interest_pay !== 0) {
526
+ obj.total_interest_pay = Math.round(message.total_interest_pay);
527
+ }
528
+ if (message.effective_annual_rate !== 0) {
529
+ obj.effective_annual_rate = Math.round(message.effective_annual_rate);
530
+ }
531
+ if (message.transaction_fee_bill_amount !== 0) {
532
+ obj.transaction_fee_bill_amount = Math.round(message.transaction_fee_bill_amount);
533
+ }
534
+ if (message.processing_fee_plus_gst !== 0) {
535
+ obj.processing_fee_plus_gst = Math.round(message.processing_fee_plus_gst);
536
+ }
537
+ if (message.trans_fee_plus_gst !== 0) {
538
+ obj.trans_fee_plus_gst = Math.round(message.trans_fee_plus_gst);
539
+ }
540
+ if (message.fee_and_charges !== 0) {
541
+ obj.fee_and_charges = Math.round(message.fee_and_charges);
542
+ }
543
+ if (message.fee_and_charges_bill !== 0) {
544
+ obj.fee_and_charges_bill = Math.round(message.fee_and_charges_bill);
545
+ }
546
+ if (message.effective_roi !== 0) {
547
+ obj.effective_roi = Math.round(message.effective_roi);
548
+ }
549
+ if (message.effective_annual_roi !== 0) {
550
+ obj.effective_annual_roi = Math.round(message.effective_annual_roi);
336
551
  }
337
- if (message.exposure_limit_info_popup_body !== "") {
338
- obj.exposure_limit_info_popup_body = message.exposure_limit_info_popup_body;
552
+ if (message.emi_card_description !== "") {
553
+ obj.emi_card_description = message.emi_card_description;
339
554
  }
340
- if (message.sanctioned_limit_heading !== "") {
341
- obj.sanctioned_limit_heading = message.sanctioned_limit_heading;
555
+ if (message.bill_card_description !== "") {
556
+ obj.bill_card_description = message.bill_card_description;
342
557
  }
343
- if (message.exposure_limit_heading !== "") {
344
- obj.exposure_limit_heading = message.exposure_limit_heading;
558
+ if (message.apr_value !== 0) {
559
+ obj.apr_value = Math.round(message.apr_value);
345
560
  }
346
- if (message.request_max_percentage !== 0) {
347
- obj.request_max_percentage = Math.round(message.request_max_percentage);
561
+ if (message.apr_type !== "") {
562
+ obj.apr_type = message.apr_type;
348
563
  }
349
- if (message.loc_disable !== false) {
350
- obj.loc_disable = message.loc_disable;
564
+ if (message.max_amount !== 0) {
565
+ obj.max_amount = Math.round(message.max_amount);
351
566
  }
352
- if (message.exposure_limit !== 0) {
353
- obj.exposure_limit = Math.round(message.exposure_limit);
567
+ if (message.credit_report_fees !== 0) {
568
+ obj.credit_report_fees = Math.round(message.credit_report_fees);
354
569
  }
355
- if (message.sanctioned_limit !== 0) {
356
- obj.sanctioned_limit = Math.round(message.sanctioned_limit);
570
+ if (message.credit_report_actual_fees !== 0) {
571
+ obj.credit_report_actual_fees = Math.round(message.credit_report_actual_fees);
357
572
  }
358
- if (message.remaining_sanctioned_limit !== 0) {
359
- obj.remaining_sanctioned_limit = Math.round(message.remaining_sanctioned_limit);
573
+ if (message.plan_id !== 0) {
574
+ obj.plan_id = Math.round(message.plan_id);
360
575
  }
361
- if (message.sanctioned_limit_info_popup_heading !== "") {
362
- obj.sanctioned_limit_info_popup_heading = message.sanctioned_limit_info_popup_heading;
576
+ if (message.lender_name !== "") {
577
+ obj.lender_name = message.lender_name;
363
578
  }
364
- if (message.sanctioned_limit_info_popup_body !== "") {
365
- obj.sanctioned_limit_info_popup_body = message.sanctioned_limit_info_popup_body;
579
+ if (message.landers_credit_facility_form !== "") {
580
+ obj.landers_credit_facility_form = message.landers_credit_facility_form;
366
581
  }
367
582
  return obj;
368
583
  },
@@ -371,25 +586,37 @@ exports.loanSummaryResponse = {
371
586
  },
372
587
  fromPartial(object) {
373
588
  const message = createBaseloanSummaryResponse();
374
- message.loc_limit = object.loc_limit ?? 0;
589
+ message.gateway_fees = object.gateway_fees ?? 0;
590
+ message.striked_gateway_fees = object.striked_gateway_fees ?? 0;
375
591
  message.bill_date = object.bill_date ?? "";
376
- message.minimum_request_amount = object.minimum_request_amount ?? 0;
377
- message.request_amount_increment_step = object.request_amount_increment_step ?? 0;
378
- message.used_loc = object.used_loc ?? 0;
379
- message.max_tenure = object.max_tenure ?? 0;
380
- message.min_tenure = object.min_tenure ?? 0;
592
+ message.requested_amount = object.requested_amount ?? 0;
593
+ message.tenure = object.tenure ?? 0;
594
+ message.emi_amount = object.emi_amount ?? 0;
595
+ message.net_amount_payable = object.net_amount_payable ?? 0;
596
+ message.first_emi_date = object.first_emi_date ?? "";
597
+ message.final_disbursal_amount = object.final_disbursal_amount ?? 0;
598
+ message.upfront_interest = object.upfront_interest ?? 0;
381
599
  message.rate_of_interest = object.rate_of_interest ?? 0;
382
- message.exposure_limit_info_popup_heading = object.exposure_limit_info_popup_heading ?? "";
383
- message.exposure_limit_info_popup_body = object.exposure_limit_info_popup_body ?? "";
384
- message.sanctioned_limit_heading = object.sanctioned_limit_heading ?? "";
385
- message.exposure_limit_heading = object.exposure_limit_heading ?? "";
386
- message.request_max_percentage = object.request_max_percentage ?? 0;
387
- message.loc_disable = object.loc_disable ?? false;
388
- message.exposure_limit = object.exposure_limit ?? 0;
389
- message.sanctioned_limit = object.sanctioned_limit ?? 0;
390
- message.remaining_sanctioned_limit = object.remaining_sanctioned_limit ?? 0;
391
- message.sanctioned_limit_info_popup_heading = object.sanctioned_limit_info_popup_heading ?? "";
392
- message.sanctioned_limit_info_popup_body = object.sanctioned_limit_info_popup_body ?? "";
600
+ message.bill_amount = object.bill_amount ?? 0;
601
+ message.total_interest_pay = object.total_interest_pay ?? 0;
602
+ message.effective_annual_rate = object.effective_annual_rate ?? 0;
603
+ message.transaction_fee_bill_amount = object.transaction_fee_bill_amount ?? 0;
604
+ message.processing_fee_plus_gst = object.processing_fee_plus_gst ?? 0;
605
+ message.trans_fee_plus_gst = object.trans_fee_plus_gst ?? 0;
606
+ message.fee_and_charges = object.fee_and_charges ?? 0;
607
+ message.fee_and_charges_bill = object.fee_and_charges_bill ?? 0;
608
+ message.effective_roi = object.effective_roi ?? 0;
609
+ message.effective_annual_roi = object.effective_annual_roi ?? 0;
610
+ message.emi_card_description = object.emi_card_description ?? "";
611
+ message.bill_card_description = object.bill_card_description ?? "";
612
+ message.apr_value = object.apr_value ?? 0;
613
+ message.apr_type = object.apr_type ?? "";
614
+ message.max_amount = object.max_amount ?? 0;
615
+ message.credit_report_fees = object.credit_report_fees ?? 0;
616
+ message.credit_report_actual_fees = object.credit_report_actual_fees ?? 0;
617
+ message.plan_id = object.plan_id ?? 0;
618
+ message.lender_name = object.lender_name ?? "";
619
+ message.landers_credit_facility_form = object.landers_credit_facility_form ?? "";
393
620
  return message;
394
621
  },
395
622
  };