@stashfin/grpc 1.2.129 → 1.2.131
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/customers/getselfieetxnid.d.ts +34 -0
- package/ts/customers/getselfieetxnid.js +104 -0
- package/ts/customers/updateselfieetxn.d.ts +36 -0
- package/ts/customers/updateselfieetxn.js +133 -0
- package/ts/customers.d.ts +28 -0
- package/ts/customers.js +20 -0
- package/ts/loans/getloanbyid.d.ts +53 -0
- package/ts/loans/getloanbyid.js +393 -0
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.getselfieetxnid";
|
|
3
|
+
export interface getSelfieeTxnIdRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getSelfieeTxnIdResponse {
|
|
6
|
+
transaction_id: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const getSelfieeTxnIdRequest: {
|
|
9
|
+
encode(_: getSelfieeTxnIdRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getSelfieeTxnIdRequest;
|
|
11
|
+
fromJSON(_: any): getSelfieeTxnIdRequest;
|
|
12
|
+
toJSON(_: getSelfieeTxnIdRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<getSelfieeTxnIdRequest>, I>>(base?: I): getSelfieeTxnIdRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<getSelfieeTxnIdRequest>, I>>(_: I): getSelfieeTxnIdRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const getSelfieeTxnIdResponse: {
|
|
17
|
+
encode(message: getSelfieeTxnIdResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getSelfieeTxnIdResponse;
|
|
19
|
+
fromJSON(object: any): getSelfieeTxnIdResponse;
|
|
20
|
+
toJSON(message: getSelfieeTxnIdResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<getSelfieeTxnIdResponse>, I>>(base?: I): getSelfieeTxnIdResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<getSelfieeTxnIdResponse>, I>>(object: I): getSelfieeTxnIdResponse;
|
|
23
|
+
};
|
|
24
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25
|
+
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 {} ? {
|
|
26
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
|
+
} : Partial<T>;
|
|
28
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
29
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
30
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
31
|
+
} & {
|
|
32
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
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.27.3
|
|
6
|
+
// source: customers/getselfieetxnid.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.getSelfieeTxnIdResponse = exports.getSelfieeTxnIdRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.getselfieetxnid";
|
|
15
|
+
function createBasegetSelfieeTxnIdRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getSelfieeTxnIdRequest = {
|
|
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 = createBasegetSelfieeTxnIdRequest();
|
|
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.getSelfieeTxnIdRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetSelfieeTxnIdRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetSelfieeTxnIdResponse() {
|
|
53
|
+
return { transaction_id: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.getSelfieeTxnIdResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.transaction_id !== "") {
|
|
58
|
+
writer.uint32(10).string(message.transaction_id);
|
|
59
|
+
}
|
|
60
|
+
return writer;
|
|
61
|
+
},
|
|
62
|
+
decode(input, length) {
|
|
63
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
64
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
65
|
+
const message = createBasegetSelfieeTxnIdResponse();
|
|
66
|
+
while (reader.pos < end) {
|
|
67
|
+
const tag = reader.uint32();
|
|
68
|
+
switch (tag >>> 3) {
|
|
69
|
+
case 1:
|
|
70
|
+
if (tag !== 10) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.transaction_id = reader.string();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
reader.skipType(tag & 7);
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromJSON(object) {
|
|
84
|
+
return { transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "" };
|
|
85
|
+
},
|
|
86
|
+
toJSON(message) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
if (message.transaction_id !== "") {
|
|
89
|
+
obj.transaction_id = message.transaction_id;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.getSelfieeTxnIdResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBasegetSelfieeTxnIdResponse();
|
|
98
|
+
message.transaction_id = object.transaction_id ?? "";
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.updateselfieetxn";
|
|
3
|
+
export interface updateSelfieeTxnRequest {
|
|
4
|
+
transactionId?: string | undefined;
|
|
5
|
+
status?: string | undefined;
|
|
6
|
+
}
|
|
7
|
+
export interface updateSelfieeTxnResponse {
|
|
8
|
+
status: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const updateSelfieeTxnRequest: {
|
|
11
|
+
encode(message: updateSelfieeTxnRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateSelfieeTxnRequest;
|
|
13
|
+
fromJSON(object: any): updateSelfieeTxnRequest;
|
|
14
|
+
toJSON(message: updateSelfieeTxnRequest): unknown;
|
|
15
|
+
create<I extends Exact<DeepPartial<updateSelfieeTxnRequest>, I>>(base?: I): updateSelfieeTxnRequest;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<updateSelfieeTxnRequest>, I>>(object: I): updateSelfieeTxnRequest;
|
|
17
|
+
};
|
|
18
|
+
export declare const updateSelfieeTxnResponse: {
|
|
19
|
+
encode(message: updateSelfieeTxnResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateSelfieeTxnResponse;
|
|
21
|
+
fromJSON(object: any): updateSelfieeTxnResponse;
|
|
22
|
+
toJSON(message: updateSelfieeTxnResponse): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<updateSelfieeTxnResponse>, I>>(base?: I): updateSelfieeTxnResponse;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<updateSelfieeTxnResponse>, I>>(object: I): updateSelfieeTxnResponse;
|
|
25
|
+
};
|
|
26
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
27
|
+
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 {} ? {
|
|
28
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
29
|
+
} : Partial<T>;
|
|
30
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
31
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
32
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
33
|
+
} & {
|
|
34
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,133 @@
|
|
|
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.27.3
|
|
6
|
+
// source: customers/updateselfieetxn.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.updateSelfieeTxnResponse = exports.updateSelfieeTxnRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.updateselfieetxn";
|
|
15
|
+
function createBaseupdateSelfieeTxnRequest() {
|
|
16
|
+
return { transactionId: undefined, status: undefined };
|
|
17
|
+
}
|
|
18
|
+
exports.updateSelfieeTxnRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.transactionId !== undefined) {
|
|
21
|
+
writer.uint32(10).string(message.transactionId);
|
|
22
|
+
}
|
|
23
|
+
if (message.status !== undefined) {
|
|
24
|
+
writer.uint32(18).string(message.status);
|
|
25
|
+
}
|
|
26
|
+
return writer;
|
|
27
|
+
},
|
|
28
|
+
decode(input, length) {
|
|
29
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = createBaseupdateSelfieeTxnRequest();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
if (tag !== 10) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.transactionId = reader.string();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 18) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.status = reader.string();
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
reader.skipType(tag & 7);
|
|
52
|
+
}
|
|
53
|
+
return message;
|
|
54
|
+
},
|
|
55
|
+
fromJSON(object) {
|
|
56
|
+
return {
|
|
57
|
+
transactionId: isSet(object.transactionId) ? globalThis.String(object.transactionId) : undefined,
|
|
58
|
+
status: isSet(object.status) ? globalThis.String(object.status) : undefined,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
toJSON(message) {
|
|
62
|
+
const obj = {};
|
|
63
|
+
if (message.transactionId !== undefined) {
|
|
64
|
+
obj.transactionId = message.transactionId;
|
|
65
|
+
}
|
|
66
|
+
if (message.status !== undefined) {
|
|
67
|
+
obj.status = message.status;
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
},
|
|
71
|
+
create(base) {
|
|
72
|
+
return exports.updateSelfieeTxnRequest.fromPartial(base ?? {});
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
const message = createBaseupdateSelfieeTxnRequest();
|
|
76
|
+
message.transactionId = object.transactionId ?? undefined;
|
|
77
|
+
message.status = object.status ?? undefined;
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
function createBaseupdateSelfieeTxnResponse() {
|
|
82
|
+
return { status: false };
|
|
83
|
+
}
|
|
84
|
+
exports.updateSelfieeTxnResponse = {
|
|
85
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
+
if (message.status !== false) {
|
|
87
|
+
writer.uint32(8).bool(message.status);
|
|
88
|
+
}
|
|
89
|
+
return writer;
|
|
90
|
+
},
|
|
91
|
+
decode(input, length) {
|
|
92
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
93
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
94
|
+
const message = createBaseupdateSelfieeTxnResponse();
|
|
95
|
+
while (reader.pos < end) {
|
|
96
|
+
const tag = reader.uint32();
|
|
97
|
+
switch (tag >>> 3) {
|
|
98
|
+
case 1:
|
|
99
|
+
if (tag !== 8) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
message.status = reader.bool();
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
reader.skipType(tag & 7);
|
|
109
|
+
}
|
|
110
|
+
return message;
|
|
111
|
+
},
|
|
112
|
+
fromJSON(object) {
|
|
113
|
+
return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
|
|
114
|
+
},
|
|
115
|
+
toJSON(message) {
|
|
116
|
+
const obj = {};
|
|
117
|
+
if (message.status !== false) {
|
|
118
|
+
obj.status = message.status;
|
|
119
|
+
}
|
|
120
|
+
return obj;
|
|
121
|
+
},
|
|
122
|
+
create(base) {
|
|
123
|
+
return exports.updateSelfieeTxnResponse.fromPartial(base ?? {});
|
|
124
|
+
},
|
|
125
|
+
fromPartial(object) {
|
|
126
|
+
const message = createBaseupdateSelfieeTxnResponse();
|
|
127
|
+
message.status = object.status ?? false;
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
function isSet(value) {
|
|
132
|
+
return value !== null && value !== undefined;
|
|
133
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./cus
|
|
|
22
22
|
import { getDocumentsRequest, getDocumentsResponse } from "./customers/getdocuments";
|
|
23
23
|
import { getProfessionalInfoRequest, getProfessionalInfoResponse } from "./customers/getprofessionalinfo";
|
|
24
24
|
import { getCustomerProfileRequest, getCustomerProfileResponse } from "./customers/getprofile";
|
|
25
|
+
import { getSelfieeTxnIdRequest, getSelfieeTxnIdResponse } from "./customers/getselfieetxnid";
|
|
25
26
|
import { getAllStatesRequest, getAllStatesResponse } from "./customers/getstates";
|
|
26
27
|
import { getstepRequest, getstepResponse } from "./customers/getstep";
|
|
27
28
|
import { updateProfileBasicRequest, updateProfileBasicResponse } from "./customers/profilebasic";
|
|
@@ -41,6 +42,7 @@ import { locStatusRequest, locStatusResponse } from "./customers/updatelocstatus
|
|
|
41
42
|
import { updateMobileSendOtpRequest, updateMobileSendOtpResponse } from "./customers/updatemobilesendotp";
|
|
42
43
|
import { updateMobileVerifyOtpRequest, updateMobileVerifyOtpResponse } from "./customers/updatemobileverifyotp";
|
|
43
44
|
import { updateOkycTxnRequest, updateOkycTxnResponse } from "./customers/updateokyctxn";
|
|
45
|
+
import { updateSelfieeTxnRequest, updateSelfieeTxnResponse } from "./customers/updateselfieetxn";
|
|
44
46
|
import { validatePanRequest, validatePanResponse } from "./customers/validatepan";
|
|
45
47
|
import { verifyMpinRequest, verifyMpinResponse } from "./customers/verifympin";
|
|
46
48
|
import { verifyOtpReqeust, verifyOtpResponse } from "./customers/verifyotp";
|
|
@@ -516,6 +518,24 @@ export declare const customersService: {
|
|
|
516
518
|
readonly responseSerialize: (value: addGstNumberResponse) => Buffer;
|
|
517
519
|
readonly responseDeserialize: (value: Buffer) => addGstNumberResponse;
|
|
518
520
|
};
|
|
521
|
+
readonly getSelfieeTxnId: {
|
|
522
|
+
readonly path: "/service.customers/getSelfieeTxnId";
|
|
523
|
+
readonly requestStream: false;
|
|
524
|
+
readonly responseStream: false;
|
|
525
|
+
readonly requestSerialize: (value: getSelfieeTxnIdRequest) => Buffer;
|
|
526
|
+
readonly requestDeserialize: (value: Buffer) => getSelfieeTxnIdRequest;
|
|
527
|
+
readonly responseSerialize: (value: getSelfieeTxnIdResponse) => Buffer;
|
|
528
|
+
readonly responseDeserialize: (value: Buffer) => getSelfieeTxnIdResponse;
|
|
529
|
+
};
|
|
530
|
+
readonly updateSelfieeTxn: {
|
|
531
|
+
readonly path: "/service.customers/updateSelfieeTxn";
|
|
532
|
+
readonly requestStream: false;
|
|
533
|
+
readonly responseStream: false;
|
|
534
|
+
readonly requestSerialize: (value: updateSelfieeTxnRequest) => Buffer;
|
|
535
|
+
readonly requestDeserialize: (value: Buffer) => updateSelfieeTxnRequest;
|
|
536
|
+
readonly responseSerialize: (value: updateSelfieeTxnResponse) => Buffer;
|
|
537
|
+
readonly responseDeserialize: (value: Buffer) => updateSelfieeTxnResponse;
|
|
538
|
+
};
|
|
519
539
|
};
|
|
520
540
|
export interface customersServer extends UntypedServiceImplementation {
|
|
521
541
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -570,6 +590,8 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
570
590
|
updateMobileSendOtp: handleUnaryCall<updateMobileSendOtpRequest, updateMobileSendOtpResponse>;
|
|
571
591
|
updatemobileverifyotp: handleUnaryCall<updateMobileVerifyOtpRequest, updateMobileVerifyOtpResponse>;
|
|
572
592
|
addGstNumber: handleUnaryCall<addGstNumberRequest, addGstNumberResponse>;
|
|
593
|
+
getSelfieeTxnId: handleUnaryCall<getSelfieeTxnIdRequest, getSelfieeTxnIdResponse>;
|
|
594
|
+
updateSelfieeTxn: handleUnaryCall<updateSelfieeTxnRequest, updateSelfieeTxnResponse>;
|
|
573
595
|
}
|
|
574
596
|
export interface customersClient extends Client {
|
|
575
597
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -728,6 +750,12 @@ export interface customersClient extends Client {
|
|
|
728
750
|
addGstNumber(request: addGstNumberRequest, callback: (error: ServiceError | null, response: addGstNumberResponse) => void): ClientUnaryCall;
|
|
729
751
|
addGstNumber(request: addGstNumberRequest, metadata: Metadata, callback: (error: ServiceError | null, response: addGstNumberResponse) => void): ClientUnaryCall;
|
|
730
752
|
addGstNumber(request: addGstNumberRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: addGstNumberResponse) => void): ClientUnaryCall;
|
|
753
|
+
getSelfieeTxnId(request: getSelfieeTxnIdRequest, callback: (error: ServiceError | null, response: getSelfieeTxnIdResponse) => void): ClientUnaryCall;
|
|
754
|
+
getSelfieeTxnId(request: getSelfieeTxnIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getSelfieeTxnIdResponse) => void): ClientUnaryCall;
|
|
755
|
+
getSelfieeTxnId(request: getSelfieeTxnIdRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getSelfieeTxnIdResponse) => void): ClientUnaryCall;
|
|
756
|
+
updateSelfieeTxn(request: updateSelfieeTxnRequest, callback: (error: ServiceError | null, response: updateSelfieeTxnResponse) => void): ClientUnaryCall;
|
|
757
|
+
updateSelfieeTxn(request: updateSelfieeTxnRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateSelfieeTxnResponse) => void): ClientUnaryCall;
|
|
758
|
+
updateSelfieeTxn(request: updateSelfieeTxnRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateSelfieeTxnResponse) => void): ClientUnaryCall;
|
|
731
759
|
}
|
|
732
760
|
export declare const customersClient: {
|
|
733
761
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -31,6 +31,7 @@ const getdashboardmaincard_1 = require("./customers/getdashboardmaincard");
|
|
|
31
31
|
const getdocuments_1 = require("./customers/getdocuments");
|
|
32
32
|
const getprofessionalinfo_1 = require("./customers/getprofessionalinfo");
|
|
33
33
|
const getprofile_1 = require("./customers/getprofile");
|
|
34
|
+
const getselfieetxnid_1 = require("./customers/getselfieetxnid");
|
|
34
35
|
const getstates_1 = require("./customers/getstates");
|
|
35
36
|
const getstep_1 = require("./customers/getstep");
|
|
36
37
|
const profilebasic_1 = require("./customers/profilebasic");
|
|
@@ -50,6 +51,7 @@ const updatelocstatus_1 = require("./customers/updatelocstatus");
|
|
|
50
51
|
const updatemobilesendotp_1 = require("./customers/updatemobilesendotp");
|
|
51
52
|
const updatemobileverifyotp_1 = require("./customers/updatemobileverifyotp");
|
|
52
53
|
const updateokyctxn_1 = require("./customers/updateokyctxn");
|
|
54
|
+
const updateselfieetxn_1 = require("./customers/updateselfieetxn");
|
|
53
55
|
const validatepan_1 = require("./customers/validatepan");
|
|
54
56
|
const verifympin_1 = require("./customers/verifympin");
|
|
55
57
|
const verifyotp_1 = require("./customers/verifyotp");
|
|
@@ -524,5 +526,23 @@ exports.customersService = {
|
|
|
524
526
|
responseSerialize: (value) => Buffer.from(addgstnumber_1.addGstNumberResponse.encode(value).finish()),
|
|
525
527
|
responseDeserialize: (value) => addgstnumber_1.addGstNumberResponse.decode(value),
|
|
526
528
|
},
|
|
529
|
+
getSelfieeTxnId: {
|
|
530
|
+
path: "/service.customers/getSelfieeTxnId",
|
|
531
|
+
requestStream: false,
|
|
532
|
+
responseStream: false,
|
|
533
|
+
requestSerialize: (value) => Buffer.from(getselfieetxnid_1.getSelfieeTxnIdRequest.encode(value).finish()),
|
|
534
|
+
requestDeserialize: (value) => getselfieetxnid_1.getSelfieeTxnIdRequest.decode(value),
|
|
535
|
+
responseSerialize: (value) => Buffer.from(getselfieetxnid_1.getSelfieeTxnIdResponse.encode(value).finish()),
|
|
536
|
+
responseDeserialize: (value) => getselfieetxnid_1.getSelfieeTxnIdResponse.decode(value),
|
|
537
|
+
},
|
|
538
|
+
updateSelfieeTxn: {
|
|
539
|
+
path: "/service.customers/updateSelfieeTxn",
|
|
540
|
+
requestStream: false,
|
|
541
|
+
responseStream: false,
|
|
542
|
+
requestSerialize: (value) => Buffer.from(updateselfieetxn_1.updateSelfieeTxnRequest.encode(value).finish()),
|
|
543
|
+
requestDeserialize: (value) => updateselfieetxn_1.updateSelfieeTxnRequest.decode(value),
|
|
544
|
+
responseSerialize: (value) => Buffer.from(updateselfieetxn_1.updateSelfieeTxnResponse.encode(value).finish()),
|
|
545
|
+
responseDeserialize: (value) => updateselfieetxn_1.updateSelfieeTxnResponse.decode(value),
|
|
546
|
+
},
|
|
527
547
|
};
|
|
528
548
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.getloanbyid";
|
|
3
|
+
export interface getLoanByIdRequest {
|
|
4
|
+
loan_id: number;
|
|
5
|
+
}
|
|
6
|
+
export interface getLoanByIdResponse {
|
|
7
|
+
category: string;
|
|
8
|
+
disbursal_amount: number;
|
|
9
|
+
roi: number;
|
|
10
|
+
Loan_disbursal_date: string;
|
|
11
|
+
approved_disbursal_date: string;
|
|
12
|
+
approved_amount: number;
|
|
13
|
+
loan_status: string;
|
|
14
|
+
upfront_interest: number;
|
|
15
|
+
inst_amount: number;
|
|
16
|
+
inst_date: string;
|
|
17
|
+
tenure: number;
|
|
18
|
+
daily_roi: number;
|
|
19
|
+
approval_date: string;
|
|
20
|
+
loan_type: string;
|
|
21
|
+
sub_scheme: string;
|
|
22
|
+
loan_scheme: string;
|
|
23
|
+
program_type: string;
|
|
24
|
+
debt_burden_ratio: number;
|
|
25
|
+
processing_fee: number;
|
|
26
|
+
}
|
|
27
|
+
export declare const getLoanByIdRequest: {
|
|
28
|
+
encode(message: getLoanByIdRequest, writer?: _m0.Writer): _m0.Writer;
|
|
29
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getLoanByIdRequest;
|
|
30
|
+
fromJSON(object: any): getLoanByIdRequest;
|
|
31
|
+
toJSON(message: getLoanByIdRequest): unknown;
|
|
32
|
+
create<I extends Exact<DeepPartial<getLoanByIdRequest>, I>>(base?: I): getLoanByIdRequest;
|
|
33
|
+
fromPartial<I extends Exact<DeepPartial<getLoanByIdRequest>, I>>(object: I): getLoanByIdRequest;
|
|
34
|
+
};
|
|
35
|
+
export declare const getLoanByIdResponse: {
|
|
36
|
+
encode(message: getLoanByIdResponse, writer?: _m0.Writer): _m0.Writer;
|
|
37
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getLoanByIdResponse;
|
|
38
|
+
fromJSON(object: any): getLoanByIdResponse;
|
|
39
|
+
toJSON(message: getLoanByIdResponse): unknown;
|
|
40
|
+
create<I extends Exact<DeepPartial<getLoanByIdResponse>, I>>(base?: I): getLoanByIdResponse;
|
|
41
|
+
fromPartial<I extends Exact<DeepPartial<getLoanByIdResponse>, I>>(object: I): getLoanByIdResponse;
|
|
42
|
+
};
|
|
43
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
44
|
+
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 {} ? {
|
|
45
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
46
|
+
} : Partial<T>;
|
|
47
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
48
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
49
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
50
|
+
} & {
|
|
51
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
52
|
+
};
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,393 @@
|
|
|
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.27.3
|
|
6
|
+
// source: loans/getloanbyid.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.getLoanByIdResponse = exports.getLoanByIdRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.getloanbyid";
|
|
15
|
+
function createBasegetLoanByIdRequest() {
|
|
16
|
+
return { loan_id: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.getLoanByIdRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.loan_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.loan_id);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBasegetLoanByIdRequest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 8) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.loan_id = reader.int32();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
reader.skipType(tag & 7);
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0 };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.loan_id !== 0) {
|
|
52
|
+
obj.loan_id = Math.round(message.loan_id);
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.getLoanByIdRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBasegetLoanByIdRequest();
|
|
61
|
+
message.loan_id = object.loan_id ?? 0;
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBasegetLoanByIdResponse() {
|
|
66
|
+
return {
|
|
67
|
+
category: "",
|
|
68
|
+
disbursal_amount: 0,
|
|
69
|
+
roi: 0,
|
|
70
|
+
Loan_disbursal_date: "",
|
|
71
|
+
approved_disbursal_date: "",
|
|
72
|
+
approved_amount: 0,
|
|
73
|
+
loan_status: "",
|
|
74
|
+
upfront_interest: 0,
|
|
75
|
+
inst_amount: 0,
|
|
76
|
+
inst_date: "",
|
|
77
|
+
tenure: 0,
|
|
78
|
+
daily_roi: 0,
|
|
79
|
+
approval_date: "",
|
|
80
|
+
loan_type: "",
|
|
81
|
+
sub_scheme: "",
|
|
82
|
+
loan_scheme: "",
|
|
83
|
+
program_type: "",
|
|
84
|
+
debt_burden_ratio: 0,
|
|
85
|
+
processing_fee: 0,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
exports.getLoanByIdResponse = {
|
|
89
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
90
|
+
if (message.category !== "") {
|
|
91
|
+
writer.uint32(10).string(message.category);
|
|
92
|
+
}
|
|
93
|
+
if (message.disbursal_amount !== 0) {
|
|
94
|
+
writer.uint32(16).int32(message.disbursal_amount);
|
|
95
|
+
}
|
|
96
|
+
if (message.roi !== 0) {
|
|
97
|
+
writer.uint32(29).float(message.roi);
|
|
98
|
+
}
|
|
99
|
+
if (message.Loan_disbursal_date !== "") {
|
|
100
|
+
writer.uint32(34).string(message.Loan_disbursal_date);
|
|
101
|
+
}
|
|
102
|
+
if (message.approved_disbursal_date !== "") {
|
|
103
|
+
writer.uint32(42).string(message.approved_disbursal_date);
|
|
104
|
+
}
|
|
105
|
+
if (message.approved_amount !== 0) {
|
|
106
|
+
writer.uint32(48).int32(message.approved_amount);
|
|
107
|
+
}
|
|
108
|
+
if (message.loan_status !== "") {
|
|
109
|
+
writer.uint32(58).string(message.loan_status);
|
|
110
|
+
}
|
|
111
|
+
if (message.upfront_interest !== 0) {
|
|
112
|
+
writer.uint32(69).float(message.upfront_interest);
|
|
113
|
+
}
|
|
114
|
+
if (message.inst_amount !== 0) {
|
|
115
|
+
writer.uint32(72).int32(message.inst_amount);
|
|
116
|
+
}
|
|
117
|
+
if (message.inst_date !== "") {
|
|
118
|
+
writer.uint32(82).string(message.inst_date);
|
|
119
|
+
}
|
|
120
|
+
if (message.tenure !== 0) {
|
|
121
|
+
writer.uint32(88).int32(message.tenure);
|
|
122
|
+
}
|
|
123
|
+
if (message.daily_roi !== 0) {
|
|
124
|
+
writer.uint32(101).float(message.daily_roi);
|
|
125
|
+
}
|
|
126
|
+
if (message.approval_date !== "") {
|
|
127
|
+
writer.uint32(106).string(message.approval_date);
|
|
128
|
+
}
|
|
129
|
+
if (message.loan_type !== "") {
|
|
130
|
+
writer.uint32(114).string(message.loan_type);
|
|
131
|
+
}
|
|
132
|
+
if (message.sub_scheme !== "") {
|
|
133
|
+
writer.uint32(122).string(message.sub_scheme);
|
|
134
|
+
}
|
|
135
|
+
if (message.loan_scheme !== "") {
|
|
136
|
+
writer.uint32(130).string(message.loan_scheme);
|
|
137
|
+
}
|
|
138
|
+
if (message.program_type !== "") {
|
|
139
|
+
writer.uint32(138).string(message.program_type);
|
|
140
|
+
}
|
|
141
|
+
if (message.debt_burden_ratio !== 0) {
|
|
142
|
+
writer.uint32(149).float(message.debt_burden_ratio);
|
|
143
|
+
}
|
|
144
|
+
if (message.processing_fee !== 0) {
|
|
145
|
+
writer.uint32(152).int32(message.processing_fee);
|
|
146
|
+
}
|
|
147
|
+
return writer;
|
|
148
|
+
},
|
|
149
|
+
decode(input, length) {
|
|
150
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
151
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
152
|
+
const message = createBasegetLoanByIdResponse();
|
|
153
|
+
while (reader.pos < end) {
|
|
154
|
+
const tag = reader.uint32();
|
|
155
|
+
switch (tag >>> 3) {
|
|
156
|
+
case 1:
|
|
157
|
+
if (tag !== 10) {
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
message.category = reader.string();
|
|
161
|
+
continue;
|
|
162
|
+
case 2:
|
|
163
|
+
if (tag !== 16) {
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
message.disbursal_amount = reader.int32();
|
|
167
|
+
continue;
|
|
168
|
+
case 3:
|
|
169
|
+
if (tag !== 29) {
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
message.roi = reader.float();
|
|
173
|
+
continue;
|
|
174
|
+
case 4:
|
|
175
|
+
if (tag !== 34) {
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
message.Loan_disbursal_date = reader.string();
|
|
179
|
+
continue;
|
|
180
|
+
case 5:
|
|
181
|
+
if (tag !== 42) {
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
message.approved_disbursal_date = reader.string();
|
|
185
|
+
continue;
|
|
186
|
+
case 6:
|
|
187
|
+
if (tag !== 48) {
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
message.approved_amount = reader.int32();
|
|
191
|
+
continue;
|
|
192
|
+
case 7:
|
|
193
|
+
if (tag !== 58) {
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
message.loan_status = reader.string();
|
|
197
|
+
continue;
|
|
198
|
+
case 8:
|
|
199
|
+
if (tag !== 69) {
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
message.upfront_interest = reader.float();
|
|
203
|
+
continue;
|
|
204
|
+
case 9:
|
|
205
|
+
if (tag !== 72) {
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
message.inst_amount = reader.int32();
|
|
209
|
+
continue;
|
|
210
|
+
case 10:
|
|
211
|
+
if (tag !== 82) {
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
message.inst_date = reader.string();
|
|
215
|
+
continue;
|
|
216
|
+
case 11:
|
|
217
|
+
if (tag !== 88) {
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
message.tenure = reader.int32();
|
|
221
|
+
continue;
|
|
222
|
+
case 12:
|
|
223
|
+
if (tag !== 101) {
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
message.daily_roi = reader.float();
|
|
227
|
+
continue;
|
|
228
|
+
case 13:
|
|
229
|
+
if (tag !== 106) {
|
|
230
|
+
break;
|
|
231
|
+
}
|
|
232
|
+
message.approval_date = reader.string();
|
|
233
|
+
continue;
|
|
234
|
+
case 14:
|
|
235
|
+
if (tag !== 114) {
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
message.loan_type = reader.string();
|
|
239
|
+
continue;
|
|
240
|
+
case 15:
|
|
241
|
+
if (tag !== 122) {
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
message.sub_scheme = reader.string();
|
|
245
|
+
continue;
|
|
246
|
+
case 16:
|
|
247
|
+
if (tag !== 130) {
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
message.loan_scheme = reader.string();
|
|
251
|
+
continue;
|
|
252
|
+
case 17:
|
|
253
|
+
if (tag !== 138) {
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
message.program_type = reader.string();
|
|
257
|
+
continue;
|
|
258
|
+
case 18:
|
|
259
|
+
if (tag !== 149) {
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
message.debt_burden_ratio = reader.float();
|
|
263
|
+
continue;
|
|
264
|
+
case 19:
|
|
265
|
+
if (tag !== 152) {
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
message.processing_fee = reader.int32();
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
271
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
reader.skipType(tag & 7);
|
|
275
|
+
}
|
|
276
|
+
return message;
|
|
277
|
+
},
|
|
278
|
+
fromJSON(object) {
|
|
279
|
+
return {
|
|
280
|
+
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
281
|
+
disbursal_amount: isSet(object.disbursal_amount) ? globalThis.Number(object.disbursal_amount) : 0,
|
|
282
|
+
roi: isSet(object.roi) ? globalThis.Number(object.roi) : 0,
|
|
283
|
+
Loan_disbursal_date: isSet(object.Loan_disbursal_date) ? globalThis.String(object.Loan_disbursal_date) : "",
|
|
284
|
+
approved_disbursal_date: isSet(object.approved_disbursal_date)
|
|
285
|
+
? globalThis.String(object.approved_disbursal_date)
|
|
286
|
+
: "",
|
|
287
|
+
approved_amount: isSet(object.approved_amount) ? globalThis.Number(object.approved_amount) : 0,
|
|
288
|
+
loan_status: isSet(object.loan_status) ? globalThis.String(object.loan_status) : "",
|
|
289
|
+
upfront_interest: isSet(object.upfront_interest) ? globalThis.Number(object.upfront_interest) : 0,
|
|
290
|
+
inst_amount: isSet(object.inst_amount) ? globalThis.Number(object.inst_amount) : 0,
|
|
291
|
+
inst_date: isSet(object.inst_date) ? globalThis.String(object.inst_date) : "",
|
|
292
|
+
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
293
|
+
daily_roi: isSet(object.daily_roi) ? globalThis.Number(object.daily_roi) : 0,
|
|
294
|
+
approval_date: isSet(object.approval_date) ? globalThis.String(object.approval_date) : "",
|
|
295
|
+
loan_type: isSet(object.loan_type) ? globalThis.String(object.loan_type) : "",
|
|
296
|
+
sub_scheme: isSet(object.sub_scheme) ? globalThis.String(object.sub_scheme) : "",
|
|
297
|
+
loan_scheme: isSet(object.loan_scheme) ? globalThis.String(object.loan_scheme) : "",
|
|
298
|
+
program_type: isSet(object.program_type) ? globalThis.String(object.program_type) : "",
|
|
299
|
+
debt_burden_ratio: isSet(object.debt_burden_ratio) ? globalThis.Number(object.debt_burden_ratio) : 0,
|
|
300
|
+
processing_fee: isSet(object.processing_fee) ? globalThis.Number(object.processing_fee) : 0,
|
|
301
|
+
};
|
|
302
|
+
},
|
|
303
|
+
toJSON(message) {
|
|
304
|
+
const obj = {};
|
|
305
|
+
if (message.category !== "") {
|
|
306
|
+
obj.category = message.category;
|
|
307
|
+
}
|
|
308
|
+
if (message.disbursal_amount !== 0) {
|
|
309
|
+
obj.disbursal_amount = Math.round(message.disbursal_amount);
|
|
310
|
+
}
|
|
311
|
+
if (message.roi !== 0) {
|
|
312
|
+
obj.roi = message.roi;
|
|
313
|
+
}
|
|
314
|
+
if (message.Loan_disbursal_date !== "") {
|
|
315
|
+
obj.Loan_disbursal_date = message.Loan_disbursal_date;
|
|
316
|
+
}
|
|
317
|
+
if (message.approved_disbursal_date !== "") {
|
|
318
|
+
obj.approved_disbursal_date = message.approved_disbursal_date;
|
|
319
|
+
}
|
|
320
|
+
if (message.approved_amount !== 0) {
|
|
321
|
+
obj.approved_amount = Math.round(message.approved_amount);
|
|
322
|
+
}
|
|
323
|
+
if (message.loan_status !== "") {
|
|
324
|
+
obj.loan_status = message.loan_status;
|
|
325
|
+
}
|
|
326
|
+
if (message.upfront_interest !== 0) {
|
|
327
|
+
obj.upfront_interest = message.upfront_interest;
|
|
328
|
+
}
|
|
329
|
+
if (message.inst_amount !== 0) {
|
|
330
|
+
obj.inst_amount = Math.round(message.inst_amount);
|
|
331
|
+
}
|
|
332
|
+
if (message.inst_date !== "") {
|
|
333
|
+
obj.inst_date = message.inst_date;
|
|
334
|
+
}
|
|
335
|
+
if (message.tenure !== 0) {
|
|
336
|
+
obj.tenure = Math.round(message.tenure);
|
|
337
|
+
}
|
|
338
|
+
if (message.daily_roi !== 0) {
|
|
339
|
+
obj.daily_roi = message.daily_roi;
|
|
340
|
+
}
|
|
341
|
+
if (message.approval_date !== "") {
|
|
342
|
+
obj.approval_date = message.approval_date;
|
|
343
|
+
}
|
|
344
|
+
if (message.loan_type !== "") {
|
|
345
|
+
obj.loan_type = message.loan_type;
|
|
346
|
+
}
|
|
347
|
+
if (message.sub_scheme !== "") {
|
|
348
|
+
obj.sub_scheme = message.sub_scheme;
|
|
349
|
+
}
|
|
350
|
+
if (message.loan_scheme !== "") {
|
|
351
|
+
obj.loan_scheme = message.loan_scheme;
|
|
352
|
+
}
|
|
353
|
+
if (message.program_type !== "") {
|
|
354
|
+
obj.program_type = message.program_type;
|
|
355
|
+
}
|
|
356
|
+
if (message.debt_burden_ratio !== 0) {
|
|
357
|
+
obj.debt_burden_ratio = message.debt_burden_ratio;
|
|
358
|
+
}
|
|
359
|
+
if (message.processing_fee !== 0) {
|
|
360
|
+
obj.processing_fee = Math.round(message.processing_fee);
|
|
361
|
+
}
|
|
362
|
+
return obj;
|
|
363
|
+
},
|
|
364
|
+
create(base) {
|
|
365
|
+
return exports.getLoanByIdResponse.fromPartial(base ?? {});
|
|
366
|
+
},
|
|
367
|
+
fromPartial(object) {
|
|
368
|
+
const message = createBasegetLoanByIdResponse();
|
|
369
|
+
message.category = object.category ?? "";
|
|
370
|
+
message.disbursal_amount = object.disbursal_amount ?? 0;
|
|
371
|
+
message.roi = object.roi ?? 0;
|
|
372
|
+
message.Loan_disbursal_date = object.Loan_disbursal_date ?? "";
|
|
373
|
+
message.approved_disbursal_date = object.approved_disbursal_date ?? "";
|
|
374
|
+
message.approved_amount = object.approved_amount ?? 0;
|
|
375
|
+
message.loan_status = object.loan_status ?? "";
|
|
376
|
+
message.upfront_interest = object.upfront_interest ?? 0;
|
|
377
|
+
message.inst_amount = object.inst_amount ?? 0;
|
|
378
|
+
message.inst_date = object.inst_date ?? "";
|
|
379
|
+
message.tenure = object.tenure ?? 0;
|
|
380
|
+
message.daily_roi = object.daily_roi ?? 0;
|
|
381
|
+
message.approval_date = object.approval_date ?? "";
|
|
382
|
+
message.loan_type = object.loan_type ?? "";
|
|
383
|
+
message.sub_scheme = object.sub_scheme ?? "";
|
|
384
|
+
message.loan_scheme = object.loan_scheme ?? "";
|
|
385
|
+
message.program_type = object.program_type ?? "";
|
|
386
|
+
message.debt_burden_ratio = object.debt_burden_ratio ?? 0;
|
|
387
|
+
message.processing_fee = object.processing_fee ?? 0;
|
|
388
|
+
return message;
|
|
389
|
+
},
|
|
390
|
+
};
|
|
391
|
+
function isSet(value) {
|
|
392
|
+
return value !== null && value !== undefined;
|
|
393
|
+
}
|
package/ts/loans.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { calculateEmiRequest, calculateEmiResponse } from "./loans/calculateemi"
|
|
|
5
5
|
import { creditLimitRequest, creditLimitResponse } from "./loans/creditlimit";
|
|
6
6
|
import { futurePaymentMoreDetailsRequest, futurePaymentMoreDetailsResponse } from "./loans/futurepaymentmoredetails";
|
|
7
7
|
import { getCustomerLoanStatusRequest, getCustomerLoanStatusResponse } from "./loans/getcustomerloanstatus";
|
|
8
|
+
import { getLoanByIdRequest, getLoanByIdResponse } from "./loans/getloanbyid";
|
|
8
9
|
import { getPendingEmiAmountRequest, getPendingEmiAmountResponse } from "./loans/getpendingemiamount";
|
|
9
10
|
import { getSummaryStaticFieldsRequest, getSummaryStaticFieldsResponse } from "./loans/getsummarystaticfields";
|
|
10
11
|
import { loanSummaryRequest, loanSummaryResponse } from "./loans/loansummary";
|
|
@@ -172,6 +173,15 @@ export declare const loansService: {
|
|
|
172
173
|
readonly responseSerialize: (value: futurePaymentMoreDetailsResponse) => Buffer;
|
|
173
174
|
readonly responseDeserialize: (value: Buffer) => futurePaymentMoreDetailsResponse;
|
|
174
175
|
};
|
|
176
|
+
readonly getlLoanbyId: {
|
|
177
|
+
readonly path: "/service.loans/getlLoanbyId";
|
|
178
|
+
readonly requestStream: false;
|
|
179
|
+
readonly responseStream: false;
|
|
180
|
+
readonly requestSerialize: (value: getLoanByIdRequest) => Buffer;
|
|
181
|
+
readonly requestDeserialize: (value: Buffer) => getLoanByIdRequest;
|
|
182
|
+
readonly responseSerialize: (value: getLoanByIdResponse) => Buffer;
|
|
183
|
+
readonly responseDeserialize: (value: Buffer) => getLoanByIdResponse;
|
|
184
|
+
};
|
|
175
185
|
};
|
|
176
186
|
export interface loansServer extends UntypedServiceImplementation {
|
|
177
187
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -191,6 +201,7 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
191
201
|
getSummaryStaticFields: handleUnaryCall<getSummaryStaticFieldsRequest, getSummaryStaticFieldsResponse>;
|
|
192
202
|
paymentHistory: handleUnaryCall<paymentHistoryRequest, paymentHistoryResponse>;
|
|
193
203
|
futurePaymentMoreDetails: handleUnaryCall<futurePaymentMoreDetailsRequest, futurePaymentMoreDetailsResponse>;
|
|
204
|
+
getlLoanbyId: handleUnaryCall<getLoanByIdRequest, getLoanByIdResponse>;
|
|
194
205
|
}
|
|
195
206
|
export interface loansClient extends Client {
|
|
196
207
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -244,6 +255,9 @@ export interface loansClient extends Client {
|
|
|
244
255
|
futurePaymentMoreDetails(request: futurePaymentMoreDetailsRequest, callback: (error: ServiceError | null, response: futurePaymentMoreDetailsResponse) => void): ClientUnaryCall;
|
|
245
256
|
futurePaymentMoreDetails(request: futurePaymentMoreDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: futurePaymentMoreDetailsResponse) => void): ClientUnaryCall;
|
|
246
257
|
futurePaymentMoreDetails(request: futurePaymentMoreDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: futurePaymentMoreDetailsResponse) => void): ClientUnaryCall;
|
|
258
|
+
getlLoanbyId(request: getLoanByIdRequest, callback: (error: ServiceError | null, response: getLoanByIdResponse) => void): ClientUnaryCall;
|
|
259
|
+
getlLoanbyId(request: getLoanByIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getLoanByIdResponse) => void): ClientUnaryCall;
|
|
260
|
+
getlLoanbyId(request: getLoanByIdRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getLoanByIdResponse) => void): ClientUnaryCall;
|
|
247
261
|
}
|
|
248
262
|
export declare const loansClient: {
|
|
249
263
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -14,6 +14,7 @@ const calculateemi_1 = require("./loans/calculateemi");
|
|
|
14
14
|
const creditlimit_1 = require("./loans/creditlimit");
|
|
15
15
|
const futurepaymentmoredetails_1 = require("./loans/futurepaymentmoredetails");
|
|
16
16
|
const getcustomerloanstatus_1 = require("./loans/getcustomerloanstatus");
|
|
17
|
+
const getloanbyid_1 = require("./loans/getloanbyid");
|
|
17
18
|
const getpendingemiamount_1 = require("./loans/getpendingemiamount");
|
|
18
19
|
const getsummarystaticfields_1 = require("./loans/getsummarystaticfields");
|
|
19
20
|
const loansummary_1 = require("./loans/loansummary");
|
|
@@ -180,5 +181,14 @@ exports.loansService = {
|
|
|
180
181
|
responseSerialize: (value) => Buffer.from(futurepaymentmoredetails_1.futurePaymentMoreDetailsResponse.encode(value).finish()),
|
|
181
182
|
responseDeserialize: (value) => futurepaymentmoredetails_1.futurePaymentMoreDetailsResponse.decode(value),
|
|
182
183
|
},
|
|
184
|
+
getlLoanbyId: {
|
|
185
|
+
path: "/service.loans/getlLoanbyId",
|
|
186
|
+
requestStream: false,
|
|
187
|
+
responseStream: false,
|
|
188
|
+
requestSerialize: (value) => Buffer.from(getloanbyid_1.getLoanByIdRequest.encode(value).finish()),
|
|
189
|
+
requestDeserialize: (value) => getloanbyid_1.getLoanByIdRequest.decode(value),
|
|
190
|
+
responseSerialize: (value) => Buffer.from(getloanbyid_1.getLoanByIdResponse.encode(value).finish()),
|
|
191
|
+
responseDeserialize: (value) => getloanbyid_1.getLoanByIdResponse.decode(value),
|
|
192
|
+
},
|
|
183
193
|
};
|
|
184
194
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|