@stashfin/grpc 1.2.322 → 1.2.323
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/syncdecisionengine.d.ts +34 -0
- package/ts/customers/syncdecisionengine.js +104 -0
- package/ts/customers.d.ts +14 -0
- package/ts/customers.js +10 -0
- package/ts/loans/getpaymentoptions.d.ts +51 -0
- package/ts/loans/getpaymentoptions.js +243 -0
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.syncdecisionengine";
|
|
3
|
+
export interface syncDecisionEngineRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface syncDecisionEngineResponse {
|
|
6
|
+
status: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const syncDecisionEngineRequest: {
|
|
9
|
+
encode(_: syncDecisionEngineRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): syncDecisionEngineRequest;
|
|
11
|
+
fromJSON(_: any): syncDecisionEngineRequest;
|
|
12
|
+
toJSON(_: syncDecisionEngineRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<syncDecisionEngineRequest>, I>>(base?: I): syncDecisionEngineRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<syncDecisionEngineRequest>, I>>(_: I): syncDecisionEngineRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const syncDecisionEngineResponse: {
|
|
17
|
+
encode(message: syncDecisionEngineResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): syncDecisionEngineResponse;
|
|
19
|
+
fromJSON(object: any): syncDecisionEngineResponse;
|
|
20
|
+
toJSON(message: syncDecisionEngineResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<syncDecisionEngineResponse>, I>>(base?: I): syncDecisionEngineResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<syncDecisionEngineResponse>, I>>(object: I): syncDecisionEngineResponse;
|
|
23
|
+
};
|
|
24
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25
|
+
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 {} ? {
|
|
26
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
|
+
} : Partial<T>;
|
|
28
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
29
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
30
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
31
|
+
} & {
|
|
32
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
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.2
|
|
6
|
+
// source: customers/syncdecisionengine.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.syncDecisionEngineResponse = exports.syncDecisionEngineRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.syncdecisionengine";
|
|
15
|
+
function createBasesyncDecisionEngineRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.syncDecisionEngineRequest = {
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBasesyncDecisionEngineRequest();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
}
|
|
30
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
39
|
+
},
|
|
40
|
+
toJSON(_) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
return obj;
|
|
43
|
+
},
|
|
44
|
+
create(base) {
|
|
45
|
+
return exports.syncDecisionEngineRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasesyncDecisionEngineRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasesyncDecisionEngineResponse() {
|
|
53
|
+
return { status: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.syncDecisionEngineResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.status !== "") {
|
|
58
|
+
writer.uint32(10).string(message.status);
|
|
59
|
+
}
|
|
60
|
+
return writer;
|
|
61
|
+
},
|
|
62
|
+
decode(input, length) {
|
|
63
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
64
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
65
|
+
const message = createBasesyncDecisionEngineResponse();
|
|
66
|
+
while (reader.pos < end) {
|
|
67
|
+
const tag = reader.uint32();
|
|
68
|
+
switch (tag >>> 3) {
|
|
69
|
+
case 1:
|
|
70
|
+
if (tag !== 10) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.status = reader.string();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
reader.skipType(tag & 7);
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromJSON(object) {
|
|
84
|
+
return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
85
|
+
},
|
|
86
|
+
toJSON(message) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
if (message.status !== "") {
|
|
89
|
+
obj.status = message.status;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.syncDecisionEngineResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBasesyncDecisionEngineResponse();
|
|
98
|
+
message.status = object.status ?? "";
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ import { sendEmailOtpRequest, sendEmailOtpResponse } from "./customers/sendotpto
|
|
|
75
75
|
import { setMpinRequest, setMpinResponse } from "./customers/setmpin";
|
|
76
76
|
import { skipScreenRequest, skipScreenResponse } from "./customers/skipscreen";
|
|
77
77
|
import { submitUploadedDocumentsRequest, submitUploadedDocumentsResponse } from "./customers/submituploadeddocuments";
|
|
78
|
+
import { syncDecisionEngineRequest, syncDecisionEngineResponse } from "./customers/syncdecisionengine";
|
|
78
79
|
import { updateCategoryRequest, updateCategoryResponse } from "./customers/updatecategory";
|
|
79
80
|
import { updateCongratulationStepRequest, updateCongratulationStepResponse } from "./customers/updatecongratulationstep";
|
|
80
81
|
import { updateCustomerByIdRequest, updateCustomerByIdResponse } from "./customers/updatecustomerbyid";
|
|
@@ -950,6 +951,15 @@ export declare const customersService: {
|
|
|
950
951
|
readonly responseSerialize: (value: deleteDocumentResponse) => Buffer;
|
|
951
952
|
readonly responseDeserialize: (value: Buffer) => deleteDocumentResponse;
|
|
952
953
|
};
|
|
954
|
+
readonly syncDecisionEngine: {
|
|
955
|
+
readonly path: "/service.customers/syncDecisionEngine";
|
|
956
|
+
readonly requestStream: false;
|
|
957
|
+
readonly responseStream: false;
|
|
958
|
+
readonly requestSerialize: (value: syncDecisionEngineRequest) => Buffer;
|
|
959
|
+
readonly requestDeserialize: (value: Buffer) => syncDecisionEngineRequest;
|
|
960
|
+
readonly responseSerialize: (value: syncDecisionEngineResponse) => Buffer;
|
|
961
|
+
readonly responseDeserialize: (value: Buffer) => syncDecisionEngineResponse;
|
|
962
|
+
};
|
|
953
963
|
};
|
|
954
964
|
export interface customersServer extends UntypedServiceImplementation {
|
|
955
965
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -1047,6 +1057,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
1047
1057
|
updateSyncStatus: handleUnaryCall<updateSyncStatusRequest, updateSyncStatusResponse>;
|
|
1048
1058
|
createVaNumber: handleUnaryCall<createVaNumberRequest, createVaNumberResponse>;
|
|
1049
1059
|
deleteDocument: handleUnaryCall<deleteDocumentRequest, deleteDocumentResponse>;
|
|
1060
|
+
syncDecisionEngine: handleUnaryCall<syncDecisionEngineRequest, syncDecisionEngineResponse>;
|
|
1050
1061
|
}
|
|
1051
1062
|
export interface customersClient extends Client {
|
|
1052
1063
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -1334,6 +1345,9 @@ export interface customersClient extends Client {
|
|
|
1334
1345
|
deleteDocument(request: deleteDocumentRequest, callback: (error: ServiceError | null, response: deleteDocumentResponse) => void): ClientUnaryCall;
|
|
1335
1346
|
deleteDocument(request: deleteDocumentRequest, metadata: Metadata, callback: (error: ServiceError | null, response: deleteDocumentResponse) => void): ClientUnaryCall;
|
|
1336
1347
|
deleteDocument(request: deleteDocumentRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: deleteDocumentResponse) => void): ClientUnaryCall;
|
|
1348
|
+
syncDecisionEngine(request: syncDecisionEngineRequest, callback: (error: ServiceError | null, response: syncDecisionEngineResponse) => void): ClientUnaryCall;
|
|
1349
|
+
syncDecisionEngine(request: syncDecisionEngineRequest, metadata: Metadata, callback: (error: ServiceError | null, response: syncDecisionEngineResponse) => void): ClientUnaryCall;
|
|
1350
|
+
syncDecisionEngine(request: syncDecisionEngineRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: syncDecisionEngineResponse) => void): ClientUnaryCall;
|
|
1337
1351
|
}
|
|
1338
1352
|
export declare const customersClient: {
|
|
1339
1353
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -84,6 +84,7 @@ const sendotptoemail_1 = require("./customers/sendotptoemail");
|
|
|
84
84
|
const setmpin_1 = require("./customers/setmpin");
|
|
85
85
|
const skipscreen_1 = require("./customers/skipscreen");
|
|
86
86
|
const submituploadeddocuments_1 = require("./customers/submituploadeddocuments");
|
|
87
|
+
const syncdecisionengine_1 = require("./customers/syncdecisionengine");
|
|
87
88
|
const updatecategory_1 = require("./customers/updatecategory");
|
|
88
89
|
const updatecongratulationstep_1 = require("./customers/updatecongratulationstep");
|
|
89
90
|
const updatecustomerbyid_1 = require("./customers/updatecustomerbyid");
|
|
@@ -958,5 +959,14 @@ exports.customersService = {
|
|
|
958
959
|
responseSerialize: (value) => Buffer.from(deletedocument_1.deleteDocumentResponse.encode(value).finish()),
|
|
959
960
|
responseDeserialize: (value) => deletedocument_1.deleteDocumentResponse.decode(value),
|
|
960
961
|
},
|
|
962
|
+
syncDecisionEngine: {
|
|
963
|
+
path: "/service.customers/syncDecisionEngine",
|
|
964
|
+
requestStream: false,
|
|
965
|
+
responseStream: false,
|
|
966
|
+
requestSerialize: (value) => Buffer.from(syncdecisionengine_1.syncDecisionEngineRequest.encode(value).finish()),
|
|
967
|
+
requestDeserialize: (value) => syncdecisionengine_1.syncDecisionEngineRequest.decode(value),
|
|
968
|
+
responseSerialize: (value) => Buffer.from(syncdecisionengine_1.syncDecisionEngineResponse.encode(value).finish()),
|
|
969
|
+
responseDeserialize: (value) => syncdecisionengine_1.syncDecisionEngineResponse.decode(value),
|
|
970
|
+
},
|
|
961
971
|
};
|
|
962
972
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.getpaymentoptions";
|
|
3
|
+
export interface getPaymentOptionsRequest {
|
|
4
|
+
order_id: string;
|
|
5
|
+
}
|
|
6
|
+
export interface getPaymentOptionsResponse {
|
|
7
|
+
options: paymentOptions[];
|
|
8
|
+
}
|
|
9
|
+
export interface paymentOptions {
|
|
10
|
+
modes: string[];
|
|
11
|
+
gateway: string;
|
|
12
|
+
amount: number;
|
|
13
|
+
service_fee: number;
|
|
14
|
+
other_fees: number;
|
|
15
|
+
total_amount: number;
|
|
16
|
+
}
|
|
17
|
+
export declare const getPaymentOptionsRequest: {
|
|
18
|
+
encode(message: getPaymentOptionsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getPaymentOptionsRequest;
|
|
20
|
+
fromJSON(object: any): getPaymentOptionsRequest;
|
|
21
|
+
toJSON(message: getPaymentOptionsRequest): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<getPaymentOptionsRequest>, I>>(base?: I): getPaymentOptionsRequest;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<getPaymentOptionsRequest>, I>>(object: I): getPaymentOptionsRequest;
|
|
24
|
+
};
|
|
25
|
+
export declare const getPaymentOptionsResponse: {
|
|
26
|
+
encode(message: getPaymentOptionsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
27
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getPaymentOptionsResponse;
|
|
28
|
+
fromJSON(object: any): getPaymentOptionsResponse;
|
|
29
|
+
toJSON(message: getPaymentOptionsResponse): unknown;
|
|
30
|
+
create<I extends Exact<DeepPartial<getPaymentOptionsResponse>, I>>(base?: I): getPaymentOptionsResponse;
|
|
31
|
+
fromPartial<I extends Exact<DeepPartial<getPaymentOptionsResponse>, I>>(object: I): getPaymentOptionsResponse;
|
|
32
|
+
};
|
|
33
|
+
export declare const paymentOptions: {
|
|
34
|
+
encode(message: paymentOptions, writer?: _m0.Writer): _m0.Writer;
|
|
35
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): paymentOptions;
|
|
36
|
+
fromJSON(object: any): paymentOptions;
|
|
37
|
+
toJSON(message: paymentOptions): unknown;
|
|
38
|
+
create<I extends Exact<DeepPartial<paymentOptions>, I>>(base?: I): paymentOptions;
|
|
39
|
+
fromPartial<I extends Exact<DeepPartial<paymentOptions>, I>>(object: I): paymentOptions;
|
|
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 {};
|
|
@@ -0,0 +1,243 @@
|
|
|
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.2
|
|
6
|
+
// source: loans/getpaymentoptions.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.paymentOptions = exports.getPaymentOptionsResponse = exports.getPaymentOptionsRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.getpaymentoptions";
|
|
15
|
+
function createBasegetPaymentOptionsRequest() {
|
|
16
|
+
return { order_id: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.getPaymentOptionsRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.order_id !== "") {
|
|
21
|
+
writer.uint32(10).string(message.order_id);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBasegetPaymentOptionsRequest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 10) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.order_id = reader.string();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
reader.skipType(tag & 7);
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "" };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.order_id !== "") {
|
|
52
|
+
obj.order_id = message.order_id;
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.getPaymentOptionsRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBasegetPaymentOptionsRequest();
|
|
61
|
+
message.order_id = object.order_id ?? "";
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBasegetPaymentOptionsResponse() {
|
|
66
|
+
return { options: [] };
|
|
67
|
+
}
|
|
68
|
+
exports.getPaymentOptionsResponse = {
|
|
69
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
+
for (const v of message.options) {
|
|
71
|
+
exports.paymentOptions.encode(v, writer.uint32(10).fork()).ldelim();
|
|
72
|
+
}
|
|
73
|
+
return writer;
|
|
74
|
+
},
|
|
75
|
+
decode(input, length) {
|
|
76
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
+
const message = createBasegetPaymentOptionsResponse();
|
|
79
|
+
while (reader.pos < end) {
|
|
80
|
+
const tag = reader.uint32();
|
|
81
|
+
switch (tag >>> 3) {
|
|
82
|
+
case 1:
|
|
83
|
+
if (tag !== 10) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.options.push(exports.paymentOptions.decode(reader, reader.uint32()));
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
reader.skipType(tag & 7);
|
|
93
|
+
}
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
fromJSON(object) {
|
|
97
|
+
return {
|
|
98
|
+
options: globalThis.Array.isArray(object?.options)
|
|
99
|
+
? object.options.map((e) => exports.paymentOptions.fromJSON(e))
|
|
100
|
+
: [],
|
|
101
|
+
};
|
|
102
|
+
},
|
|
103
|
+
toJSON(message) {
|
|
104
|
+
const obj = {};
|
|
105
|
+
if (message.options?.length) {
|
|
106
|
+
obj.options = message.options.map((e) => exports.paymentOptions.toJSON(e));
|
|
107
|
+
}
|
|
108
|
+
return obj;
|
|
109
|
+
},
|
|
110
|
+
create(base) {
|
|
111
|
+
return exports.getPaymentOptionsResponse.fromPartial(base ?? {});
|
|
112
|
+
},
|
|
113
|
+
fromPartial(object) {
|
|
114
|
+
const message = createBasegetPaymentOptionsResponse();
|
|
115
|
+
message.options = object.options?.map((e) => exports.paymentOptions.fromPartial(e)) || [];
|
|
116
|
+
return message;
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
function createBasepaymentOptions() {
|
|
120
|
+
return { modes: [], gateway: "", amount: 0, service_fee: 0, other_fees: 0, total_amount: 0 };
|
|
121
|
+
}
|
|
122
|
+
exports.paymentOptions = {
|
|
123
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
124
|
+
for (const v of message.modes) {
|
|
125
|
+
writer.uint32(10).string(v);
|
|
126
|
+
}
|
|
127
|
+
if (message.gateway !== "") {
|
|
128
|
+
writer.uint32(18).string(message.gateway);
|
|
129
|
+
}
|
|
130
|
+
if (message.amount !== 0) {
|
|
131
|
+
writer.uint32(25).double(message.amount);
|
|
132
|
+
}
|
|
133
|
+
if (message.service_fee !== 0) {
|
|
134
|
+
writer.uint32(33).double(message.service_fee);
|
|
135
|
+
}
|
|
136
|
+
if (message.other_fees !== 0) {
|
|
137
|
+
writer.uint32(41).double(message.other_fees);
|
|
138
|
+
}
|
|
139
|
+
if (message.total_amount !== 0) {
|
|
140
|
+
writer.uint32(49).double(message.total_amount);
|
|
141
|
+
}
|
|
142
|
+
return writer;
|
|
143
|
+
},
|
|
144
|
+
decode(input, length) {
|
|
145
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
146
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
147
|
+
const message = createBasepaymentOptions();
|
|
148
|
+
while (reader.pos < end) {
|
|
149
|
+
const tag = reader.uint32();
|
|
150
|
+
switch (tag >>> 3) {
|
|
151
|
+
case 1:
|
|
152
|
+
if (tag !== 10) {
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
message.modes.push(reader.string());
|
|
156
|
+
continue;
|
|
157
|
+
case 2:
|
|
158
|
+
if (tag !== 18) {
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
message.gateway = reader.string();
|
|
162
|
+
continue;
|
|
163
|
+
case 3:
|
|
164
|
+
if (tag !== 25) {
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
message.amount = reader.double();
|
|
168
|
+
continue;
|
|
169
|
+
case 4:
|
|
170
|
+
if (tag !== 33) {
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
message.service_fee = reader.double();
|
|
174
|
+
continue;
|
|
175
|
+
case 5:
|
|
176
|
+
if (tag !== 41) {
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
message.other_fees = reader.double();
|
|
180
|
+
continue;
|
|
181
|
+
case 6:
|
|
182
|
+
if (tag !== 49) {
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
message.total_amount = reader.double();
|
|
186
|
+
continue;
|
|
187
|
+
}
|
|
188
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
reader.skipType(tag & 7);
|
|
192
|
+
}
|
|
193
|
+
return message;
|
|
194
|
+
},
|
|
195
|
+
fromJSON(object) {
|
|
196
|
+
return {
|
|
197
|
+
modes: globalThis.Array.isArray(object?.modes) ? object.modes.map((e) => globalThis.String(e)) : [],
|
|
198
|
+
gateway: isSet(object.gateway) ? globalThis.String(object.gateway) : "",
|
|
199
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
200
|
+
service_fee: isSet(object.service_fee) ? globalThis.Number(object.service_fee) : 0,
|
|
201
|
+
other_fees: isSet(object.other_fees) ? globalThis.Number(object.other_fees) : 0,
|
|
202
|
+
total_amount: isSet(object.total_amount) ? globalThis.Number(object.total_amount) : 0,
|
|
203
|
+
};
|
|
204
|
+
},
|
|
205
|
+
toJSON(message) {
|
|
206
|
+
const obj = {};
|
|
207
|
+
if (message.modes?.length) {
|
|
208
|
+
obj.modes = message.modes;
|
|
209
|
+
}
|
|
210
|
+
if (message.gateway !== "") {
|
|
211
|
+
obj.gateway = message.gateway;
|
|
212
|
+
}
|
|
213
|
+
if (message.amount !== 0) {
|
|
214
|
+
obj.amount = message.amount;
|
|
215
|
+
}
|
|
216
|
+
if (message.service_fee !== 0) {
|
|
217
|
+
obj.service_fee = message.service_fee;
|
|
218
|
+
}
|
|
219
|
+
if (message.other_fees !== 0) {
|
|
220
|
+
obj.other_fees = message.other_fees;
|
|
221
|
+
}
|
|
222
|
+
if (message.total_amount !== 0) {
|
|
223
|
+
obj.total_amount = message.total_amount;
|
|
224
|
+
}
|
|
225
|
+
return obj;
|
|
226
|
+
},
|
|
227
|
+
create(base) {
|
|
228
|
+
return exports.paymentOptions.fromPartial(base ?? {});
|
|
229
|
+
},
|
|
230
|
+
fromPartial(object) {
|
|
231
|
+
const message = createBasepaymentOptions();
|
|
232
|
+
message.modes = object.modes?.map((e) => e) || [];
|
|
233
|
+
message.gateway = object.gateway ?? "";
|
|
234
|
+
message.amount = object.amount ?? 0;
|
|
235
|
+
message.service_fee = object.service_fee ?? 0;
|
|
236
|
+
message.other_fees = object.other_fees ?? 0;
|
|
237
|
+
message.total_amount = object.total_amount ?? 0;
|
|
238
|
+
return message;
|
|
239
|
+
},
|
|
240
|
+
};
|
|
241
|
+
function isSet(value) {
|
|
242
|
+
return value !== null && value !== undefined;
|
|
243
|
+
}
|
package/ts/loans.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { getCustomerLoanStatusRequest, getCustomerLoanStatusResponse } from "./l
|
|
|
13
13
|
import { getForecloseAmountRequest, getForecloseAmountResponse } from "./loans/getforecloseamount";
|
|
14
14
|
import { getLoanByIdRequest, getLoanByIdResponse } from "./loans/getloanbyid";
|
|
15
15
|
import { getNextdueAmountRequest, getNextdueAmountResponse } from "./loans/getnextdueamount";
|
|
16
|
+
import { getPaymentOptionsRequest, getPaymentOptionsResponse } from "./loans/getpaymentoptions";
|
|
16
17
|
import { getPendingEmiAmountRequest, getPendingEmiAmountResponse } from "./loans/getpendingemiamount";
|
|
17
18
|
import { getSetuBillDetailsRequest, getSetuBillDetailsResponse } from "./loans/getsetubilldetails";
|
|
18
19
|
import { getSummaryStaticFieldsRequest, getSummaryStaticFieldsResponse } from "./loans/getsummarystaticfields";
|
|
@@ -332,6 +333,15 @@ export declare const loansService: {
|
|
|
332
333
|
readonly responseSerialize: (value: getSetuBillDetailsResponse) => Buffer;
|
|
333
334
|
readonly responseDeserialize: (value: Buffer) => getSetuBillDetailsResponse;
|
|
334
335
|
};
|
|
336
|
+
readonly getpaymentoptions: {
|
|
337
|
+
readonly path: "/service.loans/getpaymentoptions";
|
|
338
|
+
readonly requestStream: false;
|
|
339
|
+
readonly responseStream: false;
|
|
340
|
+
readonly requestSerialize: (value: getPaymentOptionsRequest) => Buffer;
|
|
341
|
+
readonly requestDeserialize: (value: Buffer) => getPaymentOptionsRequest;
|
|
342
|
+
readonly responseSerialize: (value: getPaymentOptionsResponse) => Buffer;
|
|
343
|
+
readonly responseDeserialize: (value: Buffer) => getPaymentOptionsResponse;
|
|
344
|
+
};
|
|
335
345
|
};
|
|
336
346
|
export interface loansServer extends UntypedServiceImplementation {
|
|
337
347
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -367,6 +377,7 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
367
377
|
getUsedLimit: handleUnaryCall<getUsedLimitfoRequest, getUsedLimitfoResponse>;
|
|
368
378
|
getChrDetails: handleUnaryCall<getChrDetailsRequest, getChrDetailsResponse>;
|
|
369
379
|
getSetuBillDetails: handleUnaryCall<getSetuBillDetailsRequest, getSetuBillDetailsResponse>;
|
|
380
|
+
getpaymentoptions: handleUnaryCall<getPaymentOptionsRequest, getPaymentOptionsResponse>;
|
|
370
381
|
}
|
|
371
382
|
export interface loansClient extends Client {
|
|
372
383
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -468,6 +479,9 @@ export interface loansClient extends Client {
|
|
|
468
479
|
getSetuBillDetails(request: getSetuBillDetailsRequest, callback: (error: ServiceError | null, response: getSetuBillDetailsResponse) => void): ClientUnaryCall;
|
|
469
480
|
getSetuBillDetails(request: getSetuBillDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getSetuBillDetailsResponse) => void): ClientUnaryCall;
|
|
470
481
|
getSetuBillDetails(request: getSetuBillDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getSetuBillDetailsResponse) => void): ClientUnaryCall;
|
|
482
|
+
getpaymentoptions(request: getPaymentOptionsRequest, callback: (error: ServiceError | null, response: getPaymentOptionsResponse) => void): ClientUnaryCall;
|
|
483
|
+
getpaymentoptions(request: getPaymentOptionsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getPaymentOptionsResponse) => void): ClientUnaryCall;
|
|
484
|
+
getpaymentoptions(request: getPaymentOptionsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getPaymentOptionsResponse) => void): ClientUnaryCall;
|
|
471
485
|
}
|
|
472
486
|
export declare const loansClient: {
|
|
473
487
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -22,6 +22,7 @@ const getcustomerloanstatus_1 = require("./loans/getcustomerloanstatus");
|
|
|
22
22
|
const getforecloseamount_1 = require("./loans/getforecloseamount");
|
|
23
23
|
const getloanbyid_1 = require("./loans/getloanbyid");
|
|
24
24
|
const getnextdueamount_1 = require("./loans/getnextdueamount");
|
|
25
|
+
const getpaymentoptions_1 = require("./loans/getpaymentoptions");
|
|
25
26
|
const getpendingemiamount_1 = require("./loans/getpendingemiamount");
|
|
26
27
|
const getsetubilldetails_1 = require("./loans/getsetubilldetails");
|
|
27
28
|
const getsummarystaticfields_1 = require("./loans/getsummarystaticfields");
|
|
@@ -340,5 +341,14 @@ exports.loansService = {
|
|
|
340
341
|
responseSerialize: (value) => Buffer.from(getsetubilldetails_1.getSetuBillDetailsResponse.encode(value).finish()),
|
|
341
342
|
responseDeserialize: (value) => getsetubilldetails_1.getSetuBillDetailsResponse.decode(value),
|
|
342
343
|
},
|
|
344
|
+
getpaymentoptions: {
|
|
345
|
+
path: "/service.loans/getpaymentoptions",
|
|
346
|
+
requestStream: false,
|
|
347
|
+
responseStream: false,
|
|
348
|
+
requestSerialize: (value) => Buffer.from(getpaymentoptions_1.getPaymentOptionsRequest.encode(value).finish()),
|
|
349
|
+
requestDeserialize: (value) => getpaymentoptions_1.getPaymentOptionsRequest.decode(value),
|
|
350
|
+
responseSerialize: (value) => Buffer.from(getpaymentoptions_1.getPaymentOptionsResponse.encode(value).finish()),
|
|
351
|
+
responseDeserialize: (value) => getpaymentoptions_1.getPaymentOptionsResponse.decode(value),
|
|
352
|
+
},
|
|
343
353
|
};
|
|
344
354
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|