@stashfin/grpc 1.2.49 → 1.2.51
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/addaddress.d.ts +50 -0
- package/ts/customers/addaddress.js +265 -0
- package/ts/customers/addbankaccountdetails.d.ts +37 -0
- package/ts/customers/addbankaccountdetails.js +147 -0
- package/ts/customers/createcustomerreference.d.ts +43 -0
- package/ts/customers/createcustomerreference.js +226 -0
- package/ts/customers/getbankaccountdetails.js +1 -1
- package/ts/customers/getbasicinfo.d.ts +20 -3
- package/ts/customers/getbasicinfo.js +171 -24
- package/ts/customers/getcities.d.ts +47 -0
- package/ts/customers/getcities.js +183 -0
- package/ts/customers/getcustomerbyid.d.ts +5 -0
- package/ts/customers/getcustomerbyid.js +76 -1
- package/ts/customers/getdashboard.d.ts +1 -0
- package/ts/customers/getdashboard.js +49 -34
- package/ts/customers/getdashboardmaincard.js +1 -1
- package/ts/customers/getkycweburl.d.ts +34 -0
- package/ts/customers/getkycweburl.js +104 -0
- package/ts/customers/getprofessionalinfo.d.ts +18 -1
- package/ts/customers/getprofessionalinfo.js +148 -10
- package/ts/customers/getprofile.d.ts +17 -2
- package/ts/customers/getprofile.js +146 -26
- package/ts/customers/getstates.d.ts +46 -0
- package/ts/customers/getstates.js +170 -0
- package/ts/customers/getstep.d.ts +19 -28
- package/ts/customers/getstep.js +159 -173
- package/ts/customers/profilebasic.js +1 -1
- package/ts/customers/profileupdatetnc.js +1 -1
- package/ts/customers/resetmpin.d.ts +36 -0
- package/ts/{customer/sendotp.js → customers/resetmpin.js} +47 -47
- package/ts/customers/savebasicdetails.d.ts +47 -0
- package/ts/customers/savebasicdetails.js +185 -0
- package/ts/customers/saveunlocklimit.d.ts +34 -0
- package/ts/{customer/profileupdatetnc.js → customers/saveunlocklimit.js} +20 -33
- 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.d.ts +2 -0
- package/ts/customers/step1.js +32 -4
- package/ts/customers/step10.js +1 -1
- package/ts/customers/step2.d.ts +5 -6
- package/ts/customers/step2.js +22 -37
- 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/updatedigilockertxn.d.ts +37 -0
- package/ts/{customer/verifympin.js → customers/updatedigilockertxn.js} +46 -48
- package/ts/customers/updatehypervergetxn.d.ts +36 -0
- package/ts/{customer/setmpin.js → customers/updatehypervergetxn.js} +30 -30
- package/ts/customers/verifyemail.js +1 -1
- package/ts/customers/verifympin.js +1 -1
- package/ts/customers/verifyotp.js +1 -1
- package/ts/customers.d.ts +180 -28
- package/ts/customers.js +125 -17
- package/ts/example.js +1 -1
- package/ts/google/protobuf/timestamp.js +1 -1
- package/ts/loans/approveloan.js +1 -1
- package/ts/loans/banklist.d.ts +0 -11
- package/ts/loans/banklist.js +6 -60
- package/ts/loans/calculateemi.d.ts +16 -2
- package/ts/loans/calculateemi.js +115 -19
- package/ts/loans/creditlimit.d.ts +8 -0
- package/ts/loans/creditlimit.js +129 -2
- package/ts/loans/restructureloan.d.ts +36 -0
- package/ts/loans/restructureloan.js +133 -0
- package/ts/loans/transactionlist.d.ts +50 -0
- package/ts/loans/transactionlist.js +229 -0
- package/ts/loans/updateinstallments.js +1 -1
- package/ts/loans/updateloan.js +1 -1
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +11 -1
- package/ts/stashcash/creditsc.js +1 -1
- package/ts/stashcash/debitsc.js +1 -1
- package/ts/stashcash/getscbalance.js +1 -1
- package/ts/stashcash/getschistory.js +1 -1
- package/ts/stashcash/reversesc.js +1 -1
- package/ts/stashcash.js +1 -1
- package/ts/customer/getprofile.d.ts +0 -38
- package/ts/customer/getprofile.js +0 -162
- package/ts/customer/getstep.d.ts +0 -78
- package/ts/customer/getstep.js +0 -420
- package/ts/customer/profileupdatetnc.d.ts +0 -35
- package/ts/customer/sendotp.d.ts +0 -36
- package/ts/customer/setmpin.d.ts +0 -36
- package/ts/customer/step1.d.ts +0 -69
- package/ts/customer/step1.js +0 -395
- package/ts/customer/step10.d.ts +0 -73
- package/ts/customer/step10.js +0 -459
- package/ts/customer/step2.d.ts +0 -68
- package/ts/customer/step2.js +0 -381
- package/ts/customer/step7.d.ts +0 -68
- package/ts/customer/step7.js +0 -381
- package/ts/customer/step8.d.ts +0 -69
- package/ts/customer/step8.js +0 -395
- package/ts/customer/step9.d.ts +0 -75
- package/ts/customer/step9.js +0 -489
- package/ts/customer/stepstatic.d.ts +0 -66
- package/ts/customer/stepstatic.js +0 -352
- package/ts/customer/verifympin.d.ts +0 -37
- package/ts/customer/verifyotp.d.ts +0 -39
- package/ts/customer/verifyotp.js +0 -177
- package/ts/customer.d.ts +0 -262
- package/ts/customer.js +0 -190
- package/ts/google/protobuf/any.d.ts +0 -138
- package/ts/google/protobuf/any.js +0 -108
- package/ts/payments/checkpaymentstatus.d.ts +0 -52
- package/ts/payments/checkpaymentstatus.js +0 -273
- package/ts/payments/createorder.d.ts +0 -39
- package/ts/payments/createorder.js +0 -191
- package/ts/payments/getpaymentdetails.d.ts +0 -57
- package/ts/payments/getpaymentdetails.js +0 -353
- package/ts/payments/getpaymentoptions.d.ts +0 -50
- package/ts/payments/getpaymentoptions.js +0 -231
- package/ts/payments/initiatepayment.d.ts +0 -54
- package/ts/payments/initiatepayment.js +0 -307
- package/ts/payments.d.ts +0 -70
- package/ts/payments.js +0 -54
|
@@ -0,0 +1,133 @@
|
|
|
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/restructureloan.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.restructureLoanResponse = exports.restructureLoanRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.restructureloan";
|
|
15
|
+
function createBaserestructureLoanRequest() {
|
|
16
|
+
return { loan_id: 0, tenure: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.restructureLoanRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.loan_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.loan_id);
|
|
22
|
+
}
|
|
23
|
+
if (message.tenure !== 0) {
|
|
24
|
+
writer.uint32(16).int32(message.tenure);
|
|
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 = createBaserestructureLoanRequest();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
if (tag !== 8) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.loan_id = reader.int32();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 16) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.tenure = 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
|
+
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
58
|
+
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
toJSON(message) {
|
|
62
|
+
const obj = {};
|
|
63
|
+
if (message.loan_id !== 0) {
|
|
64
|
+
obj.loan_id = Math.round(message.loan_id);
|
|
65
|
+
}
|
|
66
|
+
if (message.tenure !== 0) {
|
|
67
|
+
obj.tenure = Math.round(message.tenure);
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
},
|
|
71
|
+
create(base) {
|
|
72
|
+
return exports.restructureLoanRequest.fromPartial(base ?? {});
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
const message = createBaserestructureLoanRequest();
|
|
76
|
+
message.loan_id = object.loan_id ?? 0;
|
|
77
|
+
message.tenure = object.tenure ?? 0;
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
function createBaserestructureLoanResponse() {
|
|
82
|
+
return { id: 0 };
|
|
83
|
+
}
|
|
84
|
+
exports.restructureLoanResponse = {
|
|
85
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
+
if (message.id !== 0) {
|
|
87
|
+
writer.uint32(8).int32(message.id);
|
|
88
|
+
}
|
|
89
|
+
return writer;
|
|
90
|
+
},
|
|
91
|
+
decode(input, length) {
|
|
92
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
93
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
94
|
+
const message = createBaserestructureLoanResponse();
|
|
95
|
+
while (reader.pos < end) {
|
|
96
|
+
const tag = reader.uint32();
|
|
97
|
+
switch (tag >>> 3) {
|
|
98
|
+
case 1:
|
|
99
|
+
if (tag !== 8) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
message.id = reader.int32();
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
reader.skipType(tag & 7);
|
|
109
|
+
}
|
|
110
|
+
return message;
|
|
111
|
+
},
|
|
112
|
+
fromJSON(object) {
|
|
113
|
+
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
114
|
+
},
|
|
115
|
+
toJSON(message) {
|
|
116
|
+
const obj = {};
|
|
117
|
+
if (message.id !== 0) {
|
|
118
|
+
obj.id = Math.round(message.id);
|
|
119
|
+
}
|
|
120
|
+
return obj;
|
|
121
|
+
},
|
|
122
|
+
create(base) {
|
|
123
|
+
return exports.restructureLoanResponse.fromPartial(base ?? {});
|
|
124
|
+
},
|
|
125
|
+
fromPartial(object) {
|
|
126
|
+
const message = createBaserestructureLoanResponse();
|
|
127
|
+
message.id = object.id ?? 0;
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
function isSet(value) {
|
|
132
|
+
return value !== null && value !== undefined;
|
|
133
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.transactionlist";
|
|
3
|
+
export interface transactionListRequest {
|
|
4
|
+
filter_by: string;
|
|
5
|
+
}
|
|
6
|
+
export interface transactionListResponse {
|
|
7
|
+
data: transactionListResponse_Field[];
|
|
8
|
+
}
|
|
9
|
+
export interface transactionListResponse_Field {
|
|
10
|
+
id: number;
|
|
11
|
+
loan_amount: number;
|
|
12
|
+
emi_amount: number;
|
|
13
|
+
start_date: string;
|
|
14
|
+
close_date: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const transactionListRequest: {
|
|
17
|
+
encode(message: transactionListRequest, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): transactionListRequest;
|
|
19
|
+
fromJSON(object: any): transactionListRequest;
|
|
20
|
+
toJSON(message: transactionListRequest): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<transactionListRequest>, I>>(base?: I): transactionListRequest;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<transactionListRequest>, I>>(object: I): transactionListRequest;
|
|
23
|
+
};
|
|
24
|
+
export declare const transactionListResponse: {
|
|
25
|
+
encode(message: transactionListResponse, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): transactionListResponse;
|
|
27
|
+
fromJSON(object: any): transactionListResponse;
|
|
28
|
+
toJSON(message: transactionListResponse): unknown;
|
|
29
|
+
create<I extends Exact<DeepPartial<transactionListResponse>, I>>(base?: I): transactionListResponse;
|
|
30
|
+
fromPartial<I extends Exact<DeepPartial<transactionListResponse>, I>>(object: I): transactionListResponse;
|
|
31
|
+
};
|
|
32
|
+
export declare const transactionListResponse_Field: {
|
|
33
|
+
encode(message: transactionListResponse_Field, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): transactionListResponse_Field;
|
|
35
|
+
fromJSON(object: any): transactionListResponse_Field;
|
|
36
|
+
toJSON(message: transactionListResponse_Field): unknown;
|
|
37
|
+
create<I extends Exact<DeepPartial<transactionListResponse_Field>, I>>(base?: I): transactionListResponse_Field;
|
|
38
|
+
fromPartial<I extends Exact<DeepPartial<transactionListResponse_Field>, I>>(object: I): transactionListResponse_Field;
|
|
39
|
+
};
|
|
40
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
41
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
42
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
43
|
+
} : Partial<T>;
|
|
44
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
45
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
46
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
47
|
+
} & {
|
|
48
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
49
|
+
};
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,229 @@
|
|
|
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/transactionlist.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.transactionListResponse_Field = exports.transactionListResponse = exports.transactionListRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.transactionlist";
|
|
15
|
+
function createBasetransactionListRequest() {
|
|
16
|
+
return { filter_by: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.transactionListRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.filter_by !== "") {
|
|
21
|
+
writer.uint32(10).string(message.filter_by);
|
|
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 = createBasetransactionListRequest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 10) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.filter_by = reader.string();
|
|
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 { filter_by: isSet(object.filter_by) ? globalThis.String(object.filter_by) : "" };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.filter_by !== "") {
|
|
52
|
+
obj.filter_by = message.filter_by;
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.transactionListRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBasetransactionListRequest();
|
|
61
|
+
message.filter_by = object.filter_by ?? "";
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBasetransactionListResponse() {
|
|
66
|
+
return { data: [] };
|
|
67
|
+
}
|
|
68
|
+
exports.transactionListResponse = {
|
|
69
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
+
for (const v of message.data) {
|
|
71
|
+
exports.transactionListResponse_Field.encode(v, writer.uint32(10).fork()).ldelim();
|
|
72
|
+
}
|
|
73
|
+
return writer;
|
|
74
|
+
},
|
|
75
|
+
decode(input, length) {
|
|
76
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
+
const message = createBasetransactionListResponse();
|
|
79
|
+
while (reader.pos < end) {
|
|
80
|
+
const tag = reader.uint32();
|
|
81
|
+
switch (tag >>> 3) {
|
|
82
|
+
case 1:
|
|
83
|
+
if (tag !== 10) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.data.push(exports.transactionListResponse_Field.decode(reader, reader.uint32()));
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
reader.skipType(tag & 7);
|
|
93
|
+
}
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
fromJSON(object) {
|
|
97
|
+
return {
|
|
98
|
+
data: globalThis.Array.isArray(object?.data)
|
|
99
|
+
? object.data.map((e) => exports.transactionListResponse_Field.fromJSON(e))
|
|
100
|
+
: [],
|
|
101
|
+
};
|
|
102
|
+
},
|
|
103
|
+
toJSON(message) {
|
|
104
|
+
const obj = {};
|
|
105
|
+
if (message.data?.length) {
|
|
106
|
+
obj.data = message.data.map((e) => exports.transactionListResponse_Field.toJSON(e));
|
|
107
|
+
}
|
|
108
|
+
return obj;
|
|
109
|
+
},
|
|
110
|
+
create(base) {
|
|
111
|
+
return exports.transactionListResponse.fromPartial(base ?? {});
|
|
112
|
+
},
|
|
113
|
+
fromPartial(object) {
|
|
114
|
+
const message = createBasetransactionListResponse();
|
|
115
|
+
message.data = object.data?.map((e) => exports.transactionListResponse_Field.fromPartial(e)) || [];
|
|
116
|
+
return message;
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
function createBasetransactionListResponse_Field() {
|
|
120
|
+
return { id: 0, loan_amount: 0, emi_amount: 0, start_date: "", close_date: "" };
|
|
121
|
+
}
|
|
122
|
+
exports.transactionListResponse_Field = {
|
|
123
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
124
|
+
if (message.id !== 0) {
|
|
125
|
+
writer.uint32(8).int32(message.id);
|
|
126
|
+
}
|
|
127
|
+
if (message.loan_amount !== 0) {
|
|
128
|
+
writer.uint32(16).int32(message.loan_amount);
|
|
129
|
+
}
|
|
130
|
+
if (message.emi_amount !== 0) {
|
|
131
|
+
writer.uint32(24).int32(message.emi_amount);
|
|
132
|
+
}
|
|
133
|
+
if (message.start_date !== "") {
|
|
134
|
+
writer.uint32(34).string(message.start_date);
|
|
135
|
+
}
|
|
136
|
+
if (message.close_date !== "") {
|
|
137
|
+
writer.uint32(42).string(message.close_date);
|
|
138
|
+
}
|
|
139
|
+
return writer;
|
|
140
|
+
},
|
|
141
|
+
decode(input, length) {
|
|
142
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
143
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
144
|
+
const message = createBasetransactionListResponse_Field();
|
|
145
|
+
while (reader.pos < end) {
|
|
146
|
+
const tag = reader.uint32();
|
|
147
|
+
switch (tag >>> 3) {
|
|
148
|
+
case 1:
|
|
149
|
+
if (tag !== 8) {
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
message.id = reader.int32();
|
|
153
|
+
continue;
|
|
154
|
+
case 2:
|
|
155
|
+
if (tag !== 16) {
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
message.loan_amount = reader.int32();
|
|
159
|
+
continue;
|
|
160
|
+
case 3:
|
|
161
|
+
if (tag !== 24) {
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
message.emi_amount = reader.int32();
|
|
165
|
+
continue;
|
|
166
|
+
case 4:
|
|
167
|
+
if (tag !== 34) {
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
message.start_date = reader.string();
|
|
171
|
+
continue;
|
|
172
|
+
case 5:
|
|
173
|
+
if (tag !== 42) {
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
message.close_date = reader.string();
|
|
177
|
+
continue;
|
|
178
|
+
}
|
|
179
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
reader.skipType(tag & 7);
|
|
183
|
+
}
|
|
184
|
+
return message;
|
|
185
|
+
},
|
|
186
|
+
fromJSON(object) {
|
|
187
|
+
return {
|
|
188
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
189
|
+
loan_amount: isSet(object.loan_amount) ? globalThis.Number(object.loan_amount) : 0,
|
|
190
|
+
emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : 0,
|
|
191
|
+
start_date: isSet(object.start_date) ? globalThis.String(object.start_date) : "",
|
|
192
|
+
close_date: isSet(object.close_date) ? globalThis.String(object.close_date) : "",
|
|
193
|
+
};
|
|
194
|
+
},
|
|
195
|
+
toJSON(message) {
|
|
196
|
+
const obj = {};
|
|
197
|
+
if (message.id !== 0) {
|
|
198
|
+
obj.id = Math.round(message.id);
|
|
199
|
+
}
|
|
200
|
+
if (message.loan_amount !== 0) {
|
|
201
|
+
obj.loan_amount = Math.round(message.loan_amount);
|
|
202
|
+
}
|
|
203
|
+
if (message.emi_amount !== 0) {
|
|
204
|
+
obj.emi_amount = Math.round(message.emi_amount);
|
|
205
|
+
}
|
|
206
|
+
if (message.start_date !== "") {
|
|
207
|
+
obj.start_date = message.start_date;
|
|
208
|
+
}
|
|
209
|
+
if (message.close_date !== "") {
|
|
210
|
+
obj.close_date = message.close_date;
|
|
211
|
+
}
|
|
212
|
+
return obj;
|
|
213
|
+
},
|
|
214
|
+
create(base) {
|
|
215
|
+
return exports.transactionListResponse_Field.fromPartial(base ?? {});
|
|
216
|
+
},
|
|
217
|
+
fromPartial(object) {
|
|
218
|
+
const message = createBasetransactionListResponse_Field();
|
|
219
|
+
message.id = object.id ?? 0;
|
|
220
|
+
message.loan_amount = object.loan_amount ?? 0;
|
|
221
|
+
message.emi_amount = object.emi_amount ?? 0;
|
|
222
|
+
message.start_date = object.start_date ?? "";
|
|
223
|
+
message.close_date = object.close_date ?? "";
|
|
224
|
+
return message;
|
|
225
|
+
},
|
|
226
|
+
};
|
|
227
|
+
function isSet(value) {
|
|
228
|
+
return value !== null && value !== undefined;
|
|
229
|
+
}
|
|
@@ -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: loans/updateinstallments.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans/updateloan.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: loans/updateloan.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { approveLoanRequest, approveLoanResponse } from "./loans/approveloan";
|
|
|
3
3
|
import { bankListRequest, bankListResponse } from "./loans/banklist";
|
|
4
4
|
import { calculateEmiRequest, calculateEmiResponse } from "./loans/calculateemi";
|
|
5
5
|
import { creditLimitRequest, creditLimitResponse } from "./loans/creditlimit";
|
|
6
|
+
import { transactionListRequest, transactionListResponse } from "./loans/transactionlist";
|
|
6
7
|
import { updateInstallmentsRequest, updateInstallmentsResponse } from "./loans/updateinstallments";
|
|
7
8
|
import { updateLoanRequest, updateLoanResponse } from "./loans/updateloan";
|
|
8
9
|
export declare const protobufPackage = "service";
|
|
@@ -62,6 +63,15 @@ export declare const loansService: {
|
|
|
62
63
|
readonly responseSerialize: (value: updateInstallmentsResponse) => Buffer;
|
|
63
64
|
readonly responseDeserialize: (value: Buffer) => updateInstallmentsResponse;
|
|
64
65
|
};
|
|
66
|
+
readonly transactionList: {
|
|
67
|
+
readonly path: "/service.loans/transactionList";
|
|
68
|
+
readonly requestStream: false;
|
|
69
|
+
readonly responseStream: false;
|
|
70
|
+
readonly requestSerialize: (value: transactionListRequest) => Buffer;
|
|
71
|
+
readonly requestDeserialize: (value: Buffer) => transactionListRequest;
|
|
72
|
+
readonly responseSerialize: (value: transactionListResponse) => Buffer;
|
|
73
|
+
readonly responseDeserialize: (value: Buffer) => transactionListResponse;
|
|
74
|
+
};
|
|
65
75
|
};
|
|
66
76
|
export interface loansServer extends UntypedServiceImplementation {
|
|
67
77
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -70,6 +80,7 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
70
80
|
approveLoan: handleUnaryCall<approveLoanRequest, approveLoanResponse>;
|
|
71
81
|
updateloan: handleUnaryCall<updateLoanRequest, updateLoanResponse>;
|
|
72
82
|
updateInstallments: handleUnaryCall<updateInstallmentsRequest, updateInstallmentsResponse>;
|
|
83
|
+
transactionList: handleUnaryCall<transactionListRequest, transactionListResponse>;
|
|
73
84
|
}
|
|
74
85
|
export interface loansClient extends Client {
|
|
75
86
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -90,6 +101,9 @@ export interface loansClient extends Client {
|
|
|
90
101
|
updateInstallments(request: updateInstallmentsRequest, callback: (error: ServiceError | null, response: updateInstallmentsResponse) => void): ClientUnaryCall;
|
|
91
102
|
updateInstallments(request: updateInstallmentsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateInstallmentsResponse) => void): ClientUnaryCall;
|
|
92
103
|
updateInstallments(request: updateInstallmentsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateInstallmentsResponse) => void): ClientUnaryCall;
|
|
104
|
+
transactionList(request: transactionListRequest, callback: (error: ServiceError | null, response: transactionListResponse) => void): ClientUnaryCall;
|
|
105
|
+
transactionList(request: transactionListRequest, metadata: Metadata, callback: (error: ServiceError | null, response: transactionListResponse) => void): ClientUnaryCall;
|
|
106
|
+
transactionList(request: transactionListRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: transactionListResponse) => void): ClientUnaryCall;
|
|
93
107
|
}
|
|
94
108
|
export declare const loansClient: {
|
|
95
109
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.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: loans.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -12,6 +12,7 @@ const approveloan_1 = require("./loans/approveloan");
|
|
|
12
12
|
const banklist_1 = require("./loans/banklist");
|
|
13
13
|
const calculateemi_1 = require("./loans/calculateemi");
|
|
14
14
|
const creditlimit_1 = require("./loans/creditlimit");
|
|
15
|
+
const transactionlist_1 = require("./loans/transactionlist");
|
|
15
16
|
const updateinstallments_1 = require("./loans/updateinstallments");
|
|
16
17
|
const updateloan_1 = require("./loans/updateloan");
|
|
17
18
|
exports.protobufPackage = "service";
|
|
@@ -70,5 +71,14 @@ exports.loansService = {
|
|
|
70
71
|
responseSerialize: (value) => Buffer.from(updateinstallments_1.updateInstallmentsResponse.encode(value).finish()),
|
|
71
72
|
responseDeserialize: (value) => updateinstallments_1.updateInstallmentsResponse.decode(value),
|
|
72
73
|
},
|
|
74
|
+
transactionList: {
|
|
75
|
+
path: "/service.loans/transactionList",
|
|
76
|
+
requestStream: false,
|
|
77
|
+
responseStream: false,
|
|
78
|
+
requestSerialize: (value) => Buffer.from(transactionlist_1.transactionListRequest.encode(value).finish()),
|
|
79
|
+
requestDeserialize: (value) => transactionlist_1.transactionListRequest.decode(value),
|
|
80
|
+
responseSerialize: (value) => Buffer.from(transactionlist_1.transactionListResponse.encode(value).finish()),
|
|
81
|
+
responseDeserialize: (value) => transactionlist_1.transactionListResponse.decode(value),
|
|
82
|
+
},
|
|
73
83
|
};
|
|
74
84
|
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) {
|
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) {
|
|
@@ -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) {
|
|
@@ -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 });
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "customer.getprofile";
|
|
3
|
-
export interface request {
|
|
4
|
-
}
|
|
5
|
-
export interface response {
|
|
6
|
-
customer_id: number;
|
|
7
|
-
first_name: string;
|
|
8
|
-
middle_name: string;
|
|
9
|
-
last_name: string;
|
|
10
|
-
mobile_number: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const request: {
|
|
13
|
-
encode(_: request, writer?: _m0.Writer): _m0.Writer;
|
|
14
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
15
|
-
fromJSON(_: any): request;
|
|
16
|
-
toJSON(_: request): unknown;
|
|
17
|
-
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
18
|
-
fromPartial<I extends Exact<DeepPartial<request>, I>>(_: I): request;
|
|
19
|
-
};
|
|
20
|
-
export declare const response: {
|
|
21
|
-
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
22
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
23
|
-
fromJSON(object: any): response;
|
|
24
|
-
toJSON(message: response): unknown;
|
|
25
|
-
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
26
|
-
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
27
|
-
};
|
|
28
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
29
|
-
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 {} ? {
|
|
30
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
31
|
-
} : Partial<T>;
|
|
32
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
33
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
34
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
35
|
-
} & {
|
|
36
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
37
|
-
};
|
|
38
|
-
export {};
|