@stashfin/grpc 1.2.307 → 1.2.309
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/getsyncstatus.d.ts +35 -0
- package/ts/customers/getsyncstatus.js +120 -0
- package/ts/customers/getvanumber.d.ts +35 -0
- package/ts/customers/getvanumber.js +117 -0
- package/ts/customers/updatesyncstatus.d.ts +36 -0
- package/ts/customers/updatesyncstatus.js +133 -0
- package/ts/customers.d.ts +42 -0
- package/ts/customers.js +30 -0
- package/ts/growth/getchrpaymentstatus.d.ts +49 -0
- package/ts/growth/getchrpaymentstatus.js +213 -0
- package/ts/growth/initiatepayment.d.ts +1 -0
- package/ts/growth/initiatepayment.js +18 -2
- package/ts/growth.d.ts +14 -0
- package/ts/growth.js +10 -0
- package/ts/loans/getchrdetails.d.ts +52 -0
- package/ts/loans/getchrdetails.js +256 -0
- package/ts/loans/loansummary.d.ts +13 -1
- package/ts/loans/loansummary.js +78 -10
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
package/ts/loans/loansummary.js
CHANGED
|
@@ -8,17 +8,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.loanSummaryResponse = exports.loanSummaryRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.loanSummaryResponse = exports.loanSummaryRequest_Field = exports.loanSummaryRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.loansummary";
|
|
15
15
|
function createBaseloanSummaryRequest() {
|
|
16
|
-
return { addons:
|
|
16
|
+
return { addons: [], amount: 0, tenure: 0 };
|
|
17
17
|
}
|
|
18
18
|
exports.loanSummaryRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
|
|
21
|
-
writer.uint32(
|
|
20
|
+
for (const v of message.addons) {
|
|
21
|
+
exports.loanSummaryRequest_Field.encode(v, writer.uint32(10).fork()).ldelim();
|
|
22
22
|
}
|
|
23
23
|
if (message.amount !== 0) {
|
|
24
24
|
writer.uint32(16).int32(message.amount);
|
|
@@ -36,10 +36,10 @@ exports.loanSummaryRequest = {
|
|
|
36
36
|
const tag = reader.uint32();
|
|
37
37
|
switch (tag >>> 3) {
|
|
38
38
|
case 1:
|
|
39
|
-
if (tag !==
|
|
39
|
+
if (tag !== 10) {
|
|
40
40
|
break;
|
|
41
41
|
}
|
|
42
|
-
message.addons
|
|
42
|
+
message.addons.push(exports.loanSummaryRequest_Field.decode(reader, reader.uint32()));
|
|
43
43
|
continue;
|
|
44
44
|
case 2:
|
|
45
45
|
if (tag !== 16) {
|
|
@@ -63,15 +63,17 @@ exports.loanSummaryRequest = {
|
|
|
63
63
|
},
|
|
64
64
|
fromJSON(object) {
|
|
65
65
|
return {
|
|
66
|
-
addons:
|
|
66
|
+
addons: globalThis.Array.isArray(object?.addons)
|
|
67
|
+
? object.addons.map((e) => exports.loanSummaryRequest_Field.fromJSON(e))
|
|
68
|
+
: [],
|
|
67
69
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
68
70
|
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
69
71
|
};
|
|
70
72
|
},
|
|
71
73
|
toJSON(message) {
|
|
72
74
|
const obj = {};
|
|
73
|
-
if (message.addons
|
|
74
|
-
obj.addons =
|
|
75
|
+
if (message.addons?.length) {
|
|
76
|
+
obj.addons = message.addons.map((e) => exports.loanSummaryRequest_Field.toJSON(e));
|
|
75
77
|
}
|
|
76
78
|
if (message.amount !== 0) {
|
|
77
79
|
obj.amount = Math.round(message.amount);
|
|
@@ -86,12 +88,78 @@ exports.loanSummaryRequest = {
|
|
|
86
88
|
},
|
|
87
89
|
fromPartial(object) {
|
|
88
90
|
const message = createBaseloanSummaryRequest();
|
|
89
|
-
message.addons = object.addons
|
|
91
|
+
message.addons = object.addons?.map((e) => exports.loanSummaryRequest_Field.fromPartial(e)) || [];
|
|
90
92
|
message.amount = object.amount ?? 0;
|
|
91
93
|
message.tenure = object.tenure ?? 0;
|
|
92
94
|
return message;
|
|
93
95
|
},
|
|
94
96
|
};
|
|
97
|
+
function createBaseloanSummaryRequest_Field() {
|
|
98
|
+
return { name: "", amount: 0 };
|
|
99
|
+
}
|
|
100
|
+
exports.loanSummaryRequest_Field = {
|
|
101
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
102
|
+
if (message.name !== "") {
|
|
103
|
+
writer.uint32(10).string(message.name);
|
|
104
|
+
}
|
|
105
|
+
if (message.amount !== 0) {
|
|
106
|
+
writer.uint32(16).int32(message.amount);
|
|
107
|
+
}
|
|
108
|
+
return writer;
|
|
109
|
+
},
|
|
110
|
+
decode(input, length) {
|
|
111
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
112
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
113
|
+
const message = createBaseloanSummaryRequest_Field();
|
|
114
|
+
while (reader.pos < end) {
|
|
115
|
+
const tag = reader.uint32();
|
|
116
|
+
switch (tag >>> 3) {
|
|
117
|
+
case 1:
|
|
118
|
+
if (tag !== 10) {
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
message.name = reader.string();
|
|
122
|
+
continue;
|
|
123
|
+
case 2:
|
|
124
|
+
if (tag !== 16) {
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
message.amount = reader.int32();
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
reader.skipType(tag & 7);
|
|
134
|
+
}
|
|
135
|
+
return message;
|
|
136
|
+
},
|
|
137
|
+
fromJSON(object) {
|
|
138
|
+
return {
|
|
139
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
140
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
141
|
+
};
|
|
142
|
+
},
|
|
143
|
+
toJSON(message) {
|
|
144
|
+
const obj = {};
|
|
145
|
+
if (message.name !== "") {
|
|
146
|
+
obj.name = message.name;
|
|
147
|
+
}
|
|
148
|
+
if (message.amount !== 0) {
|
|
149
|
+
obj.amount = Math.round(message.amount);
|
|
150
|
+
}
|
|
151
|
+
return obj;
|
|
152
|
+
},
|
|
153
|
+
create(base) {
|
|
154
|
+
return exports.loanSummaryRequest_Field.fromPartial(base ?? {});
|
|
155
|
+
},
|
|
156
|
+
fromPartial(object) {
|
|
157
|
+
const message = createBaseloanSummaryRequest_Field();
|
|
158
|
+
message.name = object.name ?? "";
|
|
159
|
+
message.amount = object.amount ?? 0;
|
|
160
|
+
return message;
|
|
161
|
+
},
|
|
162
|
+
};
|
|
95
163
|
function createBaseloanSummaryResponse() {
|
|
96
164
|
return {
|
|
97
165
|
gateway_fees: 0,
|
package/ts/loans.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { forecloseAmountRequest, forecloseAmountResponse } from "./loans/foreclo
|
|
|
9
9
|
import { foreclosePaymentRequest, foreclosePaymentResponse } from "./loans/foreclosepayment";
|
|
10
10
|
import { futurePaymentMoreDetailsRequest, futurePaymentMoreDetailsResponse } from "./loans/futurepaymentmoredetails";
|
|
11
11
|
import { getBillDetailsRequest, getBillDetailsResponse } from "./loans/getbilldetails";
|
|
12
|
+
import { getChrDetailsRequest, getChrDetailsResponse } from "./loans/getchrdetails";
|
|
12
13
|
import { getCustomerLoanStatusRequest, getCustomerLoanStatusResponse } from "./loans/getcustomerloanstatus";
|
|
13
14
|
import { getLoanByIdRequest, getLoanByIdResponse } from "./loans/getloanbyid";
|
|
14
15
|
import { getNextdueAmountRequest, getNextdueAmountResponse } from "./loans/getnextdueamount";
|
|
@@ -322,6 +323,15 @@ export declare const loansService: {
|
|
|
322
323
|
readonly responseSerialize: (value: getVirtualAccountNumberResponse) => Buffer;
|
|
323
324
|
readonly responseDeserialize: (value: Buffer) => getVirtualAccountNumberResponse;
|
|
324
325
|
};
|
|
326
|
+
readonly getChrDetails: {
|
|
327
|
+
readonly path: "/service.loans/getChrDetails";
|
|
328
|
+
readonly requestStream: false;
|
|
329
|
+
readonly responseStream: false;
|
|
330
|
+
readonly requestSerialize: (value: getChrDetailsRequest) => Buffer;
|
|
331
|
+
readonly requestDeserialize: (value: Buffer) => getChrDetailsRequest;
|
|
332
|
+
readonly responseSerialize: (value: getChrDetailsResponse) => Buffer;
|
|
333
|
+
readonly responseDeserialize: (value: Buffer) => getChrDetailsResponse;
|
|
334
|
+
};
|
|
325
335
|
};
|
|
326
336
|
export interface loansServer extends UntypedServiceImplementation {
|
|
327
337
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -356,6 +366,7 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
356
366
|
updatetransactionstatus: handleUnaryCall<updateTransactionStatusRequest, updateTransactionStatusResponse>;
|
|
357
367
|
getUsedLimit: handleUnaryCall<getUsedLimitfoRequest, getUsedLimitfoResponse>;
|
|
358
368
|
getVirtualAccountNumber: handleUnaryCall<getVirtualAccountNumberRequest, getVirtualAccountNumberResponse>;
|
|
369
|
+
getChrDetails: handleUnaryCall<getChrDetailsRequest, getChrDetailsResponse>;
|
|
359
370
|
}
|
|
360
371
|
export interface loansClient extends Client {
|
|
361
372
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -454,6 +465,9 @@ export interface loansClient extends Client {
|
|
|
454
465
|
getVirtualAccountNumber(request: getVirtualAccountNumberRequest, callback: (error: ServiceError | null, response: getVirtualAccountNumberResponse) => void): ClientUnaryCall;
|
|
455
466
|
getVirtualAccountNumber(request: getVirtualAccountNumberRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getVirtualAccountNumberResponse) => void): ClientUnaryCall;
|
|
456
467
|
getVirtualAccountNumber(request: getVirtualAccountNumberRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getVirtualAccountNumberResponse) => void): ClientUnaryCall;
|
|
468
|
+
getChrDetails(request: getChrDetailsRequest, callback: (error: ServiceError | null, response: getChrDetailsResponse) => void): ClientUnaryCall;
|
|
469
|
+
getChrDetails(request: getChrDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getChrDetailsResponse) => void): ClientUnaryCall;
|
|
470
|
+
getChrDetails(request: getChrDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getChrDetailsResponse) => void): ClientUnaryCall;
|
|
457
471
|
}
|
|
458
472
|
export declare const loansClient: {
|
|
459
473
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -18,6 +18,7 @@ const forecloseamount_1 = require("./loans/forecloseamount");
|
|
|
18
18
|
const foreclosepayment_1 = require("./loans/foreclosepayment");
|
|
19
19
|
const futurepaymentmoredetails_1 = require("./loans/futurepaymentmoredetails");
|
|
20
20
|
const getbilldetails_1 = require("./loans/getbilldetails");
|
|
21
|
+
const getchrdetails_1 = require("./loans/getchrdetails");
|
|
21
22
|
const getcustomerloanstatus_1 = require("./loans/getcustomerloanstatus");
|
|
22
23
|
const getloanbyid_1 = require("./loans/getloanbyid");
|
|
23
24
|
const getnextdueamount_1 = require("./loans/getnextdueamount");
|
|
@@ -330,5 +331,14 @@ exports.loansService = {
|
|
|
330
331
|
responseSerialize: (value) => Buffer.from(getvirtualaccountnumber_1.getVirtualAccountNumberResponse.encode(value).finish()),
|
|
331
332
|
responseDeserialize: (value) => getvirtualaccountnumber_1.getVirtualAccountNumberResponse.decode(value),
|
|
332
333
|
},
|
|
334
|
+
getChrDetails: {
|
|
335
|
+
path: "/service.loans/getChrDetails",
|
|
336
|
+
requestStream: false,
|
|
337
|
+
responseStream: false,
|
|
338
|
+
requestSerialize: (value) => Buffer.from(getchrdetails_1.getChrDetailsRequest.encode(value).finish()),
|
|
339
|
+
requestDeserialize: (value) => getchrdetails_1.getChrDetailsRequest.decode(value),
|
|
340
|
+
responseSerialize: (value) => Buffer.from(getchrdetails_1.getChrDetailsResponse.encode(value).finish()),
|
|
341
|
+
responseDeserialize: (value) => getchrdetails_1.getChrDetailsResponse.decode(value),
|
|
342
|
+
},
|
|
333
343
|
};
|
|
334
344
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|