@stashfin/grpc 1.2.321 → 1.2.322
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/getsetubilldetails.d.ts +66 -0
- package/ts/loans/getsetubilldetails.js +356 -0
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.getsetubilldetails";
|
|
3
|
+
export interface getSetuBillDetailsRequest {
|
|
4
|
+
customerIdentifiers: getSetuBillDetailsRequest_Field[];
|
|
5
|
+
}
|
|
6
|
+
export interface getSetuBillDetailsRequest_Field {
|
|
7
|
+
attributeName: string;
|
|
8
|
+
attributeValue: string;
|
|
9
|
+
}
|
|
10
|
+
export interface getSetuBillDetailsResponse {
|
|
11
|
+
data: getSetuBillDetailsResponse_Field[];
|
|
12
|
+
total_amount: number;
|
|
13
|
+
order_id: string;
|
|
14
|
+
}
|
|
15
|
+
export interface getSetuBillDetailsResponse_Field {
|
|
16
|
+
bill_amount: number;
|
|
17
|
+
due_date: string;
|
|
18
|
+
principal: number;
|
|
19
|
+
interest: number;
|
|
20
|
+
inst_id: number;
|
|
21
|
+
penalty: number;
|
|
22
|
+
loan_id: number;
|
|
23
|
+
}
|
|
24
|
+
export declare const getSetuBillDetailsRequest: {
|
|
25
|
+
encode(message: getSetuBillDetailsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getSetuBillDetailsRequest;
|
|
27
|
+
fromJSON(object: any): getSetuBillDetailsRequest;
|
|
28
|
+
toJSON(message: getSetuBillDetailsRequest): unknown;
|
|
29
|
+
create<I extends Exact<DeepPartial<getSetuBillDetailsRequest>, I>>(base?: I): getSetuBillDetailsRequest;
|
|
30
|
+
fromPartial<I extends Exact<DeepPartial<getSetuBillDetailsRequest>, I>>(object: I): getSetuBillDetailsRequest;
|
|
31
|
+
};
|
|
32
|
+
export declare const getSetuBillDetailsRequest_Field: {
|
|
33
|
+
encode(message: getSetuBillDetailsRequest_Field, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getSetuBillDetailsRequest_Field;
|
|
35
|
+
fromJSON(object: any): getSetuBillDetailsRequest_Field;
|
|
36
|
+
toJSON(message: getSetuBillDetailsRequest_Field): unknown;
|
|
37
|
+
create<I extends Exact<DeepPartial<getSetuBillDetailsRequest_Field>, I>>(base?: I): getSetuBillDetailsRequest_Field;
|
|
38
|
+
fromPartial<I extends Exact<DeepPartial<getSetuBillDetailsRequest_Field>, I>>(object: I): getSetuBillDetailsRequest_Field;
|
|
39
|
+
};
|
|
40
|
+
export declare const getSetuBillDetailsResponse: {
|
|
41
|
+
encode(message: getSetuBillDetailsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
42
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getSetuBillDetailsResponse;
|
|
43
|
+
fromJSON(object: any): getSetuBillDetailsResponse;
|
|
44
|
+
toJSON(message: getSetuBillDetailsResponse): unknown;
|
|
45
|
+
create<I extends Exact<DeepPartial<getSetuBillDetailsResponse>, I>>(base?: I): getSetuBillDetailsResponse;
|
|
46
|
+
fromPartial<I extends Exact<DeepPartial<getSetuBillDetailsResponse>, I>>(object: I): getSetuBillDetailsResponse;
|
|
47
|
+
};
|
|
48
|
+
export declare const getSetuBillDetailsResponse_Field: {
|
|
49
|
+
encode(message: getSetuBillDetailsResponse_Field, writer?: _m0.Writer): _m0.Writer;
|
|
50
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getSetuBillDetailsResponse_Field;
|
|
51
|
+
fromJSON(object: any): getSetuBillDetailsResponse_Field;
|
|
52
|
+
toJSON(message: getSetuBillDetailsResponse_Field): unknown;
|
|
53
|
+
create<I extends Exact<DeepPartial<getSetuBillDetailsResponse_Field>, I>>(base?: I): getSetuBillDetailsResponse_Field;
|
|
54
|
+
fromPartial<I extends Exact<DeepPartial<getSetuBillDetailsResponse_Field>, I>>(object: I): getSetuBillDetailsResponse_Field;
|
|
55
|
+
};
|
|
56
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
57
|
+
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 {} ? {
|
|
58
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
59
|
+
} : Partial<T>;
|
|
60
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
61
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
62
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
63
|
+
} & {
|
|
64
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
65
|
+
};
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,356 @@
|
|
|
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.2
|
|
6
|
+
// source: loans/getsetubilldetails.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.getSetuBillDetailsResponse_Field = exports.getSetuBillDetailsResponse = exports.getSetuBillDetailsRequest_Field = exports.getSetuBillDetailsRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.getsetubilldetails";
|
|
15
|
+
function createBasegetSetuBillDetailsRequest() {
|
|
16
|
+
return { customerIdentifiers: [] };
|
|
17
|
+
}
|
|
18
|
+
exports.getSetuBillDetailsRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
for (const v of message.customerIdentifiers) {
|
|
21
|
+
exports.getSetuBillDetailsRequest_Field.encode(v, writer.uint32(10).fork()).ldelim();
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBasegetSetuBillDetailsRequest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 10) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.customerIdentifiers.push(exports.getSetuBillDetailsRequest_Field.decode(reader, reader.uint32()));
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
reader.skipType(tag & 7);
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return {
|
|
48
|
+
customerIdentifiers: globalThis.Array.isArray(object?.customerIdentifiers)
|
|
49
|
+
? object.customerIdentifiers.map((e) => exports.getSetuBillDetailsRequest_Field.fromJSON(e))
|
|
50
|
+
: [],
|
|
51
|
+
};
|
|
52
|
+
},
|
|
53
|
+
toJSON(message) {
|
|
54
|
+
const obj = {};
|
|
55
|
+
if (message.customerIdentifiers?.length) {
|
|
56
|
+
obj.customerIdentifiers = message.customerIdentifiers.map((e) => exports.getSetuBillDetailsRequest_Field.toJSON(e));
|
|
57
|
+
}
|
|
58
|
+
return obj;
|
|
59
|
+
},
|
|
60
|
+
create(base) {
|
|
61
|
+
return exports.getSetuBillDetailsRequest.fromPartial(base ?? {});
|
|
62
|
+
},
|
|
63
|
+
fromPartial(object) {
|
|
64
|
+
const message = createBasegetSetuBillDetailsRequest();
|
|
65
|
+
message.customerIdentifiers =
|
|
66
|
+
object.customerIdentifiers?.map((e) => exports.getSetuBillDetailsRequest_Field.fromPartial(e)) || [];
|
|
67
|
+
return message;
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
function createBasegetSetuBillDetailsRequest_Field() {
|
|
71
|
+
return { attributeName: "", attributeValue: "" };
|
|
72
|
+
}
|
|
73
|
+
exports.getSetuBillDetailsRequest_Field = {
|
|
74
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
75
|
+
if (message.attributeName !== "") {
|
|
76
|
+
writer.uint32(10).string(message.attributeName);
|
|
77
|
+
}
|
|
78
|
+
if (message.attributeValue !== "") {
|
|
79
|
+
writer.uint32(18).string(message.attributeValue);
|
|
80
|
+
}
|
|
81
|
+
return writer;
|
|
82
|
+
},
|
|
83
|
+
decode(input, length) {
|
|
84
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
85
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
86
|
+
const message = createBasegetSetuBillDetailsRequest_Field();
|
|
87
|
+
while (reader.pos < end) {
|
|
88
|
+
const tag = reader.uint32();
|
|
89
|
+
switch (tag >>> 3) {
|
|
90
|
+
case 1:
|
|
91
|
+
if (tag !== 10) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
message.attributeName = reader.string();
|
|
95
|
+
continue;
|
|
96
|
+
case 2:
|
|
97
|
+
if (tag !== 18) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
message.attributeValue = reader.string();
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
reader.skipType(tag & 7);
|
|
107
|
+
}
|
|
108
|
+
return message;
|
|
109
|
+
},
|
|
110
|
+
fromJSON(object) {
|
|
111
|
+
return {
|
|
112
|
+
attributeName: isSet(object.attributeName) ? globalThis.String(object.attributeName) : "",
|
|
113
|
+
attributeValue: isSet(object.attributeValue) ? globalThis.String(object.attributeValue) : "",
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
toJSON(message) {
|
|
117
|
+
const obj = {};
|
|
118
|
+
if (message.attributeName !== "") {
|
|
119
|
+
obj.attributeName = message.attributeName;
|
|
120
|
+
}
|
|
121
|
+
if (message.attributeValue !== "") {
|
|
122
|
+
obj.attributeValue = message.attributeValue;
|
|
123
|
+
}
|
|
124
|
+
return obj;
|
|
125
|
+
},
|
|
126
|
+
create(base) {
|
|
127
|
+
return exports.getSetuBillDetailsRequest_Field.fromPartial(base ?? {});
|
|
128
|
+
},
|
|
129
|
+
fromPartial(object) {
|
|
130
|
+
const message = createBasegetSetuBillDetailsRequest_Field();
|
|
131
|
+
message.attributeName = object.attributeName ?? "";
|
|
132
|
+
message.attributeValue = object.attributeValue ?? "";
|
|
133
|
+
return message;
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
function createBasegetSetuBillDetailsResponse() {
|
|
137
|
+
return { data: [], total_amount: 0, order_id: "" };
|
|
138
|
+
}
|
|
139
|
+
exports.getSetuBillDetailsResponse = {
|
|
140
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
141
|
+
for (const v of message.data) {
|
|
142
|
+
exports.getSetuBillDetailsResponse_Field.encode(v, writer.uint32(10).fork()).ldelim();
|
|
143
|
+
}
|
|
144
|
+
if (message.total_amount !== 0) {
|
|
145
|
+
writer.uint32(16).int32(message.total_amount);
|
|
146
|
+
}
|
|
147
|
+
if (message.order_id !== "") {
|
|
148
|
+
writer.uint32(26).string(message.order_id);
|
|
149
|
+
}
|
|
150
|
+
return writer;
|
|
151
|
+
},
|
|
152
|
+
decode(input, length) {
|
|
153
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
154
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
155
|
+
const message = createBasegetSetuBillDetailsResponse();
|
|
156
|
+
while (reader.pos < end) {
|
|
157
|
+
const tag = reader.uint32();
|
|
158
|
+
switch (tag >>> 3) {
|
|
159
|
+
case 1:
|
|
160
|
+
if (tag !== 10) {
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
message.data.push(exports.getSetuBillDetailsResponse_Field.decode(reader, reader.uint32()));
|
|
164
|
+
continue;
|
|
165
|
+
case 2:
|
|
166
|
+
if (tag !== 16) {
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
message.total_amount = reader.int32();
|
|
170
|
+
continue;
|
|
171
|
+
case 3:
|
|
172
|
+
if (tag !== 26) {
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
message.order_id = reader.string();
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
reader.skipType(tag & 7);
|
|
182
|
+
}
|
|
183
|
+
return message;
|
|
184
|
+
},
|
|
185
|
+
fromJSON(object) {
|
|
186
|
+
return {
|
|
187
|
+
data: globalThis.Array.isArray(object?.data)
|
|
188
|
+
? object.data.map((e) => exports.getSetuBillDetailsResponse_Field.fromJSON(e))
|
|
189
|
+
: [],
|
|
190
|
+
total_amount: isSet(object.total_amount) ? globalThis.Number(object.total_amount) : 0,
|
|
191
|
+
order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
|
|
192
|
+
};
|
|
193
|
+
},
|
|
194
|
+
toJSON(message) {
|
|
195
|
+
const obj = {};
|
|
196
|
+
if (message.data?.length) {
|
|
197
|
+
obj.data = message.data.map((e) => exports.getSetuBillDetailsResponse_Field.toJSON(e));
|
|
198
|
+
}
|
|
199
|
+
if (message.total_amount !== 0) {
|
|
200
|
+
obj.total_amount = Math.round(message.total_amount);
|
|
201
|
+
}
|
|
202
|
+
if (message.order_id !== "") {
|
|
203
|
+
obj.order_id = message.order_id;
|
|
204
|
+
}
|
|
205
|
+
return obj;
|
|
206
|
+
},
|
|
207
|
+
create(base) {
|
|
208
|
+
return exports.getSetuBillDetailsResponse.fromPartial(base ?? {});
|
|
209
|
+
},
|
|
210
|
+
fromPartial(object) {
|
|
211
|
+
const message = createBasegetSetuBillDetailsResponse();
|
|
212
|
+
message.data = object.data?.map((e) => exports.getSetuBillDetailsResponse_Field.fromPartial(e)) || [];
|
|
213
|
+
message.total_amount = object.total_amount ?? 0;
|
|
214
|
+
message.order_id = object.order_id ?? "";
|
|
215
|
+
return message;
|
|
216
|
+
},
|
|
217
|
+
};
|
|
218
|
+
function createBasegetSetuBillDetailsResponse_Field() {
|
|
219
|
+
return { bill_amount: 0, due_date: "", principal: 0, interest: 0, inst_id: 0, penalty: 0, loan_id: 0 };
|
|
220
|
+
}
|
|
221
|
+
exports.getSetuBillDetailsResponse_Field = {
|
|
222
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
223
|
+
if (message.bill_amount !== 0) {
|
|
224
|
+
writer.uint32(8).int32(message.bill_amount);
|
|
225
|
+
}
|
|
226
|
+
if (message.due_date !== "") {
|
|
227
|
+
writer.uint32(18).string(message.due_date);
|
|
228
|
+
}
|
|
229
|
+
if (message.principal !== 0) {
|
|
230
|
+
writer.uint32(24).int32(message.principal);
|
|
231
|
+
}
|
|
232
|
+
if (message.interest !== 0) {
|
|
233
|
+
writer.uint32(32).int32(message.interest);
|
|
234
|
+
}
|
|
235
|
+
if (message.inst_id !== 0) {
|
|
236
|
+
writer.uint32(40).int32(message.inst_id);
|
|
237
|
+
}
|
|
238
|
+
if (message.penalty !== 0) {
|
|
239
|
+
writer.uint32(48).int32(message.penalty);
|
|
240
|
+
}
|
|
241
|
+
if (message.loan_id !== 0) {
|
|
242
|
+
writer.uint32(56).int32(message.loan_id);
|
|
243
|
+
}
|
|
244
|
+
return writer;
|
|
245
|
+
},
|
|
246
|
+
decode(input, length) {
|
|
247
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
248
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
249
|
+
const message = createBasegetSetuBillDetailsResponse_Field();
|
|
250
|
+
while (reader.pos < end) {
|
|
251
|
+
const tag = reader.uint32();
|
|
252
|
+
switch (tag >>> 3) {
|
|
253
|
+
case 1:
|
|
254
|
+
if (tag !== 8) {
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
message.bill_amount = reader.int32();
|
|
258
|
+
continue;
|
|
259
|
+
case 2:
|
|
260
|
+
if (tag !== 18) {
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
message.due_date = reader.string();
|
|
264
|
+
continue;
|
|
265
|
+
case 3:
|
|
266
|
+
if (tag !== 24) {
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
269
|
+
message.principal = reader.int32();
|
|
270
|
+
continue;
|
|
271
|
+
case 4:
|
|
272
|
+
if (tag !== 32) {
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
message.interest = reader.int32();
|
|
276
|
+
continue;
|
|
277
|
+
case 5:
|
|
278
|
+
if (tag !== 40) {
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
message.inst_id = reader.int32();
|
|
282
|
+
continue;
|
|
283
|
+
case 6:
|
|
284
|
+
if (tag !== 48) {
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
message.penalty = reader.int32();
|
|
288
|
+
continue;
|
|
289
|
+
case 7:
|
|
290
|
+
if (tag !== 56) {
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
message.loan_id = reader.int32();
|
|
294
|
+
continue;
|
|
295
|
+
}
|
|
296
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
reader.skipType(tag & 7);
|
|
300
|
+
}
|
|
301
|
+
return message;
|
|
302
|
+
},
|
|
303
|
+
fromJSON(object) {
|
|
304
|
+
return {
|
|
305
|
+
bill_amount: isSet(object.bill_amount) ? globalThis.Number(object.bill_amount) : 0,
|
|
306
|
+
due_date: isSet(object.due_date) ? globalThis.String(object.due_date) : "",
|
|
307
|
+
principal: isSet(object.principal) ? globalThis.Number(object.principal) : 0,
|
|
308
|
+
interest: isSet(object.interest) ? globalThis.Number(object.interest) : 0,
|
|
309
|
+
inst_id: isSet(object.inst_id) ? globalThis.Number(object.inst_id) : 0,
|
|
310
|
+
penalty: isSet(object.penalty) ? globalThis.Number(object.penalty) : 0,
|
|
311
|
+
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
312
|
+
};
|
|
313
|
+
},
|
|
314
|
+
toJSON(message) {
|
|
315
|
+
const obj = {};
|
|
316
|
+
if (message.bill_amount !== 0) {
|
|
317
|
+
obj.bill_amount = Math.round(message.bill_amount);
|
|
318
|
+
}
|
|
319
|
+
if (message.due_date !== "") {
|
|
320
|
+
obj.due_date = message.due_date;
|
|
321
|
+
}
|
|
322
|
+
if (message.principal !== 0) {
|
|
323
|
+
obj.principal = Math.round(message.principal);
|
|
324
|
+
}
|
|
325
|
+
if (message.interest !== 0) {
|
|
326
|
+
obj.interest = Math.round(message.interest);
|
|
327
|
+
}
|
|
328
|
+
if (message.inst_id !== 0) {
|
|
329
|
+
obj.inst_id = Math.round(message.inst_id);
|
|
330
|
+
}
|
|
331
|
+
if (message.penalty !== 0) {
|
|
332
|
+
obj.penalty = Math.round(message.penalty);
|
|
333
|
+
}
|
|
334
|
+
if (message.loan_id !== 0) {
|
|
335
|
+
obj.loan_id = Math.round(message.loan_id);
|
|
336
|
+
}
|
|
337
|
+
return obj;
|
|
338
|
+
},
|
|
339
|
+
create(base) {
|
|
340
|
+
return exports.getSetuBillDetailsResponse_Field.fromPartial(base ?? {});
|
|
341
|
+
},
|
|
342
|
+
fromPartial(object) {
|
|
343
|
+
const message = createBasegetSetuBillDetailsResponse_Field();
|
|
344
|
+
message.bill_amount = object.bill_amount ?? 0;
|
|
345
|
+
message.due_date = object.due_date ?? "";
|
|
346
|
+
message.principal = object.principal ?? 0;
|
|
347
|
+
message.interest = object.interest ?? 0;
|
|
348
|
+
message.inst_id = object.inst_id ?? 0;
|
|
349
|
+
message.penalty = object.penalty ?? 0;
|
|
350
|
+
message.loan_id = object.loan_id ?? 0;
|
|
351
|
+
return message;
|
|
352
|
+
},
|
|
353
|
+
};
|
|
354
|
+
function isSet(value) {
|
|
355
|
+
return value !== null && value !== undefined;
|
|
356
|
+
}
|
package/ts/loans.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { getForecloseAmountRequest, getForecloseAmountResponse } from "./loans/g
|
|
|
14
14
|
import { getLoanByIdRequest, getLoanByIdResponse } from "./loans/getloanbyid";
|
|
15
15
|
import { getNextdueAmountRequest, getNextdueAmountResponse } from "./loans/getnextdueamount";
|
|
16
16
|
import { getPendingEmiAmountRequest, getPendingEmiAmountResponse } from "./loans/getpendingemiamount";
|
|
17
|
+
import { getSetuBillDetailsRequest, getSetuBillDetailsResponse } from "./loans/getsetubilldetails";
|
|
17
18
|
import { getSummaryStaticFieldsRequest, getSummaryStaticFieldsResponse } from "./loans/getsummarystaticfields";
|
|
18
19
|
import { getTransactionStatusRequest, getTransactionStatusResponse } from "./loans/gettransactionstatus";
|
|
19
20
|
import { getUsedLimitfoRequest, getUsedLimitfoResponse } from "./loans/getusedlimit";
|
|
@@ -322,6 +323,15 @@ export declare const loansService: {
|
|
|
322
323
|
readonly responseSerialize: (value: getChrDetailsResponse) => Buffer;
|
|
323
324
|
readonly responseDeserialize: (value: Buffer) => getChrDetailsResponse;
|
|
324
325
|
};
|
|
326
|
+
readonly getSetuBillDetails: {
|
|
327
|
+
readonly path: "/service.loans/getSetuBillDetails";
|
|
328
|
+
readonly requestStream: false;
|
|
329
|
+
readonly responseStream: false;
|
|
330
|
+
readonly requestSerialize: (value: getSetuBillDetailsRequest) => Buffer;
|
|
331
|
+
readonly requestDeserialize: (value: Buffer) => getSetuBillDetailsRequest;
|
|
332
|
+
readonly responseSerialize: (value: getSetuBillDetailsResponse) => Buffer;
|
|
333
|
+
readonly responseDeserialize: (value: Buffer) => getSetuBillDetailsResponse;
|
|
334
|
+
};
|
|
325
335
|
};
|
|
326
336
|
export interface loansServer extends UntypedServiceImplementation {
|
|
327
337
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -356,6 +366,7 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
356
366
|
updatetransactionstatus: handleUnaryCall<updateTransactionStatusRequest, updateTransactionStatusResponse>;
|
|
357
367
|
getUsedLimit: handleUnaryCall<getUsedLimitfoRequest, getUsedLimitfoResponse>;
|
|
358
368
|
getChrDetails: handleUnaryCall<getChrDetailsRequest, getChrDetailsResponse>;
|
|
369
|
+
getSetuBillDetails: handleUnaryCall<getSetuBillDetailsRequest, getSetuBillDetailsResponse>;
|
|
359
370
|
}
|
|
360
371
|
export interface loansClient extends Client {
|
|
361
372
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -454,6 +465,9 @@ export interface loansClient extends Client {
|
|
|
454
465
|
getChrDetails(request: getChrDetailsRequest, callback: (error: ServiceError | null, response: getChrDetailsResponse) => void): ClientUnaryCall;
|
|
455
466
|
getChrDetails(request: getChrDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getChrDetailsResponse) => void): ClientUnaryCall;
|
|
456
467
|
getChrDetails(request: getChrDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getChrDetailsResponse) => void): ClientUnaryCall;
|
|
468
|
+
getSetuBillDetails(request: getSetuBillDetailsRequest, callback: (error: ServiceError | null, response: getSetuBillDetailsResponse) => void): ClientUnaryCall;
|
|
469
|
+
getSetuBillDetails(request: getSetuBillDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getSetuBillDetailsResponse) => void): ClientUnaryCall;
|
|
470
|
+
getSetuBillDetails(request: getSetuBillDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getSetuBillDetailsResponse) => void): ClientUnaryCall;
|
|
457
471
|
}
|
|
458
472
|
export declare const loansClient: {
|
|
459
473
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -23,6 +23,7 @@ const getforecloseamount_1 = require("./loans/getforecloseamount");
|
|
|
23
23
|
const getloanbyid_1 = require("./loans/getloanbyid");
|
|
24
24
|
const getnextdueamount_1 = require("./loans/getnextdueamount");
|
|
25
25
|
const getpendingemiamount_1 = require("./loans/getpendingemiamount");
|
|
26
|
+
const getsetubilldetails_1 = require("./loans/getsetubilldetails");
|
|
26
27
|
const getsummarystaticfields_1 = require("./loans/getsummarystaticfields");
|
|
27
28
|
const gettransactionstatus_1 = require("./loans/gettransactionstatus");
|
|
28
29
|
const getusedlimit_1 = require("./loans/getusedlimit");
|
|
@@ -330,5 +331,14 @@ exports.loansService = {
|
|
|
330
331
|
responseSerialize: (value) => Buffer.from(getchrdetails_1.getChrDetailsResponse.encode(value).finish()),
|
|
331
332
|
responseDeserialize: (value) => getchrdetails_1.getChrDetailsResponse.decode(value),
|
|
332
333
|
},
|
|
334
|
+
getSetuBillDetails: {
|
|
335
|
+
path: "/service.loans/getSetuBillDetails",
|
|
336
|
+
requestStream: false,
|
|
337
|
+
responseStream: false,
|
|
338
|
+
requestSerialize: (value) => Buffer.from(getsetubilldetails_1.getSetuBillDetailsRequest.encode(value).finish()),
|
|
339
|
+
requestDeserialize: (value) => getsetubilldetails_1.getSetuBillDetailsRequest.decode(value),
|
|
340
|
+
responseSerialize: (value) => Buffer.from(getsetubilldetails_1.getSetuBillDetailsResponse.encode(value).finish()),
|
|
341
|
+
responseDeserialize: (value) => getsetubilldetails_1.getSetuBillDetailsResponse.decode(value),
|
|
342
|
+
},
|
|
333
343
|
};
|
|
334
344
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|