@stashfin/grpc 1.2.321 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.321",
3
+ "version": "1.2.323",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -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
+ }
@@ -0,0 +1,66 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "loans.getsetubilldetails";
3
+ export interface getSetuBillDetailsRequest {
4
+ customerIdentifiers: getSetuBillDetailsRequest_Field[];
5
+ }
6
+ export interface getSetuBillDetailsRequest_Field {
7
+ attributeName: string;
8
+ attributeValue: string;
9
+ }
10
+ export interface getSetuBillDetailsResponse {
11
+ data: getSetuBillDetailsResponse_Field[];
12
+ total_amount: number;
13
+ order_id: string;
14
+ }
15
+ export interface getSetuBillDetailsResponse_Field {
16
+ bill_amount: number;
17
+ due_date: string;
18
+ principal: number;
19
+ interest: number;
20
+ inst_id: number;
21
+ penalty: number;
22
+ loan_id: number;
23
+ }
24
+ export declare const getSetuBillDetailsRequest: {
25
+ encode(message: getSetuBillDetailsRequest, writer?: _m0.Writer): _m0.Writer;
26
+ decode(input: _m0.Reader | Uint8Array, length?: number): getSetuBillDetailsRequest;
27
+ fromJSON(object: any): getSetuBillDetailsRequest;
28
+ toJSON(message: getSetuBillDetailsRequest): unknown;
29
+ create<I extends Exact<DeepPartial<getSetuBillDetailsRequest>, I>>(base?: I): getSetuBillDetailsRequest;
30
+ fromPartial<I extends Exact<DeepPartial<getSetuBillDetailsRequest>, I>>(object: I): getSetuBillDetailsRequest;
31
+ };
32
+ export declare const getSetuBillDetailsRequest_Field: {
33
+ encode(message: getSetuBillDetailsRequest_Field, writer?: _m0.Writer): _m0.Writer;
34
+ decode(input: _m0.Reader | Uint8Array, length?: number): getSetuBillDetailsRequest_Field;
35
+ fromJSON(object: any): getSetuBillDetailsRequest_Field;
36
+ toJSON(message: getSetuBillDetailsRequest_Field): unknown;
37
+ create<I extends Exact<DeepPartial<getSetuBillDetailsRequest_Field>, I>>(base?: I): getSetuBillDetailsRequest_Field;
38
+ fromPartial<I extends Exact<DeepPartial<getSetuBillDetailsRequest_Field>, I>>(object: I): getSetuBillDetailsRequest_Field;
39
+ };
40
+ export declare const getSetuBillDetailsResponse: {
41
+ encode(message: getSetuBillDetailsResponse, writer?: _m0.Writer): _m0.Writer;
42
+ decode(input: _m0.Reader | Uint8Array, length?: number): getSetuBillDetailsResponse;
43
+ fromJSON(object: any): getSetuBillDetailsResponse;
44
+ toJSON(message: getSetuBillDetailsResponse): unknown;
45
+ create<I extends Exact<DeepPartial<getSetuBillDetailsResponse>, I>>(base?: I): getSetuBillDetailsResponse;
46
+ fromPartial<I extends Exact<DeepPartial<getSetuBillDetailsResponse>, I>>(object: I): getSetuBillDetailsResponse;
47
+ };
48
+ export declare const getSetuBillDetailsResponse_Field: {
49
+ encode(message: getSetuBillDetailsResponse_Field, writer?: _m0.Writer): _m0.Writer;
50
+ decode(input: _m0.Reader | Uint8Array, length?: number): getSetuBillDetailsResponse_Field;
51
+ fromJSON(object: any): getSetuBillDetailsResponse_Field;
52
+ toJSON(message: getSetuBillDetailsResponse_Field): unknown;
53
+ create<I extends Exact<DeepPartial<getSetuBillDetailsResponse_Field>, I>>(base?: I): getSetuBillDetailsResponse_Field;
54
+ fromPartial<I extends Exact<DeepPartial<getSetuBillDetailsResponse_Field>, I>>(object: I): getSetuBillDetailsResponse_Field;
55
+ };
56
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
57
+ 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 {} ? {
58
+ [K in keyof T]?: DeepPartial<T[K]>;
59
+ } : Partial<T>;
60
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
61
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
62
+ [K in keyof P]: Exact<P[K], I[K]>;
63
+ } & {
64
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
65
+ };
66
+ export {};
@@ -0,0 +1,356 @@
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/getsetubilldetails.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.getSetuBillDetailsResponse_Field = exports.getSetuBillDetailsResponse = exports.getSetuBillDetailsRequest_Field = exports.getSetuBillDetailsRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "loans.getsetubilldetails";
15
+ function createBasegetSetuBillDetailsRequest() {
16
+ return { customerIdentifiers: [] };
17
+ }
18
+ exports.getSetuBillDetailsRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ for (const v of message.customerIdentifiers) {
21
+ exports.getSetuBillDetailsRequest_Field.encode(v, writer.uint32(10).fork()).ldelim();
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 = createBasegetSetuBillDetailsRequest();
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.customerIdentifiers.push(exports.getSetuBillDetailsRequest_Field.decode(reader, reader.uint32()));
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 {
48
+ customerIdentifiers: globalThis.Array.isArray(object?.customerIdentifiers)
49
+ ? object.customerIdentifiers.map((e) => exports.getSetuBillDetailsRequest_Field.fromJSON(e))
50
+ : [],
51
+ };
52
+ },
53
+ toJSON(message) {
54
+ const obj = {};
55
+ if (message.customerIdentifiers?.length) {
56
+ obj.customerIdentifiers = message.customerIdentifiers.map((e) => exports.getSetuBillDetailsRequest_Field.toJSON(e));
57
+ }
58
+ return obj;
59
+ },
60
+ create(base) {
61
+ return exports.getSetuBillDetailsRequest.fromPartial(base ?? {});
62
+ },
63
+ fromPartial(object) {
64
+ const message = createBasegetSetuBillDetailsRequest();
65
+ message.customerIdentifiers =
66
+ object.customerIdentifiers?.map((e) => exports.getSetuBillDetailsRequest_Field.fromPartial(e)) || [];
67
+ return message;
68
+ },
69
+ };
70
+ function createBasegetSetuBillDetailsRequest_Field() {
71
+ return { attributeName: "", attributeValue: "" };
72
+ }
73
+ exports.getSetuBillDetailsRequest_Field = {
74
+ encode(message, writer = minimal_1.default.Writer.create()) {
75
+ if (message.attributeName !== "") {
76
+ writer.uint32(10).string(message.attributeName);
77
+ }
78
+ if (message.attributeValue !== "") {
79
+ writer.uint32(18).string(message.attributeValue);
80
+ }
81
+ return writer;
82
+ },
83
+ decode(input, length) {
84
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
85
+ let end = length === undefined ? reader.len : reader.pos + length;
86
+ const message = createBasegetSetuBillDetailsRequest_Field();
87
+ while (reader.pos < end) {
88
+ const tag = reader.uint32();
89
+ switch (tag >>> 3) {
90
+ case 1:
91
+ if (tag !== 10) {
92
+ break;
93
+ }
94
+ message.attributeName = reader.string();
95
+ continue;
96
+ case 2:
97
+ if (tag !== 18) {
98
+ break;
99
+ }
100
+ message.attributeValue = reader.string();
101
+ continue;
102
+ }
103
+ if ((tag & 7) === 4 || tag === 0) {
104
+ break;
105
+ }
106
+ reader.skipType(tag & 7);
107
+ }
108
+ return message;
109
+ },
110
+ fromJSON(object) {
111
+ return {
112
+ attributeName: isSet(object.attributeName) ? globalThis.String(object.attributeName) : "",
113
+ attributeValue: isSet(object.attributeValue) ? globalThis.String(object.attributeValue) : "",
114
+ };
115
+ },
116
+ toJSON(message) {
117
+ const obj = {};
118
+ if (message.attributeName !== "") {
119
+ obj.attributeName = message.attributeName;
120
+ }
121
+ if (message.attributeValue !== "") {
122
+ obj.attributeValue = message.attributeValue;
123
+ }
124
+ return obj;
125
+ },
126
+ create(base) {
127
+ return exports.getSetuBillDetailsRequest_Field.fromPartial(base ?? {});
128
+ },
129
+ fromPartial(object) {
130
+ const message = createBasegetSetuBillDetailsRequest_Field();
131
+ message.attributeName = object.attributeName ?? "";
132
+ message.attributeValue = object.attributeValue ?? "";
133
+ return message;
134
+ },
135
+ };
136
+ function createBasegetSetuBillDetailsResponse() {
137
+ return { data: [], total_amount: 0, order_id: "" };
138
+ }
139
+ exports.getSetuBillDetailsResponse = {
140
+ encode(message, writer = minimal_1.default.Writer.create()) {
141
+ for (const v of message.data) {
142
+ exports.getSetuBillDetailsResponse_Field.encode(v, writer.uint32(10).fork()).ldelim();
143
+ }
144
+ if (message.total_amount !== 0) {
145
+ writer.uint32(16).int32(message.total_amount);
146
+ }
147
+ if (message.order_id !== "") {
148
+ writer.uint32(26).string(message.order_id);
149
+ }
150
+ return writer;
151
+ },
152
+ decode(input, length) {
153
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
154
+ let end = length === undefined ? reader.len : reader.pos + length;
155
+ const message = createBasegetSetuBillDetailsResponse();
156
+ while (reader.pos < end) {
157
+ const tag = reader.uint32();
158
+ switch (tag >>> 3) {
159
+ case 1:
160
+ if (tag !== 10) {
161
+ break;
162
+ }
163
+ message.data.push(exports.getSetuBillDetailsResponse_Field.decode(reader, reader.uint32()));
164
+ continue;
165
+ case 2:
166
+ if (tag !== 16) {
167
+ break;
168
+ }
169
+ message.total_amount = reader.int32();
170
+ continue;
171
+ case 3:
172
+ if (tag !== 26) {
173
+ break;
174
+ }
175
+ message.order_id = reader.string();
176
+ continue;
177
+ }
178
+ if ((tag & 7) === 4 || tag === 0) {
179
+ break;
180
+ }
181
+ reader.skipType(tag & 7);
182
+ }
183
+ return message;
184
+ },
185
+ fromJSON(object) {
186
+ return {
187
+ data: globalThis.Array.isArray(object?.data)
188
+ ? object.data.map((e) => exports.getSetuBillDetailsResponse_Field.fromJSON(e))
189
+ : [],
190
+ total_amount: isSet(object.total_amount) ? globalThis.Number(object.total_amount) : 0,
191
+ order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
192
+ };
193
+ },
194
+ toJSON(message) {
195
+ const obj = {};
196
+ if (message.data?.length) {
197
+ obj.data = message.data.map((e) => exports.getSetuBillDetailsResponse_Field.toJSON(e));
198
+ }
199
+ if (message.total_amount !== 0) {
200
+ obj.total_amount = Math.round(message.total_amount);
201
+ }
202
+ if (message.order_id !== "") {
203
+ obj.order_id = message.order_id;
204
+ }
205
+ return obj;
206
+ },
207
+ create(base) {
208
+ return exports.getSetuBillDetailsResponse.fromPartial(base ?? {});
209
+ },
210
+ fromPartial(object) {
211
+ const message = createBasegetSetuBillDetailsResponse();
212
+ message.data = object.data?.map((e) => exports.getSetuBillDetailsResponse_Field.fromPartial(e)) || [];
213
+ message.total_amount = object.total_amount ?? 0;
214
+ message.order_id = object.order_id ?? "";
215
+ return message;
216
+ },
217
+ };
218
+ function createBasegetSetuBillDetailsResponse_Field() {
219
+ return { bill_amount: 0, due_date: "", principal: 0, interest: 0, inst_id: 0, penalty: 0, loan_id: 0 };
220
+ }
221
+ exports.getSetuBillDetailsResponse_Field = {
222
+ encode(message, writer = minimal_1.default.Writer.create()) {
223
+ if (message.bill_amount !== 0) {
224
+ writer.uint32(8).int32(message.bill_amount);
225
+ }
226
+ if (message.due_date !== "") {
227
+ writer.uint32(18).string(message.due_date);
228
+ }
229
+ if (message.principal !== 0) {
230
+ writer.uint32(24).int32(message.principal);
231
+ }
232
+ if (message.interest !== 0) {
233
+ writer.uint32(32).int32(message.interest);
234
+ }
235
+ if (message.inst_id !== 0) {
236
+ writer.uint32(40).int32(message.inst_id);
237
+ }
238
+ if (message.penalty !== 0) {
239
+ writer.uint32(48).int32(message.penalty);
240
+ }
241
+ if (message.loan_id !== 0) {
242
+ writer.uint32(56).int32(message.loan_id);
243
+ }
244
+ return writer;
245
+ },
246
+ decode(input, length) {
247
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
248
+ let end = length === undefined ? reader.len : reader.pos + length;
249
+ const message = createBasegetSetuBillDetailsResponse_Field();
250
+ while (reader.pos < end) {
251
+ const tag = reader.uint32();
252
+ switch (tag >>> 3) {
253
+ case 1:
254
+ if (tag !== 8) {
255
+ break;
256
+ }
257
+ message.bill_amount = reader.int32();
258
+ continue;
259
+ case 2:
260
+ if (tag !== 18) {
261
+ break;
262
+ }
263
+ message.due_date = reader.string();
264
+ continue;
265
+ case 3:
266
+ if (tag !== 24) {
267
+ break;
268
+ }
269
+ message.principal = reader.int32();
270
+ continue;
271
+ case 4:
272
+ if (tag !== 32) {
273
+ break;
274
+ }
275
+ message.interest = reader.int32();
276
+ continue;
277
+ case 5:
278
+ if (tag !== 40) {
279
+ break;
280
+ }
281
+ message.inst_id = reader.int32();
282
+ continue;
283
+ case 6:
284
+ if (tag !== 48) {
285
+ break;
286
+ }
287
+ message.penalty = reader.int32();
288
+ continue;
289
+ case 7:
290
+ if (tag !== 56) {
291
+ break;
292
+ }
293
+ message.loan_id = reader.int32();
294
+ continue;
295
+ }
296
+ if ((tag & 7) === 4 || tag === 0) {
297
+ break;
298
+ }
299
+ reader.skipType(tag & 7);
300
+ }
301
+ return message;
302
+ },
303
+ fromJSON(object) {
304
+ return {
305
+ bill_amount: isSet(object.bill_amount) ? globalThis.Number(object.bill_amount) : 0,
306
+ due_date: isSet(object.due_date) ? globalThis.String(object.due_date) : "",
307
+ principal: isSet(object.principal) ? globalThis.Number(object.principal) : 0,
308
+ interest: isSet(object.interest) ? globalThis.Number(object.interest) : 0,
309
+ inst_id: isSet(object.inst_id) ? globalThis.Number(object.inst_id) : 0,
310
+ penalty: isSet(object.penalty) ? globalThis.Number(object.penalty) : 0,
311
+ loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
312
+ };
313
+ },
314
+ toJSON(message) {
315
+ const obj = {};
316
+ if (message.bill_amount !== 0) {
317
+ obj.bill_amount = Math.round(message.bill_amount);
318
+ }
319
+ if (message.due_date !== "") {
320
+ obj.due_date = message.due_date;
321
+ }
322
+ if (message.principal !== 0) {
323
+ obj.principal = Math.round(message.principal);
324
+ }
325
+ if (message.interest !== 0) {
326
+ obj.interest = Math.round(message.interest);
327
+ }
328
+ if (message.inst_id !== 0) {
329
+ obj.inst_id = Math.round(message.inst_id);
330
+ }
331
+ if (message.penalty !== 0) {
332
+ obj.penalty = Math.round(message.penalty);
333
+ }
334
+ if (message.loan_id !== 0) {
335
+ obj.loan_id = Math.round(message.loan_id);
336
+ }
337
+ return obj;
338
+ },
339
+ create(base) {
340
+ return exports.getSetuBillDetailsResponse_Field.fromPartial(base ?? {});
341
+ },
342
+ fromPartial(object) {
343
+ const message = createBasegetSetuBillDetailsResponse_Field();
344
+ message.bill_amount = object.bill_amount ?? 0;
345
+ message.due_date = object.due_date ?? "";
346
+ message.principal = object.principal ?? 0;
347
+ message.interest = object.interest ?? 0;
348
+ message.inst_id = object.inst_id ?? 0;
349
+ message.penalty = object.penalty ?? 0;
350
+ message.loan_id = object.loan_id ?? 0;
351
+ return message;
352
+ },
353
+ };
354
+ function isSet(value) {
355
+ return value !== null && value !== undefined;
356
+ }
package/ts/loans.d.ts CHANGED
@@ -13,7 +13,9 @@ 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";
18
+ import { getSetuBillDetailsRequest, getSetuBillDetailsResponse } from "./loans/getsetubilldetails";
17
19
  import { getSummaryStaticFieldsRequest, getSummaryStaticFieldsResponse } from "./loans/getsummarystaticfields";
18
20
  import { getTransactionStatusRequest, getTransactionStatusResponse } from "./loans/gettransactionstatus";
19
21
  import { getUsedLimitfoRequest, getUsedLimitfoResponse } from "./loans/getusedlimit";
@@ -322,6 +324,24 @@ export declare const loansService: {
322
324
  readonly responseSerialize: (value: getChrDetailsResponse) => Buffer;
323
325
  readonly responseDeserialize: (value: Buffer) => getChrDetailsResponse;
324
326
  };
327
+ readonly getSetuBillDetails: {
328
+ readonly path: "/service.loans/getSetuBillDetails";
329
+ readonly requestStream: false;
330
+ readonly responseStream: false;
331
+ readonly requestSerialize: (value: getSetuBillDetailsRequest) => Buffer;
332
+ readonly requestDeserialize: (value: Buffer) => getSetuBillDetailsRequest;
333
+ readonly responseSerialize: (value: getSetuBillDetailsResponse) => Buffer;
334
+ readonly responseDeserialize: (value: Buffer) => getSetuBillDetailsResponse;
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
+ };
325
345
  };
326
346
  export interface loansServer extends UntypedServiceImplementation {
327
347
  creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
@@ -356,6 +376,8 @@ export interface loansServer extends UntypedServiceImplementation {
356
376
  updatetransactionstatus: handleUnaryCall<updateTransactionStatusRequest, updateTransactionStatusResponse>;
357
377
  getUsedLimit: handleUnaryCall<getUsedLimitfoRequest, getUsedLimitfoResponse>;
358
378
  getChrDetails: handleUnaryCall<getChrDetailsRequest, getChrDetailsResponse>;
379
+ getSetuBillDetails: handleUnaryCall<getSetuBillDetailsRequest, getSetuBillDetailsResponse>;
380
+ getpaymentoptions: handleUnaryCall<getPaymentOptionsRequest, getPaymentOptionsResponse>;
359
381
  }
360
382
  export interface loansClient extends Client {
361
383
  creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
@@ -454,6 +476,12 @@ export interface loansClient extends Client {
454
476
  getChrDetails(request: getChrDetailsRequest, callback: (error: ServiceError | null, response: getChrDetailsResponse) => void): ClientUnaryCall;
455
477
  getChrDetails(request: getChrDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getChrDetailsResponse) => void): ClientUnaryCall;
456
478
  getChrDetails(request: getChrDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getChrDetailsResponse) => void): ClientUnaryCall;
479
+ getSetuBillDetails(request: getSetuBillDetailsRequest, callback: (error: ServiceError | null, response: getSetuBillDetailsResponse) => void): ClientUnaryCall;
480
+ getSetuBillDetails(request: getSetuBillDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getSetuBillDetailsResponse) => void): ClientUnaryCall;
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;
457
485
  }
458
486
  export declare const loansClient: {
459
487
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
package/ts/loans.js CHANGED
@@ -22,7 +22,9 @@ 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");
27
+ const getsetubilldetails_1 = require("./loans/getsetubilldetails");
26
28
  const getsummarystaticfields_1 = require("./loans/getsummarystaticfields");
27
29
  const gettransactionstatus_1 = require("./loans/gettransactionstatus");
28
30
  const getusedlimit_1 = require("./loans/getusedlimit");
@@ -330,5 +332,23 @@ exports.loansService = {
330
332
  responseSerialize: (value) => Buffer.from(getchrdetails_1.getChrDetailsResponse.encode(value).finish()),
331
333
  responseDeserialize: (value) => getchrdetails_1.getChrDetailsResponse.decode(value),
332
334
  },
335
+ getSetuBillDetails: {
336
+ path: "/service.loans/getSetuBillDetails",
337
+ requestStream: false,
338
+ responseStream: false,
339
+ requestSerialize: (value) => Buffer.from(getsetubilldetails_1.getSetuBillDetailsRequest.encode(value).finish()),
340
+ requestDeserialize: (value) => getsetubilldetails_1.getSetuBillDetailsRequest.decode(value),
341
+ responseSerialize: (value) => Buffer.from(getsetubilldetails_1.getSetuBillDetailsResponse.encode(value).finish()),
342
+ responseDeserialize: (value) => getsetubilldetails_1.getSetuBillDetailsResponse.decode(value),
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
+ },
333
353
  };
334
354
  exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");