@stashfin/grpc 1.2.98 → 1.2.100
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 +1 -1
- package/ts/loans/creditlimit.d.ts +6 -0
- package/ts/loans/creditlimit.js +102 -0
- package/ts/loans/getsummarystaticfields.d.ts +80 -0
- package/ts/loans/getsummarystaticfields.js +700 -0
- package/ts/loans/loansummary.d.ts +37 -21
- package/ts/loans/loansummary.js +398 -171
- package/ts/loans.d.ts +11 -11
- package/ts/loans.js +7 -7
package/ts/loans/loansummary.js
CHANGED
|
@@ -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(
|
|
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
|
-
|
|
111
|
+
gateway_fees: 0,
|
|
112
|
+
striked_gateway_fees: 0,
|
|
55
113
|
bill_date: "",
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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.
|
|
78
|
-
writer.uint32(8).int32(message.
|
|
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(
|
|
153
|
+
writer.uint32(26).string(message.bill_date);
|
|
82
154
|
}
|
|
83
|
-
if (message.
|
|
84
|
-
writer.uint32(
|
|
155
|
+
if (message.requested_amount !== 0) {
|
|
156
|
+
writer.uint32(32).int32(message.requested_amount);
|
|
85
157
|
}
|
|
86
|
-
if (message.
|
|
87
|
-
writer.uint32(
|
|
158
|
+
if (message.tenure !== 0) {
|
|
159
|
+
writer.uint32(40).int32(message.tenure);
|
|
88
160
|
}
|
|
89
|
-
if (message.
|
|
90
|
-
writer.uint32(
|
|
161
|
+
if (message.emi_amount !== 0) {
|
|
162
|
+
writer.uint32(48).int32(message.emi_amount);
|
|
91
163
|
}
|
|
92
|
-
if (message.
|
|
93
|
-
writer.uint32(
|
|
164
|
+
if (message.net_amount_payable !== 0) {
|
|
165
|
+
writer.uint32(56).int32(message.net_amount_payable);
|
|
94
166
|
}
|
|
95
|
-
if (message.
|
|
96
|
-
writer.uint32(
|
|
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(
|
|
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.
|
|
102
|
-
writer.uint32(
|
|
191
|
+
if (message.processing_fee_plus_gst !== 0) {
|
|
192
|
+
writer.uint32(128).int32(message.processing_fee_plus_gst);
|
|
103
193
|
}
|
|
104
|
-
if (message.
|
|
105
|
-
writer.uint32(
|
|
194
|
+
if (message.trans_fee_plus_gst !== 0) {
|
|
195
|
+
writer.uint32(136).int32(message.trans_fee_plus_gst);
|
|
106
196
|
}
|
|
107
|
-
if (message.
|
|
108
|
-
writer.uint32(
|
|
197
|
+
if (message.fee_and_charges !== 0) {
|
|
198
|
+
writer.uint32(144).int32(message.fee_and_charges);
|
|
109
199
|
}
|
|
110
|
-
if (message.
|
|
111
|
-
writer.uint32(
|
|
200
|
+
if (message.fee_and_charges_bill !== 0) {
|
|
201
|
+
writer.uint32(152).int32(message.fee_and_charges_bill);
|
|
112
202
|
}
|
|
113
|
-
if (message.
|
|
114
|
-
writer.uint32(
|
|
203
|
+
if (message.effective_roi !== 0) {
|
|
204
|
+
writer.uint32(160).int32(message.effective_roi);
|
|
115
205
|
}
|
|
116
|
-
if (message.
|
|
117
|
-
writer.uint32(
|
|
206
|
+
if (message.effective_annual_roi !== 0) {
|
|
207
|
+
writer.uint32(168).int32(message.effective_annual_roi);
|
|
118
208
|
}
|
|
119
|
-
if (message.
|
|
120
|
-
writer.uint32(
|
|
209
|
+
if (message.emi_card_description !== "") {
|
|
210
|
+
writer.uint32(178).string(message.emi_card_description);
|
|
121
211
|
}
|
|
122
|
-
if (message.
|
|
123
|
-
writer.uint32(
|
|
212
|
+
if (message.bill_card_description !== "") {
|
|
213
|
+
writer.uint32(186).string(message.bill_card_description);
|
|
124
214
|
}
|
|
125
|
-
if (message.
|
|
126
|
-
writer.uint32(
|
|
215
|
+
if (message.apr_value !== 0) {
|
|
216
|
+
writer.uint32(192).int32(message.apr_value);
|
|
127
217
|
}
|
|
128
|
-
if (message.
|
|
129
|
-
writer.uint32(
|
|
218
|
+
if (message.apr_type !== "") {
|
|
219
|
+
writer.uint32(202).string(message.apr_type);
|
|
130
220
|
}
|
|
131
|
-
if (message.
|
|
132
|
-
writer.uint32(
|
|
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.
|
|
252
|
+
message.gateway_fees = reader.int32();
|
|
148
253
|
continue;
|
|
149
254
|
case 2:
|
|
150
|
-
if (tag !==
|
|
255
|
+
if (tag !== 16) {
|
|
151
256
|
break;
|
|
152
257
|
}
|
|
153
|
-
message.
|
|
258
|
+
message.striked_gateway_fees = reader.int32();
|
|
154
259
|
continue;
|
|
155
260
|
case 3:
|
|
156
|
-
if (tag !==
|
|
261
|
+
if (tag !== 26) {
|
|
157
262
|
break;
|
|
158
263
|
}
|
|
159
|
-
message.
|
|
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.
|
|
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.
|
|
276
|
+
message.tenure = reader.int32();
|
|
172
277
|
continue;
|
|
173
278
|
case 6:
|
|
174
279
|
if (tag !== 48) {
|
|
175
280
|
break;
|
|
176
281
|
}
|
|
177
|
-
message.
|
|
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.
|
|
288
|
+
message.net_amount_payable = reader.int32();
|
|
184
289
|
continue;
|
|
185
290
|
case 8:
|
|
186
|
-
if (tag !==
|
|
291
|
+
if (tag !== 66) {
|
|
187
292
|
break;
|
|
188
293
|
}
|
|
189
|
-
message.
|
|
294
|
+
message.first_emi_date = reader.string();
|
|
190
295
|
continue;
|
|
191
296
|
case 9:
|
|
192
|
-
if (tag !==
|
|
297
|
+
if (tag !== 72) {
|
|
193
298
|
break;
|
|
194
299
|
}
|
|
195
|
-
message.
|
|
300
|
+
message.final_disbursal_amount = reader.int32();
|
|
196
301
|
continue;
|
|
197
302
|
case 10:
|
|
198
|
-
if (tag !==
|
|
303
|
+
if (tag !== 80) {
|
|
199
304
|
break;
|
|
200
305
|
}
|
|
201
|
-
message.
|
|
306
|
+
message.upfront_interest = reader.int32();
|
|
202
307
|
continue;
|
|
203
308
|
case 11:
|
|
204
|
-
if (tag !==
|
|
309
|
+
if (tag !== 88) {
|
|
205
310
|
break;
|
|
206
311
|
}
|
|
207
|
-
message.
|
|
312
|
+
message.rate_of_interest = reader.int32();
|
|
208
313
|
continue;
|
|
209
314
|
case 12:
|
|
210
|
-
if (tag !==
|
|
315
|
+
if (tag !== 96) {
|
|
211
316
|
break;
|
|
212
317
|
}
|
|
213
|
-
message.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
348
|
+
message.trans_fee_plus_gst = reader.int32();
|
|
244
349
|
continue;
|
|
245
350
|
case 18:
|
|
246
|
-
if (tag !==
|
|
351
|
+
if (tag !== 144) {
|
|
247
352
|
break;
|
|
248
353
|
}
|
|
249
|
-
message.
|
|
354
|
+
message.fee_and_charges = reader.int32();
|
|
250
355
|
continue;
|
|
251
356
|
case 19:
|
|
252
|
-
if (tag !==
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
270
|
-
|
|
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
|
-
|
|
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
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
? globalThis.
|
|
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
|
-
|
|
295
|
-
|
|
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
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
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.
|
|
311
|
-
obj.
|
|
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.
|
|
317
|
-
obj.
|
|
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.
|
|
320
|
-
obj.
|
|
507
|
+
if (message.net_amount_payable !== 0) {
|
|
508
|
+
obj.net_amount_payable = Math.round(message.net_amount_payable);
|
|
321
509
|
}
|
|
322
|
-
if (message.
|
|
323
|
-
obj.
|
|
510
|
+
if (message.first_emi_date !== "") {
|
|
511
|
+
obj.first_emi_date = message.first_emi_date;
|
|
324
512
|
}
|
|
325
|
-
if (message.
|
|
326
|
-
obj.
|
|
513
|
+
if (message.final_disbursal_amount !== 0) {
|
|
514
|
+
obj.final_disbursal_amount = Math.round(message.final_disbursal_amount);
|
|
327
515
|
}
|
|
328
|
-
if (message.
|
|
329
|
-
obj.
|
|
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.
|
|
335
|
-
obj.
|
|
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.
|
|
338
|
-
obj.
|
|
552
|
+
if (message.emi_card_description !== "") {
|
|
553
|
+
obj.emi_card_description = message.emi_card_description;
|
|
339
554
|
}
|
|
340
|
-
if (message.
|
|
341
|
-
obj.
|
|
555
|
+
if (message.bill_card_description !== "") {
|
|
556
|
+
obj.bill_card_description = message.bill_card_description;
|
|
342
557
|
}
|
|
343
|
-
if (message.
|
|
344
|
-
obj.
|
|
558
|
+
if (message.apr_value !== 0) {
|
|
559
|
+
obj.apr_value = Math.round(message.apr_value);
|
|
345
560
|
}
|
|
346
|
-
if (message.
|
|
347
|
-
obj.
|
|
561
|
+
if (message.apr_type !== "") {
|
|
562
|
+
obj.apr_type = message.apr_type;
|
|
348
563
|
}
|
|
349
|
-
if (message.
|
|
350
|
-
obj.
|
|
564
|
+
if (message.max_amount !== 0) {
|
|
565
|
+
obj.max_amount = Math.round(message.max_amount);
|
|
351
566
|
}
|
|
352
|
-
if (message.
|
|
353
|
-
obj.
|
|
567
|
+
if (message.credit_report_fees !== 0) {
|
|
568
|
+
obj.credit_report_fees = Math.round(message.credit_report_fees);
|
|
354
569
|
}
|
|
355
|
-
if (message.
|
|
356
|
-
obj.
|
|
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.
|
|
359
|
-
obj.
|
|
573
|
+
if (message.plan_id !== 0) {
|
|
574
|
+
obj.plan_id = Math.round(message.plan_id);
|
|
360
575
|
}
|
|
361
|
-
if (message.
|
|
362
|
-
obj.
|
|
576
|
+
if (message.lender_name !== "") {
|
|
577
|
+
obj.lender_name = message.lender_name;
|
|
363
578
|
}
|
|
364
|
-
if (message.
|
|
365
|
-
obj.
|
|
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.
|
|
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.
|
|
377
|
-
message.
|
|
378
|
-
message.
|
|
379
|
-
message.
|
|
380
|
-
message.
|
|
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.
|
|
383
|
-
message.
|
|
384
|
-
message.
|
|
385
|
-
message.
|
|
386
|
-
message.
|
|
387
|
-
message.
|
|
388
|
-
message.
|
|
389
|
-
message.
|
|
390
|
-
message.
|
|
391
|
-
message.
|
|
392
|
-
message.
|
|
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
|
};
|