@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/package.json
CHANGED
|
@@ -15,6 +15,12 @@ export interface creditLimitResponse {
|
|
|
15
15
|
minimum_request_amount: number;
|
|
16
16
|
sanctioned_limit: number;
|
|
17
17
|
remaining_sanctioned_limit: number;
|
|
18
|
+
sanctioned_limit_info_popup_heading: string;
|
|
19
|
+
sanctioned_limit_info_popup_body: string;
|
|
20
|
+
exposure_limit_info_popup_heading: string;
|
|
21
|
+
exposure_limit_info_popup_body: string;
|
|
22
|
+
sanctioned_limit_heading: string;
|
|
23
|
+
exposure_limit_heading: string;
|
|
18
24
|
}
|
|
19
25
|
export declare const creditLimitRequest: {
|
|
20
26
|
encode(_: creditLimitRequest, writer?: _m0.Writer): _m0.Writer;
|
package/ts/loans/creditlimit.js
CHANGED
|
@@ -63,6 +63,12 @@ function createBasecreditLimitResponse() {
|
|
|
63
63
|
minimum_request_amount: 0,
|
|
64
64
|
sanctioned_limit: 0,
|
|
65
65
|
remaining_sanctioned_limit: 0,
|
|
66
|
+
sanctioned_limit_info_popup_heading: "",
|
|
67
|
+
sanctioned_limit_info_popup_body: "",
|
|
68
|
+
exposure_limit_info_popup_heading: "",
|
|
69
|
+
exposure_limit_info_popup_body: "",
|
|
70
|
+
sanctioned_limit_heading: "",
|
|
71
|
+
exposure_limit_heading: "",
|
|
66
72
|
};
|
|
67
73
|
}
|
|
68
74
|
exports.creditLimitResponse = {
|
|
@@ -103,6 +109,24 @@ exports.creditLimitResponse = {
|
|
|
103
109
|
if (message.remaining_sanctioned_limit !== 0) {
|
|
104
110
|
writer.uint32(96).int32(message.remaining_sanctioned_limit);
|
|
105
111
|
}
|
|
112
|
+
if (message.sanctioned_limit_info_popup_heading !== "") {
|
|
113
|
+
writer.uint32(106).string(message.sanctioned_limit_info_popup_heading);
|
|
114
|
+
}
|
|
115
|
+
if (message.sanctioned_limit_info_popup_body !== "") {
|
|
116
|
+
writer.uint32(114).string(message.sanctioned_limit_info_popup_body);
|
|
117
|
+
}
|
|
118
|
+
if (message.exposure_limit_info_popup_heading !== "") {
|
|
119
|
+
writer.uint32(122).string(message.exposure_limit_info_popup_heading);
|
|
120
|
+
}
|
|
121
|
+
if (message.exposure_limit_info_popup_body !== "") {
|
|
122
|
+
writer.uint32(130).string(message.exposure_limit_info_popup_body);
|
|
123
|
+
}
|
|
124
|
+
if (message.sanctioned_limit_heading !== "") {
|
|
125
|
+
writer.uint32(138).string(message.sanctioned_limit_heading);
|
|
126
|
+
}
|
|
127
|
+
if (message.exposure_limit_heading !== "") {
|
|
128
|
+
writer.uint32(146).string(message.exposure_limit_heading);
|
|
129
|
+
}
|
|
106
130
|
return writer;
|
|
107
131
|
},
|
|
108
132
|
decode(input, length) {
|
|
@@ -184,6 +208,42 @@ exports.creditLimitResponse = {
|
|
|
184
208
|
}
|
|
185
209
|
message.remaining_sanctioned_limit = reader.int32();
|
|
186
210
|
continue;
|
|
211
|
+
case 13:
|
|
212
|
+
if (tag !== 106) {
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
message.sanctioned_limit_info_popup_heading = reader.string();
|
|
216
|
+
continue;
|
|
217
|
+
case 14:
|
|
218
|
+
if (tag !== 114) {
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
message.sanctioned_limit_info_popup_body = reader.string();
|
|
222
|
+
continue;
|
|
223
|
+
case 15:
|
|
224
|
+
if (tag !== 122) {
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
message.exposure_limit_info_popup_heading = reader.string();
|
|
228
|
+
continue;
|
|
229
|
+
case 16:
|
|
230
|
+
if (tag !== 130) {
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
message.exposure_limit_info_popup_body = reader.string();
|
|
234
|
+
continue;
|
|
235
|
+
case 17:
|
|
236
|
+
if (tag !== 138) {
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
message.sanctioned_limit_heading = reader.string();
|
|
240
|
+
continue;
|
|
241
|
+
case 18:
|
|
242
|
+
if (tag !== 146) {
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
message.exposure_limit_heading = reader.string();
|
|
246
|
+
continue;
|
|
187
247
|
}
|
|
188
248
|
if ((tag & 7) === 4 || tag === 0) {
|
|
189
249
|
break;
|
|
@@ -212,6 +272,24 @@ exports.creditLimitResponse = {
|
|
|
212
272
|
remaining_sanctioned_limit: isSet(object.remaining_sanctioned_limit)
|
|
213
273
|
? globalThis.Number(object.remaining_sanctioned_limit)
|
|
214
274
|
: 0,
|
|
275
|
+
sanctioned_limit_info_popup_heading: isSet(object.sanctioned_limit_info_popup_heading)
|
|
276
|
+
? globalThis.String(object.sanctioned_limit_info_popup_heading)
|
|
277
|
+
: "",
|
|
278
|
+
sanctioned_limit_info_popup_body: isSet(object.sanctioned_limit_info_popup_body)
|
|
279
|
+
? globalThis.String(object.sanctioned_limit_info_popup_body)
|
|
280
|
+
: "",
|
|
281
|
+
exposure_limit_info_popup_heading: isSet(object.exposure_limit_info_popup_heading)
|
|
282
|
+
? globalThis.String(object.exposure_limit_info_popup_heading)
|
|
283
|
+
: "",
|
|
284
|
+
exposure_limit_info_popup_body: isSet(object.exposure_limit_info_popup_body)
|
|
285
|
+
? globalThis.String(object.exposure_limit_info_popup_body)
|
|
286
|
+
: "",
|
|
287
|
+
sanctioned_limit_heading: isSet(object.sanctioned_limit_heading)
|
|
288
|
+
? globalThis.String(object.sanctioned_limit_heading)
|
|
289
|
+
: "",
|
|
290
|
+
exposure_limit_heading: isSet(object.exposure_limit_heading)
|
|
291
|
+
? globalThis.String(object.exposure_limit_heading)
|
|
292
|
+
: "",
|
|
215
293
|
};
|
|
216
294
|
},
|
|
217
295
|
toJSON(message) {
|
|
@@ -252,6 +330,24 @@ exports.creditLimitResponse = {
|
|
|
252
330
|
if (message.remaining_sanctioned_limit !== 0) {
|
|
253
331
|
obj.remaining_sanctioned_limit = Math.round(message.remaining_sanctioned_limit);
|
|
254
332
|
}
|
|
333
|
+
if (message.sanctioned_limit_info_popup_heading !== "") {
|
|
334
|
+
obj.sanctioned_limit_info_popup_heading = message.sanctioned_limit_info_popup_heading;
|
|
335
|
+
}
|
|
336
|
+
if (message.sanctioned_limit_info_popup_body !== "") {
|
|
337
|
+
obj.sanctioned_limit_info_popup_body = message.sanctioned_limit_info_popup_body;
|
|
338
|
+
}
|
|
339
|
+
if (message.exposure_limit_info_popup_heading !== "") {
|
|
340
|
+
obj.exposure_limit_info_popup_heading = message.exposure_limit_info_popup_heading;
|
|
341
|
+
}
|
|
342
|
+
if (message.exposure_limit_info_popup_body !== "") {
|
|
343
|
+
obj.exposure_limit_info_popup_body = message.exposure_limit_info_popup_body;
|
|
344
|
+
}
|
|
345
|
+
if (message.sanctioned_limit_heading !== "") {
|
|
346
|
+
obj.sanctioned_limit_heading = message.sanctioned_limit_heading;
|
|
347
|
+
}
|
|
348
|
+
if (message.exposure_limit_heading !== "") {
|
|
349
|
+
obj.exposure_limit_heading = message.exposure_limit_heading;
|
|
350
|
+
}
|
|
255
351
|
return obj;
|
|
256
352
|
},
|
|
257
353
|
create(base) {
|
|
@@ -271,6 +367,12 @@ exports.creditLimitResponse = {
|
|
|
271
367
|
message.minimum_request_amount = object.minimum_request_amount ?? 0;
|
|
272
368
|
message.sanctioned_limit = object.sanctioned_limit ?? 0;
|
|
273
369
|
message.remaining_sanctioned_limit = object.remaining_sanctioned_limit ?? 0;
|
|
370
|
+
message.sanctioned_limit_info_popup_heading = object.sanctioned_limit_info_popup_heading ?? "";
|
|
371
|
+
message.sanctioned_limit_info_popup_body = object.sanctioned_limit_info_popup_body ?? "";
|
|
372
|
+
message.exposure_limit_info_popup_heading = object.exposure_limit_info_popup_heading ?? "";
|
|
373
|
+
message.exposure_limit_info_popup_body = object.exposure_limit_info_popup_body ?? "";
|
|
374
|
+
message.sanctioned_limit_heading = object.sanctioned_limit_heading ?? "";
|
|
375
|
+
message.exposure_limit_heading = object.exposure_limit_heading ?? "";
|
|
274
376
|
return message;
|
|
275
377
|
},
|
|
276
378
|
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.getsummarystaticfields";
|
|
3
|
+
export interface getSummaryStaticFieldsRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getSummaryStaticFieldsResponse {
|
|
6
|
+
emi_date_l: string;
|
|
7
|
+
emi_amount_l: string;
|
|
8
|
+
first_emi_date_l: string;
|
|
9
|
+
final_disbursal_amount_l: string;
|
|
10
|
+
upfront_interest_l: string;
|
|
11
|
+
processing_fees_l: string;
|
|
12
|
+
gst_l: string;
|
|
13
|
+
rate_of_interest_l: string;
|
|
14
|
+
early_foreclosure_fees_l: string;
|
|
15
|
+
convenience_fees_l: string;
|
|
16
|
+
total_interest_pay_l: string;
|
|
17
|
+
effective_annual_rate_l: string;
|
|
18
|
+
trans_fee_plus_gst_l: string;
|
|
19
|
+
processing_fee_plus_gst_l: string;
|
|
20
|
+
max_amount_l: string;
|
|
21
|
+
credit_report_fees_l: string;
|
|
22
|
+
fee_and_charges_l: string;
|
|
23
|
+
add_on_l: string;
|
|
24
|
+
total_loan_amount_l: string;
|
|
25
|
+
loan_amount_l: string;
|
|
26
|
+
disbursed_amount_l: string;
|
|
27
|
+
total_payable_amount_l: string;
|
|
28
|
+
disbursal_amount_l: string;
|
|
29
|
+
number_of_emi_l: string;
|
|
30
|
+
first_emi_amt_l: string;
|
|
31
|
+
subsequent_emi_l: string;
|
|
32
|
+
effective_roi_l: string;
|
|
33
|
+
effective_annual_roi_l: string;
|
|
34
|
+
insurance_l: string;
|
|
35
|
+
apr_title: string;
|
|
36
|
+
insurance_desc: getSummaryStaticFieldsResponse_Field[];
|
|
37
|
+
insurance_title: string;
|
|
38
|
+
upfront_interest_description: string;
|
|
39
|
+
bill_amount_l: string;
|
|
40
|
+
}
|
|
41
|
+
export interface getSummaryStaticFieldsResponse_Field {
|
|
42
|
+
title: string;
|
|
43
|
+
desc: string;
|
|
44
|
+
icon: string;
|
|
45
|
+
}
|
|
46
|
+
export declare const getSummaryStaticFieldsRequest: {
|
|
47
|
+
encode(_: getSummaryStaticFieldsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
48
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getSummaryStaticFieldsRequest;
|
|
49
|
+
fromJSON(_: any): getSummaryStaticFieldsRequest;
|
|
50
|
+
toJSON(_: getSummaryStaticFieldsRequest): unknown;
|
|
51
|
+
create<I extends Exact<DeepPartial<getSummaryStaticFieldsRequest>, I>>(base?: I): getSummaryStaticFieldsRequest;
|
|
52
|
+
fromPartial<I extends Exact<DeepPartial<getSummaryStaticFieldsRequest>, I>>(_: I): getSummaryStaticFieldsRequest;
|
|
53
|
+
};
|
|
54
|
+
export declare const getSummaryStaticFieldsResponse: {
|
|
55
|
+
encode(message: getSummaryStaticFieldsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
56
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getSummaryStaticFieldsResponse;
|
|
57
|
+
fromJSON(object: any): getSummaryStaticFieldsResponse;
|
|
58
|
+
toJSON(message: getSummaryStaticFieldsResponse): unknown;
|
|
59
|
+
create<I extends Exact<DeepPartial<getSummaryStaticFieldsResponse>, I>>(base?: I): getSummaryStaticFieldsResponse;
|
|
60
|
+
fromPartial<I extends Exact<DeepPartial<getSummaryStaticFieldsResponse>, I>>(object: I): getSummaryStaticFieldsResponse;
|
|
61
|
+
};
|
|
62
|
+
export declare const getSummaryStaticFieldsResponse_Field: {
|
|
63
|
+
encode(message: getSummaryStaticFieldsResponse_Field, writer?: _m0.Writer): _m0.Writer;
|
|
64
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getSummaryStaticFieldsResponse_Field;
|
|
65
|
+
fromJSON(object: any): getSummaryStaticFieldsResponse_Field;
|
|
66
|
+
toJSON(message: getSummaryStaticFieldsResponse_Field): unknown;
|
|
67
|
+
create<I extends Exact<DeepPartial<getSummaryStaticFieldsResponse_Field>, I>>(base?: I): getSummaryStaticFieldsResponse_Field;
|
|
68
|
+
fromPartial<I extends Exact<DeepPartial<getSummaryStaticFieldsResponse_Field>, I>>(object: I): getSummaryStaticFieldsResponse_Field;
|
|
69
|
+
};
|
|
70
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
71
|
+
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 {} ? {
|
|
72
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
73
|
+
} : Partial<T>;
|
|
74
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
75
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
76
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
77
|
+
} & {
|
|
78
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
79
|
+
};
|
|
80
|
+
export {};
|