@stashfin/grpc 1.2.51 → 1.2.54
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/README.md +74 -0
- package/package.json +3 -2
- package/src/proto/customers/addaddress.proto +25 -0
- package/src/proto/customers/addbankaccountdetails.proto +13 -0
- package/src/proto/customers/createcustomerreference.proto +21 -0
- package/src/proto/customers/forgotmpin.proto +12 -0
- package/src/proto/customers/forgotmpinotp.proto +10 -0
- package/src/proto/customers/getbankaccountdetails.proto +11 -0
- package/src/proto/customers/getbasicinfo.proto +24 -0
- package/src/proto/customers/getcities.proto +16 -0
- package/src/proto/customers/getcustomerbyid.proto +31 -0
- package/src/proto/customers/getdashboard.proto +47 -0
- package/src/proto/customers/getdashboardmaincard.proto +37 -0
- package/src/proto/customers/getkycweburl.proto +10 -0
- package/src/proto/customers/getprofessionalinfo.proto +22 -0
- package/src/proto/customers/getprofile.proto +22 -0
- package/src/proto/customers/getstates.proto +15 -0
- package/src/proto/customers/getstep.proto +30 -0
- package/src/proto/customers/profilebasic.proto +14 -0
- package/src/proto/customers/profileupdatetnc.proto +11 -0
- package/src/proto/customers/resetmpin.proto +13 -0
- package/src/proto/customers/savebasicdetails.proto +16 -0
- package/src/proto/customers/saveunlocklimit.proto +10 -0
- package/src/proto/customers/sendemailtoken.proto +11 -0
- package/src/proto/customers/sendotp.proto +14 -0
- package/src/proto/customers/setmpin.proto +12 -0
- package/src/proto/customers/step10.proto +34 -0
- package/src/proto/customers/step7.proto +29 -0
- package/src/proto/customers/step8.proto +30 -0
- package/src/proto/customers/step9.proto +36 -0
- package/src/proto/customers/stepstatic.proto +27 -0
- package/src/proto/customers/updatedigilockertxn.proto +13 -0
- package/src/proto/customers/updatedob.proto +13 -0
- package/src/proto/customers/updatehypervergetxn.proto +12 -0
- package/src/proto/customers/verifyemail.proto +11 -0
- package/src/proto/customers/verifympin.proto +13 -0
- package/src/proto/customers/verifyotp.proto +17 -0
- package/src/proto/customers.proto +83 -0
- package/src/proto/example.proto +20 -0
- package/src/proto/loans/approveloan.proto +15 -0
- package/src/proto/loans/banklist.proto +12 -0
- package/src/proto/loans/calculateemi.proto +20 -0
- package/src/proto/loans/creditlimit.proto +18 -0
- package/src/proto/loans/restructureloan.proto +12 -0
- package/src/proto/loans/transactionlist.proto +18 -0
- package/src/proto/loans/updateinstallments.proto +19 -0
- package/src/proto/loans/updateloan.proto +15 -0
- package/src/proto/loans.proto +23 -0
- package/src/proto/stashcash/creditsc.proto +22 -0
- package/src/proto/stashcash/debitsc.proto +27 -0
- package/src/proto/stashcash/getscbalance.proto +21 -0
- package/src/proto/stashcash/getschistory.proto +35 -0
- package/src/proto/stashcash/reversesc.proto +20 -0
- package/src/proto/stashcash.proto +17 -0
- package/src/ts/customers/addaddress.ts +310 -0
- package/src/ts/customers/addbankaccountdetails.ts +184 -0
- package/src/ts/customers/createcustomerreference.ts +276 -0
- package/src/ts/customers/getbankaccountdetails.ts +169 -0
- package/src/ts/customers/getbasicinfo.ts +385 -0
- package/src/ts/customers/getcities.ts +227 -0
- package/src/ts/customers/getcustomerbyid.ts +492 -0
- package/src/ts/customers/getdashboard.ts +728 -0
- package/src/ts/customers/getdashboardmaincard.ts +608 -0
- package/src/ts/customers/getkycweburl.ts +133 -0
- package/src/ts/customers/getprofessionalinfo.ts +344 -0
- package/src/ts/customers/getprofile.ts +338 -0
- package/src/ts/customers/getstates.ts +212 -0
- package/src/ts/customers/getstep.ts +483 -0
- package/src/ts/customers/profilebasic.ts +198 -0
- package/src/ts/customers/profileupdatetnc.ts +148 -0
- package/src/ts/customers/resetmpin.ts +166 -0
- package/src/ts/customers/savebasicdetails.ts +229 -0
- package/src/ts/customers/saveunlocklimit.ts +133 -0
- package/src/ts/customers/sendemailtoken.ts +148 -0
- package/src/ts/customers/sendotp.ts +202 -0
- package/src/ts/customers/setmpin.ts +166 -0
- package/src/ts/customers/step10.ts +544 -0
- package/src/ts/customers/step7.ts +456 -0
- package/src/ts/customers/step8.ts +472 -0
- package/src/ts/customers/step9.ts +578 -0
- package/src/ts/customers/stepstatic.ts +425 -0
- package/src/ts/customers/updatedigilockertxn.ts +182 -0
- package/src/ts/customers/updatehypervergetxn.ts +166 -0
- package/src/ts/customers/verifyemail.ts +148 -0
- package/src/ts/customers/verifympin.ts +184 -0
- package/src/ts/customers/verifyotp.ts +232 -0
- package/src/ts/customers.ts +1038 -0
- package/src/ts/example.ts +294 -0
- package/{ts/google/protobuf/timestamp.d.ts → src/ts/google/protobuf/timestamp.ts} +126 -30
- package/src/ts/loans/approveloan.ts +214 -0
- package/src/ts/loans/banklist.ts +183 -0
- package/src/ts/loans/calculateemi.ts +295 -0
- package/src/ts/loans/creditlimit.ts +294 -0
- package/src/ts/loans/restructureloan.ts +166 -0
- package/src/ts/loans/transactionlist.ts +281 -0
- package/src/ts/loans/updateinstallments.ts +271 -0
- package/src/ts/loans/updateloan.ts +214 -0
- package/src/ts/loans.ts +221 -0
- package/src/ts/stashcash/creditsc.ts +361 -0
- package/src/ts/stashcash/debitsc.ts +450 -0
- package/src/ts/stashcash/getscbalance.ts +351 -0
- package/src/ts/stashcash/getschistory.ts +566 -0
- package/src/ts/stashcash/reversesc.ts +329 -0
- package/src/ts/stashcash.ts +152 -0
- package/tsconfig.json +18 -0
- package/ts/customers/addaddress.d.ts +0 -50
- package/ts/customers/addaddress.js +0 -265
- package/ts/customers/addbankaccountdetails.d.ts +0 -37
- package/ts/customers/addbankaccountdetails.js +0 -147
- package/ts/customers/createcustomerreference.d.ts +0 -43
- package/ts/customers/createcustomerreference.js +0 -226
- package/ts/customers/getbankaccountdetails.d.ts +0 -36
- package/ts/customers/getbankaccountdetails.js +0 -134
- package/ts/customers/getbasicinfo.d.ts +0 -56
- package/ts/customers/getbasicinfo.js +0 -323
- package/ts/customers/getcities.d.ts +0 -47
- package/ts/customers/getcities.js +0 -183
- package/ts/customers/getcustomerbyid.d.ts +0 -55
- package/ts/customers/getcustomerbyid.js +0 -421
- package/ts/customers/getdashboard.d.ts +0 -91
- package/ts/customers/getdashboard.js +0 -618
- package/ts/customers/getdashboardmaincard.d.ts +0 -69
- package/ts/customers/getdashboardmaincard.js +0 -520
- package/ts/customers/getkycweburl.d.ts +0 -34
- package/ts/customers/getkycweburl.js +0 -104
- package/ts/customers/getprofessionalinfo.d.ts +0 -54
- package/ts/customers/getprofessionalinfo.js +0 -286
- package/ts/customers/getprofile.d.ts +0 -53
- package/ts/customers/getprofile.js +0 -282
- package/ts/customers/getstates.d.ts +0 -46
- package/ts/customers/getstates.js +0 -170
- package/ts/customers/getstep.d.ts +0 -69
- package/ts/customers/getstep.js +0 -406
- package/ts/customers/profilebasic.d.ts +0 -38
- package/ts/customers/profilebasic.js +0 -161
- package/ts/customers/profileupdatetnc.d.ts +0 -35
- package/ts/customers/profileupdatetnc.js +0 -117
- package/ts/customers/resetmpin.d.ts +0 -36
- package/ts/customers/resetmpin.js +0 -133
- package/ts/customers/savebasicdetails.d.ts +0 -47
- package/ts/customers/savebasicdetails.js +0 -185
- package/ts/customers/saveunlocklimit.d.ts +0 -34
- package/ts/customers/saveunlocklimit.js +0 -104
- package/ts/customers/sendemailtoken.d.ts +0 -35
- package/ts/customers/sendemailtoken.js +0 -117
- package/ts/customers/sendotp.d.ts +0 -38
- package/ts/customers/sendotp.js +0 -165
- package/ts/customers/setmpin.d.ts +0 -36
- package/ts/customers/setmpin.js +0 -133
- package/ts/customers/step1.d.ts +0 -71
- package/ts/customers/step1.js +0 -423
- package/ts/customers/step10.d.ts +0 -73
- package/ts/customers/step10.js +0 -459
- package/ts/customers/step2.d.ts +0 -67
- package/ts/customers/step2.js +0 -366
- package/ts/customers/step7.d.ts +0 -68
- package/ts/customers/step7.js +0 -381
- package/ts/customers/step8.d.ts +0 -69
- package/ts/customers/step8.js +0 -395
- package/ts/customers/step9.d.ts +0 -75
- package/ts/customers/step9.js +0 -489
- package/ts/customers/stepstatic.d.ts +0 -66
- package/ts/customers/stepstatic.js +0 -354
- package/ts/customers/updatedigilockertxn.d.ts +0 -37
- package/ts/customers/updatedigilockertxn.js +0 -147
- package/ts/customers/updatehypervergetxn.d.ts +0 -36
- package/ts/customers/updatehypervergetxn.js +0 -133
- package/ts/customers/verifyemail.d.ts +0 -35
- package/ts/customers/verifyemail.js +0 -117
- package/ts/customers/verifympin.d.ts +0 -37
- package/ts/customers/verifympin.js +0 -149
- package/ts/customers/verifyotp.d.ts +0 -40
- package/ts/customers/verifyotp.js +0 -191
- package/ts/customers.d.ts +0 -540
- package/ts/customers.js +0 -388
- package/ts/example.d.ts +0 -78
- package/ts/example.js +0 -199
- package/ts/google/protobuf/timestamp.js +0 -97
- package/ts/loans/approveloan.d.ts +0 -39
- package/ts/loans/approveloan.js +0 -175
- package/ts/loans/banklist.d.ts +0 -37
- package/ts/loans/banklist.js +0 -148
- package/ts/loans/calculateemi.d.ts +0 -51
- package/ts/loans/calculateemi.js +0 -243
- package/ts/loans/creditlimit.d.ts +0 -43
- package/ts/loans/creditlimit.js +0 -247
- package/ts/loans/restructureloan.d.ts +0 -36
- package/ts/loans/restructureloan.js +0 -133
- package/ts/loans/transactionlist.d.ts +0 -50
- package/ts/loans/transactionlist.js +0 -229
- package/ts/loans/updateinstallments.d.ts +0 -42
- package/ts/loans/updateinstallments.js +0 -226
- package/ts/loans/updateloan.d.ts +0 -39
- package/ts/loans/updateloan.js +0 -175
- package/ts/loans.d.ts +0 -112
- package/ts/loans.js +0 -84
- package/ts/stashcash/creditsc.d.ts +0 -54
- package/ts/stashcash/creditsc.js +0 -301
- package/ts/stashcash/debitsc.d.ts +0 -59
- package/ts/stashcash/debitsc.js +0 -380
- package/ts/stashcash/getscbalance.d.ts +0 -53
- package/ts/stashcash/getscbalance.js +0 -293
- package/ts/stashcash/getschistory.d.ts +0 -73
- package/ts/stashcash/getschistory.js +0 -479
- package/ts/stashcash/reversesc.d.ts +0 -52
- package/ts/stashcash/reversesc.js +0 -273
- package/ts/stashcash.d.ts +0 -84
- package/ts/stashcash.js +0 -64
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v1.181.0
|
|
4
|
+
// protoc v3.20.3
|
|
5
|
+
// source: customers/getcustomerbyid.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import _m0 from "protobufjs/minimal";
|
|
9
|
+
|
|
10
|
+
export const protobufPackage = "customers.getcustomerbyid";
|
|
11
|
+
|
|
12
|
+
export interface getCustomerByIdRequest {
|
|
13
|
+
customer_id: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface getCustomerByIdResponse {
|
|
17
|
+
mobile: string;
|
|
18
|
+
email: string;
|
|
19
|
+
first_name: string;
|
|
20
|
+
middle_name: string;
|
|
21
|
+
last_name: string;
|
|
22
|
+
father_name: string;
|
|
23
|
+
mother_maiden_name: string;
|
|
24
|
+
dob: string;
|
|
25
|
+
company_name: string;
|
|
26
|
+
pincode: string;
|
|
27
|
+
app_version: string;
|
|
28
|
+
biometric_enabled: boolean;
|
|
29
|
+
journey_sequence: number;
|
|
30
|
+
category: string;
|
|
31
|
+
loc_limit: number;
|
|
32
|
+
status: string;
|
|
33
|
+
min_tenure: number;
|
|
34
|
+
max_tenure: number;
|
|
35
|
+
roi: number;
|
|
36
|
+
processing_rate: number;
|
|
37
|
+
emi_date: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function createBasegetCustomerByIdRequest(): getCustomerByIdRequest {
|
|
41
|
+
return { customer_id: 0 };
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const getCustomerByIdRequest = {
|
|
45
|
+
encode(message: getCustomerByIdRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
46
|
+
if (message.customer_id !== 0) {
|
|
47
|
+
writer.uint32(8).int32(message.customer_id);
|
|
48
|
+
}
|
|
49
|
+
return writer;
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerByIdRequest {
|
|
53
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
54
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
55
|
+
const message = createBasegetCustomerByIdRequest();
|
|
56
|
+
while (reader.pos < end) {
|
|
57
|
+
const tag = reader.uint32();
|
|
58
|
+
switch (tag >>> 3) {
|
|
59
|
+
case 1:
|
|
60
|
+
if (tag !== 8) {
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message.customer_id = reader.int32();
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
reader.skipType(tag & 7);
|
|
71
|
+
}
|
|
72
|
+
return message;
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
fromJSON(object: any): getCustomerByIdRequest {
|
|
76
|
+
return { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0 };
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
toJSON(message: getCustomerByIdRequest): unknown {
|
|
80
|
+
const obj: any = {};
|
|
81
|
+
if (message.customer_id !== 0) {
|
|
82
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
83
|
+
}
|
|
84
|
+
return obj;
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
create<I extends Exact<DeepPartial<getCustomerByIdRequest>, I>>(base?: I): getCustomerByIdRequest {
|
|
88
|
+
return getCustomerByIdRequest.fromPartial(base ?? ({} as any));
|
|
89
|
+
},
|
|
90
|
+
fromPartial<I extends Exact<DeepPartial<getCustomerByIdRequest>, I>>(object: I): getCustomerByIdRequest {
|
|
91
|
+
const message = createBasegetCustomerByIdRequest();
|
|
92
|
+
message.customer_id = object.customer_id ?? 0;
|
|
93
|
+
return message;
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
function createBasegetCustomerByIdResponse(): getCustomerByIdResponse {
|
|
98
|
+
return {
|
|
99
|
+
mobile: "",
|
|
100
|
+
email: "",
|
|
101
|
+
first_name: "",
|
|
102
|
+
middle_name: "",
|
|
103
|
+
last_name: "",
|
|
104
|
+
father_name: "",
|
|
105
|
+
mother_maiden_name: "",
|
|
106
|
+
dob: "",
|
|
107
|
+
company_name: "",
|
|
108
|
+
pincode: "",
|
|
109
|
+
app_version: "",
|
|
110
|
+
biometric_enabled: false,
|
|
111
|
+
journey_sequence: 0,
|
|
112
|
+
category: "",
|
|
113
|
+
loc_limit: 0,
|
|
114
|
+
status: "",
|
|
115
|
+
min_tenure: 0,
|
|
116
|
+
max_tenure: 0,
|
|
117
|
+
roi: 0,
|
|
118
|
+
processing_rate: 0,
|
|
119
|
+
emi_date: "",
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export const getCustomerByIdResponse = {
|
|
124
|
+
encode(message: getCustomerByIdResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
125
|
+
if (message.mobile !== "") {
|
|
126
|
+
writer.uint32(10).string(message.mobile);
|
|
127
|
+
}
|
|
128
|
+
if (message.email !== "") {
|
|
129
|
+
writer.uint32(18).string(message.email);
|
|
130
|
+
}
|
|
131
|
+
if (message.first_name !== "") {
|
|
132
|
+
writer.uint32(26).string(message.first_name);
|
|
133
|
+
}
|
|
134
|
+
if (message.middle_name !== "") {
|
|
135
|
+
writer.uint32(34).string(message.middle_name);
|
|
136
|
+
}
|
|
137
|
+
if (message.last_name !== "") {
|
|
138
|
+
writer.uint32(42).string(message.last_name);
|
|
139
|
+
}
|
|
140
|
+
if (message.father_name !== "") {
|
|
141
|
+
writer.uint32(50).string(message.father_name);
|
|
142
|
+
}
|
|
143
|
+
if (message.mother_maiden_name !== "") {
|
|
144
|
+
writer.uint32(58).string(message.mother_maiden_name);
|
|
145
|
+
}
|
|
146
|
+
if (message.dob !== "") {
|
|
147
|
+
writer.uint32(66).string(message.dob);
|
|
148
|
+
}
|
|
149
|
+
if (message.company_name !== "") {
|
|
150
|
+
writer.uint32(74).string(message.company_name);
|
|
151
|
+
}
|
|
152
|
+
if (message.pincode !== "") {
|
|
153
|
+
writer.uint32(82).string(message.pincode);
|
|
154
|
+
}
|
|
155
|
+
if (message.app_version !== "") {
|
|
156
|
+
writer.uint32(90).string(message.app_version);
|
|
157
|
+
}
|
|
158
|
+
if (message.biometric_enabled !== false) {
|
|
159
|
+
writer.uint32(96).bool(message.biometric_enabled);
|
|
160
|
+
}
|
|
161
|
+
if (message.journey_sequence !== 0) {
|
|
162
|
+
writer.uint32(104).int32(message.journey_sequence);
|
|
163
|
+
}
|
|
164
|
+
if (message.category !== "") {
|
|
165
|
+
writer.uint32(114).string(message.category);
|
|
166
|
+
}
|
|
167
|
+
if (message.loc_limit !== 0) {
|
|
168
|
+
writer.uint32(125).float(message.loc_limit);
|
|
169
|
+
}
|
|
170
|
+
if (message.status !== "") {
|
|
171
|
+
writer.uint32(130).string(message.status);
|
|
172
|
+
}
|
|
173
|
+
if (message.min_tenure !== 0) {
|
|
174
|
+
writer.uint32(136).int32(message.min_tenure);
|
|
175
|
+
}
|
|
176
|
+
if (message.max_tenure !== 0) {
|
|
177
|
+
writer.uint32(144).int32(message.max_tenure);
|
|
178
|
+
}
|
|
179
|
+
if (message.roi !== 0) {
|
|
180
|
+
writer.uint32(157).float(message.roi);
|
|
181
|
+
}
|
|
182
|
+
if (message.processing_rate !== 0) {
|
|
183
|
+
writer.uint32(165).float(message.processing_rate);
|
|
184
|
+
}
|
|
185
|
+
if (message.emi_date !== "") {
|
|
186
|
+
writer.uint32(170).string(message.emi_date);
|
|
187
|
+
}
|
|
188
|
+
return writer;
|
|
189
|
+
},
|
|
190
|
+
|
|
191
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerByIdResponse {
|
|
192
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
193
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
194
|
+
const message = createBasegetCustomerByIdResponse();
|
|
195
|
+
while (reader.pos < end) {
|
|
196
|
+
const tag = reader.uint32();
|
|
197
|
+
switch (tag >>> 3) {
|
|
198
|
+
case 1:
|
|
199
|
+
if (tag !== 10) {
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
message.mobile = reader.string();
|
|
204
|
+
continue;
|
|
205
|
+
case 2:
|
|
206
|
+
if (tag !== 18) {
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
message.email = reader.string();
|
|
211
|
+
continue;
|
|
212
|
+
case 3:
|
|
213
|
+
if (tag !== 26) {
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
message.first_name = reader.string();
|
|
218
|
+
continue;
|
|
219
|
+
case 4:
|
|
220
|
+
if (tag !== 34) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
message.middle_name = reader.string();
|
|
225
|
+
continue;
|
|
226
|
+
case 5:
|
|
227
|
+
if (tag !== 42) {
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
message.last_name = reader.string();
|
|
232
|
+
continue;
|
|
233
|
+
case 6:
|
|
234
|
+
if (tag !== 50) {
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
message.father_name = reader.string();
|
|
239
|
+
continue;
|
|
240
|
+
case 7:
|
|
241
|
+
if (tag !== 58) {
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
message.mother_maiden_name = reader.string();
|
|
246
|
+
continue;
|
|
247
|
+
case 8:
|
|
248
|
+
if (tag !== 66) {
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
message.dob = reader.string();
|
|
253
|
+
continue;
|
|
254
|
+
case 9:
|
|
255
|
+
if (tag !== 74) {
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
message.company_name = reader.string();
|
|
260
|
+
continue;
|
|
261
|
+
case 10:
|
|
262
|
+
if (tag !== 82) {
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
message.pincode = reader.string();
|
|
267
|
+
continue;
|
|
268
|
+
case 11:
|
|
269
|
+
if (tag !== 90) {
|
|
270
|
+
break;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
message.app_version = reader.string();
|
|
274
|
+
continue;
|
|
275
|
+
case 12:
|
|
276
|
+
if (tag !== 96) {
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
message.biometric_enabled = reader.bool();
|
|
281
|
+
continue;
|
|
282
|
+
case 13:
|
|
283
|
+
if (tag !== 104) {
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
message.journey_sequence = reader.int32();
|
|
288
|
+
continue;
|
|
289
|
+
case 14:
|
|
290
|
+
if (tag !== 114) {
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
message.category = reader.string();
|
|
295
|
+
continue;
|
|
296
|
+
case 15:
|
|
297
|
+
if (tag !== 125) {
|
|
298
|
+
break;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
message.loc_limit = reader.float();
|
|
302
|
+
continue;
|
|
303
|
+
case 16:
|
|
304
|
+
if (tag !== 130) {
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
message.status = reader.string();
|
|
309
|
+
continue;
|
|
310
|
+
case 17:
|
|
311
|
+
if (tag !== 136) {
|
|
312
|
+
break;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
message.min_tenure = reader.int32();
|
|
316
|
+
continue;
|
|
317
|
+
case 18:
|
|
318
|
+
if (tag !== 144) {
|
|
319
|
+
break;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
message.max_tenure = reader.int32();
|
|
323
|
+
continue;
|
|
324
|
+
case 19:
|
|
325
|
+
if (tag !== 157) {
|
|
326
|
+
break;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
message.roi = reader.float();
|
|
330
|
+
continue;
|
|
331
|
+
case 20:
|
|
332
|
+
if (tag !== 165) {
|
|
333
|
+
break;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
message.processing_rate = reader.float();
|
|
337
|
+
continue;
|
|
338
|
+
case 21:
|
|
339
|
+
if (tag !== 170) {
|
|
340
|
+
break;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
message.emi_date = reader.string();
|
|
344
|
+
continue;
|
|
345
|
+
}
|
|
346
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
347
|
+
break;
|
|
348
|
+
}
|
|
349
|
+
reader.skipType(tag & 7);
|
|
350
|
+
}
|
|
351
|
+
return message;
|
|
352
|
+
},
|
|
353
|
+
|
|
354
|
+
fromJSON(object: any): getCustomerByIdResponse {
|
|
355
|
+
return {
|
|
356
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
357
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
358
|
+
first_name: isSet(object.first_name) ? globalThis.String(object.first_name) : "",
|
|
359
|
+
middle_name: isSet(object.middle_name) ? globalThis.String(object.middle_name) : "",
|
|
360
|
+
last_name: isSet(object.last_name) ? globalThis.String(object.last_name) : "",
|
|
361
|
+
father_name: isSet(object.father_name) ? globalThis.String(object.father_name) : "",
|
|
362
|
+
mother_maiden_name: isSet(object.mother_maiden_name) ? globalThis.String(object.mother_maiden_name) : "",
|
|
363
|
+
dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
|
|
364
|
+
company_name: isSet(object.company_name) ? globalThis.String(object.company_name) : "",
|
|
365
|
+
pincode: isSet(object.pincode) ? globalThis.String(object.pincode) : "",
|
|
366
|
+
app_version: isSet(object.app_version) ? globalThis.String(object.app_version) : "",
|
|
367
|
+
biometric_enabled: isSet(object.biometric_enabled) ? globalThis.Boolean(object.biometric_enabled) : false,
|
|
368
|
+
journey_sequence: isSet(object.journey_sequence) ? globalThis.Number(object.journey_sequence) : 0,
|
|
369
|
+
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
370
|
+
loc_limit: isSet(object.loc_limit) ? globalThis.Number(object.loc_limit) : 0,
|
|
371
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
372
|
+
min_tenure: isSet(object.min_tenure) ? globalThis.Number(object.min_tenure) : 0,
|
|
373
|
+
max_tenure: isSet(object.max_tenure) ? globalThis.Number(object.max_tenure) : 0,
|
|
374
|
+
roi: isSet(object.roi) ? globalThis.Number(object.roi) : 0,
|
|
375
|
+
processing_rate: isSet(object.processing_rate) ? globalThis.Number(object.processing_rate) : 0,
|
|
376
|
+
emi_date: isSet(object.emi_date) ? globalThis.String(object.emi_date) : "",
|
|
377
|
+
};
|
|
378
|
+
},
|
|
379
|
+
|
|
380
|
+
toJSON(message: getCustomerByIdResponse): unknown {
|
|
381
|
+
const obj: any = {};
|
|
382
|
+
if (message.mobile !== "") {
|
|
383
|
+
obj.mobile = message.mobile;
|
|
384
|
+
}
|
|
385
|
+
if (message.email !== "") {
|
|
386
|
+
obj.email = message.email;
|
|
387
|
+
}
|
|
388
|
+
if (message.first_name !== "") {
|
|
389
|
+
obj.first_name = message.first_name;
|
|
390
|
+
}
|
|
391
|
+
if (message.middle_name !== "") {
|
|
392
|
+
obj.middle_name = message.middle_name;
|
|
393
|
+
}
|
|
394
|
+
if (message.last_name !== "") {
|
|
395
|
+
obj.last_name = message.last_name;
|
|
396
|
+
}
|
|
397
|
+
if (message.father_name !== "") {
|
|
398
|
+
obj.father_name = message.father_name;
|
|
399
|
+
}
|
|
400
|
+
if (message.mother_maiden_name !== "") {
|
|
401
|
+
obj.mother_maiden_name = message.mother_maiden_name;
|
|
402
|
+
}
|
|
403
|
+
if (message.dob !== "") {
|
|
404
|
+
obj.dob = message.dob;
|
|
405
|
+
}
|
|
406
|
+
if (message.company_name !== "") {
|
|
407
|
+
obj.company_name = message.company_name;
|
|
408
|
+
}
|
|
409
|
+
if (message.pincode !== "") {
|
|
410
|
+
obj.pincode = message.pincode;
|
|
411
|
+
}
|
|
412
|
+
if (message.app_version !== "") {
|
|
413
|
+
obj.app_version = message.app_version;
|
|
414
|
+
}
|
|
415
|
+
if (message.biometric_enabled !== false) {
|
|
416
|
+
obj.biometric_enabled = message.biometric_enabled;
|
|
417
|
+
}
|
|
418
|
+
if (message.journey_sequence !== 0) {
|
|
419
|
+
obj.journey_sequence = Math.round(message.journey_sequence);
|
|
420
|
+
}
|
|
421
|
+
if (message.category !== "") {
|
|
422
|
+
obj.category = message.category;
|
|
423
|
+
}
|
|
424
|
+
if (message.loc_limit !== 0) {
|
|
425
|
+
obj.loc_limit = message.loc_limit;
|
|
426
|
+
}
|
|
427
|
+
if (message.status !== "") {
|
|
428
|
+
obj.status = message.status;
|
|
429
|
+
}
|
|
430
|
+
if (message.min_tenure !== 0) {
|
|
431
|
+
obj.min_tenure = Math.round(message.min_tenure);
|
|
432
|
+
}
|
|
433
|
+
if (message.max_tenure !== 0) {
|
|
434
|
+
obj.max_tenure = Math.round(message.max_tenure);
|
|
435
|
+
}
|
|
436
|
+
if (message.roi !== 0) {
|
|
437
|
+
obj.roi = message.roi;
|
|
438
|
+
}
|
|
439
|
+
if (message.processing_rate !== 0) {
|
|
440
|
+
obj.processing_rate = message.processing_rate;
|
|
441
|
+
}
|
|
442
|
+
if (message.emi_date !== "") {
|
|
443
|
+
obj.emi_date = message.emi_date;
|
|
444
|
+
}
|
|
445
|
+
return obj;
|
|
446
|
+
},
|
|
447
|
+
|
|
448
|
+
create<I extends Exact<DeepPartial<getCustomerByIdResponse>, I>>(base?: I): getCustomerByIdResponse {
|
|
449
|
+
return getCustomerByIdResponse.fromPartial(base ?? ({} as any));
|
|
450
|
+
},
|
|
451
|
+
fromPartial<I extends Exact<DeepPartial<getCustomerByIdResponse>, I>>(object: I): getCustomerByIdResponse {
|
|
452
|
+
const message = createBasegetCustomerByIdResponse();
|
|
453
|
+
message.mobile = object.mobile ?? "";
|
|
454
|
+
message.email = object.email ?? "";
|
|
455
|
+
message.first_name = object.first_name ?? "";
|
|
456
|
+
message.middle_name = object.middle_name ?? "";
|
|
457
|
+
message.last_name = object.last_name ?? "";
|
|
458
|
+
message.father_name = object.father_name ?? "";
|
|
459
|
+
message.mother_maiden_name = object.mother_maiden_name ?? "";
|
|
460
|
+
message.dob = object.dob ?? "";
|
|
461
|
+
message.company_name = object.company_name ?? "";
|
|
462
|
+
message.pincode = object.pincode ?? "";
|
|
463
|
+
message.app_version = object.app_version ?? "";
|
|
464
|
+
message.biometric_enabled = object.biometric_enabled ?? false;
|
|
465
|
+
message.journey_sequence = object.journey_sequence ?? 0;
|
|
466
|
+
message.category = object.category ?? "";
|
|
467
|
+
message.loc_limit = object.loc_limit ?? 0;
|
|
468
|
+
message.status = object.status ?? "";
|
|
469
|
+
message.min_tenure = object.min_tenure ?? 0;
|
|
470
|
+
message.max_tenure = object.max_tenure ?? 0;
|
|
471
|
+
message.roi = object.roi ?? 0;
|
|
472
|
+
message.processing_rate = object.processing_rate ?? 0;
|
|
473
|
+
message.emi_date = object.emi_date ?? "";
|
|
474
|
+
return message;
|
|
475
|
+
},
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
479
|
+
|
|
480
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
481
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
482
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
483
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
484
|
+
: Partial<T>;
|
|
485
|
+
|
|
486
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
487
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
488
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
489
|
+
|
|
490
|
+
function isSet(value: any): boolean {
|
|
491
|
+
return value !== null && value !== undefined;
|
|
492
|
+
}
|