@stashfin/grpc 1.2.470 → 1.2.472
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 +2 -0
- package/ts/bureau/getbasicdetails.js +29 -1
- package/ts/upi/validateifsc.d.ts +64 -0
- package/ts/upi/validateifsc.js +441 -0
- package/ts/upi.d.ts +14 -0
- package/ts/upi.js +10 -0
package/package.json
CHANGED
|
@@ -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, source: "" };
|
|
17
|
+
return { customer_id: 0, range: 0, source: "", bureau_type: 0, pull_type: 0 };
|
|
18
18
|
}
|
|
19
19
|
exports.detailsRequest = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -27,6 +27,12 @@ exports.detailsRequest = {
|
|
|
27
27
|
if (message.source !== "") {
|
|
28
28
|
writer.uint32(26).string(message.source);
|
|
29
29
|
}
|
|
30
|
+
if (message.bureau_type !== 0) {
|
|
31
|
+
writer.uint32(32).int32(message.bureau_type);
|
|
32
|
+
}
|
|
33
|
+
if (message.pull_type !== 0) {
|
|
34
|
+
writer.uint32(40).int32(message.pull_type);
|
|
35
|
+
}
|
|
30
36
|
return writer;
|
|
31
37
|
},
|
|
32
38
|
decode(input, length) {
|
|
@@ -54,6 +60,18 @@ exports.detailsRequest = {
|
|
|
54
60
|
}
|
|
55
61
|
message.source = reader.string();
|
|
56
62
|
continue;
|
|
63
|
+
case 4:
|
|
64
|
+
if (tag !== 32) {
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
message.bureau_type = reader.int32();
|
|
68
|
+
continue;
|
|
69
|
+
case 5:
|
|
70
|
+
if (tag !== 40) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.pull_type = reader.int32();
|
|
74
|
+
continue;
|
|
57
75
|
}
|
|
58
76
|
if ((tag & 7) === 4 || tag === 0) {
|
|
59
77
|
break;
|
|
@@ -67,6 +85,8 @@ exports.detailsRequest = {
|
|
|
67
85
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
68
86
|
range: isSet(object.range) ? globalThis.Number(object.range) : 0,
|
|
69
87
|
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
88
|
+
bureau_type: isSet(object.bureau_type) ? globalThis.Number(object.bureau_type) : 0,
|
|
89
|
+
pull_type: isSet(object.pull_type) ? globalThis.Number(object.pull_type) : 0,
|
|
70
90
|
};
|
|
71
91
|
},
|
|
72
92
|
toJSON(message) {
|
|
@@ -80,6 +100,12 @@ exports.detailsRequest = {
|
|
|
80
100
|
if (message.source !== "") {
|
|
81
101
|
obj.source = message.source;
|
|
82
102
|
}
|
|
103
|
+
if (message.bureau_type !== 0) {
|
|
104
|
+
obj.bureau_type = Math.round(message.bureau_type);
|
|
105
|
+
}
|
|
106
|
+
if (message.pull_type !== 0) {
|
|
107
|
+
obj.pull_type = Math.round(message.pull_type);
|
|
108
|
+
}
|
|
83
109
|
return obj;
|
|
84
110
|
},
|
|
85
111
|
create(base) {
|
|
@@ -90,6 +116,8 @@ exports.detailsRequest = {
|
|
|
90
116
|
message.customer_id = object.customer_id ?? 0;
|
|
91
117
|
message.range = object.range ?? 0;
|
|
92
118
|
message.source = object.source ?? "";
|
|
119
|
+
message.bureau_type = object.bureau_type ?? 0;
|
|
120
|
+
message.pull_type = object.pull_type ?? 0;
|
|
93
121
|
return message;
|
|
94
122
|
},
|
|
95
123
|
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "upi.validateIFSC";
|
|
3
|
+
export interface validateIFSCRequest {
|
|
4
|
+
ifsc: string;
|
|
5
|
+
}
|
|
6
|
+
export interface BankData {
|
|
7
|
+
MICR: string;
|
|
8
|
+
BRANCH: string;
|
|
9
|
+
ADDRESS: string;
|
|
10
|
+
STATE: string;
|
|
11
|
+
CONTACT: string;
|
|
12
|
+
UPI: boolean;
|
|
13
|
+
RTGS: boolean;
|
|
14
|
+
CITY: string;
|
|
15
|
+
CENTRE: string;
|
|
16
|
+
DISTRICT: string;
|
|
17
|
+
NEFT: boolean;
|
|
18
|
+
IMPS: boolean;
|
|
19
|
+
SWIFT: string;
|
|
20
|
+
ISO3166: string;
|
|
21
|
+
BANK: string;
|
|
22
|
+
BANKCODE: string;
|
|
23
|
+
IFSC: string;
|
|
24
|
+
}
|
|
25
|
+
export interface validateIFSCResponse {
|
|
26
|
+
status: string;
|
|
27
|
+
message: string;
|
|
28
|
+
data: BankData | undefined;
|
|
29
|
+
}
|
|
30
|
+
export declare const validateIFSCRequest: {
|
|
31
|
+
encode(message: validateIFSCRequest, writer?: _m0.Writer): _m0.Writer;
|
|
32
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): validateIFSCRequest;
|
|
33
|
+
fromJSON(object: any): validateIFSCRequest;
|
|
34
|
+
toJSON(message: validateIFSCRequest): unknown;
|
|
35
|
+
create<I extends Exact<DeepPartial<validateIFSCRequest>, I>>(base?: I): validateIFSCRequest;
|
|
36
|
+
fromPartial<I extends Exact<DeepPartial<validateIFSCRequest>, I>>(object: I): validateIFSCRequest;
|
|
37
|
+
};
|
|
38
|
+
export declare const BankData: {
|
|
39
|
+
encode(message: BankData, writer?: _m0.Writer): _m0.Writer;
|
|
40
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BankData;
|
|
41
|
+
fromJSON(object: any): BankData;
|
|
42
|
+
toJSON(message: BankData): unknown;
|
|
43
|
+
create<I extends Exact<DeepPartial<BankData>, I>>(base?: I): BankData;
|
|
44
|
+
fromPartial<I extends Exact<DeepPartial<BankData>, I>>(object: I): BankData;
|
|
45
|
+
};
|
|
46
|
+
export declare const validateIFSCResponse: {
|
|
47
|
+
encode(message: validateIFSCResponse, writer?: _m0.Writer): _m0.Writer;
|
|
48
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): validateIFSCResponse;
|
|
49
|
+
fromJSON(object: any): validateIFSCResponse;
|
|
50
|
+
toJSON(message: validateIFSCResponse): unknown;
|
|
51
|
+
create<I extends Exact<DeepPartial<validateIFSCResponse>, I>>(base?: I): validateIFSCResponse;
|
|
52
|
+
fromPartial<I extends Exact<DeepPartial<validateIFSCResponse>, I>>(object: I): validateIFSCResponse;
|
|
53
|
+
};
|
|
54
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
55
|
+
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 {} ? {
|
|
56
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
57
|
+
} : Partial<T>;
|
|
58
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
59
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
60
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
61
|
+
} & {
|
|
62
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
63
|
+
};
|
|
64
|
+
export {};
|
|
@@ -0,0 +1,441 @@
|
|
|
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.29.1
|
|
6
|
+
// source: upi/validateifsc.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.validateIFSCResponse = exports.BankData = exports.validateIFSCRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "upi.validateIFSC";
|
|
15
|
+
function createBasevalidateIFSCRequest() {
|
|
16
|
+
return { ifsc: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.validateIFSCRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.ifsc !== "") {
|
|
21
|
+
writer.uint32(10).string(message.ifsc);
|
|
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 = createBasevalidateIFSCRequest();
|
|
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.ifsc = 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 { ifsc: isSet(object.ifsc) ? globalThis.String(object.ifsc) : "" };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.ifsc !== "") {
|
|
52
|
+
obj.ifsc = message.ifsc;
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.validateIFSCRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBasevalidateIFSCRequest();
|
|
61
|
+
message.ifsc = object.ifsc ?? "";
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBaseBankData() {
|
|
66
|
+
return {
|
|
67
|
+
MICR: "",
|
|
68
|
+
BRANCH: "",
|
|
69
|
+
ADDRESS: "",
|
|
70
|
+
STATE: "",
|
|
71
|
+
CONTACT: "",
|
|
72
|
+
UPI: false,
|
|
73
|
+
RTGS: false,
|
|
74
|
+
CITY: "",
|
|
75
|
+
CENTRE: "",
|
|
76
|
+
DISTRICT: "",
|
|
77
|
+
NEFT: false,
|
|
78
|
+
IMPS: false,
|
|
79
|
+
SWIFT: "",
|
|
80
|
+
ISO3166: "",
|
|
81
|
+
BANK: "",
|
|
82
|
+
BANKCODE: "",
|
|
83
|
+
IFSC: "",
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
exports.BankData = {
|
|
87
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
88
|
+
if (message.MICR !== "") {
|
|
89
|
+
writer.uint32(10).string(message.MICR);
|
|
90
|
+
}
|
|
91
|
+
if (message.BRANCH !== "") {
|
|
92
|
+
writer.uint32(18).string(message.BRANCH);
|
|
93
|
+
}
|
|
94
|
+
if (message.ADDRESS !== "") {
|
|
95
|
+
writer.uint32(26).string(message.ADDRESS);
|
|
96
|
+
}
|
|
97
|
+
if (message.STATE !== "") {
|
|
98
|
+
writer.uint32(34).string(message.STATE);
|
|
99
|
+
}
|
|
100
|
+
if (message.CONTACT !== "") {
|
|
101
|
+
writer.uint32(42).string(message.CONTACT);
|
|
102
|
+
}
|
|
103
|
+
if (message.UPI !== false) {
|
|
104
|
+
writer.uint32(48).bool(message.UPI);
|
|
105
|
+
}
|
|
106
|
+
if (message.RTGS !== false) {
|
|
107
|
+
writer.uint32(56).bool(message.RTGS);
|
|
108
|
+
}
|
|
109
|
+
if (message.CITY !== "") {
|
|
110
|
+
writer.uint32(66).string(message.CITY);
|
|
111
|
+
}
|
|
112
|
+
if (message.CENTRE !== "") {
|
|
113
|
+
writer.uint32(74).string(message.CENTRE);
|
|
114
|
+
}
|
|
115
|
+
if (message.DISTRICT !== "") {
|
|
116
|
+
writer.uint32(82).string(message.DISTRICT);
|
|
117
|
+
}
|
|
118
|
+
if (message.NEFT !== false) {
|
|
119
|
+
writer.uint32(88).bool(message.NEFT);
|
|
120
|
+
}
|
|
121
|
+
if (message.IMPS !== false) {
|
|
122
|
+
writer.uint32(96).bool(message.IMPS);
|
|
123
|
+
}
|
|
124
|
+
if (message.SWIFT !== "") {
|
|
125
|
+
writer.uint32(106).string(message.SWIFT);
|
|
126
|
+
}
|
|
127
|
+
if (message.ISO3166 !== "") {
|
|
128
|
+
writer.uint32(114).string(message.ISO3166);
|
|
129
|
+
}
|
|
130
|
+
if (message.BANK !== "") {
|
|
131
|
+
writer.uint32(122).string(message.BANK);
|
|
132
|
+
}
|
|
133
|
+
if (message.BANKCODE !== "") {
|
|
134
|
+
writer.uint32(130).string(message.BANKCODE);
|
|
135
|
+
}
|
|
136
|
+
if (message.IFSC !== "") {
|
|
137
|
+
writer.uint32(138).string(message.IFSC);
|
|
138
|
+
}
|
|
139
|
+
return writer;
|
|
140
|
+
},
|
|
141
|
+
decode(input, length) {
|
|
142
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
143
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
144
|
+
const message = createBaseBankData();
|
|
145
|
+
while (reader.pos < end) {
|
|
146
|
+
const tag = reader.uint32();
|
|
147
|
+
switch (tag >>> 3) {
|
|
148
|
+
case 1:
|
|
149
|
+
if (tag !== 10) {
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
message.MICR = reader.string();
|
|
153
|
+
continue;
|
|
154
|
+
case 2:
|
|
155
|
+
if (tag !== 18) {
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
message.BRANCH = reader.string();
|
|
159
|
+
continue;
|
|
160
|
+
case 3:
|
|
161
|
+
if (tag !== 26) {
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
message.ADDRESS = reader.string();
|
|
165
|
+
continue;
|
|
166
|
+
case 4:
|
|
167
|
+
if (tag !== 34) {
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
message.STATE = reader.string();
|
|
171
|
+
continue;
|
|
172
|
+
case 5:
|
|
173
|
+
if (tag !== 42) {
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
message.CONTACT = reader.string();
|
|
177
|
+
continue;
|
|
178
|
+
case 6:
|
|
179
|
+
if (tag !== 48) {
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
message.UPI = reader.bool();
|
|
183
|
+
continue;
|
|
184
|
+
case 7:
|
|
185
|
+
if (tag !== 56) {
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
message.RTGS = reader.bool();
|
|
189
|
+
continue;
|
|
190
|
+
case 8:
|
|
191
|
+
if (tag !== 66) {
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
message.CITY = reader.string();
|
|
195
|
+
continue;
|
|
196
|
+
case 9:
|
|
197
|
+
if (tag !== 74) {
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
message.CENTRE = reader.string();
|
|
201
|
+
continue;
|
|
202
|
+
case 10:
|
|
203
|
+
if (tag !== 82) {
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
message.DISTRICT = reader.string();
|
|
207
|
+
continue;
|
|
208
|
+
case 11:
|
|
209
|
+
if (tag !== 88) {
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
message.NEFT = reader.bool();
|
|
213
|
+
continue;
|
|
214
|
+
case 12:
|
|
215
|
+
if (tag !== 96) {
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
message.IMPS = reader.bool();
|
|
219
|
+
continue;
|
|
220
|
+
case 13:
|
|
221
|
+
if (tag !== 106) {
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
message.SWIFT = reader.string();
|
|
225
|
+
continue;
|
|
226
|
+
case 14:
|
|
227
|
+
if (tag !== 114) {
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
message.ISO3166 = reader.string();
|
|
231
|
+
continue;
|
|
232
|
+
case 15:
|
|
233
|
+
if (tag !== 122) {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
message.BANK = reader.string();
|
|
237
|
+
continue;
|
|
238
|
+
case 16:
|
|
239
|
+
if (tag !== 130) {
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
message.BANKCODE = reader.string();
|
|
243
|
+
continue;
|
|
244
|
+
case 17:
|
|
245
|
+
if (tag !== 138) {
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
message.IFSC = reader.string();
|
|
249
|
+
continue;
|
|
250
|
+
}
|
|
251
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
reader.skipType(tag & 7);
|
|
255
|
+
}
|
|
256
|
+
return message;
|
|
257
|
+
},
|
|
258
|
+
fromJSON(object) {
|
|
259
|
+
return {
|
|
260
|
+
MICR: isSet(object.MICR) ? globalThis.String(object.MICR) : "",
|
|
261
|
+
BRANCH: isSet(object.BRANCH) ? globalThis.String(object.BRANCH) : "",
|
|
262
|
+
ADDRESS: isSet(object.ADDRESS) ? globalThis.String(object.ADDRESS) : "",
|
|
263
|
+
STATE: isSet(object.STATE) ? globalThis.String(object.STATE) : "",
|
|
264
|
+
CONTACT: isSet(object.CONTACT) ? globalThis.String(object.CONTACT) : "",
|
|
265
|
+
UPI: isSet(object.UPI) ? globalThis.Boolean(object.UPI) : false,
|
|
266
|
+
RTGS: isSet(object.RTGS) ? globalThis.Boolean(object.RTGS) : false,
|
|
267
|
+
CITY: isSet(object.CITY) ? globalThis.String(object.CITY) : "",
|
|
268
|
+
CENTRE: isSet(object.CENTRE) ? globalThis.String(object.CENTRE) : "",
|
|
269
|
+
DISTRICT: isSet(object.DISTRICT) ? globalThis.String(object.DISTRICT) : "",
|
|
270
|
+
NEFT: isSet(object.NEFT) ? globalThis.Boolean(object.NEFT) : false,
|
|
271
|
+
IMPS: isSet(object.IMPS) ? globalThis.Boolean(object.IMPS) : false,
|
|
272
|
+
SWIFT: isSet(object.SWIFT) ? globalThis.String(object.SWIFT) : "",
|
|
273
|
+
ISO3166: isSet(object.ISO3166) ? globalThis.String(object.ISO3166) : "",
|
|
274
|
+
BANK: isSet(object.BANK) ? globalThis.String(object.BANK) : "",
|
|
275
|
+
BANKCODE: isSet(object.BANKCODE) ? globalThis.String(object.BANKCODE) : "",
|
|
276
|
+
IFSC: isSet(object.IFSC) ? globalThis.String(object.IFSC) : "",
|
|
277
|
+
};
|
|
278
|
+
},
|
|
279
|
+
toJSON(message) {
|
|
280
|
+
const obj = {};
|
|
281
|
+
if (message.MICR !== "") {
|
|
282
|
+
obj.MICR = message.MICR;
|
|
283
|
+
}
|
|
284
|
+
if (message.BRANCH !== "") {
|
|
285
|
+
obj.BRANCH = message.BRANCH;
|
|
286
|
+
}
|
|
287
|
+
if (message.ADDRESS !== "") {
|
|
288
|
+
obj.ADDRESS = message.ADDRESS;
|
|
289
|
+
}
|
|
290
|
+
if (message.STATE !== "") {
|
|
291
|
+
obj.STATE = message.STATE;
|
|
292
|
+
}
|
|
293
|
+
if (message.CONTACT !== "") {
|
|
294
|
+
obj.CONTACT = message.CONTACT;
|
|
295
|
+
}
|
|
296
|
+
if (message.UPI !== false) {
|
|
297
|
+
obj.UPI = message.UPI;
|
|
298
|
+
}
|
|
299
|
+
if (message.RTGS !== false) {
|
|
300
|
+
obj.RTGS = message.RTGS;
|
|
301
|
+
}
|
|
302
|
+
if (message.CITY !== "") {
|
|
303
|
+
obj.CITY = message.CITY;
|
|
304
|
+
}
|
|
305
|
+
if (message.CENTRE !== "") {
|
|
306
|
+
obj.CENTRE = message.CENTRE;
|
|
307
|
+
}
|
|
308
|
+
if (message.DISTRICT !== "") {
|
|
309
|
+
obj.DISTRICT = message.DISTRICT;
|
|
310
|
+
}
|
|
311
|
+
if (message.NEFT !== false) {
|
|
312
|
+
obj.NEFT = message.NEFT;
|
|
313
|
+
}
|
|
314
|
+
if (message.IMPS !== false) {
|
|
315
|
+
obj.IMPS = message.IMPS;
|
|
316
|
+
}
|
|
317
|
+
if (message.SWIFT !== "") {
|
|
318
|
+
obj.SWIFT = message.SWIFT;
|
|
319
|
+
}
|
|
320
|
+
if (message.ISO3166 !== "") {
|
|
321
|
+
obj.ISO3166 = message.ISO3166;
|
|
322
|
+
}
|
|
323
|
+
if (message.BANK !== "") {
|
|
324
|
+
obj.BANK = message.BANK;
|
|
325
|
+
}
|
|
326
|
+
if (message.BANKCODE !== "") {
|
|
327
|
+
obj.BANKCODE = message.BANKCODE;
|
|
328
|
+
}
|
|
329
|
+
if (message.IFSC !== "") {
|
|
330
|
+
obj.IFSC = message.IFSC;
|
|
331
|
+
}
|
|
332
|
+
return obj;
|
|
333
|
+
},
|
|
334
|
+
create(base) {
|
|
335
|
+
return exports.BankData.fromPartial(base ?? {});
|
|
336
|
+
},
|
|
337
|
+
fromPartial(object) {
|
|
338
|
+
const message = createBaseBankData();
|
|
339
|
+
message.MICR = object.MICR ?? "";
|
|
340
|
+
message.BRANCH = object.BRANCH ?? "";
|
|
341
|
+
message.ADDRESS = object.ADDRESS ?? "";
|
|
342
|
+
message.STATE = object.STATE ?? "";
|
|
343
|
+
message.CONTACT = object.CONTACT ?? "";
|
|
344
|
+
message.UPI = object.UPI ?? false;
|
|
345
|
+
message.RTGS = object.RTGS ?? false;
|
|
346
|
+
message.CITY = object.CITY ?? "";
|
|
347
|
+
message.CENTRE = object.CENTRE ?? "";
|
|
348
|
+
message.DISTRICT = object.DISTRICT ?? "";
|
|
349
|
+
message.NEFT = object.NEFT ?? false;
|
|
350
|
+
message.IMPS = object.IMPS ?? false;
|
|
351
|
+
message.SWIFT = object.SWIFT ?? "";
|
|
352
|
+
message.ISO3166 = object.ISO3166 ?? "";
|
|
353
|
+
message.BANK = object.BANK ?? "";
|
|
354
|
+
message.BANKCODE = object.BANKCODE ?? "";
|
|
355
|
+
message.IFSC = object.IFSC ?? "";
|
|
356
|
+
return message;
|
|
357
|
+
},
|
|
358
|
+
};
|
|
359
|
+
function createBasevalidateIFSCResponse() {
|
|
360
|
+
return { status: "", message: "", data: undefined };
|
|
361
|
+
}
|
|
362
|
+
exports.validateIFSCResponse = {
|
|
363
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
364
|
+
if (message.status !== "") {
|
|
365
|
+
writer.uint32(10).string(message.status);
|
|
366
|
+
}
|
|
367
|
+
if (message.message !== "") {
|
|
368
|
+
writer.uint32(18).string(message.message);
|
|
369
|
+
}
|
|
370
|
+
if (message.data !== undefined) {
|
|
371
|
+
exports.BankData.encode(message.data, writer.uint32(26).fork()).ldelim();
|
|
372
|
+
}
|
|
373
|
+
return writer;
|
|
374
|
+
},
|
|
375
|
+
decode(input, length) {
|
|
376
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
377
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
378
|
+
const message = createBasevalidateIFSCResponse();
|
|
379
|
+
while (reader.pos < end) {
|
|
380
|
+
const tag = reader.uint32();
|
|
381
|
+
switch (tag >>> 3) {
|
|
382
|
+
case 1:
|
|
383
|
+
if (tag !== 10) {
|
|
384
|
+
break;
|
|
385
|
+
}
|
|
386
|
+
message.status = reader.string();
|
|
387
|
+
continue;
|
|
388
|
+
case 2:
|
|
389
|
+
if (tag !== 18) {
|
|
390
|
+
break;
|
|
391
|
+
}
|
|
392
|
+
message.message = reader.string();
|
|
393
|
+
continue;
|
|
394
|
+
case 3:
|
|
395
|
+
if (tag !== 26) {
|
|
396
|
+
break;
|
|
397
|
+
}
|
|
398
|
+
message.data = exports.BankData.decode(reader, reader.uint32());
|
|
399
|
+
continue;
|
|
400
|
+
}
|
|
401
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
402
|
+
break;
|
|
403
|
+
}
|
|
404
|
+
reader.skipType(tag & 7);
|
|
405
|
+
}
|
|
406
|
+
return message;
|
|
407
|
+
},
|
|
408
|
+
fromJSON(object) {
|
|
409
|
+
return {
|
|
410
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
411
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
412
|
+
data: isSet(object.data) ? exports.BankData.fromJSON(object.data) : undefined,
|
|
413
|
+
};
|
|
414
|
+
},
|
|
415
|
+
toJSON(message) {
|
|
416
|
+
const obj = {};
|
|
417
|
+
if (message.status !== "") {
|
|
418
|
+
obj.status = message.status;
|
|
419
|
+
}
|
|
420
|
+
if (message.message !== "") {
|
|
421
|
+
obj.message = message.message;
|
|
422
|
+
}
|
|
423
|
+
if (message.data !== undefined) {
|
|
424
|
+
obj.data = exports.BankData.toJSON(message.data);
|
|
425
|
+
}
|
|
426
|
+
return obj;
|
|
427
|
+
},
|
|
428
|
+
create(base) {
|
|
429
|
+
return exports.validateIFSCResponse.fromPartial(base ?? {});
|
|
430
|
+
},
|
|
431
|
+
fromPartial(object) {
|
|
432
|
+
const message = createBasevalidateIFSCResponse();
|
|
433
|
+
message.status = object.status ?? "";
|
|
434
|
+
message.message = object.message ?? "";
|
|
435
|
+
message.data = (object.data !== undefined && object.data !== null) ? exports.BankData.fromPartial(object.data) : undefined;
|
|
436
|
+
return message;
|
|
437
|
+
},
|
|
438
|
+
};
|
|
439
|
+
function isSet(value) {
|
|
440
|
+
return value !== null && value !== undefined;
|
|
441
|
+
}
|
package/ts/upi.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { initiateTransactionRequest, initiateTransactionResponse } from "./upi/i
|
|
|
10
10
|
import { listBlockedVPARequest, listBlockedVPAResponse } from "./upi/listblockedvpa";
|
|
11
11
|
import { unblockVPARequest, unblockVPAResponse } from "./upi/unblockvpa";
|
|
12
12
|
import { updateDeviceBindingRequest, updateDeviceBindingResponse } from "./upi/updatedevicebinding";
|
|
13
|
+
import { validateIFSCRequest, validateIFSCResponse } from "./upi/validateifsc";
|
|
13
14
|
import { validateVPARequest, validateVPAResponse } from "./upi/validatevpa";
|
|
14
15
|
export declare const protobufPackage = "service";
|
|
15
16
|
export type upiService = typeof upiService;
|
|
@@ -122,6 +123,15 @@ export declare const upiService: {
|
|
|
122
123
|
readonly responseSerialize: (value: listBlockedVPAResponse) => Buffer;
|
|
123
124
|
readonly responseDeserialize: (value: Buffer) => listBlockedVPAResponse;
|
|
124
125
|
};
|
|
126
|
+
readonly validateIfsc: {
|
|
127
|
+
readonly path: "/service.upi/validateIFSC";
|
|
128
|
+
readonly requestStream: false;
|
|
129
|
+
readonly responseStream: false;
|
|
130
|
+
readonly requestSerialize: (value: validateIFSCRequest) => Buffer;
|
|
131
|
+
readonly requestDeserialize: (value: Buffer) => validateIFSCRequest;
|
|
132
|
+
readonly responseSerialize: (value: validateIFSCResponse) => Buffer;
|
|
133
|
+
readonly responseDeserialize: (value: Buffer) => validateIFSCResponse;
|
|
134
|
+
};
|
|
125
135
|
};
|
|
126
136
|
export interface upiServer extends UntypedServiceImplementation {
|
|
127
137
|
getListedAccountProviders: handleUnaryCall<getListedAccountProvidersRequest, getListedAccountProvidersResponse>;
|
|
@@ -136,6 +146,7 @@ export interface upiServer extends UntypedServiceImplementation {
|
|
|
136
146
|
blockVpa: handleUnaryCall<blockVPARequest, blockVPAResponse>;
|
|
137
147
|
unblockVpa: handleUnaryCall<unblockVPARequest, unblockVPAResponse>;
|
|
138
148
|
listBlockedVpa: handleUnaryCall<listBlockedVPARequest, listBlockedVPAResponse>;
|
|
149
|
+
validateIfsc: handleUnaryCall<validateIFSCRequest, validateIFSCResponse>;
|
|
139
150
|
}
|
|
140
151
|
export interface upiClient extends Client {
|
|
141
152
|
getListedAccountProviders(request: getListedAccountProvidersRequest, callback: (error: ServiceError | null, response: getListedAccountProvidersResponse) => void): ClientUnaryCall;
|
|
@@ -174,6 +185,9 @@ export interface upiClient extends Client {
|
|
|
174
185
|
listBlockedVpa(request: listBlockedVPARequest, callback: (error: ServiceError | null, response: listBlockedVPAResponse) => void): ClientUnaryCall;
|
|
175
186
|
listBlockedVpa(request: listBlockedVPARequest, metadata: Metadata, callback: (error: ServiceError | null, response: listBlockedVPAResponse) => void): ClientUnaryCall;
|
|
176
187
|
listBlockedVpa(request: listBlockedVPARequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: listBlockedVPAResponse) => void): ClientUnaryCall;
|
|
188
|
+
validateIfsc(request: validateIFSCRequest, callback: (error: ServiceError | null, response: validateIFSCResponse) => void): ClientUnaryCall;
|
|
189
|
+
validateIfsc(request: validateIFSCRequest, metadata: Metadata, callback: (error: ServiceError | null, response: validateIFSCResponse) => void): ClientUnaryCall;
|
|
190
|
+
validateIfsc(request: validateIFSCRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: validateIFSCResponse) => void): ClientUnaryCall;
|
|
177
191
|
}
|
|
178
192
|
export declare const upiClient: {
|
|
179
193
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): upiClient;
|
package/ts/upi.js
CHANGED
|
@@ -19,6 +19,7 @@ const initiatetransaction_1 = require("./upi/initiatetransaction");
|
|
|
19
19
|
const listblockedvpa_1 = require("./upi/listblockedvpa");
|
|
20
20
|
const unblockvpa_1 = require("./upi/unblockvpa");
|
|
21
21
|
const updatedevicebinding_1 = require("./upi/updatedevicebinding");
|
|
22
|
+
const validateifsc_1 = require("./upi/validateifsc");
|
|
22
23
|
const validatevpa_1 = require("./upi/validatevpa");
|
|
23
24
|
exports.protobufPackage = "service";
|
|
24
25
|
exports.upiService = {
|
|
@@ -130,5 +131,14 @@ exports.upiService = {
|
|
|
130
131
|
responseSerialize: (value) => Buffer.from(listblockedvpa_1.listBlockedVPAResponse.encode(value).finish()),
|
|
131
132
|
responseDeserialize: (value) => listblockedvpa_1.listBlockedVPAResponse.decode(value),
|
|
132
133
|
},
|
|
134
|
+
validateIfsc: {
|
|
135
|
+
path: "/service.upi/validateIFSC",
|
|
136
|
+
requestStream: false,
|
|
137
|
+
responseStream: false,
|
|
138
|
+
requestSerialize: (value) => Buffer.from(validateifsc_1.validateIFSCRequest.encode(value).finish()),
|
|
139
|
+
requestDeserialize: (value) => validateifsc_1.validateIFSCRequest.decode(value),
|
|
140
|
+
responseSerialize: (value) => Buffer.from(validateifsc_1.validateIFSCResponse.encode(value).finish()),
|
|
141
|
+
responseDeserialize: (value) => validateifsc_1.validateIFSCResponse.decode(value),
|
|
142
|
+
},
|
|
133
143
|
};
|
|
134
144
|
exports.upiClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.upiService, "service.upi");
|