@stashfin/grpc 1.2.401 → 1.2.403
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 +2 -2
- package/ts/customers/enach/updatetxnstatus.d.ts +4 -1
- package/ts/customers/enach/updatetxnstatus.js +64 -8
- package/ts/customers/getrecommendedtag.d.ts +35 -0
- package/ts/customers/getrecommendedtag.js +134 -0
- package/ts/customers.d.ts +14 -0
- package/ts/customers.js +10 -0
- package/ts/loans/getsummarystaticfields.d.ts +3 -0
- package/ts/loans/getsummarystaticfields.js +45 -0
- package/ts/loans/getvirtualaccountnumber.d.ts +35 -0
- package/ts/{customers/verifyemail.js → loans/getvirtualaccountnumber.js} +32 -32
- package/ts/customers/getrpdlink.d.ts +0 -40
- package/ts/customers/getrpdlink.js +0 -190
- package/ts/customers/sendemailtoken.d.ts +0 -35
- package/ts/customers/sendemailtoken.js +0 -117
- package/ts/customers/skipdlrcscreen.d.ts +0 -35
- package/ts/customers/skipdlrcscreen.js +0 -117
- package/ts/customers/step1.d.ts +0 -69
- package/ts/customers/step1.js +0 -395
- package/ts/customers/step10.d.ts +0 -73
- package/ts/customers/step10.js +0 -459
- package/ts/customers/step2.d.ts +0 -68
- package/ts/customers/step2.js +0 -381
- 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/verifyemail.d.ts +0 -35
- package/ts/google/protobuf/timestamp.d.ts +0 -127
- package/ts/google/protobuf/timestamp.js +0 -97
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stashfin/grpc",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.403",
|
|
4
4
|
"description": "Grpc proto manger",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@grpc/grpc-js": "^1.10.9",
|
|
17
17
|
"@protobuf-ts/protoc": "^2.9.4",
|
|
18
|
-
"@stashfin/grpc": "^1.2.
|
|
18
|
+
"@stashfin/grpc": "^1.2.374",
|
|
19
19
|
"@types/long": "^5.0.0",
|
|
20
20
|
"long": "^5.2.3"
|
|
21
21
|
},
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "customers.enach.updatetxnstatus";
|
|
3
3
|
export interface updateTxnStatusRequest {
|
|
4
|
-
|
|
4
|
+
order_id: string;
|
|
5
5
|
status: string;
|
|
6
|
+
mode?: string | undefined;
|
|
7
|
+
customer_id?: number | undefined;
|
|
8
|
+
clint_id?: string | undefined;
|
|
6
9
|
}
|
|
7
10
|
export interface updateTxnStatusResponse {
|
|
8
11
|
status: string;
|
|
@@ -10,19 +10,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.updateTxnStatusResponse = exports.updateTxnStatusRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
13
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
15
|
exports.protobufPackage = "customers.enach.updatetxnstatus";
|
|
15
16
|
function createBaseupdateTxnStatusRequest() {
|
|
16
|
-
return {
|
|
17
|
+
return { order_id: "", status: "", mode: undefined, customer_id: undefined, clint_id: undefined };
|
|
17
18
|
}
|
|
18
19
|
exports.updateTxnStatusRequest = {
|
|
19
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.
|
|
21
|
-
writer.uint32(10).string(message.
|
|
21
|
+
if (message.order_id !== "") {
|
|
22
|
+
writer.uint32(10).string(message.order_id);
|
|
22
23
|
}
|
|
23
24
|
if (message.status !== "") {
|
|
24
25
|
writer.uint32(18).string(message.status);
|
|
25
26
|
}
|
|
27
|
+
if (message.mode !== undefined) {
|
|
28
|
+
writer.uint32(26).string(message.mode);
|
|
29
|
+
}
|
|
30
|
+
if (message.customer_id !== undefined) {
|
|
31
|
+
writer.uint32(32).int64(message.customer_id);
|
|
32
|
+
}
|
|
33
|
+
if (message.clint_id !== undefined) {
|
|
34
|
+
writer.uint32(42).string(message.clint_id);
|
|
35
|
+
}
|
|
26
36
|
return writer;
|
|
27
37
|
},
|
|
28
38
|
decode(input, length) {
|
|
@@ -36,7 +46,7 @@ exports.updateTxnStatusRequest = {
|
|
|
36
46
|
if (tag !== 10) {
|
|
37
47
|
break;
|
|
38
48
|
}
|
|
39
|
-
message.
|
|
49
|
+
message.order_id = reader.string();
|
|
40
50
|
continue;
|
|
41
51
|
case 2:
|
|
42
52
|
if (tag !== 18) {
|
|
@@ -44,6 +54,24 @@ exports.updateTxnStatusRequest = {
|
|
|
44
54
|
}
|
|
45
55
|
message.status = reader.string();
|
|
46
56
|
continue;
|
|
57
|
+
case 3:
|
|
58
|
+
if (tag !== 26) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
message.mode = reader.string();
|
|
62
|
+
continue;
|
|
63
|
+
case 4:
|
|
64
|
+
if (tag !== 32) {
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
message.customer_id = longToNumber(reader.int64());
|
|
68
|
+
continue;
|
|
69
|
+
case 5:
|
|
70
|
+
if (tag !== 42) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.clint_id = reader.string();
|
|
74
|
+
continue;
|
|
47
75
|
}
|
|
48
76
|
if ((tag & 7) === 4 || tag === 0) {
|
|
49
77
|
break;
|
|
@@ -54,18 +82,30 @@ exports.updateTxnStatusRequest = {
|
|
|
54
82
|
},
|
|
55
83
|
fromJSON(object) {
|
|
56
84
|
return {
|
|
57
|
-
|
|
85
|
+
order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
|
|
58
86
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
87
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : undefined,
|
|
88
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : undefined,
|
|
89
|
+
clint_id: isSet(object.clint_id) ? globalThis.String(object.clint_id) : undefined,
|
|
59
90
|
};
|
|
60
91
|
},
|
|
61
92
|
toJSON(message) {
|
|
62
93
|
const obj = {};
|
|
63
|
-
if (message.
|
|
64
|
-
obj.
|
|
94
|
+
if (message.order_id !== "") {
|
|
95
|
+
obj.order_id = message.order_id;
|
|
65
96
|
}
|
|
66
97
|
if (message.status !== "") {
|
|
67
98
|
obj.status = message.status;
|
|
68
99
|
}
|
|
100
|
+
if (message.mode !== undefined) {
|
|
101
|
+
obj.mode = message.mode;
|
|
102
|
+
}
|
|
103
|
+
if (message.customer_id !== undefined) {
|
|
104
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
105
|
+
}
|
|
106
|
+
if (message.clint_id !== undefined) {
|
|
107
|
+
obj.clint_id = message.clint_id;
|
|
108
|
+
}
|
|
69
109
|
return obj;
|
|
70
110
|
},
|
|
71
111
|
create(base) {
|
|
@@ -73,8 +113,11 @@ exports.updateTxnStatusRequest = {
|
|
|
73
113
|
},
|
|
74
114
|
fromPartial(object) {
|
|
75
115
|
const message = createBaseupdateTxnStatusRequest();
|
|
76
|
-
message.
|
|
116
|
+
message.order_id = object.order_id ?? "";
|
|
77
117
|
message.status = object.status ?? "";
|
|
118
|
+
message.mode = object.mode ?? undefined;
|
|
119
|
+
message.customer_id = object.customer_id ?? undefined;
|
|
120
|
+
message.clint_id = object.clint_id ?? undefined;
|
|
78
121
|
return message;
|
|
79
122
|
},
|
|
80
123
|
};
|
|
@@ -128,6 +171,19 @@ exports.updateTxnStatusResponse = {
|
|
|
128
171
|
return message;
|
|
129
172
|
},
|
|
130
173
|
};
|
|
174
|
+
function longToNumber(long) {
|
|
175
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
176
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
177
|
+
}
|
|
178
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
179
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
180
|
+
}
|
|
181
|
+
return long.toNumber();
|
|
182
|
+
}
|
|
183
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
184
|
+
minimal_1.default.util.Long = long_1.default;
|
|
185
|
+
minimal_1.default.configure();
|
|
186
|
+
}
|
|
131
187
|
function isSet(value) {
|
|
132
188
|
return value !== null && value !== undefined;
|
|
133
189
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.getrecommendedtag";
|
|
3
|
+
export interface getRecommendedTagRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getRecommendedTagResponse {
|
|
6
|
+
click_to_call: number;
|
|
7
|
+
ym_chat: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const getRecommendedTagRequest: {
|
|
10
|
+
encode(_: getRecommendedTagRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getRecommendedTagRequest;
|
|
12
|
+
fromJSON(_: any): getRecommendedTagRequest;
|
|
13
|
+
toJSON(_: getRecommendedTagRequest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<getRecommendedTagRequest>, I>>(base?: I): getRecommendedTagRequest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<getRecommendedTagRequest>, I>>(_: I): getRecommendedTagRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const getRecommendedTagResponse: {
|
|
18
|
+
encode(message: getRecommendedTagResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getRecommendedTagResponse;
|
|
20
|
+
fromJSON(object: any): getRecommendedTagResponse;
|
|
21
|
+
toJSON(message: getRecommendedTagResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<getRecommendedTagResponse>, I>>(base?: I): getRecommendedTagResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<getRecommendedTagResponse>, I>>(object: I): getRecommendedTagResponse;
|
|
24
|
+
};
|
|
25
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
|
+
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 {} ? {
|
|
27
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
28
|
+
} : Partial<T>;
|
|
29
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
30
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
31
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
32
|
+
} & {
|
|
33
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,134 @@
|
|
|
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.28.3
|
|
6
|
+
// source: customers/getrecommendedtag.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.getRecommendedTagResponse = exports.getRecommendedTagRequest = 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 = "customers.getrecommendedtag";
|
|
16
|
+
function createBasegetRecommendedTagRequest() {
|
|
17
|
+
return {};
|
|
18
|
+
}
|
|
19
|
+
exports.getRecommendedTagRequest = {
|
|
20
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
return writer;
|
|
22
|
+
},
|
|
23
|
+
decode(input, length) {
|
|
24
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
25
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
26
|
+
const message = createBasegetRecommendedTagRequest();
|
|
27
|
+
while (reader.pos < end) {
|
|
28
|
+
const tag = reader.uint32();
|
|
29
|
+
switch (tag >>> 3) {
|
|
30
|
+
}
|
|
31
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
reader.skipType(tag & 7);
|
|
35
|
+
}
|
|
36
|
+
return message;
|
|
37
|
+
},
|
|
38
|
+
fromJSON(_) {
|
|
39
|
+
return {};
|
|
40
|
+
},
|
|
41
|
+
toJSON(_) {
|
|
42
|
+
const obj = {};
|
|
43
|
+
return obj;
|
|
44
|
+
},
|
|
45
|
+
create(base) {
|
|
46
|
+
return exports.getRecommendedTagRequest.fromPartial(base ?? {});
|
|
47
|
+
},
|
|
48
|
+
fromPartial(_) {
|
|
49
|
+
const message = createBasegetRecommendedTagRequest();
|
|
50
|
+
return message;
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
function createBasegetRecommendedTagResponse() {
|
|
54
|
+
return { click_to_call: 0, ym_chat: 0 };
|
|
55
|
+
}
|
|
56
|
+
exports.getRecommendedTagResponse = {
|
|
57
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
58
|
+
if (message.click_to_call !== 0) {
|
|
59
|
+
writer.uint32(8).int64(message.click_to_call);
|
|
60
|
+
}
|
|
61
|
+
if (message.ym_chat !== 0) {
|
|
62
|
+
writer.uint32(16).int64(message.ym_chat);
|
|
63
|
+
}
|
|
64
|
+
return writer;
|
|
65
|
+
},
|
|
66
|
+
decode(input, length) {
|
|
67
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
68
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
69
|
+
const message = createBasegetRecommendedTagResponse();
|
|
70
|
+
while (reader.pos < end) {
|
|
71
|
+
const tag = reader.uint32();
|
|
72
|
+
switch (tag >>> 3) {
|
|
73
|
+
case 1:
|
|
74
|
+
if (tag !== 8) {
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
message.click_to_call = longToNumber(reader.int64());
|
|
78
|
+
continue;
|
|
79
|
+
case 2:
|
|
80
|
+
if (tag !== 16) {
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
message.ym_chat = longToNumber(reader.int64());
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
reader.skipType(tag & 7);
|
|
90
|
+
}
|
|
91
|
+
return message;
|
|
92
|
+
},
|
|
93
|
+
fromJSON(object) {
|
|
94
|
+
return {
|
|
95
|
+
click_to_call: isSet(object.click_to_call) ? globalThis.Number(object.click_to_call) : 0,
|
|
96
|
+
ym_chat: isSet(object.ym_chat) ? globalThis.Number(object.ym_chat) : 0,
|
|
97
|
+
};
|
|
98
|
+
},
|
|
99
|
+
toJSON(message) {
|
|
100
|
+
const obj = {};
|
|
101
|
+
if (message.click_to_call !== 0) {
|
|
102
|
+
obj.click_to_call = Math.round(message.click_to_call);
|
|
103
|
+
}
|
|
104
|
+
if (message.ym_chat !== 0) {
|
|
105
|
+
obj.ym_chat = Math.round(message.ym_chat);
|
|
106
|
+
}
|
|
107
|
+
return obj;
|
|
108
|
+
},
|
|
109
|
+
create(base) {
|
|
110
|
+
return exports.getRecommendedTagResponse.fromPartial(base ?? {});
|
|
111
|
+
},
|
|
112
|
+
fromPartial(object) {
|
|
113
|
+
const message = createBasegetRecommendedTagResponse();
|
|
114
|
+
message.click_to_call = object.click_to_call ?? 0;
|
|
115
|
+
message.ym_chat = object.ym_chat ?? 0;
|
|
116
|
+
return message;
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
function longToNumber(long) {
|
|
120
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
121
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
122
|
+
}
|
|
123
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
124
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
125
|
+
}
|
|
126
|
+
return long.toNumber();
|
|
127
|
+
}
|
|
128
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
129
|
+
minimal_1.default.util.Long = long_1.default;
|
|
130
|
+
minimal_1.default.configure();
|
|
131
|
+
}
|
|
132
|
+
function isSet(value) {
|
|
133
|
+
return value !== null && value !== undefined;
|
|
134
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ import { getOccupationListRequest, getOccupationListResponse } from "./customers
|
|
|
65
65
|
import { paymentOptionRequest, paymentOptionResponse } from "./customers/getpaymentoptions";
|
|
66
66
|
import { getProfessionalInfoRequest, getProfessionalInfoResponse } from "./customers/getprofessionalinfo";
|
|
67
67
|
import { getCustomerProfileRequest, getCustomerProfileResponse } from "./customers/getprofile";
|
|
68
|
+
import { getRecommendedTagRequest, getRecommendedTagResponse } from "./customers/getrecommendedtag";
|
|
68
69
|
import { getSelfieeTxnIdRequest, getSelfieeTxnIdResponse } from "./customers/getselfieetxnid";
|
|
69
70
|
import { getAllStatesRequest, getAllStatesResponse } from "./customers/getstates";
|
|
70
71
|
import { getstepRequest, getstepResponse } from "./customers/getstep";
|
|
@@ -1169,6 +1170,15 @@ export declare const customersService: {
|
|
|
1169
1170
|
readonly responseSerialize: (value: updateSanctionAmountResponse) => Buffer;
|
|
1170
1171
|
readonly responseDeserialize: (value: Buffer) => updateSanctionAmountResponse;
|
|
1171
1172
|
};
|
|
1173
|
+
readonly getRecommendedTag: {
|
|
1174
|
+
readonly path: "/service.customers/getRecommendedTag";
|
|
1175
|
+
readonly requestStream: false;
|
|
1176
|
+
readonly responseStream: false;
|
|
1177
|
+
readonly requestSerialize: (value: getRecommendedTagRequest) => Buffer;
|
|
1178
|
+
readonly requestDeserialize: (value: Buffer) => getRecommendedTagRequest;
|
|
1179
|
+
readonly responseSerialize: (value: getRecommendedTagResponse) => Buffer;
|
|
1180
|
+
readonly responseDeserialize: (value: Buffer) => getRecommendedTagResponse;
|
|
1181
|
+
};
|
|
1172
1182
|
};
|
|
1173
1183
|
export interface customersServer extends UntypedServiceImplementation {
|
|
1174
1184
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -1288,6 +1298,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
1288
1298
|
verifyLamfPledgeOtp: handleUnaryCall<verifyLamfPledgeOtpRequest, verifyLamfPledgeOtpResponse>;
|
|
1289
1299
|
updateLamfJourney: handleUnaryCall<updateLamfJourneyRequest, updateLamfJourneyResponse>;
|
|
1290
1300
|
updateSanctionAmount: handleUnaryCall<updateSanctionAmountRequest, updateSanctionAmountResponse>;
|
|
1301
|
+
getRecommendedTag: handleUnaryCall<getRecommendedTagRequest, getRecommendedTagResponse>;
|
|
1291
1302
|
}
|
|
1292
1303
|
export interface customersClient extends Client {
|
|
1293
1304
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -1641,6 +1652,9 @@ export interface customersClient extends Client {
|
|
|
1641
1652
|
updateSanctionAmount(request: updateSanctionAmountRequest, callback: (error: ServiceError | null, response: updateSanctionAmountResponse) => void): ClientUnaryCall;
|
|
1642
1653
|
updateSanctionAmount(request: updateSanctionAmountRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateSanctionAmountResponse) => void): ClientUnaryCall;
|
|
1643
1654
|
updateSanctionAmount(request: updateSanctionAmountRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateSanctionAmountResponse) => void): ClientUnaryCall;
|
|
1655
|
+
getRecommendedTag(request: getRecommendedTagRequest, callback: (error: ServiceError | null, response: getRecommendedTagResponse) => void): ClientUnaryCall;
|
|
1656
|
+
getRecommendedTag(request: getRecommendedTagRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getRecommendedTagResponse) => void): ClientUnaryCall;
|
|
1657
|
+
getRecommendedTag(request: getRecommendedTagRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getRecommendedTagResponse) => void): ClientUnaryCall;
|
|
1644
1658
|
}
|
|
1645
1659
|
export declare const customersClient: {
|
|
1646
1660
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -74,6 +74,7 @@ const getoccupationlist_1 = require("./customers/getoccupationlist");
|
|
|
74
74
|
const getpaymentoptions_1 = require("./customers/getpaymentoptions");
|
|
75
75
|
const getprofessionalinfo_1 = require("./customers/getprofessionalinfo");
|
|
76
76
|
const getprofile_1 = require("./customers/getprofile");
|
|
77
|
+
const getrecommendedtag_1 = require("./customers/getrecommendedtag");
|
|
77
78
|
const getselfieetxnid_1 = require("./customers/getselfieetxnid");
|
|
78
79
|
const getstates_1 = require("./customers/getstates");
|
|
79
80
|
const getstep_1 = require("./customers/getstep");
|
|
@@ -1177,5 +1178,14 @@ exports.customersService = {
|
|
|
1177
1178
|
responseSerialize: (value) => Buffer.from(updatesanctionamount_1.updateSanctionAmountResponse.encode(value).finish()),
|
|
1178
1179
|
responseDeserialize: (value) => updatesanctionamount_1.updateSanctionAmountResponse.decode(value),
|
|
1179
1180
|
},
|
|
1181
|
+
getRecommendedTag: {
|
|
1182
|
+
path: "/service.customers/getRecommendedTag",
|
|
1183
|
+
requestStream: false,
|
|
1184
|
+
responseStream: false,
|
|
1185
|
+
requestSerialize: (value) => Buffer.from(getrecommendedtag_1.getRecommendedTagRequest.encode(value).finish()),
|
|
1186
|
+
requestDeserialize: (value) => getrecommendedtag_1.getRecommendedTagRequest.decode(value),
|
|
1187
|
+
responseSerialize: (value) => Buffer.from(getrecommendedtag_1.getRecommendedTagResponse.encode(value).finish()),
|
|
1188
|
+
responseDeserialize: (value) => getrecommendedtag_1.getRecommendedTagResponse.decode(value),
|
|
1189
|
+
},
|
|
1180
1190
|
};
|
|
1181
1191
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
|
@@ -39,6 +39,9 @@ export interface getSummaryStaticFieldsResponse {
|
|
|
39
39
|
bill_amount_l: string;
|
|
40
40
|
credit_section: getSummaryStaticFieldsResponse_CreditSection[];
|
|
41
41
|
broken_period: getSummaryStaticFieldsResponse_BrokenPeriod | undefined;
|
|
42
|
+
financing_doc: string;
|
|
43
|
+
sanction_latter: string;
|
|
44
|
+
insaurance_tnc_url: string;
|
|
42
45
|
}
|
|
43
46
|
export interface getSummaryStaticFieldsResponse_Field {
|
|
44
47
|
title: string;
|
|
@@ -87,6 +87,9 @@ function createBasegetSummaryStaticFieldsResponse() {
|
|
|
87
87
|
bill_amount_l: "",
|
|
88
88
|
credit_section: [],
|
|
89
89
|
broken_period: undefined,
|
|
90
|
+
financing_doc: "",
|
|
91
|
+
sanction_latter: "",
|
|
92
|
+
insaurance_tnc_url: "",
|
|
90
93
|
};
|
|
91
94
|
}
|
|
92
95
|
exports.getSummaryStaticFieldsResponse = {
|
|
@@ -199,6 +202,15 @@ exports.getSummaryStaticFieldsResponse = {
|
|
|
199
202
|
if (message.broken_period !== undefined) {
|
|
200
203
|
exports.getSummaryStaticFieldsResponse_BrokenPeriod.encode(message.broken_period, writer.uint32(290).fork()).ldelim();
|
|
201
204
|
}
|
|
205
|
+
if (message.financing_doc !== "") {
|
|
206
|
+
writer.uint32(298).string(message.financing_doc);
|
|
207
|
+
}
|
|
208
|
+
if (message.sanction_latter !== "") {
|
|
209
|
+
writer.uint32(306).string(message.sanction_latter);
|
|
210
|
+
}
|
|
211
|
+
if (message.insaurance_tnc_url !== "") {
|
|
212
|
+
writer.uint32(314).string(message.insaurance_tnc_url);
|
|
213
|
+
}
|
|
202
214
|
return writer;
|
|
203
215
|
},
|
|
204
216
|
decode(input, length) {
|
|
@@ -424,6 +436,24 @@ exports.getSummaryStaticFieldsResponse = {
|
|
|
424
436
|
}
|
|
425
437
|
message.broken_period = exports.getSummaryStaticFieldsResponse_BrokenPeriod.decode(reader, reader.uint32());
|
|
426
438
|
continue;
|
|
439
|
+
case 37:
|
|
440
|
+
if (tag !== 298) {
|
|
441
|
+
break;
|
|
442
|
+
}
|
|
443
|
+
message.financing_doc = reader.string();
|
|
444
|
+
continue;
|
|
445
|
+
case 38:
|
|
446
|
+
if (tag !== 306) {
|
|
447
|
+
break;
|
|
448
|
+
}
|
|
449
|
+
message.sanction_latter = reader.string();
|
|
450
|
+
continue;
|
|
451
|
+
case 39:
|
|
452
|
+
if (tag !== 314) {
|
|
453
|
+
break;
|
|
454
|
+
}
|
|
455
|
+
message.insaurance_tnc_url = reader.string();
|
|
456
|
+
continue;
|
|
427
457
|
}
|
|
428
458
|
if ((tag & 7) === 4 || tag === 0) {
|
|
429
459
|
break;
|
|
@@ -490,6 +520,9 @@ exports.getSummaryStaticFieldsResponse = {
|
|
|
490
520
|
broken_period: isSet(object.broken_period)
|
|
491
521
|
? exports.getSummaryStaticFieldsResponse_BrokenPeriod.fromJSON(object.broken_period)
|
|
492
522
|
: undefined,
|
|
523
|
+
financing_doc: isSet(object.financing_doc) ? globalThis.String(object.financing_doc) : "",
|
|
524
|
+
sanction_latter: isSet(object.sanction_latter) ? globalThis.String(object.sanction_latter) : "",
|
|
525
|
+
insaurance_tnc_url: isSet(object.insaurance_tnc_url) ? globalThis.String(object.insaurance_tnc_url) : "",
|
|
493
526
|
};
|
|
494
527
|
},
|
|
495
528
|
toJSON(message) {
|
|
@@ -602,6 +635,15 @@ exports.getSummaryStaticFieldsResponse = {
|
|
|
602
635
|
if (message.broken_period !== undefined) {
|
|
603
636
|
obj.broken_period = exports.getSummaryStaticFieldsResponse_BrokenPeriod.toJSON(message.broken_period);
|
|
604
637
|
}
|
|
638
|
+
if (message.financing_doc !== "") {
|
|
639
|
+
obj.financing_doc = message.financing_doc;
|
|
640
|
+
}
|
|
641
|
+
if (message.sanction_latter !== "") {
|
|
642
|
+
obj.sanction_latter = message.sanction_latter;
|
|
643
|
+
}
|
|
644
|
+
if (message.insaurance_tnc_url !== "") {
|
|
645
|
+
obj.insaurance_tnc_url = message.insaurance_tnc_url;
|
|
646
|
+
}
|
|
605
647
|
return obj;
|
|
606
648
|
},
|
|
607
649
|
create(base) {
|
|
@@ -649,6 +691,9 @@ exports.getSummaryStaticFieldsResponse = {
|
|
|
649
691
|
message.broken_period = (object.broken_period !== undefined && object.broken_period !== null)
|
|
650
692
|
? exports.getSummaryStaticFieldsResponse_BrokenPeriod.fromPartial(object.broken_period)
|
|
651
693
|
: undefined;
|
|
694
|
+
message.financing_doc = object.financing_doc ?? "";
|
|
695
|
+
message.sanction_latter = object.sanction_latter ?? "";
|
|
696
|
+
message.insaurance_tnc_url = object.insaurance_tnc_url ?? "";
|
|
652
697
|
return message;
|
|
653
698
|
},
|
|
654
699
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.getvirtualaccountnumber";
|
|
3
|
+
export interface getVirtualAccountNumberRequest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
}
|
|
6
|
+
export interface getVirtualAccountNumberResponse {
|
|
7
|
+
account_number: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const getVirtualAccountNumberRequest: {
|
|
10
|
+
encode(message: getVirtualAccountNumberRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getVirtualAccountNumberRequest;
|
|
12
|
+
fromJSON(object: any): getVirtualAccountNumberRequest;
|
|
13
|
+
toJSON(message: getVirtualAccountNumberRequest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<getVirtualAccountNumberRequest>, I>>(base?: I): getVirtualAccountNumberRequest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<getVirtualAccountNumberRequest>, I>>(object: I): getVirtualAccountNumberRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const getVirtualAccountNumberResponse: {
|
|
18
|
+
encode(message: getVirtualAccountNumberResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getVirtualAccountNumberResponse;
|
|
20
|
+
fromJSON(object: any): getVirtualAccountNumberResponse;
|
|
21
|
+
toJSON(message: getVirtualAccountNumberResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<getVirtualAccountNumberResponse>, I>>(base?: I): getVirtualAccountNumberResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<getVirtualAccountNumberResponse>, I>>(object: I): getVirtualAccountNumberResponse;
|
|
24
|
+
};
|
|
25
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
|
+
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 {} ? {
|
|
27
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
28
|
+
} : Partial<T>;
|
|
29
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
30
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
31
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
32
|
+
} & {
|
|
33
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
34
|
+
};
|
|
35
|
+
export {};
|