@stashfin/grpc 1.2.171 → 1.2.172
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/colender/disburseLoan.d.ts +8 -3
- package/ts/colender/disburseLoan.js +104 -23
- package/ts/colender/forecloseLoan.d.ts +16 -0
- package/ts/colender/forecloseLoan.js +136 -8
- package/ts/colender/repayLoan.d.ts +16 -7
- package/ts/colender/repayLoan.js +116 -94
- package/ts/customers/addmoredetails.d.ts +17 -12
- package/ts/customers/addmoredetails.js +188 -69
package/package.json
CHANGED
|
@@ -3,9 +3,14 @@ export declare const protobufPackage = "colender.disburseLoan";
|
|
|
3
3
|
export interface disburalRequest {
|
|
4
4
|
customer_id: number;
|
|
5
5
|
loan_id: number;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
disbursal_amount: number;
|
|
7
|
+
approval_amount: number;
|
|
8
|
+
disbursal_date: string;
|
|
9
|
+
disbursal_mode: string;
|
|
10
|
+
tenure: number;
|
|
11
|
+
roi: number;
|
|
12
|
+
daily_roi: number;
|
|
13
|
+
first_emi_date: string;
|
|
9
14
|
}
|
|
10
15
|
export interface disburalResponse {
|
|
11
16
|
status: string;
|
|
@@ -13,7 +13,18 @@ exports.disburalResponse = exports.disburalRequest = exports.protobufPackage = v
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "colender.disburseLoan";
|
|
15
15
|
function createBasedisburalRequest() {
|
|
16
|
-
return {
|
|
16
|
+
return {
|
|
17
|
+
customer_id: 0,
|
|
18
|
+
loan_id: 0,
|
|
19
|
+
disbursal_amount: 0,
|
|
20
|
+
approval_amount: 0,
|
|
21
|
+
disbursal_date: "",
|
|
22
|
+
disbursal_mode: "",
|
|
23
|
+
tenure: 0,
|
|
24
|
+
roi: 0,
|
|
25
|
+
daily_roi: 0,
|
|
26
|
+
first_emi_date: "",
|
|
27
|
+
};
|
|
17
28
|
}
|
|
18
29
|
exports.disburalRequest = {
|
|
19
30
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -23,14 +34,29 @@ exports.disburalRequest = {
|
|
|
23
34
|
if (message.loan_id !== 0) {
|
|
24
35
|
writer.uint32(16).int32(message.loan_id);
|
|
25
36
|
}
|
|
26
|
-
if (message.
|
|
27
|
-
writer.uint32(24).int32(message.
|
|
37
|
+
if (message.disbursal_amount !== 0) {
|
|
38
|
+
writer.uint32(24).int32(message.disbursal_amount);
|
|
39
|
+
}
|
|
40
|
+
if (message.approval_amount !== 0) {
|
|
41
|
+
writer.uint32(32).int32(message.approval_amount);
|
|
42
|
+
}
|
|
43
|
+
if (message.disbursal_date !== "") {
|
|
44
|
+
writer.uint32(42).string(message.disbursal_date);
|
|
45
|
+
}
|
|
46
|
+
if (message.disbursal_mode !== "") {
|
|
47
|
+
writer.uint32(50).string(message.disbursal_mode);
|
|
48
|
+
}
|
|
49
|
+
if (message.tenure !== 0) {
|
|
50
|
+
writer.uint32(56).int32(message.tenure);
|
|
51
|
+
}
|
|
52
|
+
if (message.roi !== 0) {
|
|
53
|
+
writer.uint32(64).int32(message.roi);
|
|
28
54
|
}
|
|
29
|
-
if (message.
|
|
30
|
-
writer.uint32(
|
|
55
|
+
if (message.daily_roi !== 0) {
|
|
56
|
+
writer.uint32(72).int32(message.daily_roi);
|
|
31
57
|
}
|
|
32
|
-
if (message.
|
|
33
|
-
writer.uint32(
|
|
58
|
+
if (message.first_emi_date !== "") {
|
|
59
|
+
writer.uint32(82).string(message.first_emi_date);
|
|
34
60
|
}
|
|
35
61
|
return writer;
|
|
36
62
|
},
|
|
@@ -57,19 +83,49 @@ exports.disburalRequest = {
|
|
|
57
83
|
if (tag !== 24) {
|
|
58
84
|
break;
|
|
59
85
|
}
|
|
60
|
-
message.
|
|
86
|
+
message.disbursal_amount = reader.int32();
|
|
61
87
|
continue;
|
|
62
88
|
case 4:
|
|
63
|
-
if (tag !==
|
|
89
|
+
if (tag !== 32) {
|
|
64
90
|
break;
|
|
65
91
|
}
|
|
66
|
-
message.
|
|
92
|
+
message.approval_amount = reader.int32();
|
|
67
93
|
continue;
|
|
68
94
|
case 5:
|
|
69
95
|
if (tag !== 42) {
|
|
70
96
|
break;
|
|
71
97
|
}
|
|
72
|
-
message.
|
|
98
|
+
message.disbursal_date = reader.string();
|
|
99
|
+
continue;
|
|
100
|
+
case 6:
|
|
101
|
+
if (tag !== 50) {
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
message.disbursal_mode = reader.string();
|
|
105
|
+
continue;
|
|
106
|
+
case 7:
|
|
107
|
+
if (tag !== 56) {
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
message.tenure = reader.int32();
|
|
111
|
+
continue;
|
|
112
|
+
case 8:
|
|
113
|
+
if (tag !== 64) {
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
message.roi = reader.int32();
|
|
117
|
+
continue;
|
|
118
|
+
case 9:
|
|
119
|
+
if (tag !== 72) {
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
message.daily_roi = reader.int32();
|
|
123
|
+
continue;
|
|
124
|
+
case 10:
|
|
125
|
+
if (tag !== 82) {
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
message.first_emi_date = reader.string();
|
|
73
129
|
continue;
|
|
74
130
|
}
|
|
75
131
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -83,9 +139,14 @@ exports.disburalRequest = {
|
|
|
83
139
|
return {
|
|
84
140
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
85
141
|
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
142
|
+
disbursal_amount: isSet(object.disbursal_amount) ? globalThis.Number(object.disbursal_amount) : 0,
|
|
143
|
+
approval_amount: isSet(object.approval_amount) ? globalThis.Number(object.approval_amount) : 0,
|
|
144
|
+
disbursal_date: isSet(object.disbursal_date) ? globalThis.String(object.disbursal_date) : "",
|
|
145
|
+
disbursal_mode: isSet(object.disbursal_mode) ? globalThis.String(object.disbursal_mode) : "",
|
|
146
|
+
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
147
|
+
roi: isSet(object.roi) ? globalThis.Number(object.roi) : 0,
|
|
148
|
+
daily_roi: isSet(object.daily_roi) ? globalThis.Number(object.daily_roi) : 0,
|
|
149
|
+
first_emi_date: isSet(object.first_emi_date) ? globalThis.String(object.first_emi_date) : "",
|
|
89
150
|
};
|
|
90
151
|
},
|
|
91
152
|
toJSON(message) {
|
|
@@ -96,14 +157,29 @@ exports.disburalRequest = {
|
|
|
96
157
|
if (message.loan_id !== 0) {
|
|
97
158
|
obj.loan_id = Math.round(message.loan_id);
|
|
98
159
|
}
|
|
99
|
-
if (message.
|
|
100
|
-
obj.
|
|
160
|
+
if (message.disbursal_amount !== 0) {
|
|
161
|
+
obj.disbursal_amount = Math.round(message.disbursal_amount);
|
|
162
|
+
}
|
|
163
|
+
if (message.approval_amount !== 0) {
|
|
164
|
+
obj.approval_amount = Math.round(message.approval_amount);
|
|
165
|
+
}
|
|
166
|
+
if (message.disbursal_date !== "") {
|
|
167
|
+
obj.disbursal_date = message.disbursal_date;
|
|
101
168
|
}
|
|
102
|
-
if (message.
|
|
103
|
-
obj.
|
|
169
|
+
if (message.disbursal_mode !== "") {
|
|
170
|
+
obj.disbursal_mode = message.disbursal_mode;
|
|
104
171
|
}
|
|
105
|
-
if (message.
|
|
106
|
-
obj.
|
|
172
|
+
if (message.tenure !== 0) {
|
|
173
|
+
obj.tenure = Math.round(message.tenure);
|
|
174
|
+
}
|
|
175
|
+
if (message.roi !== 0) {
|
|
176
|
+
obj.roi = Math.round(message.roi);
|
|
177
|
+
}
|
|
178
|
+
if (message.daily_roi !== 0) {
|
|
179
|
+
obj.daily_roi = Math.round(message.daily_roi);
|
|
180
|
+
}
|
|
181
|
+
if (message.first_emi_date !== "") {
|
|
182
|
+
obj.first_emi_date = message.first_emi_date;
|
|
107
183
|
}
|
|
108
184
|
return obj;
|
|
109
185
|
},
|
|
@@ -114,9 +190,14 @@ exports.disburalRequest = {
|
|
|
114
190
|
const message = createBasedisburalRequest();
|
|
115
191
|
message.customer_id = object.customer_id ?? 0;
|
|
116
192
|
message.loan_id = object.loan_id ?? 0;
|
|
117
|
-
message.
|
|
118
|
-
message.
|
|
119
|
-
message.
|
|
193
|
+
message.disbursal_amount = object.disbursal_amount ?? 0;
|
|
194
|
+
message.approval_amount = object.approval_amount ?? 0;
|
|
195
|
+
message.disbursal_date = object.disbursal_date ?? "";
|
|
196
|
+
message.disbursal_mode = object.disbursal_mode ?? "";
|
|
197
|
+
message.tenure = object.tenure ?? 0;
|
|
198
|
+
message.roi = object.roi ?? 0;
|
|
199
|
+
message.daily_roi = object.daily_roi ?? 0;
|
|
200
|
+
message.first_emi_date = object.first_emi_date ?? "";
|
|
120
201
|
return message;
|
|
121
202
|
},
|
|
122
203
|
};
|
|
@@ -10,7 +10,15 @@ export interface forecloseRequest {
|
|
|
10
10
|
}
|
|
11
11
|
export interface forecloseResponse {
|
|
12
12
|
query?: string | undefined;
|
|
13
|
+
actionStatus: status | undefined;
|
|
14
|
+
installmentQuery: string[];
|
|
15
|
+
paymentsQuery: string[];
|
|
16
|
+
forecloseQuery: string;
|
|
17
|
+
}
|
|
18
|
+
export interface status {
|
|
13
19
|
status: string;
|
|
20
|
+
error?: string | undefined;
|
|
21
|
+
message: string;
|
|
14
22
|
}
|
|
15
23
|
export declare const forecloseRequest: {
|
|
16
24
|
encode(message: forecloseRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -28,6 +36,14 @@ export declare const forecloseResponse: {
|
|
|
28
36
|
create<I extends Exact<DeepPartial<forecloseResponse>, I>>(base?: I): forecloseResponse;
|
|
29
37
|
fromPartial<I extends Exact<DeepPartial<forecloseResponse>, I>>(object: I): forecloseResponse;
|
|
30
38
|
};
|
|
39
|
+
export declare const status: {
|
|
40
|
+
encode(message: status, writer?: _m0.Writer): _m0.Writer;
|
|
41
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): status;
|
|
42
|
+
fromJSON(object: any): status;
|
|
43
|
+
toJSON(message: status): unknown;
|
|
44
|
+
create<I extends Exact<DeepPartial<status>, I>>(base?: I): status;
|
|
45
|
+
fromPartial<I extends Exact<DeepPartial<status>, I>>(object: I): status;
|
|
46
|
+
};
|
|
31
47
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
32
48
|
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 {} ? {
|
|
33
49
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.forecloseResponse = exports.forecloseRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.status = exports.forecloseResponse = exports.forecloseRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "colender.forecloseLoan";
|
|
@@ -135,15 +135,24 @@ exports.forecloseRequest = {
|
|
|
135
135
|
},
|
|
136
136
|
};
|
|
137
137
|
function createBaseforecloseResponse() {
|
|
138
|
-
return { query: undefined,
|
|
138
|
+
return { query: undefined, actionStatus: undefined, installmentQuery: [], paymentsQuery: [], forecloseQuery: "" };
|
|
139
139
|
}
|
|
140
140
|
exports.forecloseResponse = {
|
|
141
141
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
142
142
|
if (message.query !== undefined) {
|
|
143
143
|
writer.uint32(10).string(message.query);
|
|
144
144
|
}
|
|
145
|
-
if (message.
|
|
146
|
-
writer.uint32(18).
|
|
145
|
+
if (message.actionStatus !== undefined) {
|
|
146
|
+
exports.status.encode(message.actionStatus, writer.uint32(18).fork()).ldelim();
|
|
147
|
+
}
|
|
148
|
+
for (const v of message.installmentQuery) {
|
|
149
|
+
writer.uint32(26).string(v);
|
|
150
|
+
}
|
|
151
|
+
for (const v of message.paymentsQuery) {
|
|
152
|
+
writer.uint32(34).string(v);
|
|
153
|
+
}
|
|
154
|
+
if (message.forecloseQuery !== "") {
|
|
155
|
+
writer.uint32(42).string(message.forecloseQuery);
|
|
147
156
|
}
|
|
148
157
|
return writer;
|
|
149
158
|
},
|
|
@@ -164,7 +173,25 @@ exports.forecloseResponse = {
|
|
|
164
173
|
if (tag !== 18) {
|
|
165
174
|
break;
|
|
166
175
|
}
|
|
167
|
-
message.
|
|
176
|
+
message.actionStatus = exports.status.decode(reader, reader.uint32());
|
|
177
|
+
continue;
|
|
178
|
+
case 3:
|
|
179
|
+
if (tag !== 26) {
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
message.installmentQuery.push(reader.string());
|
|
183
|
+
continue;
|
|
184
|
+
case 4:
|
|
185
|
+
if (tag !== 34) {
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
message.paymentsQuery.push(reader.string());
|
|
189
|
+
continue;
|
|
190
|
+
case 5:
|
|
191
|
+
if (tag !== 42) {
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
message.forecloseQuery = reader.string();
|
|
168
195
|
continue;
|
|
169
196
|
}
|
|
170
197
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -177,7 +204,14 @@ exports.forecloseResponse = {
|
|
|
177
204
|
fromJSON(object) {
|
|
178
205
|
return {
|
|
179
206
|
query: isSet(object.query) ? globalThis.String(object.query) : undefined,
|
|
180
|
-
|
|
207
|
+
actionStatus: isSet(object.actionStatus) ? exports.status.fromJSON(object.actionStatus) : undefined,
|
|
208
|
+
installmentQuery: globalThis.Array.isArray(object?.installmentQuery)
|
|
209
|
+
? object.installmentQuery.map((e) => globalThis.String(e))
|
|
210
|
+
: [],
|
|
211
|
+
paymentsQuery: globalThis.Array.isArray(object?.paymentsQuery)
|
|
212
|
+
? object.paymentsQuery.map((e) => globalThis.String(e))
|
|
213
|
+
: [],
|
|
214
|
+
forecloseQuery: isSet(object.forecloseQuery) ? globalThis.String(object.forecloseQuery) : "",
|
|
181
215
|
};
|
|
182
216
|
},
|
|
183
217
|
toJSON(message) {
|
|
@@ -185,8 +219,17 @@ exports.forecloseResponse = {
|
|
|
185
219
|
if (message.query !== undefined) {
|
|
186
220
|
obj.query = message.query;
|
|
187
221
|
}
|
|
188
|
-
if (message.
|
|
189
|
-
obj.
|
|
222
|
+
if (message.actionStatus !== undefined) {
|
|
223
|
+
obj.actionStatus = exports.status.toJSON(message.actionStatus);
|
|
224
|
+
}
|
|
225
|
+
if (message.installmentQuery?.length) {
|
|
226
|
+
obj.installmentQuery = message.installmentQuery;
|
|
227
|
+
}
|
|
228
|
+
if (message.paymentsQuery?.length) {
|
|
229
|
+
obj.paymentsQuery = message.paymentsQuery;
|
|
230
|
+
}
|
|
231
|
+
if (message.forecloseQuery !== "") {
|
|
232
|
+
obj.forecloseQuery = message.forecloseQuery;
|
|
190
233
|
}
|
|
191
234
|
return obj;
|
|
192
235
|
},
|
|
@@ -196,7 +239,92 @@ exports.forecloseResponse = {
|
|
|
196
239
|
fromPartial(object) {
|
|
197
240
|
const message = createBaseforecloseResponse();
|
|
198
241
|
message.query = object.query ?? undefined;
|
|
242
|
+
message.actionStatus = (object.actionStatus !== undefined && object.actionStatus !== null)
|
|
243
|
+
? exports.status.fromPartial(object.actionStatus)
|
|
244
|
+
: undefined;
|
|
245
|
+
message.installmentQuery = object.installmentQuery?.map((e) => e) || [];
|
|
246
|
+
message.paymentsQuery = object.paymentsQuery?.map((e) => e) || [];
|
|
247
|
+
message.forecloseQuery = object.forecloseQuery ?? "";
|
|
248
|
+
return message;
|
|
249
|
+
},
|
|
250
|
+
};
|
|
251
|
+
function createBasestatus() {
|
|
252
|
+
return { status: "", error: undefined, message: "" };
|
|
253
|
+
}
|
|
254
|
+
exports.status = {
|
|
255
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
256
|
+
if (message.status !== "") {
|
|
257
|
+
writer.uint32(10).string(message.status);
|
|
258
|
+
}
|
|
259
|
+
if (message.error !== undefined) {
|
|
260
|
+
writer.uint32(18).string(message.error);
|
|
261
|
+
}
|
|
262
|
+
if (message.message !== "") {
|
|
263
|
+
writer.uint32(26).string(message.message);
|
|
264
|
+
}
|
|
265
|
+
return writer;
|
|
266
|
+
},
|
|
267
|
+
decode(input, length) {
|
|
268
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
269
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
270
|
+
const message = createBasestatus();
|
|
271
|
+
while (reader.pos < end) {
|
|
272
|
+
const tag = reader.uint32();
|
|
273
|
+
switch (tag >>> 3) {
|
|
274
|
+
case 1:
|
|
275
|
+
if (tag !== 10) {
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
message.status = reader.string();
|
|
279
|
+
continue;
|
|
280
|
+
case 2:
|
|
281
|
+
if (tag !== 18) {
|
|
282
|
+
break;
|
|
283
|
+
}
|
|
284
|
+
message.error = reader.string();
|
|
285
|
+
continue;
|
|
286
|
+
case 3:
|
|
287
|
+
if (tag !== 26) {
|
|
288
|
+
break;
|
|
289
|
+
}
|
|
290
|
+
message.message = reader.string();
|
|
291
|
+
continue;
|
|
292
|
+
}
|
|
293
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
reader.skipType(tag & 7);
|
|
297
|
+
}
|
|
298
|
+
return message;
|
|
299
|
+
},
|
|
300
|
+
fromJSON(object) {
|
|
301
|
+
return {
|
|
302
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
303
|
+
error: isSet(object.error) ? globalThis.String(object.error) : undefined,
|
|
304
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
305
|
+
};
|
|
306
|
+
},
|
|
307
|
+
toJSON(message) {
|
|
308
|
+
const obj = {};
|
|
309
|
+
if (message.status !== "") {
|
|
310
|
+
obj.status = message.status;
|
|
311
|
+
}
|
|
312
|
+
if (message.error !== undefined) {
|
|
313
|
+
obj.error = message.error;
|
|
314
|
+
}
|
|
315
|
+
if (message.message !== "") {
|
|
316
|
+
obj.message = message.message;
|
|
317
|
+
}
|
|
318
|
+
return obj;
|
|
319
|
+
},
|
|
320
|
+
create(base) {
|
|
321
|
+
return exports.status.fromPartial(base ?? {});
|
|
322
|
+
},
|
|
323
|
+
fromPartial(object) {
|
|
324
|
+
const message = createBasestatus();
|
|
199
325
|
message.status = object.status ?? "";
|
|
326
|
+
message.error = object.error ?? undefined;
|
|
327
|
+
message.message = object.message ?? "";
|
|
200
328
|
return message;
|
|
201
329
|
},
|
|
202
330
|
};
|
|
@@ -9,15 +9,16 @@ export interface repayRequest {
|
|
|
9
9
|
payment_date: string;
|
|
10
10
|
}
|
|
11
11
|
export interface repayResponse {
|
|
12
|
-
query
|
|
12
|
+
query?: string | undefined;
|
|
13
|
+
actionStatus: status | undefined;
|
|
14
|
+
installmentQuery: string;
|
|
15
|
+
paymentsQuery: string;
|
|
13
16
|
closeLoanQuery?: string | undefined;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
r_pif_principal: number;
|
|
17
|
-
r_pif_interest: number;
|
|
18
|
-
r_penalty: number;
|
|
19
|
-
r_pif_penalty: number;
|
|
17
|
+
}
|
|
18
|
+
export interface status {
|
|
20
19
|
status: string;
|
|
20
|
+
error?: string | undefined;
|
|
21
|
+
message: string;
|
|
21
22
|
}
|
|
22
23
|
export declare const repayRequest: {
|
|
23
24
|
encode(message: repayRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -35,6 +36,14 @@ export declare const repayResponse: {
|
|
|
35
36
|
create<I extends Exact<DeepPartial<repayResponse>, I>>(base?: I): repayResponse;
|
|
36
37
|
fromPartial<I extends Exact<DeepPartial<repayResponse>, I>>(object: I): repayResponse;
|
|
37
38
|
};
|
|
39
|
+
export declare const status: {
|
|
40
|
+
encode(message: status, writer?: _m0.Writer): _m0.Writer;
|
|
41
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): status;
|
|
42
|
+
fromJSON(object: any): status;
|
|
43
|
+
toJSON(message: status): unknown;
|
|
44
|
+
create<I extends Exact<DeepPartial<status>, I>>(base?: I): status;
|
|
45
|
+
fromPartial<I extends Exact<DeepPartial<status>, I>>(object: I): status;
|
|
46
|
+
};
|
|
38
47
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
39
48
|
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 {} ? {
|
|
40
49
|
[K in keyof T]?: DeepPartial<T[K]>;
|
package/ts/colender/repayLoan.js
CHANGED
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.repayResponse = exports.repayRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.status = exports.repayResponse = exports.repayRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "colender.repayLoan";
|
|
@@ -136,45 +136,29 @@ exports.repayRequest = {
|
|
|
136
136
|
};
|
|
137
137
|
function createBaserepayResponse() {
|
|
138
138
|
return {
|
|
139
|
-
query:
|
|
139
|
+
query: undefined,
|
|
140
|
+
actionStatus: undefined,
|
|
141
|
+
installmentQuery: "",
|
|
142
|
+
paymentsQuery: "",
|
|
140
143
|
closeLoanQuery: undefined,
|
|
141
|
-
r_principal: 0,
|
|
142
|
-
r_interest: 0,
|
|
143
|
-
r_pif_principal: 0,
|
|
144
|
-
r_pif_interest: 0,
|
|
145
|
-
r_penalty: 0,
|
|
146
|
-
r_pif_penalty: 0,
|
|
147
|
-
status: "",
|
|
148
144
|
};
|
|
149
145
|
}
|
|
150
146
|
exports.repayResponse = {
|
|
151
147
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
152
|
-
if (message.query !==
|
|
148
|
+
if (message.query !== undefined) {
|
|
153
149
|
writer.uint32(10).string(message.query);
|
|
154
150
|
}
|
|
155
|
-
if (message.
|
|
156
|
-
writer.uint32(18).
|
|
157
|
-
}
|
|
158
|
-
if (message.r_principal !== 0) {
|
|
159
|
-
writer.uint32(24).int32(message.r_principal);
|
|
160
|
-
}
|
|
161
|
-
if (message.r_interest !== 0) {
|
|
162
|
-
writer.uint32(32).int32(message.r_interest);
|
|
151
|
+
if (message.actionStatus !== undefined) {
|
|
152
|
+
exports.status.encode(message.actionStatus, writer.uint32(18).fork()).ldelim();
|
|
163
153
|
}
|
|
164
|
-
if (message.
|
|
165
|
-
writer.uint32(
|
|
154
|
+
if (message.installmentQuery !== "") {
|
|
155
|
+
writer.uint32(26).string(message.installmentQuery);
|
|
166
156
|
}
|
|
167
|
-
if (message.
|
|
168
|
-
writer.uint32(
|
|
157
|
+
if (message.paymentsQuery !== "") {
|
|
158
|
+
writer.uint32(34).string(message.paymentsQuery);
|
|
169
159
|
}
|
|
170
|
-
if (message.
|
|
171
|
-
writer.uint32(
|
|
172
|
-
}
|
|
173
|
-
if (message.r_pif_penalty !== 0) {
|
|
174
|
-
writer.uint32(64).int32(message.r_pif_penalty);
|
|
175
|
-
}
|
|
176
|
-
if (message.status !== "") {
|
|
177
|
-
writer.uint32(74).string(message.status);
|
|
160
|
+
if (message.closeLoanQuery !== undefined) {
|
|
161
|
+
writer.uint32(42).string(message.closeLoanQuery);
|
|
178
162
|
}
|
|
179
163
|
return writer;
|
|
180
164
|
},
|
|
@@ -195,49 +179,25 @@ exports.repayResponse = {
|
|
|
195
179
|
if (tag !== 18) {
|
|
196
180
|
break;
|
|
197
181
|
}
|
|
198
|
-
message.
|
|
182
|
+
message.actionStatus = exports.status.decode(reader, reader.uint32());
|
|
199
183
|
continue;
|
|
200
184
|
case 3:
|
|
201
|
-
if (tag !==
|
|
185
|
+
if (tag !== 26) {
|
|
202
186
|
break;
|
|
203
187
|
}
|
|
204
|
-
message.
|
|
188
|
+
message.installmentQuery = reader.string();
|
|
205
189
|
continue;
|
|
206
190
|
case 4:
|
|
207
|
-
if (tag !==
|
|
191
|
+
if (tag !== 34) {
|
|
208
192
|
break;
|
|
209
193
|
}
|
|
210
|
-
message.
|
|
194
|
+
message.paymentsQuery = reader.string();
|
|
211
195
|
continue;
|
|
212
196
|
case 5:
|
|
213
|
-
if (tag !==
|
|
214
|
-
break;
|
|
215
|
-
}
|
|
216
|
-
message.r_pif_principal = reader.int32();
|
|
217
|
-
continue;
|
|
218
|
-
case 6:
|
|
219
|
-
if (tag !== 48) {
|
|
220
|
-
break;
|
|
221
|
-
}
|
|
222
|
-
message.r_pif_interest = reader.int32();
|
|
223
|
-
continue;
|
|
224
|
-
case 7:
|
|
225
|
-
if (tag !== 56) {
|
|
226
|
-
break;
|
|
227
|
-
}
|
|
228
|
-
message.r_penalty = reader.int32();
|
|
229
|
-
continue;
|
|
230
|
-
case 8:
|
|
231
|
-
if (tag !== 64) {
|
|
232
|
-
break;
|
|
233
|
-
}
|
|
234
|
-
message.r_pif_penalty = reader.int32();
|
|
235
|
-
continue;
|
|
236
|
-
case 9:
|
|
237
|
-
if (tag !== 74) {
|
|
197
|
+
if (tag !== 42) {
|
|
238
198
|
break;
|
|
239
199
|
}
|
|
240
|
-
message.
|
|
200
|
+
message.closeLoanQuery = reader.string();
|
|
241
201
|
continue;
|
|
242
202
|
}
|
|
243
203
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -249,62 +209,124 @@ exports.repayResponse = {
|
|
|
249
209
|
},
|
|
250
210
|
fromJSON(object) {
|
|
251
211
|
return {
|
|
252
|
-
query: isSet(object.query) ? globalThis.String(object.query) :
|
|
212
|
+
query: isSet(object.query) ? globalThis.String(object.query) : undefined,
|
|
213
|
+
actionStatus: isSet(object.actionStatus) ? exports.status.fromJSON(object.actionStatus) : undefined,
|
|
214
|
+
installmentQuery: isSet(object.installmentQuery) ? globalThis.String(object.installmentQuery) : "",
|
|
215
|
+
paymentsQuery: isSet(object.paymentsQuery) ? globalThis.String(object.paymentsQuery) : "",
|
|
253
216
|
closeLoanQuery: isSet(object.closeLoanQuery) ? globalThis.String(object.closeLoanQuery) : undefined,
|
|
254
|
-
r_principal: isSet(object.r_principal) ? globalThis.Number(object.r_principal) : 0,
|
|
255
|
-
r_interest: isSet(object.r_interest) ? globalThis.Number(object.r_interest) : 0,
|
|
256
|
-
r_pif_principal: isSet(object.r_pif_principal) ? globalThis.Number(object.r_pif_principal) : 0,
|
|
257
|
-
r_pif_interest: isSet(object.r_pif_interest) ? globalThis.Number(object.r_pif_interest) : 0,
|
|
258
|
-
r_penalty: isSet(object.r_penalty) ? globalThis.Number(object.r_penalty) : 0,
|
|
259
|
-
r_pif_penalty: isSet(object.r_pif_penalty) ? globalThis.Number(object.r_pif_penalty) : 0,
|
|
260
|
-
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
261
217
|
};
|
|
262
218
|
},
|
|
263
219
|
toJSON(message) {
|
|
264
220
|
const obj = {};
|
|
265
|
-
if (message.query !==
|
|
221
|
+
if (message.query !== undefined) {
|
|
266
222
|
obj.query = message.query;
|
|
267
223
|
}
|
|
268
|
-
if (message.
|
|
269
|
-
obj.
|
|
224
|
+
if (message.actionStatus !== undefined) {
|
|
225
|
+
obj.actionStatus = exports.status.toJSON(message.actionStatus);
|
|
270
226
|
}
|
|
271
|
-
if (message.
|
|
272
|
-
obj.
|
|
227
|
+
if (message.installmentQuery !== "") {
|
|
228
|
+
obj.installmentQuery = message.installmentQuery;
|
|
273
229
|
}
|
|
274
|
-
if (message.
|
|
275
|
-
obj.
|
|
230
|
+
if (message.paymentsQuery !== "") {
|
|
231
|
+
obj.paymentsQuery = message.paymentsQuery;
|
|
276
232
|
}
|
|
277
|
-
if (message.
|
|
278
|
-
obj.
|
|
233
|
+
if (message.closeLoanQuery !== undefined) {
|
|
234
|
+
obj.closeLoanQuery = message.closeLoanQuery;
|
|
235
|
+
}
|
|
236
|
+
return obj;
|
|
237
|
+
},
|
|
238
|
+
create(base) {
|
|
239
|
+
return exports.repayResponse.fromPartial(base ?? {});
|
|
240
|
+
},
|
|
241
|
+
fromPartial(object) {
|
|
242
|
+
const message = createBaserepayResponse();
|
|
243
|
+
message.query = object.query ?? undefined;
|
|
244
|
+
message.actionStatus = (object.actionStatus !== undefined && object.actionStatus !== null)
|
|
245
|
+
? exports.status.fromPartial(object.actionStatus)
|
|
246
|
+
: undefined;
|
|
247
|
+
message.installmentQuery = object.installmentQuery ?? "";
|
|
248
|
+
message.paymentsQuery = object.paymentsQuery ?? "";
|
|
249
|
+
message.closeLoanQuery = object.closeLoanQuery ?? undefined;
|
|
250
|
+
return message;
|
|
251
|
+
},
|
|
252
|
+
};
|
|
253
|
+
function createBasestatus() {
|
|
254
|
+
return { status: "", error: undefined, message: "" };
|
|
255
|
+
}
|
|
256
|
+
exports.status = {
|
|
257
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
258
|
+
if (message.status !== "") {
|
|
259
|
+
writer.uint32(10).string(message.status);
|
|
279
260
|
}
|
|
280
|
-
if (message.
|
|
281
|
-
|
|
261
|
+
if (message.error !== undefined) {
|
|
262
|
+
writer.uint32(18).string(message.error);
|
|
282
263
|
}
|
|
283
|
-
if (message.
|
|
284
|
-
|
|
264
|
+
if (message.message !== "") {
|
|
265
|
+
writer.uint32(26).string(message.message);
|
|
285
266
|
}
|
|
286
|
-
|
|
287
|
-
|
|
267
|
+
return writer;
|
|
268
|
+
},
|
|
269
|
+
decode(input, length) {
|
|
270
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
271
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
272
|
+
const message = createBasestatus();
|
|
273
|
+
while (reader.pos < end) {
|
|
274
|
+
const tag = reader.uint32();
|
|
275
|
+
switch (tag >>> 3) {
|
|
276
|
+
case 1:
|
|
277
|
+
if (tag !== 10) {
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
280
|
+
message.status = reader.string();
|
|
281
|
+
continue;
|
|
282
|
+
case 2:
|
|
283
|
+
if (tag !== 18) {
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
message.error = reader.string();
|
|
287
|
+
continue;
|
|
288
|
+
case 3:
|
|
289
|
+
if (tag !== 26) {
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
message.message = reader.string();
|
|
293
|
+
continue;
|
|
294
|
+
}
|
|
295
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
reader.skipType(tag & 7);
|
|
288
299
|
}
|
|
300
|
+
return message;
|
|
301
|
+
},
|
|
302
|
+
fromJSON(object) {
|
|
303
|
+
return {
|
|
304
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
305
|
+
error: isSet(object.error) ? globalThis.String(object.error) : undefined,
|
|
306
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
307
|
+
};
|
|
308
|
+
},
|
|
309
|
+
toJSON(message) {
|
|
310
|
+
const obj = {};
|
|
289
311
|
if (message.status !== "") {
|
|
290
312
|
obj.status = message.status;
|
|
291
313
|
}
|
|
314
|
+
if (message.error !== undefined) {
|
|
315
|
+
obj.error = message.error;
|
|
316
|
+
}
|
|
317
|
+
if (message.message !== "") {
|
|
318
|
+
obj.message = message.message;
|
|
319
|
+
}
|
|
292
320
|
return obj;
|
|
293
321
|
},
|
|
294
322
|
create(base) {
|
|
295
|
-
return exports.
|
|
323
|
+
return exports.status.fromPartial(base ?? {});
|
|
296
324
|
},
|
|
297
325
|
fromPartial(object) {
|
|
298
|
-
const message =
|
|
299
|
-
message.query = object.query ?? "";
|
|
300
|
-
message.closeLoanQuery = object.closeLoanQuery ?? undefined;
|
|
301
|
-
message.r_principal = object.r_principal ?? 0;
|
|
302
|
-
message.r_interest = object.r_interest ?? 0;
|
|
303
|
-
message.r_pif_principal = object.r_pif_principal ?? 0;
|
|
304
|
-
message.r_pif_interest = object.r_pif_interest ?? 0;
|
|
305
|
-
message.r_penalty = object.r_penalty ?? 0;
|
|
306
|
-
message.r_pif_penalty = object.r_pif_penalty ?? 0;
|
|
326
|
+
const message = createBasestatus();
|
|
307
327
|
message.status = object.status ?? "";
|
|
328
|
+
message.error = object.error ?? undefined;
|
|
329
|
+
message.message = object.message ?? "";
|
|
308
330
|
return message;
|
|
309
331
|
},
|
|
310
332
|
};
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "customers.addmoredetails";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export declare enum OccupationType {
|
|
4
|
+
SELF_EMPLOYED = 0,
|
|
5
|
+
SALARIED = 1,
|
|
6
|
+
UNRECOGNIZED = -1
|
|
6
7
|
}
|
|
8
|
+
export declare function occupationTypeFromJSON(object: any): OccupationType;
|
|
9
|
+
export declare function occupationTypeToJSON(object: OccupationType): string;
|
|
7
10
|
export interface addMoreDetailsRequest {
|
|
8
|
-
|
|
11
|
+
father_name: string;
|
|
12
|
+
occupation: OccupationType;
|
|
13
|
+
cur_house?: string | undefined;
|
|
14
|
+
cur_address_line1: string;
|
|
15
|
+
cur_address_line2: string;
|
|
16
|
+
cur_pincode: string;
|
|
17
|
+
is_same_per_address: boolean;
|
|
18
|
+
per_house?: string | undefined;
|
|
19
|
+
per_address_line1?: string | undefined;
|
|
20
|
+
per_address_line2?: string | undefined;
|
|
21
|
+
per_pincode?: string | undefined;
|
|
9
22
|
}
|
|
10
23
|
export interface addMoreDetailsResponse {
|
|
11
24
|
message: string;
|
|
12
25
|
}
|
|
13
|
-
export declare const RequestBody: {
|
|
14
|
-
encode(message: RequestBody, writer?: _m0.Writer): _m0.Writer;
|
|
15
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): RequestBody;
|
|
16
|
-
fromJSON(object: any): RequestBody;
|
|
17
|
-
toJSON(message: RequestBody): unknown;
|
|
18
|
-
create<I extends Exact<DeepPartial<RequestBody>, I>>(base?: I): RequestBody;
|
|
19
|
-
fromPartial<I extends Exact<DeepPartial<RequestBody>, I>>(object: I): RequestBody;
|
|
20
|
-
};
|
|
21
26
|
export declare const addMoreDetailsRequest: {
|
|
22
27
|
encode(message: addMoreDetailsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
23
28
|
decode(input: _m0.Reader | Uint8Array, length?: number): addMoreDetailsRequest;
|
|
@@ -8,27 +8,99 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.addMoreDetailsResponse = exports.addMoreDetailsRequest = exports.
|
|
11
|
+
exports.addMoreDetailsResponse = exports.addMoreDetailsRequest = exports.OccupationType = exports.protobufPackage = void 0;
|
|
12
|
+
exports.occupationTypeFromJSON = occupationTypeFromJSON;
|
|
13
|
+
exports.occupationTypeToJSON = occupationTypeToJSON;
|
|
12
14
|
/* eslint-disable */
|
|
13
15
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
16
|
exports.protobufPackage = "customers.addmoredetails";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
var OccupationType;
|
|
18
|
+
(function (OccupationType) {
|
|
19
|
+
OccupationType[OccupationType["SELF_EMPLOYED"] = 0] = "SELF_EMPLOYED";
|
|
20
|
+
OccupationType[OccupationType["SALARIED"] = 1] = "SALARIED";
|
|
21
|
+
OccupationType[OccupationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
22
|
+
})(OccupationType || (exports.OccupationType = OccupationType = {}));
|
|
23
|
+
function occupationTypeFromJSON(object) {
|
|
24
|
+
switch (object) {
|
|
25
|
+
case 0:
|
|
26
|
+
case "SELF_EMPLOYED":
|
|
27
|
+
return OccupationType.SELF_EMPLOYED;
|
|
28
|
+
case 1:
|
|
29
|
+
case "SALARIED":
|
|
30
|
+
return OccupationType.SALARIED;
|
|
31
|
+
case -1:
|
|
32
|
+
case "UNRECOGNIZED":
|
|
33
|
+
default:
|
|
34
|
+
return OccupationType.UNRECOGNIZED;
|
|
35
|
+
}
|
|
17
36
|
}
|
|
18
|
-
|
|
37
|
+
function occupationTypeToJSON(object) {
|
|
38
|
+
switch (object) {
|
|
39
|
+
case OccupationType.SELF_EMPLOYED:
|
|
40
|
+
return "SELF_EMPLOYED";
|
|
41
|
+
case OccupationType.SALARIED:
|
|
42
|
+
return "SALARIED";
|
|
43
|
+
case OccupationType.UNRECOGNIZED:
|
|
44
|
+
default:
|
|
45
|
+
return "UNRECOGNIZED";
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function createBaseaddMoreDetailsRequest() {
|
|
49
|
+
return {
|
|
50
|
+
father_name: "",
|
|
51
|
+
occupation: 0,
|
|
52
|
+
cur_house: undefined,
|
|
53
|
+
cur_address_line1: "",
|
|
54
|
+
cur_address_line2: "",
|
|
55
|
+
cur_pincode: "",
|
|
56
|
+
is_same_per_address: false,
|
|
57
|
+
per_house: undefined,
|
|
58
|
+
per_address_line1: undefined,
|
|
59
|
+
per_address_line2: undefined,
|
|
60
|
+
per_pincode: undefined,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.addMoreDetailsRequest = {
|
|
19
64
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.
|
|
21
|
-
writer.uint32(10).string(message.
|
|
65
|
+
if (message.father_name !== "") {
|
|
66
|
+
writer.uint32(10).string(message.father_name);
|
|
67
|
+
}
|
|
68
|
+
if (message.occupation !== 0) {
|
|
69
|
+
writer.uint32(16).int32(message.occupation);
|
|
70
|
+
}
|
|
71
|
+
if (message.cur_house !== undefined) {
|
|
72
|
+
writer.uint32(26).string(message.cur_house);
|
|
73
|
+
}
|
|
74
|
+
if (message.cur_address_line1 !== "") {
|
|
75
|
+
writer.uint32(34).string(message.cur_address_line1);
|
|
76
|
+
}
|
|
77
|
+
if (message.cur_address_line2 !== "") {
|
|
78
|
+
writer.uint32(42).string(message.cur_address_line2);
|
|
79
|
+
}
|
|
80
|
+
if (message.cur_pincode !== "") {
|
|
81
|
+
writer.uint32(50).string(message.cur_pincode);
|
|
82
|
+
}
|
|
83
|
+
if (message.is_same_per_address !== false) {
|
|
84
|
+
writer.uint32(56).bool(message.is_same_per_address);
|
|
85
|
+
}
|
|
86
|
+
if (message.per_house !== undefined) {
|
|
87
|
+
writer.uint32(66).string(message.per_house);
|
|
22
88
|
}
|
|
23
|
-
if (message.
|
|
24
|
-
writer.uint32(
|
|
89
|
+
if (message.per_address_line1 !== undefined) {
|
|
90
|
+
writer.uint32(74).string(message.per_address_line1);
|
|
91
|
+
}
|
|
92
|
+
if (message.per_address_line2 !== undefined) {
|
|
93
|
+
writer.uint32(82).string(message.per_address_line2);
|
|
94
|
+
}
|
|
95
|
+
if (message.per_pincode !== undefined) {
|
|
96
|
+
writer.uint32(90).string(message.per_pincode);
|
|
25
97
|
}
|
|
26
98
|
return writer;
|
|
27
99
|
},
|
|
28
100
|
decode(input, length) {
|
|
29
101
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
30
102
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
-
const message =
|
|
103
|
+
const message = createBaseaddMoreDetailsRequest();
|
|
32
104
|
while (reader.pos < end) {
|
|
33
105
|
const tag = reader.uint32();
|
|
34
106
|
switch (tag >>> 3) {
|
|
@@ -36,13 +108,67 @@ exports.RequestBody = {
|
|
|
36
108
|
if (tag !== 10) {
|
|
37
109
|
break;
|
|
38
110
|
}
|
|
39
|
-
message.
|
|
111
|
+
message.father_name = reader.string();
|
|
40
112
|
continue;
|
|
41
113
|
case 2:
|
|
42
|
-
if (tag !==
|
|
114
|
+
if (tag !== 16) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
message.occupation = reader.int32();
|
|
118
|
+
continue;
|
|
119
|
+
case 3:
|
|
120
|
+
if (tag !== 26) {
|
|
43
121
|
break;
|
|
44
122
|
}
|
|
45
|
-
message.
|
|
123
|
+
message.cur_house = reader.string();
|
|
124
|
+
continue;
|
|
125
|
+
case 4:
|
|
126
|
+
if (tag !== 34) {
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
message.cur_address_line1 = reader.string();
|
|
130
|
+
continue;
|
|
131
|
+
case 5:
|
|
132
|
+
if (tag !== 42) {
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
message.cur_address_line2 = reader.string();
|
|
136
|
+
continue;
|
|
137
|
+
case 6:
|
|
138
|
+
if (tag !== 50) {
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
message.cur_pincode = reader.string();
|
|
142
|
+
continue;
|
|
143
|
+
case 7:
|
|
144
|
+
if (tag !== 56) {
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
message.is_same_per_address = reader.bool();
|
|
148
|
+
continue;
|
|
149
|
+
case 8:
|
|
150
|
+
if (tag !== 66) {
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
message.per_house = reader.string();
|
|
154
|
+
continue;
|
|
155
|
+
case 9:
|
|
156
|
+
if (tag !== 74) {
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
message.per_address_line1 = reader.string();
|
|
160
|
+
continue;
|
|
161
|
+
case 10:
|
|
162
|
+
if (tag !== 82) {
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
message.per_address_line2 = reader.string();
|
|
166
|
+
continue;
|
|
167
|
+
case 11:
|
|
168
|
+
if (tag !== 90) {
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
message.per_pincode = reader.string();
|
|
46
172
|
continue;
|
|
47
173
|
}
|
|
48
174
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -54,70 +180,53 @@ exports.RequestBody = {
|
|
|
54
180
|
},
|
|
55
181
|
fromJSON(object) {
|
|
56
182
|
return {
|
|
57
|
-
|
|
58
|
-
|
|
183
|
+
father_name: isSet(object.father_name) ? globalThis.String(object.father_name) : "",
|
|
184
|
+
occupation: isSet(object.occupation) ? occupationTypeFromJSON(object.occupation) : 0,
|
|
185
|
+
cur_house: isSet(object.cur_house) ? globalThis.String(object.cur_house) : undefined,
|
|
186
|
+
cur_address_line1: isSet(object.cur_address_line1) ? globalThis.String(object.cur_address_line1) : "",
|
|
187
|
+
cur_address_line2: isSet(object.cur_address_line2) ? globalThis.String(object.cur_address_line2) : "",
|
|
188
|
+
cur_pincode: isSet(object.cur_pincode) ? globalThis.String(object.cur_pincode) : "",
|
|
189
|
+
is_same_per_address: isSet(object.is_same_per_address) ? globalThis.Boolean(object.is_same_per_address) : false,
|
|
190
|
+
per_house: isSet(object.per_house) ? globalThis.String(object.per_house) : undefined,
|
|
191
|
+
per_address_line1: isSet(object.per_address_line1) ? globalThis.String(object.per_address_line1) : undefined,
|
|
192
|
+
per_address_line2: isSet(object.per_address_line2) ? globalThis.String(object.per_address_line2) : undefined,
|
|
193
|
+
per_pincode: isSet(object.per_pincode) ? globalThis.String(object.per_pincode) : undefined,
|
|
59
194
|
};
|
|
60
195
|
},
|
|
61
196
|
toJSON(message) {
|
|
62
197
|
const obj = {};
|
|
63
|
-
if (message.
|
|
64
|
-
obj.
|
|
198
|
+
if (message.father_name !== "") {
|
|
199
|
+
obj.father_name = message.father_name;
|
|
65
200
|
}
|
|
66
|
-
if (message.
|
|
67
|
-
obj.
|
|
201
|
+
if (message.occupation !== 0) {
|
|
202
|
+
obj.occupation = occupationTypeToJSON(message.occupation);
|
|
68
203
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
create(base) {
|
|
72
|
-
return exports.RequestBody.fromPartial(base ?? {});
|
|
73
|
-
},
|
|
74
|
-
fromPartial(object) {
|
|
75
|
-
const message = createBaseRequestBody();
|
|
76
|
-
message.key = object.key ?? "";
|
|
77
|
-
message.value = object.value ?? "";
|
|
78
|
-
return message;
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
function createBaseaddMoreDetailsRequest() {
|
|
82
|
-
return { request: [] };
|
|
83
|
-
}
|
|
84
|
-
exports.addMoreDetailsRequest = {
|
|
85
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
-
for (const v of message.request) {
|
|
87
|
-
exports.RequestBody.encode(v, writer.uint32(10).fork()).ldelim();
|
|
204
|
+
if (message.cur_house !== undefined) {
|
|
205
|
+
obj.cur_house = message.cur_house;
|
|
88
206
|
}
|
|
89
|
-
|
|
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 = createBaseaddMoreDetailsRequest();
|
|
95
|
-
while (reader.pos < end) {
|
|
96
|
-
const tag = reader.uint32();
|
|
97
|
-
switch (tag >>> 3) {
|
|
98
|
-
case 1:
|
|
99
|
-
if (tag !== 10) {
|
|
100
|
-
break;
|
|
101
|
-
}
|
|
102
|
-
message.request.push(exports.RequestBody.decode(reader, reader.uint32()));
|
|
103
|
-
continue;
|
|
104
|
-
}
|
|
105
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
reader.skipType(tag & 7);
|
|
207
|
+
if (message.cur_address_line1 !== "") {
|
|
208
|
+
obj.cur_address_line1 = message.cur_address_line1;
|
|
109
209
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
if (message.
|
|
120
|
-
obj.
|
|
210
|
+
if (message.cur_address_line2 !== "") {
|
|
211
|
+
obj.cur_address_line2 = message.cur_address_line2;
|
|
212
|
+
}
|
|
213
|
+
if (message.cur_pincode !== "") {
|
|
214
|
+
obj.cur_pincode = message.cur_pincode;
|
|
215
|
+
}
|
|
216
|
+
if (message.is_same_per_address !== false) {
|
|
217
|
+
obj.is_same_per_address = message.is_same_per_address;
|
|
218
|
+
}
|
|
219
|
+
if (message.per_house !== undefined) {
|
|
220
|
+
obj.per_house = message.per_house;
|
|
221
|
+
}
|
|
222
|
+
if (message.per_address_line1 !== undefined) {
|
|
223
|
+
obj.per_address_line1 = message.per_address_line1;
|
|
224
|
+
}
|
|
225
|
+
if (message.per_address_line2 !== undefined) {
|
|
226
|
+
obj.per_address_line2 = message.per_address_line2;
|
|
227
|
+
}
|
|
228
|
+
if (message.per_pincode !== undefined) {
|
|
229
|
+
obj.per_pincode = message.per_pincode;
|
|
121
230
|
}
|
|
122
231
|
return obj;
|
|
123
232
|
},
|
|
@@ -126,7 +235,17 @@ exports.addMoreDetailsRequest = {
|
|
|
126
235
|
},
|
|
127
236
|
fromPartial(object) {
|
|
128
237
|
const message = createBaseaddMoreDetailsRequest();
|
|
129
|
-
message.
|
|
238
|
+
message.father_name = object.father_name ?? "";
|
|
239
|
+
message.occupation = object.occupation ?? 0;
|
|
240
|
+
message.cur_house = object.cur_house ?? undefined;
|
|
241
|
+
message.cur_address_line1 = object.cur_address_line1 ?? "";
|
|
242
|
+
message.cur_address_line2 = object.cur_address_line2 ?? "";
|
|
243
|
+
message.cur_pincode = object.cur_pincode ?? "";
|
|
244
|
+
message.is_same_per_address = object.is_same_per_address ?? false;
|
|
245
|
+
message.per_house = object.per_house ?? undefined;
|
|
246
|
+
message.per_address_line1 = object.per_address_line1 ?? undefined;
|
|
247
|
+
message.per_address_line2 = object.per_address_line2 ?? undefined;
|
|
248
|
+
message.per_pincode = object.per_pincode ?? undefined;
|
|
130
249
|
return message;
|
|
131
250
|
},
|
|
132
251
|
};
|