@stashfin/grpc 1.2.54 → 1.2.59
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 +3 -3
- package/ts/customers/addaddress.d.ts +50 -0
- package/ts/customers/addaddress.js +265 -0
- package/ts/customers/addbankaccountdetails.d.ts +37 -0
- package/ts/customers/addbankaccountdetails.js +147 -0
- package/ts/customers/createcustomerreference.d.ts +43 -0
- package/ts/customers/createcustomerreference.js +226 -0
- package/ts/customers/forgotmpin.d.ts +36 -0
- package/ts/customers/forgotmpin.js +133 -0
- package/ts/customers/forgotmpinotp.d.ts +34 -0
- package/ts/customers/forgotmpinotp.js +104 -0
- package/ts/customers/getbankaccountdetails.d.ts +36 -0
- package/ts/customers/getbankaccountdetails.js +134 -0
- package/ts/customers/getbasicinfo.d.ts +56 -0
- package/ts/customers/getbasicinfo.js +323 -0
- package/ts/customers/getcities.d.ts +47 -0
- package/ts/customers/getcities.js +183 -0
- package/ts/customers/getcustomerbyid.d.ts +55 -0
- package/ts/customers/getcustomerbyid.js +421 -0
- package/ts/customers/getdashboard.d.ts +91 -0
- package/ts/customers/getdashboard.js +618 -0
- package/ts/customers/getdashboardmaincard.d.ts +69 -0
- package/ts/customers/getdashboardmaincard.js +520 -0
- package/ts/customers/getkycweburl.d.ts +34 -0
- package/ts/customers/getkycweburl.js +104 -0
- package/ts/customers/getprofessionalinfo.d.ts +54 -0
- package/ts/customers/getprofessionalinfo.js +286 -0
- package/ts/customers/getprofile.d.ts +53 -0
- package/ts/customers/getprofile.js +282 -0
- package/ts/customers/getstates.d.ts +46 -0
- package/ts/customers/getstates.js +170 -0
- package/ts/customers/getstep.d.ts +69 -0
- package/ts/customers/getstep.js +406 -0
- package/ts/customers/profilebasic.d.ts +38 -0
- package/ts/customers/profilebasic.js +161 -0
- package/ts/customers/profileupdatetnc.d.ts +35 -0
- package/ts/customers/profileupdatetnc.js +117 -0
- package/ts/customers/resetmpin.d.ts +36 -0
- package/ts/customers/resetmpin.js +133 -0
- package/ts/customers/savebasicdetails.d.ts +47 -0
- package/ts/customers/savebasicdetails.js +185 -0
- package/ts/customers/saveunlocklimit.d.ts +34 -0
- package/ts/customers/saveunlocklimit.js +104 -0
- package/ts/customers/sendemailtoken.d.ts +35 -0
- package/ts/customers/sendemailtoken.js +117 -0
- package/ts/customers/sendotp.d.ts +38 -0
- package/ts/customers/sendotp.js +165 -0
- package/ts/customers/setmpin.d.ts +36 -0
- package/ts/customers/setmpin.js +133 -0
- package/ts/customers/step1.d.ts +71 -0
- package/ts/customers/step1.js +423 -0
- package/ts/customers/step10.d.ts +73 -0
- package/ts/customers/step10.js +459 -0
- package/ts/customers/step2.d.ts +67 -0
- package/ts/customers/step2.js +366 -0
- package/ts/customers/step7.d.ts +68 -0
- package/ts/customers/step7.js +381 -0
- package/ts/customers/step8.d.ts +69 -0
- package/ts/customers/step8.js +395 -0
- package/ts/customers/step9.d.ts +75 -0
- package/ts/customers/step9.js +489 -0
- package/ts/customers/stepstatic.d.ts +66 -0
- package/ts/customers/stepstatic.js +354 -0
- package/ts/customers/updatedigilockertxn.d.ts +37 -0
- package/ts/customers/updatedigilockertxn.js +147 -0
- package/ts/customers/updatedob.d.ts +35 -0
- package/ts/customers/updatedob.js +117 -0
- package/ts/customers/updatehypervergetxn.d.ts +36 -0
- package/ts/customers/updatehypervergetxn.js +133 -0
- package/ts/customers/validatepan.d.ts +45 -0
- package/ts/customers/validatepan.js +274 -0
- package/ts/customers/verifyemail.d.ts +35 -0
- package/ts/customers/verifyemail.js +117 -0
- package/ts/customers/verifympin.d.ts +37 -0
- package/ts/customers/verifympin.js +149 -0
- package/ts/customers/verifyotp.d.ts +41 -0
- package/ts/customers/verifyotp.js +205 -0
- package/ts/customers.d.ts +596 -0
- package/ts/customers.js +428 -0
- package/ts/example.d.ts +78 -0
- package/ts/example.js +199 -0
- package/{src/ts/google/protobuf/timestamp.ts → ts/google/protobuf/timestamp.d.ts} +30 -126
- package/ts/google/protobuf/timestamp.js +97 -0
- package/ts/loans/approveloan.d.ts +39 -0
- package/ts/loans/approveloan.js +175 -0
- package/ts/loans/banklist.d.ts +37 -0
- package/ts/loans/banklist.js +148 -0
- package/ts/loans/calculateemi.d.ts +51 -0
- package/ts/loans/calculateemi.js +243 -0
- package/ts/loans/creditlimit.d.ts +43 -0
- package/ts/loans/creditlimit.js +247 -0
- package/ts/loans/restructureloan.d.ts +36 -0
- package/ts/loans/restructureloan.js +133 -0
- package/ts/loans/transactionlist.d.ts +50 -0
- package/ts/loans/transactionlist.js +229 -0
- package/ts/loans/updateinstallments.d.ts +42 -0
- package/ts/loans/updateinstallments.js +226 -0
- package/ts/loans/updateloan.d.ts +39 -0
- package/ts/loans/updateloan.js +175 -0
- package/ts/loans.d.ts +126 -0
- package/ts/loans.js +94 -0
- package/ts/stashcash/creditsc.d.ts +54 -0
- package/ts/stashcash/creditsc.js +301 -0
- package/ts/stashcash/debitsc.d.ts +59 -0
- package/ts/stashcash/debitsc.js +380 -0
- package/ts/stashcash/getscbalance.d.ts +53 -0
- package/ts/stashcash/getscbalance.js +293 -0
- package/ts/stashcash/getschistory.d.ts +73 -0
- package/ts/stashcash/getschistory.js +479 -0
- package/ts/stashcash/reversesc.d.ts +52 -0
- package/ts/stashcash/reversesc.js +273 -0
- package/ts/stashcash.d.ts +84 -0
- package/ts/stashcash.js +64 -0
- package/README.md +0 -74
- package/src/proto/customers/addaddress.proto +0 -25
- package/src/proto/customers/addbankaccountdetails.proto +0 -13
- package/src/proto/customers/createcustomerreference.proto +0 -21
- package/src/proto/customers/forgotmpin.proto +0 -12
- package/src/proto/customers/forgotmpinotp.proto +0 -10
- package/src/proto/customers/getbankaccountdetails.proto +0 -11
- package/src/proto/customers/getbasicinfo.proto +0 -24
- package/src/proto/customers/getcities.proto +0 -16
- package/src/proto/customers/getcustomerbyid.proto +0 -31
- package/src/proto/customers/getdashboard.proto +0 -47
- package/src/proto/customers/getdashboardmaincard.proto +0 -37
- package/src/proto/customers/getkycweburl.proto +0 -10
- package/src/proto/customers/getprofessionalinfo.proto +0 -22
- package/src/proto/customers/getprofile.proto +0 -22
- package/src/proto/customers/getstates.proto +0 -15
- package/src/proto/customers/getstep.proto +0 -30
- package/src/proto/customers/profilebasic.proto +0 -14
- package/src/proto/customers/profileupdatetnc.proto +0 -11
- package/src/proto/customers/resetmpin.proto +0 -13
- package/src/proto/customers/savebasicdetails.proto +0 -16
- package/src/proto/customers/saveunlocklimit.proto +0 -10
- package/src/proto/customers/sendemailtoken.proto +0 -11
- package/src/proto/customers/sendotp.proto +0 -14
- package/src/proto/customers/setmpin.proto +0 -12
- package/src/proto/customers/step10.proto +0 -34
- package/src/proto/customers/step7.proto +0 -29
- package/src/proto/customers/step8.proto +0 -30
- package/src/proto/customers/step9.proto +0 -36
- package/src/proto/customers/stepstatic.proto +0 -27
- package/src/proto/customers/updatedigilockertxn.proto +0 -13
- package/src/proto/customers/updatedob.proto +0 -13
- package/src/proto/customers/updatehypervergetxn.proto +0 -12
- package/src/proto/customers/verifyemail.proto +0 -11
- package/src/proto/customers/verifympin.proto +0 -13
- package/src/proto/customers/verifyotp.proto +0 -17
- package/src/proto/customers.proto +0 -83
- package/src/proto/example.proto +0 -20
- package/src/proto/loans/approveloan.proto +0 -15
- package/src/proto/loans/banklist.proto +0 -12
- package/src/proto/loans/calculateemi.proto +0 -20
- package/src/proto/loans/creditlimit.proto +0 -18
- package/src/proto/loans/restructureloan.proto +0 -12
- package/src/proto/loans/transactionlist.proto +0 -18
- package/src/proto/loans/updateinstallments.proto +0 -19
- package/src/proto/loans/updateloan.proto +0 -15
- package/src/proto/loans.proto +0 -23
- package/src/proto/stashcash/creditsc.proto +0 -22
- package/src/proto/stashcash/debitsc.proto +0 -27
- package/src/proto/stashcash/getscbalance.proto +0 -21
- package/src/proto/stashcash/getschistory.proto +0 -35
- package/src/proto/stashcash/reversesc.proto +0 -20
- package/src/proto/stashcash.proto +0 -17
- package/src/ts/customers/addaddress.ts +0 -310
- package/src/ts/customers/addbankaccountdetails.ts +0 -184
- package/src/ts/customers/createcustomerreference.ts +0 -276
- package/src/ts/customers/getbankaccountdetails.ts +0 -169
- package/src/ts/customers/getbasicinfo.ts +0 -385
- package/src/ts/customers/getcities.ts +0 -227
- package/src/ts/customers/getcustomerbyid.ts +0 -492
- package/src/ts/customers/getdashboard.ts +0 -728
- package/src/ts/customers/getdashboardmaincard.ts +0 -608
- package/src/ts/customers/getkycweburl.ts +0 -133
- package/src/ts/customers/getprofessionalinfo.ts +0 -344
- package/src/ts/customers/getprofile.ts +0 -338
- package/src/ts/customers/getstates.ts +0 -212
- package/src/ts/customers/getstep.ts +0 -483
- package/src/ts/customers/profilebasic.ts +0 -198
- package/src/ts/customers/profileupdatetnc.ts +0 -148
- package/src/ts/customers/resetmpin.ts +0 -166
- package/src/ts/customers/savebasicdetails.ts +0 -229
- package/src/ts/customers/saveunlocklimit.ts +0 -133
- package/src/ts/customers/sendemailtoken.ts +0 -148
- package/src/ts/customers/sendotp.ts +0 -202
- package/src/ts/customers/setmpin.ts +0 -166
- package/src/ts/customers/step10.ts +0 -544
- package/src/ts/customers/step7.ts +0 -456
- package/src/ts/customers/step8.ts +0 -472
- package/src/ts/customers/step9.ts +0 -578
- package/src/ts/customers/stepstatic.ts +0 -425
- package/src/ts/customers/updatedigilockertxn.ts +0 -182
- package/src/ts/customers/updatehypervergetxn.ts +0 -166
- package/src/ts/customers/verifyemail.ts +0 -148
- package/src/ts/customers/verifympin.ts +0 -184
- package/src/ts/customers/verifyotp.ts +0 -232
- package/src/ts/customers.ts +0 -1038
- package/src/ts/example.ts +0 -294
- package/src/ts/loans/approveloan.ts +0 -214
- package/src/ts/loans/banklist.ts +0 -183
- package/src/ts/loans/calculateemi.ts +0 -295
- package/src/ts/loans/creditlimit.ts +0 -294
- package/src/ts/loans/restructureloan.ts +0 -166
- package/src/ts/loans/transactionlist.ts +0 -281
- package/src/ts/loans/updateinstallments.ts +0 -271
- package/src/ts/loans/updateloan.ts +0 -214
- package/src/ts/loans.ts +0 -221
- package/src/ts/stashcash/creditsc.ts +0 -361
- package/src/ts/stashcash/debitsc.ts +0 -450
- package/src/ts/stashcash/getscbalance.ts +0 -351
- package/src/ts/stashcash/getschistory.ts +0 -566
- package/src/ts/stashcash/reversesc.ts +0 -329
- package/src/ts/stashcash.ts +0 -152
- package/tsconfig.json +0 -18
|
@@ -0,0 +1,247 @@
|
|
|
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 v3.20.3
|
|
6
|
+
// source: loans/creditlimit.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.creditLimitResponse = exports.creditLimitRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.creditlimit";
|
|
15
|
+
function createBasecreditLimitRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.creditLimitRequest = {
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBasecreditLimitRequest();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
}
|
|
30
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
39
|
+
},
|
|
40
|
+
toJSON(_) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
return obj;
|
|
43
|
+
},
|
|
44
|
+
create(base) {
|
|
45
|
+
return exports.creditLimitRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasecreditLimitRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasecreditLimitResponse() {
|
|
53
|
+
return {
|
|
54
|
+
loc_limit: 0,
|
|
55
|
+
used_limit: 0,
|
|
56
|
+
min_tenure: 0,
|
|
57
|
+
max_tenure: 0,
|
|
58
|
+
rate_of_interest: 0,
|
|
59
|
+
increment_step: 0,
|
|
60
|
+
loc_disable: false,
|
|
61
|
+
request_max_percentage: 0,
|
|
62
|
+
bill_date: "",
|
|
63
|
+
minimum_request_amount: 0,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
exports.creditLimitResponse = {
|
|
67
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
68
|
+
if (message.loc_limit !== 0) {
|
|
69
|
+
writer.uint32(8).int32(message.loc_limit);
|
|
70
|
+
}
|
|
71
|
+
if (message.used_limit !== 0) {
|
|
72
|
+
writer.uint32(16).int32(message.used_limit);
|
|
73
|
+
}
|
|
74
|
+
if (message.min_tenure !== 0) {
|
|
75
|
+
writer.uint32(24).int32(message.min_tenure);
|
|
76
|
+
}
|
|
77
|
+
if (message.max_tenure !== 0) {
|
|
78
|
+
writer.uint32(32).int32(message.max_tenure);
|
|
79
|
+
}
|
|
80
|
+
if (message.rate_of_interest !== 0) {
|
|
81
|
+
writer.uint32(40).int32(message.rate_of_interest);
|
|
82
|
+
}
|
|
83
|
+
if (message.increment_step !== 0) {
|
|
84
|
+
writer.uint32(48).int32(message.increment_step);
|
|
85
|
+
}
|
|
86
|
+
if (message.loc_disable !== false) {
|
|
87
|
+
writer.uint32(56).bool(message.loc_disable);
|
|
88
|
+
}
|
|
89
|
+
if (message.request_max_percentage !== 0) {
|
|
90
|
+
writer.uint32(64).int32(message.request_max_percentage);
|
|
91
|
+
}
|
|
92
|
+
if (message.bill_date !== "") {
|
|
93
|
+
writer.uint32(74).string(message.bill_date);
|
|
94
|
+
}
|
|
95
|
+
if (message.minimum_request_amount !== 0) {
|
|
96
|
+
writer.uint32(80).int32(message.minimum_request_amount);
|
|
97
|
+
}
|
|
98
|
+
return writer;
|
|
99
|
+
},
|
|
100
|
+
decode(input, length) {
|
|
101
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
102
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
103
|
+
const message = createBasecreditLimitResponse();
|
|
104
|
+
while (reader.pos < end) {
|
|
105
|
+
const tag = reader.uint32();
|
|
106
|
+
switch (tag >>> 3) {
|
|
107
|
+
case 1:
|
|
108
|
+
if (tag !== 8) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
message.loc_limit = reader.int32();
|
|
112
|
+
continue;
|
|
113
|
+
case 2:
|
|
114
|
+
if (tag !== 16) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
message.used_limit = reader.int32();
|
|
118
|
+
continue;
|
|
119
|
+
case 3:
|
|
120
|
+
if (tag !== 24) {
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
message.min_tenure = reader.int32();
|
|
124
|
+
continue;
|
|
125
|
+
case 4:
|
|
126
|
+
if (tag !== 32) {
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
message.max_tenure = reader.int32();
|
|
130
|
+
continue;
|
|
131
|
+
case 5:
|
|
132
|
+
if (tag !== 40) {
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
message.rate_of_interest = reader.int32();
|
|
136
|
+
continue;
|
|
137
|
+
case 6:
|
|
138
|
+
if (tag !== 48) {
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
message.increment_step = reader.int32();
|
|
142
|
+
continue;
|
|
143
|
+
case 7:
|
|
144
|
+
if (tag !== 56) {
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
message.loc_disable = reader.bool();
|
|
148
|
+
continue;
|
|
149
|
+
case 8:
|
|
150
|
+
if (tag !== 64) {
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
message.request_max_percentage = reader.int32();
|
|
154
|
+
continue;
|
|
155
|
+
case 9:
|
|
156
|
+
if (tag !== 74) {
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
message.bill_date = reader.string();
|
|
160
|
+
continue;
|
|
161
|
+
case 10:
|
|
162
|
+
if (tag !== 80) {
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
message.minimum_request_amount = reader.int32();
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
reader.skipType(tag & 7);
|
|
172
|
+
}
|
|
173
|
+
return message;
|
|
174
|
+
},
|
|
175
|
+
fromJSON(object) {
|
|
176
|
+
return {
|
|
177
|
+
loc_limit: isSet(object.loc_limit) ? globalThis.Number(object.loc_limit) : 0,
|
|
178
|
+
used_limit: isSet(object.used_limit) ? globalThis.Number(object.used_limit) : 0,
|
|
179
|
+
min_tenure: isSet(object.min_tenure) ? globalThis.Number(object.min_tenure) : 0,
|
|
180
|
+
max_tenure: isSet(object.max_tenure) ? globalThis.Number(object.max_tenure) : 0,
|
|
181
|
+
rate_of_interest: isSet(object.rate_of_interest) ? globalThis.Number(object.rate_of_interest) : 0,
|
|
182
|
+
increment_step: isSet(object.increment_step) ? globalThis.Number(object.increment_step) : 0,
|
|
183
|
+
loc_disable: isSet(object.loc_disable) ? globalThis.Boolean(object.loc_disable) : false,
|
|
184
|
+
request_max_percentage: isSet(object.request_max_percentage)
|
|
185
|
+
? globalThis.Number(object.request_max_percentage)
|
|
186
|
+
: 0,
|
|
187
|
+
bill_date: isSet(object.bill_date) ? globalThis.String(object.bill_date) : "",
|
|
188
|
+
minimum_request_amount: isSet(object.minimum_request_amount)
|
|
189
|
+
? globalThis.Number(object.minimum_request_amount)
|
|
190
|
+
: 0,
|
|
191
|
+
};
|
|
192
|
+
},
|
|
193
|
+
toJSON(message) {
|
|
194
|
+
const obj = {};
|
|
195
|
+
if (message.loc_limit !== 0) {
|
|
196
|
+
obj.loc_limit = Math.round(message.loc_limit);
|
|
197
|
+
}
|
|
198
|
+
if (message.used_limit !== 0) {
|
|
199
|
+
obj.used_limit = Math.round(message.used_limit);
|
|
200
|
+
}
|
|
201
|
+
if (message.min_tenure !== 0) {
|
|
202
|
+
obj.min_tenure = Math.round(message.min_tenure);
|
|
203
|
+
}
|
|
204
|
+
if (message.max_tenure !== 0) {
|
|
205
|
+
obj.max_tenure = Math.round(message.max_tenure);
|
|
206
|
+
}
|
|
207
|
+
if (message.rate_of_interest !== 0) {
|
|
208
|
+
obj.rate_of_interest = Math.round(message.rate_of_interest);
|
|
209
|
+
}
|
|
210
|
+
if (message.increment_step !== 0) {
|
|
211
|
+
obj.increment_step = Math.round(message.increment_step);
|
|
212
|
+
}
|
|
213
|
+
if (message.loc_disable !== false) {
|
|
214
|
+
obj.loc_disable = message.loc_disable;
|
|
215
|
+
}
|
|
216
|
+
if (message.request_max_percentage !== 0) {
|
|
217
|
+
obj.request_max_percentage = Math.round(message.request_max_percentage);
|
|
218
|
+
}
|
|
219
|
+
if (message.bill_date !== "") {
|
|
220
|
+
obj.bill_date = message.bill_date;
|
|
221
|
+
}
|
|
222
|
+
if (message.minimum_request_amount !== 0) {
|
|
223
|
+
obj.minimum_request_amount = Math.round(message.minimum_request_amount);
|
|
224
|
+
}
|
|
225
|
+
return obj;
|
|
226
|
+
},
|
|
227
|
+
create(base) {
|
|
228
|
+
return exports.creditLimitResponse.fromPartial(base ?? {});
|
|
229
|
+
},
|
|
230
|
+
fromPartial(object) {
|
|
231
|
+
const message = createBasecreditLimitResponse();
|
|
232
|
+
message.loc_limit = object.loc_limit ?? 0;
|
|
233
|
+
message.used_limit = object.used_limit ?? 0;
|
|
234
|
+
message.min_tenure = object.min_tenure ?? 0;
|
|
235
|
+
message.max_tenure = object.max_tenure ?? 0;
|
|
236
|
+
message.rate_of_interest = object.rate_of_interest ?? 0;
|
|
237
|
+
message.increment_step = object.increment_step ?? 0;
|
|
238
|
+
message.loc_disable = object.loc_disable ?? false;
|
|
239
|
+
message.request_max_percentage = object.request_max_percentage ?? 0;
|
|
240
|
+
message.bill_date = object.bill_date ?? "";
|
|
241
|
+
message.minimum_request_amount = object.minimum_request_amount ?? 0;
|
|
242
|
+
return message;
|
|
243
|
+
},
|
|
244
|
+
};
|
|
245
|
+
function isSet(value) {
|
|
246
|
+
return value !== null && value !== undefined;
|
|
247
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.restructureloan";
|
|
3
|
+
export interface restructureLoanRequest {
|
|
4
|
+
loan_id: number;
|
|
5
|
+
tenure: number;
|
|
6
|
+
}
|
|
7
|
+
export interface restructureLoanResponse {
|
|
8
|
+
id: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const restructureLoanRequest: {
|
|
11
|
+
encode(message: restructureLoanRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): restructureLoanRequest;
|
|
13
|
+
fromJSON(object: any): restructureLoanRequest;
|
|
14
|
+
toJSON(message: restructureLoanRequest): unknown;
|
|
15
|
+
create<I extends Exact<DeepPartial<restructureLoanRequest>, I>>(base?: I): restructureLoanRequest;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<restructureLoanRequest>, I>>(object: I): restructureLoanRequest;
|
|
17
|
+
};
|
|
18
|
+
export declare const restructureLoanResponse: {
|
|
19
|
+
encode(message: restructureLoanResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): restructureLoanResponse;
|
|
21
|
+
fromJSON(object: any): restructureLoanResponse;
|
|
22
|
+
toJSON(message: restructureLoanResponse): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<restructureLoanResponse>, I>>(base?: I): restructureLoanResponse;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<restructureLoanResponse>, I>>(object: I): restructureLoanResponse;
|
|
25
|
+
};
|
|
26
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
27
|
+
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 {} ? {
|
|
28
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
29
|
+
} : Partial<T>;
|
|
30
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
31
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
32
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
33
|
+
} & {
|
|
34
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,133 @@
|
|
|
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 v3.20.3
|
|
6
|
+
// source: loans/restructureloan.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.restructureLoanResponse = exports.restructureLoanRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.restructureloan";
|
|
15
|
+
function createBaserestructureLoanRequest() {
|
|
16
|
+
return { loan_id: 0, tenure: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.restructureLoanRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.loan_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.loan_id);
|
|
22
|
+
}
|
|
23
|
+
if (message.tenure !== 0) {
|
|
24
|
+
writer.uint32(16).int32(message.tenure);
|
|
25
|
+
}
|
|
26
|
+
return writer;
|
|
27
|
+
},
|
|
28
|
+
decode(input, length) {
|
|
29
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = createBaserestructureLoanRequest();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
if (tag !== 8) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.loan_id = reader.int32();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 16) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.tenure = reader.int32();
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
reader.skipType(tag & 7);
|
|
52
|
+
}
|
|
53
|
+
return message;
|
|
54
|
+
},
|
|
55
|
+
fromJSON(object) {
|
|
56
|
+
return {
|
|
57
|
+
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
58
|
+
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
toJSON(message) {
|
|
62
|
+
const obj = {};
|
|
63
|
+
if (message.loan_id !== 0) {
|
|
64
|
+
obj.loan_id = Math.round(message.loan_id);
|
|
65
|
+
}
|
|
66
|
+
if (message.tenure !== 0) {
|
|
67
|
+
obj.tenure = Math.round(message.tenure);
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
},
|
|
71
|
+
create(base) {
|
|
72
|
+
return exports.restructureLoanRequest.fromPartial(base ?? {});
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
const message = createBaserestructureLoanRequest();
|
|
76
|
+
message.loan_id = object.loan_id ?? 0;
|
|
77
|
+
message.tenure = object.tenure ?? 0;
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
function createBaserestructureLoanResponse() {
|
|
82
|
+
return { id: 0 };
|
|
83
|
+
}
|
|
84
|
+
exports.restructureLoanResponse = {
|
|
85
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
+
if (message.id !== 0) {
|
|
87
|
+
writer.uint32(8).int32(message.id);
|
|
88
|
+
}
|
|
89
|
+
return writer;
|
|
90
|
+
},
|
|
91
|
+
decode(input, length) {
|
|
92
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
93
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
94
|
+
const message = createBaserestructureLoanResponse();
|
|
95
|
+
while (reader.pos < end) {
|
|
96
|
+
const tag = reader.uint32();
|
|
97
|
+
switch (tag >>> 3) {
|
|
98
|
+
case 1:
|
|
99
|
+
if (tag !== 8) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
message.id = reader.int32();
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
reader.skipType(tag & 7);
|
|
109
|
+
}
|
|
110
|
+
return message;
|
|
111
|
+
},
|
|
112
|
+
fromJSON(object) {
|
|
113
|
+
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
114
|
+
},
|
|
115
|
+
toJSON(message) {
|
|
116
|
+
const obj = {};
|
|
117
|
+
if (message.id !== 0) {
|
|
118
|
+
obj.id = Math.round(message.id);
|
|
119
|
+
}
|
|
120
|
+
return obj;
|
|
121
|
+
},
|
|
122
|
+
create(base) {
|
|
123
|
+
return exports.restructureLoanResponse.fromPartial(base ?? {});
|
|
124
|
+
},
|
|
125
|
+
fromPartial(object) {
|
|
126
|
+
const message = createBaserestructureLoanResponse();
|
|
127
|
+
message.id = object.id ?? 0;
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
function isSet(value) {
|
|
132
|
+
return value !== null && value !== undefined;
|
|
133
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.transactionlist";
|
|
3
|
+
export interface transactionListRequest {
|
|
4
|
+
filter_by: string;
|
|
5
|
+
}
|
|
6
|
+
export interface transactionListResponse {
|
|
7
|
+
data: transactionListResponse_Field[];
|
|
8
|
+
}
|
|
9
|
+
export interface transactionListResponse_Field {
|
|
10
|
+
id: number;
|
|
11
|
+
loan_amount: number;
|
|
12
|
+
emi_amount: number;
|
|
13
|
+
start_date: string;
|
|
14
|
+
close_date: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const transactionListRequest: {
|
|
17
|
+
encode(message: transactionListRequest, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): transactionListRequest;
|
|
19
|
+
fromJSON(object: any): transactionListRequest;
|
|
20
|
+
toJSON(message: transactionListRequest): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<transactionListRequest>, I>>(base?: I): transactionListRequest;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<transactionListRequest>, I>>(object: I): transactionListRequest;
|
|
23
|
+
};
|
|
24
|
+
export declare const transactionListResponse: {
|
|
25
|
+
encode(message: transactionListResponse, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): transactionListResponse;
|
|
27
|
+
fromJSON(object: any): transactionListResponse;
|
|
28
|
+
toJSON(message: transactionListResponse): unknown;
|
|
29
|
+
create<I extends Exact<DeepPartial<transactionListResponse>, I>>(base?: I): transactionListResponse;
|
|
30
|
+
fromPartial<I extends Exact<DeepPartial<transactionListResponse>, I>>(object: I): transactionListResponse;
|
|
31
|
+
};
|
|
32
|
+
export declare const transactionListResponse_Field: {
|
|
33
|
+
encode(message: transactionListResponse_Field, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): transactionListResponse_Field;
|
|
35
|
+
fromJSON(object: any): transactionListResponse_Field;
|
|
36
|
+
toJSON(message: transactionListResponse_Field): unknown;
|
|
37
|
+
create<I extends Exact<DeepPartial<transactionListResponse_Field>, I>>(base?: I): transactionListResponse_Field;
|
|
38
|
+
fromPartial<I extends Exact<DeepPartial<transactionListResponse_Field>, I>>(object: I): transactionListResponse_Field;
|
|
39
|
+
};
|
|
40
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
41
|
+
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 {} ? {
|
|
42
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
43
|
+
} : Partial<T>;
|
|
44
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
45
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
46
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
47
|
+
} & {
|
|
48
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
49
|
+
};
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,229 @@
|
|
|
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 v3.20.3
|
|
6
|
+
// source: loans/transactionlist.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.transactionListResponse_Field = exports.transactionListResponse = exports.transactionListRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.transactionlist";
|
|
15
|
+
function createBasetransactionListRequest() {
|
|
16
|
+
return { filter_by: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.transactionListRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.filter_by !== "") {
|
|
21
|
+
writer.uint32(10).string(message.filter_by);
|
|
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 = createBasetransactionListRequest();
|
|
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.filter_by = reader.string();
|
|
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 { filter_by: isSet(object.filter_by) ? globalThis.String(object.filter_by) : "" };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.filter_by !== "") {
|
|
52
|
+
obj.filter_by = message.filter_by;
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.transactionListRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBasetransactionListRequest();
|
|
61
|
+
message.filter_by = object.filter_by ?? "";
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBasetransactionListResponse() {
|
|
66
|
+
return { data: [] };
|
|
67
|
+
}
|
|
68
|
+
exports.transactionListResponse = {
|
|
69
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
+
for (const v of message.data) {
|
|
71
|
+
exports.transactionListResponse_Field.encode(v, writer.uint32(10).fork()).ldelim();
|
|
72
|
+
}
|
|
73
|
+
return writer;
|
|
74
|
+
},
|
|
75
|
+
decode(input, length) {
|
|
76
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
+
const message = createBasetransactionListResponse();
|
|
79
|
+
while (reader.pos < end) {
|
|
80
|
+
const tag = reader.uint32();
|
|
81
|
+
switch (tag >>> 3) {
|
|
82
|
+
case 1:
|
|
83
|
+
if (tag !== 10) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.data.push(exports.transactionListResponse_Field.decode(reader, reader.uint32()));
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
reader.skipType(tag & 7);
|
|
93
|
+
}
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
fromJSON(object) {
|
|
97
|
+
return {
|
|
98
|
+
data: globalThis.Array.isArray(object?.data)
|
|
99
|
+
? object.data.map((e) => exports.transactionListResponse_Field.fromJSON(e))
|
|
100
|
+
: [],
|
|
101
|
+
};
|
|
102
|
+
},
|
|
103
|
+
toJSON(message) {
|
|
104
|
+
const obj = {};
|
|
105
|
+
if (message.data?.length) {
|
|
106
|
+
obj.data = message.data.map((e) => exports.transactionListResponse_Field.toJSON(e));
|
|
107
|
+
}
|
|
108
|
+
return obj;
|
|
109
|
+
},
|
|
110
|
+
create(base) {
|
|
111
|
+
return exports.transactionListResponse.fromPartial(base ?? {});
|
|
112
|
+
},
|
|
113
|
+
fromPartial(object) {
|
|
114
|
+
const message = createBasetransactionListResponse();
|
|
115
|
+
message.data = object.data?.map((e) => exports.transactionListResponse_Field.fromPartial(e)) || [];
|
|
116
|
+
return message;
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
function createBasetransactionListResponse_Field() {
|
|
120
|
+
return { id: 0, loan_amount: 0, emi_amount: 0, start_date: "", close_date: "" };
|
|
121
|
+
}
|
|
122
|
+
exports.transactionListResponse_Field = {
|
|
123
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
124
|
+
if (message.id !== 0) {
|
|
125
|
+
writer.uint32(8).int32(message.id);
|
|
126
|
+
}
|
|
127
|
+
if (message.loan_amount !== 0) {
|
|
128
|
+
writer.uint32(16).int32(message.loan_amount);
|
|
129
|
+
}
|
|
130
|
+
if (message.emi_amount !== 0) {
|
|
131
|
+
writer.uint32(24).int32(message.emi_amount);
|
|
132
|
+
}
|
|
133
|
+
if (message.start_date !== "") {
|
|
134
|
+
writer.uint32(34).string(message.start_date);
|
|
135
|
+
}
|
|
136
|
+
if (message.close_date !== "") {
|
|
137
|
+
writer.uint32(42).string(message.close_date);
|
|
138
|
+
}
|
|
139
|
+
return writer;
|
|
140
|
+
},
|
|
141
|
+
decode(input, length) {
|
|
142
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
143
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
144
|
+
const message = createBasetransactionListResponse_Field();
|
|
145
|
+
while (reader.pos < end) {
|
|
146
|
+
const tag = reader.uint32();
|
|
147
|
+
switch (tag >>> 3) {
|
|
148
|
+
case 1:
|
|
149
|
+
if (tag !== 8) {
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
message.id = reader.int32();
|
|
153
|
+
continue;
|
|
154
|
+
case 2:
|
|
155
|
+
if (tag !== 16) {
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
message.loan_amount = reader.int32();
|
|
159
|
+
continue;
|
|
160
|
+
case 3:
|
|
161
|
+
if (tag !== 24) {
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
message.emi_amount = reader.int32();
|
|
165
|
+
continue;
|
|
166
|
+
case 4:
|
|
167
|
+
if (tag !== 34) {
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
message.start_date = reader.string();
|
|
171
|
+
continue;
|
|
172
|
+
case 5:
|
|
173
|
+
if (tag !== 42) {
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
message.close_date = reader.string();
|
|
177
|
+
continue;
|
|
178
|
+
}
|
|
179
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
reader.skipType(tag & 7);
|
|
183
|
+
}
|
|
184
|
+
return message;
|
|
185
|
+
},
|
|
186
|
+
fromJSON(object) {
|
|
187
|
+
return {
|
|
188
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
189
|
+
loan_amount: isSet(object.loan_amount) ? globalThis.Number(object.loan_amount) : 0,
|
|
190
|
+
emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : 0,
|
|
191
|
+
start_date: isSet(object.start_date) ? globalThis.String(object.start_date) : "",
|
|
192
|
+
close_date: isSet(object.close_date) ? globalThis.String(object.close_date) : "",
|
|
193
|
+
};
|
|
194
|
+
},
|
|
195
|
+
toJSON(message) {
|
|
196
|
+
const obj = {};
|
|
197
|
+
if (message.id !== 0) {
|
|
198
|
+
obj.id = Math.round(message.id);
|
|
199
|
+
}
|
|
200
|
+
if (message.loan_amount !== 0) {
|
|
201
|
+
obj.loan_amount = Math.round(message.loan_amount);
|
|
202
|
+
}
|
|
203
|
+
if (message.emi_amount !== 0) {
|
|
204
|
+
obj.emi_amount = Math.round(message.emi_amount);
|
|
205
|
+
}
|
|
206
|
+
if (message.start_date !== "") {
|
|
207
|
+
obj.start_date = message.start_date;
|
|
208
|
+
}
|
|
209
|
+
if (message.close_date !== "") {
|
|
210
|
+
obj.close_date = message.close_date;
|
|
211
|
+
}
|
|
212
|
+
return obj;
|
|
213
|
+
},
|
|
214
|
+
create(base) {
|
|
215
|
+
return exports.transactionListResponse_Field.fromPartial(base ?? {});
|
|
216
|
+
},
|
|
217
|
+
fromPartial(object) {
|
|
218
|
+
const message = createBasetransactionListResponse_Field();
|
|
219
|
+
message.id = object.id ?? 0;
|
|
220
|
+
message.loan_amount = object.loan_amount ?? 0;
|
|
221
|
+
message.emi_amount = object.emi_amount ?? 0;
|
|
222
|
+
message.start_date = object.start_date ?? "";
|
|
223
|
+
message.close_date = object.close_date ?? "";
|
|
224
|
+
return message;
|
|
225
|
+
},
|
|
226
|
+
};
|
|
227
|
+
function isSet(value) {
|
|
228
|
+
return value !== null && value !== undefined;
|
|
229
|
+
}
|