@stashfin/grpc 1.2.349 → 1.2.351
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/getclistatus.d.ts +34 -0
- package/ts/customers/getclistatus.js +104 -0
- package/ts/customers/getcustomerbyid.d.ts +1 -1
- package/ts/customers/getcustomerbyid.js +8 -8
- package/ts/customers.d.ts +14 -0
- package/ts/customers.js +10 -0
- package/ts/loans/approveloan.d.ts +0 -1
- package/ts/loans/approveloan.js +10 -24
- package/ts/loans/cbloan.d.ts +0 -1
- package/ts/loans/cbloan.js +20 -35
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.getclistatus";
|
|
3
|
+
export interface getCliStatusRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getCliStatusResponse {
|
|
6
|
+
status: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const getCliStatusRequest: {
|
|
9
|
+
encode(_: getCliStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCliStatusRequest;
|
|
11
|
+
fromJSON(_: any): getCliStatusRequest;
|
|
12
|
+
toJSON(_: getCliStatusRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<getCliStatusRequest>, I>>(base?: I): getCliStatusRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<getCliStatusRequest>, I>>(_: I): getCliStatusRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const getCliStatusResponse: {
|
|
17
|
+
encode(message: getCliStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCliStatusResponse;
|
|
19
|
+
fromJSON(object: any): getCliStatusResponse;
|
|
20
|
+
toJSON(message: getCliStatusResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<getCliStatusResponse>, I>>(base?: I): getCliStatusResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<getCliStatusResponse>, I>>(object: I): getCliStatusResponse;
|
|
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.28.2
|
|
6
|
+
// source: customers/getclistatus.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.getCliStatusResponse = exports.getCliStatusRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.getclistatus";
|
|
15
|
+
function createBasegetCliStatusRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getCliStatusRequest = {
|
|
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 = createBasegetCliStatusRequest();
|
|
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.getCliStatusRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetCliStatusRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetCliStatusResponse() {
|
|
53
|
+
return { status: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.getCliStatusResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.status !== "") {
|
|
58
|
+
writer.uint32(10).string(message.status);
|
|
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 = createBasegetCliStatusResponse();
|
|
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.status = 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 { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
85
|
+
},
|
|
86
|
+
toJSON(message) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
if (message.status !== "") {
|
|
89
|
+
obj.status = message.status;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.getCliStatusResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBasegetCliStatusResponse();
|
|
98
|
+
message.status = object.status ?? "";
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
|
@@ -74,7 +74,7 @@ export interface getCustomerByIdResponse {
|
|
|
74
74
|
nsdl_dob_matched?: number | undefined;
|
|
75
75
|
okyc_dob?: string | undefined;
|
|
76
76
|
dob_attempts?: number | undefined;
|
|
77
|
-
|
|
77
|
+
cli_enabled?: number | undefined;
|
|
78
78
|
has_imps?: number | undefined;
|
|
79
79
|
journey_inactive?: number | undefined;
|
|
80
80
|
repeat_journey?: number | undefined;
|
|
@@ -135,7 +135,7 @@ function createBasegetCustomerByIdResponse() {
|
|
|
135
135
|
nsdl_dob_matched: undefined,
|
|
136
136
|
okyc_dob: undefined,
|
|
137
137
|
dob_attempts: undefined,
|
|
138
|
-
|
|
138
|
+
cli_enabled: undefined,
|
|
139
139
|
has_imps: undefined,
|
|
140
140
|
journey_inactive: undefined,
|
|
141
141
|
repeat_journey: undefined,
|
|
@@ -363,8 +363,8 @@ exports.getCustomerByIdResponse = {
|
|
|
363
363
|
if (message.dob_attempts !== undefined) {
|
|
364
364
|
writer.uint32(568).int32(message.dob_attempts);
|
|
365
365
|
}
|
|
366
|
-
if (message.
|
|
367
|
-
writer.uint32(576).int32(message.
|
|
366
|
+
if (message.cli_enabled !== undefined) {
|
|
367
|
+
writer.uint32(576).int32(message.cli_enabled);
|
|
368
368
|
}
|
|
369
369
|
if (message.has_imps !== undefined) {
|
|
370
370
|
writer.uint32(584).int32(message.has_imps);
|
|
@@ -838,7 +838,7 @@ exports.getCustomerByIdResponse = {
|
|
|
838
838
|
if (tag !== 576) {
|
|
839
839
|
break;
|
|
840
840
|
}
|
|
841
|
-
message.
|
|
841
|
+
message.cli_enabled = reader.int32();
|
|
842
842
|
continue;
|
|
843
843
|
case 73:
|
|
844
844
|
if (tag !== 584) {
|
|
@@ -998,7 +998,7 @@ exports.getCustomerByIdResponse = {
|
|
|
998
998
|
nsdl_dob_matched: isSet(object.nsdl_dob_matched) ? globalThis.Number(object.nsdl_dob_matched) : undefined,
|
|
999
999
|
okyc_dob: isSet(object.okyc_dob) ? globalThis.String(object.okyc_dob) : undefined,
|
|
1000
1000
|
dob_attempts: isSet(object.dob_attempts) ? globalThis.Number(object.dob_attempts) : undefined,
|
|
1001
|
-
|
|
1001
|
+
cli_enabled: isSet(object.cli_enabled) ? globalThis.Number(object.cli_enabled) : undefined,
|
|
1002
1002
|
has_imps: isSet(object.has_imps) ? globalThis.Number(object.has_imps) : undefined,
|
|
1003
1003
|
journey_inactive: isSet(object.journey_inactive) ? globalThis.Number(object.journey_inactive) : undefined,
|
|
1004
1004
|
repeat_journey: isSet(object.repeat_journey) ? globalThis.Number(object.repeat_journey) : undefined,
|
|
@@ -1226,8 +1226,8 @@ exports.getCustomerByIdResponse = {
|
|
|
1226
1226
|
if (message.dob_attempts !== undefined) {
|
|
1227
1227
|
obj.dob_attempts = Math.round(message.dob_attempts);
|
|
1228
1228
|
}
|
|
1229
|
-
if (message.
|
|
1230
|
-
obj.
|
|
1229
|
+
if (message.cli_enabled !== undefined) {
|
|
1230
|
+
obj.cli_enabled = Math.round(message.cli_enabled);
|
|
1231
1231
|
}
|
|
1232
1232
|
if (message.has_imps !== undefined) {
|
|
1233
1233
|
obj.has_imps = Math.round(message.has_imps);
|
|
@@ -1353,7 +1353,7 @@ exports.getCustomerByIdResponse = {
|
|
|
1353
1353
|
message.nsdl_dob_matched = object.nsdl_dob_matched ?? undefined;
|
|
1354
1354
|
message.okyc_dob = object.okyc_dob ?? undefined;
|
|
1355
1355
|
message.dob_attempts = object.dob_attempts ?? undefined;
|
|
1356
|
-
message.
|
|
1356
|
+
message.cli_enabled = object.cli_enabled ?? undefined;
|
|
1357
1357
|
message.has_imps = object.has_imps ?? undefined;
|
|
1358
1358
|
message.journey_inactive = object.journey_inactive ?? undefined;
|
|
1359
1359
|
message.repeat_journey = object.repeat_journey ?? undefined;
|
package/ts/customers.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ import { getAppSubmittedRequest, getAppSubmittedResponse } from "./customers/get
|
|
|
45
45
|
import { getBankAccountDetailsRequest, getBankAccountDetailsResponse } from "./customers/getbankaccountdetails";
|
|
46
46
|
import { getBasicInfoRequest, getBasicInfoResponse } from "./customers/getbasicinfo";
|
|
47
47
|
import { getCitiesRequest, getCitiesResponse } from "./customers/getcities";
|
|
48
|
+
import { getCliStatusRequest, getCliStatusResponse } from "./customers/getclistatus";
|
|
48
49
|
import { getCompanyAccDetailsRequest, getCompanyAccDetailsResponse } from "./customers/getcompanyaccdetails";
|
|
49
50
|
import { getCustomerByIdRequest, getCustomerByIdResponse } from "./customers/getcustomerbyid";
|
|
50
51
|
import { getCustomerDetailsRequest, getCustomerDetailsResponse } from "./customers/getcustomerdetailsbymobile";
|
|
@@ -1009,6 +1010,15 @@ export declare const customersService: {
|
|
|
1009
1010
|
readonly responseSerialize: (value: updateAdditionalVerificationResponse) => Buffer;
|
|
1010
1011
|
readonly responseDeserialize: (value: Buffer) => updateAdditionalVerificationResponse;
|
|
1011
1012
|
};
|
|
1013
|
+
readonly getCliStatus: {
|
|
1014
|
+
readonly path: "/service.customers/getCliStatus";
|
|
1015
|
+
readonly requestStream: false;
|
|
1016
|
+
readonly responseStream: false;
|
|
1017
|
+
readonly requestSerialize: (value: getCliStatusRequest) => Buffer;
|
|
1018
|
+
readonly requestDeserialize: (value: Buffer) => getCliStatusRequest;
|
|
1019
|
+
readonly responseSerialize: (value: getCliStatusResponse) => Buffer;
|
|
1020
|
+
readonly responseDeserialize: (value: Buffer) => getCliStatusResponse;
|
|
1021
|
+
};
|
|
1012
1022
|
};
|
|
1013
1023
|
export interface customersServer extends UntypedServiceImplementation {
|
|
1014
1024
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -1112,6 +1122,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
1112
1122
|
getCustomerDetailsbyMobile: handleUnaryCall<getCustomerDetailsRequest, getCustomerDetailsResponse>;
|
|
1113
1123
|
getLocLimit: handleUnaryCall<getLocLimitRequest, getLocLimitResponse>;
|
|
1114
1124
|
updateAdditionalVerification: handleUnaryCall<updateAdditionalVerificationRequest, updateAdditionalVerificationResponse>;
|
|
1125
|
+
getCliStatus: handleUnaryCall<getCliStatusRequest, getCliStatusResponse>;
|
|
1115
1126
|
}
|
|
1116
1127
|
export interface customersClient extends Client {
|
|
1117
1128
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -1417,6 +1428,9 @@ export interface customersClient extends Client {
|
|
|
1417
1428
|
updateAdditionalVerification(request: updateAdditionalVerificationRequest, callback: (error: ServiceError | null, response: updateAdditionalVerificationResponse) => void): ClientUnaryCall;
|
|
1418
1429
|
updateAdditionalVerification(request: updateAdditionalVerificationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateAdditionalVerificationResponse) => void): ClientUnaryCall;
|
|
1419
1430
|
updateAdditionalVerification(request: updateAdditionalVerificationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateAdditionalVerificationResponse) => void): ClientUnaryCall;
|
|
1431
|
+
getCliStatus(request: getCliStatusRequest, callback: (error: ServiceError | null, response: getCliStatusResponse) => void): ClientUnaryCall;
|
|
1432
|
+
getCliStatus(request: getCliStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCliStatusResponse) => void): ClientUnaryCall;
|
|
1433
|
+
getCliStatus(request: getCliStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCliStatusResponse) => void): ClientUnaryCall;
|
|
1420
1434
|
}
|
|
1421
1435
|
export declare const customersClient: {
|
|
1422
1436
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -54,6 +54,7 @@ const getappsubmittedscreen_1 = require("./customers/getappsubmittedscreen");
|
|
|
54
54
|
const getbankaccountdetails_1 = require("./customers/getbankaccountdetails");
|
|
55
55
|
const getbasicinfo_1 = require("./customers/getbasicinfo");
|
|
56
56
|
const getcities_1 = require("./customers/getcities");
|
|
57
|
+
const getclistatus_1 = require("./customers/getclistatus");
|
|
57
58
|
const getcompanyaccdetails_1 = require("./customers/getcompanyaccdetails");
|
|
58
59
|
const getcustomerbyid_1 = require("./customers/getcustomerbyid");
|
|
59
60
|
const getcustomerdetailsbymobile_1 = require("./customers/getcustomerdetailsbymobile");
|
|
@@ -1017,5 +1018,14 @@ exports.customersService = {
|
|
|
1017
1018
|
responseSerialize: (value) => Buffer.from(updateadditionalverification_1.updateAdditionalVerificationResponse.encode(value).finish()),
|
|
1018
1019
|
responseDeserialize: (value) => updateadditionalverification_1.updateAdditionalVerificationResponse.decode(value),
|
|
1019
1020
|
},
|
|
1021
|
+
getCliStatus: {
|
|
1022
|
+
path: "/service.customers/getCliStatus",
|
|
1023
|
+
requestStream: false,
|
|
1024
|
+
responseStream: false,
|
|
1025
|
+
requestSerialize: (value) => Buffer.from(getclistatus_1.getCliStatusRequest.encode(value).finish()),
|
|
1026
|
+
requestDeserialize: (value) => getclistatus_1.getCliStatusRequest.decode(value),
|
|
1027
|
+
responseSerialize: (value) => Buffer.from(getclistatus_1.getCliStatusResponse.encode(value).finish()),
|
|
1028
|
+
responseDeserialize: (value) => getclistatus_1.getCliStatusResponse.decode(value),
|
|
1029
|
+
},
|
|
1020
1030
|
};
|
|
1021
1031
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
package/ts/loans/approveloan.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.approveLoanResponse = exports.approveLoanRequest_Field = exports.approve
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.approveloan";
|
|
15
15
|
function createBaseapproveLoanRequest() {
|
|
16
|
-
return { bank_id: 0, amount: 0, tenure: 0,
|
|
16
|
+
return { bank_id: 0, amount: 0, tenure: 0, ip: "", addonsData: [], latitude: 0, longitude: 0 };
|
|
17
17
|
}
|
|
18
18
|
exports.approveLoanRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -26,20 +26,17 @@ exports.approveLoanRequest = {
|
|
|
26
26
|
if (message.tenure !== 0) {
|
|
27
27
|
writer.uint32(24).int32(message.tenure);
|
|
28
28
|
}
|
|
29
|
-
if (message.customer_id !== 0) {
|
|
30
|
-
writer.uint32(32).int32(message.customer_id);
|
|
31
|
-
}
|
|
32
29
|
if (message.ip !== "") {
|
|
33
|
-
writer.uint32(
|
|
30
|
+
writer.uint32(34).string(message.ip);
|
|
34
31
|
}
|
|
35
32
|
for (const v of message.addonsData) {
|
|
36
|
-
exports.approveLoanRequest_Field.encode(v, writer.uint32(
|
|
33
|
+
exports.approveLoanRequest_Field.encode(v, writer.uint32(42).fork()).ldelim();
|
|
37
34
|
}
|
|
38
35
|
if (message.latitude !== 0) {
|
|
39
|
-
writer.uint32(
|
|
36
|
+
writer.uint32(53).float(message.latitude);
|
|
40
37
|
}
|
|
41
38
|
if (message.longitude !== 0) {
|
|
42
|
-
writer.uint32(
|
|
39
|
+
writer.uint32(61).float(message.longitude);
|
|
43
40
|
}
|
|
44
41
|
return writer;
|
|
45
42
|
},
|
|
@@ -69,33 +66,27 @@ exports.approveLoanRequest = {
|
|
|
69
66
|
message.tenure = reader.int32();
|
|
70
67
|
continue;
|
|
71
68
|
case 4:
|
|
72
|
-
if (tag !==
|
|
69
|
+
if (tag !== 34) {
|
|
73
70
|
break;
|
|
74
71
|
}
|
|
75
|
-
message.
|
|
72
|
+
message.ip = reader.string();
|
|
76
73
|
continue;
|
|
77
74
|
case 5:
|
|
78
75
|
if (tag !== 42) {
|
|
79
76
|
break;
|
|
80
77
|
}
|
|
81
|
-
message.
|
|
78
|
+
message.addonsData.push(exports.approveLoanRequest_Field.decode(reader, reader.uint32()));
|
|
82
79
|
continue;
|
|
83
80
|
case 6:
|
|
84
|
-
if (tag !==
|
|
81
|
+
if (tag !== 53) {
|
|
85
82
|
break;
|
|
86
83
|
}
|
|
87
|
-
message.
|
|
84
|
+
message.latitude = reader.float();
|
|
88
85
|
continue;
|
|
89
86
|
case 7:
|
|
90
87
|
if (tag !== 61) {
|
|
91
88
|
break;
|
|
92
89
|
}
|
|
93
|
-
message.latitude = reader.float();
|
|
94
|
-
continue;
|
|
95
|
-
case 8:
|
|
96
|
-
if (tag !== 69) {
|
|
97
|
-
break;
|
|
98
|
-
}
|
|
99
90
|
message.longitude = reader.float();
|
|
100
91
|
continue;
|
|
101
92
|
}
|
|
@@ -111,7 +102,6 @@ exports.approveLoanRequest = {
|
|
|
111
102
|
bank_id: isSet(object.bank_id) ? globalThis.Number(object.bank_id) : 0,
|
|
112
103
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
113
104
|
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
114
|
-
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
115
105
|
ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
|
|
116
106
|
addonsData: globalThis.Array.isArray(object?.addonsData)
|
|
117
107
|
? object.addonsData.map((e) => exports.approveLoanRequest_Field.fromJSON(e))
|
|
@@ -131,9 +121,6 @@ exports.approveLoanRequest = {
|
|
|
131
121
|
if (message.tenure !== 0) {
|
|
132
122
|
obj.tenure = Math.round(message.tenure);
|
|
133
123
|
}
|
|
134
|
-
if (message.customer_id !== 0) {
|
|
135
|
-
obj.customer_id = Math.round(message.customer_id);
|
|
136
|
-
}
|
|
137
124
|
if (message.ip !== "") {
|
|
138
125
|
obj.ip = message.ip;
|
|
139
126
|
}
|
|
@@ -156,7 +143,6 @@ exports.approveLoanRequest = {
|
|
|
156
143
|
message.bank_id = object.bank_id ?? 0;
|
|
157
144
|
message.amount = object.amount ?? 0;
|
|
158
145
|
message.tenure = object.tenure ?? 0;
|
|
159
|
-
message.customer_id = object.customer_id ?? 0;
|
|
160
146
|
message.ip = object.ip ?? "";
|
|
161
147
|
message.addonsData = object.addonsData?.map((e) => exports.approveLoanRequest_Field.fromPartial(e)) || [];
|
|
162
148
|
message.latitude = object.latitude ?? 0;
|
package/ts/loans/cbloan.d.ts
CHANGED
package/ts/loans/cbloan.js
CHANGED
|
@@ -16,7 +16,6 @@ function createBasecbLoanRequest() {
|
|
|
16
16
|
return {
|
|
17
17
|
bank_id: 0,
|
|
18
18
|
amount: 0,
|
|
19
|
-
customer_id: 0,
|
|
20
19
|
ip: "",
|
|
21
20
|
latitude: 0,
|
|
22
21
|
longitude: 0,
|
|
@@ -36,35 +35,32 @@ exports.cbLoanRequest = {
|
|
|
36
35
|
if (message.amount !== 0) {
|
|
37
36
|
writer.uint32(16).int32(message.amount);
|
|
38
37
|
}
|
|
39
|
-
if (message.customer_id !== 0) {
|
|
40
|
-
writer.uint32(24).int32(message.customer_id);
|
|
41
|
-
}
|
|
42
38
|
if (message.ip !== "") {
|
|
43
|
-
writer.uint32(
|
|
39
|
+
writer.uint32(26).string(message.ip);
|
|
44
40
|
}
|
|
45
41
|
if (message.latitude !== 0) {
|
|
46
|
-
writer.uint32(
|
|
42
|
+
writer.uint32(37).float(message.latitude);
|
|
47
43
|
}
|
|
48
44
|
if (message.longitude !== 0) {
|
|
49
|
-
writer.uint32(
|
|
45
|
+
writer.uint32(45).float(message.longitude);
|
|
50
46
|
}
|
|
51
47
|
if (message.builder_fee !== 0) {
|
|
52
|
-
writer.uint32(
|
|
48
|
+
writer.uint32(48).int32(message.builder_fee);
|
|
53
49
|
}
|
|
54
50
|
if (message.gst !== 0) {
|
|
55
|
-
writer.uint32(
|
|
51
|
+
writer.uint32(56).int32(message.gst);
|
|
56
52
|
}
|
|
57
53
|
if (message.first_emi !== 0) {
|
|
58
|
-
writer.uint32(
|
|
54
|
+
writer.uint32(64).int32(message.first_emi);
|
|
59
55
|
}
|
|
60
56
|
if (message.insurance_worth !== 0) {
|
|
61
|
-
writer.uint32(
|
|
57
|
+
writer.uint32(72).int32(message.insurance_worth);
|
|
62
58
|
}
|
|
63
59
|
if (message.credit_report !== 0) {
|
|
64
|
-
writer.uint32(
|
|
60
|
+
writer.uint32(80).int32(message.credit_report);
|
|
65
61
|
}
|
|
66
62
|
if (message.total_amount !== 0) {
|
|
67
|
-
writer.uint32(
|
|
63
|
+
writer.uint32(88).int32(message.total_amount);
|
|
68
64
|
}
|
|
69
65
|
return writer;
|
|
70
66
|
},
|
|
@@ -88,63 +84,57 @@ exports.cbLoanRequest = {
|
|
|
88
84
|
message.amount = reader.int32();
|
|
89
85
|
continue;
|
|
90
86
|
case 3:
|
|
91
|
-
if (tag !==
|
|
87
|
+
if (tag !== 26) {
|
|
92
88
|
break;
|
|
93
89
|
}
|
|
94
|
-
message.
|
|
90
|
+
message.ip = reader.string();
|
|
95
91
|
continue;
|
|
96
92
|
case 4:
|
|
97
|
-
if (tag !==
|
|
93
|
+
if (tag !== 37) {
|
|
98
94
|
break;
|
|
99
95
|
}
|
|
100
|
-
message.
|
|
96
|
+
message.latitude = reader.float();
|
|
101
97
|
continue;
|
|
102
98
|
case 5:
|
|
103
99
|
if (tag !== 45) {
|
|
104
100
|
break;
|
|
105
101
|
}
|
|
106
|
-
message.
|
|
102
|
+
message.longitude = reader.float();
|
|
107
103
|
continue;
|
|
108
104
|
case 6:
|
|
109
|
-
if (tag !==
|
|
105
|
+
if (tag !== 48) {
|
|
110
106
|
break;
|
|
111
107
|
}
|
|
112
|
-
message.
|
|
108
|
+
message.builder_fee = reader.int32();
|
|
113
109
|
continue;
|
|
114
110
|
case 7:
|
|
115
111
|
if (tag !== 56) {
|
|
116
112
|
break;
|
|
117
113
|
}
|
|
118
|
-
message.
|
|
114
|
+
message.gst = reader.int32();
|
|
119
115
|
continue;
|
|
120
116
|
case 8:
|
|
121
117
|
if (tag !== 64) {
|
|
122
118
|
break;
|
|
123
119
|
}
|
|
124
|
-
message.
|
|
120
|
+
message.first_emi = reader.int32();
|
|
125
121
|
continue;
|
|
126
122
|
case 9:
|
|
127
123
|
if (tag !== 72) {
|
|
128
124
|
break;
|
|
129
125
|
}
|
|
130
|
-
message.
|
|
126
|
+
message.insurance_worth = reader.int32();
|
|
131
127
|
continue;
|
|
132
128
|
case 10:
|
|
133
129
|
if (tag !== 80) {
|
|
134
130
|
break;
|
|
135
131
|
}
|
|
136
|
-
message.
|
|
132
|
+
message.credit_report = reader.int32();
|
|
137
133
|
continue;
|
|
138
134
|
case 11:
|
|
139
135
|
if (tag !== 88) {
|
|
140
136
|
break;
|
|
141
137
|
}
|
|
142
|
-
message.credit_report = reader.int32();
|
|
143
|
-
continue;
|
|
144
|
-
case 12:
|
|
145
|
-
if (tag !== 96) {
|
|
146
|
-
break;
|
|
147
|
-
}
|
|
148
138
|
message.total_amount = reader.int32();
|
|
149
139
|
continue;
|
|
150
140
|
}
|
|
@@ -159,7 +149,6 @@ exports.cbLoanRequest = {
|
|
|
159
149
|
return {
|
|
160
150
|
bank_id: isSet(object.bank_id) ? globalThis.Number(object.bank_id) : 0,
|
|
161
151
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
162
|
-
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
163
152
|
ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
|
|
164
153
|
latitude: isSet(object.latitude) ? globalThis.Number(object.latitude) : 0,
|
|
165
154
|
longitude: isSet(object.longitude) ? globalThis.Number(object.longitude) : 0,
|
|
@@ -179,9 +168,6 @@ exports.cbLoanRequest = {
|
|
|
179
168
|
if (message.amount !== 0) {
|
|
180
169
|
obj.amount = Math.round(message.amount);
|
|
181
170
|
}
|
|
182
|
-
if (message.customer_id !== 0) {
|
|
183
|
-
obj.customer_id = Math.round(message.customer_id);
|
|
184
|
-
}
|
|
185
171
|
if (message.ip !== "") {
|
|
186
172
|
obj.ip = message.ip;
|
|
187
173
|
}
|
|
@@ -218,7 +204,6 @@ exports.cbLoanRequest = {
|
|
|
218
204
|
const message = createBasecbLoanRequest();
|
|
219
205
|
message.bank_id = object.bank_id ?? 0;
|
|
220
206
|
message.amount = object.amount ?? 0;
|
|
221
|
-
message.customer_id = object.customer_id ?? 0;
|
|
222
207
|
message.ip = object.ip ?? "";
|
|
223
208
|
message.latitude = object.latitude ?? 0;
|
|
224
209
|
message.longitude = object.longitude ?? 0;
|