@stashfin/grpc 1.2.625 → 1.2.627
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/kyc/fetchaadhaarbypan.d.ts +1 -1
- package/ts/kyc/fetchaadhaarbypan.js +20 -28
- package/ts/loans/getlocpartnertenure.d.ts +58 -0
- package/ts/loans/getlocpartnertenure.js +355 -0
- package/ts/loans/getloctenure.d.ts +3 -5
- package/ts/loans/getloctenure.js +30 -30
- package/ts/loans/getpartnerlocwithdraw.d.ts +111 -0
- package/ts/loans/getpartnerlocwithdraw.js +1289 -0
- package/ts/loans.d.ts +28 -0
- package/ts/loans.js +20 -0
package/package.json
CHANGED
|
@@ -10,8 +10,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.PanData = exports.Data = exports.fetchAadhaarByPanResponse = exports.fetchAadhaarByPanRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
13
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
const timestamp_1 = require("../google/protobuf/timestamp");
|
|
15
15
|
exports.protobufPackage = "kyc.fetchaadhaarbypan";
|
|
16
16
|
function createBasefetchAadhaarByPanRequest() {
|
|
17
17
|
return { pan_number: "" };
|
|
@@ -64,7 +64,7 @@ exports.fetchAadhaarByPanRequest = {
|
|
|
64
64
|
},
|
|
65
65
|
};
|
|
66
66
|
function createBasefetchAadhaarByPanResponse() {
|
|
67
|
-
return { request_id: "", transaction_id: "", status: 0, data: undefined, timestamp:
|
|
67
|
+
return { request_id: "", transaction_id: "", status: 0, data: undefined, timestamp: 0, path: "" };
|
|
68
68
|
}
|
|
69
69
|
exports.fetchAadhaarByPanResponse = {
|
|
70
70
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -80,8 +80,8 @@ exports.fetchAadhaarByPanResponse = {
|
|
|
80
80
|
if (message.data !== undefined) {
|
|
81
81
|
exports.Data.encode(message.data, writer.uint32(34).fork()).ldelim();
|
|
82
82
|
}
|
|
83
|
-
if (message.timestamp !==
|
|
84
|
-
|
|
83
|
+
if (message.timestamp !== 0) {
|
|
84
|
+
writer.uint32(40).uint64(message.timestamp);
|
|
85
85
|
}
|
|
86
86
|
if (message.path !== "") {
|
|
87
87
|
writer.uint32(50).string(message.path);
|
|
@@ -120,10 +120,10 @@ exports.fetchAadhaarByPanResponse = {
|
|
|
120
120
|
message.data = exports.Data.decode(reader, reader.uint32());
|
|
121
121
|
continue;
|
|
122
122
|
case 5:
|
|
123
|
-
if (tag !==
|
|
123
|
+
if (tag !== 40) {
|
|
124
124
|
break;
|
|
125
125
|
}
|
|
126
|
-
message.timestamp =
|
|
126
|
+
message.timestamp = longToNumber(reader.uint64());
|
|
127
127
|
continue;
|
|
128
128
|
case 6:
|
|
129
129
|
if (tag !== 50) {
|
|
@@ -145,7 +145,7 @@ exports.fetchAadhaarByPanResponse = {
|
|
|
145
145
|
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
|
|
146
146
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
147
147
|
data: isSet(object.data) ? exports.Data.fromJSON(object.data) : undefined,
|
|
148
|
-
timestamp: isSet(object.timestamp) ?
|
|
148
|
+
timestamp: isSet(object.timestamp) ? globalThis.Number(object.timestamp) : 0,
|
|
149
149
|
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
150
150
|
};
|
|
151
151
|
},
|
|
@@ -163,8 +163,8 @@ exports.fetchAadhaarByPanResponse = {
|
|
|
163
163
|
if (message.data !== undefined) {
|
|
164
164
|
obj.data = exports.Data.toJSON(message.data);
|
|
165
165
|
}
|
|
166
|
-
if (message.timestamp !==
|
|
167
|
-
obj.timestamp = message.timestamp
|
|
166
|
+
if (message.timestamp !== 0) {
|
|
167
|
+
obj.timestamp = Math.round(message.timestamp);
|
|
168
168
|
}
|
|
169
169
|
if (message.path !== "") {
|
|
170
170
|
obj.path = message.path;
|
|
@@ -180,7 +180,7 @@ exports.fetchAadhaarByPanResponse = {
|
|
|
180
180
|
message.transaction_id = object.transaction_id ?? "";
|
|
181
181
|
message.status = object.status ?? 0;
|
|
182
182
|
message.data = (object.data !== undefined && object.data !== null) ? exports.Data.fromPartial(object.data) : undefined;
|
|
183
|
-
message.timestamp = object.timestamp ??
|
|
183
|
+
message.timestamp = object.timestamp ?? 0;
|
|
184
184
|
message.path = object.path ?? "";
|
|
185
185
|
return message;
|
|
186
186
|
},
|
|
@@ -347,26 +347,18 @@ exports.PanData = {
|
|
|
347
347
|
return message;
|
|
348
348
|
},
|
|
349
349
|
};
|
|
350
|
-
function
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
return { seconds, nanos };
|
|
354
|
-
}
|
|
355
|
-
function fromTimestamp(t) {
|
|
356
|
-
let millis = (t.seconds || 0) * 1_000;
|
|
357
|
-
millis += (t.nanos || 0) / 1_000_000;
|
|
358
|
-
return new globalThis.Date(millis);
|
|
359
|
-
}
|
|
360
|
-
function fromJsonTimestamp(o) {
|
|
361
|
-
if (o instanceof globalThis.Date) {
|
|
362
|
-
return o;
|
|
350
|
+
function longToNumber(long) {
|
|
351
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
352
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
363
353
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}
|
|
367
|
-
else {
|
|
368
|
-
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
354
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
355
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
369
356
|
}
|
|
357
|
+
return long.toNumber();
|
|
358
|
+
}
|
|
359
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
360
|
+
minimal_1.default.util.Long = long_1.default;
|
|
361
|
+
minimal_1.default.configure();
|
|
370
362
|
}
|
|
371
363
|
function isSet(value) {
|
|
372
364
|
return value !== null && value !== undefined;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.getlocpartnertenure";
|
|
3
|
+
export interface GetLocPartnerTenureRequest {
|
|
4
|
+
mode: string;
|
|
5
|
+
amount: number;
|
|
6
|
+
}
|
|
7
|
+
export interface TenureDetail {
|
|
8
|
+
tenure: number;
|
|
9
|
+
expected_emi_amount: number;
|
|
10
|
+
}
|
|
11
|
+
export interface GetLocPartnerTenureResponse {
|
|
12
|
+
amount: number;
|
|
13
|
+
bill_date: string;
|
|
14
|
+
min_tenure: number;
|
|
15
|
+
max_tenure: number;
|
|
16
|
+
msg?: string | undefined;
|
|
17
|
+
first_emi_date: string;
|
|
18
|
+
fcp_fee: number;
|
|
19
|
+
fcp_interest: number;
|
|
20
|
+
tenure_details: TenureDetail[];
|
|
21
|
+
is_fip: boolean;
|
|
22
|
+
amount_grossup: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const GetLocPartnerTenureRequest: {
|
|
25
|
+
encode(message: GetLocPartnerTenureRequest, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetLocPartnerTenureRequest;
|
|
27
|
+
fromJSON(object: any): GetLocPartnerTenureRequest;
|
|
28
|
+
toJSON(message: GetLocPartnerTenureRequest): unknown;
|
|
29
|
+
create<I extends Exact<DeepPartial<GetLocPartnerTenureRequest>, I>>(base?: I): GetLocPartnerTenureRequest;
|
|
30
|
+
fromPartial<I extends Exact<DeepPartial<GetLocPartnerTenureRequest>, I>>(object: I): GetLocPartnerTenureRequest;
|
|
31
|
+
};
|
|
32
|
+
export declare const TenureDetail: {
|
|
33
|
+
encode(message: TenureDetail, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TenureDetail;
|
|
35
|
+
fromJSON(object: any): TenureDetail;
|
|
36
|
+
toJSON(message: TenureDetail): unknown;
|
|
37
|
+
create<I extends Exact<DeepPartial<TenureDetail>, I>>(base?: I): TenureDetail;
|
|
38
|
+
fromPartial<I extends Exact<DeepPartial<TenureDetail>, I>>(object: I): TenureDetail;
|
|
39
|
+
};
|
|
40
|
+
export declare const GetLocPartnerTenureResponse: {
|
|
41
|
+
encode(message: GetLocPartnerTenureResponse, writer?: _m0.Writer): _m0.Writer;
|
|
42
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetLocPartnerTenureResponse;
|
|
43
|
+
fromJSON(object: any): GetLocPartnerTenureResponse;
|
|
44
|
+
toJSON(message: GetLocPartnerTenureResponse): unknown;
|
|
45
|
+
create<I extends Exact<DeepPartial<GetLocPartnerTenureResponse>, I>>(base?: I): GetLocPartnerTenureResponse;
|
|
46
|
+
fromPartial<I extends Exact<DeepPartial<GetLocPartnerTenureResponse>, I>>(object: I): GetLocPartnerTenureResponse;
|
|
47
|
+
};
|
|
48
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
49
|
+
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 {} ? {
|
|
50
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
51
|
+
} : Partial<T>;
|
|
52
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
53
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
54
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
55
|
+
} & {
|
|
56
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
57
|
+
};
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,355 @@
|
|
|
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.29.3
|
|
6
|
+
// source: loans/getlocpartnertenure.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.GetLocPartnerTenureResponse = exports.TenureDetail = exports.GetLocPartnerTenureRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.getlocpartnertenure";
|
|
15
|
+
function createBaseGetLocPartnerTenureRequest() {
|
|
16
|
+
return { mode: "", amount: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.GetLocPartnerTenureRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.mode !== "") {
|
|
21
|
+
writer.uint32(10).string(message.mode);
|
|
22
|
+
}
|
|
23
|
+
if (message.amount !== 0) {
|
|
24
|
+
writer.uint32(16).int32(message.amount);
|
|
25
|
+
}
|
|
26
|
+
return writer;
|
|
27
|
+
},
|
|
28
|
+
decode(input, length) {
|
|
29
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = createBaseGetLocPartnerTenureRequest();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
if (tag !== 10) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.mode = reader.string();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 16) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.amount = reader.int32();
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
reader.skipType(tag & 7);
|
|
52
|
+
}
|
|
53
|
+
return message;
|
|
54
|
+
},
|
|
55
|
+
fromJSON(object) {
|
|
56
|
+
return {
|
|
57
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
58
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
toJSON(message) {
|
|
62
|
+
const obj = {};
|
|
63
|
+
if (message.mode !== "") {
|
|
64
|
+
obj.mode = message.mode;
|
|
65
|
+
}
|
|
66
|
+
if (message.amount !== 0) {
|
|
67
|
+
obj.amount = Math.round(message.amount);
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
},
|
|
71
|
+
create(base) {
|
|
72
|
+
return exports.GetLocPartnerTenureRequest.fromPartial(base ?? {});
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
const message = createBaseGetLocPartnerTenureRequest();
|
|
76
|
+
message.mode = object.mode ?? "";
|
|
77
|
+
message.amount = object.amount ?? 0;
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
function createBaseTenureDetail() {
|
|
82
|
+
return { tenure: 0, expected_emi_amount: 0 };
|
|
83
|
+
}
|
|
84
|
+
exports.TenureDetail = {
|
|
85
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
+
if (message.tenure !== 0) {
|
|
87
|
+
writer.uint32(8).int32(message.tenure);
|
|
88
|
+
}
|
|
89
|
+
if (message.expected_emi_amount !== 0) {
|
|
90
|
+
writer.uint32(16).int32(message.expected_emi_amount);
|
|
91
|
+
}
|
|
92
|
+
return writer;
|
|
93
|
+
},
|
|
94
|
+
decode(input, length) {
|
|
95
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
96
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
97
|
+
const message = createBaseTenureDetail();
|
|
98
|
+
while (reader.pos < end) {
|
|
99
|
+
const tag = reader.uint32();
|
|
100
|
+
switch (tag >>> 3) {
|
|
101
|
+
case 1:
|
|
102
|
+
if (tag !== 8) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
message.tenure = reader.int32();
|
|
106
|
+
continue;
|
|
107
|
+
case 2:
|
|
108
|
+
if (tag !== 16) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
message.expected_emi_amount = reader.int32();
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
reader.skipType(tag & 7);
|
|
118
|
+
}
|
|
119
|
+
return message;
|
|
120
|
+
},
|
|
121
|
+
fromJSON(object) {
|
|
122
|
+
return {
|
|
123
|
+
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
124
|
+
expected_emi_amount: isSet(object.expected_emi_amount) ? globalThis.Number(object.expected_emi_amount) : 0,
|
|
125
|
+
};
|
|
126
|
+
},
|
|
127
|
+
toJSON(message) {
|
|
128
|
+
const obj = {};
|
|
129
|
+
if (message.tenure !== 0) {
|
|
130
|
+
obj.tenure = Math.round(message.tenure);
|
|
131
|
+
}
|
|
132
|
+
if (message.expected_emi_amount !== 0) {
|
|
133
|
+
obj.expected_emi_amount = Math.round(message.expected_emi_amount);
|
|
134
|
+
}
|
|
135
|
+
return obj;
|
|
136
|
+
},
|
|
137
|
+
create(base) {
|
|
138
|
+
return exports.TenureDetail.fromPartial(base ?? {});
|
|
139
|
+
},
|
|
140
|
+
fromPartial(object) {
|
|
141
|
+
const message = createBaseTenureDetail();
|
|
142
|
+
message.tenure = object.tenure ?? 0;
|
|
143
|
+
message.expected_emi_amount = object.expected_emi_amount ?? 0;
|
|
144
|
+
return message;
|
|
145
|
+
},
|
|
146
|
+
};
|
|
147
|
+
function createBaseGetLocPartnerTenureResponse() {
|
|
148
|
+
return {
|
|
149
|
+
amount: 0,
|
|
150
|
+
bill_date: "",
|
|
151
|
+
min_tenure: 0,
|
|
152
|
+
max_tenure: 0,
|
|
153
|
+
msg: undefined,
|
|
154
|
+
first_emi_date: "",
|
|
155
|
+
fcp_fee: 0,
|
|
156
|
+
fcp_interest: 0,
|
|
157
|
+
tenure_details: [],
|
|
158
|
+
is_fip: false,
|
|
159
|
+
amount_grossup: "",
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
exports.GetLocPartnerTenureResponse = {
|
|
163
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
164
|
+
if (message.amount !== 0) {
|
|
165
|
+
writer.uint32(8).int32(message.amount);
|
|
166
|
+
}
|
|
167
|
+
if (message.bill_date !== "") {
|
|
168
|
+
writer.uint32(18).string(message.bill_date);
|
|
169
|
+
}
|
|
170
|
+
if (message.min_tenure !== 0) {
|
|
171
|
+
writer.uint32(24).int32(message.min_tenure);
|
|
172
|
+
}
|
|
173
|
+
if (message.max_tenure !== 0) {
|
|
174
|
+
writer.uint32(32).int32(message.max_tenure);
|
|
175
|
+
}
|
|
176
|
+
if (message.msg !== undefined) {
|
|
177
|
+
writer.uint32(42).string(message.msg);
|
|
178
|
+
}
|
|
179
|
+
if (message.first_emi_date !== "") {
|
|
180
|
+
writer.uint32(50).string(message.first_emi_date);
|
|
181
|
+
}
|
|
182
|
+
if (message.fcp_fee !== 0) {
|
|
183
|
+
writer.uint32(56).int32(message.fcp_fee);
|
|
184
|
+
}
|
|
185
|
+
if (message.fcp_interest !== 0) {
|
|
186
|
+
writer.uint32(64).int32(message.fcp_interest);
|
|
187
|
+
}
|
|
188
|
+
for (const v of message.tenure_details) {
|
|
189
|
+
exports.TenureDetail.encode(v, writer.uint32(74).fork()).ldelim();
|
|
190
|
+
}
|
|
191
|
+
if (message.is_fip !== false) {
|
|
192
|
+
writer.uint32(80).bool(message.is_fip);
|
|
193
|
+
}
|
|
194
|
+
if (message.amount_grossup !== "") {
|
|
195
|
+
writer.uint32(90).string(message.amount_grossup);
|
|
196
|
+
}
|
|
197
|
+
return writer;
|
|
198
|
+
},
|
|
199
|
+
decode(input, length) {
|
|
200
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
201
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
202
|
+
const message = createBaseGetLocPartnerTenureResponse();
|
|
203
|
+
while (reader.pos < end) {
|
|
204
|
+
const tag = reader.uint32();
|
|
205
|
+
switch (tag >>> 3) {
|
|
206
|
+
case 1:
|
|
207
|
+
if (tag !== 8) {
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
message.amount = reader.int32();
|
|
211
|
+
continue;
|
|
212
|
+
case 2:
|
|
213
|
+
if (tag !== 18) {
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
message.bill_date = reader.string();
|
|
217
|
+
continue;
|
|
218
|
+
case 3:
|
|
219
|
+
if (tag !== 24) {
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
message.min_tenure = reader.int32();
|
|
223
|
+
continue;
|
|
224
|
+
case 4:
|
|
225
|
+
if (tag !== 32) {
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
message.max_tenure = reader.int32();
|
|
229
|
+
continue;
|
|
230
|
+
case 5:
|
|
231
|
+
if (tag !== 42) {
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
message.msg = reader.string();
|
|
235
|
+
continue;
|
|
236
|
+
case 6:
|
|
237
|
+
if (tag !== 50) {
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
message.first_emi_date = reader.string();
|
|
241
|
+
continue;
|
|
242
|
+
case 7:
|
|
243
|
+
if (tag !== 56) {
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
message.fcp_fee = reader.int32();
|
|
247
|
+
continue;
|
|
248
|
+
case 8:
|
|
249
|
+
if (tag !== 64) {
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
message.fcp_interest = reader.int32();
|
|
253
|
+
continue;
|
|
254
|
+
case 9:
|
|
255
|
+
if (tag !== 74) {
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
message.tenure_details.push(exports.TenureDetail.decode(reader, reader.uint32()));
|
|
259
|
+
continue;
|
|
260
|
+
case 10:
|
|
261
|
+
if (tag !== 80) {
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
message.is_fip = reader.bool();
|
|
265
|
+
continue;
|
|
266
|
+
case 11:
|
|
267
|
+
if (tag !== 90) {
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
message.amount_grossup = reader.string();
|
|
271
|
+
continue;
|
|
272
|
+
}
|
|
273
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
reader.skipType(tag & 7);
|
|
277
|
+
}
|
|
278
|
+
return message;
|
|
279
|
+
},
|
|
280
|
+
fromJSON(object) {
|
|
281
|
+
return {
|
|
282
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
283
|
+
bill_date: isSet(object.bill_date) ? globalThis.String(object.bill_date) : "",
|
|
284
|
+
min_tenure: isSet(object.min_tenure) ? globalThis.Number(object.min_tenure) : 0,
|
|
285
|
+
max_tenure: isSet(object.max_tenure) ? globalThis.Number(object.max_tenure) : 0,
|
|
286
|
+
msg: isSet(object.msg) ? globalThis.String(object.msg) : undefined,
|
|
287
|
+
first_emi_date: isSet(object.first_emi_date) ? globalThis.String(object.first_emi_date) : "",
|
|
288
|
+
fcp_fee: isSet(object.fcp_fee) ? globalThis.Number(object.fcp_fee) : 0,
|
|
289
|
+
fcp_interest: isSet(object.fcp_interest) ? globalThis.Number(object.fcp_interest) : 0,
|
|
290
|
+
tenure_details: globalThis.Array.isArray(object?.tenure_details)
|
|
291
|
+
? object.tenure_details.map((e) => exports.TenureDetail.fromJSON(e))
|
|
292
|
+
: [],
|
|
293
|
+
is_fip: isSet(object.is_fip) ? globalThis.Boolean(object.is_fip) : false,
|
|
294
|
+
amount_grossup: isSet(object.amount_grossup) ? globalThis.String(object.amount_grossup) : "",
|
|
295
|
+
};
|
|
296
|
+
},
|
|
297
|
+
toJSON(message) {
|
|
298
|
+
const obj = {};
|
|
299
|
+
if (message.amount !== 0) {
|
|
300
|
+
obj.amount = Math.round(message.amount);
|
|
301
|
+
}
|
|
302
|
+
if (message.bill_date !== "") {
|
|
303
|
+
obj.bill_date = message.bill_date;
|
|
304
|
+
}
|
|
305
|
+
if (message.min_tenure !== 0) {
|
|
306
|
+
obj.min_tenure = Math.round(message.min_tenure);
|
|
307
|
+
}
|
|
308
|
+
if (message.max_tenure !== 0) {
|
|
309
|
+
obj.max_tenure = Math.round(message.max_tenure);
|
|
310
|
+
}
|
|
311
|
+
if (message.msg !== undefined) {
|
|
312
|
+
obj.msg = message.msg;
|
|
313
|
+
}
|
|
314
|
+
if (message.first_emi_date !== "") {
|
|
315
|
+
obj.first_emi_date = message.first_emi_date;
|
|
316
|
+
}
|
|
317
|
+
if (message.fcp_fee !== 0) {
|
|
318
|
+
obj.fcp_fee = Math.round(message.fcp_fee);
|
|
319
|
+
}
|
|
320
|
+
if (message.fcp_interest !== 0) {
|
|
321
|
+
obj.fcp_interest = Math.round(message.fcp_interest);
|
|
322
|
+
}
|
|
323
|
+
if (message.tenure_details?.length) {
|
|
324
|
+
obj.tenure_details = message.tenure_details.map((e) => exports.TenureDetail.toJSON(e));
|
|
325
|
+
}
|
|
326
|
+
if (message.is_fip !== false) {
|
|
327
|
+
obj.is_fip = message.is_fip;
|
|
328
|
+
}
|
|
329
|
+
if (message.amount_grossup !== "") {
|
|
330
|
+
obj.amount_grossup = message.amount_grossup;
|
|
331
|
+
}
|
|
332
|
+
return obj;
|
|
333
|
+
},
|
|
334
|
+
create(base) {
|
|
335
|
+
return exports.GetLocPartnerTenureResponse.fromPartial(base ?? {});
|
|
336
|
+
},
|
|
337
|
+
fromPartial(object) {
|
|
338
|
+
const message = createBaseGetLocPartnerTenureResponse();
|
|
339
|
+
message.amount = object.amount ?? 0;
|
|
340
|
+
message.bill_date = object.bill_date ?? "";
|
|
341
|
+
message.min_tenure = object.min_tenure ?? 0;
|
|
342
|
+
message.max_tenure = object.max_tenure ?? 0;
|
|
343
|
+
message.msg = object.msg ?? undefined;
|
|
344
|
+
message.first_emi_date = object.first_emi_date ?? "";
|
|
345
|
+
message.fcp_fee = object.fcp_fee ?? 0;
|
|
346
|
+
message.fcp_interest = object.fcp_interest ?? 0;
|
|
347
|
+
message.tenure_details = object.tenure_details?.map((e) => exports.TenureDetail.fromPartial(e)) || [];
|
|
348
|
+
message.is_fip = object.is_fip ?? false;
|
|
349
|
+
message.amount_grossup = object.amount_grossup ?? "";
|
|
350
|
+
return message;
|
|
351
|
+
},
|
|
352
|
+
};
|
|
353
|
+
function isSet(value) {
|
|
354
|
+
return value !== null && value !== undefined;
|
|
355
|
+
}
|
|
@@ -9,18 +9,16 @@ export interface TenureDetail {
|
|
|
9
9
|
}
|
|
10
10
|
export interface GetLocTenureResponse {
|
|
11
11
|
amount: number;
|
|
12
|
-
/** Format: YYYY-MM-DD */
|
|
13
12
|
bill_date: string;
|
|
14
13
|
min_tenure: number;
|
|
15
14
|
max_tenure: number;
|
|
16
|
-
msg
|
|
17
|
-
/** Format: YYYY-MM-DD */
|
|
15
|
+
msg?: string | undefined;
|
|
18
16
|
first_emi_date: string;
|
|
19
|
-
fcp_fee:
|
|
17
|
+
fcp_fee: number;
|
|
20
18
|
fcp_interest: number;
|
|
21
19
|
tenure_details: TenureDetail[];
|
|
22
20
|
is_fip: boolean;
|
|
23
|
-
amount_grossup:
|
|
21
|
+
amount_grossup: string;
|
|
24
22
|
}
|
|
25
23
|
export declare const GetLocTenureRequest: {
|
|
26
24
|
encode(message: GetLocTenureRequest, writer?: _m0.Writer): _m0.Writer;
|