@stashfin/grpc 1.2.413 → 1.2.415
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/documents/getagreement.d.ts +0 -1
- package/ts/documents/getagreement.js +2 -18
- package/ts/documents/getfinancialdoc.d.ts +87 -0
- package/ts/documents/getfinancialdoc.js +678 -0
- package/ts/documents.d.ts +14 -0
- package/ts/documents.js +10 -0
- package/ts/loans/manualpaymentallocation.d.ts +39 -0
- package/ts/loans/manualpaymentallocation.js +186 -0
- package/ts/loans/rollbackextrapayment.d.ts +37 -0
- package/ts/loans/rollbackextrapayment.js +149 -0
- package/ts/loans.d.ts +28 -0
- package/ts/loans.js +20 -0
package/ts/documents.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
2
|
import { documentrequest, documentresponse } from "./documents/getagreement";
|
|
3
|
+
import { financialdocrequest, financialdocresponse } from "./documents/getfinancialdoc";
|
|
3
4
|
export declare const protobufPackage = "service";
|
|
4
5
|
export type documentsService = typeof documentsService;
|
|
5
6
|
export declare const documentsService: {
|
|
@@ -12,14 +13,27 @@ export declare const documentsService: {
|
|
|
12
13
|
readonly responseSerialize: (value: documentresponse) => Buffer;
|
|
13
14
|
readonly responseDeserialize: (value: Buffer) => documentresponse;
|
|
14
15
|
};
|
|
16
|
+
readonly getfinancialdoc: {
|
|
17
|
+
readonly path: "/service.documents/getfinancialdoc";
|
|
18
|
+
readonly requestStream: false;
|
|
19
|
+
readonly responseStream: false;
|
|
20
|
+
readonly requestSerialize: (value: financialdocrequest) => Buffer;
|
|
21
|
+
readonly requestDeserialize: (value: Buffer) => financialdocrequest;
|
|
22
|
+
readonly responseSerialize: (value: financialdocresponse) => Buffer;
|
|
23
|
+
readonly responseDeserialize: (value: Buffer) => financialdocresponse;
|
|
24
|
+
};
|
|
15
25
|
};
|
|
16
26
|
export interface documentsServer extends UntypedServiceImplementation {
|
|
17
27
|
getagreement: handleUnaryCall<documentrequest, documentresponse>;
|
|
28
|
+
getfinancialdoc: handleUnaryCall<financialdocrequest, financialdocresponse>;
|
|
18
29
|
}
|
|
19
30
|
export interface documentsClient extends Client {
|
|
20
31
|
getagreement(request: documentrequest, callback: (error: ServiceError | null, response: documentresponse) => void): ClientUnaryCall;
|
|
21
32
|
getagreement(request: documentrequest, metadata: Metadata, callback: (error: ServiceError | null, response: documentresponse) => void): ClientUnaryCall;
|
|
22
33
|
getagreement(request: documentrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: documentresponse) => void): ClientUnaryCall;
|
|
34
|
+
getfinancialdoc(request: financialdocrequest, callback: (error: ServiceError | null, response: financialdocresponse) => void): ClientUnaryCall;
|
|
35
|
+
getfinancialdoc(request: financialdocrequest, metadata: Metadata, callback: (error: ServiceError | null, response: financialdocresponse) => void): ClientUnaryCall;
|
|
36
|
+
getfinancialdoc(request: financialdocrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: financialdocresponse) => void): ClientUnaryCall;
|
|
23
37
|
}
|
|
24
38
|
export declare const documentsClient: {
|
|
25
39
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): documentsClient;
|
package/ts/documents.js
CHANGED
|
@@ -9,6 +9,7 @@ exports.documentsClient = exports.documentsService = exports.protobufPackage = v
|
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
11
|
const getagreement_1 = require("./documents/getagreement");
|
|
12
|
+
const getfinancialdoc_1 = require("./documents/getfinancialdoc");
|
|
12
13
|
exports.protobufPackage = "service";
|
|
13
14
|
exports.documentsService = {
|
|
14
15
|
getagreement: {
|
|
@@ -20,5 +21,14 @@ exports.documentsService = {
|
|
|
20
21
|
responseSerialize: (value) => Buffer.from(getagreement_1.documentresponse.encode(value).finish()),
|
|
21
22
|
responseDeserialize: (value) => getagreement_1.documentresponse.decode(value),
|
|
22
23
|
},
|
|
24
|
+
getfinancialdoc: {
|
|
25
|
+
path: "/service.documents/getfinancialdoc",
|
|
26
|
+
requestStream: false,
|
|
27
|
+
responseStream: false,
|
|
28
|
+
requestSerialize: (value) => Buffer.from(getfinancialdoc_1.financialdocrequest.encode(value).finish()),
|
|
29
|
+
requestDeserialize: (value) => getfinancialdoc_1.financialdocrequest.decode(value),
|
|
30
|
+
responseSerialize: (value) => Buffer.from(getfinancialdoc_1.financialdocresponse.encode(value).finish()),
|
|
31
|
+
responseDeserialize: (value) => getfinancialdoc_1.financialdocresponse.decode(value),
|
|
32
|
+
},
|
|
23
33
|
};
|
|
24
34
|
exports.documentsClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.documentsService, "service.documents");
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.manualpaymentallocation";
|
|
3
|
+
export interface manualPaymentAllocationRequest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
amount: number;
|
|
6
|
+
type: string;
|
|
7
|
+
loan_id: number[];
|
|
8
|
+
}
|
|
9
|
+
export interface manualPaymentAllocationResponse {
|
|
10
|
+
message: string;
|
|
11
|
+
status: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const manualPaymentAllocationRequest: {
|
|
14
|
+
encode(message: manualPaymentAllocationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
15
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): manualPaymentAllocationRequest;
|
|
16
|
+
fromJSON(object: any): manualPaymentAllocationRequest;
|
|
17
|
+
toJSON(message: manualPaymentAllocationRequest): unknown;
|
|
18
|
+
create<I extends Exact<DeepPartial<manualPaymentAllocationRequest>, I>>(base?: I): manualPaymentAllocationRequest;
|
|
19
|
+
fromPartial<I extends Exact<DeepPartial<manualPaymentAllocationRequest>, I>>(object: I): manualPaymentAllocationRequest;
|
|
20
|
+
};
|
|
21
|
+
export declare const manualPaymentAllocationResponse: {
|
|
22
|
+
encode(message: manualPaymentAllocationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
23
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): manualPaymentAllocationResponse;
|
|
24
|
+
fromJSON(object: any): manualPaymentAllocationResponse;
|
|
25
|
+
toJSON(message: manualPaymentAllocationResponse): unknown;
|
|
26
|
+
create<I extends Exact<DeepPartial<manualPaymentAllocationResponse>, I>>(base?: I): manualPaymentAllocationResponse;
|
|
27
|
+
fromPartial<I extends Exact<DeepPartial<manualPaymentAllocationResponse>, I>>(object: I): manualPaymentAllocationResponse;
|
|
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 {};
|
|
@@ -0,0 +1,186 @@
|
|
|
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.28.3
|
|
6
|
+
// source: loans/manualpaymentallocation.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.manualPaymentAllocationResponse = exports.manualPaymentAllocationRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.manualpaymentallocation";
|
|
15
|
+
function createBasemanualPaymentAllocationRequest() {
|
|
16
|
+
return { customer_id: 0, amount: 0, type: "", loan_id: [] };
|
|
17
|
+
}
|
|
18
|
+
exports.manualPaymentAllocationRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.customer_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.customer_id);
|
|
22
|
+
}
|
|
23
|
+
if (message.amount !== 0) {
|
|
24
|
+
writer.uint32(16).int32(message.amount);
|
|
25
|
+
}
|
|
26
|
+
if (message.type !== "") {
|
|
27
|
+
writer.uint32(26).string(message.type);
|
|
28
|
+
}
|
|
29
|
+
writer.uint32(34).fork();
|
|
30
|
+
for (const v of message.loan_id) {
|
|
31
|
+
writer.int32(v);
|
|
32
|
+
}
|
|
33
|
+
writer.ldelim();
|
|
34
|
+
return writer;
|
|
35
|
+
},
|
|
36
|
+
decode(input, length) {
|
|
37
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
38
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
39
|
+
const message = createBasemanualPaymentAllocationRequest();
|
|
40
|
+
while (reader.pos < end) {
|
|
41
|
+
const tag = reader.uint32();
|
|
42
|
+
switch (tag >>> 3) {
|
|
43
|
+
case 1:
|
|
44
|
+
if (tag !== 8) {
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
message.customer_id = reader.int32();
|
|
48
|
+
continue;
|
|
49
|
+
case 2:
|
|
50
|
+
if (tag !== 16) {
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
message.amount = reader.int32();
|
|
54
|
+
continue;
|
|
55
|
+
case 3:
|
|
56
|
+
if (tag !== 26) {
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
message.type = reader.string();
|
|
60
|
+
continue;
|
|
61
|
+
case 4:
|
|
62
|
+
if (tag === 32) {
|
|
63
|
+
message.loan_id.push(reader.int32());
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
if (tag === 34) {
|
|
67
|
+
const end2 = reader.uint32() + reader.pos;
|
|
68
|
+
while (reader.pos < end2) {
|
|
69
|
+
message.loan_id.push(reader.int32());
|
|
70
|
+
}
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
break;
|
|
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
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
85
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
86
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
87
|
+
loan_id: globalThis.Array.isArray(object?.loan_id) ? object.loan_id.map((e) => globalThis.Number(e)) : [],
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
toJSON(message) {
|
|
91
|
+
const obj = {};
|
|
92
|
+
if (message.customer_id !== 0) {
|
|
93
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
94
|
+
}
|
|
95
|
+
if (message.amount !== 0) {
|
|
96
|
+
obj.amount = Math.round(message.amount);
|
|
97
|
+
}
|
|
98
|
+
if (message.type !== "") {
|
|
99
|
+
obj.type = message.type;
|
|
100
|
+
}
|
|
101
|
+
if (message.loan_id?.length) {
|
|
102
|
+
obj.loan_id = message.loan_id.map((e) => Math.round(e));
|
|
103
|
+
}
|
|
104
|
+
return obj;
|
|
105
|
+
},
|
|
106
|
+
create(base) {
|
|
107
|
+
return exports.manualPaymentAllocationRequest.fromPartial(base ?? {});
|
|
108
|
+
},
|
|
109
|
+
fromPartial(object) {
|
|
110
|
+
const message = createBasemanualPaymentAllocationRequest();
|
|
111
|
+
message.customer_id = object.customer_id ?? 0;
|
|
112
|
+
message.amount = object.amount ?? 0;
|
|
113
|
+
message.type = object.type ?? "";
|
|
114
|
+
message.loan_id = object.loan_id?.map((e) => e) || [];
|
|
115
|
+
return message;
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
function createBasemanualPaymentAllocationResponse() {
|
|
119
|
+
return { message: "", status: 0 };
|
|
120
|
+
}
|
|
121
|
+
exports.manualPaymentAllocationResponse = {
|
|
122
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
123
|
+
if (message.message !== "") {
|
|
124
|
+
writer.uint32(10).string(message.message);
|
|
125
|
+
}
|
|
126
|
+
if (message.status !== 0) {
|
|
127
|
+
writer.uint32(16).int32(message.status);
|
|
128
|
+
}
|
|
129
|
+
return writer;
|
|
130
|
+
},
|
|
131
|
+
decode(input, length) {
|
|
132
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
133
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
134
|
+
const message = createBasemanualPaymentAllocationResponse();
|
|
135
|
+
while (reader.pos < end) {
|
|
136
|
+
const tag = reader.uint32();
|
|
137
|
+
switch (tag >>> 3) {
|
|
138
|
+
case 1:
|
|
139
|
+
if (tag !== 10) {
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
message.message = reader.string();
|
|
143
|
+
continue;
|
|
144
|
+
case 2:
|
|
145
|
+
if (tag !== 16) {
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
message.status = reader.int32();
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
reader.skipType(tag & 7);
|
|
155
|
+
}
|
|
156
|
+
return message;
|
|
157
|
+
},
|
|
158
|
+
fromJSON(object) {
|
|
159
|
+
return {
|
|
160
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
161
|
+
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
162
|
+
};
|
|
163
|
+
},
|
|
164
|
+
toJSON(message) {
|
|
165
|
+
const obj = {};
|
|
166
|
+
if (message.message !== "") {
|
|
167
|
+
obj.message = message.message;
|
|
168
|
+
}
|
|
169
|
+
if (message.status !== 0) {
|
|
170
|
+
obj.status = Math.round(message.status);
|
|
171
|
+
}
|
|
172
|
+
return obj;
|
|
173
|
+
},
|
|
174
|
+
create(base) {
|
|
175
|
+
return exports.manualPaymentAllocationResponse.fromPartial(base ?? {});
|
|
176
|
+
},
|
|
177
|
+
fromPartial(object) {
|
|
178
|
+
const message = createBasemanualPaymentAllocationResponse();
|
|
179
|
+
message.message = object.message ?? "";
|
|
180
|
+
message.status = object.status ?? 0;
|
|
181
|
+
return message;
|
|
182
|
+
},
|
|
183
|
+
};
|
|
184
|
+
function isSet(value) {
|
|
185
|
+
return value !== null && value !== undefined;
|
|
186
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.rollbackextrapayment";
|
|
3
|
+
export interface rollbackExtraPaymentRequest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
amount: number;
|
|
6
|
+
}
|
|
7
|
+
export interface rollbackExtraPaymentResponse {
|
|
8
|
+
message: string;
|
|
9
|
+
status: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const rollbackExtraPaymentRequest: {
|
|
12
|
+
encode(message: rollbackExtraPaymentRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): rollbackExtraPaymentRequest;
|
|
14
|
+
fromJSON(object: any): rollbackExtraPaymentRequest;
|
|
15
|
+
toJSON(message: rollbackExtraPaymentRequest): unknown;
|
|
16
|
+
create<I extends Exact<DeepPartial<rollbackExtraPaymentRequest>, I>>(base?: I): rollbackExtraPaymentRequest;
|
|
17
|
+
fromPartial<I extends Exact<DeepPartial<rollbackExtraPaymentRequest>, I>>(object: I): rollbackExtraPaymentRequest;
|
|
18
|
+
};
|
|
19
|
+
export declare const rollbackExtraPaymentResponse: {
|
|
20
|
+
encode(message: rollbackExtraPaymentResponse, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): rollbackExtraPaymentResponse;
|
|
22
|
+
fromJSON(object: any): rollbackExtraPaymentResponse;
|
|
23
|
+
toJSON(message: rollbackExtraPaymentResponse): unknown;
|
|
24
|
+
create<I extends Exact<DeepPartial<rollbackExtraPaymentResponse>, I>>(base?: I): rollbackExtraPaymentResponse;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<rollbackExtraPaymentResponse>, I>>(object: I): rollbackExtraPaymentResponse;
|
|
26
|
+
};
|
|
27
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
|
+
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 {} ? {
|
|
29
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
30
|
+
} : Partial<T>;
|
|
31
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
32
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
33
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
34
|
+
} & {
|
|
35
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,149 @@
|
|
|
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.28.3
|
|
6
|
+
// source: loans/rollbackextrapayment.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.rollbackExtraPaymentResponse = exports.rollbackExtraPaymentRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.rollbackextrapayment";
|
|
15
|
+
function createBaserollbackExtraPaymentRequest() {
|
|
16
|
+
return { customer_id: 0, amount: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.rollbackExtraPaymentRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.customer_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.customer_id);
|
|
22
|
+
}
|
|
23
|
+
if (message.amount !== 0) {
|
|
24
|
+
writer.uint32(16).int32(message.amount);
|
|
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 = createBaserollbackExtraPaymentRequest();
|
|
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.customer_id = reader.int32();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 16) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.amount = 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
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
58
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
toJSON(message) {
|
|
62
|
+
const obj = {};
|
|
63
|
+
if (message.customer_id !== 0) {
|
|
64
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
65
|
+
}
|
|
66
|
+
if (message.amount !== 0) {
|
|
67
|
+
obj.amount = Math.round(message.amount);
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
},
|
|
71
|
+
create(base) {
|
|
72
|
+
return exports.rollbackExtraPaymentRequest.fromPartial(base ?? {});
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
const message = createBaserollbackExtraPaymentRequest();
|
|
76
|
+
message.customer_id = object.customer_id ?? 0;
|
|
77
|
+
message.amount = object.amount ?? 0;
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
function createBaserollbackExtraPaymentResponse() {
|
|
82
|
+
return { message: "", status: 0 };
|
|
83
|
+
}
|
|
84
|
+
exports.rollbackExtraPaymentResponse = {
|
|
85
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
+
if (message.message !== "") {
|
|
87
|
+
writer.uint32(10).string(message.message);
|
|
88
|
+
}
|
|
89
|
+
if (message.status !== 0) {
|
|
90
|
+
writer.uint32(16).int32(message.status);
|
|
91
|
+
}
|
|
92
|
+
return writer;
|
|
93
|
+
},
|
|
94
|
+
decode(input, length) {
|
|
95
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
96
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
97
|
+
const message = createBaserollbackExtraPaymentResponse();
|
|
98
|
+
while (reader.pos < end) {
|
|
99
|
+
const tag = reader.uint32();
|
|
100
|
+
switch (tag >>> 3) {
|
|
101
|
+
case 1:
|
|
102
|
+
if (tag !== 10) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
message.message = reader.string();
|
|
106
|
+
continue;
|
|
107
|
+
case 2:
|
|
108
|
+
if (tag !== 16) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
message.status = reader.int32();
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
reader.skipType(tag & 7);
|
|
118
|
+
}
|
|
119
|
+
return message;
|
|
120
|
+
},
|
|
121
|
+
fromJSON(object) {
|
|
122
|
+
return {
|
|
123
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
124
|
+
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
125
|
+
};
|
|
126
|
+
},
|
|
127
|
+
toJSON(message) {
|
|
128
|
+
const obj = {};
|
|
129
|
+
if (message.message !== "") {
|
|
130
|
+
obj.message = message.message;
|
|
131
|
+
}
|
|
132
|
+
if (message.status !== 0) {
|
|
133
|
+
obj.status = Math.round(message.status);
|
|
134
|
+
}
|
|
135
|
+
return obj;
|
|
136
|
+
},
|
|
137
|
+
create(base) {
|
|
138
|
+
return exports.rollbackExtraPaymentResponse.fromPartial(base ?? {});
|
|
139
|
+
},
|
|
140
|
+
fromPartial(object) {
|
|
141
|
+
const message = createBaserollbackExtraPaymentResponse();
|
|
142
|
+
message.message = object.message ?? "";
|
|
143
|
+
message.status = object.status ?? 0;
|
|
144
|
+
return message;
|
|
145
|
+
},
|
|
146
|
+
};
|
|
147
|
+
function isSet(value) {
|
|
148
|
+
return value !== null && value !== undefined;
|
|
149
|
+
}
|
package/ts/loans.d.ts
CHANGED
|
@@ -26,12 +26,14 @@ import { getTransactionStatusRequest, getTransactionStatusResponse } from "./loa
|
|
|
26
26
|
import { getUsedLimitfoRequest, getUsedLimitfoResponse } from "./loans/getusedlimit";
|
|
27
27
|
import { getVirtualBankInfoRequest, getVirtualBankInfoResponse } from "./loans/getvirtualbankinfo";
|
|
28
28
|
import { loanSummaryRequest, loanSummaryResponse } from "./loans/loansummary";
|
|
29
|
+
import { manualPaymentAllocationRequest, manualPaymentAllocationResponse } from "./loans/manualpaymentallocation";
|
|
29
30
|
import { paymentAllocationRequest, paymentAllocationResponse } from "./loans/paymentallocation";
|
|
30
31
|
import { paymentHistoryRequest, paymentHistoryResponse } from "./loans/paymenthistory";
|
|
31
32
|
import { payNowRequest, payNowResponse } from "./loans/paynow";
|
|
32
33
|
import { refundRequest, refundResponse } from "./loans/refund";
|
|
33
34
|
import { restructureLoanRequest, restructureLoanResponse } from "./loans/restructureloan";
|
|
34
35
|
import { rollbackRequest, rollbackResponse } from "./loans/rollback";
|
|
36
|
+
import { rollbackExtraPaymentRequest, rollbackExtraPaymentResponse } from "./loans/rollbackextrapayment";
|
|
35
37
|
import { sendEmailRequest, sendEmailResponse } from "./loans/sendemail";
|
|
36
38
|
import { sendNocEmailRequest, sendNocEmailResponse } from "./loans/sendnocemail";
|
|
37
39
|
import { transactionListRequest, transactionListResponse } from "./loans/transactionlist";
|
|
@@ -402,6 +404,24 @@ export declare const loansService: {
|
|
|
402
404
|
readonly responseSerialize: (value: createLamfLoanResponse) => Buffer;
|
|
403
405
|
readonly responseDeserialize: (value: Buffer) => createLamfLoanResponse;
|
|
404
406
|
};
|
|
407
|
+
readonly manualPaymentAllocation: {
|
|
408
|
+
readonly path: "/service.loans/manualPaymentAllocation";
|
|
409
|
+
readonly requestStream: false;
|
|
410
|
+
readonly responseStream: false;
|
|
411
|
+
readonly requestSerialize: (value: manualPaymentAllocationRequest) => Buffer;
|
|
412
|
+
readonly requestDeserialize: (value: Buffer) => manualPaymentAllocationRequest;
|
|
413
|
+
readonly responseSerialize: (value: manualPaymentAllocationResponse) => Buffer;
|
|
414
|
+
readonly responseDeserialize: (value: Buffer) => manualPaymentAllocationResponse;
|
|
415
|
+
};
|
|
416
|
+
readonly rollbackExtraPayment: {
|
|
417
|
+
readonly path: "/service.loans/rollbackExtraPayment";
|
|
418
|
+
readonly requestStream: false;
|
|
419
|
+
readonly responseStream: false;
|
|
420
|
+
readonly requestSerialize: (value: rollbackExtraPaymentRequest) => Buffer;
|
|
421
|
+
readonly requestDeserialize: (value: Buffer) => rollbackExtraPaymentRequest;
|
|
422
|
+
readonly responseSerialize: (value: rollbackExtraPaymentResponse) => Buffer;
|
|
423
|
+
readonly responseDeserialize: (value: Buffer) => rollbackExtraPaymentResponse;
|
|
424
|
+
};
|
|
405
425
|
};
|
|
406
426
|
export interface loansServer extends UntypedServiceImplementation {
|
|
407
427
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -444,6 +464,8 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
444
464
|
createPenalty: handleUnaryCall<createPenaltyRequest, createPenaltyResponse>;
|
|
445
465
|
getCBloanDetails: handleUnaryCall<getCBloanDetailsRequest, getCBloanDetailsResponse>;
|
|
446
466
|
createLamFloan: handleUnaryCall<createLamfLoanRequest, createLamfLoanResponse>;
|
|
467
|
+
manualPaymentAllocation: handleUnaryCall<manualPaymentAllocationRequest, manualPaymentAllocationResponse>;
|
|
468
|
+
rollbackExtraPayment: handleUnaryCall<rollbackExtraPaymentRequest, rollbackExtraPaymentResponse>;
|
|
447
469
|
}
|
|
448
470
|
export interface loansClient extends Client {
|
|
449
471
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -566,6 +588,12 @@ export interface loansClient extends Client {
|
|
|
566
588
|
createLamFloan(request: createLamfLoanRequest, callback: (error: ServiceError | null, response: createLamfLoanResponse) => void): ClientUnaryCall;
|
|
567
589
|
createLamFloan(request: createLamfLoanRequest, metadata: Metadata, callback: (error: ServiceError | null, response: createLamfLoanResponse) => void): ClientUnaryCall;
|
|
568
590
|
createLamFloan(request: createLamfLoanRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: createLamfLoanResponse) => void): ClientUnaryCall;
|
|
591
|
+
manualPaymentAllocation(request: manualPaymentAllocationRequest, callback: (error: ServiceError | null, response: manualPaymentAllocationResponse) => void): ClientUnaryCall;
|
|
592
|
+
manualPaymentAllocation(request: manualPaymentAllocationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: manualPaymentAllocationResponse) => void): ClientUnaryCall;
|
|
593
|
+
manualPaymentAllocation(request: manualPaymentAllocationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: manualPaymentAllocationResponse) => void): ClientUnaryCall;
|
|
594
|
+
rollbackExtraPayment(request: rollbackExtraPaymentRequest, callback: (error: ServiceError | null, response: rollbackExtraPaymentResponse) => void): ClientUnaryCall;
|
|
595
|
+
rollbackExtraPayment(request: rollbackExtraPaymentRequest, metadata: Metadata, callback: (error: ServiceError | null, response: rollbackExtraPaymentResponse) => void): ClientUnaryCall;
|
|
596
|
+
rollbackExtraPayment(request: rollbackExtraPaymentRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: rollbackExtraPaymentResponse) => void): ClientUnaryCall;
|
|
569
597
|
}
|
|
570
598
|
export declare const loansClient: {
|
|
571
599
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -35,12 +35,14 @@ const gettransactionstatus_1 = require("./loans/gettransactionstatus");
|
|
|
35
35
|
const getusedlimit_1 = require("./loans/getusedlimit");
|
|
36
36
|
const getvirtualbankinfo_1 = require("./loans/getvirtualbankinfo");
|
|
37
37
|
const loansummary_1 = require("./loans/loansummary");
|
|
38
|
+
const manualpaymentallocation_1 = require("./loans/manualpaymentallocation");
|
|
38
39
|
const paymentallocation_1 = require("./loans/paymentallocation");
|
|
39
40
|
const paymenthistory_1 = require("./loans/paymenthistory");
|
|
40
41
|
const paynow_1 = require("./loans/paynow");
|
|
41
42
|
const refund_1 = require("./loans/refund");
|
|
42
43
|
const restructureloan_1 = require("./loans/restructureloan");
|
|
43
44
|
const rollback_1 = require("./loans/rollback");
|
|
45
|
+
const rollbackextrapayment_1 = require("./loans/rollbackextrapayment");
|
|
44
46
|
const sendemail_1 = require("./loans/sendemail");
|
|
45
47
|
const sendnocemail_1 = require("./loans/sendnocemail");
|
|
46
48
|
const transactionlist_1 = require("./loans/transactionlist");
|
|
@@ -410,5 +412,23 @@ exports.loansService = {
|
|
|
410
412
|
responseSerialize: (value) => Buffer.from(createlamfloan_1.createLamfLoanResponse.encode(value).finish()),
|
|
411
413
|
responseDeserialize: (value) => createlamfloan_1.createLamfLoanResponse.decode(value),
|
|
412
414
|
},
|
|
415
|
+
manualPaymentAllocation: {
|
|
416
|
+
path: "/service.loans/manualPaymentAllocation",
|
|
417
|
+
requestStream: false,
|
|
418
|
+
responseStream: false,
|
|
419
|
+
requestSerialize: (value) => Buffer.from(manualpaymentallocation_1.manualPaymentAllocationRequest.encode(value).finish()),
|
|
420
|
+
requestDeserialize: (value) => manualpaymentallocation_1.manualPaymentAllocationRequest.decode(value),
|
|
421
|
+
responseSerialize: (value) => Buffer.from(manualpaymentallocation_1.manualPaymentAllocationResponse.encode(value).finish()),
|
|
422
|
+
responseDeserialize: (value) => manualpaymentallocation_1.manualPaymentAllocationResponse.decode(value),
|
|
423
|
+
},
|
|
424
|
+
rollbackExtraPayment: {
|
|
425
|
+
path: "/service.loans/rollbackExtraPayment",
|
|
426
|
+
requestStream: false,
|
|
427
|
+
responseStream: false,
|
|
428
|
+
requestSerialize: (value) => Buffer.from(rollbackextrapayment_1.rollbackExtraPaymentRequest.encode(value).finish()),
|
|
429
|
+
requestDeserialize: (value) => rollbackextrapayment_1.rollbackExtraPaymentRequest.decode(value),
|
|
430
|
+
responseSerialize: (value) => Buffer.from(rollbackextrapayment_1.rollbackExtraPaymentResponse.encode(value).finish()),
|
|
431
|
+
responseDeserialize: (value) => rollbackextrapayment_1.rollbackExtraPaymentResponse.decode(value),
|
|
432
|
+
},
|
|
413
433
|
};
|
|
414
434
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|