@stashfin/grpc 1.2.52 → 1.2.54
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/README.md +74 -0
- package/package.json +3 -2
- package/src/proto/customers/addaddress.proto +25 -0
- package/src/proto/customers/addbankaccountdetails.proto +13 -0
- package/src/proto/customers/createcustomerreference.proto +21 -0
- package/src/proto/customers/forgotmpin.proto +12 -0
- package/src/proto/customers/forgotmpinotp.proto +10 -0
- package/src/proto/customers/getbankaccountdetails.proto +11 -0
- package/src/proto/customers/getbasicinfo.proto +24 -0
- package/src/proto/customers/getcities.proto +16 -0
- package/src/proto/customers/getcustomerbyid.proto +31 -0
- package/src/proto/customers/getdashboard.proto +47 -0
- package/src/proto/customers/getdashboardmaincard.proto +37 -0
- package/src/proto/customers/getkycweburl.proto +10 -0
- package/src/proto/customers/getprofessionalinfo.proto +22 -0
- package/src/proto/customers/getprofile.proto +22 -0
- package/src/proto/customers/getstates.proto +15 -0
- package/src/proto/customers/getstep.proto +30 -0
- package/src/proto/customers/profilebasic.proto +14 -0
- package/src/proto/customers/profileupdatetnc.proto +11 -0
- package/src/proto/customers/resetmpin.proto +13 -0
- package/src/proto/customers/savebasicdetails.proto +16 -0
- package/src/proto/customers/saveunlocklimit.proto +10 -0
- package/src/proto/customers/sendemailtoken.proto +11 -0
- package/src/proto/customers/sendotp.proto +14 -0
- package/src/proto/customers/setmpin.proto +12 -0
- package/src/proto/customers/step10.proto +34 -0
- package/src/proto/customers/step7.proto +29 -0
- package/src/proto/customers/step8.proto +30 -0
- package/src/proto/customers/step9.proto +36 -0
- package/src/proto/customers/stepstatic.proto +27 -0
- package/src/proto/customers/updatedigilockertxn.proto +13 -0
- package/src/proto/customers/updatedob.proto +13 -0
- package/src/proto/customers/updatehypervergetxn.proto +12 -0
- package/src/proto/customers/verifyemail.proto +11 -0
- package/src/proto/customers/verifympin.proto +13 -0
- package/src/proto/customers/verifyotp.proto +17 -0
- package/src/proto/customers.proto +83 -0
- package/src/proto/example.proto +20 -0
- package/src/proto/loans/approveloan.proto +15 -0
- package/src/proto/loans/banklist.proto +12 -0
- package/src/proto/loans/calculateemi.proto +20 -0
- package/src/proto/loans/creditlimit.proto +18 -0
- package/src/proto/loans/restructureloan.proto +12 -0
- package/src/proto/loans/transactionlist.proto +18 -0
- package/src/proto/loans/updateinstallments.proto +19 -0
- package/src/proto/loans/updateloan.proto +15 -0
- package/src/proto/loans.proto +23 -0
- package/src/proto/stashcash/creditsc.proto +22 -0
- package/src/proto/stashcash/debitsc.proto +27 -0
- package/src/proto/stashcash/getscbalance.proto +21 -0
- package/src/proto/stashcash/getschistory.proto +35 -0
- package/src/proto/stashcash/reversesc.proto +20 -0
- package/src/proto/stashcash.proto +17 -0
- package/src/ts/customers/addaddress.ts +310 -0
- package/src/ts/customers/addbankaccountdetails.ts +184 -0
- package/src/ts/customers/createcustomerreference.ts +276 -0
- package/src/ts/customers/getbankaccountdetails.ts +169 -0
- package/src/ts/customers/getbasicinfo.ts +385 -0
- package/src/ts/customers/getcities.ts +227 -0
- package/src/ts/customers/getcustomerbyid.ts +492 -0
- package/src/ts/customers/getdashboard.ts +728 -0
- package/src/ts/customers/getdashboardmaincard.ts +608 -0
- package/src/ts/customers/getkycweburl.ts +133 -0
- package/src/ts/customers/getprofessionalinfo.ts +344 -0
- package/src/ts/customers/getprofile.ts +338 -0
- package/src/ts/customers/getstates.ts +212 -0
- package/src/ts/customers/getstep.ts +483 -0
- package/src/ts/customers/profilebasic.ts +198 -0
- package/src/ts/customers/profileupdatetnc.ts +148 -0
- package/src/ts/customers/resetmpin.ts +166 -0
- package/src/ts/customers/savebasicdetails.ts +229 -0
- package/src/ts/customers/saveunlocklimit.ts +133 -0
- package/src/ts/customers/sendemailtoken.ts +148 -0
- package/src/ts/customers/sendotp.ts +202 -0
- package/src/ts/customers/setmpin.ts +166 -0
- package/src/ts/customers/step10.ts +544 -0
- package/src/ts/customers/step7.ts +456 -0
- package/src/ts/customers/step8.ts +472 -0
- package/src/ts/customers/step9.ts +578 -0
- package/src/ts/customers/stepstatic.ts +425 -0
- package/src/ts/customers/updatedigilockertxn.ts +182 -0
- package/src/ts/customers/updatehypervergetxn.ts +166 -0
- package/src/ts/customers/verifyemail.ts +148 -0
- package/src/ts/customers/verifympin.ts +184 -0
- package/src/ts/customers/verifyotp.ts +232 -0
- package/src/ts/customers.ts +1038 -0
- package/src/ts/example.ts +294 -0
- package/{ts/google/protobuf/timestamp.d.ts → src/ts/google/protobuf/timestamp.ts} +126 -30
- package/src/ts/loans/approveloan.ts +214 -0
- package/src/ts/loans/banklist.ts +183 -0
- package/src/ts/loans/calculateemi.ts +295 -0
- package/src/ts/loans/creditlimit.ts +294 -0
- package/src/ts/loans/restructureloan.ts +166 -0
- package/src/ts/loans/transactionlist.ts +281 -0
- package/src/ts/loans/updateinstallments.ts +271 -0
- package/src/ts/loans/updateloan.ts +214 -0
- package/src/ts/loans.ts +221 -0
- package/src/ts/stashcash/creditsc.ts +361 -0
- package/src/ts/stashcash/debitsc.ts +450 -0
- package/src/ts/stashcash/getscbalance.ts +351 -0
- package/src/ts/stashcash/getschistory.ts +566 -0
- package/src/ts/stashcash/reversesc.ts +329 -0
- package/src/ts/stashcash.ts +152 -0
- package/tsconfig.json +18 -0
- 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/profileupdatetnc.js +0 -117
- package/ts/customer/sendotp.d.ts +0 -36
- package/ts/customer/sendotp.js +0 -133
- package/ts/customer/setmpin.d.ts +0 -36
- package/ts/customer/setmpin.js +0 -133
- 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/verifympin.js +0 -149
- 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/customers/getbankaccountdetails.d.ts +0 -36
- package/ts/customers/getbankaccountdetails.js +0 -134
- package/ts/customers/getbasicinfo.d.ts +0 -39
- package/ts/customers/getbasicinfo.js +0 -176
- package/ts/customers/getcustomerbyid.d.ts +0 -50
- package/ts/customers/getcustomerbyid.js +0 -346
- package/ts/customers/getdashboard.d.ts +0 -90
- package/ts/customers/getdashboard.js +0 -603
- package/ts/customers/getdashboardmaincard.d.ts +0 -69
- package/ts/customers/getdashboardmaincard.js +0 -520
- package/ts/customers/getprofessionalinfo.d.ts +0 -37
- package/ts/customers/getprofessionalinfo.js +0 -148
- package/ts/customers/getprofile.d.ts +0 -38
- package/ts/customers/getprofile.js +0 -162
- package/ts/customers/getstep.d.ts +0 -78
- package/ts/customers/getstep.js +0 -420
- package/ts/customers/profilebasic.d.ts +0 -38
- package/ts/customers/profilebasic.js +0 -161
- package/ts/customers/profileupdatetnc.d.ts +0 -35
- package/ts/customers/profileupdatetnc.js +0 -117
- package/ts/customers/sendemailtoken.d.ts +0 -35
- package/ts/customers/sendemailtoken.js +0 -117
- package/ts/customers/sendotp.d.ts +0 -38
- package/ts/customers/sendotp.js +0 -165
- package/ts/customers/setmpin.d.ts +0 -36
- package/ts/customers/setmpin.js +0 -133
- package/ts/customers/step1.d.ts +0 -69
- package/ts/customers/step1.js +0 -395
- package/ts/customers/step10.d.ts +0 -73
- package/ts/customers/step10.js +0 -459
- package/ts/customers/step2.d.ts +0 -68
- package/ts/customers/step2.js +0 -381
- package/ts/customers/step7.d.ts +0 -68
- package/ts/customers/step7.js +0 -381
- package/ts/customers/step8.d.ts +0 -69
- package/ts/customers/step8.js +0 -395
- package/ts/customers/step9.d.ts +0 -75
- package/ts/customers/step9.js +0 -489
- package/ts/customers/stepstatic.d.ts +0 -66
- package/ts/customers/stepstatic.js +0 -354
- package/ts/customers/verifyemail.d.ts +0 -35
- package/ts/customers/verifyemail.js +0 -117
- package/ts/customers/verifympin.d.ts +0 -37
- package/ts/customers/verifympin.js +0 -149
- package/ts/customers/verifyotp.d.ts +0 -40
- package/ts/customers/verifyotp.js +0 -191
- package/ts/customers.d.ts +0 -388
- package/ts/customers.js +0 -280
- package/ts/example.d.ts +0 -78
- package/ts/example.js +0 -199
- package/ts/google/protobuf/any.d.ts +0 -138
- package/ts/google/protobuf/any.js +0 -108
- package/ts/google/protobuf/timestamp.js +0 -97
- package/ts/loans/approveloan.d.ts +0 -39
- package/ts/loans/approveloan.js +0 -175
- package/ts/loans/banklist.d.ts +0 -48
- package/ts/loans/banklist.js +0 -202
- package/ts/loans/calculateemi.d.ts +0 -37
- package/ts/loans/calculateemi.js +0 -147
- package/ts/loans/creditlimit.d.ts +0 -35
- package/ts/loans/creditlimit.js +0 -120
- package/ts/loans/updateinstallments.d.ts +0 -42
- package/ts/loans/updateinstallments.js +0 -226
- package/ts/loans/updateloan.d.ts +0 -39
- package/ts/loans/updateloan.js +0 -175
- package/ts/loans.d.ts +0 -98
- package/ts/loans.js +0 -74
- package/ts/payments/checkpaymentstatus.d.ts +0 -51
- package/ts/payments/checkpaymentstatus.js +0 -259
- package/ts/payments/createorder.d.ts +0 -39
- package/ts/payments/createorder.js +0 -191
- package/ts/payments/getpaymentdetails.d.ts +0 -58
- package/ts/payments/getpaymentdetails.js +0 -367
- 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 -299
- package/ts/payments.d.ts +0 -70
- package/ts/payments.js +0 -54
- package/ts/stashcash/creditsc.d.ts +0 -54
- package/ts/stashcash/creditsc.js +0 -301
- package/ts/stashcash/debitsc.d.ts +0 -59
- package/ts/stashcash/debitsc.js +0 -380
- package/ts/stashcash/getscbalance.d.ts +0 -53
- package/ts/stashcash/getscbalance.js +0 -293
- package/ts/stashcash/getschistory.d.ts +0 -73
- package/ts/stashcash/getschistory.js +0 -479
- package/ts/stashcash/reversesc.d.ts +0 -52
- package/ts/stashcash/reversesc.js +0 -273
- package/ts/stashcash.d.ts +0 -84
- package/ts/stashcash.js +0 -64
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
-
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.180.0
|
|
5
|
-
// protoc v3.20.3
|
|
6
|
-
// source: loans/updateinstallments.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.updateInstallmentsResponse = exports.updateInstallmentsRequest = exports.protobufPackage = void 0;
|
|
12
|
-
/* eslint-disable */
|
|
13
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "loans.updateinstallments";
|
|
15
|
-
function createBaseupdateInstallmentsRequest() {
|
|
16
|
-
return {
|
|
17
|
-
installment_id: 0,
|
|
18
|
-
principal: 0,
|
|
19
|
-
interest: 0,
|
|
20
|
-
penalty: 0,
|
|
21
|
-
r_pif_principal: 0,
|
|
22
|
-
r_pif_interest: 0,
|
|
23
|
-
r_pif_penalty: 0,
|
|
24
|
-
amount: 0,
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
exports.updateInstallmentsRequest = {
|
|
28
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
29
|
-
if (message.installment_id !== 0) {
|
|
30
|
-
writer.uint32(8).int32(message.installment_id);
|
|
31
|
-
}
|
|
32
|
-
if (message.principal !== 0) {
|
|
33
|
-
writer.uint32(16).int32(message.principal);
|
|
34
|
-
}
|
|
35
|
-
if (message.interest !== 0) {
|
|
36
|
-
writer.uint32(24).int32(message.interest);
|
|
37
|
-
}
|
|
38
|
-
if (message.penalty !== 0) {
|
|
39
|
-
writer.uint32(32).int32(message.penalty);
|
|
40
|
-
}
|
|
41
|
-
if (message.r_pif_principal !== 0) {
|
|
42
|
-
writer.uint32(40).int32(message.r_pif_principal);
|
|
43
|
-
}
|
|
44
|
-
if (message.r_pif_interest !== 0) {
|
|
45
|
-
writer.uint32(48).int32(message.r_pif_interest);
|
|
46
|
-
}
|
|
47
|
-
if (message.r_pif_penalty !== 0) {
|
|
48
|
-
writer.uint32(56).int32(message.r_pif_penalty);
|
|
49
|
-
}
|
|
50
|
-
if (message.amount !== 0) {
|
|
51
|
-
writer.uint32(64).int32(message.amount);
|
|
52
|
-
}
|
|
53
|
-
return writer;
|
|
54
|
-
},
|
|
55
|
-
decode(input, length) {
|
|
56
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
57
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
58
|
-
const message = createBaseupdateInstallmentsRequest();
|
|
59
|
-
while (reader.pos < end) {
|
|
60
|
-
const tag = reader.uint32();
|
|
61
|
-
switch (tag >>> 3) {
|
|
62
|
-
case 1:
|
|
63
|
-
if (tag !== 8) {
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
message.installment_id = reader.int32();
|
|
67
|
-
continue;
|
|
68
|
-
case 2:
|
|
69
|
-
if (tag !== 16) {
|
|
70
|
-
break;
|
|
71
|
-
}
|
|
72
|
-
message.principal = reader.int32();
|
|
73
|
-
continue;
|
|
74
|
-
case 3:
|
|
75
|
-
if (tag !== 24) {
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
|
-
message.interest = reader.int32();
|
|
79
|
-
continue;
|
|
80
|
-
case 4:
|
|
81
|
-
if (tag !== 32) {
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
message.penalty = reader.int32();
|
|
85
|
-
continue;
|
|
86
|
-
case 5:
|
|
87
|
-
if (tag !== 40) {
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
message.r_pif_principal = reader.int32();
|
|
91
|
-
continue;
|
|
92
|
-
case 6:
|
|
93
|
-
if (tag !== 48) {
|
|
94
|
-
break;
|
|
95
|
-
}
|
|
96
|
-
message.r_pif_interest = reader.int32();
|
|
97
|
-
continue;
|
|
98
|
-
case 7:
|
|
99
|
-
if (tag !== 56) {
|
|
100
|
-
break;
|
|
101
|
-
}
|
|
102
|
-
message.r_pif_penalty = reader.int32();
|
|
103
|
-
continue;
|
|
104
|
-
case 8:
|
|
105
|
-
if (tag !== 64) {
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
message.amount = reader.int32();
|
|
109
|
-
continue;
|
|
110
|
-
}
|
|
111
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
112
|
-
break;
|
|
113
|
-
}
|
|
114
|
-
reader.skipType(tag & 7);
|
|
115
|
-
}
|
|
116
|
-
return message;
|
|
117
|
-
},
|
|
118
|
-
fromJSON(object) {
|
|
119
|
-
return {
|
|
120
|
-
installment_id: isSet(object.installment_id) ? globalThis.Number(object.installment_id) : 0,
|
|
121
|
-
principal: isSet(object.principal) ? globalThis.Number(object.principal) : 0,
|
|
122
|
-
interest: isSet(object.interest) ? globalThis.Number(object.interest) : 0,
|
|
123
|
-
penalty: isSet(object.penalty) ? globalThis.Number(object.penalty) : 0,
|
|
124
|
-
r_pif_principal: isSet(object.r_pif_principal) ? globalThis.Number(object.r_pif_principal) : 0,
|
|
125
|
-
r_pif_interest: isSet(object.r_pif_interest) ? globalThis.Number(object.r_pif_interest) : 0,
|
|
126
|
-
r_pif_penalty: isSet(object.r_pif_penalty) ? globalThis.Number(object.r_pif_penalty) : 0,
|
|
127
|
-
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
128
|
-
};
|
|
129
|
-
},
|
|
130
|
-
toJSON(message) {
|
|
131
|
-
const obj = {};
|
|
132
|
-
if (message.installment_id !== 0) {
|
|
133
|
-
obj.installment_id = Math.round(message.installment_id);
|
|
134
|
-
}
|
|
135
|
-
if (message.principal !== 0) {
|
|
136
|
-
obj.principal = Math.round(message.principal);
|
|
137
|
-
}
|
|
138
|
-
if (message.interest !== 0) {
|
|
139
|
-
obj.interest = Math.round(message.interest);
|
|
140
|
-
}
|
|
141
|
-
if (message.penalty !== 0) {
|
|
142
|
-
obj.penalty = Math.round(message.penalty);
|
|
143
|
-
}
|
|
144
|
-
if (message.r_pif_principal !== 0) {
|
|
145
|
-
obj.r_pif_principal = Math.round(message.r_pif_principal);
|
|
146
|
-
}
|
|
147
|
-
if (message.r_pif_interest !== 0) {
|
|
148
|
-
obj.r_pif_interest = Math.round(message.r_pif_interest);
|
|
149
|
-
}
|
|
150
|
-
if (message.r_pif_penalty !== 0) {
|
|
151
|
-
obj.r_pif_penalty = Math.round(message.r_pif_penalty);
|
|
152
|
-
}
|
|
153
|
-
if (message.amount !== 0) {
|
|
154
|
-
obj.amount = Math.round(message.amount);
|
|
155
|
-
}
|
|
156
|
-
return obj;
|
|
157
|
-
},
|
|
158
|
-
create(base) {
|
|
159
|
-
return exports.updateInstallmentsRequest.fromPartial(base ?? {});
|
|
160
|
-
},
|
|
161
|
-
fromPartial(object) {
|
|
162
|
-
const message = createBaseupdateInstallmentsRequest();
|
|
163
|
-
message.installment_id = object.installment_id ?? 0;
|
|
164
|
-
message.principal = object.principal ?? 0;
|
|
165
|
-
message.interest = object.interest ?? 0;
|
|
166
|
-
message.penalty = object.penalty ?? 0;
|
|
167
|
-
message.r_pif_principal = object.r_pif_principal ?? 0;
|
|
168
|
-
message.r_pif_interest = object.r_pif_interest ?? 0;
|
|
169
|
-
message.r_pif_penalty = object.r_pif_penalty ?? 0;
|
|
170
|
-
message.amount = object.amount ?? 0;
|
|
171
|
-
return message;
|
|
172
|
-
},
|
|
173
|
-
};
|
|
174
|
-
function createBaseupdateInstallmentsResponse() {
|
|
175
|
-
return { id: 0 };
|
|
176
|
-
}
|
|
177
|
-
exports.updateInstallmentsResponse = {
|
|
178
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
179
|
-
if (message.id !== 0) {
|
|
180
|
-
writer.uint32(8).int32(message.id);
|
|
181
|
-
}
|
|
182
|
-
return writer;
|
|
183
|
-
},
|
|
184
|
-
decode(input, length) {
|
|
185
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
186
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
187
|
-
const message = createBaseupdateInstallmentsResponse();
|
|
188
|
-
while (reader.pos < end) {
|
|
189
|
-
const tag = reader.uint32();
|
|
190
|
-
switch (tag >>> 3) {
|
|
191
|
-
case 1:
|
|
192
|
-
if (tag !== 8) {
|
|
193
|
-
break;
|
|
194
|
-
}
|
|
195
|
-
message.id = reader.int32();
|
|
196
|
-
continue;
|
|
197
|
-
}
|
|
198
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
199
|
-
break;
|
|
200
|
-
}
|
|
201
|
-
reader.skipType(tag & 7);
|
|
202
|
-
}
|
|
203
|
-
return message;
|
|
204
|
-
},
|
|
205
|
-
fromJSON(object) {
|
|
206
|
-
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
207
|
-
},
|
|
208
|
-
toJSON(message) {
|
|
209
|
-
const obj = {};
|
|
210
|
-
if (message.id !== 0) {
|
|
211
|
-
obj.id = Math.round(message.id);
|
|
212
|
-
}
|
|
213
|
-
return obj;
|
|
214
|
-
},
|
|
215
|
-
create(base) {
|
|
216
|
-
return exports.updateInstallmentsResponse.fromPartial(base ?? {});
|
|
217
|
-
},
|
|
218
|
-
fromPartial(object) {
|
|
219
|
-
const message = createBaseupdateInstallmentsResponse();
|
|
220
|
-
message.id = object.id ?? 0;
|
|
221
|
-
return message;
|
|
222
|
-
},
|
|
223
|
-
};
|
|
224
|
-
function isSet(value) {
|
|
225
|
-
return value !== null && value !== undefined;
|
|
226
|
-
}
|
package/ts/loans/updateloan.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "loans.updateloan";
|
|
3
|
-
export interface updateLoanRequest {
|
|
4
|
-
loan_id: number;
|
|
5
|
-
status: string;
|
|
6
|
-
disbursal_amount: number;
|
|
7
|
-
disbursal_mode: string;
|
|
8
|
-
is_auto_processing: number;
|
|
9
|
-
}
|
|
10
|
-
export interface updateLoanResponse {
|
|
11
|
-
id: number;
|
|
12
|
-
}
|
|
13
|
-
export declare const updateLoanRequest: {
|
|
14
|
-
encode(message: updateLoanRequest, writer?: _m0.Writer): _m0.Writer;
|
|
15
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): updateLoanRequest;
|
|
16
|
-
fromJSON(object: any): updateLoanRequest;
|
|
17
|
-
toJSON(message: updateLoanRequest): unknown;
|
|
18
|
-
create<I extends Exact<DeepPartial<updateLoanRequest>, I>>(base?: I): updateLoanRequest;
|
|
19
|
-
fromPartial<I extends Exact<DeepPartial<updateLoanRequest>, I>>(object: I): updateLoanRequest;
|
|
20
|
-
};
|
|
21
|
-
export declare const updateLoanResponse: {
|
|
22
|
-
encode(message: updateLoanResponse, writer?: _m0.Writer): _m0.Writer;
|
|
23
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): updateLoanResponse;
|
|
24
|
-
fromJSON(object: any): updateLoanResponse;
|
|
25
|
-
toJSON(message: updateLoanResponse): unknown;
|
|
26
|
-
create<I extends Exact<DeepPartial<updateLoanResponse>, I>>(base?: I): updateLoanResponse;
|
|
27
|
-
fromPartial<I extends Exact<DeepPartial<updateLoanResponse>, I>>(object: I): updateLoanResponse;
|
|
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 {};
|
package/ts/loans/updateloan.js
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
-
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.180.0
|
|
5
|
-
// protoc v3.20.3
|
|
6
|
-
// source: loans/updateloan.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.updateLoanResponse = exports.updateLoanRequest = exports.protobufPackage = void 0;
|
|
12
|
-
/* eslint-disable */
|
|
13
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "loans.updateloan";
|
|
15
|
-
function createBaseupdateLoanRequest() {
|
|
16
|
-
return { loan_id: 0, status: "", disbursal_amount: 0, disbursal_mode: "", is_auto_processing: 0 };
|
|
17
|
-
}
|
|
18
|
-
exports.updateLoanRequest = {
|
|
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.status !== "") {
|
|
24
|
-
writer.uint32(18).string(message.status);
|
|
25
|
-
}
|
|
26
|
-
if (message.disbursal_amount !== 0) {
|
|
27
|
-
writer.uint32(24).int32(message.disbursal_amount);
|
|
28
|
-
}
|
|
29
|
-
if (message.disbursal_mode !== "") {
|
|
30
|
-
writer.uint32(34).string(message.disbursal_mode);
|
|
31
|
-
}
|
|
32
|
-
if (message.is_auto_processing !== 0) {
|
|
33
|
-
writer.uint32(40).int32(message.is_auto_processing);
|
|
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 = createBaseupdateLoanRequest();
|
|
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.loan_id = reader.int32();
|
|
49
|
-
continue;
|
|
50
|
-
case 2:
|
|
51
|
-
if (tag !== 18) {
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
message.status = reader.string();
|
|
55
|
-
continue;
|
|
56
|
-
case 3:
|
|
57
|
-
if (tag !== 24) {
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
message.disbursal_amount = reader.int32();
|
|
61
|
-
continue;
|
|
62
|
-
case 4:
|
|
63
|
-
if (tag !== 34) {
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
message.disbursal_mode = reader.string();
|
|
67
|
-
continue;
|
|
68
|
-
case 5:
|
|
69
|
-
if (tag !== 40) {
|
|
70
|
-
break;
|
|
71
|
-
}
|
|
72
|
-
message.is_auto_processing = reader.int32();
|
|
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
|
-
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
85
|
-
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
86
|
-
disbursal_amount: isSet(object.disbursal_amount) ? globalThis.Number(object.disbursal_amount) : 0,
|
|
87
|
-
disbursal_mode: isSet(object.disbursal_mode) ? globalThis.String(object.disbursal_mode) : "",
|
|
88
|
-
is_auto_processing: isSet(object.is_auto_processing) ? globalThis.Number(object.is_auto_processing) : 0,
|
|
89
|
-
};
|
|
90
|
-
},
|
|
91
|
-
toJSON(message) {
|
|
92
|
-
const obj = {};
|
|
93
|
-
if (message.loan_id !== 0) {
|
|
94
|
-
obj.loan_id = Math.round(message.loan_id);
|
|
95
|
-
}
|
|
96
|
-
if (message.status !== "") {
|
|
97
|
-
obj.status = message.status;
|
|
98
|
-
}
|
|
99
|
-
if (message.disbursal_amount !== 0) {
|
|
100
|
-
obj.disbursal_amount = Math.round(message.disbursal_amount);
|
|
101
|
-
}
|
|
102
|
-
if (message.disbursal_mode !== "") {
|
|
103
|
-
obj.disbursal_mode = message.disbursal_mode;
|
|
104
|
-
}
|
|
105
|
-
if (message.is_auto_processing !== 0) {
|
|
106
|
-
obj.is_auto_processing = Math.round(message.is_auto_processing);
|
|
107
|
-
}
|
|
108
|
-
return obj;
|
|
109
|
-
},
|
|
110
|
-
create(base) {
|
|
111
|
-
return exports.updateLoanRequest.fromPartial(base ?? {});
|
|
112
|
-
},
|
|
113
|
-
fromPartial(object) {
|
|
114
|
-
const message = createBaseupdateLoanRequest();
|
|
115
|
-
message.loan_id = object.loan_id ?? 0;
|
|
116
|
-
message.status = object.status ?? "";
|
|
117
|
-
message.disbursal_amount = object.disbursal_amount ?? 0;
|
|
118
|
-
message.disbursal_mode = object.disbursal_mode ?? "";
|
|
119
|
-
message.is_auto_processing = object.is_auto_processing ?? 0;
|
|
120
|
-
return message;
|
|
121
|
-
},
|
|
122
|
-
};
|
|
123
|
-
function createBaseupdateLoanResponse() {
|
|
124
|
-
return { id: 0 };
|
|
125
|
-
}
|
|
126
|
-
exports.updateLoanResponse = {
|
|
127
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
128
|
-
if (message.id !== 0) {
|
|
129
|
-
writer.uint32(8).int32(message.id);
|
|
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 = createBaseupdateLoanResponse();
|
|
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.id = 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 { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
156
|
-
},
|
|
157
|
-
toJSON(message) {
|
|
158
|
-
const obj = {};
|
|
159
|
-
if (message.id !== 0) {
|
|
160
|
-
obj.id = Math.round(message.id);
|
|
161
|
-
}
|
|
162
|
-
return obj;
|
|
163
|
-
},
|
|
164
|
-
create(base) {
|
|
165
|
-
return exports.updateLoanResponse.fromPartial(base ?? {});
|
|
166
|
-
},
|
|
167
|
-
fromPartial(object) {
|
|
168
|
-
const message = createBaseupdateLoanResponse();
|
|
169
|
-
message.id = object.id ?? 0;
|
|
170
|
-
return message;
|
|
171
|
-
},
|
|
172
|
-
};
|
|
173
|
-
function isSet(value) {
|
|
174
|
-
return value !== null && value !== undefined;
|
|
175
|
-
}
|
package/ts/loans.d.ts
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
-
import { approveLoanRequest, approveLoanResponse } from "./loans/approveloan";
|
|
3
|
-
import { bankListRequest, bankListResponse } from "./loans/banklist";
|
|
4
|
-
import { calculateEmiRequest, calculateEmiResponse } from "./loans/calculateemi";
|
|
5
|
-
import { creditLimitRequest, creditLimitResponse } from "./loans/creditlimit";
|
|
6
|
-
import { updateInstallmentsRequest, updateInstallmentsResponse } from "./loans/updateinstallments";
|
|
7
|
-
import { updateLoanRequest, updateLoanResponse } from "./loans/updateloan";
|
|
8
|
-
export declare const protobufPackage = "service";
|
|
9
|
-
export type loansService = typeof loansService;
|
|
10
|
-
export declare const loansService: {
|
|
11
|
-
readonly creditlimit: {
|
|
12
|
-
readonly path: "/service.loans/creditlimit";
|
|
13
|
-
readonly requestStream: false;
|
|
14
|
-
readonly responseStream: false;
|
|
15
|
-
readonly requestSerialize: (value: creditLimitRequest) => Buffer;
|
|
16
|
-
readonly requestDeserialize: (value: Buffer) => creditLimitRequest;
|
|
17
|
-
readonly responseSerialize: (value: creditLimitResponse) => Buffer;
|
|
18
|
-
readonly responseDeserialize: (value: Buffer) => creditLimitResponse;
|
|
19
|
-
};
|
|
20
|
-
readonly calculateemi: {
|
|
21
|
-
readonly path: "/service.loans/calculateemi";
|
|
22
|
-
readonly requestStream: false;
|
|
23
|
-
readonly responseStream: false;
|
|
24
|
-
readonly requestSerialize: (value: calculateEmiRequest) => Buffer;
|
|
25
|
-
readonly requestDeserialize: (value: Buffer) => calculateEmiRequest;
|
|
26
|
-
readonly responseSerialize: (value: calculateEmiResponse) => Buffer;
|
|
27
|
-
readonly responseDeserialize: (value: Buffer) => calculateEmiResponse;
|
|
28
|
-
};
|
|
29
|
-
readonly banklist: {
|
|
30
|
-
readonly path: "/service.loans/banklist";
|
|
31
|
-
readonly requestStream: false;
|
|
32
|
-
readonly responseStream: false;
|
|
33
|
-
readonly requestSerialize: (value: bankListRequest) => Buffer;
|
|
34
|
-
readonly requestDeserialize: (value: Buffer) => bankListRequest;
|
|
35
|
-
readonly responseSerialize: (value: bankListResponse) => Buffer;
|
|
36
|
-
readonly responseDeserialize: (value: Buffer) => bankListResponse;
|
|
37
|
-
};
|
|
38
|
-
readonly approveLoan: {
|
|
39
|
-
readonly path: "/service.loans/approveLoan";
|
|
40
|
-
readonly requestStream: false;
|
|
41
|
-
readonly responseStream: false;
|
|
42
|
-
readonly requestSerialize: (value: approveLoanRequest) => Buffer;
|
|
43
|
-
readonly requestDeserialize: (value: Buffer) => approveLoanRequest;
|
|
44
|
-
readonly responseSerialize: (value: approveLoanResponse) => Buffer;
|
|
45
|
-
readonly responseDeserialize: (value: Buffer) => approveLoanResponse;
|
|
46
|
-
};
|
|
47
|
-
readonly updateloan: {
|
|
48
|
-
readonly path: "/service.loans/updateloan";
|
|
49
|
-
readonly requestStream: false;
|
|
50
|
-
readonly responseStream: false;
|
|
51
|
-
readonly requestSerialize: (value: updateLoanRequest) => Buffer;
|
|
52
|
-
readonly requestDeserialize: (value: Buffer) => updateLoanRequest;
|
|
53
|
-
readonly responseSerialize: (value: updateLoanResponse) => Buffer;
|
|
54
|
-
readonly responseDeserialize: (value: Buffer) => updateLoanResponse;
|
|
55
|
-
};
|
|
56
|
-
readonly updateInstallments: {
|
|
57
|
-
readonly path: "/service.loans/updateInstallments";
|
|
58
|
-
readonly requestStream: false;
|
|
59
|
-
readonly responseStream: false;
|
|
60
|
-
readonly requestSerialize: (value: updateInstallmentsRequest) => Buffer;
|
|
61
|
-
readonly requestDeserialize: (value: Buffer) => updateInstallmentsRequest;
|
|
62
|
-
readonly responseSerialize: (value: updateInstallmentsResponse) => Buffer;
|
|
63
|
-
readonly responseDeserialize: (value: Buffer) => updateInstallmentsResponse;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
export interface loansServer extends UntypedServiceImplementation {
|
|
67
|
-
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
68
|
-
calculateemi: handleUnaryCall<calculateEmiRequest, calculateEmiResponse>;
|
|
69
|
-
banklist: handleUnaryCall<bankListRequest, bankListResponse>;
|
|
70
|
-
approveLoan: handleUnaryCall<approveLoanRequest, approveLoanResponse>;
|
|
71
|
-
updateloan: handleUnaryCall<updateLoanRequest, updateLoanResponse>;
|
|
72
|
-
updateInstallments: handleUnaryCall<updateInstallmentsRequest, updateInstallmentsResponse>;
|
|
73
|
-
}
|
|
74
|
-
export interface loansClient extends Client {
|
|
75
|
-
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
76
|
-
creditlimit(request: creditLimitRequest, metadata: Metadata, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
77
|
-
creditlimit(request: creditLimitRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
78
|
-
calculateemi(request: calculateEmiRequest, callback: (error: ServiceError | null, response: calculateEmiResponse) => void): ClientUnaryCall;
|
|
79
|
-
calculateemi(request: calculateEmiRequest, metadata: Metadata, callback: (error: ServiceError | null, response: calculateEmiResponse) => void): ClientUnaryCall;
|
|
80
|
-
calculateemi(request: calculateEmiRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: calculateEmiResponse) => void): ClientUnaryCall;
|
|
81
|
-
banklist(request: bankListRequest, callback: (error: ServiceError | null, response: bankListResponse) => void): ClientUnaryCall;
|
|
82
|
-
banklist(request: bankListRequest, metadata: Metadata, callback: (error: ServiceError | null, response: bankListResponse) => void): ClientUnaryCall;
|
|
83
|
-
banklist(request: bankListRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: bankListResponse) => void): ClientUnaryCall;
|
|
84
|
-
approveLoan(request: approveLoanRequest, callback: (error: ServiceError | null, response: approveLoanResponse) => void): ClientUnaryCall;
|
|
85
|
-
approveLoan(request: approveLoanRequest, metadata: Metadata, callback: (error: ServiceError | null, response: approveLoanResponse) => void): ClientUnaryCall;
|
|
86
|
-
approveLoan(request: approveLoanRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: approveLoanResponse) => void): ClientUnaryCall;
|
|
87
|
-
updateloan(request: updateLoanRequest, callback: (error: ServiceError | null, response: updateLoanResponse) => void): ClientUnaryCall;
|
|
88
|
-
updateloan(request: updateLoanRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateLoanResponse) => void): ClientUnaryCall;
|
|
89
|
-
updateloan(request: updateLoanRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateLoanResponse) => void): ClientUnaryCall;
|
|
90
|
-
updateInstallments(request: updateInstallmentsRequest, callback: (error: ServiceError | null, response: updateInstallmentsResponse) => void): ClientUnaryCall;
|
|
91
|
-
updateInstallments(request: updateInstallmentsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateInstallmentsResponse) => void): ClientUnaryCall;
|
|
92
|
-
updateInstallments(request: updateInstallmentsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateInstallmentsResponse) => void): ClientUnaryCall;
|
|
93
|
-
}
|
|
94
|
-
export declare const loansClient: {
|
|
95
|
-
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
|
96
|
-
service: typeof loansService;
|
|
97
|
-
serviceName: string;
|
|
98
|
-
};
|
package/ts/loans.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
-
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.180.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 approveloan_1 = require("./loans/approveloan");
|
|
12
|
-
const banklist_1 = require("./loans/banklist");
|
|
13
|
-
const calculateemi_1 = require("./loans/calculateemi");
|
|
14
|
-
const creditlimit_1 = require("./loans/creditlimit");
|
|
15
|
-
const updateinstallments_1 = require("./loans/updateinstallments");
|
|
16
|
-
const updateloan_1 = require("./loans/updateloan");
|
|
17
|
-
exports.protobufPackage = "service";
|
|
18
|
-
exports.loansService = {
|
|
19
|
-
creditlimit: {
|
|
20
|
-
path: "/service.loans/creditlimit",
|
|
21
|
-
requestStream: false,
|
|
22
|
-
responseStream: false,
|
|
23
|
-
requestSerialize: (value) => Buffer.from(creditlimit_1.creditLimitRequest.encode(value).finish()),
|
|
24
|
-
requestDeserialize: (value) => creditlimit_1.creditLimitRequest.decode(value),
|
|
25
|
-
responseSerialize: (value) => Buffer.from(creditlimit_1.creditLimitResponse.encode(value).finish()),
|
|
26
|
-
responseDeserialize: (value) => creditlimit_1.creditLimitResponse.decode(value),
|
|
27
|
-
},
|
|
28
|
-
calculateemi: {
|
|
29
|
-
path: "/service.loans/calculateemi",
|
|
30
|
-
requestStream: false,
|
|
31
|
-
responseStream: false,
|
|
32
|
-
requestSerialize: (value) => Buffer.from(calculateemi_1.calculateEmiRequest.encode(value).finish()),
|
|
33
|
-
requestDeserialize: (value) => calculateemi_1.calculateEmiRequest.decode(value),
|
|
34
|
-
responseSerialize: (value) => Buffer.from(calculateemi_1.calculateEmiResponse.encode(value).finish()),
|
|
35
|
-
responseDeserialize: (value) => calculateemi_1.calculateEmiResponse.decode(value),
|
|
36
|
-
},
|
|
37
|
-
banklist: {
|
|
38
|
-
path: "/service.loans/banklist",
|
|
39
|
-
requestStream: false,
|
|
40
|
-
responseStream: false,
|
|
41
|
-
requestSerialize: (value) => Buffer.from(banklist_1.bankListRequest.encode(value).finish()),
|
|
42
|
-
requestDeserialize: (value) => banklist_1.bankListRequest.decode(value),
|
|
43
|
-
responseSerialize: (value) => Buffer.from(banklist_1.bankListResponse.encode(value).finish()),
|
|
44
|
-
responseDeserialize: (value) => banklist_1.bankListResponse.decode(value),
|
|
45
|
-
},
|
|
46
|
-
approveLoan: {
|
|
47
|
-
path: "/service.loans/approveLoan",
|
|
48
|
-
requestStream: false,
|
|
49
|
-
responseStream: false,
|
|
50
|
-
requestSerialize: (value) => Buffer.from(approveloan_1.approveLoanRequest.encode(value).finish()),
|
|
51
|
-
requestDeserialize: (value) => approveloan_1.approveLoanRequest.decode(value),
|
|
52
|
-
responseSerialize: (value) => Buffer.from(approveloan_1.approveLoanResponse.encode(value).finish()),
|
|
53
|
-
responseDeserialize: (value) => approveloan_1.approveLoanResponse.decode(value),
|
|
54
|
-
},
|
|
55
|
-
updateloan: {
|
|
56
|
-
path: "/service.loans/updateloan",
|
|
57
|
-
requestStream: false,
|
|
58
|
-
responseStream: false,
|
|
59
|
-
requestSerialize: (value) => Buffer.from(updateloan_1.updateLoanRequest.encode(value).finish()),
|
|
60
|
-
requestDeserialize: (value) => updateloan_1.updateLoanRequest.decode(value),
|
|
61
|
-
responseSerialize: (value) => Buffer.from(updateloan_1.updateLoanResponse.encode(value).finish()),
|
|
62
|
-
responseDeserialize: (value) => updateloan_1.updateLoanResponse.decode(value),
|
|
63
|
-
},
|
|
64
|
-
updateInstallments: {
|
|
65
|
-
path: "/service.loans/updateInstallments",
|
|
66
|
-
requestStream: false,
|
|
67
|
-
responseStream: false,
|
|
68
|
-
requestSerialize: (value) => Buffer.from(updateinstallments_1.updateInstallmentsRequest.encode(value).finish()),
|
|
69
|
-
requestDeserialize: (value) => updateinstallments_1.updateInstallmentsRequest.decode(value),
|
|
70
|
-
responseSerialize: (value) => Buffer.from(updateinstallments_1.updateInstallmentsResponse.encode(value).finish()),
|
|
71
|
-
responseDeserialize: (value) => updateinstallments_1.updateInstallmentsResponse.decode(value),
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "payments.checkpaymentstatus";
|
|
3
|
-
export interface request {
|
|
4
|
-
customer_id: number;
|
|
5
|
-
client: string;
|
|
6
|
-
external_order_id: string;
|
|
7
|
-
}
|
|
8
|
-
export interface response {
|
|
9
|
-
status: string;
|
|
10
|
-
statusCode: number;
|
|
11
|
-
data: response_Data | undefined;
|
|
12
|
-
}
|
|
13
|
-
export interface response_Data {
|
|
14
|
-
payment_status: string;
|
|
15
|
-
external_order_id: string;
|
|
16
|
-
}
|
|
17
|
-
export declare const request: {
|
|
18
|
-
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
20
|
-
fromJSON(object: any): request;
|
|
21
|
-
toJSON(message: request): unknown;
|
|
22
|
-
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
23
|
-
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
|
|
24
|
-
};
|
|
25
|
-
export declare const response: {
|
|
26
|
-
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
27
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
28
|
-
fromJSON(object: any): response;
|
|
29
|
-
toJSON(message: response): unknown;
|
|
30
|
-
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
31
|
-
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
32
|
-
};
|
|
33
|
-
export declare const response_Data: {
|
|
34
|
-
encode(message: response_Data, writer?: _m0.Writer): _m0.Writer;
|
|
35
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): response_Data;
|
|
36
|
-
fromJSON(object: any): response_Data;
|
|
37
|
-
toJSON(message: response_Data): unknown;
|
|
38
|
-
create<I extends Exact<DeepPartial<response_Data>, I>>(base?: I): response_Data;
|
|
39
|
-
fromPartial<I extends Exact<DeepPartial<response_Data>, I>>(object: I): response_Data;
|
|
40
|
-
};
|
|
41
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
42
|
-
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 {} ? {
|
|
43
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
44
|
-
} : Partial<T>;
|
|
45
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
46
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
47
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
48
|
-
} & {
|
|
49
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
50
|
-
};
|
|
51
|
-
export {};
|