@stashfin/grpc 1.2.731 → 1.2.733
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/eqxcustomer.d.ts +14 -0
- package/ts/eqxcustomer.js +10 -0
- package/ts/eqxcustomers/gettnc.d.ts +49 -0
- package/ts/eqxcustomers/gettnc.js +214 -0
- package/ts/loans/getlocdetails.d.ts +0 -24
- package/ts/loans/getlocdetails.js +3 -254
- package/ts/loans/getlocdisburse.d.ts +0 -3
- package/ts/loans/getlocdisburse.js +2 -46
package/package.json
CHANGED
package/ts/eqxcustomer.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./eqx
|
|
|
9
9
|
import { getLoanPlansRequest, getLoanPlansResponse } from "./eqxcustomers/getloanplans";
|
|
10
10
|
import { getNotificationsRequest, getNotificationsResponse } from "./eqxcustomers/getnotifications";
|
|
11
11
|
import { getStashScoreProfileByIdRequest, getStashScoreProfileByIdResponse } from "./eqxcustomers/getstashscorecustomerprofile";
|
|
12
|
+
import { getTnCRequest, getTnCResponse } from "./eqxcustomers/gettnc";
|
|
12
13
|
import { getTokensRequest, getTokensResponse } from "./eqxcustomers/gettokens";
|
|
13
14
|
import { isCustomerRegisteredRequest, isCustomerRegisteredResponse } from "./eqxcustomers/iscustomerregistered";
|
|
14
15
|
import { sendOtpRequest, sendOtpResponse } from "./eqxcustomers/sendotp";
|
|
@@ -192,6 +193,15 @@ export declare const eqxcustomersService: {
|
|
|
192
193
|
readonly responseSerialize: (value: getLoanPlansResponse) => Buffer;
|
|
193
194
|
readonly responseDeserialize: (value: Buffer) => getLoanPlansResponse;
|
|
194
195
|
};
|
|
196
|
+
readonly getTnC: {
|
|
197
|
+
readonly path: "/service.eqxcustomers/getTnC";
|
|
198
|
+
readonly requestStream: false;
|
|
199
|
+
readonly responseStream: false;
|
|
200
|
+
readonly requestSerialize: (value: getTnCRequest) => Buffer;
|
|
201
|
+
readonly requestDeserialize: (value: Buffer) => getTnCRequest;
|
|
202
|
+
readonly responseSerialize: (value: getTnCResponse) => Buffer;
|
|
203
|
+
readonly responseDeserialize: (value: Buffer) => getTnCResponse;
|
|
204
|
+
};
|
|
195
205
|
};
|
|
196
206
|
export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
197
207
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpResponse>;
|
|
@@ -213,6 +223,7 @@ export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
|
213
223
|
updateSubscriptionStatus: handleUnaryCall<updateSubscriptionStatusRequest, updateSubscriptionStatusResponse>;
|
|
214
224
|
isCustomerRegistered: handleUnaryCall<isCustomerRegisteredRequest, isCustomerRegisteredResponse>;
|
|
215
225
|
getLoanPlans: handleUnaryCall<getLoanPlansRequest, getLoanPlansResponse>;
|
|
226
|
+
getTnC: handleUnaryCall<getTnCRequest, getTnCResponse>;
|
|
216
227
|
}
|
|
217
228
|
export interface eqxcustomersClient extends Client {
|
|
218
229
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
|
|
@@ -272,6 +283,9 @@ export interface eqxcustomersClient extends Client {
|
|
|
272
283
|
getLoanPlans(request: getLoanPlansRequest, callback: (error: ServiceError | null, response: getLoanPlansResponse) => void): ClientUnaryCall;
|
|
273
284
|
getLoanPlans(request: getLoanPlansRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getLoanPlansResponse) => void): ClientUnaryCall;
|
|
274
285
|
getLoanPlans(request: getLoanPlansRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getLoanPlansResponse) => void): ClientUnaryCall;
|
|
286
|
+
getTnC(request: getTnCRequest, callback: (error: ServiceError | null, response: getTnCResponse) => void): ClientUnaryCall;
|
|
287
|
+
getTnC(request: getTnCRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getTnCResponse) => void): ClientUnaryCall;
|
|
288
|
+
getTnC(request: getTnCRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getTnCResponse) => void): ClientUnaryCall;
|
|
275
289
|
}
|
|
276
290
|
export declare const eqxcustomersClient: {
|
|
277
291
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): eqxcustomersClient;
|
package/ts/eqxcustomer.js
CHANGED
|
@@ -18,6 +18,7 @@ const getdashboardmaincard_1 = require("./eqxcustomers/getdashboardmaincard");
|
|
|
18
18
|
const getloanplans_1 = require("./eqxcustomers/getloanplans");
|
|
19
19
|
const getnotifications_1 = require("./eqxcustomers/getnotifications");
|
|
20
20
|
const getstashscorecustomerprofile_1 = require("./eqxcustomers/getstashscorecustomerprofile");
|
|
21
|
+
const gettnc_1 = require("./eqxcustomers/gettnc");
|
|
21
22
|
const gettokens_1 = require("./eqxcustomers/gettokens");
|
|
22
23
|
const iscustomerregistered_1 = require("./eqxcustomers/iscustomerregistered");
|
|
23
24
|
const sendotp_1 = require("./eqxcustomers/sendotp");
|
|
@@ -200,5 +201,14 @@ exports.eqxcustomersService = {
|
|
|
200
201
|
responseSerialize: (value) => Buffer.from(getloanplans_1.getLoanPlansResponse.encode(value).finish()),
|
|
201
202
|
responseDeserialize: (value) => getloanplans_1.getLoanPlansResponse.decode(value),
|
|
202
203
|
},
|
|
204
|
+
getTnC: {
|
|
205
|
+
path: "/service.eqxcustomers/getTnC",
|
|
206
|
+
requestStream: false,
|
|
207
|
+
responseStream: false,
|
|
208
|
+
requestSerialize: (value) => Buffer.from(gettnc_1.getTnCRequest.encode(value).finish()),
|
|
209
|
+
requestDeserialize: (value) => gettnc_1.getTnCRequest.decode(value),
|
|
210
|
+
responseSerialize: (value) => Buffer.from(gettnc_1.getTnCResponse.encode(value).finish()),
|
|
211
|
+
responseDeserialize: (value) => gettnc_1.getTnCResponse.decode(value),
|
|
212
|
+
},
|
|
203
213
|
};
|
|
204
214
|
exports.eqxcustomersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.eqxcustomersService, "service.eqxcustomers");
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "eqxcustomers.gettnc";
|
|
3
|
+
export interface getTnCRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface Data {
|
|
6
|
+
id: number;
|
|
7
|
+
version: string;
|
|
8
|
+
title: string;
|
|
9
|
+
content: string;
|
|
10
|
+
}
|
|
11
|
+
export interface getTnCResponse {
|
|
12
|
+
data: Data | undefined;
|
|
13
|
+
message: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const getTnCRequest: {
|
|
16
|
+
encode(_: getTnCRequest, writer?: _m0.Writer): _m0.Writer;
|
|
17
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getTnCRequest;
|
|
18
|
+
fromJSON(_: any): getTnCRequest;
|
|
19
|
+
toJSON(_: getTnCRequest): unknown;
|
|
20
|
+
create<I extends Exact<DeepPartial<getTnCRequest>, I>>(base?: I): getTnCRequest;
|
|
21
|
+
fromPartial<I extends Exact<DeepPartial<getTnCRequest>, I>>(_: I): getTnCRequest;
|
|
22
|
+
};
|
|
23
|
+
export declare const Data: {
|
|
24
|
+
encode(message: Data, writer?: _m0.Writer): _m0.Writer;
|
|
25
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Data;
|
|
26
|
+
fromJSON(object: any): Data;
|
|
27
|
+
toJSON(message: Data): unknown;
|
|
28
|
+
create<I extends Exact<DeepPartial<Data>, I>>(base?: I): Data;
|
|
29
|
+
fromPartial<I extends Exact<DeepPartial<Data>, I>>(object: I): Data;
|
|
30
|
+
};
|
|
31
|
+
export declare const getTnCResponse: {
|
|
32
|
+
encode(message: getTnCResponse, writer?: _m0.Writer): _m0.Writer;
|
|
33
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getTnCResponse;
|
|
34
|
+
fromJSON(object: any): getTnCResponse;
|
|
35
|
+
toJSON(message: getTnCResponse): unknown;
|
|
36
|
+
create<I extends Exact<DeepPartial<getTnCResponse>, I>>(base?: I): getTnCResponse;
|
|
37
|
+
fromPartial<I extends Exact<DeepPartial<getTnCResponse>, I>>(object: I): getTnCResponse;
|
|
38
|
+
};
|
|
39
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
40
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
41
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
42
|
+
} : Partial<T>;
|
|
43
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
44
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
45
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
46
|
+
} & {
|
|
47
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
48
|
+
};
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.1
|
|
5
|
+
// protoc v3.20.3
|
|
6
|
+
// source: eqxcustomers/gettnc.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.getTnCResponse = exports.Data = exports.getTnCRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "eqxcustomers.gettnc";
|
|
15
|
+
function createBasegetTnCRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getTnCRequest = {
|
|
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 = createBasegetTnCRequest();
|
|
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.getTnCRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetTnCRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBaseData() {
|
|
53
|
+
return { id: 0, version: "", title: "", content: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.Data = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.id !== 0) {
|
|
58
|
+
writer.uint32(8).int32(message.id);
|
|
59
|
+
}
|
|
60
|
+
if (message.version !== "") {
|
|
61
|
+
writer.uint32(18).string(message.version);
|
|
62
|
+
}
|
|
63
|
+
if (message.title !== "") {
|
|
64
|
+
writer.uint32(26).string(message.title);
|
|
65
|
+
}
|
|
66
|
+
if (message.content !== "") {
|
|
67
|
+
writer.uint32(34).string(message.content);
|
|
68
|
+
}
|
|
69
|
+
return writer;
|
|
70
|
+
},
|
|
71
|
+
decode(input, length) {
|
|
72
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
73
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
74
|
+
const message = createBaseData();
|
|
75
|
+
while (reader.pos < end) {
|
|
76
|
+
const tag = reader.uint32();
|
|
77
|
+
switch (tag >>> 3) {
|
|
78
|
+
case 1:
|
|
79
|
+
if (tag !== 8) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.id = reader.int32();
|
|
83
|
+
continue;
|
|
84
|
+
case 2:
|
|
85
|
+
if (tag !== 18) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
message.version = reader.string();
|
|
89
|
+
continue;
|
|
90
|
+
case 3:
|
|
91
|
+
if (tag !== 26) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
message.title = reader.string();
|
|
95
|
+
continue;
|
|
96
|
+
case 4:
|
|
97
|
+
if (tag !== 34) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
message.content = reader.string();
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
reader.skipType(tag & 7);
|
|
107
|
+
}
|
|
108
|
+
return message;
|
|
109
|
+
},
|
|
110
|
+
fromJSON(object) {
|
|
111
|
+
return {
|
|
112
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
113
|
+
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
114
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
115
|
+
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
toJSON(message) {
|
|
119
|
+
const obj = {};
|
|
120
|
+
if (message.id !== 0) {
|
|
121
|
+
obj.id = Math.round(message.id);
|
|
122
|
+
}
|
|
123
|
+
if (message.version !== "") {
|
|
124
|
+
obj.version = message.version;
|
|
125
|
+
}
|
|
126
|
+
if (message.title !== "") {
|
|
127
|
+
obj.title = message.title;
|
|
128
|
+
}
|
|
129
|
+
if (message.content !== "") {
|
|
130
|
+
obj.content = message.content;
|
|
131
|
+
}
|
|
132
|
+
return obj;
|
|
133
|
+
},
|
|
134
|
+
create(base) {
|
|
135
|
+
return exports.Data.fromPartial(base ?? {});
|
|
136
|
+
},
|
|
137
|
+
fromPartial(object) {
|
|
138
|
+
const message = createBaseData();
|
|
139
|
+
message.id = object.id ?? 0;
|
|
140
|
+
message.version = object.version ?? "";
|
|
141
|
+
message.title = object.title ?? "";
|
|
142
|
+
message.content = object.content ?? "";
|
|
143
|
+
return message;
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
function createBasegetTnCResponse() {
|
|
147
|
+
return { data: undefined, message: "" };
|
|
148
|
+
}
|
|
149
|
+
exports.getTnCResponse = {
|
|
150
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
151
|
+
if (message.data !== undefined) {
|
|
152
|
+
exports.Data.encode(message.data, writer.uint32(10).fork()).ldelim();
|
|
153
|
+
}
|
|
154
|
+
if (message.message !== "") {
|
|
155
|
+
writer.uint32(18).string(message.message);
|
|
156
|
+
}
|
|
157
|
+
return writer;
|
|
158
|
+
},
|
|
159
|
+
decode(input, length) {
|
|
160
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
161
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
162
|
+
const message = createBasegetTnCResponse();
|
|
163
|
+
while (reader.pos < end) {
|
|
164
|
+
const tag = reader.uint32();
|
|
165
|
+
switch (tag >>> 3) {
|
|
166
|
+
case 1:
|
|
167
|
+
if (tag !== 10) {
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
message.data = exports.Data.decode(reader, reader.uint32());
|
|
171
|
+
continue;
|
|
172
|
+
case 2:
|
|
173
|
+
if (tag !== 18) {
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
message.message = reader.string();
|
|
177
|
+
continue;
|
|
178
|
+
}
|
|
179
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
reader.skipType(tag & 7);
|
|
183
|
+
}
|
|
184
|
+
return message;
|
|
185
|
+
},
|
|
186
|
+
fromJSON(object) {
|
|
187
|
+
return {
|
|
188
|
+
data: isSet(object.data) ? exports.Data.fromJSON(object.data) : undefined,
|
|
189
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
190
|
+
};
|
|
191
|
+
},
|
|
192
|
+
toJSON(message) {
|
|
193
|
+
const obj = {};
|
|
194
|
+
if (message.data !== undefined) {
|
|
195
|
+
obj.data = exports.Data.toJSON(message.data);
|
|
196
|
+
}
|
|
197
|
+
if (message.message !== "") {
|
|
198
|
+
obj.message = message.message;
|
|
199
|
+
}
|
|
200
|
+
return obj;
|
|
201
|
+
},
|
|
202
|
+
create(base) {
|
|
203
|
+
return exports.getTnCResponse.fromPartial(base ?? {});
|
|
204
|
+
},
|
|
205
|
+
fromPartial(object) {
|
|
206
|
+
const message = createBasegetTnCResponse();
|
|
207
|
+
message.data = (object.data !== undefined && object.data !== null) ? exports.Data.fromPartial(object.data) : undefined;
|
|
208
|
+
message.message = object.message ?? "";
|
|
209
|
+
return message;
|
|
210
|
+
},
|
|
211
|
+
};
|
|
212
|
+
function isSet(value) {
|
|
213
|
+
return value !== null && value !== undefined;
|
|
214
|
+
}
|
|
@@ -2,15 +2,6 @@ import _m0 from "protobufjs/minimal";
|
|
|
2
2
|
export declare const protobufPackage = "loans.getlocdetails";
|
|
3
3
|
export interface GetLocDetailsRequest {
|
|
4
4
|
customer_id: number;
|
|
5
|
-
pcr_enable: boolean;
|
|
6
|
-
credit_shield_enable: boolean;
|
|
7
|
-
credit_shield_opt: boolean;
|
|
8
|
-
pcr_opt: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface InsuranceDescItem {
|
|
11
|
-
title: string;
|
|
12
|
-
desc: string;
|
|
13
|
-
icon: string;
|
|
14
5
|
}
|
|
15
6
|
export interface GetLocDetailsResponse {
|
|
16
7
|
matched: boolean;
|
|
@@ -82,13 +73,6 @@ export interface GetLocDetailsResponse {
|
|
|
82
73
|
key_fact_statement: string;
|
|
83
74
|
sanction_letter: string;
|
|
84
75
|
financing_documents: string;
|
|
85
|
-
max_amount: number;
|
|
86
|
-
credit_report_fees: number;
|
|
87
|
-
credit_report_actual_fees: number;
|
|
88
|
-
plan_id: string;
|
|
89
|
-
insurance_title: string;
|
|
90
|
-
insurance_desc: InsuranceDescItem[];
|
|
91
|
-
upfront_interest_description: string;
|
|
92
76
|
}
|
|
93
77
|
export declare const GetLocDetailsRequest: {
|
|
94
78
|
encode(message: GetLocDetailsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -98,14 +82,6 @@ export declare const GetLocDetailsRequest: {
|
|
|
98
82
|
create<I extends Exact<DeepPartial<GetLocDetailsRequest>, I>>(base?: I): GetLocDetailsRequest;
|
|
99
83
|
fromPartial<I extends Exact<DeepPartial<GetLocDetailsRequest>, I>>(object: I): GetLocDetailsRequest;
|
|
100
84
|
};
|
|
101
|
-
export declare const InsuranceDescItem: {
|
|
102
|
-
encode(message: InsuranceDescItem, writer?: _m0.Writer): _m0.Writer;
|
|
103
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): InsuranceDescItem;
|
|
104
|
-
fromJSON(object: any): InsuranceDescItem;
|
|
105
|
-
toJSON(message: InsuranceDescItem): unknown;
|
|
106
|
-
create<I extends Exact<DeepPartial<InsuranceDescItem>, I>>(base?: I): InsuranceDescItem;
|
|
107
|
-
fromPartial<I extends Exact<DeepPartial<InsuranceDescItem>, I>>(object: I): InsuranceDescItem;
|
|
108
|
-
};
|
|
109
85
|
export declare const GetLocDetailsResponse: {
|
|
110
86
|
encode(message: GetLocDetailsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
111
87
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetLocDetailsResponse;
|
|
@@ -8,30 +8,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.GetLocDetailsResponse = exports.
|
|
11
|
+
exports.GetLocDetailsResponse = exports.GetLocDetailsRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.getlocdetails";
|
|
15
15
|
function createBaseGetLocDetailsRequest() {
|
|
16
|
-
return { customer_id: 0
|
|
16
|
+
return { customer_id: 0 };
|
|
17
17
|
}
|
|
18
18
|
exports.GetLocDetailsRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
20
|
if (message.customer_id !== 0) {
|
|
21
21
|
writer.uint32(8).int32(message.customer_id);
|
|
22
22
|
}
|
|
23
|
-
if (message.pcr_enable !== false) {
|
|
24
|
-
writer.uint32(16).bool(message.pcr_enable);
|
|
25
|
-
}
|
|
26
|
-
if (message.credit_shield_enable !== false) {
|
|
27
|
-
writer.uint32(24).bool(message.credit_shield_enable);
|
|
28
|
-
}
|
|
29
|
-
if (message.credit_shield_opt !== false) {
|
|
30
|
-
writer.uint32(32).bool(message.credit_shield_opt);
|
|
31
|
-
}
|
|
32
|
-
if (message.pcr_opt !== false) {
|
|
33
|
-
writer.uint32(40).bool(message.pcr_opt);
|
|
34
|
-
}
|
|
35
23
|
return writer;
|
|
36
24
|
},
|
|
37
25
|
decode(input, length) {
|
|
@@ -47,30 +35,6 @@ exports.GetLocDetailsRequest = {
|
|
|
47
35
|
}
|
|
48
36
|
message.customer_id = reader.int32();
|
|
49
37
|
continue;
|
|
50
|
-
case 2:
|
|
51
|
-
if (tag !== 16) {
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
message.pcr_enable = reader.bool();
|
|
55
|
-
continue;
|
|
56
|
-
case 3:
|
|
57
|
-
if (tag !== 24) {
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
message.credit_shield_enable = reader.bool();
|
|
61
|
-
continue;
|
|
62
|
-
case 4:
|
|
63
|
-
if (tag !== 32) {
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
message.credit_shield_opt = reader.bool();
|
|
67
|
-
continue;
|
|
68
|
-
case 5:
|
|
69
|
-
if (tag !== 40) {
|
|
70
|
-
break;
|
|
71
|
-
}
|
|
72
|
-
message.pcr_opt = reader.bool();
|
|
73
|
-
continue;
|
|
74
38
|
}
|
|
75
39
|
if ((tag & 7) === 4 || tag === 0) {
|
|
76
40
|
break;
|
|
@@ -80,33 +44,13 @@ exports.GetLocDetailsRequest = {
|
|
|
80
44
|
return message;
|
|
81
45
|
},
|
|
82
46
|
fromJSON(object) {
|
|
83
|
-
return {
|
|
84
|
-
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
85
|
-
pcr_enable: isSet(object.pcr_enable) ? globalThis.Boolean(object.pcr_enable) : false,
|
|
86
|
-
credit_shield_enable: isSet(object.credit_shield_enable)
|
|
87
|
-
? globalThis.Boolean(object.credit_shield_enable)
|
|
88
|
-
: false,
|
|
89
|
-
credit_shield_opt: isSet(object.credit_shield_opt) ? globalThis.Boolean(object.credit_shield_opt) : false,
|
|
90
|
-
pcr_opt: isSet(object.pcr_opt) ? globalThis.Boolean(object.pcr_opt) : false,
|
|
91
|
-
};
|
|
47
|
+
return { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0 };
|
|
92
48
|
},
|
|
93
49
|
toJSON(message) {
|
|
94
50
|
const obj = {};
|
|
95
51
|
if (message.customer_id !== 0) {
|
|
96
52
|
obj.customer_id = Math.round(message.customer_id);
|
|
97
53
|
}
|
|
98
|
-
if (message.pcr_enable !== false) {
|
|
99
|
-
obj.pcr_enable = message.pcr_enable;
|
|
100
|
-
}
|
|
101
|
-
if (message.credit_shield_enable !== false) {
|
|
102
|
-
obj.credit_shield_enable = message.credit_shield_enable;
|
|
103
|
-
}
|
|
104
|
-
if (message.credit_shield_opt !== false) {
|
|
105
|
-
obj.credit_shield_opt = message.credit_shield_opt;
|
|
106
|
-
}
|
|
107
|
-
if (message.pcr_opt !== false) {
|
|
108
|
-
obj.pcr_opt = message.pcr_opt;
|
|
109
|
-
}
|
|
110
54
|
return obj;
|
|
111
55
|
},
|
|
112
56
|
create(base) {
|
|
@@ -115,90 +59,6 @@ exports.GetLocDetailsRequest = {
|
|
|
115
59
|
fromPartial(object) {
|
|
116
60
|
const message = createBaseGetLocDetailsRequest();
|
|
117
61
|
message.customer_id = object.customer_id ?? 0;
|
|
118
|
-
message.pcr_enable = object.pcr_enable ?? false;
|
|
119
|
-
message.credit_shield_enable = object.credit_shield_enable ?? false;
|
|
120
|
-
message.credit_shield_opt = object.credit_shield_opt ?? false;
|
|
121
|
-
message.pcr_opt = object.pcr_opt ?? false;
|
|
122
|
-
return message;
|
|
123
|
-
},
|
|
124
|
-
};
|
|
125
|
-
function createBaseInsuranceDescItem() {
|
|
126
|
-
return { title: "", desc: "", icon: "" };
|
|
127
|
-
}
|
|
128
|
-
exports.InsuranceDescItem = {
|
|
129
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
130
|
-
if (message.title !== "") {
|
|
131
|
-
writer.uint32(10).string(message.title);
|
|
132
|
-
}
|
|
133
|
-
if (message.desc !== "") {
|
|
134
|
-
writer.uint32(18).string(message.desc);
|
|
135
|
-
}
|
|
136
|
-
if (message.icon !== "") {
|
|
137
|
-
writer.uint32(26).string(message.icon);
|
|
138
|
-
}
|
|
139
|
-
return writer;
|
|
140
|
-
},
|
|
141
|
-
decode(input, length) {
|
|
142
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
143
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
144
|
-
const message = createBaseInsuranceDescItem();
|
|
145
|
-
while (reader.pos < end) {
|
|
146
|
-
const tag = reader.uint32();
|
|
147
|
-
switch (tag >>> 3) {
|
|
148
|
-
case 1:
|
|
149
|
-
if (tag !== 10) {
|
|
150
|
-
break;
|
|
151
|
-
}
|
|
152
|
-
message.title = reader.string();
|
|
153
|
-
continue;
|
|
154
|
-
case 2:
|
|
155
|
-
if (tag !== 18) {
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
|
-
message.desc = reader.string();
|
|
159
|
-
continue;
|
|
160
|
-
case 3:
|
|
161
|
-
if (tag !== 26) {
|
|
162
|
-
break;
|
|
163
|
-
}
|
|
164
|
-
message.icon = reader.string();
|
|
165
|
-
continue;
|
|
166
|
-
}
|
|
167
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
reader.skipType(tag & 7);
|
|
171
|
-
}
|
|
172
|
-
return message;
|
|
173
|
-
},
|
|
174
|
-
fromJSON(object) {
|
|
175
|
-
return {
|
|
176
|
-
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
177
|
-
desc: isSet(object.desc) ? globalThis.String(object.desc) : "",
|
|
178
|
-
icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
|
|
179
|
-
};
|
|
180
|
-
},
|
|
181
|
-
toJSON(message) {
|
|
182
|
-
const obj = {};
|
|
183
|
-
if (message.title !== "") {
|
|
184
|
-
obj.title = message.title;
|
|
185
|
-
}
|
|
186
|
-
if (message.desc !== "") {
|
|
187
|
-
obj.desc = message.desc;
|
|
188
|
-
}
|
|
189
|
-
if (message.icon !== "") {
|
|
190
|
-
obj.icon = message.icon;
|
|
191
|
-
}
|
|
192
|
-
return obj;
|
|
193
|
-
},
|
|
194
|
-
create(base) {
|
|
195
|
-
return exports.InsuranceDescItem.fromPartial(base ?? {});
|
|
196
|
-
},
|
|
197
|
-
fromPartial(object) {
|
|
198
|
-
const message = createBaseInsuranceDescItem();
|
|
199
|
-
message.title = object.title ?? "";
|
|
200
|
-
message.desc = object.desc ?? "";
|
|
201
|
-
message.icon = object.icon ?? "";
|
|
202
62
|
return message;
|
|
203
63
|
},
|
|
204
64
|
};
|
|
@@ -273,13 +133,6 @@ function createBaseGetLocDetailsResponse() {
|
|
|
273
133
|
key_fact_statement: "",
|
|
274
134
|
sanction_letter: "",
|
|
275
135
|
financing_documents: "",
|
|
276
|
-
max_amount: 0,
|
|
277
|
-
credit_report_fees: 0,
|
|
278
|
-
credit_report_actual_fees: 0,
|
|
279
|
-
plan_id: "",
|
|
280
|
-
insurance_title: "",
|
|
281
|
-
insurance_desc: [],
|
|
282
|
-
upfront_interest_description: "",
|
|
283
136
|
};
|
|
284
137
|
}
|
|
285
138
|
exports.GetLocDetailsResponse = {
|
|
@@ -491,27 +344,6 @@ exports.GetLocDetailsResponse = {
|
|
|
491
344
|
if (message.financing_documents !== "") {
|
|
492
345
|
writer.uint32(554).string(message.financing_documents);
|
|
493
346
|
}
|
|
494
|
-
if (message.max_amount !== 0) {
|
|
495
|
-
writer.uint32(560).int32(message.max_amount);
|
|
496
|
-
}
|
|
497
|
-
if (message.credit_report_fees !== 0) {
|
|
498
|
-
writer.uint32(568).int32(message.credit_report_fees);
|
|
499
|
-
}
|
|
500
|
-
if (message.credit_report_actual_fees !== 0) {
|
|
501
|
-
writer.uint32(576).int32(message.credit_report_actual_fees);
|
|
502
|
-
}
|
|
503
|
-
if (message.plan_id !== "") {
|
|
504
|
-
writer.uint32(586).string(message.plan_id);
|
|
505
|
-
}
|
|
506
|
-
if (message.insurance_title !== "") {
|
|
507
|
-
writer.uint32(594).string(message.insurance_title);
|
|
508
|
-
}
|
|
509
|
-
for (const v of message.insurance_desc) {
|
|
510
|
-
exports.InsuranceDescItem.encode(v, writer.uint32(602).fork()).ldelim();
|
|
511
|
-
}
|
|
512
|
-
if (message.upfront_interest_description !== "") {
|
|
513
|
-
writer.uint32(610).string(message.upfront_interest_description);
|
|
514
|
-
}
|
|
515
347
|
return writer;
|
|
516
348
|
},
|
|
517
349
|
decode(input, length) {
|
|
@@ -935,48 +767,6 @@ exports.GetLocDetailsResponse = {
|
|
|
935
767
|
}
|
|
936
768
|
message.financing_documents = reader.string();
|
|
937
769
|
continue;
|
|
938
|
-
case 70:
|
|
939
|
-
if (tag !== 560) {
|
|
940
|
-
break;
|
|
941
|
-
}
|
|
942
|
-
message.max_amount = reader.int32();
|
|
943
|
-
continue;
|
|
944
|
-
case 71:
|
|
945
|
-
if (tag !== 568) {
|
|
946
|
-
break;
|
|
947
|
-
}
|
|
948
|
-
message.credit_report_fees = reader.int32();
|
|
949
|
-
continue;
|
|
950
|
-
case 72:
|
|
951
|
-
if (tag !== 576) {
|
|
952
|
-
break;
|
|
953
|
-
}
|
|
954
|
-
message.credit_report_actual_fees = reader.int32();
|
|
955
|
-
continue;
|
|
956
|
-
case 73:
|
|
957
|
-
if (tag !== 586) {
|
|
958
|
-
break;
|
|
959
|
-
}
|
|
960
|
-
message.plan_id = reader.string();
|
|
961
|
-
continue;
|
|
962
|
-
case 74:
|
|
963
|
-
if (tag !== 594) {
|
|
964
|
-
break;
|
|
965
|
-
}
|
|
966
|
-
message.insurance_title = reader.string();
|
|
967
|
-
continue;
|
|
968
|
-
case 75:
|
|
969
|
-
if (tag !== 602) {
|
|
970
|
-
break;
|
|
971
|
-
}
|
|
972
|
-
message.insurance_desc.push(exports.InsuranceDescItem.decode(reader, reader.uint32()));
|
|
973
|
-
continue;
|
|
974
|
-
case 76:
|
|
975
|
-
if (tag !== 610) {
|
|
976
|
-
break;
|
|
977
|
-
}
|
|
978
|
-
message.upfront_interest_description = reader.string();
|
|
979
|
-
continue;
|
|
980
770
|
}
|
|
981
771
|
if ((tag & 7) === 4 || tag === 0) {
|
|
982
772
|
break;
|
|
@@ -1078,19 +868,6 @@ exports.GetLocDetailsResponse = {
|
|
|
1078
868
|
key_fact_statement: isSet(object.key_fact_statement) ? globalThis.String(object.key_fact_statement) : "",
|
|
1079
869
|
sanction_letter: isSet(object.sanction_letter) ? globalThis.String(object.sanction_letter) : "",
|
|
1080
870
|
financing_documents: isSet(object.financing_documents) ? globalThis.String(object.financing_documents) : "",
|
|
1081
|
-
max_amount: isSet(object.max_amount) ? globalThis.Number(object.max_amount) : 0,
|
|
1082
|
-
credit_report_fees: isSet(object.credit_report_fees) ? globalThis.Number(object.credit_report_fees) : 0,
|
|
1083
|
-
credit_report_actual_fees: isSet(object.credit_report_actual_fees)
|
|
1084
|
-
? globalThis.Number(object.credit_report_actual_fees)
|
|
1085
|
-
: 0,
|
|
1086
|
-
plan_id: isSet(object.plan_id) ? globalThis.String(object.plan_id) : "",
|
|
1087
|
-
insurance_title: isSet(object.insurance_title) ? globalThis.String(object.insurance_title) : "",
|
|
1088
|
-
insurance_desc: globalThis.Array.isArray(object?.insurance_desc)
|
|
1089
|
-
? object.insurance_desc.map((e) => exports.InsuranceDescItem.fromJSON(e))
|
|
1090
|
-
: [],
|
|
1091
|
-
upfront_interest_description: isSet(object.upfront_interest_description)
|
|
1092
|
-
? globalThis.String(object.upfront_interest_description)
|
|
1093
|
-
: "",
|
|
1094
871
|
};
|
|
1095
872
|
},
|
|
1096
873
|
toJSON(message) {
|
|
@@ -1302,27 +1079,6 @@ exports.GetLocDetailsResponse = {
|
|
|
1302
1079
|
if (message.financing_documents !== "") {
|
|
1303
1080
|
obj.financing_documents = message.financing_documents;
|
|
1304
1081
|
}
|
|
1305
|
-
if (message.max_amount !== 0) {
|
|
1306
|
-
obj.max_amount = Math.round(message.max_amount);
|
|
1307
|
-
}
|
|
1308
|
-
if (message.credit_report_fees !== 0) {
|
|
1309
|
-
obj.credit_report_fees = Math.round(message.credit_report_fees);
|
|
1310
|
-
}
|
|
1311
|
-
if (message.credit_report_actual_fees !== 0) {
|
|
1312
|
-
obj.credit_report_actual_fees = Math.round(message.credit_report_actual_fees);
|
|
1313
|
-
}
|
|
1314
|
-
if (message.plan_id !== "") {
|
|
1315
|
-
obj.plan_id = message.plan_id;
|
|
1316
|
-
}
|
|
1317
|
-
if (message.insurance_title !== "") {
|
|
1318
|
-
obj.insurance_title = message.insurance_title;
|
|
1319
|
-
}
|
|
1320
|
-
if (message.insurance_desc?.length) {
|
|
1321
|
-
obj.insurance_desc = message.insurance_desc.map((e) => exports.InsuranceDescItem.toJSON(e));
|
|
1322
|
-
}
|
|
1323
|
-
if (message.upfront_interest_description !== "") {
|
|
1324
|
-
obj.upfront_interest_description = message.upfront_interest_description;
|
|
1325
|
-
}
|
|
1326
1082
|
return obj;
|
|
1327
1083
|
},
|
|
1328
1084
|
create(base) {
|
|
@@ -1399,13 +1155,6 @@ exports.GetLocDetailsResponse = {
|
|
|
1399
1155
|
message.key_fact_statement = object.key_fact_statement ?? "";
|
|
1400
1156
|
message.sanction_letter = object.sanction_letter ?? "";
|
|
1401
1157
|
message.financing_documents = object.financing_documents ?? "";
|
|
1402
|
-
message.max_amount = object.max_amount ?? 0;
|
|
1403
|
-
message.credit_report_fees = object.credit_report_fees ?? 0;
|
|
1404
|
-
message.credit_report_actual_fees = object.credit_report_actual_fees ?? 0;
|
|
1405
|
-
message.plan_id = object.plan_id ?? "";
|
|
1406
|
-
message.insurance_title = object.insurance_title ?? "";
|
|
1407
|
-
message.insurance_desc = object.insurance_desc?.map((e) => exports.InsuranceDescItem.fromPartial(e)) || [];
|
|
1408
|
-
message.upfront_interest_description = object.upfront_interest_description ?? "";
|
|
1409
1158
|
return message;
|
|
1410
1159
|
},
|
|
1411
1160
|
};
|
|
@@ -2,9 +2,6 @@ import _m0 from "protobufjs/minimal";
|
|
|
2
2
|
export declare const protobufPackage = "loans.getlocdisburse";
|
|
3
3
|
export interface GetLocDisburseRequest {
|
|
4
4
|
customer_id: number;
|
|
5
|
-
credit_report_fees: number;
|
|
6
|
-
max_amount: number;
|
|
7
|
-
plan_id: string;
|
|
8
5
|
}
|
|
9
6
|
export interface GetLocDisburseResponse {
|
|
10
7
|
msg?: string | undefined;
|
|
@@ -13,22 +13,13 @@ exports.GetLocDisburseResponse = exports.GetLocDisburseRequest = exports.protobu
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.getlocdisburse";
|
|
15
15
|
function createBaseGetLocDisburseRequest() {
|
|
16
|
-
return { customer_id: 0
|
|
16
|
+
return { customer_id: 0 };
|
|
17
17
|
}
|
|
18
18
|
exports.GetLocDisburseRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
20
|
if (message.customer_id !== 0) {
|
|
21
21
|
writer.uint32(8).int32(message.customer_id);
|
|
22
22
|
}
|
|
23
|
-
if (message.credit_report_fees !== 0) {
|
|
24
|
-
writer.uint32(16).int32(message.credit_report_fees);
|
|
25
|
-
}
|
|
26
|
-
if (message.max_amount !== 0) {
|
|
27
|
-
writer.uint32(24).int32(message.max_amount);
|
|
28
|
-
}
|
|
29
|
-
if (message.plan_id !== "") {
|
|
30
|
-
writer.uint32(34).string(message.plan_id);
|
|
31
|
-
}
|
|
32
23
|
return writer;
|
|
33
24
|
},
|
|
34
25
|
decode(input, length) {
|
|
@@ -44,24 +35,6 @@ exports.GetLocDisburseRequest = {
|
|
|
44
35
|
}
|
|
45
36
|
message.customer_id = reader.int32();
|
|
46
37
|
continue;
|
|
47
|
-
case 2:
|
|
48
|
-
if (tag !== 16) {
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
message.credit_report_fees = reader.int32();
|
|
52
|
-
continue;
|
|
53
|
-
case 3:
|
|
54
|
-
if (tag !== 24) {
|
|
55
|
-
break;
|
|
56
|
-
}
|
|
57
|
-
message.max_amount = reader.int32();
|
|
58
|
-
continue;
|
|
59
|
-
case 4:
|
|
60
|
-
if (tag !== 34) {
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
message.plan_id = reader.string();
|
|
64
|
-
continue;
|
|
65
38
|
}
|
|
66
39
|
if ((tag & 7) === 4 || tag === 0) {
|
|
67
40
|
break;
|
|
@@ -71,27 +44,13 @@ exports.GetLocDisburseRequest = {
|
|
|
71
44
|
return message;
|
|
72
45
|
},
|
|
73
46
|
fromJSON(object) {
|
|
74
|
-
return {
|
|
75
|
-
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
76
|
-
credit_report_fees: isSet(object.credit_report_fees) ? globalThis.Number(object.credit_report_fees) : 0,
|
|
77
|
-
max_amount: isSet(object.max_amount) ? globalThis.Number(object.max_amount) : 0,
|
|
78
|
-
plan_id: isSet(object.plan_id) ? globalThis.String(object.plan_id) : "",
|
|
79
|
-
};
|
|
47
|
+
return { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0 };
|
|
80
48
|
},
|
|
81
49
|
toJSON(message) {
|
|
82
50
|
const obj = {};
|
|
83
51
|
if (message.customer_id !== 0) {
|
|
84
52
|
obj.customer_id = Math.round(message.customer_id);
|
|
85
53
|
}
|
|
86
|
-
if (message.credit_report_fees !== 0) {
|
|
87
|
-
obj.credit_report_fees = Math.round(message.credit_report_fees);
|
|
88
|
-
}
|
|
89
|
-
if (message.max_amount !== 0) {
|
|
90
|
-
obj.max_amount = Math.round(message.max_amount);
|
|
91
|
-
}
|
|
92
|
-
if (message.plan_id !== "") {
|
|
93
|
-
obj.plan_id = message.plan_id;
|
|
94
|
-
}
|
|
95
54
|
return obj;
|
|
96
55
|
},
|
|
97
56
|
create(base) {
|
|
@@ -100,9 +59,6 @@ exports.GetLocDisburseRequest = {
|
|
|
100
59
|
fromPartial(object) {
|
|
101
60
|
const message = createBaseGetLocDisburseRequest();
|
|
102
61
|
message.customer_id = object.customer_id ?? 0;
|
|
103
|
-
message.credit_report_fees = object.credit_report_fees ?? 0;
|
|
104
|
-
message.max_amount = object.max_amount ?? 0;
|
|
105
|
-
message.plan_id = object.plan_id ?? "";
|
|
106
62
|
return message;
|
|
107
63
|
},
|
|
108
64
|
};
|