@stashfin/grpc 1.2.59 → 1.2.61
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/deleteprofile.d.ts +34 -0
- package/ts/customers/deleteprofile.js +104 -0
- package/ts/customers.d.ts +14 -0
- package/ts/customers.js +10 -0
- package/ts/loans/calculateemi.js +4 -4
- package/ts/loans/loansummary.d.ts +50 -0
- package/ts/loans/loansummary.js +360 -0
- package/ts/loans/paymentallocation.d.ts +36 -0
- package/ts/loans/paymentallocation.js +133 -0
- package/ts/loans.d.ts +28 -0
- package/ts/loans.js +20 -0
- package/ts/payments.d.ts +239 -0
- package/ts/payments.js +1117 -0
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.deleteprofile";
|
|
3
|
+
export interface deleteProfileRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface deleteProfileResponse {
|
|
6
|
+
status: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const deleteProfileRequest: {
|
|
9
|
+
encode(_: deleteProfileRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): deleteProfileRequest;
|
|
11
|
+
fromJSON(_: any): deleteProfileRequest;
|
|
12
|
+
toJSON(_: deleteProfileRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<deleteProfileRequest>, I>>(base?: I): deleteProfileRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<deleteProfileRequest>, I>>(_: I): deleteProfileRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const deleteProfileResponse: {
|
|
17
|
+
encode(message: deleteProfileResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): deleteProfileResponse;
|
|
19
|
+
fromJSON(object: any): deleteProfileResponse;
|
|
20
|
+
toJSON(message: deleteProfileResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<deleteProfileResponse>, I>>(base?: I): deleteProfileResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<deleteProfileResponse>, I>>(object: I): deleteProfileResponse;
|
|
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 v3.20.3
|
|
6
|
+
// source: customers/deleteprofile.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.deleteProfileResponse = exports.deleteProfileRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.deleteprofile";
|
|
15
|
+
function createBasedeleteProfileRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.deleteProfileRequest = {
|
|
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 = createBasedeleteProfileRequest();
|
|
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.deleteProfileRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasedeleteProfileRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasedeleteProfileResponse() {
|
|
53
|
+
return { status: false };
|
|
54
|
+
}
|
|
55
|
+
exports.deleteProfileResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.status !== false) {
|
|
58
|
+
writer.uint32(8).bool(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 = createBasedeleteProfileResponse();
|
|
66
|
+
while (reader.pos < end) {
|
|
67
|
+
const tag = reader.uint32();
|
|
68
|
+
switch (tag >>> 3) {
|
|
69
|
+
case 1:
|
|
70
|
+
if (tag !== 8) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.status = reader.bool();
|
|
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.Boolean(object.status) : false };
|
|
85
|
+
},
|
|
86
|
+
toJSON(message) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
if (message.status !== false) {
|
|
89
|
+
obj.status = message.status;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.deleteProfileResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBasedeleteProfileResponse();
|
|
98
|
+
message.status = object.status ?? false;
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type
|
|
|
2
2
|
import { addAddressRequest, addAddressResponse } from "./customers/addaddress";
|
|
3
3
|
import { addBankAccountDetailsRequest, addBankAccountDetailsResponse } from "./customers/addbankaccountdetails";
|
|
4
4
|
import { createCustomerReferenceRequest, createCustomerReferenceResponse } from "./customers/createcustomerreference";
|
|
5
|
+
import { deleteProfileRequest, deleteProfileResponse } from "./customers/deleteprofile";
|
|
5
6
|
import { forgotMpinRequest, forgotMpinResponse } from "./customers/forgotmpin";
|
|
6
7
|
import { forgotMpinOTPRequest, forgotMpinOTPResponse } from "./customers/forgotmpinotp";
|
|
7
8
|
import { getBankAccountDetailsRequest, getBankAccountDetailsResponse } from "./customers/getbankaccountdetails";
|
|
@@ -416,6 +417,15 @@ export declare const customersService: {
|
|
|
416
417
|
readonly responseSerialize: (value: validatePanResponse) => Buffer;
|
|
417
418
|
readonly responseDeserialize: (value: Buffer) => validatePanResponse;
|
|
418
419
|
};
|
|
420
|
+
readonly deleteProfile: {
|
|
421
|
+
readonly path: "/service.customers/deleteProfile";
|
|
422
|
+
readonly requestStream: false;
|
|
423
|
+
readonly responseStream: false;
|
|
424
|
+
readonly requestSerialize: (value: deleteProfileRequest) => Buffer;
|
|
425
|
+
readonly requestDeserialize: (value: Buffer) => deleteProfileRequest;
|
|
426
|
+
readonly responseSerialize: (value: deleteProfileResponse) => Buffer;
|
|
427
|
+
readonly responseDeserialize: (value: Buffer) => deleteProfileResponse;
|
|
428
|
+
};
|
|
419
429
|
};
|
|
420
430
|
export interface customersServer extends UntypedServiceImplementation {
|
|
421
431
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -460,6 +470,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
460
470
|
getKycWebUrl: handleUnaryCall<getKycWebUrlRequest, getKycWebUrlResponse>;
|
|
461
471
|
updateDob: handleUnaryCall<updateDOBRequest, updateDOBResponse>;
|
|
462
472
|
validatePan: handleUnaryCall<validatePanRequest, validatePanResponse>;
|
|
473
|
+
deleteProfile: handleUnaryCall<deleteProfileRequest, deleteProfileResponse>;
|
|
463
474
|
}
|
|
464
475
|
export interface customersClient extends Client {
|
|
465
476
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -588,6 +599,9 @@ export interface customersClient extends Client {
|
|
|
588
599
|
validatePan(request: validatePanRequest, callback: (error: ServiceError | null, response: validatePanResponse) => void): ClientUnaryCall;
|
|
589
600
|
validatePan(request: validatePanRequest, metadata: Metadata, callback: (error: ServiceError | null, response: validatePanResponse) => void): ClientUnaryCall;
|
|
590
601
|
validatePan(request: validatePanRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: validatePanResponse) => void): ClientUnaryCall;
|
|
602
|
+
deleteProfile(request: deleteProfileRequest, callback: (error: ServiceError | null, response: deleteProfileResponse) => void): ClientUnaryCall;
|
|
603
|
+
deleteProfile(request: deleteProfileRequest, metadata: Metadata, callback: (error: ServiceError | null, response: deleteProfileResponse) => void): ClientUnaryCall;
|
|
604
|
+
deleteProfile(request: deleteProfileRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: deleteProfileResponse) => void): ClientUnaryCall;
|
|
591
605
|
}
|
|
592
606
|
export declare const customersClient: {
|
|
593
607
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -11,6 +11,7 @@ const grpc_js_1 = require("@grpc/grpc-js");
|
|
|
11
11
|
const addaddress_1 = require("./customers/addaddress");
|
|
12
12
|
const addbankaccountdetails_1 = require("./customers/addbankaccountdetails");
|
|
13
13
|
const createcustomerreference_1 = require("./customers/createcustomerreference");
|
|
14
|
+
const deleteprofile_1 = require("./customers/deleteprofile");
|
|
14
15
|
const forgotmpin_1 = require("./customers/forgotmpin");
|
|
15
16
|
const forgotmpinotp_1 = require("./customers/forgotmpinotp");
|
|
16
17
|
const getbankaccountdetails_1 = require("./customers/getbankaccountdetails");
|
|
@@ -424,5 +425,14 @@ exports.customersService = {
|
|
|
424
425
|
responseSerialize: (value) => Buffer.from(validatepan_1.validatePanResponse.encode(value).finish()),
|
|
425
426
|
responseDeserialize: (value) => validatepan_1.validatePanResponse.decode(value),
|
|
426
427
|
},
|
|
428
|
+
deleteProfile: {
|
|
429
|
+
path: "/service.customers/deleteProfile",
|
|
430
|
+
requestStream: false,
|
|
431
|
+
responseStream: false,
|
|
432
|
+
requestSerialize: (value) => Buffer.from(deleteprofile_1.deleteProfileRequest.encode(value).finish()),
|
|
433
|
+
requestDeserialize: (value) => deleteprofile_1.deleteProfileRequest.decode(value),
|
|
434
|
+
responseSerialize: (value) => Buffer.from(deleteprofile_1.deleteProfileResponse.encode(value).finish()),
|
|
435
|
+
responseDeserialize: (value) => deleteprofile_1.deleteProfileResponse.decode(value),
|
|
436
|
+
},
|
|
427
437
|
};
|
|
428
438
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
package/ts/loans/calculateemi.js
CHANGED
|
@@ -181,7 +181,7 @@ exports.calculateEmiResponse_Field = {
|
|
|
181
181
|
writer.uint32(8).int32(message.tenure);
|
|
182
182
|
}
|
|
183
183
|
if (message.emi_amount !== 0) {
|
|
184
|
-
writer.uint32(
|
|
184
|
+
writer.uint32(21).float(message.emi_amount);
|
|
185
185
|
}
|
|
186
186
|
return writer;
|
|
187
187
|
},
|
|
@@ -199,10 +199,10 @@ exports.calculateEmiResponse_Field = {
|
|
|
199
199
|
message.tenure = reader.int32();
|
|
200
200
|
continue;
|
|
201
201
|
case 2:
|
|
202
|
-
if (tag !==
|
|
202
|
+
if (tag !== 21) {
|
|
203
203
|
break;
|
|
204
204
|
}
|
|
205
|
-
message.emi_amount = reader.
|
|
205
|
+
message.emi_amount = reader.float();
|
|
206
206
|
continue;
|
|
207
207
|
}
|
|
208
208
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -224,7 +224,7 @@ exports.calculateEmiResponse_Field = {
|
|
|
224
224
|
obj.tenure = Math.round(message.tenure);
|
|
225
225
|
}
|
|
226
226
|
if (message.emi_amount !== 0) {
|
|
227
|
-
obj.emi_amount =
|
|
227
|
+
obj.emi_amount = message.emi_amount;
|
|
228
228
|
}
|
|
229
229
|
return obj;
|
|
230
230
|
},
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.loansummary";
|
|
3
|
+
export interface loanSummaryRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface loanSummaryResponse {
|
|
6
|
+
loc_limit: number;
|
|
7
|
+
bill_date: string;
|
|
8
|
+
minimum_request_amount: number;
|
|
9
|
+
request_amount_increment_step: number;
|
|
10
|
+
used_loc: number;
|
|
11
|
+
max_tenure: number;
|
|
12
|
+
min_tenure: number;
|
|
13
|
+
rate_of_interest: number;
|
|
14
|
+
info_popup_heading: string;
|
|
15
|
+
info_popup_body: string;
|
|
16
|
+
sanctioned_limit_heading: string;
|
|
17
|
+
exposure_limit_heading: string;
|
|
18
|
+
request_max_percentage: number;
|
|
19
|
+
loc_disable: boolean;
|
|
20
|
+
exposure_limit: number;
|
|
21
|
+
sanctioned_limit: number;
|
|
22
|
+
remaining_senctioned_limit: number;
|
|
23
|
+
}
|
|
24
|
+
export declare const loanSummaryRequest: {
|
|
25
|
+
encode(_: loanSummaryRequest, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): loanSummaryRequest;
|
|
27
|
+
fromJSON(_: any): loanSummaryRequest;
|
|
28
|
+
toJSON(_: loanSummaryRequest): unknown;
|
|
29
|
+
create<I extends Exact<DeepPartial<loanSummaryRequest>, I>>(base?: I): loanSummaryRequest;
|
|
30
|
+
fromPartial<I extends Exact<DeepPartial<loanSummaryRequest>, I>>(_: I): loanSummaryRequest;
|
|
31
|
+
};
|
|
32
|
+
export declare const loanSummaryResponse: {
|
|
33
|
+
encode(message: loanSummaryResponse, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): loanSummaryResponse;
|
|
35
|
+
fromJSON(object: any): loanSummaryResponse;
|
|
36
|
+
toJSON(message: loanSummaryResponse): unknown;
|
|
37
|
+
create<I extends Exact<DeepPartial<loanSummaryResponse>, I>>(base?: I): loanSummaryResponse;
|
|
38
|
+
fromPartial<I extends Exact<DeepPartial<loanSummaryResponse>, I>>(object: I): loanSummaryResponse;
|
|
39
|
+
};
|
|
40
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
41
|
+
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 {} ? {
|
|
42
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
43
|
+
} : Partial<T>;
|
|
44
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
45
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
46
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
47
|
+
} & {
|
|
48
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
49
|
+
};
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,360 @@
|
|
|
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 v3.20.3
|
|
6
|
+
// source: loans/loansummary.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.loanSummaryResponse = exports.loanSummaryRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.loansummary";
|
|
15
|
+
function createBaseloanSummaryRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.loanSummaryRequest = {
|
|
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 = createBaseloanSummaryRequest();
|
|
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.loanSummaryRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBaseloanSummaryRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBaseloanSummaryResponse() {
|
|
53
|
+
return {
|
|
54
|
+
loc_limit: 0,
|
|
55
|
+
bill_date: "",
|
|
56
|
+
minimum_request_amount: 0,
|
|
57
|
+
request_amount_increment_step: 0,
|
|
58
|
+
used_loc: 0,
|
|
59
|
+
max_tenure: 0,
|
|
60
|
+
min_tenure: 0,
|
|
61
|
+
rate_of_interest: 0,
|
|
62
|
+
info_popup_heading: "",
|
|
63
|
+
info_popup_body: "",
|
|
64
|
+
sanctioned_limit_heading: "",
|
|
65
|
+
exposure_limit_heading: "",
|
|
66
|
+
request_max_percentage: 0,
|
|
67
|
+
loc_disable: false,
|
|
68
|
+
exposure_limit: 0,
|
|
69
|
+
sanctioned_limit: 0,
|
|
70
|
+
remaining_senctioned_limit: 0,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
exports.loanSummaryResponse = {
|
|
74
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
75
|
+
if (message.loc_limit !== 0) {
|
|
76
|
+
writer.uint32(8).int32(message.loc_limit);
|
|
77
|
+
}
|
|
78
|
+
if (message.bill_date !== "") {
|
|
79
|
+
writer.uint32(18).string(message.bill_date);
|
|
80
|
+
}
|
|
81
|
+
if (message.minimum_request_amount !== 0) {
|
|
82
|
+
writer.uint32(24).int32(message.minimum_request_amount);
|
|
83
|
+
}
|
|
84
|
+
if (message.request_amount_increment_step !== 0) {
|
|
85
|
+
writer.uint32(32).int32(message.request_amount_increment_step);
|
|
86
|
+
}
|
|
87
|
+
if (message.used_loc !== 0) {
|
|
88
|
+
writer.uint32(40).int32(message.used_loc);
|
|
89
|
+
}
|
|
90
|
+
if (message.max_tenure !== 0) {
|
|
91
|
+
writer.uint32(48).int32(message.max_tenure);
|
|
92
|
+
}
|
|
93
|
+
if (message.min_tenure !== 0) {
|
|
94
|
+
writer.uint32(56).int32(message.min_tenure);
|
|
95
|
+
}
|
|
96
|
+
if (message.rate_of_interest !== 0) {
|
|
97
|
+
writer.uint32(64).int32(message.rate_of_interest);
|
|
98
|
+
}
|
|
99
|
+
if (message.info_popup_heading !== "") {
|
|
100
|
+
writer.uint32(74).string(message.info_popup_heading);
|
|
101
|
+
}
|
|
102
|
+
if (message.info_popup_body !== "") {
|
|
103
|
+
writer.uint32(82).string(message.info_popup_body);
|
|
104
|
+
}
|
|
105
|
+
if (message.sanctioned_limit_heading !== "") {
|
|
106
|
+
writer.uint32(90).string(message.sanctioned_limit_heading);
|
|
107
|
+
}
|
|
108
|
+
if (message.exposure_limit_heading !== "") {
|
|
109
|
+
writer.uint32(98).string(message.exposure_limit_heading);
|
|
110
|
+
}
|
|
111
|
+
if (message.request_max_percentage !== 0) {
|
|
112
|
+
writer.uint32(104).int32(message.request_max_percentage);
|
|
113
|
+
}
|
|
114
|
+
if (message.loc_disable !== false) {
|
|
115
|
+
writer.uint32(112).bool(message.loc_disable);
|
|
116
|
+
}
|
|
117
|
+
if (message.exposure_limit !== 0) {
|
|
118
|
+
writer.uint32(120).int32(message.exposure_limit);
|
|
119
|
+
}
|
|
120
|
+
if (message.sanctioned_limit !== 0) {
|
|
121
|
+
writer.uint32(128).int32(message.sanctioned_limit);
|
|
122
|
+
}
|
|
123
|
+
if (message.remaining_senctioned_limit !== 0) {
|
|
124
|
+
writer.uint32(136).int32(message.remaining_senctioned_limit);
|
|
125
|
+
}
|
|
126
|
+
return writer;
|
|
127
|
+
},
|
|
128
|
+
decode(input, length) {
|
|
129
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
130
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
131
|
+
const message = createBaseloanSummaryResponse();
|
|
132
|
+
while (reader.pos < end) {
|
|
133
|
+
const tag = reader.uint32();
|
|
134
|
+
switch (tag >>> 3) {
|
|
135
|
+
case 1:
|
|
136
|
+
if (tag !== 8) {
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
message.loc_limit = reader.int32();
|
|
140
|
+
continue;
|
|
141
|
+
case 2:
|
|
142
|
+
if (tag !== 18) {
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
message.bill_date = reader.string();
|
|
146
|
+
continue;
|
|
147
|
+
case 3:
|
|
148
|
+
if (tag !== 24) {
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
message.minimum_request_amount = reader.int32();
|
|
152
|
+
continue;
|
|
153
|
+
case 4:
|
|
154
|
+
if (tag !== 32) {
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
message.request_amount_increment_step = reader.int32();
|
|
158
|
+
continue;
|
|
159
|
+
case 5:
|
|
160
|
+
if (tag !== 40) {
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
message.used_loc = reader.int32();
|
|
164
|
+
continue;
|
|
165
|
+
case 6:
|
|
166
|
+
if (tag !== 48) {
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
message.max_tenure = reader.int32();
|
|
170
|
+
continue;
|
|
171
|
+
case 7:
|
|
172
|
+
if (tag !== 56) {
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
message.min_tenure = reader.int32();
|
|
176
|
+
continue;
|
|
177
|
+
case 8:
|
|
178
|
+
if (tag !== 64) {
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
message.rate_of_interest = reader.int32();
|
|
182
|
+
continue;
|
|
183
|
+
case 9:
|
|
184
|
+
if (tag !== 74) {
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
message.info_popup_heading = reader.string();
|
|
188
|
+
continue;
|
|
189
|
+
case 10:
|
|
190
|
+
if (tag !== 82) {
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
message.info_popup_body = reader.string();
|
|
194
|
+
continue;
|
|
195
|
+
case 11:
|
|
196
|
+
if (tag !== 90) {
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
message.sanctioned_limit_heading = reader.string();
|
|
200
|
+
continue;
|
|
201
|
+
case 12:
|
|
202
|
+
if (tag !== 98) {
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
message.exposure_limit_heading = reader.string();
|
|
206
|
+
continue;
|
|
207
|
+
case 13:
|
|
208
|
+
if (tag !== 104) {
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
message.request_max_percentage = reader.int32();
|
|
212
|
+
continue;
|
|
213
|
+
case 14:
|
|
214
|
+
if (tag !== 112) {
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
message.loc_disable = reader.bool();
|
|
218
|
+
continue;
|
|
219
|
+
case 15:
|
|
220
|
+
if (tag !== 120) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
message.exposure_limit = reader.int32();
|
|
224
|
+
continue;
|
|
225
|
+
case 16:
|
|
226
|
+
if (tag !== 128) {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
message.sanctioned_limit = reader.int32();
|
|
230
|
+
continue;
|
|
231
|
+
case 17:
|
|
232
|
+
if (tag !== 136) {
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
message.remaining_senctioned_limit = reader.int32();
|
|
236
|
+
continue;
|
|
237
|
+
}
|
|
238
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
reader.skipType(tag & 7);
|
|
242
|
+
}
|
|
243
|
+
return message;
|
|
244
|
+
},
|
|
245
|
+
fromJSON(object) {
|
|
246
|
+
return {
|
|
247
|
+
loc_limit: isSet(object.loc_limit) ? globalThis.Number(object.loc_limit) : 0,
|
|
248
|
+
bill_date: isSet(object.bill_date) ? globalThis.String(object.bill_date) : "",
|
|
249
|
+
minimum_request_amount: isSet(object.minimum_request_amount)
|
|
250
|
+
? globalThis.Number(object.minimum_request_amount)
|
|
251
|
+
: 0,
|
|
252
|
+
request_amount_increment_step: isSet(object.request_amount_increment_step)
|
|
253
|
+
? globalThis.Number(object.request_amount_increment_step)
|
|
254
|
+
: 0,
|
|
255
|
+
used_loc: isSet(object.used_loc) ? globalThis.Number(object.used_loc) : 0,
|
|
256
|
+
max_tenure: isSet(object.max_tenure) ? globalThis.Number(object.max_tenure) : 0,
|
|
257
|
+
min_tenure: isSet(object.min_tenure) ? globalThis.Number(object.min_tenure) : 0,
|
|
258
|
+
rate_of_interest: isSet(object.rate_of_interest) ? globalThis.Number(object.rate_of_interest) : 0,
|
|
259
|
+
info_popup_heading: isSet(object.info_popup_heading) ? globalThis.String(object.info_popup_heading) : "",
|
|
260
|
+
info_popup_body: isSet(object.info_popup_body) ? globalThis.String(object.info_popup_body) : "",
|
|
261
|
+
sanctioned_limit_heading: isSet(object.sanctioned_limit_heading)
|
|
262
|
+
? globalThis.String(object.sanctioned_limit_heading)
|
|
263
|
+
: "",
|
|
264
|
+
exposure_limit_heading: isSet(object.exposure_limit_heading)
|
|
265
|
+
? globalThis.String(object.exposure_limit_heading)
|
|
266
|
+
: "",
|
|
267
|
+
request_max_percentage: isSet(object.request_max_percentage)
|
|
268
|
+
? globalThis.Number(object.request_max_percentage)
|
|
269
|
+
: 0,
|
|
270
|
+
loc_disable: isSet(object.loc_disable) ? globalThis.Boolean(object.loc_disable) : false,
|
|
271
|
+
exposure_limit: isSet(object.exposure_limit) ? globalThis.Number(object.exposure_limit) : 0,
|
|
272
|
+
sanctioned_limit: isSet(object.sanctioned_limit) ? globalThis.Number(object.sanctioned_limit) : 0,
|
|
273
|
+
remaining_senctioned_limit: isSet(object.remaining_senctioned_limit)
|
|
274
|
+
? globalThis.Number(object.remaining_senctioned_limit)
|
|
275
|
+
: 0,
|
|
276
|
+
};
|
|
277
|
+
},
|
|
278
|
+
toJSON(message) {
|
|
279
|
+
const obj = {};
|
|
280
|
+
if (message.loc_limit !== 0) {
|
|
281
|
+
obj.loc_limit = Math.round(message.loc_limit);
|
|
282
|
+
}
|
|
283
|
+
if (message.bill_date !== "") {
|
|
284
|
+
obj.bill_date = message.bill_date;
|
|
285
|
+
}
|
|
286
|
+
if (message.minimum_request_amount !== 0) {
|
|
287
|
+
obj.minimum_request_amount = Math.round(message.minimum_request_amount);
|
|
288
|
+
}
|
|
289
|
+
if (message.request_amount_increment_step !== 0) {
|
|
290
|
+
obj.request_amount_increment_step = Math.round(message.request_amount_increment_step);
|
|
291
|
+
}
|
|
292
|
+
if (message.used_loc !== 0) {
|
|
293
|
+
obj.used_loc = Math.round(message.used_loc);
|
|
294
|
+
}
|
|
295
|
+
if (message.max_tenure !== 0) {
|
|
296
|
+
obj.max_tenure = Math.round(message.max_tenure);
|
|
297
|
+
}
|
|
298
|
+
if (message.min_tenure !== 0) {
|
|
299
|
+
obj.min_tenure = Math.round(message.min_tenure);
|
|
300
|
+
}
|
|
301
|
+
if (message.rate_of_interest !== 0) {
|
|
302
|
+
obj.rate_of_interest = Math.round(message.rate_of_interest);
|
|
303
|
+
}
|
|
304
|
+
if (message.info_popup_heading !== "") {
|
|
305
|
+
obj.info_popup_heading = message.info_popup_heading;
|
|
306
|
+
}
|
|
307
|
+
if (message.info_popup_body !== "") {
|
|
308
|
+
obj.info_popup_body = message.info_popup_body;
|
|
309
|
+
}
|
|
310
|
+
if (message.sanctioned_limit_heading !== "") {
|
|
311
|
+
obj.sanctioned_limit_heading = message.sanctioned_limit_heading;
|
|
312
|
+
}
|
|
313
|
+
if (message.exposure_limit_heading !== "") {
|
|
314
|
+
obj.exposure_limit_heading = message.exposure_limit_heading;
|
|
315
|
+
}
|
|
316
|
+
if (message.request_max_percentage !== 0) {
|
|
317
|
+
obj.request_max_percentage = Math.round(message.request_max_percentage);
|
|
318
|
+
}
|
|
319
|
+
if (message.loc_disable !== false) {
|
|
320
|
+
obj.loc_disable = message.loc_disable;
|
|
321
|
+
}
|
|
322
|
+
if (message.exposure_limit !== 0) {
|
|
323
|
+
obj.exposure_limit = Math.round(message.exposure_limit);
|
|
324
|
+
}
|
|
325
|
+
if (message.sanctioned_limit !== 0) {
|
|
326
|
+
obj.sanctioned_limit = Math.round(message.sanctioned_limit);
|
|
327
|
+
}
|
|
328
|
+
if (message.remaining_senctioned_limit !== 0) {
|
|
329
|
+
obj.remaining_senctioned_limit = Math.round(message.remaining_senctioned_limit);
|
|
330
|
+
}
|
|
331
|
+
return obj;
|
|
332
|
+
},
|
|
333
|
+
create(base) {
|
|
334
|
+
return exports.loanSummaryResponse.fromPartial(base ?? {});
|
|
335
|
+
},
|
|
336
|
+
fromPartial(object) {
|
|
337
|
+
const message = createBaseloanSummaryResponse();
|
|
338
|
+
message.loc_limit = object.loc_limit ?? 0;
|
|
339
|
+
message.bill_date = object.bill_date ?? "";
|
|
340
|
+
message.minimum_request_amount = object.minimum_request_amount ?? 0;
|
|
341
|
+
message.request_amount_increment_step = object.request_amount_increment_step ?? 0;
|
|
342
|
+
message.used_loc = object.used_loc ?? 0;
|
|
343
|
+
message.max_tenure = object.max_tenure ?? 0;
|
|
344
|
+
message.min_tenure = object.min_tenure ?? 0;
|
|
345
|
+
message.rate_of_interest = object.rate_of_interest ?? 0;
|
|
346
|
+
message.info_popup_heading = object.info_popup_heading ?? "";
|
|
347
|
+
message.info_popup_body = object.info_popup_body ?? "";
|
|
348
|
+
message.sanctioned_limit_heading = object.sanctioned_limit_heading ?? "";
|
|
349
|
+
message.exposure_limit_heading = object.exposure_limit_heading ?? "";
|
|
350
|
+
message.request_max_percentage = object.request_max_percentage ?? 0;
|
|
351
|
+
message.loc_disable = object.loc_disable ?? false;
|
|
352
|
+
message.exposure_limit = object.exposure_limit ?? 0;
|
|
353
|
+
message.sanctioned_limit = object.sanctioned_limit ?? 0;
|
|
354
|
+
message.remaining_senctioned_limit = object.remaining_senctioned_limit ?? 0;
|
|
355
|
+
return message;
|
|
356
|
+
},
|
|
357
|
+
};
|
|
358
|
+
function isSet(value) {
|
|
359
|
+
return value !== null && value !== undefined;
|
|
360
|
+
}
|