@stashfin/grpc 1.0.33 → 1.2.2
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/getprofile.js +1 -1
- package/ts/customers/getstep.js +1 -1
- package/ts/customers/profilebasic.js +1 -1
- package/ts/customers/profileupdatetnc.js +1 -1
- package/ts/customers/sendemailtoken.js +1 -1
- package/ts/customers/sendotp.js +1 -1
- package/ts/customers/setmpin.js +1 -1
- package/ts/customers/step1.js +1 -1
- package/ts/customers/step10.js +1 -1
- package/ts/customers/step2.js +1 -1
- package/ts/customers/step7.js +1 -1
- package/ts/customers/step8.js +1 -1
- package/ts/customers/step9.js +1 -1
- package/ts/customers/stepstatic.js +1 -1
- package/ts/customers/verifyemail.js +1 -1
- package/ts/customers/verifympin.js +1 -1
- package/ts/customers/verifyotp.js +1 -1
- package/ts/customers.js +1 -1
- package/ts/example.js +1 -1
- package/ts/loans/banklist.d.ts +36 -0
- package/ts/loans/banklist.js +134 -0
- package/ts/loans/calculateemi.d.ts +48 -0
- package/ts/loans/calculateemi.js +201 -0
- package/ts/loans/creditlimit.d.ts +35 -0
- package/ts/loans/creditlimit.js +120 -0
- package/ts/loans.d.ts +56 -0
- package/ts/loans.js +44 -0
- package/ts/stashcash/creditsc.js +1 -1
- package/ts/stashcash/debitsc.d.ts +3 -2
- package/ts/stashcash/debitsc.js +24 -10
- package/ts/stashcash/getscbalance.d.ts +1 -0
- package/ts/stashcash/getscbalance.js +24 -2
- package/ts/stashcash/getschistory.js +1 -1
- package/ts/stashcash/reversesc.js +1 -1
- package/ts/stashcash.js +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/getprofile.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/getstep.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/getstep.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/profilebasic.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/profileupdatetnc.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/sendemailtoken.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/sendotp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/sendotp.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/setmpin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/setmpin.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/step1.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/step1.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/step10.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/step10.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/step2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/step2.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/step7.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/step7.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/step8.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/step8.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/step9.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/step9.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/stepstatic.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/verifyemail.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/verifympin.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/verifyotp.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/ts/example.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: example.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.banklist";
|
|
3
|
+
export interface bankListRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface bankListResponse {
|
|
6
|
+
bank_name: string;
|
|
7
|
+
ifsc_code: number;
|
|
8
|
+
account_number: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const bankListRequest: {
|
|
11
|
+
encode(_: bankListRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): bankListRequest;
|
|
13
|
+
fromJSON(_: any): bankListRequest;
|
|
14
|
+
toJSON(_: bankListRequest): unknown;
|
|
15
|
+
create<I extends Exact<DeepPartial<bankListRequest>, I>>(base?: I): bankListRequest;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<bankListRequest>, I>>(_: I): bankListRequest;
|
|
17
|
+
};
|
|
18
|
+
export declare const bankListResponse: {
|
|
19
|
+
encode(message: bankListResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): bankListResponse;
|
|
21
|
+
fromJSON(object: any): bankListResponse;
|
|
22
|
+
toJSON(message: bankListResponse): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<bankListResponse>, I>>(base?: I): bankListResponse;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<bankListResponse>, I>>(object: I): bankListResponse;
|
|
25
|
+
};
|
|
26
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
27
|
+
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 {} ? {
|
|
28
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
29
|
+
} : Partial<T>;
|
|
30
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
31
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
32
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
33
|
+
} & {
|
|
34
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,134 @@
|
|
|
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/banklist.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.bankListResponse = exports.bankListRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.banklist";
|
|
15
|
+
function createBasebankListRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.bankListRequest = {
|
|
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 = createBasebankListRequest();
|
|
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.bankListRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasebankListRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasebankListResponse() {
|
|
53
|
+
return { bank_name: "", ifsc_code: 0, account_number: 0 };
|
|
54
|
+
}
|
|
55
|
+
exports.bankListResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.bank_name !== "") {
|
|
58
|
+
writer.uint32(10).string(message.bank_name);
|
|
59
|
+
}
|
|
60
|
+
if (message.ifsc_code !== 0) {
|
|
61
|
+
writer.uint32(16).int32(message.ifsc_code);
|
|
62
|
+
}
|
|
63
|
+
if (message.account_number !== 0) {
|
|
64
|
+
writer.uint32(24).int32(message.account_number);
|
|
65
|
+
}
|
|
66
|
+
return writer;
|
|
67
|
+
},
|
|
68
|
+
decode(input, length) {
|
|
69
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
70
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
71
|
+
const message = createBasebankListResponse();
|
|
72
|
+
while (reader.pos < end) {
|
|
73
|
+
const tag = reader.uint32();
|
|
74
|
+
switch (tag >>> 3) {
|
|
75
|
+
case 1:
|
|
76
|
+
if (tag !== 10) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
message.bank_name = reader.string();
|
|
80
|
+
continue;
|
|
81
|
+
case 2:
|
|
82
|
+
if (tag !== 16) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
message.ifsc_code = reader.int32();
|
|
86
|
+
continue;
|
|
87
|
+
case 3:
|
|
88
|
+
if (tag !== 24) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
message.account_number = reader.int32();
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
reader.skipType(tag & 7);
|
|
98
|
+
}
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
fromJSON(object) {
|
|
102
|
+
return {
|
|
103
|
+
bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : "",
|
|
104
|
+
ifsc_code: isSet(object.ifsc_code) ? globalThis.Number(object.ifsc_code) : 0,
|
|
105
|
+
account_number: isSet(object.account_number) ? globalThis.Number(object.account_number) : 0,
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
toJSON(message) {
|
|
109
|
+
const obj = {};
|
|
110
|
+
if (message.bank_name !== "") {
|
|
111
|
+
obj.bank_name = message.bank_name;
|
|
112
|
+
}
|
|
113
|
+
if (message.ifsc_code !== 0) {
|
|
114
|
+
obj.ifsc_code = Math.round(message.ifsc_code);
|
|
115
|
+
}
|
|
116
|
+
if (message.account_number !== 0) {
|
|
117
|
+
obj.account_number = Math.round(message.account_number);
|
|
118
|
+
}
|
|
119
|
+
return obj;
|
|
120
|
+
},
|
|
121
|
+
create(base) {
|
|
122
|
+
return exports.bankListResponse.fromPartial(base ?? {});
|
|
123
|
+
},
|
|
124
|
+
fromPartial(object) {
|
|
125
|
+
const message = createBasebankListResponse();
|
|
126
|
+
message.bank_name = object.bank_name ?? "";
|
|
127
|
+
message.ifsc_code = object.ifsc_code ?? 0;
|
|
128
|
+
message.account_number = object.account_number ?? 0;
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
function isSet(value) {
|
|
133
|
+
return value !== null && value !== undefined;
|
|
134
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.calculateemi";
|
|
3
|
+
export interface calculateEmiRequest {
|
|
4
|
+
loc_limit: number;
|
|
5
|
+
}
|
|
6
|
+
export interface calculateEmiResponse {
|
|
7
|
+
disbursal_amount: number;
|
|
8
|
+
emi_calculation: calculateEmiResponse_Field[];
|
|
9
|
+
}
|
|
10
|
+
export interface calculateEmiResponse_Field {
|
|
11
|
+
tenure: number;
|
|
12
|
+
thirdparty_amount: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const calculateEmiRequest: {
|
|
15
|
+
encode(message: calculateEmiRequest, writer?: _m0.Writer): _m0.Writer;
|
|
16
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): calculateEmiRequest;
|
|
17
|
+
fromJSON(object: any): calculateEmiRequest;
|
|
18
|
+
toJSON(message: calculateEmiRequest): unknown;
|
|
19
|
+
create<I extends Exact<DeepPartial<calculateEmiRequest>, I>>(base?: I): calculateEmiRequest;
|
|
20
|
+
fromPartial<I extends Exact<DeepPartial<calculateEmiRequest>, I>>(object: I): calculateEmiRequest;
|
|
21
|
+
};
|
|
22
|
+
export declare const calculateEmiResponse: {
|
|
23
|
+
encode(message: calculateEmiResponse, writer?: _m0.Writer): _m0.Writer;
|
|
24
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): calculateEmiResponse;
|
|
25
|
+
fromJSON(object: any): calculateEmiResponse;
|
|
26
|
+
toJSON(message: calculateEmiResponse): unknown;
|
|
27
|
+
create<I extends Exact<DeepPartial<calculateEmiResponse>, I>>(base?: I): calculateEmiResponse;
|
|
28
|
+
fromPartial<I extends Exact<DeepPartial<calculateEmiResponse>, I>>(object: I): calculateEmiResponse;
|
|
29
|
+
};
|
|
30
|
+
export declare const calculateEmiResponse_Field: {
|
|
31
|
+
encode(message: calculateEmiResponse_Field, writer?: _m0.Writer): _m0.Writer;
|
|
32
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): calculateEmiResponse_Field;
|
|
33
|
+
fromJSON(object: any): calculateEmiResponse_Field;
|
|
34
|
+
toJSON(message: calculateEmiResponse_Field): unknown;
|
|
35
|
+
create<I extends Exact<DeepPartial<calculateEmiResponse_Field>, I>>(base?: I): calculateEmiResponse_Field;
|
|
36
|
+
fromPartial<I extends Exact<DeepPartial<calculateEmiResponse_Field>, I>>(object: I): calculateEmiResponse_Field;
|
|
37
|
+
};
|
|
38
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
39
|
+
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 {} ? {
|
|
40
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
41
|
+
} : Partial<T>;
|
|
42
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
43
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
44
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
45
|
+
} & {
|
|
46
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
47
|
+
};
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,201 @@
|
|
|
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/calculateemi.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.calculateEmiResponse_Field = exports.calculateEmiResponse = exports.calculateEmiRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.calculateemi";
|
|
15
|
+
function createBasecalculateEmiRequest() {
|
|
16
|
+
return { loc_limit: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.calculateEmiRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.loc_limit !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.loc_limit);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBasecalculateEmiRequest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 8) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.loc_limit = reader.int32();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
reader.skipType(tag & 7);
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { loc_limit: isSet(object.loc_limit) ? globalThis.Number(object.loc_limit) : 0 };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.loc_limit !== 0) {
|
|
52
|
+
obj.loc_limit = Math.round(message.loc_limit);
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.calculateEmiRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBasecalculateEmiRequest();
|
|
61
|
+
message.loc_limit = object.loc_limit ?? 0;
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBasecalculateEmiResponse() {
|
|
66
|
+
return { disbursal_amount: 0, emi_calculation: [] };
|
|
67
|
+
}
|
|
68
|
+
exports.calculateEmiResponse = {
|
|
69
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
+
if (message.disbursal_amount !== 0) {
|
|
71
|
+
writer.uint32(8).int32(message.disbursal_amount);
|
|
72
|
+
}
|
|
73
|
+
for (const v of message.emi_calculation) {
|
|
74
|
+
exports.calculateEmiResponse_Field.encode(v, writer.uint32(18).fork()).ldelim();
|
|
75
|
+
}
|
|
76
|
+
return writer;
|
|
77
|
+
},
|
|
78
|
+
decode(input, length) {
|
|
79
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
80
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
81
|
+
const message = createBasecalculateEmiResponse();
|
|
82
|
+
while (reader.pos < end) {
|
|
83
|
+
const tag = reader.uint32();
|
|
84
|
+
switch (tag >>> 3) {
|
|
85
|
+
case 1:
|
|
86
|
+
if (tag !== 8) {
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
message.disbursal_amount = reader.int32();
|
|
90
|
+
continue;
|
|
91
|
+
case 2:
|
|
92
|
+
if (tag !== 18) {
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
message.emi_calculation.push(exports.calculateEmiResponse_Field.decode(reader, reader.uint32()));
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
reader.skipType(tag & 7);
|
|
102
|
+
}
|
|
103
|
+
return message;
|
|
104
|
+
},
|
|
105
|
+
fromJSON(object) {
|
|
106
|
+
return {
|
|
107
|
+
disbursal_amount: isSet(object.disbursal_amount) ? globalThis.Number(object.disbursal_amount) : 0,
|
|
108
|
+
emi_calculation: globalThis.Array.isArray(object?.emi_calculation)
|
|
109
|
+
? object.emi_calculation.map((e) => exports.calculateEmiResponse_Field.fromJSON(e))
|
|
110
|
+
: [],
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
toJSON(message) {
|
|
114
|
+
const obj = {};
|
|
115
|
+
if (message.disbursal_amount !== 0) {
|
|
116
|
+
obj.disbursal_amount = Math.round(message.disbursal_amount);
|
|
117
|
+
}
|
|
118
|
+
if (message.emi_calculation?.length) {
|
|
119
|
+
obj.emi_calculation = message.emi_calculation.map((e) => exports.calculateEmiResponse_Field.toJSON(e));
|
|
120
|
+
}
|
|
121
|
+
return obj;
|
|
122
|
+
},
|
|
123
|
+
create(base) {
|
|
124
|
+
return exports.calculateEmiResponse.fromPartial(base ?? {});
|
|
125
|
+
},
|
|
126
|
+
fromPartial(object) {
|
|
127
|
+
const message = createBasecalculateEmiResponse();
|
|
128
|
+
message.disbursal_amount = object.disbursal_amount ?? 0;
|
|
129
|
+
message.emi_calculation = object.emi_calculation?.map((e) => exports.calculateEmiResponse_Field.fromPartial(e)) || [];
|
|
130
|
+
return message;
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
function createBasecalculateEmiResponse_Field() {
|
|
134
|
+
return { tenure: 0, thirdparty_amount: 0 };
|
|
135
|
+
}
|
|
136
|
+
exports.calculateEmiResponse_Field = {
|
|
137
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
138
|
+
if (message.tenure !== 0) {
|
|
139
|
+
writer.uint32(8).int32(message.tenure);
|
|
140
|
+
}
|
|
141
|
+
if (message.thirdparty_amount !== 0) {
|
|
142
|
+
writer.uint32(16).int32(message.thirdparty_amount);
|
|
143
|
+
}
|
|
144
|
+
return writer;
|
|
145
|
+
},
|
|
146
|
+
decode(input, length) {
|
|
147
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
148
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
149
|
+
const message = createBasecalculateEmiResponse_Field();
|
|
150
|
+
while (reader.pos < end) {
|
|
151
|
+
const tag = reader.uint32();
|
|
152
|
+
switch (tag >>> 3) {
|
|
153
|
+
case 1:
|
|
154
|
+
if (tag !== 8) {
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
message.tenure = reader.int32();
|
|
158
|
+
continue;
|
|
159
|
+
case 2:
|
|
160
|
+
if (tag !== 16) {
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
message.thirdparty_amount = reader.int32();
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
reader.skipType(tag & 7);
|
|
170
|
+
}
|
|
171
|
+
return message;
|
|
172
|
+
},
|
|
173
|
+
fromJSON(object) {
|
|
174
|
+
return {
|
|
175
|
+
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
176
|
+
thirdparty_amount: isSet(object.thirdparty_amount) ? globalThis.Number(object.thirdparty_amount) : 0,
|
|
177
|
+
};
|
|
178
|
+
},
|
|
179
|
+
toJSON(message) {
|
|
180
|
+
const obj = {};
|
|
181
|
+
if (message.tenure !== 0) {
|
|
182
|
+
obj.tenure = Math.round(message.tenure);
|
|
183
|
+
}
|
|
184
|
+
if (message.thirdparty_amount !== 0) {
|
|
185
|
+
obj.thirdparty_amount = Math.round(message.thirdparty_amount);
|
|
186
|
+
}
|
|
187
|
+
return obj;
|
|
188
|
+
},
|
|
189
|
+
create(base) {
|
|
190
|
+
return exports.calculateEmiResponse_Field.fromPartial(base ?? {});
|
|
191
|
+
},
|
|
192
|
+
fromPartial(object) {
|
|
193
|
+
const message = createBasecalculateEmiResponse_Field();
|
|
194
|
+
message.tenure = object.tenure ?? 0;
|
|
195
|
+
message.thirdparty_amount = object.thirdparty_amount ?? 0;
|
|
196
|
+
return message;
|
|
197
|
+
},
|
|
198
|
+
};
|
|
199
|
+
function isSet(value) {
|
|
200
|
+
return value !== null && value !== undefined;
|
|
201
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.creditlimit";
|
|
3
|
+
export interface creditLimitRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface creditLimitResponse {
|
|
6
|
+
loc_limit: number;
|
|
7
|
+
used_limit: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const creditLimitRequest: {
|
|
10
|
+
encode(_: creditLimitRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): creditLimitRequest;
|
|
12
|
+
fromJSON(_: any): creditLimitRequest;
|
|
13
|
+
toJSON(_: creditLimitRequest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<creditLimitRequest>, I>>(base?: I): creditLimitRequest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<creditLimitRequest>, I>>(_: I): creditLimitRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const creditLimitResponse: {
|
|
18
|
+
encode(message: creditLimitResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): creditLimitResponse;
|
|
20
|
+
fromJSON(object: any): creditLimitResponse;
|
|
21
|
+
toJSON(message: creditLimitResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<creditLimitResponse>, I>>(base?: I): creditLimitResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<creditLimitResponse>, I>>(object: I): creditLimitResponse;
|
|
24
|
+
};
|
|
25
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
|
+
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 {} ? {
|
|
27
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
28
|
+
} : Partial<T>;
|
|
29
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
30
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
31
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
32
|
+
} & {
|
|
33
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,120 @@
|
|
|
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/creditlimit.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.creditLimitResponse = exports.creditLimitRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.creditlimit";
|
|
15
|
+
function createBasecreditLimitRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.creditLimitRequest = {
|
|
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 = createBasecreditLimitRequest();
|
|
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.creditLimitRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasecreditLimitRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasecreditLimitResponse() {
|
|
53
|
+
return { loc_limit: 0, used_limit: 0 };
|
|
54
|
+
}
|
|
55
|
+
exports.creditLimitResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.loc_limit !== 0) {
|
|
58
|
+
writer.uint32(8).int32(message.loc_limit);
|
|
59
|
+
}
|
|
60
|
+
if (message.used_limit !== 0) {
|
|
61
|
+
writer.uint32(16).int32(message.used_limit);
|
|
62
|
+
}
|
|
63
|
+
return writer;
|
|
64
|
+
},
|
|
65
|
+
decode(input, length) {
|
|
66
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
67
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
68
|
+
const message = createBasecreditLimitResponse();
|
|
69
|
+
while (reader.pos < end) {
|
|
70
|
+
const tag = reader.uint32();
|
|
71
|
+
switch (tag >>> 3) {
|
|
72
|
+
case 1:
|
|
73
|
+
if (tag !== 8) {
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
message.loc_limit = reader.int32();
|
|
77
|
+
continue;
|
|
78
|
+
case 2:
|
|
79
|
+
if (tag !== 16) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.used_limit = reader.int32();
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
reader.skipType(tag & 7);
|
|
89
|
+
}
|
|
90
|
+
return message;
|
|
91
|
+
},
|
|
92
|
+
fromJSON(object) {
|
|
93
|
+
return {
|
|
94
|
+
loc_limit: isSet(object.loc_limit) ? globalThis.Number(object.loc_limit) : 0,
|
|
95
|
+
used_limit: isSet(object.used_limit) ? globalThis.Number(object.used_limit) : 0,
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
toJSON(message) {
|
|
99
|
+
const obj = {};
|
|
100
|
+
if (message.loc_limit !== 0) {
|
|
101
|
+
obj.loc_limit = Math.round(message.loc_limit);
|
|
102
|
+
}
|
|
103
|
+
if (message.used_limit !== 0) {
|
|
104
|
+
obj.used_limit = Math.round(message.used_limit);
|
|
105
|
+
}
|
|
106
|
+
return obj;
|
|
107
|
+
},
|
|
108
|
+
create(base) {
|
|
109
|
+
return exports.creditLimitResponse.fromPartial(base ?? {});
|
|
110
|
+
},
|
|
111
|
+
fromPartial(object) {
|
|
112
|
+
const message = createBasecreditLimitResponse();
|
|
113
|
+
message.loc_limit = object.loc_limit ?? 0;
|
|
114
|
+
message.used_limit = object.used_limit ?? 0;
|
|
115
|
+
return message;
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
function isSet(value) {
|
|
119
|
+
return value !== null && value !== undefined;
|
|
120
|
+
}
|
package/ts/loans.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { bankListRequest, bankListResponse } from "./loans/banklist";
|
|
3
|
+
import { calculateEmiRequest, calculateEmiResponse } from "./loans/calculateemi";
|
|
4
|
+
import { creditLimitRequest, creditLimitResponse } from "./loans/creditlimit";
|
|
5
|
+
export declare const protobufPackage = "service";
|
|
6
|
+
export type loansService = typeof loansService;
|
|
7
|
+
export declare const loansService: {
|
|
8
|
+
readonly creditlimit: {
|
|
9
|
+
readonly path: "/service.loans/creditlimit";
|
|
10
|
+
readonly requestStream: false;
|
|
11
|
+
readonly responseStream: false;
|
|
12
|
+
readonly requestSerialize: (value: creditLimitRequest) => Buffer;
|
|
13
|
+
readonly requestDeserialize: (value: Buffer) => creditLimitRequest;
|
|
14
|
+
readonly responseSerialize: (value: creditLimitResponse) => Buffer;
|
|
15
|
+
readonly responseDeserialize: (value: Buffer) => creditLimitResponse;
|
|
16
|
+
};
|
|
17
|
+
readonly calculateemi: {
|
|
18
|
+
readonly path: "/service.loans/calculateemi";
|
|
19
|
+
readonly requestStream: false;
|
|
20
|
+
readonly responseStream: false;
|
|
21
|
+
readonly requestSerialize: (value: calculateEmiRequest) => Buffer;
|
|
22
|
+
readonly requestDeserialize: (value: Buffer) => calculateEmiRequest;
|
|
23
|
+
readonly responseSerialize: (value: calculateEmiResponse) => Buffer;
|
|
24
|
+
readonly responseDeserialize: (value: Buffer) => calculateEmiResponse;
|
|
25
|
+
};
|
|
26
|
+
readonly banklist: {
|
|
27
|
+
readonly path: "/service.loans/banklist";
|
|
28
|
+
readonly requestStream: false;
|
|
29
|
+
readonly responseStream: false;
|
|
30
|
+
readonly requestSerialize: (value: bankListRequest) => Buffer;
|
|
31
|
+
readonly requestDeserialize: (value: Buffer) => bankListRequest;
|
|
32
|
+
readonly responseSerialize: (value: bankListResponse) => Buffer;
|
|
33
|
+
readonly responseDeserialize: (value: Buffer) => bankListResponse;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export interface loansServer extends UntypedServiceImplementation {
|
|
37
|
+
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
38
|
+
calculateemi: handleUnaryCall<calculateEmiRequest, calculateEmiResponse>;
|
|
39
|
+
banklist: handleUnaryCall<bankListRequest, bankListResponse>;
|
|
40
|
+
}
|
|
41
|
+
export interface loansClient extends Client {
|
|
42
|
+
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
43
|
+
creditlimit(request: creditLimitRequest, metadata: Metadata, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
44
|
+
creditlimit(request: creditLimitRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
45
|
+
calculateemi(request: calculateEmiRequest, callback: (error: ServiceError | null, response: calculateEmiResponse) => void): ClientUnaryCall;
|
|
46
|
+
calculateemi(request: calculateEmiRequest, metadata: Metadata, callback: (error: ServiceError | null, response: calculateEmiResponse) => void): ClientUnaryCall;
|
|
47
|
+
calculateemi(request: calculateEmiRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: calculateEmiResponse) => void): ClientUnaryCall;
|
|
48
|
+
banklist(request: bankListRequest, callback: (error: ServiceError | null, response: bankListResponse) => void): ClientUnaryCall;
|
|
49
|
+
banklist(request: bankListRequest, metadata: Metadata, callback: (error: ServiceError | null, response: bankListResponse) => void): ClientUnaryCall;
|
|
50
|
+
banklist(request: bankListRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: bankListResponse) => void): ClientUnaryCall;
|
|
51
|
+
}
|
|
52
|
+
export declare const loansClient: {
|
|
53
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
|
54
|
+
service: typeof loansService;
|
|
55
|
+
serviceName: string;
|
|
56
|
+
};
|
package/ts/loans.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
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.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.loansClient = exports.loansService = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
+
const banklist_1 = require("./loans/banklist");
|
|
12
|
+
const calculateemi_1 = require("./loans/calculateemi");
|
|
13
|
+
const creditlimit_1 = require("./loans/creditlimit");
|
|
14
|
+
exports.protobufPackage = "service";
|
|
15
|
+
exports.loansService = {
|
|
16
|
+
creditlimit: {
|
|
17
|
+
path: "/service.loans/creditlimit",
|
|
18
|
+
requestStream: false,
|
|
19
|
+
responseStream: false,
|
|
20
|
+
requestSerialize: (value) => Buffer.from(creditlimit_1.creditLimitRequest.encode(value).finish()),
|
|
21
|
+
requestDeserialize: (value) => creditlimit_1.creditLimitRequest.decode(value),
|
|
22
|
+
responseSerialize: (value) => Buffer.from(creditlimit_1.creditLimitResponse.encode(value).finish()),
|
|
23
|
+
responseDeserialize: (value) => creditlimit_1.creditLimitResponse.decode(value),
|
|
24
|
+
},
|
|
25
|
+
calculateemi: {
|
|
26
|
+
path: "/service.loans/calculateemi",
|
|
27
|
+
requestStream: false,
|
|
28
|
+
responseStream: false,
|
|
29
|
+
requestSerialize: (value) => Buffer.from(calculateemi_1.calculateEmiRequest.encode(value).finish()),
|
|
30
|
+
requestDeserialize: (value) => calculateemi_1.calculateEmiRequest.decode(value),
|
|
31
|
+
responseSerialize: (value) => Buffer.from(calculateemi_1.calculateEmiResponse.encode(value).finish()),
|
|
32
|
+
responseDeserialize: (value) => calculateemi_1.calculateEmiResponse.decode(value),
|
|
33
|
+
},
|
|
34
|
+
banklist: {
|
|
35
|
+
path: "/service.loans/banklist",
|
|
36
|
+
requestStream: false,
|
|
37
|
+
responseStream: false,
|
|
38
|
+
requestSerialize: (value) => Buffer.from(banklist_1.bankListRequest.encode(value).finish()),
|
|
39
|
+
requestDeserialize: (value) => banklist_1.bankListRequest.decode(value),
|
|
40
|
+
responseSerialize: (value) => Buffer.from(banklist_1.bankListResponse.encode(value).finish()),
|
|
41
|
+
responseDeserialize: (value) => banklist_1.bankListResponse.decode(value),
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|
package/ts/stashcash/creditsc.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: stashcash/creditsc.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -3,9 +3,10 @@ export declare const protobufPackage = "stashcash.debitsc";
|
|
|
3
3
|
export interface request {
|
|
4
4
|
customer_id: number;
|
|
5
5
|
flag: number;
|
|
6
|
-
campaign_id
|
|
7
|
-
amount
|
|
6
|
+
campaign_id: number;
|
|
7
|
+
amount: number;
|
|
8
8
|
sc_type?: string | undefined;
|
|
9
|
+
txn_id?: string | undefined;
|
|
9
10
|
}
|
|
10
11
|
export interface response {
|
|
11
12
|
status: string;
|
package/ts/stashcash/debitsc.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: stashcash/debitsc.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -14,7 +14,7 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "stashcash.debitsc";
|
|
16
16
|
function createBaserequest() {
|
|
17
|
-
return { customer_id: 0, flag: 0, campaign_id:
|
|
17
|
+
return { customer_id: 0, flag: 0, campaign_id: 0, amount: 0, sc_type: undefined, txn_id: undefined };
|
|
18
18
|
}
|
|
19
19
|
exports.request = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -24,15 +24,18 @@ exports.request = {
|
|
|
24
24
|
if (message.flag !== 0) {
|
|
25
25
|
writer.uint32(16).int32(message.flag);
|
|
26
26
|
}
|
|
27
|
-
if (message.campaign_id !==
|
|
27
|
+
if (message.campaign_id !== 0) {
|
|
28
28
|
writer.uint32(24).int64(message.campaign_id);
|
|
29
29
|
}
|
|
30
|
-
if (message.amount !==
|
|
30
|
+
if (message.amount !== 0) {
|
|
31
31
|
writer.uint32(37).float(message.amount);
|
|
32
32
|
}
|
|
33
33
|
if (message.sc_type !== undefined) {
|
|
34
34
|
writer.uint32(42).string(message.sc_type);
|
|
35
35
|
}
|
|
36
|
+
if (message.txn_id !== undefined) {
|
|
37
|
+
writer.uint32(50).string(message.txn_id);
|
|
38
|
+
}
|
|
36
39
|
return writer;
|
|
37
40
|
},
|
|
38
41
|
decode(input, length) {
|
|
@@ -72,6 +75,12 @@ exports.request = {
|
|
|
72
75
|
}
|
|
73
76
|
message.sc_type = reader.string();
|
|
74
77
|
continue;
|
|
78
|
+
case 6:
|
|
79
|
+
if (tag !== 50) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.txn_id = reader.string();
|
|
83
|
+
continue;
|
|
75
84
|
}
|
|
76
85
|
if ((tag & 7) === 4 || tag === 0) {
|
|
77
86
|
break;
|
|
@@ -84,9 +93,10 @@ exports.request = {
|
|
|
84
93
|
return {
|
|
85
94
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
86
95
|
flag: isSet(object.flag) ? globalThis.Number(object.flag) : 0,
|
|
87
|
-
campaign_id: isSet(object.campaign_id) ? globalThis.Number(object.campaign_id) :
|
|
88
|
-
amount: isSet(object.amount) ? globalThis.Number(object.amount) :
|
|
96
|
+
campaign_id: isSet(object.campaign_id) ? globalThis.Number(object.campaign_id) : 0,
|
|
97
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
89
98
|
sc_type: isSet(object.sc_type) ? globalThis.String(object.sc_type) : undefined,
|
|
99
|
+
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : undefined,
|
|
90
100
|
};
|
|
91
101
|
},
|
|
92
102
|
toJSON(message) {
|
|
@@ -97,15 +107,18 @@ exports.request = {
|
|
|
97
107
|
if (message.flag !== 0) {
|
|
98
108
|
obj.flag = Math.round(message.flag);
|
|
99
109
|
}
|
|
100
|
-
if (message.campaign_id !==
|
|
110
|
+
if (message.campaign_id !== 0) {
|
|
101
111
|
obj.campaign_id = Math.round(message.campaign_id);
|
|
102
112
|
}
|
|
103
|
-
if (message.amount !==
|
|
113
|
+
if (message.amount !== 0) {
|
|
104
114
|
obj.amount = message.amount;
|
|
105
115
|
}
|
|
106
116
|
if (message.sc_type !== undefined) {
|
|
107
117
|
obj.sc_type = message.sc_type;
|
|
108
118
|
}
|
|
119
|
+
if (message.txn_id !== undefined) {
|
|
120
|
+
obj.txn_id = message.txn_id;
|
|
121
|
+
}
|
|
109
122
|
return obj;
|
|
110
123
|
},
|
|
111
124
|
create(base) {
|
|
@@ -115,9 +128,10 @@ exports.request = {
|
|
|
115
128
|
const message = createBaserequest();
|
|
116
129
|
message.customer_id = object.customer_id ?? 0;
|
|
117
130
|
message.flag = object.flag ?? 0;
|
|
118
|
-
message.campaign_id = object.campaign_id ??
|
|
119
|
-
message.amount = object.amount ??
|
|
131
|
+
message.campaign_id = object.campaign_id ?? 0;
|
|
132
|
+
message.amount = object.amount ?? 0;
|
|
120
133
|
message.sc_type = object.sc_type ?? undefined;
|
|
134
|
+
message.txn_id = object.txn_id ?? undefined;
|
|
121
135
|
return message;
|
|
122
136
|
},
|
|
123
137
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: stashcash/getscbalance.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -132,7 +132,15 @@ exports.response = {
|
|
|
132
132
|
},
|
|
133
133
|
};
|
|
134
134
|
function createBaseresponse_Data() {
|
|
135
|
-
return {
|
|
135
|
+
return {
|
|
136
|
+
locked: 0,
|
|
137
|
+
unlocked: 0,
|
|
138
|
+
balance: 0,
|
|
139
|
+
rupee_balance: 0,
|
|
140
|
+
user_guide: false,
|
|
141
|
+
is_frozen: false,
|
|
142
|
+
conversion_factor: 0,
|
|
143
|
+
};
|
|
136
144
|
}
|
|
137
145
|
exports.response_Data = {
|
|
138
146
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -154,6 +162,9 @@ exports.response_Data = {
|
|
|
154
162
|
if (message.is_frozen !== false) {
|
|
155
163
|
writer.uint32(48).bool(message.is_frozen);
|
|
156
164
|
}
|
|
165
|
+
if (message.conversion_factor !== 0) {
|
|
166
|
+
writer.uint32(61).float(message.conversion_factor);
|
|
167
|
+
}
|
|
157
168
|
return writer;
|
|
158
169
|
},
|
|
159
170
|
decode(input, length) {
|
|
@@ -199,6 +210,12 @@ exports.response_Data = {
|
|
|
199
210
|
}
|
|
200
211
|
message.is_frozen = reader.bool();
|
|
201
212
|
continue;
|
|
213
|
+
case 7:
|
|
214
|
+
if (tag !== 61) {
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
message.conversion_factor = reader.float();
|
|
218
|
+
continue;
|
|
202
219
|
}
|
|
203
220
|
if ((tag & 7) === 4 || tag === 0) {
|
|
204
221
|
break;
|
|
@@ -215,6 +232,7 @@ exports.response_Data = {
|
|
|
215
232
|
rupee_balance: isSet(object.rupee_balance) ? globalThis.Number(object.rupee_balance) : 0,
|
|
216
233
|
user_guide: isSet(object.user_guide) ? globalThis.Boolean(object.user_guide) : false,
|
|
217
234
|
is_frozen: isSet(object.is_frozen) ? globalThis.Boolean(object.is_frozen) : false,
|
|
235
|
+
conversion_factor: isSet(object.conversion_factor) ? globalThis.Number(object.conversion_factor) : 0,
|
|
218
236
|
};
|
|
219
237
|
},
|
|
220
238
|
toJSON(message) {
|
|
@@ -237,6 +255,9 @@ exports.response_Data = {
|
|
|
237
255
|
if (message.is_frozen !== false) {
|
|
238
256
|
obj.is_frozen = message.is_frozen;
|
|
239
257
|
}
|
|
258
|
+
if (message.conversion_factor !== 0) {
|
|
259
|
+
obj.conversion_factor = message.conversion_factor;
|
|
260
|
+
}
|
|
240
261
|
return obj;
|
|
241
262
|
},
|
|
242
263
|
create(base) {
|
|
@@ -250,6 +271,7 @@ exports.response_Data = {
|
|
|
250
271
|
message.rupee_balance = object.rupee_balance ?? 0;
|
|
251
272
|
message.user_guide = object.user_guide ?? false;
|
|
252
273
|
message.is_frozen = object.is_frozen ?? false;
|
|
274
|
+
message.conversion_factor = object.conversion_factor ?? 0;
|
|
253
275
|
return message;
|
|
254
276
|
},
|
|
255
277
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: stashcash/getschistory.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: stashcash/reversesc.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/stashcash.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: stashcash.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|