@stashfin/grpc 1.2.662 → 1.2.663
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
CHANGED
package/ts/eqxcustomer.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { getCustomerByMobileRequest, getCustomerByMobileResponse } from "./eqxcu
|
|
|
5
5
|
import { getDashboardRequest, getDashboardResponse } from "./eqxcustomers/getdashboard";
|
|
6
6
|
import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./eqxcustomers/getdashboardmaincard";
|
|
7
7
|
import { getNotificationsRequest, getNotificationsResponse } from "./eqxcustomers/getnotifications";
|
|
8
|
+
import { getStashScoreProfileByIdRequest, getStashScoreProfileByIdResponse } from "./eqxcustomers/getstashscorecustomerprofile";
|
|
8
9
|
import { getTokensRequest, getTokensResponse } from "./eqxcustomers/gettokens";
|
|
9
10
|
import { sendOtpRequest, sendOtpResponse } from "./eqxcustomers/sendotp";
|
|
10
11
|
import { updateCustomerRequest, updateCustomerResponse } from "./eqxcustomers/updatecustomer";
|
|
@@ -123,6 +124,15 @@ export declare const eqxcustomersService: {
|
|
|
123
124
|
readonly responseSerialize: (value: updateCustomerResponse) => Buffer;
|
|
124
125
|
readonly responseDeserialize: (value: Buffer) => updateCustomerResponse;
|
|
125
126
|
};
|
|
127
|
+
readonly getStashScoreProfileById: {
|
|
128
|
+
readonly path: "/service.eqxcustomers/getStashScoreProfileById";
|
|
129
|
+
readonly requestStream: false;
|
|
130
|
+
readonly responseStream: false;
|
|
131
|
+
readonly requestSerialize: (value: getStashScoreProfileByIdRequest) => Buffer;
|
|
132
|
+
readonly requestDeserialize: (value: Buffer) => getStashScoreProfileByIdRequest;
|
|
133
|
+
readonly responseSerialize: (value: getStashScoreProfileByIdResponse) => Buffer;
|
|
134
|
+
readonly responseDeserialize: (value: Buffer) => getStashScoreProfileByIdResponse;
|
|
135
|
+
};
|
|
126
136
|
readonly authenticateUser: {
|
|
127
137
|
readonly path: "/service.eqxcustomers/authenticateUser";
|
|
128
138
|
readonly requestStream: false;
|
|
@@ -146,6 +156,7 @@ export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
|
146
156
|
getTokens: handleUnaryCall<getTokensRequest, getTokensResponse>;
|
|
147
157
|
getCustomerByMobile: handleUnaryCall<getCustomerByMobileRequest, getCustomerByMobileResponse>;
|
|
148
158
|
updateCustomer: handleUnaryCall<updateCustomerRequest, updateCustomerResponse>;
|
|
159
|
+
getStashScoreProfileById: handleUnaryCall<getStashScoreProfileByIdRequest, getStashScoreProfileByIdResponse>;
|
|
149
160
|
authenticateUser: handleUnaryCall<authenticatUserRequest, authenticatUserResponse>;
|
|
150
161
|
}
|
|
151
162
|
export interface eqxcustomersClient extends Client {
|
|
@@ -185,6 +196,9 @@ export interface eqxcustomersClient extends Client {
|
|
|
185
196
|
updateCustomer(request: updateCustomerRequest, callback: (error: ServiceError | null, response: updateCustomerResponse) => void): ClientUnaryCall;
|
|
186
197
|
updateCustomer(request: updateCustomerRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCustomerResponse) => void): ClientUnaryCall;
|
|
187
198
|
updateCustomer(request: updateCustomerRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCustomerResponse) => void): ClientUnaryCall;
|
|
199
|
+
getStashScoreProfileById(request: getStashScoreProfileByIdRequest, callback: (error: ServiceError | null, response: getStashScoreProfileByIdResponse) => void): ClientUnaryCall;
|
|
200
|
+
getStashScoreProfileById(request: getStashScoreProfileByIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getStashScoreProfileByIdResponse) => void): ClientUnaryCall;
|
|
201
|
+
getStashScoreProfileById(request: getStashScoreProfileByIdRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getStashScoreProfileByIdResponse) => void): ClientUnaryCall;
|
|
188
202
|
authenticateUser(request: authenticatUserRequest, callback: (error: ServiceError | null, response: authenticatUserResponse) => void): ClientUnaryCall;
|
|
189
203
|
authenticateUser(request: authenticatUserRequest, metadata: Metadata, callback: (error: ServiceError | null, response: authenticatUserResponse) => void): ClientUnaryCall;
|
|
190
204
|
authenticateUser(request: authenticatUserRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: authenticatUserResponse) => void): ClientUnaryCall;
|
package/ts/eqxcustomer.js
CHANGED
|
@@ -14,6 +14,7 @@ const getcustomerbymobile_1 = require("./eqxcustomers/getcustomerbymobile");
|
|
|
14
14
|
const getdashboard_1 = require("./eqxcustomers/getdashboard");
|
|
15
15
|
const getdashboardmaincard_1 = require("./eqxcustomers/getdashboardmaincard");
|
|
16
16
|
const getnotifications_1 = require("./eqxcustomers/getnotifications");
|
|
17
|
+
const getstashscorecustomerprofile_1 = require("./eqxcustomers/getstashscorecustomerprofile");
|
|
17
18
|
const gettokens_1 = require("./eqxcustomers/gettokens");
|
|
18
19
|
const sendotp_1 = require("./eqxcustomers/sendotp");
|
|
19
20
|
const updatecustomer_1 = require("./eqxcustomers/updatecustomer");
|
|
@@ -131,6 +132,15 @@ exports.eqxcustomersService = {
|
|
|
131
132
|
responseSerialize: (value) => Buffer.from(updatecustomer_1.updateCustomerResponse.encode(value).finish()),
|
|
132
133
|
responseDeserialize: (value) => updatecustomer_1.updateCustomerResponse.decode(value),
|
|
133
134
|
},
|
|
135
|
+
getStashScoreProfileById: {
|
|
136
|
+
path: "/service.eqxcustomers/getStashScoreProfileById",
|
|
137
|
+
requestStream: false,
|
|
138
|
+
responseStream: false,
|
|
139
|
+
requestSerialize: (value) => Buffer.from(getstashscorecustomerprofile_1.getStashScoreProfileByIdRequest.encode(value).finish()),
|
|
140
|
+
requestDeserialize: (value) => getstashscorecustomerprofile_1.getStashScoreProfileByIdRequest.decode(value),
|
|
141
|
+
responseSerialize: (value) => Buffer.from(getstashscorecustomerprofile_1.getStashScoreProfileByIdResponse.encode(value).finish()),
|
|
142
|
+
responseDeserialize: (value) => getstashscorecustomerprofile_1.getStashScoreProfileByIdResponse.decode(value),
|
|
143
|
+
},
|
|
134
144
|
authenticateUser: {
|
|
135
145
|
path: "/service.eqxcustomers/authenticateUser",
|
|
136
146
|
requestStream: false,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "eqxcustomers.getstashscorecustomerprofile";
|
|
3
|
+
export interface getStashScoreProfileByIdRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getStashScoreProfileByIdResponse {
|
|
6
|
+
id: number;
|
|
7
|
+
mobile: string;
|
|
8
|
+
status: string;
|
|
9
|
+
biometric_state: number;
|
|
10
|
+
vpa?: string | undefined;
|
|
11
|
+
first_name?: string | undefined;
|
|
12
|
+
last_name?: string | undefined;
|
|
13
|
+
email?: string | undefined;
|
|
14
|
+
token?: string | undefined;
|
|
15
|
+
refferal_code?: string | undefined;
|
|
16
|
+
pan_number?: string | undefined;
|
|
17
|
+
pin_code?: string | undefined;
|
|
18
|
+
dob?: string | undefined;
|
|
19
|
+
isDashboardEnabled?: boolean | undefined;
|
|
20
|
+
isChrEnabled?: boolean | undefined;
|
|
21
|
+
}
|
|
22
|
+
export declare const getStashScoreProfileByIdRequest: {
|
|
23
|
+
encode(_: getStashScoreProfileByIdRequest, writer?: _m0.Writer): _m0.Writer;
|
|
24
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getStashScoreProfileByIdRequest;
|
|
25
|
+
fromJSON(_: any): getStashScoreProfileByIdRequest;
|
|
26
|
+
toJSON(_: getStashScoreProfileByIdRequest): unknown;
|
|
27
|
+
create<I extends Exact<DeepPartial<getStashScoreProfileByIdRequest>, I>>(base?: I): getStashScoreProfileByIdRequest;
|
|
28
|
+
fromPartial<I extends Exact<DeepPartial<getStashScoreProfileByIdRequest>, I>>(_: I): getStashScoreProfileByIdRequest;
|
|
29
|
+
};
|
|
30
|
+
export declare const getStashScoreProfileByIdResponse: {
|
|
31
|
+
encode(message: getStashScoreProfileByIdResponse, writer?: _m0.Writer): _m0.Writer;
|
|
32
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getStashScoreProfileByIdResponse;
|
|
33
|
+
fromJSON(object: any): getStashScoreProfileByIdResponse;
|
|
34
|
+
toJSON(message: getStashScoreProfileByIdResponse): unknown;
|
|
35
|
+
create<I extends Exact<DeepPartial<getStashScoreProfileByIdResponse>, I>>(base?: I): getStashScoreProfileByIdResponse;
|
|
36
|
+
fromPartial<I extends Exact<DeepPartial<getStashScoreProfileByIdResponse>, I>>(object: I): getStashScoreProfileByIdResponse;
|
|
37
|
+
};
|
|
38
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
39
|
+
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
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
41
|
+
} : Partial<T>;
|
|
42
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
43
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
44
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
45
|
+
} & {
|
|
46
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
47
|
+
};
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,318 @@
|
|
|
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 v6.30.0
|
|
6
|
+
// source: eqxcustomers/getstashscorecustomerprofile.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.getStashScoreProfileByIdResponse = exports.getStashScoreProfileByIdRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "eqxcustomers.getstashscorecustomerprofile";
|
|
15
|
+
function createBasegetStashScoreProfileByIdRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getStashScoreProfileByIdRequest = {
|
|
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 = createBasegetStashScoreProfileByIdRequest();
|
|
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.getStashScoreProfileByIdRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetStashScoreProfileByIdRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetStashScoreProfileByIdResponse() {
|
|
53
|
+
return {
|
|
54
|
+
id: 0,
|
|
55
|
+
mobile: "",
|
|
56
|
+
status: "",
|
|
57
|
+
biometric_state: 0,
|
|
58
|
+
vpa: undefined,
|
|
59
|
+
first_name: undefined,
|
|
60
|
+
last_name: undefined,
|
|
61
|
+
email: undefined,
|
|
62
|
+
token: undefined,
|
|
63
|
+
refferal_code: undefined,
|
|
64
|
+
pan_number: undefined,
|
|
65
|
+
pin_code: undefined,
|
|
66
|
+
dob: undefined,
|
|
67
|
+
isDashboardEnabled: undefined,
|
|
68
|
+
isChrEnabled: undefined,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
exports.getStashScoreProfileByIdResponse = {
|
|
72
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
73
|
+
if (message.id !== 0) {
|
|
74
|
+
writer.uint32(8).int32(message.id);
|
|
75
|
+
}
|
|
76
|
+
if (message.mobile !== "") {
|
|
77
|
+
writer.uint32(18).string(message.mobile);
|
|
78
|
+
}
|
|
79
|
+
if (message.status !== "") {
|
|
80
|
+
writer.uint32(26).string(message.status);
|
|
81
|
+
}
|
|
82
|
+
if (message.biometric_state !== 0) {
|
|
83
|
+
writer.uint32(32).int32(message.biometric_state);
|
|
84
|
+
}
|
|
85
|
+
if (message.vpa !== undefined) {
|
|
86
|
+
writer.uint32(42).string(message.vpa);
|
|
87
|
+
}
|
|
88
|
+
if (message.first_name !== undefined) {
|
|
89
|
+
writer.uint32(50).string(message.first_name);
|
|
90
|
+
}
|
|
91
|
+
if (message.last_name !== undefined) {
|
|
92
|
+
writer.uint32(58).string(message.last_name);
|
|
93
|
+
}
|
|
94
|
+
if (message.email !== undefined) {
|
|
95
|
+
writer.uint32(66).string(message.email);
|
|
96
|
+
}
|
|
97
|
+
if (message.token !== undefined) {
|
|
98
|
+
writer.uint32(74).string(message.token);
|
|
99
|
+
}
|
|
100
|
+
if (message.refferal_code !== undefined) {
|
|
101
|
+
writer.uint32(82).string(message.refferal_code);
|
|
102
|
+
}
|
|
103
|
+
if (message.pan_number !== undefined) {
|
|
104
|
+
writer.uint32(90).string(message.pan_number);
|
|
105
|
+
}
|
|
106
|
+
if (message.pin_code !== undefined) {
|
|
107
|
+
writer.uint32(98).string(message.pin_code);
|
|
108
|
+
}
|
|
109
|
+
if (message.dob !== undefined) {
|
|
110
|
+
writer.uint32(106).string(message.dob);
|
|
111
|
+
}
|
|
112
|
+
if (message.isDashboardEnabled !== undefined) {
|
|
113
|
+
writer.uint32(112).bool(message.isDashboardEnabled);
|
|
114
|
+
}
|
|
115
|
+
if (message.isChrEnabled !== undefined) {
|
|
116
|
+
writer.uint32(120).bool(message.isChrEnabled);
|
|
117
|
+
}
|
|
118
|
+
return writer;
|
|
119
|
+
},
|
|
120
|
+
decode(input, length) {
|
|
121
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
122
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
123
|
+
const message = createBasegetStashScoreProfileByIdResponse();
|
|
124
|
+
while (reader.pos < end) {
|
|
125
|
+
const tag = reader.uint32();
|
|
126
|
+
switch (tag >>> 3) {
|
|
127
|
+
case 1:
|
|
128
|
+
if (tag !== 8) {
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
message.id = reader.int32();
|
|
132
|
+
continue;
|
|
133
|
+
case 2:
|
|
134
|
+
if (tag !== 18) {
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
message.mobile = reader.string();
|
|
138
|
+
continue;
|
|
139
|
+
case 3:
|
|
140
|
+
if (tag !== 26) {
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
message.status = reader.string();
|
|
144
|
+
continue;
|
|
145
|
+
case 4:
|
|
146
|
+
if (tag !== 32) {
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
message.biometric_state = reader.int32();
|
|
150
|
+
continue;
|
|
151
|
+
case 5:
|
|
152
|
+
if (tag !== 42) {
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
message.vpa = reader.string();
|
|
156
|
+
continue;
|
|
157
|
+
case 6:
|
|
158
|
+
if (tag !== 50) {
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
message.first_name = reader.string();
|
|
162
|
+
continue;
|
|
163
|
+
case 7:
|
|
164
|
+
if (tag !== 58) {
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
message.last_name = reader.string();
|
|
168
|
+
continue;
|
|
169
|
+
case 8:
|
|
170
|
+
if (tag !== 66) {
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
message.email = reader.string();
|
|
174
|
+
continue;
|
|
175
|
+
case 9:
|
|
176
|
+
if (tag !== 74) {
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
message.token = reader.string();
|
|
180
|
+
continue;
|
|
181
|
+
case 10:
|
|
182
|
+
if (tag !== 82) {
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
message.refferal_code = reader.string();
|
|
186
|
+
continue;
|
|
187
|
+
case 11:
|
|
188
|
+
if (tag !== 90) {
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
message.pan_number = reader.string();
|
|
192
|
+
continue;
|
|
193
|
+
case 12:
|
|
194
|
+
if (tag !== 98) {
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
message.pin_code = reader.string();
|
|
198
|
+
continue;
|
|
199
|
+
case 13:
|
|
200
|
+
if (tag !== 106) {
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
message.dob = reader.string();
|
|
204
|
+
continue;
|
|
205
|
+
case 14:
|
|
206
|
+
if (tag !== 112) {
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
message.isDashboardEnabled = reader.bool();
|
|
210
|
+
continue;
|
|
211
|
+
case 15:
|
|
212
|
+
if (tag !== 120) {
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
message.isChrEnabled = reader.bool();
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
reader.skipType(tag & 7);
|
|
222
|
+
}
|
|
223
|
+
return message;
|
|
224
|
+
},
|
|
225
|
+
fromJSON(object) {
|
|
226
|
+
return {
|
|
227
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
228
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
229
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
230
|
+
biometric_state: isSet(object.biometric_state) ? globalThis.Number(object.biometric_state) : 0,
|
|
231
|
+
vpa: isSet(object.vpa) ? globalThis.String(object.vpa) : undefined,
|
|
232
|
+
first_name: isSet(object.first_name) ? globalThis.String(object.first_name) : undefined,
|
|
233
|
+
last_name: isSet(object.last_name) ? globalThis.String(object.last_name) : undefined,
|
|
234
|
+
email: isSet(object.email) ? globalThis.String(object.email) : undefined,
|
|
235
|
+
token: isSet(object.token) ? globalThis.String(object.token) : undefined,
|
|
236
|
+
refferal_code: isSet(object.refferal_code) ? globalThis.String(object.refferal_code) : undefined,
|
|
237
|
+
pan_number: isSet(object.pan_number) ? globalThis.String(object.pan_number) : undefined,
|
|
238
|
+
pin_code: isSet(object.pin_code) ? globalThis.String(object.pin_code) : undefined,
|
|
239
|
+
dob: isSet(object.dob) ? globalThis.String(object.dob) : undefined,
|
|
240
|
+
isDashboardEnabled: isSet(object.isDashboardEnabled) ? globalThis.Boolean(object.isDashboardEnabled) : undefined,
|
|
241
|
+
isChrEnabled: isSet(object.isChrEnabled) ? globalThis.Boolean(object.isChrEnabled) : undefined,
|
|
242
|
+
};
|
|
243
|
+
},
|
|
244
|
+
toJSON(message) {
|
|
245
|
+
const obj = {};
|
|
246
|
+
if (message.id !== 0) {
|
|
247
|
+
obj.id = Math.round(message.id);
|
|
248
|
+
}
|
|
249
|
+
if (message.mobile !== "") {
|
|
250
|
+
obj.mobile = message.mobile;
|
|
251
|
+
}
|
|
252
|
+
if (message.status !== "") {
|
|
253
|
+
obj.status = message.status;
|
|
254
|
+
}
|
|
255
|
+
if (message.biometric_state !== 0) {
|
|
256
|
+
obj.biometric_state = Math.round(message.biometric_state);
|
|
257
|
+
}
|
|
258
|
+
if (message.vpa !== undefined) {
|
|
259
|
+
obj.vpa = message.vpa;
|
|
260
|
+
}
|
|
261
|
+
if (message.first_name !== undefined) {
|
|
262
|
+
obj.first_name = message.first_name;
|
|
263
|
+
}
|
|
264
|
+
if (message.last_name !== undefined) {
|
|
265
|
+
obj.last_name = message.last_name;
|
|
266
|
+
}
|
|
267
|
+
if (message.email !== undefined) {
|
|
268
|
+
obj.email = message.email;
|
|
269
|
+
}
|
|
270
|
+
if (message.token !== undefined) {
|
|
271
|
+
obj.token = message.token;
|
|
272
|
+
}
|
|
273
|
+
if (message.refferal_code !== undefined) {
|
|
274
|
+
obj.refferal_code = message.refferal_code;
|
|
275
|
+
}
|
|
276
|
+
if (message.pan_number !== undefined) {
|
|
277
|
+
obj.pan_number = message.pan_number;
|
|
278
|
+
}
|
|
279
|
+
if (message.pin_code !== undefined) {
|
|
280
|
+
obj.pin_code = message.pin_code;
|
|
281
|
+
}
|
|
282
|
+
if (message.dob !== undefined) {
|
|
283
|
+
obj.dob = message.dob;
|
|
284
|
+
}
|
|
285
|
+
if (message.isDashboardEnabled !== undefined) {
|
|
286
|
+
obj.isDashboardEnabled = message.isDashboardEnabled;
|
|
287
|
+
}
|
|
288
|
+
if (message.isChrEnabled !== undefined) {
|
|
289
|
+
obj.isChrEnabled = message.isChrEnabled;
|
|
290
|
+
}
|
|
291
|
+
return obj;
|
|
292
|
+
},
|
|
293
|
+
create(base) {
|
|
294
|
+
return exports.getStashScoreProfileByIdResponse.fromPartial(base ?? {});
|
|
295
|
+
},
|
|
296
|
+
fromPartial(object) {
|
|
297
|
+
const message = createBasegetStashScoreProfileByIdResponse();
|
|
298
|
+
message.id = object.id ?? 0;
|
|
299
|
+
message.mobile = object.mobile ?? "";
|
|
300
|
+
message.status = object.status ?? "";
|
|
301
|
+
message.biometric_state = object.biometric_state ?? 0;
|
|
302
|
+
message.vpa = object.vpa ?? undefined;
|
|
303
|
+
message.first_name = object.first_name ?? undefined;
|
|
304
|
+
message.last_name = object.last_name ?? undefined;
|
|
305
|
+
message.email = object.email ?? undefined;
|
|
306
|
+
message.token = object.token ?? undefined;
|
|
307
|
+
message.refferal_code = object.refferal_code ?? undefined;
|
|
308
|
+
message.pan_number = object.pan_number ?? undefined;
|
|
309
|
+
message.pin_code = object.pin_code ?? undefined;
|
|
310
|
+
message.dob = object.dob ?? undefined;
|
|
311
|
+
message.isDashboardEnabled = object.isDashboardEnabled ?? undefined;
|
|
312
|
+
message.isChrEnabled = object.isChrEnabled ?? undefined;
|
|
313
|
+
return message;
|
|
314
|
+
},
|
|
315
|
+
};
|
|
316
|
+
function isSet(value) {
|
|
317
|
+
return value !== null && value !== undefined;
|
|
318
|
+
}
|