@stashfin/grpc 1.2.386 → 1.2.387
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/createlamfloan.d.ts +85 -0
- package/ts/loans/createlamfloan.js +761 -0
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.createlamfloan";
|
|
3
|
+
export interface createLamfLoanRequest {
|
|
4
|
+
bank_id: number;
|
|
5
|
+
amount: number;
|
|
6
|
+
tenure: number;
|
|
7
|
+
ip: string;
|
|
8
|
+
addonsData: createLamfLoanRequest_Field[];
|
|
9
|
+
latitude: number;
|
|
10
|
+
longitude: number;
|
|
11
|
+
}
|
|
12
|
+
export interface createLamfLoanRequest_Field {
|
|
13
|
+
name: string;
|
|
14
|
+
amount: number;
|
|
15
|
+
plan_id: number;
|
|
16
|
+
discount: number;
|
|
17
|
+
}
|
|
18
|
+
export interface createLamfLoanResponse {
|
|
19
|
+
gateway_fees: number;
|
|
20
|
+
striked_gateway_fees: number;
|
|
21
|
+
bill_date: string;
|
|
22
|
+
requested_amount: number;
|
|
23
|
+
tenure: number;
|
|
24
|
+
emi_amount: number;
|
|
25
|
+
net_amount_payable: number;
|
|
26
|
+
first_emi_date: string;
|
|
27
|
+
final_disbursal_amount: number;
|
|
28
|
+
upfront_interest: number;
|
|
29
|
+
rate_of_interest: number;
|
|
30
|
+
bill_amount: number;
|
|
31
|
+
total_interest_pay: number;
|
|
32
|
+
effective_annual_rate: number;
|
|
33
|
+
transaction_fee_bill_amount: number;
|
|
34
|
+
processing_fee_plus_gst: number;
|
|
35
|
+
trans_fee_plus_gst: number;
|
|
36
|
+
fee_and_charges: number;
|
|
37
|
+
fee_and_charges_bill: number;
|
|
38
|
+
effective_roi: number;
|
|
39
|
+
effective_annual_roi: number;
|
|
40
|
+
emi_card_description: string;
|
|
41
|
+
bill_card_description: string;
|
|
42
|
+
apr_value: number;
|
|
43
|
+
apr_type: string;
|
|
44
|
+
max_amount: number;
|
|
45
|
+
credit_report_fees: number;
|
|
46
|
+
credit_report_actual_fees: number;
|
|
47
|
+
plan_id: number;
|
|
48
|
+
approved_amount: number;
|
|
49
|
+
discount: number;
|
|
50
|
+
}
|
|
51
|
+
export declare const createLamfLoanRequest: {
|
|
52
|
+
encode(message: createLamfLoanRequest, writer?: _m0.Writer): _m0.Writer;
|
|
53
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): createLamfLoanRequest;
|
|
54
|
+
fromJSON(object: any): createLamfLoanRequest;
|
|
55
|
+
toJSON(message: createLamfLoanRequest): unknown;
|
|
56
|
+
create<I extends Exact<DeepPartial<createLamfLoanRequest>, I>>(base?: I): createLamfLoanRequest;
|
|
57
|
+
fromPartial<I extends Exact<DeepPartial<createLamfLoanRequest>, I>>(object: I): createLamfLoanRequest;
|
|
58
|
+
};
|
|
59
|
+
export declare const createLamfLoanRequest_Field: {
|
|
60
|
+
encode(message: createLamfLoanRequest_Field, writer?: _m0.Writer): _m0.Writer;
|
|
61
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): createLamfLoanRequest_Field;
|
|
62
|
+
fromJSON(object: any): createLamfLoanRequest_Field;
|
|
63
|
+
toJSON(message: createLamfLoanRequest_Field): unknown;
|
|
64
|
+
create<I extends Exact<DeepPartial<createLamfLoanRequest_Field>, I>>(base?: I): createLamfLoanRequest_Field;
|
|
65
|
+
fromPartial<I extends Exact<DeepPartial<createLamfLoanRequest_Field>, I>>(object: I): createLamfLoanRequest_Field;
|
|
66
|
+
};
|
|
67
|
+
export declare const createLamfLoanResponse: {
|
|
68
|
+
encode(message: createLamfLoanResponse, writer?: _m0.Writer): _m0.Writer;
|
|
69
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): createLamfLoanResponse;
|
|
70
|
+
fromJSON(object: any): createLamfLoanResponse;
|
|
71
|
+
toJSON(message: createLamfLoanResponse): unknown;
|
|
72
|
+
create<I extends Exact<DeepPartial<createLamfLoanResponse>, I>>(base?: I): createLamfLoanResponse;
|
|
73
|
+
fromPartial<I extends Exact<DeepPartial<createLamfLoanResponse>, I>>(object: I): createLamfLoanResponse;
|
|
74
|
+
};
|
|
75
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
76
|
+
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 {} ? {
|
|
77
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
78
|
+
} : Partial<T>;
|
|
79
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
80
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
81
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
82
|
+
} & {
|
|
83
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
84
|
+
};
|
|
85
|
+
export {};
|
|
@@ -0,0 +1,761 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.3
|
|
6
|
+
// source: loans/createlamfloan.proto
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.createLamfLoanResponse = exports.createLamfLoanRequest_Field = exports.createLamfLoanRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.createlamfloan";
|
|
15
|
+
function createBasecreateLamfLoanRequest() {
|
|
16
|
+
return { bank_id: 0, amount: 0, tenure: 0, ip: "", addonsData: [], latitude: 0, longitude: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.createLamfLoanRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.bank_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.bank_id);
|
|
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.ip !== "") {
|
|
30
|
+
writer.uint32(34).string(message.ip);
|
|
31
|
+
}
|
|
32
|
+
for (const v of message.addonsData) {
|
|
33
|
+
exports.createLamfLoanRequest_Field.encode(v, writer.uint32(42).fork()).ldelim();
|
|
34
|
+
}
|
|
35
|
+
if (message.latitude !== 0) {
|
|
36
|
+
writer.uint32(53).float(message.latitude);
|
|
37
|
+
}
|
|
38
|
+
if (message.longitude !== 0) {
|
|
39
|
+
writer.uint32(61).float(message.longitude);
|
|
40
|
+
}
|
|
41
|
+
return writer;
|
|
42
|
+
},
|
|
43
|
+
decode(input, length) {
|
|
44
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
45
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
46
|
+
const message = createBasecreateLamfLoanRequest();
|
|
47
|
+
while (reader.pos < end) {
|
|
48
|
+
const tag = reader.uint32();
|
|
49
|
+
switch (tag >>> 3) {
|
|
50
|
+
case 1:
|
|
51
|
+
if (tag !== 8) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.bank_id = reader.int32();
|
|
55
|
+
continue;
|
|
56
|
+
case 2:
|
|
57
|
+
if (tag !== 16) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
message.amount = reader.int32();
|
|
61
|
+
continue;
|
|
62
|
+
case 3:
|
|
63
|
+
if (tag !== 24) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.tenure = reader.int32();
|
|
67
|
+
continue;
|
|
68
|
+
case 4:
|
|
69
|
+
if (tag !== 34) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.ip = reader.string();
|
|
73
|
+
continue;
|
|
74
|
+
case 5:
|
|
75
|
+
if (tag !== 42) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
message.addonsData.push(exports.createLamfLoanRequest_Field.decode(reader, reader.uint32()));
|
|
79
|
+
continue;
|
|
80
|
+
case 6:
|
|
81
|
+
if (tag !== 53) {
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
message.latitude = reader.float();
|
|
85
|
+
continue;
|
|
86
|
+
case 7:
|
|
87
|
+
if (tag !== 61) {
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
message.longitude = reader.float();
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
reader.skipType(tag & 7);
|
|
97
|
+
}
|
|
98
|
+
return message;
|
|
99
|
+
},
|
|
100
|
+
fromJSON(object) {
|
|
101
|
+
return {
|
|
102
|
+
bank_id: isSet(object.bank_id) ? globalThis.Number(object.bank_id) : 0,
|
|
103
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
104
|
+
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
105
|
+
ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
|
|
106
|
+
addonsData: globalThis.Array.isArray(object?.addonsData)
|
|
107
|
+
? object.addonsData.map((e) => exports.createLamfLoanRequest_Field.fromJSON(e))
|
|
108
|
+
: [],
|
|
109
|
+
latitude: isSet(object.latitude) ? globalThis.Number(object.latitude) : 0,
|
|
110
|
+
longitude: isSet(object.longitude) ? globalThis.Number(object.longitude) : 0,
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
toJSON(message) {
|
|
114
|
+
const obj = {};
|
|
115
|
+
if (message.bank_id !== 0) {
|
|
116
|
+
obj.bank_id = Math.round(message.bank_id);
|
|
117
|
+
}
|
|
118
|
+
if (message.amount !== 0) {
|
|
119
|
+
obj.amount = Math.round(message.amount);
|
|
120
|
+
}
|
|
121
|
+
if (message.tenure !== 0) {
|
|
122
|
+
obj.tenure = Math.round(message.tenure);
|
|
123
|
+
}
|
|
124
|
+
if (message.ip !== "") {
|
|
125
|
+
obj.ip = message.ip;
|
|
126
|
+
}
|
|
127
|
+
if (message.addonsData?.length) {
|
|
128
|
+
obj.addonsData = message.addonsData.map((e) => exports.createLamfLoanRequest_Field.toJSON(e));
|
|
129
|
+
}
|
|
130
|
+
if (message.latitude !== 0) {
|
|
131
|
+
obj.latitude = message.latitude;
|
|
132
|
+
}
|
|
133
|
+
if (message.longitude !== 0) {
|
|
134
|
+
obj.longitude = message.longitude;
|
|
135
|
+
}
|
|
136
|
+
return obj;
|
|
137
|
+
},
|
|
138
|
+
create(base) {
|
|
139
|
+
return exports.createLamfLoanRequest.fromPartial(base ?? {});
|
|
140
|
+
},
|
|
141
|
+
fromPartial(object) {
|
|
142
|
+
const message = createBasecreateLamfLoanRequest();
|
|
143
|
+
message.bank_id = object.bank_id ?? 0;
|
|
144
|
+
message.amount = object.amount ?? 0;
|
|
145
|
+
message.tenure = object.tenure ?? 0;
|
|
146
|
+
message.ip = object.ip ?? "";
|
|
147
|
+
message.addonsData = object.addonsData?.map((e) => exports.createLamfLoanRequest_Field.fromPartial(e)) || [];
|
|
148
|
+
message.latitude = object.latitude ?? 0;
|
|
149
|
+
message.longitude = object.longitude ?? 0;
|
|
150
|
+
return message;
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
function createBasecreateLamfLoanRequest_Field() {
|
|
154
|
+
return { name: "", amount: 0, plan_id: 0, discount: 0 };
|
|
155
|
+
}
|
|
156
|
+
exports.createLamfLoanRequest_Field = {
|
|
157
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
158
|
+
if (message.name !== "") {
|
|
159
|
+
writer.uint32(10).string(message.name);
|
|
160
|
+
}
|
|
161
|
+
if (message.amount !== 0) {
|
|
162
|
+
writer.uint32(16).int32(message.amount);
|
|
163
|
+
}
|
|
164
|
+
if (message.plan_id !== 0) {
|
|
165
|
+
writer.uint32(24).int32(message.plan_id);
|
|
166
|
+
}
|
|
167
|
+
if (message.discount !== 0) {
|
|
168
|
+
writer.uint32(32).int32(message.discount);
|
|
169
|
+
}
|
|
170
|
+
return writer;
|
|
171
|
+
},
|
|
172
|
+
decode(input, length) {
|
|
173
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
174
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
175
|
+
const message = createBasecreateLamfLoanRequest_Field();
|
|
176
|
+
while (reader.pos < end) {
|
|
177
|
+
const tag = reader.uint32();
|
|
178
|
+
switch (tag >>> 3) {
|
|
179
|
+
case 1:
|
|
180
|
+
if (tag !== 10) {
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
message.name = reader.string();
|
|
184
|
+
continue;
|
|
185
|
+
case 2:
|
|
186
|
+
if (tag !== 16) {
|
|
187
|
+
break;
|
|
188
|
+
}
|
|
189
|
+
message.amount = reader.int32();
|
|
190
|
+
continue;
|
|
191
|
+
case 3:
|
|
192
|
+
if (tag !== 24) {
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
message.plan_id = reader.int32();
|
|
196
|
+
continue;
|
|
197
|
+
case 4:
|
|
198
|
+
if (tag !== 32) {
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
message.discount = reader.int32();
|
|
202
|
+
continue;
|
|
203
|
+
}
|
|
204
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
|
+
reader.skipType(tag & 7);
|
|
208
|
+
}
|
|
209
|
+
return message;
|
|
210
|
+
},
|
|
211
|
+
fromJSON(object) {
|
|
212
|
+
return {
|
|
213
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
214
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
215
|
+
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
216
|
+
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
217
|
+
};
|
|
218
|
+
},
|
|
219
|
+
toJSON(message) {
|
|
220
|
+
const obj = {};
|
|
221
|
+
if (message.name !== "") {
|
|
222
|
+
obj.name = message.name;
|
|
223
|
+
}
|
|
224
|
+
if (message.amount !== 0) {
|
|
225
|
+
obj.amount = Math.round(message.amount);
|
|
226
|
+
}
|
|
227
|
+
if (message.plan_id !== 0) {
|
|
228
|
+
obj.plan_id = Math.round(message.plan_id);
|
|
229
|
+
}
|
|
230
|
+
if (message.discount !== 0) {
|
|
231
|
+
obj.discount = Math.round(message.discount);
|
|
232
|
+
}
|
|
233
|
+
return obj;
|
|
234
|
+
},
|
|
235
|
+
create(base) {
|
|
236
|
+
return exports.createLamfLoanRequest_Field.fromPartial(base ?? {});
|
|
237
|
+
},
|
|
238
|
+
fromPartial(object) {
|
|
239
|
+
const message = createBasecreateLamfLoanRequest_Field();
|
|
240
|
+
message.name = object.name ?? "";
|
|
241
|
+
message.amount = object.amount ?? 0;
|
|
242
|
+
message.plan_id = object.plan_id ?? 0;
|
|
243
|
+
message.discount = object.discount ?? 0;
|
|
244
|
+
return message;
|
|
245
|
+
},
|
|
246
|
+
};
|
|
247
|
+
function createBasecreateLamfLoanResponse() {
|
|
248
|
+
return {
|
|
249
|
+
gateway_fees: 0,
|
|
250
|
+
striked_gateway_fees: 0,
|
|
251
|
+
bill_date: "",
|
|
252
|
+
requested_amount: 0,
|
|
253
|
+
tenure: 0,
|
|
254
|
+
emi_amount: 0,
|
|
255
|
+
net_amount_payable: 0,
|
|
256
|
+
first_emi_date: "",
|
|
257
|
+
final_disbursal_amount: 0,
|
|
258
|
+
upfront_interest: 0,
|
|
259
|
+
rate_of_interest: 0,
|
|
260
|
+
bill_amount: 0,
|
|
261
|
+
total_interest_pay: 0,
|
|
262
|
+
effective_annual_rate: 0,
|
|
263
|
+
transaction_fee_bill_amount: 0,
|
|
264
|
+
processing_fee_plus_gst: 0,
|
|
265
|
+
trans_fee_plus_gst: 0,
|
|
266
|
+
fee_and_charges: 0,
|
|
267
|
+
fee_and_charges_bill: 0,
|
|
268
|
+
effective_roi: 0,
|
|
269
|
+
effective_annual_roi: 0,
|
|
270
|
+
emi_card_description: "",
|
|
271
|
+
bill_card_description: "",
|
|
272
|
+
apr_value: 0,
|
|
273
|
+
apr_type: "",
|
|
274
|
+
max_amount: 0,
|
|
275
|
+
credit_report_fees: 0,
|
|
276
|
+
credit_report_actual_fees: 0,
|
|
277
|
+
plan_id: 0,
|
|
278
|
+
approved_amount: 0,
|
|
279
|
+
discount: 0,
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
exports.createLamfLoanResponse = {
|
|
283
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
284
|
+
if (message.gateway_fees !== 0) {
|
|
285
|
+
writer.uint32(8).int32(message.gateway_fees);
|
|
286
|
+
}
|
|
287
|
+
if (message.striked_gateway_fees !== 0) {
|
|
288
|
+
writer.uint32(16).int32(message.striked_gateway_fees);
|
|
289
|
+
}
|
|
290
|
+
if (message.bill_date !== "") {
|
|
291
|
+
writer.uint32(26).string(message.bill_date);
|
|
292
|
+
}
|
|
293
|
+
if (message.requested_amount !== 0) {
|
|
294
|
+
writer.uint32(32).int32(message.requested_amount);
|
|
295
|
+
}
|
|
296
|
+
if (message.tenure !== 0) {
|
|
297
|
+
writer.uint32(40).int32(message.tenure);
|
|
298
|
+
}
|
|
299
|
+
if (message.emi_amount !== 0) {
|
|
300
|
+
writer.uint32(48).int32(message.emi_amount);
|
|
301
|
+
}
|
|
302
|
+
if (message.net_amount_payable !== 0) {
|
|
303
|
+
writer.uint32(56).int32(message.net_amount_payable);
|
|
304
|
+
}
|
|
305
|
+
if (message.first_emi_date !== "") {
|
|
306
|
+
writer.uint32(66).string(message.first_emi_date);
|
|
307
|
+
}
|
|
308
|
+
if (message.final_disbursal_amount !== 0) {
|
|
309
|
+
writer.uint32(72).int32(message.final_disbursal_amount);
|
|
310
|
+
}
|
|
311
|
+
if (message.upfront_interest !== 0) {
|
|
312
|
+
writer.uint32(80).int32(message.upfront_interest);
|
|
313
|
+
}
|
|
314
|
+
if (message.rate_of_interest !== 0) {
|
|
315
|
+
writer.uint32(93).float(message.rate_of_interest);
|
|
316
|
+
}
|
|
317
|
+
if (message.bill_amount !== 0) {
|
|
318
|
+
writer.uint32(96).int32(message.bill_amount);
|
|
319
|
+
}
|
|
320
|
+
if (message.total_interest_pay !== 0) {
|
|
321
|
+
writer.uint32(104).int32(message.total_interest_pay);
|
|
322
|
+
}
|
|
323
|
+
if (message.effective_annual_rate !== 0) {
|
|
324
|
+
writer.uint32(112).int32(message.effective_annual_rate);
|
|
325
|
+
}
|
|
326
|
+
if (message.transaction_fee_bill_amount !== 0) {
|
|
327
|
+
writer.uint32(120).int32(message.transaction_fee_bill_amount);
|
|
328
|
+
}
|
|
329
|
+
if (message.processing_fee_plus_gst !== 0) {
|
|
330
|
+
writer.uint32(128).int32(message.processing_fee_plus_gst);
|
|
331
|
+
}
|
|
332
|
+
if (message.trans_fee_plus_gst !== 0) {
|
|
333
|
+
writer.uint32(136).int32(message.trans_fee_plus_gst);
|
|
334
|
+
}
|
|
335
|
+
if (message.fee_and_charges !== 0) {
|
|
336
|
+
writer.uint32(144).int32(message.fee_and_charges);
|
|
337
|
+
}
|
|
338
|
+
if (message.fee_and_charges_bill !== 0) {
|
|
339
|
+
writer.uint32(152).int32(message.fee_and_charges_bill);
|
|
340
|
+
}
|
|
341
|
+
if (message.effective_roi !== 0) {
|
|
342
|
+
writer.uint32(160).int32(message.effective_roi);
|
|
343
|
+
}
|
|
344
|
+
if (message.effective_annual_roi !== 0) {
|
|
345
|
+
writer.uint32(168).int32(message.effective_annual_roi);
|
|
346
|
+
}
|
|
347
|
+
if (message.emi_card_description !== "") {
|
|
348
|
+
writer.uint32(178).string(message.emi_card_description);
|
|
349
|
+
}
|
|
350
|
+
if (message.bill_card_description !== "") {
|
|
351
|
+
writer.uint32(186).string(message.bill_card_description);
|
|
352
|
+
}
|
|
353
|
+
if (message.apr_value !== 0) {
|
|
354
|
+
writer.uint32(197).float(message.apr_value);
|
|
355
|
+
}
|
|
356
|
+
if (message.apr_type !== "") {
|
|
357
|
+
writer.uint32(202).string(message.apr_type);
|
|
358
|
+
}
|
|
359
|
+
if (message.max_amount !== 0) {
|
|
360
|
+
writer.uint32(213).float(message.max_amount);
|
|
361
|
+
}
|
|
362
|
+
if (message.credit_report_fees !== 0) {
|
|
363
|
+
writer.uint32(216).int32(message.credit_report_fees);
|
|
364
|
+
}
|
|
365
|
+
if (message.credit_report_actual_fees !== 0) {
|
|
366
|
+
writer.uint32(224).int32(message.credit_report_actual_fees);
|
|
367
|
+
}
|
|
368
|
+
if (message.plan_id !== 0) {
|
|
369
|
+
writer.uint32(232).int32(message.plan_id);
|
|
370
|
+
}
|
|
371
|
+
if (message.approved_amount !== 0) {
|
|
372
|
+
writer.uint32(240).int32(message.approved_amount);
|
|
373
|
+
}
|
|
374
|
+
if (message.discount !== 0) {
|
|
375
|
+
writer.uint32(248).int32(message.discount);
|
|
376
|
+
}
|
|
377
|
+
return writer;
|
|
378
|
+
},
|
|
379
|
+
decode(input, length) {
|
|
380
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
381
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
382
|
+
const message = createBasecreateLamfLoanResponse();
|
|
383
|
+
while (reader.pos < end) {
|
|
384
|
+
const tag = reader.uint32();
|
|
385
|
+
switch (tag >>> 3) {
|
|
386
|
+
case 1:
|
|
387
|
+
if (tag !== 8) {
|
|
388
|
+
break;
|
|
389
|
+
}
|
|
390
|
+
message.gateway_fees = reader.int32();
|
|
391
|
+
continue;
|
|
392
|
+
case 2:
|
|
393
|
+
if (tag !== 16) {
|
|
394
|
+
break;
|
|
395
|
+
}
|
|
396
|
+
message.striked_gateway_fees = reader.int32();
|
|
397
|
+
continue;
|
|
398
|
+
case 3:
|
|
399
|
+
if (tag !== 26) {
|
|
400
|
+
break;
|
|
401
|
+
}
|
|
402
|
+
message.bill_date = reader.string();
|
|
403
|
+
continue;
|
|
404
|
+
case 4:
|
|
405
|
+
if (tag !== 32) {
|
|
406
|
+
break;
|
|
407
|
+
}
|
|
408
|
+
message.requested_amount = reader.int32();
|
|
409
|
+
continue;
|
|
410
|
+
case 5:
|
|
411
|
+
if (tag !== 40) {
|
|
412
|
+
break;
|
|
413
|
+
}
|
|
414
|
+
message.tenure = reader.int32();
|
|
415
|
+
continue;
|
|
416
|
+
case 6:
|
|
417
|
+
if (tag !== 48) {
|
|
418
|
+
break;
|
|
419
|
+
}
|
|
420
|
+
message.emi_amount = reader.int32();
|
|
421
|
+
continue;
|
|
422
|
+
case 7:
|
|
423
|
+
if (tag !== 56) {
|
|
424
|
+
break;
|
|
425
|
+
}
|
|
426
|
+
message.net_amount_payable = reader.int32();
|
|
427
|
+
continue;
|
|
428
|
+
case 8:
|
|
429
|
+
if (tag !== 66) {
|
|
430
|
+
break;
|
|
431
|
+
}
|
|
432
|
+
message.first_emi_date = reader.string();
|
|
433
|
+
continue;
|
|
434
|
+
case 9:
|
|
435
|
+
if (tag !== 72) {
|
|
436
|
+
break;
|
|
437
|
+
}
|
|
438
|
+
message.final_disbursal_amount = reader.int32();
|
|
439
|
+
continue;
|
|
440
|
+
case 10:
|
|
441
|
+
if (tag !== 80) {
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
444
|
+
message.upfront_interest = reader.int32();
|
|
445
|
+
continue;
|
|
446
|
+
case 11:
|
|
447
|
+
if (tag !== 93) {
|
|
448
|
+
break;
|
|
449
|
+
}
|
|
450
|
+
message.rate_of_interest = reader.float();
|
|
451
|
+
continue;
|
|
452
|
+
case 12:
|
|
453
|
+
if (tag !== 96) {
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
456
|
+
message.bill_amount = reader.int32();
|
|
457
|
+
continue;
|
|
458
|
+
case 13:
|
|
459
|
+
if (tag !== 104) {
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
462
|
+
message.total_interest_pay = reader.int32();
|
|
463
|
+
continue;
|
|
464
|
+
case 14:
|
|
465
|
+
if (tag !== 112) {
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
468
|
+
message.effective_annual_rate = reader.int32();
|
|
469
|
+
continue;
|
|
470
|
+
case 15:
|
|
471
|
+
if (tag !== 120) {
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
474
|
+
message.transaction_fee_bill_amount = reader.int32();
|
|
475
|
+
continue;
|
|
476
|
+
case 16:
|
|
477
|
+
if (tag !== 128) {
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
480
|
+
message.processing_fee_plus_gst = reader.int32();
|
|
481
|
+
continue;
|
|
482
|
+
case 17:
|
|
483
|
+
if (tag !== 136) {
|
|
484
|
+
break;
|
|
485
|
+
}
|
|
486
|
+
message.trans_fee_plus_gst = reader.int32();
|
|
487
|
+
continue;
|
|
488
|
+
case 18:
|
|
489
|
+
if (tag !== 144) {
|
|
490
|
+
break;
|
|
491
|
+
}
|
|
492
|
+
message.fee_and_charges = reader.int32();
|
|
493
|
+
continue;
|
|
494
|
+
case 19:
|
|
495
|
+
if (tag !== 152) {
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
498
|
+
message.fee_and_charges_bill = reader.int32();
|
|
499
|
+
continue;
|
|
500
|
+
case 20:
|
|
501
|
+
if (tag !== 160) {
|
|
502
|
+
break;
|
|
503
|
+
}
|
|
504
|
+
message.effective_roi = reader.int32();
|
|
505
|
+
continue;
|
|
506
|
+
case 21:
|
|
507
|
+
if (tag !== 168) {
|
|
508
|
+
break;
|
|
509
|
+
}
|
|
510
|
+
message.effective_annual_roi = reader.int32();
|
|
511
|
+
continue;
|
|
512
|
+
case 22:
|
|
513
|
+
if (tag !== 178) {
|
|
514
|
+
break;
|
|
515
|
+
}
|
|
516
|
+
message.emi_card_description = reader.string();
|
|
517
|
+
continue;
|
|
518
|
+
case 23:
|
|
519
|
+
if (tag !== 186) {
|
|
520
|
+
break;
|
|
521
|
+
}
|
|
522
|
+
message.bill_card_description = reader.string();
|
|
523
|
+
continue;
|
|
524
|
+
case 24:
|
|
525
|
+
if (tag !== 197) {
|
|
526
|
+
break;
|
|
527
|
+
}
|
|
528
|
+
message.apr_value = reader.float();
|
|
529
|
+
continue;
|
|
530
|
+
case 25:
|
|
531
|
+
if (tag !== 202) {
|
|
532
|
+
break;
|
|
533
|
+
}
|
|
534
|
+
message.apr_type = reader.string();
|
|
535
|
+
continue;
|
|
536
|
+
case 26:
|
|
537
|
+
if (tag !== 213) {
|
|
538
|
+
break;
|
|
539
|
+
}
|
|
540
|
+
message.max_amount = reader.float();
|
|
541
|
+
continue;
|
|
542
|
+
case 27:
|
|
543
|
+
if (tag !== 216) {
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
message.credit_report_fees = reader.int32();
|
|
547
|
+
continue;
|
|
548
|
+
case 28:
|
|
549
|
+
if (tag !== 224) {
|
|
550
|
+
break;
|
|
551
|
+
}
|
|
552
|
+
message.credit_report_actual_fees = reader.int32();
|
|
553
|
+
continue;
|
|
554
|
+
case 29:
|
|
555
|
+
if (tag !== 232) {
|
|
556
|
+
break;
|
|
557
|
+
}
|
|
558
|
+
message.plan_id = reader.int32();
|
|
559
|
+
continue;
|
|
560
|
+
case 30:
|
|
561
|
+
if (tag !== 240) {
|
|
562
|
+
break;
|
|
563
|
+
}
|
|
564
|
+
message.approved_amount = reader.int32();
|
|
565
|
+
continue;
|
|
566
|
+
case 31:
|
|
567
|
+
if (tag !== 248) {
|
|
568
|
+
break;
|
|
569
|
+
}
|
|
570
|
+
message.discount = reader.int32();
|
|
571
|
+
continue;
|
|
572
|
+
}
|
|
573
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
574
|
+
break;
|
|
575
|
+
}
|
|
576
|
+
reader.skipType(tag & 7);
|
|
577
|
+
}
|
|
578
|
+
return message;
|
|
579
|
+
},
|
|
580
|
+
fromJSON(object) {
|
|
581
|
+
return {
|
|
582
|
+
gateway_fees: isSet(object.gateway_fees) ? globalThis.Number(object.gateway_fees) : 0,
|
|
583
|
+
striked_gateway_fees: isSet(object.striked_gateway_fees) ? globalThis.Number(object.striked_gateway_fees) : 0,
|
|
584
|
+
bill_date: isSet(object.bill_date) ? globalThis.String(object.bill_date) : "",
|
|
585
|
+
requested_amount: isSet(object.requested_amount) ? globalThis.Number(object.requested_amount) : 0,
|
|
586
|
+
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
587
|
+
emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : 0,
|
|
588
|
+
net_amount_payable: isSet(object.net_amount_payable) ? globalThis.Number(object.net_amount_payable) : 0,
|
|
589
|
+
first_emi_date: isSet(object.first_emi_date) ? globalThis.String(object.first_emi_date) : "",
|
|
590
|
+
final_disbursal_amount: isSet(object.final_disbursal_amount)
|
|
591
|
+
? globalThis.Number(object.final_disbursal_amount)
|
|
592
|
+
: 0,
|
|
593
|
+
upfront_interest: isSet(object.upfront_interest) ? globalThis.Number(object.upfront_interest) : 0,
|
|
594
|
+
rate_of_interest: isSet(object.rate_of_interest) ? globalThis.Number(object.rate_of_interest) : 0,
|
|
595
|
+
bill_amount: isSet(object.bill_amount) ? globalThis.Number(object.bill_amount) : 0,
|
|
596
|
+
total_interest_pay: isSet(object.total_interest_pay) ? globalThis.Number(object.total_interest_pay) : 0,
|
|
597
|
+
effective_annual_rate: isSet(object.effective_annual_rate) ? globalThis.Number(object.effective_annual_rate) : 0,
|
|
598
|
+
transaction_fee_bill_amount: isSet(object.transaction_fee_bill_amount)
|
|
599
|
+
? globalThis.Number(object.transaction_fee_bill_amount)
|
|
600
|
+
: 0,
|
|
601
|
+
processing_fee_plus_gst: isSet(object.processing_fee_plus_gst)
|
|
602
|
+
? globalThis.Number(object.processing_fee_plus_gst)
|
|
603
|
+
: 0,
|
|
604
|
+
trans_fee_plus_gst: isSet(object.trans_fee_plus_gst) ? globalThis.Number(object.trans_fee_plus_gst) : 0,
|
|
605
|
+
fee_and_charges: isSet(object.fee_and_charges) ? globalThis.Number(object.fee_and_charges) : 0,
|
|
606
|
+
fee_and_charges_bill: isSet(object.fee_and_charges_bill) ? globalThis.Number(object.fee_and_charges_bill) : 0,
|
|
607
|
+
effective_roi: isSet(object.effective_roi) ? globalThis.Number(object.effective_roi) : 0,
|
|
608
|
+
effective_annual_roi: isSet(object.effective_annual_roi) ? globalThis.Number(object.effective_annual_roi) : 0,
|
|
609
|
+
emi_card_description: isSet(object.emi_card_description) ? globalThis.String(object.emi_card_description) : "",
|
|
610
|
+
bill_card_description: isSet(object.bill_card_description) ? globalThis.String(object.bill_card_description) : "",
|
|
611
|
+
apr_value: isSet(object.apr_value) ? globalThis.Number(object.apr_value) : 0,
|
|
612
|
+
apr_type: isSet(object.apr_type) ? globalThis.String(object.apr_type) : "",
|
|
613
|
+
max_amount: isSet(object.max_amount) ? globalThis.Number(object.max_amount) : 0,
|
|
614
|
+
credit_report_fees: isSet(object.credit_report_fees) ? globalThis.Number(object.credit_report_fees) : 0,
|
|
615
|
+
credit_report_actual_fees: isSet(object.credit_report_actual_fees)
|
|
616
|
+
? globalThis.Number(object.credit_report_actual_fees)
|
|
617
|
+
: 0,
|
|
618
|
+
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
619
|
+
approved_amount: isSet(object.approved_amount) ? globalThis.Number(object.approved_amount) : 0,
|
|
620
|
+
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
621
|
+
};
|
|
622
|
+
},
|
|
623
|
+
toJSON(message) {
|
|
624
|
+
const obj = {};
|
|
625
|
+
if (message.gateway_fees !== 0) {
|
|
626
|
+
obj.gateway_fees = Math.round(message.gateway_fees);
|
|
627
|
+
}
|
|
628
|
+
if (message.striked_gateway_fees !== 0) {
|
|
629
|
+
obj.striked_gateway_fees = Math.round(message.striked_gateway_fees);
|
|
630
|
+
}
|
|
631
|
+
if (message.bill_date !== "") {
|
|
632
|
+
obj.bill_date = message.bill_date;
|
|
633
|
+
}
|
|
634
|
+
if (message.requested_amount !== 0) {
|
|
635
|
+
obj.requested_amount = Math.round(message.requested_amount);
|
|
636
|
+
}
|
|
637
|
+
if (message.tenure !== 0) {
|
|
638
|
+
obj.tenure = Math.round(message.tenure);
|
|
639
|
+
}
|
|
640
|
+
if (message.emi_amount !== 0) {
|
|
641
|
+
obj.emi_amount = Math.round(message.emi_amount);
|
|
642
|
+
}
|
|
643
|
+
if (message.net_amount_payable !== 0) {
|
|
644
|
+
obj.net_amount_payable = Math.round(message.net_amount_payable);
|
|
645
|
+
}
|
|
646
|
+
if (message.first_emi_date !== "") {
|
|
647
|
+
obj.first_emi_date = message.first_emi_date;
|
|
648
|
+
}
|
|
649
|
+
if (message.final_disbursal_amount !== 0) {
|
|
650
|
+
obj.final_disbursal_amount = Math.round(message.final_disbursal_amount);
|
|
651
|
+
}
|
|
652
|
+
if (message.upfront_interest !== 0) {
|
|
653
|
+
obj.upfront_interest = Math.round(message.upfront_interest);
|
|
654
|
+
}
|
|
655
|
+
if (message.rate_of_interest !== 0) {
|
|
656
|
+
obj.rate_of_interest = message.rate_of_interest;
|
|
657
|
+
}
|
|
658
|
+
if (message.bill_amount !== 0) {
|
|
659
|
+
obj.bill_amount = Math.round(message.bill_amount);
|
|
660
|
+
}
|
|
661
|
+
if (message.total_interest_pay !== 0) {
|
|
662
|
+
obj.total_interest_pay = Math.round(message.total_interest_pay);
|
|
663
|
+
}
|
|
664
|
+
if (message.effective_annual_rate !== 0) {
|
|
665
|
+
obj.effective_annual_rate = Math.round(message.effective_annual_rate);
|
|
666
|
+
}
|
|
667
|
+
if (message.transaction_fee_bill_amount !== 0) {
|
|
668
|
+
obj.transaction_fee_bill_amount = Math.round(message.transaction_fee_bill_amount);
|
|
669
|
+
}
|
|
670
|
+
if (message.processing_fee_plus_gst !== 0) {
|
|
671
|
+
obj.processing_fee_plus_gst = Math.round(message.processing_fee_plus_gst);
|
|
672
|
+
}
|
|
673
|
+
if (message.trans_fee_plus_gst !== 0) {
|
|
674
|
+
obj.trans_fee_plus_gst = Math.round(message.trans_fee_plus_gst);
|
|
675
|
+
}
|
|
676
|
+
if (message.fee_and_charges !== 0) {
|
|
677
|
+
obj.fee_and_charges = Math.round(message.fee_and_charges);
|
|
678
|
+
}
|
|
679
|
+
if (message.fee_and_charges_bill !== 0) {
|
|
680
|
+
obj.fee_and_charges_bill = Math.round(message.fee_and_charges_bill);
|
|
681
|
+
}
|
|
682
|
+
if (message.effective_roi !== 0) {
|
|
683
|
+
obj.effective_roi = Math.round(message.effective_roi);
|
|
684
|
+
}
|
|
685
|
+
if (message.effective_annual_roi !== 0) {
|
|
686
|
+
obj.effective_annual_roi = Math.round(message.effective_annual_roi);
|
|
687
|
+
}
|
|
688
|
+
if (message.emi_card_description !== "") {
|
|
689
|
+
obj.emi_card_description = message.emi_card_description;
|
|
690
|
+
}
|
|
691
|
+
if (message.bill_card_description !== "") {
|
|
692
|
+
obj.bill_card_description = message.bill_card_description;
|
|
693
|
+
}
|
|
694
|
+
if (message.apr_value !== 0) {
|
|
695
|
+
obj.apr_value = message.apr_value;
|
|
696
|
+
}
|
|
697
|
+
if (message.apr_type !== "") {
|
|
698
|
+
obj.apr_type = message.apr_type;
|
|
699
|
+
}
|
|
700
|
+
if (message.max_amount !== 0) {
|
|
701
|
+
obj.max_amount = message.max_amount;
|
|
702
|
+
}
|
|
703
|
+
if (message.credit_report_fees !== 0) {
|
|
704
|
+
obj.credit_report_fees = Math.round(message.credit_report_fees);
|
|
705
|
+
}
|
|
706
|
+
if (message.credit_report_actual_fees !== 0) {
|
|
707
|
+
obj.credit_report_actual_fees = Math.round(message.credit_report_actual_fees);
|
|
708
|
+
}
|
|
709
|
+
if (message.plan_id !== 0) {
|
|
710
|
+
obj.plan_id = Math.round(message.plan_id);
|
|
711
|
+
}
|
|
712
|
+
if (message.approved_amount !== 0) {
|
|
713
|
+
obj.approved_amount = Math.round(message.approved_amount);
|
|
714
|
+
}
|
|
715
|
+
if (message.discount !== 0) {
|
|
716
|
+
obj.discount = Math.round(message.discount);
|
|
717
|
+
}
|
|
718
|
+
return obj;
|
|
719
|
+
},
|
|
720
|
+
create(base) {
|
|
721
|
+
return exports.createLamfLoanResponse.fromPartial(base ?? {});
|
|
722
|
+
},
|
|
723
|
+
fromPartial(object) {
|
|
724
|
+
const message = createBasecreateLamfLoanResponse();
|
|
725
|
+
message.gateway_fees = object.gateway_fees ?? 0;
|
|
726
|
+
message.striked_gateway_fees = object.striked_gateway_fees ?? 0;
|
|
727
|
+
message.bill_date = object.bill_date ?? "";
|
|
728
|
+
message.requested_amount = object.requested_amount ?? 0;
|
|
729
|
+
message.tenure = object.tenure ?? 0;
|
|
730
|
+
message.emi_amount = object.emi_amount ?? 0;
|
|
731
|
+
message.net_amount_payable = object.net_amount_payable ?? 0;
|
|
732
|
+
message.first_emi_date = object.first_emi_date ?? "";
|
|
733
|
+
message.final_disbursal_amount = object.final_disbursal_amount ?? 0;
|
|
734
|
+
message.upfront_interest = object.upfront_interest ?? 0;
|
|
735
|
+
message.rate_of_interest = object.rate_of_interest ?? 0;
|
|
736
|
+
message.bill_amount = object.bill_amount ?? 0;
|
|
737
|
+
message.total_interest_pay = object.total_interest_pay ?? 0;
|
|
738
|
+
message.effective_annual_rate = object.effective_annual_rate ?? 0;
|
|
739
|
+
message.transaction_fee_bill_amount = object.transaction_fee_bill_amount ?? 0;
|
|
740
|
+
message.processing_fee_plus_gst = object.processing_fee_plus_gst ?? 0;
|
|
741
|
+
message.trans_fee_plus_gst = object.trans_fee_plus_gst ?? 0;
|
|
742
|
+
message.fee_and_charges = object.fee_and_charges ?? 0;
|
|
743
|
+
message.fee_and_charges_bill = object.fee_and_charges_bill ?? 0;
|
|
744
|
+
message.effective_roi = object.effective_roi ?? 0;
|
|
745
|
+
message.effective_annual_roi = object.effective_annual_roi ?? 0;
|
|
746
|
+
message.emi_card_description = object.emi_card_description ?? "";
|
|
747
|
+
message.bill_card_description = object.bill_card_description ?? "";
|
|
748
|
+
message.apr_value = object.apr_value ?? 0;
|
|
749
|
+
message.apr_type = object.apr_type ?? "";
|
|
750
|
+
message.max_amount = object.max_amount ?? 0;
|
|
751
|
+
message.credit_report_fees = object.credit_report_fees ?? 0;
|
|
752
|
+
message.credit_report_actual_fees = object.credit_report_actual_fees ?? 0;
|
|
753
|
+
message.plan_id = object.plan_id ?? 0;
|
|
754
|
+
message.approved_amount = object.approved_amount ?? 0;
|
|
755
|
+
message.discount = object.discount ?? 0;
|
|
756
|
+
return message;
|
|
757
|
+
},
|
|
758
|
+
};
|
|
759
|
+
function isSet(value) {
|
|
760
|
+
return value !== null && value !== undefined;
|
|
761
|
+
}
|
package/ts/loans.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { approveLoanRequest, approveLoanResponse } from "./loans/approveloan";
|
|
|
4
4
|
import { bankListRequest, bankListResponse } from "./loans/banklist";
|
|
5
5
|
import { calculateEmiRequest, calculateEmiResponse } from "./loans/calculateemi";
|
|
6
6
|
import { cbLoanRequest, cbLoanResponse } from "./loans/cbloan";
|
|
7
|
+
import { createLamfLoanRequest, createLamfLoanResponse } from "./loans/createlamfloan";
|
|
7
8
|
import { createPenaltyRequest, createPenaltyResponse } from "./loans/createpenalty";
|
|
8
9
|
import { creditLimitRequest, creditLimitResponse } from "./loans/creditlimit";
|
|
9
10
|
import { fcpPaymentRequest, fcpPaymentResponse } from "./loans/fcppayment";
|
|
@@ -392,6 +393,15 @@ export declare const loansService: {
|
|
|
392
393
|
readonly responseSerialize: (value: getCBloanDetailsResponse) => Buffer;
|
|
393
394
|
readonly responseDeserialize: (value: Buffer) => getCBloanDetailsResponse;
|
|
394
395
|
};
|
|
396
|
+
readonly createLamFloan: {
|
|
397
|
+
readonly path: "/service.loans/createLAMFloan";
|
|
398
|
+
readonly requestStream: false;
|
|
399
|
+
readonly responseStream: false;
|
|
400
|
+
readonly requestSerialize: (value: createLamfLoanRequest) => Buffer;
|
|
401
|
+
readonly requestDeserialize: (value: Buffer) => createLamfLoanRequest;
|
|
402
|
+
readonly responseSerialize: (value: createLamfLoanResponse) => Buffer;
|
|
403
|
+
readonly responseDeserialize: (value: Buffer) => createLamfLoanResponse;
|
|
404
|
+
};
|
|
395
405
|
};
|
|
396
406
|
export interface loansServer extends UntypedServiceImplementation {
|
|
397
407
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -433,6 +443,7 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
433
443
|
updateCollectionview: handleUnaryCall<updateCollectionViewRequest, updateCollectionViewResponse>;
|
|
434
444
|
createPenalty: handleUnaryCall<createPenaltyRequest, createPenaltyResponse>;
|
|
435
445
|
getCBloanDetails: handleUnaryCall<getCBloanDetailsRequest, getCBloanDetailsResponse>;
|
|
446
|
+
createLamFloan: handleUnaryCall<createLamfLoanRequest, createLamfLoanResponse>;
|
|
436
447
|
}
|
|
437
448
|
export interface loansClient extends Client {
|
|
438
449
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -552,6 +563,9 @@ export interface loansClient extends Client {
|
|
|
552
563
|
getCBloanDetails(request: getCBloanDetailsRequest, callback: (error: ServiceError | null, response: getCBloanDetailsResponse) => void): ClientUnaryCall;
|
|
553
564
|
getCBloanDetails(request: getCBloanDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCBloanDetailsResponse) => void): ClientUnaryCall;
|
|
554
565
|
getCBloanDetails(request: getCBloanDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCBloanDetailsResponse) => void): ClientUnaryCall;
|
|
566
|
+
createLamFloan(request: createLamfLoanRequest, callback: (error: ServiceError | null, response: createLamfLoanResponse) => void): ClientUnaryCall;
|
|
567
|
+
createLamFloan(request: createLamfLoanRequest, metadata: Metadata, callback: (error: ServiceError | null, response: createLamfLoanResponse) => void): ClientUnaryCall;
|
|
568
|
+
createLamFloan(request: createLamfLoanRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: createLamfLoanResponse) => void): ClientUnaryCall;
|
|
555
569
|
}
|
|
556
570
|
export declare const loansClient: {
|
|
557
571
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -13,6 +13,7 @@ const approveloan_1 = require("./loans/approveloan");
|
|
|
13
13
|
const banklist_1 = require("./loans/banklist");
|
|
14
14
|
const calculateemi_1 = require("./loans/calculateemi");
|
|
15
15
|
const cbloan_1 = require("./loans/cbloan");
|
|
16
|
+
const createlamfloan_1 = require("./loans/createlamfloan");
|
|
16
17
|
const createpenalty_1 = require("./loans/createpenalty");
|
|
17
18
|
const creditlimit_1 = require("./loans/creditlimit");
|
|
18
19
|
const fcppayment_1 = require("./loans/fcppayment");
|
|
@@ -400,5 +401,14 @@ exports.loansService = {
|
|
|
400
401
|
responseSerialize: (value) => Buffer.from(getcbloandetails_1.getCBloanDetailsResponse.encode(value).finish()),
|
|
401
402
|
responseDeserialize: (value) => getcbloandetails_1.getCBloanDetailsResponse.decode(value),
|
|
402
403
|
},
|
|
404
|
+
createLamFloan: {
|
|
405
|
+
path: "/service.loans/createLAMFloan",
|
|
406
|
+
requestStream: false,
|
|
407
|
+
responseStream: false,
|
|
408
|
+
requestSerialize: (value) => Buffer.from(createlamfloan_1.createLamfLoanRequest.encode(value).finish()),
|
|
409
|
+
requestDeserialize: (value) => createlamfloan_1.createLamfLoanRequest.decode(value),
|
|
410
|
+
responseSerialize: (value) => Buffer.from(createlamfloan_1.createLamfLoanResponse.encode(value).finish()),
|
|
411
|
+
responseDeserialize: (value) => createlamfloan_1.createLamfLoanResponse.decode(value),
|
|
412
|
+
},
|
|
403
413
|
};
|
|
404
414
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|