@stashfin/grpc 1.2.611 → 1.2.613
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/getlocconfirms.d.ts +49 -0
- package/ts/loans/getlocconfirms.js +329 -0
- package/ts/loans/getlocwithdraw.d.ts +3 -3
- package/ts/loans/getlocwithdraw.js +17 -15
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.getlocconfirms";
|
|
3
|
+
export interface GetLocConfirmRequest {
|
|
4
|
+
amount: number;
|
|
5
|
+
tenure: number;
|
|
6
|
+
is_fip: boolean;
|
|
7
|
+
credit_report_fees: number;
|
|
8
|
+
early_foreclosure_fee: number;
|
|
9
|
+
is_fcp: boolean;
|
|
10
|
+
txn_id: string;
|
|
11
|
+
max_amount: number;
|
|
12
|
+
gateway_fees: number;
|
|
13
|
+
plan_id: number;
|
|
14
|
+
gateway_type: string;
|
|
15
|
+
}
|
|
16
|
+
export interface GetLocConfirmResponse {
|
|
17
|
+
is_first_loc_loan: number;
|
|
18
|
+
msg: string;
|
|
19
|
+
status: string;
|
|
20
|
+
is_user_rating: number;
|
|
21
|
+
rating_type: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const GetLocConfirmRequest: {
|
|
24
|
+
encode(message: GetLocConfirmRequest, writer?: _m0.Writer): _m0.Writer;
|
|
25
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetLocConfirmRequest;
|
|
26
|
+
fromJSON(object: any): GetLocConfirmRequest;
|
|
27
|
+
toJSON(message: GetLocConfirmRequest): unknown;
|
|
28
|
+
create<I extends Exact<DeepPartial<GetLocConfirmRequest>, I>>(base?: I): GetLocConfirmRequest;
|
|
29
|
+
fromPartial<I extends Exact<DeepPartial<GetLocConfirmRequest>, I>>(object: I): GetLocConfirmRequest;
|
|
30
|
+
};
|
|
31
|
+
export declare const GetLocConfirmResponse: {
|
|
32
|
+
encode(message: GetLocConfirmResponse, writer?: _m0.Writer): _m0.Writer;
|
|
33
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetLocConfirmResponse;
|
|
34
|
+
fromJSON(object: any): GetLocConfirmResponse;
|
|
35
|
+
toJSON(message: GetLocConfirmResponse): unknown;
|
|
36
|
+
create<I extends Exact<DeepPartial<GetLocConfirmResponse>, I>>(base?: I): GetLocConfirmResponse;
|
|
37
|
+
fromPartial<I extends Exact<DeepPartial<GetLocConfirmResponse>, I>>(object: I): GetLocConfirmResponse;
|
|
38
|
+
};
|
|
39
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
40
|
+
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 {} ? {
|
|
41
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
42
|
+
} : Partial<T>;
|
|
43
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
44
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
45
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
46
|
+
} & {
|
|
47
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
48
|
+
};
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,329 @@
|
|
|
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.29.3
|
|
6
|
+
// source: loans/getlocconfirms.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.GetLocConfirmResponse = exports.GetLocConfirmRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.getlocconfirms";
|
|
15
|
+
function createBaseGetLocConfirmRequest() {
|
|
16
|
+
return {
|
|
17
|
+
amount: 0,
|
|
18
|
+
tenure: 0,
|
|
19
|
+
is_fip: false,
|
|
20
|
+
credit_report_fees: 0,
|
|
21
|
+
early_foreclosure_fee: 0,
|
|
22
|
+
is_fcp: false,
|
|
23
|
+
txn_id: "",
|
|
24
|
+
max_amount: 0,
|
|
25
|
+
gateway_fees: 0,
|
|
26
|
+
plan_id: 0,
|
|
27
|
+
gateway_type: "",
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.GetLocConfirmRequest = {
|
|
31
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
32
|
+
if (message.amount !== 0) {
|
|
33
|
+
writer.uint32(8).int32(message.amount);
|
|
34
|
+
}
|
|
35
|
+
if (message.tenure !== 0) {
|
|
36
|
+
writer.uint32(16).int32(message.tenure);
|
|
37
|
+
}
|
|
38
|
+
if (message.is_fip !== false) {
|
|
39
|
+
writer.uint32(24).bool(message.is_fip);
|
|
40
|
+
}
|
|
41
|
+
if (message.credit_report_fees !== 0) {
|
|
42
|
+
writer.uint32(33).double(message.credit_report_fees);
|
|
43
|
+
}
|
|
44
|
+
if (message.early_foreclosure_fee !== 0) {
|
|
45
|
+
writer.uint32(41).double(message.early_foreclosure_fee);
|
|
46
|
+
}
|
|
47
|
+
if (message.is_fcp !== false) {
|
|
48
|
+
writer.uint32(48).bool(message.is_fcp);
|
|
49
|
+
}
|
|
50
|
+
if (message.txn_id !== "") {
|
|
51
|
+
writer.uint32(58).string(message.txn_id);
|
|
52
|
+
}
|
|
53
|
+
if (message.max_amount !== 0) {
|
|
54
|
+
writer.uint32(65).double(message.max_amount);
|
|
55
|
+
}
|
|
56
|
+
if (message.gateway_fees !== 0) {
|
|
57
|
+
writer.uint32(73).double(message.gateway_fees);
|
|
58
|
+
}
|
|
59
|
+
if (message.plan_id !== 0) {
|
|
60
|
+
writer.uint32(80).int32(message.plan_id);
|
|
61
|
+
}
|
|
62
|
+
if (message.gateway_type !== "") {
|
|
63
|
+
writer.uint32(90).string(message.gateway_type);
|
|
64
|
+
}
|
|
65
|
+
return writer;
|
|
66
|
+
},
|
|
67
|
+
decode(input, length) {
|
|
68
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
69
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
70
|
+
const message = createBaseGetLocConfirmRequest();
|
|
71
|
+
while (reader.pos < end) {
|
|
72
|
+
const tag = reader.uint32();
|
|
73
|
+
switch (tag >>> 3) {
|
|
74
|
+
case 1:
|
|
75
|
+
if (tag !== 8) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
message.amount = reader.int32();
|
|
79
|
+
continue;
|
|
80
|
+
case 2:
|
|
81
|
+
if (tag !== 16) {
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
message.tenure = reader.int32();
|
|
85
|
+
continue;
|
|
86
|
+
case 3:
|
|
87
|
+
if (tag !== 24) {
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
message.is_fip = reader.bool();
|
|
91
|
+
continue;
|
|
92
|
+
case 4:
|
|
93
|
+
if (tag !== 33) {
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
message.credit_report_fees = reader.double();
|
|
97
|
+
continue;
|
|
98
|
+
case 5:
|
|
99
|
+
if (tag !== 41) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
message.early_foreclosure_fee = reader.double();
|
|
103
|
+
continue;
|
|
104
|
+
case 6:
|
|
105
|
+
if (tag !== 48) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
message.is_fcp = reader.bool();
|
|
109
|
+
continue;
|
|
110
|
+
case 7:
|
|
111
|
+
if (tag !== 58) {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
message.txn_id = reader.string();
|
|
115
|
+
continue;
|
|
116
|
+
case 8:
|
|
117
|
+
if (tag !== 65) {
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
message.max_amount = reader.double();
|
|
121
|
+
continue;
|
|
122
|
+
case 9:
|
|
123
|
+
if (tag !== 73) {
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
message.gateway_fees = reader.double();
|
|
127
|
+
continue;
|
|
128
|
+
case 10:
|
|
129
|
+
if (tag !== 80) {
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
message.plan_id = reader.int32();
|
|
133
|
+
continue;
|
|
134
|
+
case 11:
|
|
135
|
+
if (tag !== 90) {
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
message.gateway_type = reader.string();
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
reader.skipType(tag & 7);
|
|
145
|
+
}
|
|
146
|
+
return message;
|
|
147
|
+
},
|
|
148
|
+
fromJSON(object) {
|
|
149
|
+
return {
|
|
150
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
151
|
+
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
152
|
+
is_fip: isSet(object.is_fip) ? globalThis.Boolean(object.is_fip) : false,
|
|
153
|
+
credit_report_fees: isSet(object.credit_report_fees) ? globalThis.Number(object.credit_report_fees) : 0,
|
|
154
|
+
early_foreclosure_fee: isSet(object.early_foreclosure_fee) ? globalThis.Number(object.early_foreclosure_fee) : 0,
|
|
155
|
+
is_fcp: isSet(object.is_fcp) ? globalThis.Boolean(object.is_fcp) : false,
|
|
156
|
+
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
|
|
157
|
+
max_amount: isSet(object.max_amount) ? globalThis.Number(object.max_amount) : 0,
|
|
158
|
+
gateway_fees: isSet(object.gateway_fees) ? globalThis.Number(object.gateway_fees) : 0,
|
|
159
|
+
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
160
|
+
gateway_type: isSet(object.gateway_type) ? globalThis.String(object.gateway_type) : "",
|
|
161
|
+
};
|
|
162
|
+
},
|
|
163
|
+
toJSON(message) {
|
|
164
|
+
const obj = {};
|
|
165
|
+
if (message.amount !== 0) {
|
|
166
|
+
obj.amount = Math.round(message.amount);
|
|
167
|
+
}
|
|
168
|
+
if (message.tenure !== 0) {
|
|
169
|
+
obj.tenure = Math.round(message.tenure);
|
|
170
|
+
}
|
|
171
|
+
if (message.is_fip !== false) {
|
|
172
|
+
obj.is_fip = message.is_fip;
|
|
173
|
+
}
|
|
174
|
+
if (message.credit_report_fees !== 0) {
|
|
175
|
+
obj.credit_report_fees = message.credit_report_fees;
|
|
176
|
+
}
|
|
177
|
+
if (message.early_foreclosure_fee !== 0) {
|
|
178
|
+
obj.early_foreclosure_fee = message.early_foreclosure_fee;
|
|
179
|
+
}
|
|
180
|
+
if (message.is_fcp !== false) {
|
|
181
|
+
obj.is_fcp = message.is_fcp;
|
|
182
|
+
}
|
|
183
|
+
if (message.txn_id !== "") {
|
|
184
|
+
obj.txn_id = message.txn_id;
|
|
185
|
+
}
|
|
186
|
+
if (message.max_amount !== 0) {
|
|
187
|
+
obj.max_amount = message.max_amount;
|
|
188
|
+
}
|
|
189
|
+
if (message.gateway_fees !== 0) {
|
|
190
|
+
obj.gateway_fees = message.gateway_fees;
|
|
191
|
+
}
|
|
192
|
+
if (message.plan_id !== 0) {
|
|
193
|
+
obj.plan_id = Math.round(message.plan_id);
|
|
194
|
+
}
|
|
195
|
+
if (message.gateway_type !== "") {
|
|
196
|
+
obj.gateway_type = message.gateway_type;
|
|
197
|
+
}
|
|
198
|
+
return obj;
|
|
199
|
+
},
|
|
200
|
+
create(base) {
|
|
201
|
+
return exports.GetLocConfirmRequest.fromPartial(base ?? {});
|
|
202
|
+
},
|
|
203
|
+
fromPartial(object) {
|
|
204
|
+
const message = createBaseGetLocConfirmRequest();
|
|
205
|
+
message.amount = object.amount ?? 0;
|
|
206
|
+
message.tenure = object.tenure ?? 0;
|
|
207
|
+
message.is_fip = object.is_fip ?? false;
|
|
208
|
+
message.credit_report_fees = object.credit_report_fees ?? 0;
|
|
209
|
+
message.early_foreclosure_fee = object.early_foreclosure_fee ?? 0;
|
|
210
|
+
message.is_fcp = object.is_fcp ?? false;
|
|
211
|
+
message.txn_id = object.txn_id ?? "";
|
|
212
|
+
message.max_amount = object.max_amount ?? 0;
|
|
213
|
+
message.gateway_fees = object.gateway_fees ?? 0;
|
|
214
|
+
message.plan_id = object.plan_id ?? 0;
|
|
215
|
+
message.gateway_type = object.gateway_type ?? "";
|
|
216
|
+
return message;
|
|
217
|
+
},
|
|
218
|
+
};
|
|
219
|
+
function createBaseGetLocConfirmResponse() {
|
|
220
|
+
return { is_first_loc_loan: 0, msg: "", status: "", is_user_rating: 0, rating_type: "" };
|
|
221
|
+
}
|
|
222
|
+
exports.GetLocConfirmResponse = {
|
|
223
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
224
|
+
if (message.is_first_loc_loan !== 0) {
|
|
225
|
+
writer.uint32(8).int32(message.is_first_loc_loan);
|
|
226
|
+
}
|
|
227
|
+
if (message.msg !== "") {
|
|
228
|
+
writer.uint32(18).string(message.msg);
|
|
229
|
+
}
|
|
230
|
+
if (message.status !== "") {
|
|
231
|
+
writer.uint32(26).string(message.status);
|
|
232
|
+
}
|
|
233
|
+
if (message.is_user_rating !== 0) {
|
|
234
|
+
writer.uint32(32).int32(message.is_user_rating);
|
|
235
|
+
}
|
|
236
|
+
if (message.rating_type !== "") {
|
|
237
|
+
writer.uint32(42).string(message.rating_type);
|
|
238
|
+
}
|
|
239
|
+
return writer;
|
|
240
|
+
},
|
|
241
|
+
decode(input, length) {
|
|
242
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
243
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
244
|
+
const message = createBaseGetLocConfirmResponse();
|
|
245
|
+
while (reader.pos < end) {
|
|
246
|
+
const tag = reader.uint32();
|
|
247
|
+
switch (tag >>> 3) {
|
|
248
|
+
case 1:
|
|
249
|
+
if (tag !== 8) {
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
message.is_first_loc_loan = reader.int32();
|
|
253
|
+
continue;
|
|
254
|
+
case 2:
|
|
255
|
+
if (tag !== 18) {
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
message.msg = reader.string();
|
|
259
|
+
continue;
|
|
260
|
+
case 3:
|
|
261
|
+
if (tag !== 26) {
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
message.status = reader.string();
|
|
265
|
+
continue;
|
|
266
|
+
case 4:
|
|
267
|
+
if (tag !== 32) {
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
message.is_user_rating = reader.int32();
|
|
271
|
+
continue;
|
|
272
|
+
case 5:
|
|
273
|
+
if (tag !== 42) {
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
message.rating_type = reader.string();
|
|
277
|
+
continue;
|
|
278
|
+
}
|
|
279
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
280
|
+
break;
|
|
281
|
+
}
|
|
282
|
+
reader.skipType(tag & 7);
|
|
283
|
+
}
|
|
284
|
+
return message;
|
|
285
|
+
},
|
|
286
|
+
fromJSON(object) {
|
|
287
|
+
return {
|
|
288
|
+
is_first_loc_loan: isSet(object.is_first_loc_loan) ? globalThis.Number(object.is_first_loc_loan) : 0,
|
|
289
|
+
msg: isSet(object.msg) ? globalThis.String(object.msg) : "",
|
|
290
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
291
|
+
is_user_rating: isSet(object.is_user_rating) ? globalThis.Number(object.is_user_rating) : 0,
|
|
292
|
+
rating_type: isSet(object.rating_type) ? globalThis.String(object.rating_type) : "",
|
|
293
|
+
};
|
|
294
|
+
},
|
|
295
|
+
toJSON(message) {
|
|
296
|
+
const obj = {};
|
|
297
|
+
if (message.is_first_loc_loan !== 0) {
|
|
298
|
+
obj.is_first_loc_loan = Math.round(message.is_first_loc_loan);
|
|
299
|
+
}
|
|
300
|
+
if (message.msg !== "") {
|
|
301
|
+
obj.msg = message.msg;
|
|
302
|
+
}
|
|
303
|
+
if (message.status !== "") {
|
|
304
|
+
obj.status = message.status;
|
|
305
|
+
}
|
|
306
|
+
if (message.is_user_rating !== 0) {
|
|
307
|
+
obj.is_user_rating = Math.round(message.is_user_rating);
|
|
308
|
+
}
|
|
309
|
+
if (message.rating_type !== "") {
|
|
310
|
+
obj.rating_type = message.rating_type;
|
|
311
|
+
}
|
|
312
|
+
return obj;
|
|
313
|
+
},
|
|
314
|
+
create(base) {
|
|
315
|
+
return exports.GetLocConfirmResponse.fromPartial(base ?? {});
|
|
316
|
+
},
|
|
317
|
+
fromPartial(object) {
|
|
318
|
+
const message = createBaseGetLocConfirmResponse();
|
|
319
|
+
message.is_first_loc_loan = object.is_first_loc_loan ?? 0;
|
|
320
|
+
message.msg = object.msg ?? "";
|
|
321
|
+
message.status = object.status ?? "";
|
|
322
|
+
message.is_user_rating = object.is_user_rating ?? 0;
|
|
323
|
+
message.rating_type = object.rating_type ?? "";
|
|
324
|
+
return message;
|
|
325
|
+
},
|
|
326
|
+
};
|
|
327
|
+
function isSet(value) {
|
|
328
|
+
return value !== null && value !== undefined;
|
|
329
|
+
}
|
|
@@ -32,8 +32,8 @@ export interface InsuranceDesc {
|
|
|
32
32
|
icon: string;
|
|
33
33
|
}
|
|
34
34
|
export interface GetLocWithdrawlResponse {
|
|
35
|
-
gateway_fees
|
|
36
|
-
striked_gateway_fees
|
|
35
|
+
gateway_fees?: number | undefined;
|
|
36
|
+
striked_gateway_fees?: number | undefined;
|
|
37
37
|
bill_date: string;
|
|
38
38
|
matched: boolean;
|
|
39
39
|
remaining_loc: number;
|
|
@@ -113,7 +113,7 @@ export interface GetLocWithdrawlResponse {
|
|
|
113
113
|
credit_report_fees: number;
|
|
114
114
|
credit_report_actual_fees: number;
|
|
115
115
|
plan_id: string;
|
|
116
|
-
lender_name
|
|
116
|
+
lender_name?: string | undefined;
|
|
117
117
|
free_loc_eligible_bank: string;
|
|
118
118
|
insurance_title: string;
|
|
119
119
|
insurance_desc: InsuranceDesc[];
|
|
@@ -508,8 +508,8 @@ exports.InsuranceDesc = {
|
|
|
508
508
|
};
|
|
509
509
|
function createBaseGetLocWithdrawlResponse() {
|
|
510
510
|
return {
|
|
511
|
-
gateway_fees:
|
|
512
|
-
striked_gateway_fees:
|
|
511
|
+
gateway_fees: undefined,
|
|
512
|
+
striked_gateway_fees: undefined,
|
|
513
513
|
bill_date: "",
|
|
514
514
|
matched: false,
|
|
515
515
|
remaining_loc: 0,
|
|
@@ -589,7 +589,7 @@ function createBaseGetLocWithdrawlResponse() {
|
|
|
589
589
|
credit_report_fees: 0,
|
|
590
590
|
credit_report_actual_fees: 0,
|
|
591
591
|
plan_id: "",
|
|
592
|
-
lender_name:
|
|
592
|
+
lender_name: undefined,
|
|
593
593
|
free_loc_eligible_bank: "",
|
|
594
594
|
insurance_title: "",
|
|
595
595
|
insurance_desc: [],
|
|
@@ -599,10 +599,10 @@ function createBaseGetLocWithdrawlResponse() {
|
|
|
599
599
|
}
|
|
600
600
|
exports.GetLocWithdrawlResponse = {
|
|
601
601
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
602
|
-
if (message.gateway_fees !==
|
|
602
|
+
if (message.gateway_fees !== undefined) {
|
|
603
603
|
writer.uint32(9).double(message.gateway_fees);
|
|
604
604
|
}
|
|
605
|
-
if (message.striked_gateway_fees !==
|
|
605
|
+
if (message.striked_gateway_fees !== undefined) {
|
|
606
606
|
writer.uint32(17).double(message.striked_gateway_fees);
|
|
607
607
|
}
|
|
608
608
|
if (message.bill_date !== "") {
|
|
@@ -842,7 +842,7 @@ exports.GetLocWithdrawlResponse = {
|
|
|
842
842
|
if (message.plan_id !== "") {
|
|
843
843
|
writer.uint32(650).string(message.plan_id);
|
|
844
844
|
}
|
|
845
|
-
if (message.lender_name !==
|
|
845
|
+
if (message.lender_name !== undefined) {
|
|
846
846
|
writer.uint32(658).string(message.lender_name);
|
|
847
847
|
}
|
|
848
848
|
if (message.free_loc_eligible_bank !== "") {
|
|
@@ -1401,8 +1401,10 @@ exports.GetLocWithdrawlResponse = {
|
|
|
1401
1401
|
},
|
|
1402
1402
|
fromJSON(object) {
|
|
1403
1403
|
return {
|
|
1404
|
-
gateway_fees: isSet(object.gateway_fees) ? globalThis.Number(object.gateway_fees) :
|
|
1405
|
-
striked_gateway_fees: isSet(object.striked_gateway_fees)
|
|
1404
|
+
gateway_fees: isSet(object.gateway_fees) ? globalThis.Number(object.gateway_fees) : undefined,
|
|
1405
|
+
striked_gateway_fees: isSet(object.striked_gateway_fees)
|
|
1406
|
+
? globalThis.Number(object.striked_gateway_fees)
|
|
1407
|
+
: undefined,
|
|
1406
1408
|
bill_date: isSet(object.bill_date) ? globalThis.String(object.bill_date) : "",
|
|
1407
1409
|
matched: isSet(object.matched) ? globalThis.Boolean(object.matched) : false,
|
|
1408
1410
|
remaining_loc: isSet(object.remaining_loc) ? globalThis.Number(object.remaining_loc) : 0,
|
|
@@ -1510,7 +1512,7 @@ exports.GetLocWithdrawlResponse = {
|
|
|
1510
1512
|
? globalThis.Number(object.credit_report_actual_fees)
|
|
1511
1513
|
: 0,
|
|
1512
1514
|
plan_id: isSet(object.plan_id) ? globalThis.String(object.plan_id) : "",
|
|
1513
|
-
lender_name: isSet(object.lender_name) ? globalThis.String(object.lender_name) :
|
|
1515
|
+
lender_name: isSet(object.lender_name) ? globalThis.String(object.lender_name) : undefined,
|
|
1514
1516
|
free_loc_eligible_bank: isSet(object.free_loc_eligible_bank)
|
|
1515
1517
|
? globalThis.String(object.free_loc_eligible_bank)
|
|
1516
1518
|
: "",
|
|
@@ -1526,10 +1528,10 @@ exports.GetLocWithdrawlResponse = {
|
|
|
1526
1528
|
},
|
|
1527
1529
|
toJSON(message) {
|
|
1528
1530
|
const obj = {};
|
|
1529
|
-
if (message.gateway_fees !==
|
|
1531
|
+
if (message.gateway_fees !== undefined) {
|
|
1530
1532
|
obj.gateway_fees = message.gateway_fees;
|
|
1531
1533
|
}
|
|
1532
|
-
if (message.striked_gateway_fees !==
|
|
1534
|
+
if (message.striked_gateway_fees !== undefined) {
|
|
1533
1535
|
obj.striked_gateway_fees = message.striked_gateway_fees;
|
|
1534
1536
|
}
|
|
1535
1537
|
if (message.bill_date !== "") {
|
|
@@ -1769,7 +1771,7 @@ exports.GetLocWithdrawlResponse = {
|
|
|
1769
1771
|
if (message.plan_id !== "") {
|
|
1770
1772
|
obj.plan_id = message.plan_id;
|
|
1771
1773
|
}
|
|
1772
|
-
if (message.lender_name !==
|
|
1774
|
+
if (message.lender_name !== undefined) {
|
|
1773
1775
|
obj.lender_name = message.lender_name;
|
|
1774
1776
|
}
|
|
1775
1777
|
if (message.free_loc_eligible_bank !== "") {
|
|
@@ -1794,8 +1796,8 @@ exports.GetLocWithdrawlResponse = {
|
|
|
1794
1796
|
},
|
|
1795
1797
|
fromPartial(object) {
|
|
1796
1798
|
const message = createBaseGetLocWithdrawlResponse();
|
|
1797
|
-
message.gateway_fees = object.gateway_fees ??
|
|
1798
|
-
message.striked_gateway_fees = object.striked_gateway_fees ??
|
|
1799
|
+
message.gateway_fees = object.gateway_fees ?? undefined;
|
|
1800
|
+
message.striked_gateway_fees = object.striked_gateway_fees ?? undefined;
|
|
1799
1801
|
message.bill_date = object.bill_date ?? "";
|
|
1800
1802
|
message.matched = object.matched ?? false;
|
|
1801
1803
|
message.remaining_loc = object.remaining_loc ?? 0;
|
|
@@ -1877,7 +1879,7 @@ exports.GetLocWithdrawlResponse = {
|
|
|
1877
1879
|
message.credit_report_fees = object.credit_report_fees ?? 0;
|
|
1878
1880
|
message.credit_report_actual_fees = object.credit_report_actual_fees ?? 0;
|
|
1879
1881
|
message.plan_id = object.plan_id ?? "";
|
|
1880
|
-
message.lender_name = object.lender_name ??
|
|
1882
|
+
message.lender_name = object.lender_name ?? undefined;
|
|
1881
1883
|
message.free_loc_eligible_bank = object.free_loc_eligible_bank ?? "";
|
|
1882
1884
|
message.insurance_title = object.insurance_title ?? "";
|
|
1883
1885
|
message.insurance_desc = object.insurance_desc?.map((e) => exports.InsuranceDesc.fromPartial(e)) || [];
|
package/ts/loans.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { getChrDetailsRequest, getChrDetailsResponse } from "./loans/getchrdetai
|
|
|
18
18
|
import { getCustomerLoanStatusRequest, getCustomerLoanStatusResponse } from "./loans/getcustomerloanstatus";
|
|
19
19
|
import { getForecloseAmountRequest, getForecloseAmountResponse } from "./loans/getforecloseamount";
|
|
20
20
|
import { getLoanByIdRequest, getLoanByIdResponse } from "./loans/getloanbyid";
|
|
21
|
+
import { GetLocConfirmRequest, GetLocConfirmResponse } from "./loans/getlocconfirms";
|
|
21
22
|
import { GetLocTenureRequest, GetLocTenureResponse } from "./loans/getloctenure";
|
|
22
23
|
import { GetLocWithdrawlRequest, GetLocWithdrawlResponse } from "./loans/getlocwithdraw";
|
|
23
24
|
import { GetLocWithdrawFormRequest, GetLocWithdrawFormResponse } from "./loans/getlocwithdrawform";
|
|
@@ -452,6 +453,15 @@ export declare const loansService: {
|
|
|
452
453
|
readonly responseSerialize: (value: GetLocWithdrawlResponse) => Buffer;
|
|
453
454
|
readonly responseDeserialize: (value: Buffer) => GetLocWithdrawlResponse;
|
|
454
455
|
};
|
|
456
|
+
readonly getLocConfirms: {
|
|
457
|
+
readonly path: "/service.loans/getLocConfirms";
|
|
458
|
+
readonly requestStream: false;
|
|
459
|
+
readonly responseStream: false;
|
|
460
|
+
readonly requestSerialize: (value: GetLocConfirmRequest) => Buffer;
|
|
461
|
+
readonly requestDeserialize: (value: Buffer) => GetLocConfirmRequest;
|
|
462
|
+
readonly responseSerialize: (value: GetLocConfirmResponse) => Buffer;
|
|
463
|
+
readonly responseDeserialize: (value: Buffer) => GetLocConfirmResponse;
|
|
464
|
+
};
|
|
455
465
|
};
|
|
456
466
|
export interface loansServer extends UntypedServiceImplementation {
|
|
457
467
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -499,6 +509,7 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
499
509
|
getWithdrawForm: handleUnaryCall<GetLocWithdrawFormRequest, GetLocWithdrawFormResponse>;
|
|
500
510
|
getLocTenure: handleUnaryCall<GetLocTenureRequest, GetLocTenureResponse>;
|
|
501
511
|
getLocWithdraw: handleUnaryCall<GetLocWithdrawlRequest, GetLocWithdrawlResponse>;
|
|
512
|
+
getLocConfirms: handleUnaryCall<GetLocConfirmRequest, GetLocConfirmResponse>;
|
|
502
513
|
}
|
|
503
514
|
export interface loansClient extends Client {
|
|
504
515
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -636,6 +647,9 @@ export interface loansClient extends Client {
|
|
|
636
647
|
getLocWithdraw(request: GetLocWithdrawlRequest, callback: (error: ServiceError | null, response: GetLocWithdrawlResponse) => void): ClientUnaryCall;
|
|
637
648
|
getLocWithdraw(request: GetLocWithdrawlRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetLocWithdrawlResponse) => void): ClientUnaryCall;
|
|
638
649
|
getLocWithdraw(request: GetLocWithdrawlRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetLocWithdrawlResponse) => void): ClientUnaryCall;
|
|
650
|
+
getLocConfirms(request: GetLocConfirmRequest, callback: (error: ServiceError | null, response: GetLocConfirmResponse) => void): ClientUnaryCall;
|
|
651
|
+
getLocConfirms(request: GetLocConfirmRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetLocConfirmResponse) => void): ClientUnaryCall;
|
|
652
|
+
getLocConfirms(request: GetLocConfirmRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetLocConfirmResponse) => void): ClientUnaryCall;
|
|
639
653
|
}
|
|
640
654
|
export declare const loansClient: {
|
|
641
655
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -27,6 +27,7 @@ const getchrdetails_1 = require("./loans/getchrdetails");
|
|
|
27
27
|
const getcustomerloanstatus_1 = require("./loans/getcustomerloanstatus");
|
|
28
28
|
const getforecloseamount_1 = require("./loans/getforecloseamount");
|
|
29
29
|
const getloanbyid_1 = require("./loans/getloanbyid");
|
|
30
|
+
const getlocconfirms_1 = require("./loans/getlocconfirms");
|
|
30
31
|
const getloctenure_1 = require("./loans/getloctenure");
|
|
31
32
|
const getlocwithdraw_1 = require("./loans/getlocwithdraw");
|
|
32
33
|
const getlocwithdrawform_1 = require("./loans/getlocwithdrawform");
|
|
@@ -460,5 +461,14 @@ exports.loansService = {
|
|
|
460
461
|
responseSerialize: (value) => Buffer.from(getlocwithdraw_1.GetLocWithdrawlResponse.encode(value).finish()),
|
|
461
462
|
responseDeserialize: (value) => getlocwithdraw_1.GetLocWithdrawlResponse.decode(value),
|
|
462
463
|
},
|
|
464
|
+
getLocConfirms: {
|
|
465
|
+
path: "/service.loans/getLocConfirms",
|
|
466
|
+
requestStream: false,
|
|
467
|
+
responseStream: false,
|
|
468
|
+
requestSerialize: (value) => Buffer.from(getlocconfirms_1.GetLocConfirmRequest.encode(value).finish()),
|
|
469
|
+
requestDeserialize: (value) => getlocconfirms_1.GetLocConfirmRequest.decode(value),
|
|
470
|
+
responseSerialize: (value) => Buffer.from(getlocconfirms_1.GetLocConfirmResponse.encode(value).finish()),
|
|
471
|
+
responseDeserialize: (value) => getlocconfirms_1.GetLocConfirmResponse.decode(value),
|
|
472
|
+
},
|
|
463
473
|
};
|
|
464
474
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|