@stashfin/grpc 1.2.581 → 1.2.583
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/kyc/facematch.d.ts +2 -2
- package/ts/kyc/facematch.js +15 -15
- package/ts/loans/addreference.d.ts +49 -0
- package/ts/loans/addreference.js +229 -0
- package/ts/loans.d.ts +7 -7
- package/ts/loans.js +7 -7
package/package.json
CHANGED
package/ts/kyc/facematch.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ export interface faceMatchRequest {
|
|
|
8
8
|
}
|
|
9
9
|
export interface faceMatchResponse {
|
|
10
10
|
conf: string;
|
|
11
|
-
match:
|
|
11
|
+
match: boolean;
|
|
12
12
|
match_score: number;
|
|
13
|
-
to_be_reviewed:
|
|
13
|
+
to_be_reviewed: boolean;
|
|
14
14
|
customer_id: number;
|
|
15
15
|
txn_id: string;
|
|
16
16
|
}
|
package/ts/kyc/facematch.js
CHANGED
|
@@ -107,21 +107,21 @@ exports.faceMatchRequest = {
|
|
|
107
107
|
},
|
|
108
108
|
};
|
|
109
109
|
function createBasefaceMatchResponse() {
|
|
110
|
-
return { conf: "", match:
|
|
110
|
+
return { conf: "", match: false, match_score: 0, to_be_reviewed: false, customer_id: 0, txn_id: "" };
|
|
111
111
|
}
|
|
112
112
|
exports.faceMatchResponse = {
|
|
113
113
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
114
114
|
if (message.conf !== "") {
|
|
115
115
|
writer.uint32(10).string(message.conf);
|
|
116
116
|
}
|
|
117
|
-
if (message.match !==
|
|
118
|
-
writer.uint32(
|
|
117
|
+
if (message.match !== false) {
|
|
118
|
+
writer.uint32(16).bool(message.match);
|
|
119
119
|
}
|
|
120
120
|
if (message.match_score !== 0) {
|
|
121
121
|
writer.uint32(24).int32(message.match_score);
|
|
122
122
|
}
|
|
123
|
-
if (message.to_be_reviewed !==
|
|
124
|
-
writer.uint32(
|
|
123
|
+
if (message.to_be_reviewed !== false) {
|
|
124
|
+
writer.uint32(32).bool(message.to_be_reviewed);
|
|
125
125
|
}
|
|
126
126
|
if (message.customer_id !== 0) {
|
|
127
127
|
writer.uint32(40).int32(message.customer_id);
|
|
@@ -145,10 +145,10 @@ exports.faceMatchResponse = {
|
|
|
145
145
|
message.conf = reader.string();
|
|
146
146
|
continue;
|
|
147
147
|
case 2:
|
|
148
|
-
if (tag !==
|
|
148
|
+
if (tag !== 16) {
|
|
149
149
|
break;
|
|
150
150
|
}
|
|
151
|
-
message.match = reader.
|
|
151
|
+
message.match = reader.bool();
|
|
152
152
|
continue;
|
|
153
153
|
case 3:
|
|
154
154
|
if (tag !== 24) {
|
|
@@ -157,10 +157,10 @@ exports.faceMatchResponse = {
|
|
|
157
157
|
message.match_score = reader.int32();
|
|
158
158
|
continue;
|
|
159
159
|
case 4:
|
|
160
|
-
if (tag !==
|
|
160
|
+
if (tag !== 32) {
|
|
161
161
|
break;
|
|
162
162
|
}
|
|
163
|
-
message.to_be_reviewed = reader.
|
|
163
|
+
message.to_be_reviewed = reader.bool();
|
|
164
164
|
continue;
|
|
165
165
|
case 5:
|
|
166
166
|
if (tag !== 40) {
|
|
@@ -185,9 +185,9 @@ exports.faceMatchResponse = {
|
|
|
185
185
|
fromJSON(object) {
|
|
186
186
|
return {
|
|
187
187
|
conf: isSet(object.conf) ? globalThis.String(object.conf) : "",
|
|
188
|
-
match: isSet(object.match) ? globalThis.
|
|
188
|
+
match: isSet(object.match) ? globalThis.Boolean(object.match) : false,
|
|
189
189
|
match_score: isSet(object.match_score) ? globalThis.Number(object.match_score) : 0,
|
|
190
|
-
to_be_reviewed: isSet(object.to_be_reviewed) ? globalThis.
|
|
190
|
+
to_be_reviewed: isSet(object.to_be_reviewed) ? globalThis.Boolean(object.to_be_reviewed) : false,
|
|
191
191
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
192
192
|
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
|
|
193
193
|
};
|
|
@@ -197,13 +197,13 @@ exports.faceMatchResponse = {
|
|
|
197
197
|
if (message.conf !== "") {
|
|
198
198
|
obj.conf = message.conf;
|
|
199
199
|
}
|
|
200
|
-
if (message.match !==
|
|
200
|
+
if (message.match !== false) {
|
|
201
201
|
obj.match = message.match;
|
|
202
202
|
}
|
|
203
203
|
if (message.match_score !== 0) {
|
|
204
204
|
obj.match_score = Math.round(message.match_score);
|
|
205
205
|
}
|
|
206
|
-
if (message.to_be_reviewed !==
|
|
206
|
+
if (message.to_be_reviewed !== false) {
|
|
207
207
|
obj.to_be_reviewed = message.to_be_reviewed;
|
|
208
208
|
}
|
|
209
209
|
if (message.customer_id !== 0) {
|
|
@@ -220,9 +220,9 @@ exports.faceMatchResponse = {
|
|
|
220
220
|
fromPartial(object) {
|
|
221
221
|
const message = createBasefaceMatchResponse();
|
|
222
222
|
message.conf = object.conf ?? "";
|
|
223
|
-
message.match = object.match ??
|
|
223
|
+
message.match = object.match ?? false;
|
|
224
224
|
message.match_score = object.match_score ?? 0;
|
|
225
|
-
message.to_be_reviewed = object.to_be_reviewed ??
|
|
225
|
+
message.to_be_reviewed = object.to_be_reviewed ?? false;
|
|
226
226
|
message.customer_id = object.customer_id ?? 0;
|
|
227
227
|
message.txn_id = object.txn_id ?? "";
|
|
228
228
|
return message;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.addreference";
|
|
3
|
+
export interface customerReferencesRequest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
references: Reference[];
|
|
6
|
+
}
|
|
7
|
+
export interface Reference {
|
|
8
|
+
name: string;
|
|
9
|
+
mobile: string;
|
|
10
|
+
relation: string;
|
|
11
|
+
}
|
|
12
|
+
export interface customerReferencesResponse {
|
|
13
|
+
success: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const customerReferencesRequest: {
|
|
16
|
+
encode(message: customerReferencesRequest, writer?: _m0.Writer): _m0.Writer;
|
|
17
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): customerReferencesRequest;
|
|
18
|
+
fromJSON(object: any): customerReferencesRequest;
|
|
19
|
+
toJSON(message: customerReferencesRequest): unknown;
|
|
20
|
+
create<I extends Exact<DeepPartial<customerReferencesRequest>, I>>(base?: I): customerReferencesRequest;
|
|
21
|
+
fromPartial<I extends Exact<DeepPartial<customerReferencesRequest>, I>>(object: I): customerReferencesRequest;
|
|
22
|
+
};
|
|
23
|
+
export declare const Reference: {
|
|
24
|
+
encode(message: Reference, writer?: _m0.Writer): _m0.Writer;
|
|
25
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Reference;
|
|
26
|
+
fromJSON(object: any): Reference;
|
|
27
|
+
toJSON(message: Reference): unknown;
|
|
28
|
+
create<I extends Exact<DeepPartial<Reference>, I>>(base?: I): Reference;
|
|
29
|
+
fromPartial<I extends Exact<DeepPartial<Reference>, I>>(object: I): Reference;
|
|
30
|
+
};
|
|
31
|
+
export declare const customerReferencesResponse: {
|
|
32
|
+
encode(message: customerReferencesResponse, writer?: _m0.Writer): _m0.Writer;
|
|
33
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): customerReferencesResponse;
|
|
34
|
+
fromJSON(object: any): customerReferencesResponse;
|
|
35
|
+
toJSON(message: customerReferencesResponse): unknown;
|
|
36
|
+
create<I extends Exact<DeepPartial<customerReferencesResponse>, I>>(base?: I): customerReferencesResponse;
|
|
37
|
+
fromPartial<I extends Exact<DeepPartial<customerReferencesResponse>, I>>(object: I): customerReferencesResponse;
|
|
38
|
+
};
|
|
39
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
40
|
+
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 {} ? {
|
|
41
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
42
|
+
} : Partial<T>;
|
|
43
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
44
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
45
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
46
|
+
} & {
|
|
47
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
48
|
+
};
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.29.3
|
|
6
|
+
// source: loans/addreference.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.customerReferencesResponse = exports.Reference = exports.customerReferencesRequest = 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 = "loans.addreference";
|
|
16
|
+
function createBasecustomerReferencesRequest() {
|
|
17
|
+
return { customer_id: 0, references: [] };
|
|
18
|
+
}
|
|
19
|
+
exports.customerReferencesRequest = {
|
|
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
|
+
for (const v of message.references) {
|
|
25
|
+
exports.Reference.encode(v, writer.uint32(18).fork()).ldelim();
|
|
26
|
+
}
|
|
27
|
+
return writer;
|
|
28
|
+
},
|
|
29
|
+
decode(input, length) {
|
|
30
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
31
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32
|
+
const message = createBasecustomerReferencesRequest();
|
|
33
|
+
while (reader.pos < end) {
|
|
34
|
+
const tag = reader.uint32();
|
|
35
|
+
switch (tag >>> 3) {
|
|
36
|
+
case 1:
|
|
37
|
+
if (tag !== 8) {
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
message.customer_id = longToNumber(reader.int64());
|
|
41
|
+
continue;
|
|
42
|
+
case 2:
|
|
43
|
+
if (tag !== 18) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
message.references.push(exports.Reference.decode(reader, reader.uint32()));
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
reader.skipType(tag & 7);
|
|
53
|
+
}
|
|
54
|
+
return message;
|
|
55
|
+
},
|
|
56
|
+
fromJSON(object) {
|
|
57
|
+
return {
|
|
58
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
59
|
+
references: globalThis.Array.isArray(object?.references)
|
|
60
|
+
? object.references.map((e) => exports.Reference.fromJSON(e))
|
|
61
|
+
: [],
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
toJSON(message) {
|
|
65
|
+
const obj = {};
|
|
66
|
+
if (message.customer_id !== 0) {
|
|
67
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
68
|
+
}
|
|
69
|
+
if (message.references?.length) {
|
|
70
|
+
obj.references = message.references.map((e) => exports.Reference.toJSON(e));
|
|
71
|
+
}
|
|
72
|
+
return obj;
|
|
73
|
+
},
|
|
74
|
+
create(base) {
|
|
75
|
+
return exports.customerReferencesRequest.fromPartial(base ?? {});
|
|
76
|
+
},
|
|
77
|
+
fromPartial(object) {
|
|
78
|
+
const message = createBasecustomerReferencesRequest();
|
|
79
|
+
message.customer_id = object.customer_id ?? 0;
|
|
80
|
+
message.references = object.references?.map((e) => exports.Reference.fromPartial(e)) || [];
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
function createBaseReference() {
|
|
85
|
+
return { name: "", mobile: "", relation: "" };
|
|
86
|
+
}
|
|
87
|
+
exports.Reference = {
|
|
88
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
89
|
+
if (message.name !== "") {
|
|
90
|
+
writer.uint32(10).string(message.name);
|
|
91
|
+
}
|
|
92
|
+
if (message.mobile !== "") {
|
|
93
|
+
writer.uint32(18).string(message.mobile);
|
|
94
|
+
}
|
|
95
|
+
if (message.relation !== "") {
|
|
96
|
+
writer.uint32(26).string(message.relation);
|
|
97
|
+
}
|
|
98
|
+
return writer;
|
|
99
|
+
},
|
|
100
|
+
decode(input, length) {
|
|
101
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
102
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
103
|
+
const message = createBaseReference();
|
|
104
|
+
while (reader.pos < end) {
|
|
105
|
+
const tag = reader.uint32();
|
|
106
|
+
switch (tag >>> 3) {
|
|
107
|
+
case 1:
|
|
108
|
+
if (tag !== 10) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
message.name = reader.string();
|
|
112
|
+
continue;
|
|
113
|
+
case 2:
|
|
114
|
+
if (tag !== 18) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
message.mobile = reader.string();
|
|
118
|
+
continue;
|
|
119
|
+
case 3:
|
|
120
|
+
if (tag !== 26) {
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
message.relation = reader.string();
|
|
124
|
+
continue;
|
|
125
|
+
}
|
|
126
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
reader.skipType(tag & 7);
|
|
130
|
+
}
|
|
131
|
+
return message;
|
|
132
|
+
},
|
|
133
|
+
fromJSON(object) {
|
|
134
|
+
return {
|
|
135
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
136
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
137
|
+
relation: isSet(object.relation) ? globalThis.String(object.relation) : "",
|
|
138
|
+
};
|
|
139
|
+
},
|
|
140
|
+
toJSON(message) {
|
|
141
|
+
const obj = {};
|
|
142
|
+
if (message.name !== "") {
|
|
143
|
+
obj.name = message.name;
|
|
144
|
+
}
|
|
145
|
+
if (message.mobile !== "") {
|
|
146
|
+
obj.mobile = message.mobile;
|
|
147
|
+
}
|
|
148
|
+
if (message.relation !== "") {
|
|
149
|
+
obj.relation = message.relation;
|
|
150
|
+
}
|
|
151
|
+
return obj;
|
|
152
|
+
},
|
|
153
|
+
create(base) {
|
|
154
|
+
return exports.Reference.fromPartial(base ?? {});
|
|
155
|
+
},
|
|
156
|
+
fromPartial(object) {
|
|
157
|
+
const message = createBaseReference();
|
|
158
|
+
message.name = object.name ?? "";
|
|
159
|
+
message.mobile = object.mobile ?? "";
|
|
160
|
+
message.relation = object.relation ?? "";
|
|
161
|
+
return message;
|
|
162
|
+
},
|
|
163
|
+
};
|
|
164
|
+
function createBasecustomerReferencesResponse() {
|
|
165
|
+
return { success: false };
|
|
166
|
+
}
|
|
167
|
+
exports.customerReferencesResponse = {
|
|
168
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
169
|
+
if (message.success !== false) {
|
|
170
|
+
writer.uint32(8).bool(message.success);
|
|
171
|
+
}
|
|
172
|
+
return writer;
|
|
173
|
+
},
|
|
174
|
+
decode(input, length) {
|
|
175
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
176
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
177
|
+
const message = createBasecustomerReferencesResponse();
|
|
178
|
+
while (reader.pos < end) {
|
|
179
|
+
const tag = reader.uint32();
|
|
180
|
+
switch (tag >>> 3) {
|
|
181
|
+
case 1:
|
|
182
|
+
if (tag !== 8) {
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
message.success = reader.bool();
|
|
186
|
+
continue;
|
|
187
|
+
}
|
|
188
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
reader.skipType(tag & 7);
|
|
192
|
+
}
|
|
193
|
+
return message;
|
|
194
|
+
},
|
|
195
|
+
fromJSON(object) {
|
|
196
|
+
return { success: isSet(object.success) ? globalThis.Boolean(object.success) : false };
|
|
197
|
+
},
|
|
198
|
+
toJSON(message) {
|
|
199
|
+
const obj = {};
|
|
200
|
+
if (message.success !== false) {
|
|
201
|
+
obj.success = message.success;
|
|
202
|
+
}
|
|
203
|
+
return obj;
|
|
204
|
+
},
|
|
205
|
+
create(base) {
|
|
206
|
+
return exports.customerReferencesResponse.fromPartial(base ?? {});
|
|
207
|
+
},
|
|
208
|
+
fromPartial(object) {
|
|
209
|
+
const message = createBasecustomerReferencesResponse();
|
|
210
|
+
message.success = object.success ?? false;
|
|
211
|
+
return message;
|
|
212
|
+
},
|
|
213
|
+
};
|
|
214
|
+
function longToNumber(long) {
|
|
215
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
216
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
217
|
+
}
|
|
218
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
219
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
220
|
+
}
|
|
221
|
+
return long.toNumber();
|
|
222
|
+
}
|
|
223
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
224
|
+
minimal_1.default.util.Long = long_1.default;
|
|
225
|
+
minimal_1.default.configure();
|
|
226
|
+
}
|
|
227
|
+
function isSet(value) {
|
|
228
|
+
return value !== null && value !== undefined;
|
|
229
|
+
}
|
package/ts/loans.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
-
import { customerReferencesRequest, customerReferencesResponse } from "./loans/
|
|
2
|
+
import { customerReferencesRequest, customerReferencesResponse } from "./loans/addreference";
|
|
3
3
|
import { amortizationRequest, amortizationResponse } from "./loans/amortization";
|
|
4
4
|
import { approveLoanRequest, approveLoanResponse } from "./loans/approveloan";
|
|
5
5
|
import { bankListRequest, bankListResponse } from "./loans/banklist";
|
|
@@ -413,8 +413,8 @@ export declare const loansService: {
|
|
|
413
413
|
readonly responseSerialize: (value: manualPaymentAllocationResponse) => Buffer;
|
|
414
414
|
readonly responseDeserialize: (value: Buffer) => manualPaymentAllocationResponse;
|
|
415
415
|
};
|
|
416
|
-
readonly
|
|
417
|
-
readonly path: "/service.loans/
|
|
416
|
+
readonly addCustomerReference: {
|
|
417
|
+
readonly path: "/service.loans/addCustomerReference";
|
|
418
418
|
readonly requestStream: false;
|
|
419
419
|
readonly responseStream: false;
|
|
420
420
|
readonly requestSerialize: (value: customerReferencesRequest) => Buffer;
|
|
@@ -465,7 +465,7 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
465
465
|
getCBloanDetails: handleUnaryCall<getCBloanDetailsRequest, getCBloanDetailsResponse>;
|
|
466
466
|
createLamFloan: handleUnaryCall<createLamfLoanRequest, createLamfLoanResponse>;
|
|
467
467
|
manualPaymentAllocation: handleUnaryCall<manualPaymentAllocationRequest, manualPaymentAllocationResponse>;
|
|
468
|
-
|
|
468
|
+
addCustomerReference: handleUnaryCall<customerReferencesRequest, customerReferencesResponse>;
|
|
469
469
|
}
|
|
470
470
|
export interface loansClient extends Client {
|
|
471
471
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -591,9 +591,9 @@ export interface loansClient extends Client {
|
|
|
591
591
|
manualPaymentAllocation(request: manualPaymentAllocationRequest, callback: (error: ServiceError | null, response: manualPaymentAllocationResponse) => void): ClientUnaryCall;
|
|
592
592
|
manualPaymentAllocation(request: manualPaymentAllocationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: manualPaymentAllocationResponse) => void): ClientUnaryCall;
|
|
593
593
|
manualPaymentAllocation(request: manualPaymentAllocationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: manualPaymentAllocationResponse) => void): ClientUnaryCall;
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
594
|
+
addCustomerReference(request: customerReferencesRequest, callback: (error: ServiceError | null, response: customerReferencesResponse) => void): ClientUnaryCall;
|
|
595
|
+
addCustomerReference(request: customerReferencesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: customerReferencesResponse) => void): ClientUnaryCall;
|
|
596
|
+
addCustomerReference(request: customerReferencesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: customerReferencesResponse) => void): ClientUnaryCall;
|
|
597
597
|
}
|
|
598
598
|
export declare const loansClient: {
|
|
599
599
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.loansClient = exports.loansService = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
-
const
|
|
11
|
+
const addreference_1 = require("./loans/addreference");
|
|
12
12
|
const amortization_1 = require("./loans/amortization");
|
|
13
13
|
const approveloan_1 = require("./loans/approveloan");
|
|
14
14
|
const banklist_1 = require("./loans/banklist");
|
|
@@ -421,14 +421,14 @@ exports.loansService = {
|
|
|
421
421
|
responseSerialize: (value) => Buffer.from(manualpaymentallocation_1.manualPaymentAllocationResponse.encode(value).finish()),
|
|
422
422
|
responseDeserialize: (value) => manualpaymentallocation_1.manualPaymentAllocationResponse.decode(value),
|
|
423
423
|
},
|
|
424
|
-
|
|
425
|
-
path: "/service.loans/
|
|
424
|
+
addCustomerReference: {
|
|
425
|
+
path: "/service.loans/addCustomerReference",
|
|
426
426
|
requestStream: false,
|
|
427
427
|
responseStream: false,
|
|
428
|
-
requestSerialize: (value) => Buffer.from(
|
|
429
|
-
requestDeserialize: (value) =>
|
|
430
|
-
responseSerialize: (value) => Buffer.from(
|
|
431
|
-
responseDeserialize: (value) =>
|
|
428
|
+
requestSerialize: (value) => Buffer.from(addreference_1.customerReferencesRequest.encode(value).finish()),
|
|
429
|
+
requestDeserialize: (value) => addreference_1.customerReferencesRequest.decode(value),
|
|
430
|
+
responseSerialize: (value) => Buffer.from(addreference_1.customerReferencesResponse.encode(value).finish()),
|
|
431
|
+
responseDeserialize: (value) => addreference_1.customerReferencesResponse.decode(value),
|
|
432
432
|
},
|
|
433
433
|
};
|
|
434
434
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|