@stashfin/grpc 1.2.168 → 1.2.169
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/bureau/getbasicdetails.d.ts +0 -57
- package/ts/bureau/getbasicdetails.js +0 -341
- package/ts/bureau/getdemogs.d.ts +0 -113
- package/ts/bureau/getdemogs.js +0 -611
- package/ts/bureau/getreport.d.ts +0 -188
- package/ts/bureau/getreport.js +0 -1640
- package/ts/bureau.d.ts +0 -56
- package/ts/bureau.js +0 -44
- package/ts/colender/disburseLoan.d.ts +0 -44
- package/ts/colender/disburseLoan.js +0 -256
- package/ts/colender/forecloseLoan.d.ts +0 -41
- package/ts/colender/forecloseLoan.js +0 -205
- package/ts/colender/repayLoan.d.ts +0 -48
- package/ts/colender/repayLoan.js +0 -313
- package/ts/colender.d.ts +0 -56
- package/ts/colender.js +0 -44
- package/ts/customers/aa/getbanklist.d.ts +0 -48
- package/ts/customers/aa/getbanklist.js +0 -198
- package/ts/customers/aa/initiate.d.ts +0 -40
- package/ts/customers/aa/initiate.js +0 -209
- package/ts/customers/addaddress.d.ts +0 -50
- package/ts/customers/addaddress.js +0 -265
- package/ts/customers/addbankaccountdetails.d.ts +0 -37
- package/ts/customers/addbankaccountdetails.js +0 -147
- package/ts/customers/addfathersname.d.ts +0 -35
- package/ts/customers/addfathersname.js +0 -117
- package/ts/customers/addgstnumber.d.ts +0 -35
- package/ts/customers/addgstnumber.js +0 -117
- package/ts/customers/addmoredetails.d.ts +0 -60
- package/ts/customers/addmoredetails.js +0 -314
- package/ts/customers/addsuspendedcustomer.d.ts +0 -36
- package/ts/customers/addsuspendedcustomer.js +0 -133
- package/ts/customers/adduserapps.d.ts +0 -74
- package/ts/customers/adduserapps.js +0 -210
- package/ts/customers/bulksms.d.ts +0 -48
- package/ts/customers/bulksms.js +0 -201
- package/ts/customers/changempin.d.ts +0 -36
- package/ts/customers/changempin.js +0 -133
- package/ts/customers/createcustomerreference.d.ts +0 -43
- package/ts/customers/createcustomerreference.js +0 -226
- package/ts/customers/deleteprofile.d.ts +0 -35
- package/ts/customers/deleteprofile.js +0 -120
- package/ts/customers/disablempin.d.ts +0 -34
- package/ts/customers/disablempin.js +0 -104
- package/ts/customers/fetchrcprofile.d.ts +0 -45
- package/ts/customers/fetchrcprofile.js +0 -271
- package/ts/customers/forgotmpin.d.ts +0 -35
- package/ts/customers/forgotmpin.js +0 -117
- package/ts/customers/forgotmpinverify.d.ts +0 -36
- package/ts/customers/forgotmpinverify.js +0 -133
- package/ts/customers/getbankaccountdetails.d.ts +0 -37
- package/ts/customers/getbankaccountdetails.js +0 -148
- package/ts/customers/getbasicinfo.d.ts +0 -56
- package/ts/customers/getbasicinfo.js +0 -323
- package/ts/customers/getcities.d.ts +0 -47
- package/ts/customers/getcities.js +0 -183
- package/ts/customers/getcompanyaccdetails.d.ts +0 -37
- package/ts/customers/getcompanyaccdetails.js +0 -148
- package/ts/customers/getcustomerbyid.d.ts +0 -142
- package/ts/customers/getcustomerbyid.js +0 -1521
- package/ts/customers/getdashboard.d.ts +0 -88
- package/ts/customers/getdashboard.js +0 -574
- package/ts/customers/getdashboardmaincard.d.ts +0 -70
- package/ts/customers/getdashboardmaincard.js +0 -534
- package/ts/customers/getdocuments.d.ts +0 -46
- package/ts/customers/getdocuments.js +0 -174
- package/ts/customers/getlimit.d.ts +0 -37
- package/ts/customers/getlimit.js +0 -148
- package/ts/customers/getprofessionalinfo.d.ts +0 -54
- package/ts/customers/getprofessionalinfo.js +0 -286
- package/ts/customers/getprofile.d.ts +0 -54
- package/ts/customers/getprofile.js +0 -296
- package/ts/customers/getselfieetxnid.d.ts +0 -34
- package/ts/customers/getselfieetxnid.js +0 -104
- package/ts/customers/getstates.d.ts +0 -46
- package/ts/customers/getstates.js +0 -170
- package/ts/customers/getstep.d.ts +0 -69
- package/ts/customers/getstep.js +0 -406
- package/ts/customers/logout.d.ts +0 -34
- package/ts/customers/logout.js +0 -104
- package/ts/customers/profilebasic.d.ts +0 -40
- package/ts/customers/profilebasic.js +0 -189
- package/ts/customers/profileupdatetnc.d.ts +0 -35
- package/ts/customers/profileupdatetnc.js +0 -117
- package/ts/customers/savebasicdetails.d.ts +0 -47
- package/ts/customers/savebasicdetails.js +0 -185
- package/ts/customers/saveunlocklimit.d.ts +0 -34
- package/ts/customers/saveunlocklimit.js +0 -104
- package/ts/customers/sendotp.d.ts +0 -38
- package/ts/customers/sendotp.js +0 -165
- package/ts/customers/sendotptoemail.d.ts +0 -35
- package/ts/customers/sendotptoemail.js +0 -117
- package/ts/customers/setmpin.d.ts +0 -36
- package/ts/customers/setmpin.js +0 -133
- package/ts/customers/skipdlrcscreen.d.ts +0 -35
- package/ts/customers/skipdlrcscreen.js +0 -117
- package/ts/customers/skipscreen.d.ts +0 -44
- package/ts/customers/skipscreen.js +0 -162
- package/ts/customers/stepstatic.d.ts +0 -66
- package/ts/customers/stepstatic.js +0 -354
- package/ts/customers/updatecustomerbyid.d.ts +0 -48
- package/ts/customers/updatecustomerbyid.js +0 -201
- package/ts/customers/updatedlnumber.d.ts +0 -35
- package/ts/customers/updatedlnumber.js +0 -119
- package/ts/customers/updatedob.d.ts +0 -35
- package/ts/customers/updatedob.js +0 -117
- package/ts/customers/updatelocstatus.d.ts +0 -36
- package/ts/customers/updatelocstatus.js +0 -133
- package/ts/customers/updatemobilesendotp.d.ts +0 -35
- package/ts/customers/updatemobilesendotp.js +0 -117
- package/ts/customers/updatemobileverifyotp.d.ts +0 -36
- package/ts/customers/updatemobileverifyotp.js +0 -133
- package/ts/customers/updateokyctxn.d.ts +0 -37
- package/ts/customers/updateokyctxn.js +0 -147
- package/ts/customers/updateselfieetxn.d.ts +0 -36
- package/ts/customers/updateselfieetxn.js +0 -133
- package/ts/customers/updatevehiclenumber.d.ts +0 -35
- package/ts/customers/updatevehiclenumber.js +0 -117
- package/ts/customers/uploaddocuments.d.ts +0 -37
- package/ts/customers/uploaddocuments.js +0 -172
- package/ts/customers/validatepan.d.ts +0 -45
- package/ts/customers/validatepan.js +0 -274
- package/ts/customers/verifympin.d.ts +0 -37
- package/ts/customers/verifympin.js +0 -149
- package/ts/customers/verifyotp.d.ts +0 -41
- package/ts/customers/verifyotp.js +0 -205
- package/ts/customers/verifyotptoemail.d.ts +0 -35
- package/ts/customers/verifyotptoemail.js +0 -117
- package/ts/customers.d.ts +0 -796
- package/ts/customers.js +0 -572
- package/ts/example.d.ts +0 -78
- package/ts/example.js +0 -199
- package/ts/growth/processchrpayment.d.ts +0 -40
- package/ts/growth/processchrpayment.js +0 -205
- package/ts/growth.d.ts +0 -28
- package/ts/growth.js +0 -24
- package/ts/loans/approveloan.d.ts +0 -81
- package/ts/loans/approveloan.js +0 -703
- package/ts/loans/banklist.d.ts +0 -37
- package/ts/loans/banklist.js +0 -148
- package/ts/loans/calculateemi.d.ts +0 -57
- package/ts/loans/calculateemi.js +0 -340
- package/ts/loans/creditlimit.d.ts +0 -51
- package/ts/loans/creditlimit.js +0 -381
- package/ts/loans/futurepaymentmoredetails.d.ts +0 -50
- package/ts/loans/futurepaymentmoredetails.js +0 -230
- package/ts/loans/getbilldetails.d.ts +0 -38
- package/ts/loans/getbilldetails.js +0 -161
- package/ts/loans/getcustomerloanstatus.d.ts +0 -34
- package/ts/loans/getcustomerloanstatus.js +0 -104
- package/ts/loans/getloanbyid.d.ts +0 -48
- package/ts/loans/getloanbyid.js +0 -318
- package/ts/loans/getnextdueamount.d.ts +0 -34
- package/ts/loans/getnextdueamount.js +0 -104
- package/ts/loans/getpendingemiamount.d.ts +0 -34
- package/ts/loans/getpendingemiamount.js +0 -104
- package/ts/loans/getsummarystaticfields.d.ts +0 -80
- package/ts/loans/getsummarystaticfields.js +0 -700
- package/ts/loans/loansummary.d.ts +0 -66
- package/ts/loans/loansummary.js +0 -593
- package/ts/loans/paymentallocation.d.ts +0 -38
- package/ts/loans/paymentallocation.js +0 -161
- package/ts/loans/paymenthistory.d.ts +0 -47
- package/ts/loans/paymenthistory.js +0 -188
- package/ts/loans/restructureloan.d.ts +0 -36
- package/ts/loans/restructureloan.js +0 -133
- package/ts/loans/sendemail.d.ts +0 -35
- package/ts/loans/sendemail.js +0 -117
- package/ts/loans/sendnocemail.d.ts +0 -35
- package/ts/loans/sendnocemail.js +0 -117
- package/ts/loans/transactionlist.d.ts +0 -52
- package/ts/loans/transactionlist.js +0 -257
- package/ts/loans/updateinstallments.d.ts +0 -42
- package/ts/loans/updateinstallments.js +0 -226
- package/ts/loans/updateloan.d.ts +0 -37
- package/ts/loans/updateloan.js +0 -147
- package/ts/loans.d.ts +0 -294
- package/ts/loans.js +0 -214
- package/ts/payments.d.ts +0 -239
- package/ts/payments.js +0 -1117
- 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
package/ts/example.js
DELETED
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
-
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.0
|
|
5
|
-
// protoc v5.27.4
|
|
6
|
-
// source: example.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.ExampleClient = exports.ExampleService = exports.ExampleResponse = exports.ExampleRequest = exports.protobufPackage = void 0;
|
|
12
|
-
/* eslint-disable */
|
|
13
|
-
const grpc_js_1 = require("@grpc/grpc-js");
|
|
14
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
|
-
exports.protobufPackage = "service";
|
|
16
|
-
function createBaseExampleRequest() {
|
|
17
|
-
return { name: "", id: 0 };
|
|
18
|
-
}
|
|
19
|
-
exports.ExampleRequest = {
|
|
20
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
-
if (message.name !== "") {
|
|
22
|
-
writer.uint32(10).string(message.name);
|
|
23
|
-
}
|
|
24
|
-
if (message.id !== 0) {
|
|
25
|
-
writer.uint32(16).int32(message.id);
|
|
26
|
-
}
|
|
27
|
-
return writer;
|
|
28
|
-
},
|
|
29
|
-
decode(input, length) {
|
|
30
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
31
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32
|
-
const message = createBaseExampleRequest();
|
|
33
|
-
while (reader.pos < end) {
|
|
34
|
-
const tag = reader.uint32();
|
|
35
|
-
switch (tag >>> 3) {
|
|
36
|
-
case 1:
|
|
37
|
-
if (tag !== 10) {
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
message.name = reader.string();
|
|
41
|
-
continue;
|
|
42
|
-
case 2:
|
|
43
|
-
if (tag !== 16) {
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
message.id = reader.int32();
|
|
47
|
-
continue;
|
|
48
|
-
}
|
|
49
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
reader.skipType(tag & 7);
|
|
53
|
-
}
|
|
54
|
-
return message;
|
|
55
|
-
},
|
|
56
|
-
fromJSON(object) {
|
|
57
|
-
return {
|
|
58
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
59
|
-
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
60
|
-
};
|
|
61
|
-
},
|
|
62
|
-
toJSON(message) {
|
|
63
|
-
const obj = {};
|
|
64
|
-
if (message.name !== "") {
|
|
65
|
-
obj.name = message.name;
|
|
66
|
-
}
|
|
67
|
-
if (message.id !== 0) {
|
|
68
|
-
obj.id = Math.round(message.id);
|
|
69
|
-
}
|
|
70
|
-
return obj;
|
|
71
|
-
},
|
|
72
|
-
create(base) {
|
|
73
|
-
return exports.ExampleRequest.fromPartial(base ?? {});
|
|
74
|
-
},
|
|
75
|
-
fromPartial(object) {
|
|
76
|
-
const message = createBaseExampleRequest();
|
|
77
|
-
message.name = object.name ?? "";
|
|
78
|
-
message.id = object.id ?? 0;
|
|
79
|
-
return message;
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
function createBaseExampleResponse() {
|
|
83
|
-
return { message: "", id: 0, name: "", status: "" };
|
|
84
|
-
}
|
|
85
|
-
exports.ExampleResponse = {
|
|
86
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
87
|
-
if (message.message !== "") {
|
|
88
|
-
writer.uint32(10).string(message.message);
|
|
89
|
-
}
|
|
90
|
-
if (message.id !== 0) {
|
|
91
|
-
writer.uint32(16).int32(message.id);
|
|
92
|
-
}
|
|
93
|
-
if (message.name !== "") {
|
|
94
|
-
writer.uint32(26).string(message.name);
|
|
95
|
-
}
|
|
96
|
-
if (message.status !== "") {
|
|
97
|
-
writer.uint32(34).string(message.status);
|
|
98
|
-
}
|
|
99
|
-
return writer;
|
|
100
|
-
},
|
|
101
|
-
decode(input, length) {
|
|
102
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
103
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
104
|
-
const message = createBaseExampleResponse();
|
|
105
|
-
while (reader.pos < end) {
|
|
106
|
-
const tag = reader.uint32();
|
|
107
|
-
switch (tag >>> 3) {
|
|
108
|
-
case 1:
|
|
109
|
-
if (tag !== 10) {
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
message.message = reader.string();
|
|
113
|
-
continue;
|
|
114
|
-
case 2:
|
|
115
|
-
if (tag !== 16) {
|
|
116
|
-
break;
|
|
117
|
-
}
|
|
118
|
-
message.id = reader.int32();
|
|
119
|
-
continue;
|
|
120
|
-
case 3:
|
|
121
|
-
if (tag !== 26) {
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
message.name = reader.string();
|
|
125
|
-
continue;
|
|
126
|
-
case 4:
|
|
127
|
-
if (tag !== 34) {
|
|
128
|
-
break;
|
|
129
|
-
}
|
|
130
|
-
message.status = reader.string();
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
reader.skipType(tag & 7);
|
|
137
|
-
}
|
|
138
|
-
return message;
|
|
139
|
-
},
|
|
140
|
-
fromJSON(object) {
|
|
141
|
-
return {
|
|
142
|
-
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
143
|
-
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
144
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
145
|
-
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
146
|
-
};
|
|
147
|
-
},
|
|
148
|
-
toJSON(message) {
|
|
149
|
-
const obj = {};
|
|
150
|
-
if (message.message !== "") {
|
|
151
|
-
obj.message = message.message;
|
|
152
|
-
}
|
|
153
|
-
if (message.id !== 0) {
|
|
154
|
-
obj.id = Math.round(message.id);
|
|
155
|
-
}
|
|
156
|
-
if (message.name !== "") {
|
|
157
|
-
obj.name = message.name;
|
|
158
|
-
}
|
|
159
|
-
if (message.status !== "") {
|
|
160
|
-
obj.status = message.status;
|
|
161
|
-
}
|
|
162
|
-
return obj;
|
|
163
|
-
},
|
|
164
|
-
create(base) {
|
|
165
|
-
return exports.ExampleResponse.fromPartial(base ?? {});
|
|
166
|
-
},
|
|
167
|
-
fromPartial(object) {
|
|
168
|
-
const message = createBaseExampleResponse();
|
|
169
|
-
message.message = object.message ?? "";
|
|
170
|
-
message.id = object.id ?? 0;
|
|
171
|
-
message.name = object.name ?? "";
|
|
172
|
-
message.status = object.status ?? "";
|
|
173
|
-
return message;
|
|
174
|
-
},
|
|
175
|
-
};
|
|
176
|
-
exports.ExampleService = {
|
|
177
|
-
getExample: {
|
|
178
|
-
path: "/service.Example/GetExample",
|
|
179
|
-
requestStream: false,
|
|
180
|
-
responseStream: false,
|
|
181
|
-
requestSerialize: (value) => Buffer.from(exports.ExampleRequest.encode(value).finish()),
|
|
182
|
-
requestDeserialize: (value) => exports.ExampleRequest.decode(value),
|
|
183
|
-
responseSerialize: (value) => Buffer.from(exports.ExampleResponse.encode(value).finish()),
|
|
184
|
-
responseDeserialize: (value) => exports.ExampleResponse.decode(value),
|
|
185
|
-
},
|
|
186
|
-
setExample: {
|
|
187
|
-
path: "/service.Example/SetExample",
|
|
188
|
-
requestStream: false,
|
|
189
|
-
responseStream: false,
|
|
190
|
-
requestSerialize: (value) => Buffer.from(exports.ExampleRequest.encode(value).finish()),
|
|
191
|
-
requestDeserialize: (value) => exports.ExampleRequest.decode(value),
|
|
192
|
-
responseSerialize: (value) => Buffer.from(exports.ExampleResponse.encode(value).finish()),
|
|
193
|
-
responseDeserialize: (value) => exports.ExampleResponse.decode(value),
|
|
194
|
-
},
|
|
195
|
-
};
|
|
196
|
-
exports.ExampleClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.ExampleService, "service.Example");
|
|
197
|
-
function isSet(value) {
|
|
198
|
-
return value !== null && value !== undefined;
|
|
199
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "growth.processchrpayment";
|
|
3
|
-
export interface request {
|
|
4
|
-
txn_id: string;
|
|
5
|
-
txn_status: string;
|
|
6
|
-
customer_id: number;
|
|
7
|
-
data: string;
|
|
8
|
-
}
|
|
9
|
-
export interface response {
|
|
10
|
-
status: string;
|
|
11
|
-
txn_id: string;
|
|
12
|
-
txn_status: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const request: {
|
|
15
|
-
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
|
16
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
17
|
-
fromJSON(object: any): request;
|
|
18
|
-
toJSON(message: request): unknown;
|
|
19
|
-
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
20
|
-
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
|
|
21
|
-
};
|
|
22
|
-
export declare const response: {
|
|
23
|
-
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
24
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
25
|
-
fromJSON(object: any): response;
|
|
26
|
-
toJSON(message: response): unknown;
|
|
27
|
-
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
28
|
-
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
29
|
-
};
|
|
30
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
31
|
-
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 {} ? {
|
|
32
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
33
|
-
} : Partial<T>;
|
|
34
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
35
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
36
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
37
|
-
} & {
|
|
38
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
39
|
-
};
|
|
40
|
-
export {};
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
-
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.0
|
|
5
|
-
// protoc v5.27.4
|
|
6
|
-
// source: growth/processchrpayment.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.response = exports.request = exports.protobufPackage = void 0;
|
|
12
|
-
/* eslint-disable */
|
|
13
|
-
const long_1 = __importDefault(require("long"));
|
|
14
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
|
-
exports.protobufPackage = "growth.processchrpayment";
|
|
16
|
-
function createBaserequest() {
|
|
17
|
-
return { txn_id: "", txn_status: "", customer_id: 0, data: "" };
|
|
18
|
-
}
|
|
19
|
-
exports.request = {
|
|
20
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
-
if (message.txn_id !== "") {
|
|
22
|
-
writer.uint32(10).string(message.txn_id);
|
|
23
|
-
}
|
|
24
|
-
if (message.txn_status !== "") {
|
|
25
|
-
writer.uint32(18).string(message.txn_status);
|
|
26
|
-
}
|
|
27
|
-
if (message.customer_id !== 0) {
|
|
28
|
-
writer.uint32(24).int64(message.customer_id);
|
|
29
|
-
}
|
|
30
|
-
if (message.data !== "") {
|
|
31
|
-
writer.uint32(34).string(message.data);
|
|
32
|
-
}
|
|
33
|
-
return writer;
|
|
34
|
-
},
|
|
35
|
-
decode(input, length) {
|
|
36
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
37
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38
|
-
const message = createBaserequest();
|
|
39
|
-
while (reader.pos < end) {
|
|
40
|
-
const tag = reader.uint32();
|
|
41
|
-
switch (tag >>> 3) {
|
|
42
|
-
case 1:
|
|
43
|
-
if (tag !== 10) {
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
message.txn_id = reader.string();
|
|
47
|
-
continue;
|
|
48
|
-
case 2:
|
|
49
|
-
if (tag !== 18) {
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
message.txn_status = reader.string();
|
|
53
|
-
continue;
|
|
54
|
-
case 3:
|
|
55
|
-
if (tag !== 24) {
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
message.customer_id = longToNumber(reader.int64());
|
|
59
|
-
continue;
|
|
60
|
-
case 4:
|
|
61
|
-
if (tag !== 34) {
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
message.data = reader.string();
|
|
65
|
-
continue;
|
|
66
|
-
}
|
|
67
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
68
|
-
break;
|
|
69
|
-
}
|
|
70
|
-
reader.skipType(tag & 7);
|
|
71
|
-
}
|
|
72
|
-
return message;
|
|
73
|
-
},
|
|
74
|
-
fromJSON(object) {
|
|
75
|
-
return {
|
|
76
|
-
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
|
|
77
|
-
txn_status: isSet(object.txn_status) ? globalThis.String(object.txn_status) : "",
|
|
78
|
-
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
79
|
-
data: isSet(object.data) ? globalThis.String(object.data) : "",
|
|
80
|
-
};
|
|
81
|
-
},
|
|
82
|
-
toJSON(message) {
|
|
83
|
-
const obj = {};
|
|
84
|
-
if (message.txn_id !== "") {
|
|
85
|
-
obj.txn_id = message.txn_id;
|
|
86
|
-
}
|
|
87
|
-
if (message.txn_status !== "") {
|
|
88
|
-
obj.txn_status = message.txn_status;
|
|
89
|
-
}
|
|
90
|
-
if (message.customer_id !== 0) {
|
|
91
|
-
obj.customer_id = Math.round(message.customer_id);
|
|
92
|
-
}
|
|
93
|
-
if (message.data !== "") {
|
|
94
|
-
obj.data = message.data;
|
|
95
|
-
}
|
|
96
|
-
return obj;
|
|
97
|
-
},
|
|
98
|
-
create(base) {
|
|
99
|
-
return exports.request.fromPartial(base ?? {});
|
|
100
|
-
},
|
|
101
|
-
fromPartial(object) {
|
|
102
|
-
const message = createBaserequest();
|
|
103
|
-
message.txn_id = object.txn_id ?? "";
|
|
104
|
-
message.txn_status = object.txn_status ?? "";
|
|
105
|
-
message.customer_id = object.customer_id ?? 0;
|
|
106
|
-
message.data = object.data ?? "";
|
|
107
|
-
return message;
|
|
108
|
-
},
|
|
109
|
-
};
|
|
110
|
-
function createBaseresponse() {
|
|
111
|
-
return { status: "", txn_id: "", txn_status: "" };
|
|
112
|
-
}
|
|
113
|
-
exports.response = {
|
|
114
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
115
|
-
if (message.status !== "") {
|
|
116
|
-
writer.uint32(10).string(message.status);
|
|
117
|
-
}
|
|
118
|
-
if (message.txn_id !== "") {
|
|
119
|
-
writer.uint32(18).string(message.txn_id);
|
|
120
|
-
}
|
|
121
|
-
if (message.txn_status !== "") {
|
|
122
|
-
writer.uint32(26).string(message.txn_status);
|
|
123
|
-
}
|
|
124
|
-
return writer;
|
|
125
|
-
},
|
|
126
|
-
decode(input, length) {
|
|
127
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
128
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
129
|
-
const message = createBaseresponse();
|
|
130
|
-
while (reader.pos < end) {
|
|
131
|
-
const tag = reader.uint32();
|
|
132
|
-
switch (tag >>> 3) {
|
|
133
|
-
case 1:
|
|
134
|
-
if (tag !== 10) {
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
message.status = reader.string();
|
|
138
|
-
continue;
|
|
139
|
-
case 2:
|
|
140
|
-
if (tag !== 18) {
|
|
141
|
-
break;
|
|
142
|
-
}
|
|
143
|
-
message.txn_id = reader.string();
|
|
144
|
-
continue;
|
|
145
|
-
case 3:
|
|
146
|
-
if (tag !== 26) {
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
message.txn_status = reader.string();
|
|
150
|
-
continue;
|
|
151
|
-
}
|
|
152
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
reader.skipType(tag & 7);
|
|
156
|
-
}
|
|
157
|
-
return message;
|
|
158
|
-
},
|
|
159
|
-
fromJSON(object) {
|
|
160
|
-
return {
|
|
161
|
-
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
162
|
-
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
|
|
163
|
-
txn_status: isSet(object.txn_status) ? globalThis.String(object.txn_status) : "",
|
|
164
|
-
};
|
|
165
|
-
},
|
|
166
|
-
toJSON(message) {
|
|
167
|
-
const obj = {};
|
|
168
|
-
if (message.status !== "") {
|
|
169
|
-
obj.status = message.status;
|
|
170
|
-
}
|
|
171
|
-
if (message.txn_id !== "") {
|
|
172
|
-
obj.txn_id = message.txn_id;
|
|
173
|
-
}
|
|
174
|
-
if (message.txn_status !== "") {
|
|
175
|
-
obj.txn_status = message.txn_status;
|
|
176
|
-
}
|
|
177
|
-
return obj;
|
|
178
|
-
},
|
|
179
|
-
create(base) {
|
|
180
|
-
return exports.response.fromPartial(base ?? {});
|
|
181
|
-
},
|
|
182
|
-
fromPartial(object) {
|
|
183
|
-
const message = createBaseresponse();
|
|
184
|
-
message.status = object.status ?? "";
|
|
185
|
-
message.txn_id = object.txn_id ?? "";
|
|
186
|
-
message.txn_status = object.txn_status ?? "";
|
|
187
|
-
return message;
|
|
188
|
-
},
|
|
189
|
-
};
|
|
190
|
-
function longToNumber(long) {
|
|
191
|
-
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
192
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
193
|
-
}
|
|
194
|
-
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
195
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
196
|
-
}
|
|
197
|
-
return long.toNumber();
|
|
198
|
-
}
|
|
199
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
200
|
-
minimal_1.default.util.Long = long_1.default;
|
|
201
|
-
minimal_1.default.configure();
|
|
202
|
-
}
|
|
203
|
-
function isSet(value) {
|
|
204
|
-
return value !== null && value !== undefined;
|
|
205
|
-
}
|
package/ts/growth.d.ts
DELETED
|
@@ -1,28 +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 { request, response } from "./growth/processchrpayment";
|
|
3
|
-
export declare const protobufPackage = "service";
|
|
4
|
-
export type growthService = typeof growthService;
|
|
5
|
-
export declare const growthService: {
|
|
6
|
-
readonly processchrpayment: {
|
|
7
|
-
readonly path: "/service.growth/processchrpayment";
|
|
8
|
-
readonly requestStream: false;
|
|
9
|
-
readonly responseStream: false;
|
|
10
|
-
readonly requestSerialize: (value: request) => Buffer;
|
|
11
|
-
readonly requestDeserialize: (value: Buffer) => request;
|
|
12
|
-
readonly responseSerialize: (value: response) => Buffer;
|
|
13
|
-
readonly responseDeserialize: (value: Buffer) => response;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export interface growthServer extends UntypedServiceImplementation {
|
|
17
|
-
processchrpayment: handleUnaryCall<request, response>;
|
|
18
|
-
}
|
|
19
|
-
export interface growthClient extends Client {
|
|
20
|
-
processchrpayment(request: request, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
|
|
21
|
-
processchrpayment(request: request, metadata: Metadata, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
|
|
22
|
-
processchrpayment(request: request, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
|
|
23
|
-
}
|
|
24
|
-
export declare const growthClient: {
|
|
25
|
-
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): growthClient;
|
|
26
|
-
service: typeof growthService;
|
|
27
|
-
serviceName: string;
|
|
28
|
-
};
|
package/ts/growth.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
-
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.0
|
|
5
|
-
// protoc v5.27.4
|
|
6
|
-
// source: growth.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.growthClient = exports.growthService = exports.protobufPackage = void 0;
|
|
9
|
-
/* eslint-disable */
|
|
10
|
-
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
-
const processchrpayment_1 = require("./growth/processchrpayment");
|
|
12
|
-
exports.protobufPackage = "service";
|
|
13
|
-
exports.growthService = {
|
|
14
|
-
processchrpayment: {
|
|
15
|
-
path: "/service.growth/processchrpayment",
|
|
16
|
-
requestStream: false,
|
|
17
|
-
responseStream: false,
|
|
18
|
-
requestSerialize: (value) => Buffer.from(processchrpayment_1.request.encode(value).finish()),
|
|
19
|
-
requestDeserialize: (value) => processchrpayment_1.request.decode(value),
|
|
20
|
-
responseSerialize: (value) => Buffer.from(processchrpayment_1.response.encode(value).finish()),
|
|
21
|
-
responseDeserialize: (value) => processchrpayment_1.response.decode(value),
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
exports.growthClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.growthService, "service.growth");
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "loans.approveloan";
|
|
3
|
-
export interface approveLoanRequest {
|
|
4
|
-
bank_id: number;
|
|
5
|
-
amount: number;
|
|
6
|
-
tenure: number;
|
|
7
|
-
customer_id: number;
|
|
8
|
-
ip: string;
|
|
9
|
-
addons: number;
|
|
10
|
-
addonsData: approveLoanRequest_Field[];
|
|
11
|
-
}
|
|
12
|
-
export interface approveLoanRequest_Field {
|
|
13
|
-
name: string;
|
|
14
|
-
amount: number;
|
|
15
|
-
}
|
|
16
|
-
export interface approveLoanResponse {
|
|
17
|
-
gateway_fees: number;
|
|
18
|
-
striked_gateway_fees: number;
|
|
19
|
-
bill_date: string;
|
|
20
|
-
requested_amount: number;
|
|
21
|
-
tenure: number;
|
|
22
|
-
emi_amount: number;
|
|
23
|
-
net_amount_payable: number;
|
|
24
|
-
first_emi_date: string;
|
|
25
|
-
final_disbursal_amount: number;
|
|
26
|
-
upfront_interest: number;
|
|
27
|
-
rate_of_interest: number;
|
|
28
|
-
bill_amount: number;
|
|
29
|
-
total_interest_pay: number;
|
|
30
|
-
effective_annual_rate: number;
|
|
31
|
-
transaction_fee_bill_amount: number;
|
|
32
|
-
processing_fee_plus_gst: number;
|
|
33
|
-
trans_fee_plus_gst: number;
|
|
34
|
-
fee_and_charges: number;
|
|
35
|
-
fee_and_charges_bill: number;
|
|
36
|
-
effective_roi: number;
|
|
37
|
-
effective_annual_roi: number;
|
|
38
|
-
emi_card_description: string;
|
|
39
|
-
bill_card_description: string;
|
|
40
|
-
apr_value: number;
|
|
41
|
-
apr_type: string;
|
|
42
|
-
max_amount: number;
|
|
43
|
-
credit_report_fees: number;
|
|
44
|
-
credit_report_actual_fees: number;
|
|
45
|
-
plan_id: number;
|
|
46
|
-
}
|
|
47
|
-
export declare const approveLoanRequest: {
|
|
48
|
-
encode(message: approveLoanRequest, writer?: _m0.Writer): _m0.Writer;
|
|
49
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): approveLoanRequest;
|
|
50
|
-
fromJSON(object: any): approveLoanRequest;
|
|
51
|
-
toJSON(message: approveLoanRequest): unknown;
|
|
52
|
-
create<I extends Exact<DeepPartial<approveLoanRequest>, I>>(base?: I): approveLoanRequest;
|
|
53
|
-
fromPartial<I extends Exact<DeepPartial<approveLoanRequest>, I>>(object: I): approveLoanRequest;
|
|
54
|
-
};
|
|
55
|
-
export declare const approveLoanRequest_Field: {
|
|
56
|
-
encode(message: approveLoanRequest_Field, writer?: _m0.Writer): _m0.Writer;
|
|
57
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): approveLoanRequest_Field;
|
|
58
|
-
fromJSON(object: any): approveLoanRequest_Field;
|
|
59
|
-
toJSON(message: approveLoanRequest_Field): unknown;
|
|
60
|
-
create<I extends Exact<DeepPartial<approveLoanRequest_Field>, I>>(base?: I): approveLoanRequest_Field;
|
|
61
|
-
fromPartial<I extends Exact<DeepPartial<approveLoanRequest_Field>, I>>(object: I): approveLoanRequest_Field;
|
|
62
|
-
};
|
|
63
|
-
export declare const approveLoanResponse: {
|
|
64
|
-
encode(message: approveLoanResponse, writer?: _m0.Writer): _m0.Writer;
|
|
65
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): approveLoanResponse;
|
|
66
|
-
fromJSON(object: any): approveLoanResponse;
|
|
67
|
-
toJSON(message: approveLoanResponse): unknown;
|
|
68
|
-
create<I extends Exact<DeepPartial<approveLoanResponse>, I>>(base?: I): approveLoanResponse;
|
|
69
|
-
fromPartial<I extends Exact<DeepPartial<approveLoanResponse>, I>>(object: I): approveLoanResponse;
|
|
70
|
-
};
|
|
71
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
72
|
-
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 {} ? {
|
|
73
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
74
|
-
} : Partial<T>;
|
|
75
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
76
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
77
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
78
|
-
} & {
|
|
79
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
80
|
-
};
|
|
81
|
-
export {};
|