@stashfin/grpc 1.2.202 → 1.2.204
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/enach/getweburl.d.ts +4 -5
- package/ts/customers/enach/getweburl.js +6 -19
- package/ts/loans/banklist.d.ts +2 -2
- package/ts/loans/banklist.js +17 -17
- package/ts/loans/fcppayment.d.ts +2 -0
- package/ts/loans/fcppayment.js +29 -1
- package/ts/loans/forecloseamount.d.ts +39 -0
- package/ts/loans/forecloseamount.js +175 -0
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "customers.enach.getweburl";
|
|
3
3
|
export interface getWebUrlRequest {
|
|
4
|
-
amount: number;
|
|
5
4
|
}
|
|
6
5
|
export interface getWebUrlResponse {
|
|
7
6
|
redirect_url: string;
|
|
8
7
|
}
|
|
9
8
|
export declare const getWebUrlRequest: {
|
|
10
|
-
encode(
|
|
9
|
+
encode(_: getWebUrlRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
10
|
decode(input: _m0.Reader | Uint8Array, length?: number): getWebUrlRequest;
|
|
12
|
-
fromJSON(
|
|
13
|
-
toJSON(
|
|
11
|
+
fromJSON(_: any): getWebUrlRequest;
|
|
12
|
+
toJSON(_: getWebUrlRequest): unknown;
|
|
14
13
|
create<I extends Exact<DeepPartial<getWebUrlRequest>, I>>(base?: I): getWebUrlRequest;
|
|
15
|
-
fromPartial<I extends Exact<DeepPartial<getWebUrlRequest>, I>>(
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<getWebUrlRequest>, I>>(_: I): getWebUrlRequest;
|
|
16
15
|
};
|
|
17
16
|
export declare const getWebUrlResponse: {
|
|
18
17
|
encode(message: getWebUrlResponse, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -13,13 +13,10 @@ exports.getWebUrlResponse = exports.getWebUrlRequest = exports.protobufPackage =
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.enach.getweburl";
|
|
15
15
|
function createBasegetWebUrlRequest() {
|
|
16
|
-
return {
|
|
16
|
+
return {};
|
|
17
17
|
}
|
|
18
18
|
exports.getWebUrlRequest = {
|
|
19
|
-
encode(
|
|
20
|
-
if (message.amount !== 0) {
|
|
21
|
-
writer.uint32(9).double(message.amount);
|
|
22
|
-
}
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
23
20
|
return writer;
|
|
24
21
|
},
|
|
25
22
|
decode(input, length) {
|
|
@@ -29,12 +26,6 @@ exports.getWebUrlRequest = {
|
|
|
29
26
|
while (reader.pos < end) {
|
|
30
27
|
const tag = reader.uint32();
|
|
31
28
|
switch (tag >>> 3) {
|
|
32
|
-
case 1:
|
|
33
|
-
if (tag !== 9) {
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
message.amount = reader.double();
|
|
37
|
-
continue;
|
|
38
29
|
}
|
|
39
30
|
if ((tag & 7) === 4 || tag === 0) {
|
|
40
31
|
break;
|
|
@@ -43,22 +34,18 @@ exports.getWebUrlRequest = {
|
|
|
43
34
|
}
|
|
44
35
|
return message;
|
|
45
36
|
},
|
|
46
|
-
fromJSON(
|
|
47
|
-
return {
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
48
39
|
},
|
|
49
|
-
toJSON(
|
|
40
|
+
toJSON(_) {
|
|
50
41
|
const obj = {};
|
|
51
|
-
if (message.amount !== 0) {
|
|
52
|
-
obj.amount = message.amount;
|
|
53
|
-
}
|
|
54
42
|
return obj;
|
|
55
43
|
},
|
|
56
44
|
create(base) {
|
|
57
45
|
return exports.getWebUrlRequest.fromPartial(base ?? {});
|
|
58
46
|
},
|
|
59
|
-
fromPartial(
|
|
47
|
+
fromPartial(_) {
|
|
60
48
|
const message = createBasegetWebUrlRequest();
|
|
61
|
-
message.amount = object.amount ?? 0;
|
|
62
49
|
return message;
|
|
63
50
|
},
|
|
64
51
|
};
|
package/ts/loans/banklist.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ export interface bankListRequest {
|
|
|
4
4
|
}
|
|
5
5
|
export interface bankListResponse {
|
|
6
6
|
id: number;
|
|
7
|
-
account_number:
|
|
7
|
+
account_number: string;
|
|
8
8
|
bank_name: string;
|
|
9
|
-
ifsc_code:
|
|
9
|
+
ifsc_code: string;
|
|
10
10
|
}
|
|
11
11
|
export declare const bankListRequest: {
|
|
12
12
|
encode(_: bankListRequest, writer?: _m0.Writer): _m0.Writer;
|
package/ts/loans/banklist.js
CHANGED
|
@@ -50,21 +50,21 @@ exports.bankListRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasebankListResponse() {
|
|
53
|
-
return { id: 0, account_number:
|
|
53
|
+
return { id: 0, account_number: "", bank_name: "", ifsc_code: "" };
|
|
54
54
|
}
|
|
55
55
|
exports.bankListResponse = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
57
|
if (message.id !== 0) {
|
|
58
58
|
writer.uint32(8).int32(message.id);
|
|
59
59
|
}
|
|
60
|
-
if (message.account_number !==
|
|
61
|
-
writer.uint32(
|
|
60
|
+
if (message.account_number !== "") {
|
|
61
|
+
writer.uint32(18).string(message.account_number);
|
|
62
62
|
}
|
|
63
63
|
if (message.bank_name !== "") {
|
|
64
64
|
writer.uint32(26).string(message.bank_name);
|
|
65
65
|
}
|
|
66
|
-
if (message.ifsc_code !==
|
|
67
|
-
writer.uint32(
|
|
66
|
+
if (message.ifsc_code !== "") {
|
|
67
|
+
writer.uint32(34).string(message.ifsc_code);
|
|
68
68
|
}
|
|
69
69
|
return writer;
|
|
70
70
|
},
|
|
@@ -82,10 +82,10 @@ exports.bankListResponse = {
|
|
|
82
82
|
message.id = reader.int32();
|
|
83
83
|
continue;
|
|
84
84
|
case 2:
|
|
85
|
-
if (tag !==
|
|
85
|
+
if (tag !== 18) {
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
|
-
message.account_number = reader.
|
|
88
|
+
message.account_number = reader.string();
|
|
89
89
|
continue;
|
|
90
90
|
case 3:
|
|
91
91
|
if (tag !== 26) {
|
|
@@ -94,10 +94,10 @@ exports.bankListResponse = {
|
|
|
94
94
|
message.bank_name = reader.string();
|
|
95
95
|
continue;
|
|
96
96
|
case 4:
|
|
97
|
-
if (tag !==
|
|
97
|
+
if (tag !== 34) {
|
|
98
98
|
break;
|
|
99
99
|
}
|
|
100
|
-
message.ifsc_code = reader.
|
|
100
|
+
message.ifsc_code = reader.string();
|
|
101
101
|
continue;
|
|
102
102
|
}
|
|
103
103
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -110,9 +110,9 @@ exports.bankListResponse = {
|
|
|
110
110
|
fromJSON(object) {
|
|
111
111
|
return {
|
|
112
112
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
113
|
-
account_number: isSet(object.account_number) ? globalThis.
|
|
113
|
+
account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "",
|
|
114
114
|
bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : "",
|
|
115
|
-
ifsc_code: isSet(object.ifsc_code) ? globalThis.
|
|
115
|
+
ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : "",
|
|
116
116
|
};
|
|
117
117
|
},
|
|
118
118
|
toJSON(message) {
|
|
@@ -120,14 +120,14 @@ exports.bankListResponse = {
|
|
|
120
120
|
if (message.id !== 0) {
|
|
121
121
|
obj.id = Math.round(message.id);
|
|
122
122
|
}
|
|
123
|
-
if (message.account_number !==
|
|
124
|
-
obj.account_number =
|
|
123
|
+
if (message.account_number !== "") {
|
|
124
|
+
obj.account_number = message.account_number;
|
|
125
125
|
}
|
|
126
126
|
if (message.bank_name !== "") {
|
|
127
127
|
obj.bank_name = message.bank_name;
|
|
128
128
|
}
|
|
129
|
-
if (message.ifsc_code !==
|
|
130
|
-
obj.ifsc_code =
|
|
129
|
+
if (message.ifsc_code !== "") {
|
|
130
|
+
obj.ifsc_code = message.ifsc_code;
|
|
131
131
|
}
|
|
132
132
|
return obj;
|
|
133
133
|
},
|
|
@@ -137,9 +137,9 @@ exports.bankListResponse = {
|
|
|
137
137
|
fromPartial(object) {
|
|
138
138
|
const message = createBasebankListResponse();
|
|
139
139
|
message.id = object.id ?? 0;
|
|
140
|
-
message.account_number = object.account_number ??
|
|
140
|
+
message.account_number = object.account_number ?? "";
|
|
141
141
|
message.bank_name = object.bank_name ?? "";
|
|
142
|
-
message.ifsc_code = object.ifsc_code ??
|
|
142
|
+
message.ifsc_code = object.ifsc_code ?? "";
|
|
143
143
|
return message;
|
|
144
144
|
},
|
|
145
145
|
};
|
package/ts/loans/fcppayment.d.ts
CHANGED
package/ts/loans/fcppayment.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.fcpPaymentResponse = exports.fcpPaymentRequest = exports.protobufPackage
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.fcppayment";
|
|
15
15
|
function createBasefcpPaymentRequest() {
|
|
16
|
-
return { bill_amount: 0, customerid: 0, loan_id: 0 };
|
|
16
|
+
return { bill_amount: 0, customerid: 0, loan_id: 0, payment_id: 0, mode: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.fcpPaymentRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -26,6 +26,12 @@ exports.fcpPaymentRequest = {
|
|
|
26
26
|
if (message.loan_id !== 0) {
|
|
27
27
|
writer.uint32(24).int32(message.loan_id);
|
|
28
28
|
}
|
|
29
|
+
if (message.payment_id !== 0) {
|
|
30
|
+
writer.uint32(32).int32(message.payment_id);
|
|
31
|
+
}
|
|
32
|
+
if (message.mode !== "") {
|
|
33
|
+
writer.uint32(42).string(message.mode);
|
|
34
|
+
}
|
|
29
35
|
return writer;
|
|
30
36
|
},
|
|
31
37
|
decode(input, length) {
|
|
@@ -53,6 +59,18 @@ exports.fcpPaymentRequest = {
|
|
|
53
59
|
}
|
|
54
60
|
message.loan_id = reader.int32();
|
|
55
61
|
continue;
|
|
62
|
+
case 4:
|
|
63
|
+
if (tag !== 32) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.payment_id = reader.int32();
|
|
67
|
+
continue;
|
|
68
|
+
case 5:
|
|
69
|
+
if (tag !== 42) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.mode = reader.string();
|
|
73
|
+
continue;
|
|
56
74
|
}
|
|
57
75
|
if ((tag & 7) === 4 || tag === 0) {
|
|
58
76
|
break;
|
|
@@ -66,6 +84,8 @@ exports.fcpPaymentRequest = {
|
|
|
66
84
|
bill_amount: isSet(object.bill_amount) ? globalThis.Number(object.bill_amount) : 0,
|
|
67
85
|
customerid: isSet(object.customerid) ? globalThis.Number(object.customerid) : 0,
|
|
68
86
|
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
87
|
+
payment_id: isSet(object.payment_id) ? globalThis.Number(object.payment_id) : 0,
|
|
88
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
69
89
|
};
|
|
70
90
|
},
|
|
71
91
|
toJSON(message) {
|
|
@@ -79,6 +99,12 @@ exports.fcpPaymentRequest = {
|
|
|
79
99
|
if (message.loan_id !== 0) {
|
|
80
100
|
obj.loan_id = Math.round(message.loan_id);
|
|
81
101
|
}
|
|
102
|
+
if (message.payment_id !== 0) {
|
|
103
|
+
obj.payment_id = Math.round(message.payment_id);
|
|
104
|
+
}
|
|
105
|
+
if (message.mode !== "") {
|
|
106
|
+
obj.mode = message.mode;
|
|
107
|
+
}
|
|
82
108
|
return obj;
|
|
83
109
|
},
|
|
84
110
|
create(base) {
|
|
@@ -89,6 +115,8 @@ exports.fcpPaymentRequest = {
|
|
|
89
115
|
message.bill_amount = object.bill_amount ?? 0;
|
|
90
116
|
message.customerid = object.customerid ?? 0;
|
|
91
117
|
message.loan_id = object.loan_id ?? 0;
|
|
118
|
+
message.payment_id = object.payment_id ?? 0;
|
|
119
|
+
message.mode = object.mode ?? "";
|
|
92
120
|
return message;
|
|
93
121
|
},
|
|
94
122
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.forecloseamount";
|
|
3
|
+
export interface forecloseAmountRequest {
|
|
4
|
+
amount: number;
|
|
5
|
+
customerid: number;
|
|
6
|
+
loan_id: number;
|
|
7
|
+
payment_id: number;
|
|
8
|
+
mode: string;
|
|
9
|
+
}
|
|
10
|
+
export interface forecloseAmountResponse {
|
|
11
|
+
foreclosed_amount: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const forecloseAmountRequest: {
|
|
14
|
+
encode(message: forecloseAmountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
15
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): forecloseAmountRequest;
|
|
16
|
+
fromJSON(object: any): forecloseAmountRequest;
|
|
17
|
+
toJSON(message: forecloseAmountRequest): unknown;
|
|
18
|
+
create<I extends Exact<DeepPartial<forecloseAmountRequest>, I>>(base?: I): forecloseAmountRequest;
|
|
19
|
+
fromPartial<I extends Exact<DeepPartial<forecloseAmountRequest>, I>>(object: I): forecloseAmountRequest;
|
|
20
|
+
};
|
|
21
|
+
export declare const forecloseAmountResponse: {
|
|
22
|
+
encode(message: forecloseAmountResponse, writer?: _m0.Writer): _m0.Writer;
|
|
23
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): forecloseAmountResponse;
|
|
24
|
+
fromJSON(object: any): forecloseAmountResponse;
|
|
25
|
+
toJSON(message: forecloseAmountResponse): unknown;
|
|
26
|
+
create<I extends Exact<DeepPartial<forecloseAmountResponse>, I>>(base?: I): forecloseAmountResponse;
|
|
27
|
+
fromPartial<I extends Exact<DeepPartial<forecloseAmountResponse>, I>>(object: I): forecloseAmountResponse;
|
|
28
|
+
};
|
|
29
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
30
|
+
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 {} ? {
|
|
31
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
32
|
+
} : Partial<T>;
|
|
33
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
34
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
35
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
36
|
+
} & {
|
|
37
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
38
|
+
};
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,175 @@
|
|
|
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.0
|
|
6
|
+
// source: loans/forecloseamount.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.forecloseAmountResponse = exports.forecloseAmountRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.forecloseamount";
|
|
15
|
+
function createBaseforecloseAmountRequest() {
|
|
16
|
+
return { amount: 0, customerid: 0, loan_id: 0, payment_id: 0, mode: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.forecloseAmountRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.amount !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.amount);
|
|
22
|
+
}
|
|
23
|
+
if (message.customerid !== 0) {
|
|
24
|
+
writer.uint32(16).int32(message.customerid);
|
|
25
|
+
}
|
|
26
|
+
if (message.loan_id !== 0) {
|
|
27
|
+
writer.uint32(24).int32(message.loan_id);
|
|
28
|
+
}
|
|
29
|
+
if (message.payment_id !== 0) {
|
|
30
|
+
writer.uint32(32).int32(message.payment_id);
|
|
31
|
+
}
|
|
32
|
+
if (message.mode !== "") {
|
|
33
|
+
writer.uint32(42).string(message.mode);
|
|
34
|
+
}
|
|
35
|
+
return writer;
|
|
36
|
+
},
|
|
37
|
+
decode(input, length) {
|
|
38
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
39
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
40
|
+
const message = createBaseforecloseAmountRequest();
|
|
41
|
+
while (reader.pos < end) {
|
|
42
|
+
const tag = reader.uint32();
|
|
43
|
+
switch (tag >>> 3) {
|
|
44
|
+
case 1:
|
|
45
|
+
if (tag !== 8) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.amount = reader.int32();
|
|
49
|
+
continue;
|
|
50
|
+
case 2:
|
|
51
|
+
if (tag !== 16) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.customerid = reader.int32();
|
|
55
|
+
continue;
|
|
56
|
+
case 3:
|
|
57
|
+
if (tag !== 24) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
message.loan_id = reader.int32();
|
|
61
|
+
continue;
|
|
62
|
+
case 4:
|
|
63
|
+
if (tag !== 32) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.payment_id = reader.int32();
|
|
67
|
+
continue;
|
|
68
|
+
case 5:
|
|
69
|
+
if (tag !== 42) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.mode = reader.string();
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
reader.skipType(tag & 7);
|
|
79
|
+
}
|
|
80
|
+
return message;
|
|
81
|
+
},
|
|
82
|
+
fromJSON(object) {
|
|
83
|
+
return {
|
|
84
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
85
|
+
customerid: isSet(object.customerid) ? globalThis.Number(object.customerid) : 0,
|
|
86
|
+
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
87
|
+
payment_id: isSet(object.payment_id) ? globalThis.Number(object.payment_id) : 0,
|
|
88
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
toJSON(message) {
|
|
92
|
+
const obj = {};
|
|
93
|
+
if (message.amount !== 0) {
|
|
94
|
+
obj.amount = Math.round(message.amount);
|
|
95
|
+
}
|
|
96
|
+
if (message.customerid !== 0) {
|
|
97
|
+
obj.customerid = Math.round(message.customerid);
|
|
98
|
+
}
|
|
99
|
+
if (message.loan_id !== 0) {
|
|
100
|
+
obj.loan_id = Math.round(message.loan_id);
|
|
101
|
+
}
|
|
102
|
+
if (message.payment_id !== 0) {
|
|
103
|
+
obj.payment_id = Math.round(message.payment_id);
|
|
104
|
+
}
|
|
105
|
+
if (message.mode !== "") {
|
|
106
|
+
obj.mode = message.mode;
|
|
107
|
+
}
|
|
108
|
+
return obj;
|
|
109
|
+
},
|
|
110
|
+
create(base) {
|
|
111
|
+
return exports.forecloseAmountRequest.fromPartial(base ?? {});
|
|
112
|
+
},
|
|
113
|
+
fromPartial(object) {
|
|
114
|
+
const message = createBaseforecloseAmountRequest();
|
|
115
|
+
message.amount = object.amount ?? 0;
|
|
116
|
+
message.customerid = object.customerid ?? 0;
|
|
117
|
+
message.loan_id = object.loan_id ?? 0;
|
|
118
|
+
message.payment_id = object.payment_id ?? 0;
|
|
119
|
+
message.mode = object.mode ?? "";
|
|
120
|
+
return message;
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
function createBaseforecloseAmountResponse() {
|
|
124
|
+
return { foreclosed_amount: 0 };
|
|
125
|
+
}
|
|
126
|
+
exports.forecloseAmountResponse = {
|
|
127
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
128
|
+
if (message.foreclosed_amount !== 0) {
|
|
129
|
+
writer.uint32(8).int32(message.foreclosed_amount);
|
|
130
|
+
}
|
|
131
|
+
return writer;
|
|
132
|
+
},
|
|
133
|
+
decode(input, length) {
|
|
134
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
135
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
136
|
+
const message = createBaseforecloseAmountResponse();
|
|
137
|
+
while (reader.pos < end) {
|
|
138
|
+
const tag = reader.uint32();
|
|
139
|
+
switch (tag >>> 3) {
|
|
140
|
+
case 1:
|
|
141
|
+
if (tag !== 8) {
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
message.foreclosed_amount = reader.int32();
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
reader.skipType(tag & 7);
|
|
151
|
+
}
|
|
152
|
+
return message;
|
|
153
|
+
},
|
|
154
|
+
fromJSON(object) {
|
|
155
|
+
return { foreclosed_amount: isSet(object.foreclosed_amount) ? globalThis.Number(object.foreclosed_amount) : 0 };
|
|
156
|
+
},
|
|
157
|
+
toJSON(message) {
|
|
158
|
+
const obj = {};
|
|
159
|
+
if (message.foreclosed_amount !== 0) {
|
|
160
|
+
obj.foreclosed_amount = Math.round(message.foreclosed_amount);
|
|
161
|
+
}
|
|
162
|
+
return obj;
|
|
163
|
+
},
|
|
164
|
+
create(base) {
|
|
165
|
+
return exports.forecloseAmountResponse.fromPartial(base ?? {});
|
|
166
|
+
},
|
|
167
|
+
fromPartial(object) {
|
|
168
|
+
const message = createBaseforecloseAmountResponse();
|
|
169
|
+
message.foreclosed_amount = object.foreclosed_amount ?? 0;
|
|
170
|
+
return message;
|
|
171
|
+
},
|
|
172
|
+
};
|
|
173
|
+
function isSet(value) {
|
|
174
|
+
return value !== null && value !== undefined;
|
|
175
|
+
}
|
package/ts/loans.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { bankListRequest, bankListResponse } from "./loans/banklist";
|
|
|
5
5
|
import { calculateEmiRequest, calculateEmiResponse } from "./loans/calculateemi";
|
|
6
6
|
import { creditLimitRequest, creditLimitResponse } from "./loans/creditlimit";
|
|
7
7
|
import { fcpPaymentRequest, fcpPaymentResponse } from "./loans/fcppayment";
|
|
8
|
+
import { forecloseAmountRequest, forecloseAmountResponse } from "./loans/forecloseamount";
|
|
8
9
|
import { futurePaymentMoreDetailsRequest, futurePaymentMoreDetailsResponse } from "./loans/futurepaymentmoredetails";
|
|
9
10
|
import { getBillDetailsRequest, getBillDetailsResponse } from "./loans/getbilldetails";
|
|
10
11
|
import { getCustomerLoanStatusRequest, getCustomerLoanStatusResponse } from "./loans/getcustomerloanstatus";
|
|
@@ -232,6 +233,15 @@ export declare const loansService: {
|
|
|
232
233
|
readonly responseSerialize: (value: fcpPaymentResponse) => Buffer;
|
|
233
234
|
readonly responseDeserialize: (value: Buffer) => fcpPaymentResponse;
|
|
234
235
|
};
|
|
236
|
+
readonly forecloseAmount: {
|
|
237
|
+
readonly path: "/service.loans/forecloseAmount";
|
|
238
|
+
readonly requestStream: false;
|
|
239
|
+
readonly responseStream: false;
|
|
240
|
+
readonly requestSerialize: (value: forecloseAmountRequest) => Buffer;
|
|
241
|
+
readonly requestDeserialize: (value: Buffer) => forecloseAmountRequest;
|
|
242
|
+
readonly responseSerialize: (value: forecloseAmountResponse) => Buffer;
|
|
243
|
+
readonly responseDeserialize: (value: Buffer) => forecloseAmountResponse;
|
|
244
|
+
};
|
|
235
245
|
};
|
|
236
246
|
export interface loansServer extends UntypedServiceImplementation {
|
|
237
247
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -257,6 +267,7 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
257
267
|
payNow: handleUnaryCall<payNowRequest, payNowResponse>;
|
|
258
268
|
amortization: handleUnaryCall<amortizationRequest, amortizationResponse>;
|
|
259
269
|
fcpPayment: handleUnaryCall<fcpPaymentRequest, fcpPaymentResponse>;
|
|
270
|
+
forecloseAmount: handleUnaryCall<forecloseAmountRequest, forecloseAmountResponse>;
|
|
260
271
|
}
|
|
261
272
|
export interface loansClient extends Client {
|
|
262
273
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -328,6 +339,9 @@ export interface loansClient extends Client {
|
|
|
328
339
|
fcpPayment(request: fcpPaymentRequest, callback: (error: ServiceError | null, response: fcpPaymentResponse) => void): ClientUnaryCall;
|
|
329
340
|
fcpPayment(request: fcpPaymentRequest, metadata: Metadata, callback: (error: ServiceError | null, response: fcpPaymentResponse) => void): ClientUnaryCall;
|
|
330
341
|
fcpPayment(request: fcpPaymentRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: fcpPaymentResponse) => void): ClientUnaryCall;
|
|
342
|
+
forecloseAmount(request: forecloseAmountRequest, callback: (error: ServiceError | null, response: forecloseAmountResponse) => void): ClientUnaryCall;
|
|
343
|
+
forecloseAmount(request: forecloseAmountRequest, metadata: Metadata, callback: (error: ServiceError | null, response: forecloseAmountResponse) => void): ClientUnaryCall;
|
|
344
|
+
forecloseAmount(request: forecloseAmountRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: forecloseAmountResponse) => void): ClientUnaryCall;
|
|
331
345
|
}
|
|
332
346
|
export declare const loansClient: {
|
|
333
347
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -14,6 +14,7 @@ const banklist_1 = require("./loans/banklist");
|
|
|
14
14
|
const calculateemi_1 = require("./loans/calculateemi");
|
|
15
15
|
const creditlimit_1 = require("./loans/creditlimit");
|
|
16
16
|
const fcppayment_1 = require("./loans/fcppayment");
|
|
17
|
+
const forecloseamount_1 = require("./loans/forecloseamount");
|
|
17
18
|
const futurepaymentmoredetails_1 = require("./loans/futurepaymentmoredetails");
|
|
18
19
|
const getbilldetails_1 = require("./loans/getbilldetails");
|
|
19
20
|
const getcustomerloanstatus_1 = require("./loans/getcustomerloanstatus");
|
|
@@ -240,5 +241,14 @@ exports.loansService = {
|
|
|
240
241
|
responseSerialize: (value) => Buffer.from(fcppayment_1.fcpPaymentResponse.encode(value).finish()),
|
|
241
242
|
responseDeserialize: (value) => fcppayment_1.fcpPaymentResponse.decode(value),
|
|
242
243
|
},
|
|
244
|
+
forecloseAmount: {
|
|
245
|
+
path: "/service.loans/forecloseAmount",
|
|
246
|
+
requestStream: false,
|
|
247
|
+
responseStream: false,
|
|
248
|
+
requestSerialize: (value) => Buffer.from(forecloseamount_1.forecloseAmountRequest.encode(value).finish()),
|
|
249
|
+
requestDeserialize: (value) => forecloseamount_1.forecloseAmountRequest.decode(value),
|
|
250
|
+
responseSerialize: (value) => Buffer.from(forecloseamount_1.forecloseAmountResponse.encode(value).finish()),
|
|
251
|
+
responseDeserialize: (value) => forecloseamount_1.forecloseAmountResponse.decode(value),
|
|
252
|
+
},
|
|
243
253
|
};
|
|
244
254
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|