@stashfin/grpc 1.2.590 → 1.2.592
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/banking/aa/initiatepennydrop.d.ts +37 -0
- package/ts/banking/aa/initiatepennydrop.js +161 -0
- package/ts/banking.d.ts +14 -0
- package/ts/banking.js +10 -0
- package/ts/kyc/facematch.d.ts +5 -2
- package/ts/kyc/facematch.js +67 -15
package/package.json
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "banking.aa.initiatepennydrop";
|
|
3
|
+
export interface pennyDropRequest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
account_number: string;
|
|
6
|
+
ifsc_code: string;
|
|
7
|
+
}
|
|
8
|
+
export interface pennyDropResponse {
|
|
9
|
+
success: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const pennyDropRequest: {
|
|
12
|
+
encode(message: pennyDropRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): pennyDropRequest;
|
|
14
|
+
fromJSON(object: any): pennyDropRequest;
|
|
15
|
+
toJSON(message: pennyDropRequest): unknown;
|
|
16
|
+
create<I extends Exact<DeepPartial<pennyDropRequest>, I>>(base?: I): pennyDropRequest;
|
|
17
|
+
fromPartial<I extends Exact<DeepPartial<pennyDropRequest>, I>>(object: I): pennyDropRequest;
|
|
18
|
+
};
|
|
19
|
+
export declare const pennyDropResponse: {
|
|
20
|
+
encode(message: pennyDropResponse, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): pennyDropResponse;
|
|
22
|
+
fromJSON(object: any): pennyDropResponse;
|
|
23
|
+
toJSON(message: pennyDropResponse): unknown;
|
|
24
|
+
create<I extends Exact<DeepPartial<pennyDropResponse>, I>>(base?: I): pennyDropResponse;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<pennyDropResponse>, I>>(object: I): pennyDropResponse;
|
|
26
|
+
};
|
|
27
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
|
+
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 {} ? {
|
|
29
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
30
|
+
} : Partial<T>;
|
|
31
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
32
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
33
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
34
|
+
} & {
|
|
35
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.29.3
|
|
6
|
+
// source: banking/aa/initiatepennydrop.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.pennyDropResponse = exports.pennyDropRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
14
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
|
+
exports.protobufPackage = "banking.aa.initiatepennydrop";
|
|
16
|
+
function createBasepennyDropRequest() {
|
|
17
|
+
return { customer_id: 0, account_number: "", ifsc_code: "" };
|
|
18
|
+
}
|
|
19
|
+
exports.pennyDropRequest = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.customer_id !== 0) {
|
|
22
|
+
writer.uint32(8).int64(message.customer_id);
|
|
23
|
+
}
|
|
24
|
+
if (message.account_number !== "") {
|
|
25
|
+
writer.uint32(18).string(message.account_number);
|
|
26
|
+
}
|
|
27
|
+
if (message.ifsc_code !== "") {
|
|
28
|
+
writer.uint32(26).string(message.ifsc_code);
|
|
29
|
+
}
|
|
30
|
+
return writer;
|
|
31
|
+
},
|
|
32
|
+
decode(input, length) {
|
|
33
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
34
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35
|
+
const message = createBasepennyDropRequest();
|
|
36
|
+
while (reader.pos < end) {
|
|
37
|
+
const tag = reader.uint32();
|
|
38
|
+
switch (tag >>> 3) {
|
|
39
|
+
case 1:
|
|
40
|
+
if (tag !== 8) {
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
message.customer_id = longToNumber(reader.int64());
|
|
44
|
+
continue;
|
|
45
|
+
case 2:
|
|
46
|
+
if (tag !== 18) {
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
message.account_number = reader.string();
|
|
50
|
+
continue;
|
|
51
|
+
case 3:
|
|
52
|
+
if (tag !== 26) {
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
message.ifsc_code = reader.string();
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
reader.skipType(tag & 7);
|
|
62
|
+
}
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
fromJSON(object) {
|
|
66
|
+
return {
|
|
67
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
68
|
+
account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "",
|
|
69
|
+
ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : "",
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
toJSON(message) {
|
|
73
|
+
const obj = {};
|
|
74
|
+
if (message.customer_id !== 0) {
|
|
75
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
76
|
+
}
|
|
77
|
+
if (message.account_number !== "") {
|
|
78
|
+
obj.account_number = message.account_number;
|
|
79
|
+
}
|
|
80
|
+
if (message.ifsc_code !== "") {
|
|
81
|
+
obj.ifsc_code = message.ifsc_code;
|
|
82
|
+
}
|
|
83
|
+
return obj;
|
|
84
|
+
},
|
|
85
|
+
create(base) {
|
|
86
|
+
return exports.pennyDropRequest.fromPartial(base ?? {});
|
|
87
|
+
},
|
|
88
|
+
fromPartial(object) {
|
|
89
|
+
const message = createBasepennyDropRequest();
|
|
90
|
+
message.customer_id = object.customer_id ?? 0;
|
|
91
|
+
message.account_number = object.account_number ?? "";
|
|
92
|
+
message.ifsc_code = object.ifsc_code ?? "";
|
|
93
|
+
return message;
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
function createBasepennyDropResponse() {
|
|
97
|
+
return { success: false };
|
|
98
|
+
}
|
|
99
|
+
exports.pennyDropResponse = {
|
|
100
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
101
|
+
if (message.success !== false) {
|
|
102
|
+
writer.uint32(8).bool(message.success);
|
|
103
|
+
}
|
|
104
|
+
return writer;
|
|
105
|
+
},
|
|
106
|
+
decode(input, length) {
|
|
107
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
108
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
109
|
+
const message = createBasepennyDropResponse();
|
|
110
|
+
while (reader.pos < end) {
|
|
111
|
+
const tag = reader.uint32();
|
|
112
|
+
switch (tag >>> 3) {
|
|
113
|
+
case 1:
|
|
114
|
+
if (tag !== 8) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
message.success = reader.bool();
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
reader.skipType(tag & 7);
|
|
124
|
+
}
|
|
125
|
+
return message;
|
|
126
|
+
},
|
|
127
|
+
fromJSON(object) {
|
|
128
|
+
return { success: isSet(object.success) ? globalThis.Boolean(object.success) : false };
|
|
129
|
+
},
|
|
130
|
+
toJSON(message) {
|
|
131
|
+
const obj = {};
|
|
132
|
+
if (message.success !== false) {
|
|
133
|
+
obj.success = message.success;
|
|
134
|
+
}
|
|
135
|
+
return obj;
|
|
136
|
+
},
|
|
137
|
+
create(base) {
|
|
138
|
+
return exports.pennyDropResponse.fromPartial(base ?? {});
|
|
139
|
+
},
|
|
140
|
+
fromPartial(object) {
|
|
141
|
+
const message = createBasepennyDropResponse();
|
|
142
|
+
message.success = object.success ?? false;
|
|
143
|
+
return message;
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
function longToNumber(long) {
|
|
147
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
148
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
149
|
+
}
|
|
150
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
151
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
152
|
+
}
|
|
153
|
+
return long.toNumber();
|
|
154
|
+
}
|
|
155
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
156
|
+
minimal_1.default.util.Long = long_1.default;
|
|
157
|
+
minimal_1.default.configure();
|
|
158
|
+
}
|
|
159
|
+
function isSet(value) {
|
|
160
|
+
return value !== null && value !== undefined;
|
|
161
|
+
}
|
package/ts/banking.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { getAASupportRequest, getAASupportResponse } from "./banking/aa/getaasup
|
|
|
3
3
|
import { getBankListRequest, getBankListResponse } from "./banking/aa/getbanklist";
|
|
4
4
|
import { createRpdLinkRequest, createRpdLinkResponse } from "./banking/aa/getrpdlink";
|
|
5
5
|
import { initiateRequest, initiateResponse } from "./banking/aa/initiate";
|
|
6
|
+
import { pennyDropRequest, pennyDropResponse } from "./banking/aa/initiatepennydrop";
|
|
6
7
|
export declare const protobufPackage = "service";
|
|
7
8
|
export type bankingService = typeof bankingService;
|
|
8
9
|
export declare const bankingService: {
|
|
@@ -42,12 +43,22 @@ export declare const bankingService: {
|
|
|
42
43
|
readonly responseSerialize: (value: getAASupportResponse) => Buffer;
|
|
43
44
|
readonly responseDeserialize: (value: Buffer) => getAASupportResponse;
|
|
44
45
|
};
|
|
46
|
+
readonly initiatePennyDrop: {
|
|
47
|
+
readonly path: "/service.banking/initiatePennyDrop";
|
|
48
|
+
readonly requestStream: false;
|
|
49
|
+
readonly responseStream: false;
|
|
50
|
+
readonly requestSerialize: (value: pennyDropRequest) => Buffer;
|
|
51
|
+
readonly requestDeserialize: (value: Buffer) => pennyDropRequest;
|
|
52
|
+
readonly responseSerialize: (value: pennyDropResponse) => Buffer;
|
|
53
|
+
readonly responseDeserialize: (value: Buffer) => pennyDropResponse;
|
|
54
|
+
};
|
|
45
55
|
};
|
|
46
56
|
export interface bankingServer extends UntypedServiceImplementation {
|
|
47
57
|
getBankList: handleUnaryCall<getBankListRequest, getBankListResponse>;
|
|
48
58
|
initiateRequest: handleUnaryCall<initiateRequest, initiateResponse>;
|
|
49
59
|
getRpdLink: handleUnaryCall<createRpdLinkRequest, createRpdLinkResponse>;
|
|
50
60
|
getAaSupport: handleUnaryCall<getAASupportRequest, getAASupportResponse>;
|
|
61
|
+
initiatePennyDrop: handleUnaryCall<pennyDropRequest, pennyDropResponse>;
|
|
51
62
|
}
|
|
52
63
|
export interface bankingClient extends Client {
|
|
53
64
|
getBankList(request: getBankListRequest, callback: (error: ServiceError | null, response: getBankListResponse) => void): ClientUnaryCall;
|
|
@@ -62,6 +73,9 @@ export interface bankingClient extends Client {
|
|
|
62
73
|
getAaSupport(request: getAASupportRequest, callback: (error: ServiceError | null, response: getAASupportResponse) => void): ClientUnaryCall;
|
|
63
74
|
getAaSupport(request: getAASupportRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAASupportResponse) => void): ClientUnaryCall;
|
|
64
75
|
getAaSupport(request: getAASupportRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAASupportResponse) => void): ClientUnaryCall;
|
|
76
|
+
initiatePennyDrop(request: pennyDropRequest, callback: (error: ServiceError | null, response: pennyDropResponse) => void): ClientUnaryCall;
|
|
77
|
+
initiatePennyDrop(request: pennyDropRequest, metadata: Metadata, callback: (error: ServiceError | null, response: pennyDropResponse) => void): ClientUnaryCall;
|
|
78
|
+
initiatePennyDrop(request: pennyDropRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: pennyDropResponse) => void): ClientUnaryCall;
|
|
65
79
|
}
|
|
66
80
|
export declare const bankingClient: {
|
|
67
81
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): bankingClient;
|
package/ts/banking.js
CHANGED
|
@@ -12,6 +12,7 @@ const getaasupport_1 = require("./banking/aa/getaasupport");
|
|
|
12
12
|
const getbanklist_1 = require("./banking/aa/getbanklist");
|
|
13
13
|
const getrpdlink_1 = require("./banking/aa/getrpdlink");
|
|
14
14
|
const initiate_1 = require("./banking/aa/initiate");
|
|
15
|
+
const initiatepennydrop_1 = require("./banking/aa/initiatepennydrop");
|
|
15
16
|
exports.protobufPackage = "service";
|
|
16
17
|
exports.bankingService = {
|
|
17
18
|
getBankList: {
|
|
@@ -50,5 +51,14 @@ exports.bankingService = {
|
|
|
50
51
|
responseSerialize: (value) => Buffer.from(getaasupport_1.getAASupportResponse.encode(value).finish()),
|
|
51
52
|
responseDeserialize: (value) => getaasupport_1.getAASupportResponse.decode(value),
|
|
52
53
|
},
|
|
54
|
+
initiatePennyDrop: {
|
|
55
|
+
path: "/service.banking/initiatePennyDrop",
|
|
56
|
+
requestStream: false,
|
|
57
|
+
responseStream: false,
|
|
58
|
+
requestSerialize: (value) => Buffer.from(initiatepennydrop_1.pennyDropRequest.encode(value).finish()),
|
|
59
|
+
requestDeserialize: (value) => initiatepennydrop_1.pennyDropRequest.decode(value),
|
|
60
|
+
responseSerialize: (value) => Buffer.from(initiatepennydrop_1.pennyDropResponse.encode(value).finish()),
|
|
61
|
+
responseDeserialize: (value) => initiatepennydrop_1.pennyDropResponse.decode(value),
|
|
62
|
+
},
|
|
53
63
|
};
|
|
54
64
|
exports.bankingClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.bankingService, "service.banking");
|
package/ts/kyc/facematch.d.ts
CHANGED
|
@@ -8,11 +8,14 @@ export interface faceMatchRequest {
|
|
|
8
8
|
}
|
|
9
9
|
export interface faceMatchResponse {
|
|
10
10
|
conf: string;
|
|
11
|
-
match:
|
|
11
|
+
match: string;
|
|
12
12
|
match_score: number;
|
|
13
|
-
to_be_reviewed:
|
|
13
|
+
to_be_reviewed: string;
|
|
14
14
|
customer_id: number;
|
|
15
15
|
txn_id: string;
|
|
16
|
+
status: string;
|
|
17
|
+
status_code: number;
|
|
18
|
+
error_message?: string | undefined;
|
|
16
19
|
}
|
|
17
20
|
export declare const faceMatchRequest: {
|
|
18
21
|
encode(message: faceMatchRequest, writer?: _m0.Writer): _m0.Writer;
|
package/ts/kyc/facematch.js
CHANGED
|
@@ -107,21 +107,31 @@ exports.faceMatchRequest = {
|
|
|
107
107
|
},
|
|
108
108
|
};
|
|
109
109
|
function createBasefaceMatchResponse() {
|
|
110
|
-
return {
|
|
110
|
+
return {
|
|
111
|
+
conf: "",
|
|
112
|
+
match: "",
|
|
113
|
+
match_score: 0,
|
|
114
|
+
to_be_reviewed: "",
|
|
115
|
+
customer_id: 0,
|
|
116
|
+
txn_id: "",
|
|
117
|
+
status: "",
|
|
118
|
+
status_code: 0,
|
|
119
|
+
error_message: undefined,
|
|
120
|
+
};
|
|
111
121
|
}
|
|
112
122
|
exports.faceMatchResponse = {
|
|
113
123
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
114
124
|
if (message.conf !== "") {
|
|
115
125
|
writer.uint32(10).string(message.conf);
|
|
116
126
|
}
|
|
117
|
-
if (message.match !==
|
|
118
|
-
writer.uint32(
|
|
127
|
+
if (message.match !== "") {
|
|
128
|
+
writer.uint32(18).string(message.match);
|
|
119
129
|
}
|
|
120
130
|
if (message.match_score !== 0) {
|
|
121
131
|
writer.uint32(24).int32(message.match_score);
|
|
122
132
|
}
|
|
123
|
-
if (message.to_be_reviewed !==
|
|
124
|
-
writer.uint32(
|
|
133
|
+
if (message.to_be_reviewed !== "") {
|
|
134
|
+
writer.uint32(34).string(message.to_be_reviewed);
|
|
125
135
|
}
|
|
126
136
|
if (message.customer_id !== 0) {
|
|
127
137
|
writer.uint32(40).int32(message.customer_id);
|
|
@@ -129,6 +139,15 @@ exports.faceMatchResponse = {
|
|
|
129
139
|
if (message.txn_id !== "") {
|
|
130
140
|
writer.uint32(50).string(message.txn_id);
|
|
131
141
|
}
|
|
142
|
+
if (message.status !== "") {
|
|
143
|
+
writer.uint32(58).string(message.status);
|
|
144
|
+
}
|
|
145
|
+
if (message.status_code !== 0) {
|
|
146
|
+
writer.uint32(64).int32(message.status_code);
|
|
147
|
+
}
|
|
148
|
+
if (message.error_message !== undefined) {
|
|
149
|
+
writer.uint32(74).string(message.error_message);
|
|
150
|
+
}
|
|
132
151
|
return writer;
|
|
133
152
|
},
|
|
134
153
|
decode(input, length) {
|
|
@@ -145,10 +164,10 @@ exports.faceMatchResponse = {
|
|
|
145
164
|
message.conf = reader.string();
|
|
146
165
|
continue;
|
|
147
166
|
case 2:
|
|
148
|
-
if (tag !==
|
|
167
|
+
if (tag !== 18) {
|
|
149
168
|
break;
|
|
150
169
|
}
|
|
151
|
-
message.match = reader.
|
|
170
|
+
message.match = reader.string();
|
|
152
171
|
continue;
|
|
153
172
|
case 3:
|
|
154
173
|
if (tag !== 24) {
|
|
@@ -157,10 +176,10 @@ exports.faceMatchResponse = {
|
|
|
157
176
|
message.match_score = reader.int32();
|
|
158
177
|
continue;
|
|
159
178
|
case 4:
|
|
160
|
-
if (tag !==
|
|
179
|
+
if (tag !== 34) {
|
|
161
180
|
break;
|
|
162
181
|
}
|
|
163
|
-
message.to_be_reviewed = reader.
|
|
182
|
+
message.to_be_reviewed = reader.string();
|
|
164
183
|
continue;
|
|
165
184
|
case 5:
|
|
166
185
|
if (tag !== 40) {
|
|
@@ -174,6 +193,24 @@ exports.faceMatchResponse = {
|
|
|
174
193
|
}
|
|
175
194
|
message.txn_id = reader.string();
|
|
176
195
|
continue;
|
|
196
|
+
case 7:
|
|
197
|
+
if (tag !== 58) {
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
message.status = reader.string();
|
|
201
|
+
continue;
|
|
202
|
+
case 8:
|
|
203
|
+
if (tag !== 64) {
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
message.status_code = reader.int32();
|
|
207
|
+
continue;
|
|
208
|
+
case 9:
|
|
209
|
+
if (tag !== 74) {
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
message.error_message = reader.string();
|
|
213
|
+
continue;
|
|
177
214
|
}
|
|
178
215
|
if ((tag & 7) === 4 || tag === 0) {
|
|
179
216
|
break;
|
|
@@ -185,11 +222,14 @@ exports.faceMatchResponse = {
|
|
|
185
222
|
fromJSON(object) {
|
|
186
223
|
return {
|
|
187
224
|
conf: isSet(object.conf) ? globalThis.String(object.conf) : "",
|
|
188
|
-
match: isSet(object.match) ? globalThis.
|
|
225
|
+
match: isSet(object.match) ? globalThis.String(object.match) : "",
|
|
189
226
|
match_score: isSet(object.match_score) ? globalThis.Number(object.match_score) : 0,
|
|
190
|
-
to_be_reviewed: isSet(object.to_be_reviewed) ? globalThis.
|
|
227
|
+
to_be_reviewed: isSet(object.to_be_reviewed) ? globalThis.String(object.to_be_reviewed) : "",
|
|
191
228
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
192
229
|
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
|
|
230
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
231
|
+
status_code: isSet(object.status_code) ? globalThis.Number(object.status_code) : 0,
|
|
232
|
+
error_message: isSet(object.error_message) ? globalThis.String(object.error_message) : undefined,
|
|
193
233
|
};
|
|
194
234
|
},
|
|
195
235
|
toJSON(message) {
|
|
@@ -197,13 +237,13 @@ exports.faceMatchResponse = {
|
|
|
197
237
|
if (message.conf !== "") {
|
|
198
238
|
obj.conf = message.conf;
|
|
199
239
|
}
|
|
200
|
-
if (message.match !==
|
|
240
|
+
if (message.match !== "") {
|
|
201
241
|
obj.match = message.match;
|
|
202
242
|
}
|
|
203
243
|
if (message.match_score !== 0) {
|
|
204
244
|
obj.match_score = Math.round(message.match_score);
|
|
205
245
|
}
|
|
206
|
-
if (message.to_be_reviewed !==
|
|
246
|
+
if (message.to_be_reviewed !== "") {
|
|
207
247
|
obj.to_be_reviewed = message.to_be_reviewed;
|
|
208
248
|
}
|
|
209
249
|
if (message.customer_id !== 0) {
|
|
@@ -212,6 +252,15 @@ exports.faceMatchResponse = {
|
|
|
212
252
|
if (message.txn_id !== "") {
|
|
213
253
|
obj.txn_id = message.txn_id;
|
|
214
254
|
}
|
|
255
|
+
if (message.status !== "") {
|
|
256
|
+
obj.status = message.status;
|
|
257
|
+
}
|
|
258
|
+
if (message.status_code !== 0) {
|
|
259
|
+
obj.status_code = Math.round(message.status_code);
|
|
260
|
+
}
|
|
261
|
+
if (message.error_message !== undefined) {
|
|
262
|
+
obj.error_message = message.error_message;
|
|
263
|
+
}
|
|
215
264
|
return obj;
|
|
216
265
|
},
|
|
217
266
|
create(base) {
|
|
@@ -220,11 +269,14 @@ exports.faceMatchResponse = {
|
|
|
220
269
|
fromPartial(object) {
|
|
221
270
|
const message = createBasefaceMatchResponse();
|
|
222
271
|
message.conf = object.conf ?? "";
|
|
223
|
-
message.match = object.match ??
|
|
272
|
+
message.match = object.match ?? "";
|
|
224
273
|
message.match_score = object.match_score ?? 0;
|
|
225
|
-
message.to_be_reviewed = object.to_be_reviewed ??
|
|
274
|
+
message.to_be_reviewed = object.to_be_reviewed ?? "";
|
|
226
275
|
message.customer_id = object.customer_id ?? 0;
|
|
227
276
|
message.txn_id = object.txn_id ?? "";
|
|
277
|
+
message.status = object.status ?? "";
|
|
278
|
+
message.status_code = object.status_code ?? 0;
|
|
279
|
+
message.error_message = object.error_message ?? undefined;
|
|
228
280
|
return message;
|
|
229
281
|
},
|
|
230
282
|
};
|