@stashfin/grpc 1.2.187 → 1.2.189
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ts/bureau/getbasicdetails.d.ts +3 -4
- package/ts/bureau/getbasicdetails.js +34 -48
- package/ts/payments/nachpresentation.d.ts +39 -0
- package/ts/payments/nachpresentation.js +191 -0
- package/ts/payments/nachregistration.d.ts +5 -1
- package/ts/payments/nachregistration.js +82 -15
- package/ts/payments.d.ts +14 -0
- package/ts/payments.js +10 -0
package/package.json
CHANGED
|
@@ -3,9 +3,7 @@ export declare const protobufPackage = "bureau.getbasicdetails";
|
|
|
3
3
|
export interface detailsRequest {
|
|
4
4
|
customer_id: number;
|
|
5
5
|
range: number;
|
|
6
|
-
bureau_type: number;
|
|
7
6
|
source: string;
|
|
8
|
-
pull_type: number;
|
|
9
7
|
}
|
|
10
8
|
export interface detailsResponse {
|
|
11
9
|
status: string;
|
|
@@ -16,9 +14,10 @@ export interface Report {
|
|
|
16
14
|
name: string;
|
|
17
15
|
occupation: string;
|
|
18
16
|
dob: string;
|
|
19
|
-
income:
|
|
17
|
+
income: number;
|
|
20
18
|
pull_date: string;
|
|
21
|
-
bureau_type:
|
|
19
|
+
bureau_type: number;
|
|
20
|
+
gender: string;
|
|
22
21
|
}
|
|
23
22
|
export declare const detailsRequest: {
|
|
24
23
|
encode(message: detailsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -14,7 +14,7 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "bureau.getbasicdetails";
|
|
16
16
|
function createBasedetailsRequest() {
|
|
17
|
-
return { customer_id: 0, range: 0,
|
|
17
|
+
return { customer_id: 0, range: 0, source: "" };
|
|
18
18
|
}
|
|
19
19
|
exports.detailsRequest = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -24,14 +24,8 @@ exports.detailsRequest = {
|
|
|
24
24
|
if (message.range !== 0) {
|
|
25
25
|
writer.uint32(16).int32(message.range);
|
|
26
26
|
}
|
|
27
|
-
if (message.bureau_type !== 0) {
|
|
28
|
-
writer.uint32(24).int32(message.bureau_type);
|
|
29
|
-
}
|
|
30
27
|
if (message.source !== "") {
|
|
31
|
-
writer.uint32(
|
|
32
|
-
}
|
|
33
|
-
if (message.pull_type !== 0) {
|
|
34
|
-
writer.uint32(40).int32(message.pull_type);
|
|
28
|
+
writer.uint32(26).string(message.source);
|
|
35
29
|
}
|
|
36
30
|
return writer;
|
|
37
31
|
},
|
|
@@ -55,23 +49,11 @@ exports.detailsRequest = {
|
|
|
55
49
|
message.range = reader.int32();
|
|
56
50
|
continue;
|
|
57
51
|
case 3:
|
|
58
|
-
if (tag !==
|
|
59
|
-
break;
|
|
60
|
-
}
|
|
61
|
-
message.bureau_type = reader.int32();
|
|
62
|
-
continue;
|
|
63
|
-
case 4:
|
|
64
|
-
if (tag !== 34) {
|
|
52
|
+
if (tag !== 26) {
|
|
65
53
|
break;
|
|
66
54
|
}
|
|
67
55
|
message.source = reader.string();
|
|
68
56
|
continue;
|
|
69
|
-
case 5:
|
|
70
|
-
if (tag !== 40) {
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
message.pull_type = reader.int32();
|
|
74
|
-
continue;
|
|
75
57
|
}
|
|
76
58
|
if ((tag & 7) === 4 || tag === 0) {
|
|
77
59
|
break;
|
|
@@ -84,9 +66,7 @@ exports.detailsRequest = {
|
|
|
84
66
|
return {
|
|
85
67
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
86
68
|
range: isSet(object.range) ? globalThis.Number(object.range) : 0,
|
|
87
|
-
bureau_type: isSet(object.bureau_type) ? globalThis.Number(object.bureau_type) : 0,
|
|
88
69
|
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
89
|
-
pull_type: isSet(object.pull_type) ? globalThis.Number(object.pull_type) : 0,
|
|
90
70
|
};
|
|
91
71
|
},
|
|
92
72
|
toJSON(message) {
|
|
@@ -97,15 +77,9 @@ exports.detailsRequest = {
|
|
|
97
77
|
if (message.range !== 0) {
|
|
98
78
|
obj.range = Math.round(message.range);
|
|
99
79
|
}
|
|
100
|
-
if (message.bureau_type !== 0) {
|
|
101
|
-
obj.bureau_type = Math.round(message.bureau_type);
|
|
102
|
-
}
|
|
103
80
|
if (message.source !== "") {
|
|
104
81
|
obj.source = message.source;
|
|
105
82
|
}
|
|
106
|
-
if (message.pull_type !== 0) {
|
|
107
|
-
obj.pull_type = Math.round(message.pull_type);
|
|
108
|
-
}
|
|
109
83
|
return obj;
|
|
110
84
|
},
|
|
111
85
|
create(base) {
|
|
@@ -115,9 +89,7 @@ exports.detailsRequest = {
|
|
|
115
89
|
const message = createBasedetailsRequest();
|
|
116
90
|
message.customer_id = object.customer_id ?? 0;
|
|
117
91
|
message.range = object.range ?? 0;
|
|
118
|
-
message.bureau_type = object.bureau_type ?? 0;
|
|
119
92
|
message.source = object.source ?? "";
|
|
120
|
-
message.pull_type = object.pull_type ?? 0;
|
|
121
93
|
return message;
|
|
122
94
|
},
|
|
123
95
|
};
|
|
@@ -188,7 +160,7 @@ exports.detailsResponse = {
|
|
|
188
160
|
},
|
|
189
161
|
};
|
|
190
162
|
function createBaseReport() {
|
|
191
|
-
return { score: 0, name: "", occupation: "", dob: "", income:
|
|
163
|
+
return { score: 0, name: "", occupation: "", dob: "", income: 0, pull_date: "", bureau_type: 0, gender: "" };
|
|
192
164
|
}
|
|
193
165
|
exports.Report = {
|
|
194
166
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -204,14 +176,17 @@ exports.Report = {
|
|
|
204
176
|
if (message.dob !== "") {
|
|
205
177
|
writer.uint32(34).string(message.dob);
|
|
206
178
|
}
|
|
207
|
-
if (message.income !==
|
|
208
|
-
writer.uint32(
|
|
179
|
+
if (message.income !== 0) {
|
|
180
|
+
writer.uint32(40).int32(message.income);
|
|
209
181
|
}
|
|
210
182
|
if (message.pull_date !== "") {
|
|
211
183
|
writer.uint32(50).string(message.pull_date);
|
|
212
184
|
}
|
|
213
|
-
if (message.bureau_type !==
|
|
214
|
-
writer.uint32(
|
|
185
|
+
if (message.bureau_type !== 0) {
|
|
186
|
+
writer.uint32(56).int32(message.bureau_type);
|
|
187
|
+
}
|
|
188
|
+
if (message.gender !== "") {
|
|
189
|
+
writer.uint32(66).string(message.gender);
|
|
215
190
|
}
|
|
216
191
|
return writer;
|
|
217
192
|
},
|
|
@@ -247,10 +222,10 @@ exports.Report = {
|
|
|
247
222
|
message.dob = reader.string();
|
|
248
223
|
continue;
|
|
249
224
|
case 5:
|
|
250
|
-
if (tag !==
|
|
225
|
+
if (tag !== 40) {
|
|
251
226
|
break;
|
|
252
227
|
}
|
|
253
|
-
message.income = reader.
|
|
228
|
+
message.income = reader.int32();
|
|
254
229
|
continue;
|
|
255
230
|
case 6:
|
|
256
231
|
if (tag !== 50) {
|
|
@@ -259,10 +234,16 @@ exports.Report = {
|
|
|
259
234
|
message.pull_date = reader.string();
|
|
260
235
|
continue;
|
|
261
236
|
case 7:
|
|
262
|
-
if (tag !==
|
|
237
|
+
if (tag !== 56) {
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
message.bureau_type = reader.int32();
|
|
241
|
+
continue;
|
|
242
|
+
case 8:
|
|
243
|
+
if (tag !== 66) {
|
|
263
244
|
break;
|
|
264
245
|
}
|
|
265
|
-
message.
|
|
246
|
+
message.gender = reader.string();
|
|
266
247
|
continue;
|
|
267
248
|
}
|
|
268
249
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -278,9 +259,10 @@ exports.Report = {
|
|
|
278
259
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
279
260
|
occupation: isSet(object.occupation) ? globalThis.String(object.occupation) : "",
|
|
280
261
|
dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
|
|
281
|
-
income: isSet(object.income) ? globalThis.
|
|
262
|
+
income: isSet(object.income) ? globalThis.Number(object.income) : 0,
|
|
282
263
|
pull_date: isSet(object.pull_date) ? globalThis.String(object.pull_date) : "",
|
|
283
|
-
bureau_type: isSet(object.bureau_type) ? globalThis.
|
|
264
|
+
bureau_type: isSet(object.bureau_type) ? globalThis.Number(object.bureau_type) : 0,
|
|
265
|
+
gender: isSet(object.gender) ? globalThis.String(object.gender) : "",
|
|
284
266
|
};
|
|
285
267
|
},
|
|
286
268
|
toJSON(message) {
|
|
@@ -297,14 +279,17 @@ exports.Report = {
|
|
|
297
279
|
if (message.dob !== "") {
|
|
298
280
|
obj.dob = message.dob;
|
|
299
281
|
}
|
|
300
|
-
if (message.income !==
|
|
301
|
-
obj.income = message.income;
|
|
282
|
+
if (message.income !== 0) {
|
|
283
|
+
obj.income = Math.round(message.income);
|
|
302
284
|
}
|
|
303
285
|
if (message.pull_date !== "") {
|
|
304
286
|
obj.pull_date = message.pull_date;
|
|
305
287
|
}
|
|
306
|
-
if (message.bureau_type !==
|
|
307
|
-
obj.bureau_type = message.bureau_type;
|
|
288
|
+
if (message.bureau_type !== 0) {
|
|
289
|
+
obj.bureau_type = Math.round(message.bureau_type);
|
|
290
|
+
}
|
|
291
|
+
if (message.gender !== "") {
|
|
292
|
+
obj.gender = message.gender;
|
|
308
293
|
}
|
|
309
294
|
return obj;
|
|
310
295
|
},
|
|
@@ -317,9 +302,10 @@ exports.Report = {
|
|
|
317
302
|
message.name = object.name ?? "";
|
|
318
303
|
message.occupation = object.occupation ?? "";
|
|
319
304
|
message.dob = object.dob ?? "";
|
|
320
|
-
message.income = object.income ??
|
|
305
|
+
message.income = object.income ?? 0;
|
|
321
306
|
message.pull_date = object.pull_date ?? "";
|
|
322
|
-
message.bureau_type = object.bureau_type ??
|
|
307
|
+
message.bureau_type = object.bureau_type ?? 0;
|
|
308
|
+
message.gender = object.gender ?? "";
|
|
323
309
|
return message;
|
|
324
310
|
},
|
|
325
311
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "payments.nachpresentation";
|
|
3
|
+
export interface request {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
amount: number;
|
|
6
|
+
client_id: string;
|
|
7
|
+
external_order_id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface response {
|
|
10
|
+
status: string;
|
|
11
|
+
status_code: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const request: {
|
|
14
|
+
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
|
15
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
16
|
+
fromJSON(object: any): request;
|
|
17
|
+
toJSON(message: request): unknown;
|
|
18
|
+
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
19
|
+
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
|
|
20
|
+
};
|
|
21
|
+
export declare const response: {
|
|
22
|
+
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
23
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
24
|
+
fromJSON(object: any): response;
|
|
25
|
+
toJSON(message: response): unknown;
|
|
26
|
+
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
27
|
+
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
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,191 @@
|
|
|
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.0
|
|
6
|
+
// source: payments/nachpresentation.proto
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.response = exports.request = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
14
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
|
+
exports.protobufPackage = "payments.nachpresentation";
|
|
16
|
+
function createBaserequest() {
|
|
17
|
+
return { customer_id: 0, amount: 0, client_id: "", external_order_id: "" };
|
|
18
|
+
}
|
|
19
|
+
exports.request = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.customer_id !== 0) {
|
|
22
|
+
writer.uint32(8).int64(message.customer_id);
|
|
23
|
+
}
|
|
24
|
+
if (message.amount !== 0) {
|
|
25
|
+
writer.uint32(21).float(message.amount);
|
|
26
|
+
}
|
|
27
|
+
if (message.client_id !== "") {
|
|
28
|
+
writer.uint32(26).string(message.client_id);
|
|
29
|
+
}
|
|
30
|
+
if (message.external_order_id !== "") {
|
|
31
|
+
writer.uint32(34).string(message.external_order_id);
|
|
32
|
+
}
|
|
33
|
+
return writer;
|
|
34
|
+
},
|
|
35
|
+
decode(input, length) {
|
|
36
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
37
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38
|
+
const message = createBaserequest();
|
|
39
|
+
while (reader.pos < end) {
|
|
40
|
+
const tag = reader.uint32();
|
|
41
|
+
switch (tag >>> 3) {
|
|
42
|
+
case 1:
|
|
43
|
+
if (tag !== 8) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
message.customer_id = longToNumber(reader.int64());
|
|
47
|
+
continue;
|
|
48
|
+
case 2:
|
|
49
|
+
if (tag !== 21) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
message.amount = reader.float();
|
|
53
|
+
continue;
|
|
54
|
+
case 3:
|
|
55
|
+
if (tag !== 26) {
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
message.client_id = reader.string();
|
|
59
|
+
continue;
|
|
60
|
+
case 4:
|
|
61
|
+
if (tag !== 34) {
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
message.external_order_id = reader.string();
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
reader.skipType(tag & 7);
|
|
71
|
+
}
|
|
72
|
+
return message;
|
|
73
|
+
},
|
|
74
|
+
fromJSON(object) {
|
|
75
|
+
return {
|
|
76
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
77
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
78
|
+
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
79
|
+
external_order_id: isSet(object.external_order_id) ? globalThis.String(object.external_order_id) : "",
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
toJSON(message) {
|
|
83
|
+
const obj = {};
|
|
84
|
+
if (message.customer_id !== 0) {
|
|
85
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
86
|
+
}
|
|
87
|
+
if (message.amount !== 0) {
|
|
88
|
+
obj.amount = message.amount;
|
|
89
|
+
}
|
|
90
|
+
if (message.client_id !== "") {
|
|
91
|
+
obj.client_id = message.client_id;
|
|
92
|
+
}
|
|
93
|
+
if (message.external_order_id !== "") {
|
|
94
|
+
obj.external_order_id = message.external_order_id;
|
|
95
|
+
}
|
|
96
|
+
return obj;
|
|
97
|
+
},
|
|
98
|
+
create(base) {
|
|
99
|
+
return exports.request.fromPartial(base ?? {});
|
|
100
|
+
},
|
|
101
|
+
fromPartial(object) {
|
|
102
|
+
const message = createBaserequest();
|
|
103
|
+
message.customer_id = object.customer_id ?? 0;
|
|
104
|
+
message.amount = object.amount ?? 0;
|
|
105
|
+
message.client_id = object.client_id ?? "";
|
|
106
|
+
message.external_order_id = object.external_order_id ?? "";
|
|
107
|
+
return message;
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
function createBaseresponse() {
|
|
111
|
+
return { status: "", status_code: 0 };
|
|
112
|
+
}
|
|
113
|
+
exports.response = {
|
|
114
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
115
|
+
if (message.status !== "") {
|
|
116
|
+
writer.uint32(10).string(message.status);
|
|
117
|
+
}
|
|
118
|
+
if (message.status_code !== 0) {
|
|
119
|
+
writer.uint32(16).int32(message.status_code);
|
|
120
|
+
}
|
|
121
|
+
return writer;
|
|
122
|
+
},
|
|
123
|
+
decode(input, length) {
|
|
124
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
125
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
126
|
+
const message = createBaseresponse();
|
|
127
|
+
while (reader.pos < end) {
|
|
128
|
+
const tag = reader.uint32();
|
|
129
|
+
switch (tag >>> 3) {
|
|
130
|
+
case 1:
|
|
131
|
+
if (tag !== 10) {
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
message.status = reader.string();
|
|
135
|
+
continue;
|
|
136
|
+
case 2:
|
|
137
|
+
if (tag !== 16) {
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
message.status_code = reader.int32();
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
reader.skipType(tag & 7);
|
|
147
|
+
}
|
|
148
|
+
return message;
|
|
149
|
+
},
|
|
150
|
+
fromJSON(object) {
|
|
151
|
+
return {
|
|
152
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
153
|
+
status_code: isSet(object.status_code) ? globalThis.Number(object.status_code) : 0,
|
|
154
|
+
};
|
|
155
|
+
},
|
|
156
|
+
toJSON(message) {
|
|
157
|
+
const obj = {};
|
|
158
|
+
if (message.status !== "") {
|
|
159
|
+
obj.status = message.status;
|
|
160
|
+
}
|
|
161
|
+
if (message.status_code !== 0) {
|
|
162
|
+
obj.status_code = Math.round(message.status_code);
|
|
163
|
+
}
|
|
164
|
+
return obj;
|
|
165
|
+
},
|
|
166
|
+
create(base) {
|
|
167
|
+
return exports.response.fromPartial(base ?? {});
|
|
168
|
+
},
|
|
169
|
+
fromPartial(object) {
|
|
170
|
+
const message = createBaseresponse();
|
|
171
|
+
message.status = object.status ?? "";
|
|
172
|
+
message.status_code = object.status_code ?? 0;
|
|
173
|
+
return message;
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
function longToNumber(long) {
|
|
177
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
178
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
179
|
+
}
|
|
180
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
181
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
182
|
+
}
|
|
183
|
+
return long.toNumber();
|
|
184
|
+
}
|
|
185
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
186
|
+
minimal_1.default.util.Long = long_1.default;
|
|
187
|
+
minimal_1.default.configure();
|
|
188
|
+
}
|
|
189
|
+
function isSet(value) {
|
|
190
|
+
return value !== null && value !== undefined;
|
|
191
|
+
}
|
|
@@ -2,9 +2,13 @@ import _m0 from "protobufjs/minimal";
|
|
|
2
2
|
export declare const protobufPackage = "payments.nachregistration";
|
|
3
3
|
export interface request {
|
|
4
4
|
customer_id: number;
|
|
5
|
-
loan_id: number;
|
|
6
5
|
client_id: string;
|
|
7
6
|
mandate_type: string;
|
|
7
|
+
bank_name?: string | undefined;
|
|
8
|
+
bank_account_number?: string | undefined;
|
|
9
|
+
bank_ifsc?: string | undefined;
|
|
10
|
+
maximum_amount: number;
|
|
11
|
+
external_order_id: string;
|
|
8
12
|
}
|
|
9
13
|
export interface response {
|
|
10
14
|
status: string;
|
|
@@ -14,21 +14,42 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "payments.nachregistration";
|
|
16
16
|
function createBaserequest() {
|
|
17
|
-
return {
|
|
17
|
+
return {
|
|
18
|
+
customer_id: 0,
|
|
19
|
+
client_id: "",
|
|
20
|
+
mandate_type: "",
|
|
21
|
+
bank_name: undefined,
|
|
22
|
+
bank_account_number: undefined,
|
|
23
|
+
bank_ifsc: undefined,
|
|
24
|
+
maximum_amount: 0,
|
|
25
|
+
external_order_id: "",
|
|
26
|
+
};
|
|
18
27
|
}
|
|
19
28
|
exports.request = {
|
|
20
29
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
30
|
if (message.customer_id !== 0) {
|
|
22
31
|
writer.uint32(8).int64(message.customer_id);
|
|
23
32
|
}
|
|
24
|
-
if (message.loan_id !== 0) {
|
|
25
|
-
writer.uint32(16).int64(message.loan_id);
|
|
26
|
-
}
|
|
27
33
|
if (message.client_id !== "") {
|
|
28
|
-
writer.uint32(
|
|
34
|
+
writer.uint32(18).string(message.client_id);
|
|
29
35
|
}
|
|
30
36
|
if (message.mandate_type !== "") {
|
|
31
|
-
writer.uint32(
|
|
37
|
+
writer.uint32(26).string(message.mandate_type);
|
|
38
|
+
}
|
|
39
|
+
if (message.bank_name !== undefined) {
|
|
40
|
+
writer.uint32(34).string(message.bank_name);
|
|
41
|
+
}
|
|
42
|
+
if (message.bank_account_number !== undefined) {
|
|
43
|
+
writer.uint32(42).string(message.bank_account_number);
|
|
44
|
+
}
|
|
45
|
+
if (message.bank_ifsc !== undefined) {
|
|
46
|
+
writer.uint32(50).string(message.bank_ifsc);
|
|
47
|
+
}
|
|
48
|
+
if (message.maximum_amount !== 0) {
|
|
49
|
+
writer.uint32(61).float(message.maximum_amount);
|
|
50
|
+
}
|
|
51
|
+
if (message.external_order_id !== "") {
|
|
52
|
+
writer.uint32(66).string(message.external_order_id);
|
|
32
53
|
}
|
|
33
54
|
return writer;
|
|
34
55
|
},
|
|
@@ -46,22 +67,46 @@ exports.request = {
|
|
|
46
67
|
message.customer_id = longToNumber(reader.int64());
|
|
47
68
|
continue;
|
|
48
69
|
case 2:
|
|
49
|
-
if (tag !==
|
|
70
|
+
if (tag !== 18) {
|
|
50
71
|
break;
|
|
51
72
|
}
|
|
52
|
-
message.
|
|
73
|
+
message.client_id = reader.string();
|
|
53
74
|
continue;
|
|
54
75
|
case 3:
|
|
55
76
|
if (tag !== 26) {
|
|
56
77
|
break;
|
|
57
78
|
}
|
|
58
|
-
message.
|
|
79
|
+
message.mandate_type = reader.string();
|
|
59
80
|
continue;
|
|
60
81
|
case 4:
|
|
61
82
|
if (tag !== 34) {
|
|
62
83
|
break;
|
|
63
84
|
}
|
|
64
|
-
message.
|
|
85
|
+
message.bank_name = reader.string();
|
|
86
|
+
continue;
|
|
87
|
+
case 5:
|
|
88
|
+
if (tag !== 42) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
message.bank_account_number = reader.string();
|
|
92
|
+
continue;
|
|
93
|
+
case 6:
|
|
94
|
+
if (tag !== 50) {
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
message.bank_ifsc = reader.string();
|
|
98
|
+
continue;
|
|
99
|
+
case 7:
|
|
100
|
+
if (tag !== 61) {
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
message.maximum_amount = reader.float();
|
|
104
|
+
continue;
|
|
105
|
+
case 8:
|
|
106
|
+
if (tag !== 66) {
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
message.external_order_id = reader.string();
|
|
65
110
|
continue;
|
|
66
111
|
}
|
|
67
112
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -74,9 +119,15 @@ exports.request = {
|
|
|
74
119
|
fromJSON(object) {
|
|
75
120
|
return {
|
|
76
121
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
77
|
-
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
78
122
|
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
79
123
|
mandate_type: isSet(object.mandate_type) ? globalThis.String(object.mandate_type) : "",
|
|
124
|
+
bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : undefined,
|
|
125
|
+
bank_account_number: isSet(object.bank_account_number)
|
|
126
|
+
? globalThis.String(object.bank_account_number)
|
|
127
|
+
: undefined,
|
|
128
|
+
bank_ifsc: isSet(object.bank_ifsc) ? globalThis.String(object.bank_ifsc) : undefined,
|
|
129
|
+
maximum_amount: isSet(object.maximum_amount) ? globalThis.Number(object.maximum_amount) : 0,
|
|
130
|
+
external_order_id: isSet(object.external_order_id) ? globalThis.String(object.external_order_id) : "",
|
|
80
131
|
};
|
|
81
132
|
},
|
|
82
133
|
toJSON(message) {
|
|
@@ -84,15 +135,27 @@ exports.request = {
|
|
|
84
135
|
if (message.customer_id !== 0) {
|
|
85
136
|
obj.customer_id = Math.round(message.customer_id);
|
|
86
137
|
}
|
|
87
|
-
if (message.loan_id !== 0) {
|
|
88
|
-
obj.loan_id = Math.round(message.loan_id);
|
|
89
|
-
}
|
|
90
138
|
if (message.client_id !== "") {
|
|
91
139
|
obj.client_id = message.client_id;
|
|
92
140
|
}
|
|
93
141
|
if (message.mandate_type !== "") {
|
|
94
142
|
obj.mandate_type = message.mandate_type;
|
|
95
143
|
}
|
|
144
|
+
if (message.bank_name !== undefined) {
|
|
145
|
+
obj.bank_name = message.bank_name;
|
|
146
|
+
}
|
|
147
|
+
if (message.bank_account_number !== undefined) {
|
|
148
|
+
obj.bank_account_number = message.bank_account_number;
|
|
149
|
+
}
|
|
150
|
+
if (message.bank_ifsc !== undefined) {
|
|
151
|
+
obj.bank_ifsc = message.bank_ifsc;
|
|
152
|
+
}
|
|
153
|
+
if (message.maximum_amount !== 0) {
|
|
154
|
+
obj.maximum_amount = message.maximum_amount;
|
|
155
|
+
}
|
|
156
|
+
if (message.external_order_id !== "") {
|
|
157
|
+
obj.external_order_id = message.external_order_id;
|
|
158
|
+
}
|
|
96
159
|
return obj;
|
|
97
160
|
},
|
|
98
161
|
create(base) {
|
|
@@ -101,9 +164,13 @@ exports.request = {
|
|
|
101
164
|
fromPartial(object) {
|
|
102
165
|
const message = createBaserequest();
|
|
103
166
|
message.customer_id = object.customer_id ?? 0;
|
|
104
|
-
message.loan_id = object.loan_id ?? 0;
|
|
105
167
|
message.client_id = object.client_id ?? "";
|
|
106
168
|
message.mandate_type = object.mandate_type ?? "";
|
|
169
|
+
message.bank_name = object.bank_name ?? undefined;
|
|
170
|
+
message.bank_account_number = object.bank_account_number ?? undefined;
|
|
171
|
+
message.bank_ifsc = object.bank_ifsc ?? undefined;
|
|
172
|
+
message.maximum_amount = object.maximum_amount ?? 0;
|
|
173
|
+
message.external_order_id = object.external_order_id ?? "";
|
|
107
174
|
return message;
|
|
108
175
|
},
|
|
109
176
|
};
|
package/ts/payments.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type
|
|
|
2
2
|
import { request as request3, response as response4 } from "./payments/checkpaymentstatus";
|
|
3
3
|
import { request, response } from "./payments/getpaymentoptions";
|
|
4
4
|
import { request as request1, response as response2 } from "./payments/initiatepayment";
|
|
5
|
+
import { request as request7, response as response8 } from "./payments/nachpresentation";
|
|
5
6
|
import { request as request5, response as response6 } from "./payments/nachregistration";
|
|
6
7
|
export declare const protobufPackage = "service";
|
|
7
8
|
export type paymentsService = typeof paymentsService;
|
|
@@ -42,12 +43,22 @@ export declare const paymentsService: {
|
|
|
42
43
|
readonly responseSerialize: (value: response6) => Buffer;
|
|
43
44
|
readonly responseDeserialize: (value: Buffer) => response6;
|
|
44
45
|
};
|
|
46
|
+
readonly nachpresentation: {
|
|
47
|
+
readonly path: "/service.payments/nachpresentation";
|
|
48
|
+
readonly requestStream: false;
|
|
49
|
+
readonly responseStream: false;
|
|
50
|
+
readonly requestSerialize: (value: request7) => Buffer;
|
|
51
|
+
readonly requestDeserialize: (value: Buffer) => request7;
|
|
52
|
+
readonly responseSerialize: (value: response8) => Buffer;
|
|
53
|
+
readonly responseDeserialize: (value: Buffer) => response8;
|
|
54
|
+
};
|
|
45
55
|
};
|
|
46
56
|
export interface paymentsServer extends UntypedServiceImplementation {
|
|
47
57
|
getpaymentoptions: handleUnaryCall<request, response>;
|
|
48
58
|
initiatepayment: handleUnaryCall<request1, response2>;
|
|
49
59
|
checkpaymentstatus: handleUnaryCall<request3, response4>;
|
|
50
60
|
nachregistration: handleUnaryCall<request5, response6>;
|
|
61
|
+
nachpresentation: handleUnaryCall<request7, response8>;
|
|
51
62
|
}
|
|
52
63
|
export interface paymentsClient extends Client {
|
|
53
64
|
getpaymentoptions(request: request, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
|
|
@@ -62,6 +73,9 @@ export interface paymentsClient extends Client {
|
|
|
62
73
|
nachregistration(request: request5, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
|
|
63
74
|
nachregistration(request: request5, metadata: Metadata, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
|
|
64
75
|
nachregistration(request: request5, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
|
|
76
|
+
nachpresentation(request: request7, callback: (error: ServiceError | null, response: response8) => void): ClientUnaryCall;
|
|
77
|
+
nachpresentation(request: request7, metadata: Metadata, callback: (error: ServiceError | null, response: response8) => void): ClientUnaryCall;
|
|
78
|
+
nachpresentation(request: request7, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response8) => void): ClientUnaryCall;
|
|
65
79
|
}
|
|
66
80
|
export declare const paymentsClient: {
|
|
67
81
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): paymentsClient;
|
package/ts/payments.js
CHANGED
|
@@ -11,6 +11,7 @@ const grpc_js_1 = require("@grpc/grpc-js");
|
|
|
11
11
|
const checkpaymentstatus_1 = require("./payments/checkpaymentstatus");
|
|
12
12
|
const getpaymentoptions_1 = require("./payments/getpaymentoptions");
|
|
13
13
|
const initiatepayment_1 = require("./payments/initiatepayment");
|
|
14
|
+
const nachpresentation_1 = require("./payments/nachpresentation");
|
|
14
15
|
const nachregistration_1 = require("./payments/nachregistration");
|
|
15
16
|
exports.protobufPackage = "service";
|
|
16
17
|
exports.paymentsService = {
|
|
@@ -50,5 +51,14 @@ exports.paymentsService = {
|
|
|
50
51
|
responseSerialize: (value) => Buffer.from(nachregistration_1.response.encode(value).finish()),
|
|
51
52
|
responseDeserialize: (value) => nachregistration_1.response.decode(value),
|
|
52
53
|
},
|
|
54
|
+
nachpresentation: {
|
|
55
|
+
path: "/service.payments/nachpresentation",
|
|
56
|
+
requestStream: false,
|
|
57
|
+
responseStream: false,
|
|
58
|
+
requestSerialize: (value) => Buffer.from(nachpresentation_1.request.encode(value).finish()),
|
|
59
|
+
requestDeserialize: (value) => nachpresentation_1.request.decode(value),
|
|
60
|
+
responseSerialize: (value) => Buffer.from(nachpresentation_1.response.encode(value).finish()),
|
|
61
|
+
responseDeserialize: (value) => nachpresentation_1.response.decode(value),
|
|
62
|
+
},
|
|
53
63
|
};
|
|
54
64
|
exports.paymentsClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.paymentsService, "service.payments");
|