@stashfin/grpc 1.2.473 → 1.2.475

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.473",
3
+ "version": "1.2.475",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -20,6 +20,7 @@ export interface checkTransactionStatusResponse {
20
20
  masked_account_number?: string | undefined;
21
21
  payer_bank_account_name?: string | undefined;
22
22
  payee_masked_account_number?: string | undefined;
23
+ payee_bank_account_name?: string | undefined;
23
24
  payee_ifsc?: string | undefined;
24
25
  }
25
26
  export declare const checkTransactionStatusRequest: {
@@ -121,6 +121,7 @@ function createBasecheckTransactionStatusResponse() {
121
121
  masked_account_number: undefined,
122
122
  payer_bank_account_name: undefined,
123
123
  payee_masked_account_number: undefined,
124
+ payee_bank_account_name: undefined,
124
125
  payee_ifsc: undefined,
125
126
  };
126
127
  }
@@ -165,8 +166,11 @@ exports.checkTransactionStatusResponse = {
165
166
  if (message.payee_masked_account_number !== undefined) {
166
167
  writer.uint32(106).string(message.payee_masked_account_number);
167
168
  }
169
+ if (message.payee_bank_account_name !== undefined) {
170
+ writer.uint32(114).string(message.payee_bank_account_name);
171
+ }
168
172
  if (message.payee_ifsc !== undefined) {
169
- writer.uint32(114).string(message.payee_ifsc);
173
+ writer.uint32(122).string(message.payee_ifsc);
170
174
  }
171
175
  return writer;
172
176
  },
@@ -259,6 +263,12 @@ exports.checkTransactionStatusResponse = {
259
263
  if (tag !== 114) {
260
264
  break;
261
265
  }
266
+ message.payee_bank_account_name = reader.string();
267
+ continue;
268
+ case 15:
269
+ if (tag !== 122) {
270
+ break;
271
+ }
262
272
  message.payee_ifsc = reader.string();
263
273
  continue;
264
274
  }
@@ -290,6 +300,9 @@ exports.checkTransactionStatusResponse = {
290
300
  payee_masked_account_number: isSet(object.payee_masked_account_number)
291
301
  ? globalThis.String(object.payee_masked_account_number)
292
302
  : undefined,
303
+ payee_bank_account_name: isSet(object.payee_bank_account_name)
304
+ ? globalThis.String(object.payee_bank_account_name)
305
+ : undefined,
293
306
  payee_ifsc: isSet(object.payee_ifsc) ? globalThis.String(object.payee_ifsc) : undefined,
294
307
  };
295
308
  },
@@ -334,6 +347,9 @@ exports.checkTransactionStatusResponse = {
334
347
  if (message.payee_masked_account_number !== undefined) {
335
348
  obj.payee_masked_account_number = message.payee_masked_account_number;
336
349
  }
350
+ if (message.payee_bank_account_name !== undefined) {
351
+ obj.payee_bank_account_name = message.payee_bank_account_name;
352
+ }
337
353
  if (message.payee_ifsc !== undefined) {
338
354
  obj.payee_ifsc = message.payee_ifsc;
339
355
  }
@@ -357,6 +373,7 @@ exports.checkTransactionStatusResponse = {
357
373
  message.masked_account_number = object.masked_account_number ?? undefined;
358
374
  message.payer_bank_account_name = object.payer_bank_account_name ?? undefined;
359
375
  message.payee_masked_account_number = object.payee_masked_account_number ?? undefined;
376
+ message.payee_bank_account_name = object.payee_bank_account_name ?? undefined;
360
377
  message.payee_ifsc = object.payee_ifsc ?? undefined;
361
378
  return message;
362
379
  },
@@ -0,0 +1,75 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "upi.getPendingCollectRequest";
3
+ export interface pendingCollectRequest {
4
+ mobile: string;
5
+ device_id: string;
6
+ profile_id: string;
7
+ }
8
+ export interface CollectRequest {
9
+ date?: string | undefined;
10
+ note?: string | undefined;
11
+ amount?: number | undefined;
12
+ seqNo?: string | undefined;
13
+ payeeMccType?: string | undefined;
14
+ expireAfter?: string | undefined;
15
+ payeeVa?: string | undefined;
16
+ payeeName?: string | undefined;
17
+ upiTranlogId?: number | undefined;
18
+ payerVa?: string | undefined;
19
+ refUrl?: string | undefined;
20
+ payeeMccCode?: string | undefined;
21
+ direction?: string | undefined;
22
+ status?: string | undefined;
23
+ payeeVerifiedMerchant?: string | undefined;
24
+ }
25
+ export interface Data {
26
+ requests: CollectRequest[];
27
+ }
28
+ export interface pendingCollectResponse {
29
+ status: string;
30
+ message: string;
31
+ data?: Data | undefined;
32
+ }
33
+ export declare const pendingCollectRequest: {
34
+ encode(message: pendingCollectRequest, writer?: _m0.Writer): _m0.Writer;
35
+ decode(input: _m0.Reader | Uint8Array, length?: number): pendingCollectRequest;
36
+ fromJSON(object: any): pendingCollectRequest;
37
+ toJSON(message: pendingCollectRequest): unknown;
38
+ create<I extends Exact<DeepPartial<pendingCollectRequest>, I>>(base?: I): pendingCollectRequest;
39
+ fromPartial<I extends Exact<DeepPartial<pendingCollectRequest>, I>>(object: I): pendingCollectRequest;
40
+ };
41
+ export declare const CollectRequest: {
42
+ encode(message: CollectRequest, writer?: _m0.Writer): _m0.Writer;
43
+ decode(input: _m0.Reader | Uint8Array, length?: number): CollectRequest;
44
+ fromJSON(object: any): CollectRequest;
45
+ toJSON(message: CollectRequest): unknown;
46
+ create<I extends Exact<DeepPartial<CollectRequest>, I>>(base?: I): CollectRequest;
47
+ fromPartial<I extends Exact<DeepPartial<CollectRequest>, I>>(object: I): CollectRequest;
48
+ };
49
+ export declare const Data: {
50
+ encode(message: Data, writer?: _m0.Writer): _m0.Writer;
51
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data;
52
+ fromJSON(object: any): Data;
53
+ toJSON(message: Data): unknown;
54
+ create<I extends Exact<DeepPartial<Data>, I>>(base?: I): Data;
55
+ fromPartial<I extends Exact<DeepPartial<Data>, I>>(object: I): Data;
56
+ };
57
+ export declare const pendingCollectResponse: {
58
+ encode(message: pendingCollectResponse, writer?: _m0.Writer): _m0.Writer;
59
+ decode(input: _m0.Reader | Uint8Array, length?: number): pendingCollectResponse;
60
+ fromJSON(object: any): pendingCollectResponse;
61
+ toJSON(message: pendingCollectResponse): unknown;
62
+ create<I extends Exact<DeepPartial<pendingCollectResponse>, I>>(base?: I): pendingCollectResponse;
63
+ fromPartial<I extends Exact<DeepPartial<pendingCollectResponse>, I>>(object: I): pendingCollectResponse;
64
+ };
65
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
66
+ 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 {} ? {
67
+ [K in keyof T]?: DeepPartial<T[K]>;
68
+ } : Partial<T>;
69
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
70
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
71
+ [K in keyof P]: Exact<P[K], I[K]>;
72
+ } & {
73
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
74
+ };
75
+ export {};
@@ -0,0 +1,511 @@
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/getpendingcollectrequest.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.pendingCollectResponse = exports.Data = exports.CollectRequest = exports.pendingCollectRequest = 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 = "upi.getPendingCollectRequest";
16
+ function createBasependingCollectRequest() {
17
+ return { mobile: "", device_id: "", profile_id: "" };
18
+ }
19
+ exports.pendingCollectRequest = {
20
+ encode(message, writer = minimal_1.default.Writer.create()) {
21
+ if (message.mobile !== "") {
22
+ writer.uint32(10).string(message.mobile);
23
+ }
24
+ if (message.device_id !== "") {
25
+ writer.uint32(18).string(message.device_id);
26
+ }
27
+ if (message.profile_id !== "") {
28
+ writer.uint32(26).string(message.profile_id);
29
+ }
30
+ return writer;
31
+ },
32
+ decode(input, length) {
33
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
34
+ let end = length === undefined ? reader.len : reader.pos + length;
35
+ const message = createBasependingCollectRequest();
36
+ while (reader.pos < end) {
37
+ const tag = reader.uint32();
38
+ switch (tag >>> 3) {
39
+ case 1:
40
+ if (tag !== 10) {
41
+ break;
42
+ }
43
+ message.mobile = reader.string();
44
+ continue;
45
+ case 2:
46
+ if (tag !== 18) {
47
+ break;
48
+ }
49
+ message.device_id = reader.string();
50
+ continue;
51
+ case 3:
52
+ if (tag !== 26) {
53
+ break;
54
+ }
55
+ message.profile_id = reader.string();
56
+ continue;
57
+ }
58
+ if ((tag & 7) === 4 || tag === 0) {
59
+ break;
60
+ }
61
+ reader.skipType(tag & 7);
62
+ }
63
+ return message;
64
+ },
65
+ fromJSON(object) {
66
+ return {
67
+ mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
68
+ device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
69
+ profile_id: isSet(object.profile_id) ? globalThis.String(object.profile_id) : "",
70
+ };
71
+ },
72
+ toJSON(message) {
73
+ const obj = {};
74
+ if (message.mobile !== "") {
75
+ obj.mobile = message.mobile;
76
+ }
77
+ if (message.device_id !== "") {
78
+ obj.device_id = message.device_id;
79
+ }
80
+ if (message.profile_id !== "") {
81
+ obj.profile_id = message.profile_id;
82
+ }
83
+ return obj;
84
+ },
85
+ create(base) {
86
+ return exports.pendingCollectRequest.fromPartial(base ?? {});
87
+ },
88
+ fromPartial(object) {
89
+ const message = createBasependingCollectRequest();
90
+ message.mobile = object.mobile ?? "";
91
+ message.device_id = object.device_id ?? "";
92
+ message.profile_id = object.profile_id ?? "";
93
+ return message;
94
+ },
95
+ };
96
+ function createBaseCollectRequest() {
97
+ return {
98
+ date: undefined,
99
+ note: undefined,
100
+ amount: undefined,
101
+ seqNo: undefined,
102
+ payeeMccType: undefined,
103
+ expireAfter: undefined,
104
+ payeeVa: undefined,
105
+ payeeName: undefined,
106
+ upiTranlogId: undefined,
107
+ payerVa: undefined,
108
+ refUrl: undefined,
109
+ payeeMccCode: undefined,
110
+ direction: undefined,
111
+ status: undefined,
112
+ payeeVerifiedMerchant: undefined,
113
+ };
114
+ }
115
+ exports.CollectRequest = {
116
+ encode(message, writer = minimal_1.default.Writer.create()) {
117
+ if (message.date !== undefined) {
118
+ writer.uint32(10).string(message.date);
119
+ }
120
+ if (message.note !== undefined) {
121
+ writer.uint32(18).string(message.note);
122
+ }
123
+ if (message.amount !== undefined) {
124
+ writer.uint32(29).float(message.amount);
125
+ }
126
+ if (message.seqNo !== undefined) {
127
+ writer.uint32(34).string(message.seqNo);
128
+ }
129
+ if (message.payeeMccType !== undefined) {
130
+ writer.uint32(42).string(message.payeeMccType);
131
+ }
132
+ if (message.expireAfter !== undefined) {
133
+ writer.uint32(50).string(message.expireAfter);
134
+ }
135
+ if (message.payeeVa !== undefined) {
136
+ writer.uint32(58).string(message.payeeVa);
137
+ }
138
+ if (message.payeeName !== undefined) {
139
+ writer.uint32(74).string(message.payeeName);
140
+ }
141
+ if (message.upiTranlogId !== undefined) {
142
+ writer.uint32(80).int64(message.upiTranlogId);
143
+ }
144
+ if (message.payerVa !== undefined) {
145
+ writer.uint32(90).string(message.payerVa);
146
+ }
147
+ if (message.refUrl !== undefined) {
148
+ writer.uint32(98).string(message.refUrl);
149
+ }
150
+ if (message.payeeMccCode !== undefined) {
151
+ writer.uint32(106).string(message.payeeMccCode);
152
+ }
153
+ if (message.direction !== undefined) {
154
+ writer.uint32(114).string(message.direction);
155
+ }
156
+ if (message.status !== undefined) {
157
+ writer.uint32(122).string(message.status);
158
+ }
159
+ if (message.payeeVerifiedMerchant !== undefined) {
160
+ writer.uint32(130).string(message.payeeVerifiedMerchant);
161
+ }
162
+ return writer;
163
+ },
164
+ decode(input, length) {
165
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
166
+ let end = length === undefined ? reader.len : reader.pos + length;
167
+ const message = createBaseCollectRequest();
168
+ while (reader.pos < end) {
169
+ const tag = reader.uint32();
170
+ switch (tag >>> 3) {
171
+ case 1:
172
+ if (tag !== 10) {
173
+ break;
174
+ }
175
+ message.date = reader.string();
176
+ continue;
177
+ case 2:
178
+ if (tag !== 18) {
179
+ break;
180
+ }
181
+ message.note = reader.string();
182
+ continue;
183
+ case 3:
184
+ if (tag !== 29) {
185
+ break;
186
+ }
187
+ message.amount = reader.float();
188
+ continue;
189
+ case 4:
190
+ if (tag !== 34) {
191
+ break;
192
+ }
193
+ message.seqNo = reader.string();
194
+ continue;
195
+ case 5:
196
+ if (tag !== 42) {
197
+ break;
198
+ }
199
+ message.payeeMccType = reader.string();
200
+ continue;
201
+ case 6:
202
+ if (tag !== 50) {
203
+ break;
204
+ }
205
+ message.expireAfter = reader.string();
206
+ continue;
207
+ case 7:
208
+ if (tag !== 58) {
209
+ break;
210
+ }
211
+ message.payeeVa = reader.string();
212
+ continue;
213
+ case 9:
214
+ if (tag !== 74) {
215
+ break;
216
+ }
217
+ message.payeeName = reader.string();
218
+ continue;
219
+ case 10:
220
+ if (tag !== 80) {
221
+ break;
222
+ }
223
+ message.upiTranlogId = longToNumber(reader.int64());
224
+ continue;
225
+ case 11:
226
+ if (tag !== 90) {
227
+ break;
228
+ }
229
+ message.payerVa = reader.string();
230
+ continue;
231
+ case 12:
232
+ if (tag !== 98) {
233
+ break;
234
+ }
235
+ message.refUrl = reader.string();
236
+ continue;
237
+ case 13:
238
+ if (tag !== 106) {
239
+ break;
240
+ }
241
+ message.payeeMccCode = reader.string();
242
+ continue;
243
+ case 14:
244
+ if (tag !== 114) {
245
+ break;
246
+ }
247
+ message.direction = reader.string();
248
+ continue;
249
+ case 15:
250
+ if (tag !== 122) {
251
+ break;
252
+ }
253
+ message.status = reader.string();
254
+ continue;
255
+ case 16:
256
+ if (tag !== 130) {
257
+ break;
258
+ }
259
+ message.payeeVerifiedMerchant = reader.string();
260
+ continue;
261
+ }
262
+ if ((tag & 7) === 4 || tag === 0) {
263
+ break;
264
+ }
265
+ reader.skipType(tag & 7);
266
+ }
267
+ return message;
268
+ },
269
+ fromJSON(object) {
270
+ return {
271
+ date: isSet(object.date) ? globalThis.String(object.date) : undefined,
272
+ note: isSet(object.note) ? globalThis.String(object.note) : undefined,
273
+ amount: isSet(object.amount) ? globalThis.Number(object.amount) : undefined,
274
+ seqNo: isSet(object.seqNo) ? globalThis.String(object.seqNo) : undefined,
275
+ payeeMccType: isSet(object.payeeMccType) ? globalThis.String(object.payeeMccType) : undefined,
276
+ expireAfter: isSet(object.expireAfter) ? globalThis.String(object.expireAfter) : undefined,
277
+ payeeVa: isSet(object.payeeVa) ? globalThis.String(object.payeeVa) : undefined,
278
+ payeeName: isSet(object.payeeName) ? globalThis.String(object.payeeName) : undefined,
279
+ upiTranlogId: isSet(object.upiTranlogId) ? globalThis.Number(object.upiTranlogId) : undefined,
280
+ payerVa: isSet(object.payerVa) ? globalThis.String(object.payerVa) : undefined,
281
+ refUrl: isSet(object.refUrl) ? globalThis.String(object.refUrl) : undefined,
282
+ payeeMccCode: isSet(object.payeeMccCode) ? globalThis.String(object.payeeMccCode) : undefined,
283
+ direction: isSet(object.direction) ? globalThis.String(object.direction) : undefined,
284
+ status: isSet(object.status) ? globalThis.String(object.status) : undefined,
285
+ payeeVerifiedMerchant: isSet(object.payeeVerifiedMerchant)
286
+ ? globalThis.String(object.payeeVerifiedMerchant)
287
+ : undefined,
288
+ };
289
+ },
290
+ toJSON(message) {
291
+ const obj = {};
292
+ if (message.date !== undefined) {
293
+ obj.date = message.date;
294
+ }
295
+ if (message.note !== undefined) {
296
+ obj.note = message.note;
297
+ }
298
+ if (message.amount !== undefined) {
299
+ obj.amount = message.amount;
300
+ }
301
+ if (message.seqNo !== undefined) {
302
+ obj.seqNo = message.seqNo;
303
+ }
304
+ if (message.payeeMccType !== undefined) {
305
+ obj.payeeMccType = message.payeeMccType;
306
+ }
307
+ if (message.expireAfter !== undefined) {
308
+ obj.expireAfter = message.expireAfter;
309
+ }
310
+ if (message.payeeVa !== undefined) {
311
+ obj.payeeVa = message.payeeVa;
312
+ }
313
+ if (message.payeeName !== undefined) {
314
+ obj.payeeName = message.payeeName;
315
+ }
316
+ if (message.upiTranlogId !== undefined) {
317
+ obj.upiTranlogId = Math.round(message.upiTranlogId);
318
+ }
319
+ if (message.payerVa !== undefined) {
320
+ obj.payerVa = message.payerVa;
321
+ }
322
+ if (message.refUrl !== undefined) {
323
+ obj.refUrl = message.refUrl;
324
+ }
325
+ if (message.payeeMccCode !== undefined) {
326
+ obj.payeeMccCode = message.payeeMccCode;
327
+ }
328
+ if (message.direction !== undefined) {
329
+ obj.direction = message.direction;
330
+ }
331
+ if (message.status !== undefined) {
332
+ obj.status = message.status;
333
+ }
334
+ if (message.payeeVerifiedMerchant !== undefined) {
335
+ obj.payeeVerifiedMerchant = message.payeeVerifiedMerchant;
336
+ }
337
+ return obj;
338
+ },
339
+ create(base) {
340
+ return exports.CollectRequest.fromPartial(base ?? {});
341
+ },
342
+ fromPartial(object) {
343
+ const message = createBaseCollectRequest();
344
+ message.date = object.date ?? undefined;
345
+ message.note = object.note ?? undefined;
346
+ message.amount = object.amount ?? undefined;
347
+ message.seqNo = object.seqNo ?? undefined;
348
+ message.payeeMccType = object.payeeMccType ?? undefined;
349
+ message.expireAfter = object.expireAfter ?? undefined;
350
+ message.payeeVa = object.payeeVa ?? undefined;
351
+ message.payeeName = object.payeeName ?? undefined;
352
+ message.upiTranlogId = object.upiTranlogId ?? undefined;
353
+ message.payerVa = object.payerVa ?? undefined;
354
+ message.refUrl = object.refUrl ?? undefined;
355
+ message.payeeMccCode = object.payeeMccCode ?? undefined;
356
+ message.direction = object.direction ?? undefined;
357
+ message.status = object.status ?? undefined;
358
+ message.payeeVerifiedMerchant = object.payeeVerifiedMerchant ?? undefined;
359
+ return message;
360
+ },
361
+ };
362
+ function createBaseData() {
363
+ return { requests: [] };
364
+ }
365
+ exports.Data = {
366
+ encode(message, writer = minimal_1.default.Writer.create()) {
367
+ for (const v of message.requests) {
368
+ exports.CollectRequest.encode(v, writer.uint32(10).fork()).ldelim();
369
+ }
370
+ return writer;
371
+ },
372
+ decode(input, length) {
373
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
374
+ let end = length === undefined ? reader.len : reader.pos + length;
375
+ const message = createBaseData();
376
+ while (reader.pos < end) {
377
+ const tag = reader.uint32();
378
+ switch (tag >>> 3) {
379
+ case 1:
380
+ if (tag !== 10) {
381
+ break;
382
+ }
383
+ message.requests.push(exports.CollectRequest.decode(reader, reader.uint32()));
384
+ continue;
385
+ }
386
+ if ((tag & 7) === 4 || tag === 0) {
387
+ break;
388
+ }
389
+ reader.skipType(tag & 7);
390
+ }
391
+ return message;
392
+ },
393
+ fromJSON(object) {
394
+ return {
395
+ requests: globalThis.Array.isArray(object?.requests)
396
+ ? object.requests.map((e) => exports.CollectRequest.fromJSON(e))
397
+ : [],
398
+ };
399
+ },
400
+ toJSON(message) {
401
+ const obj = {};
402
+ if (message.requests?.length) {
403
+ obj.requests = message.requests.map((e) => exports.CollectRequest.toJSON(e));
404
+ }
405
+ return obj;
406
+ },
407
+ create(base) {
408
+ return exports.Data.fromPartial(base ?? {});
409
+ },
410
+ fromPartial(object) {
411
+ const message = createBaseData();
412
+ message.requests = object.requests?.map((e) => exports.CollectRequest.fromPartial(e)) || [];
413
+ return message;
414
+ },
415
+ };
416
+ function createBasependingCollectResponse() {
417
+ return { status: "", message: "", data: undefined };
418
+ }
419
+ exports.pendingCollectResponse = {
420
+ encode(message, writer = minimal_1.default.Writer.create()) {
421
+ if (message.status !== "") {
422
+ writer.uint32(10).string(message.status);
423
+ }
424
+ if (message.message !== "") {
425
+ writer.uint32(18).string(message.message);
426
+ }
427
+ if (message.data !== undefined) {
428
+ exports.Data.encode(message.data, writer.uint32(26).fork()).ldelim();
429
+ }
430
+ return writer;
431
+ },
432
+ decode(input, length) {
433
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
434
+ let end = length === undefined ? reader.len : reader.pos + length;
435
+ const message = createBasependingCollectResponse();
436
+ while (reader.pos < end) {
437
+ const tag = reader.uint32();
438
+ switch (tag >>> 3) {
439
+ case 1:
440
+ if (tag !== 10) {
441
+ break;
442
+ }
443
+ message.status = reader.string();
444
+ continue;
445
+ case 2:
446
+ if (tag !== 18) {
447
+ break;
448
+ }
449
+ message.message = reader.string();
450
+ continue;
451
+ case 3:
452
+ if (tag !== 26) {
453
+ break;
454
+ }
455
+ message.data = exports.Data.decode(reader, reader.uint32());
456
+ continue;
457
+ }
458
+ if ((tag & 7) === 4 || tag === 0) {
459
+ break;
460
+ }
461
+ reader.skipType(tag & 7);
462
+ }
463
+ return message;
464
+ },
465
+ fromJSON(object) {
466
+ return {
467
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
468
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
469
+ data: isSet(object.data) ? exports.Data.fromJSON(object.data) : undefined,
470
+ };
471
+ },
472
+ toJSON(message) {
473
+ const obj = {};
474
+ if (message.status !== "") {
475
+ obj.status = message.status;
476
+ }
477
+ if (message.message !== "") {
478
+ obj.message = message.message;
479
+ }
480
+ if (message.data !== undefined) {
481
+ obj.data = exports.Data.toJSON(message.data);
482
+ }
483
+ return obj;
484
+ },
485
+ create(base) {
486
+ return exports.pendingCollectResponse.fromPartial(base ?? {});
487
+ },
488
+ fromPartial(object) {
489
+ const message = createBasependingCollectResponse();
490
+ message.status = object.status ?? "";
491
+ message.message = object.message ?? "";
492
+ message.data = (object.data !== undefined && object.data !== null) ? exports.Data.fromPartial(object.data) : undefined;
493
+ return message;
494
+ },
495
+ };
496
+ function longToNumber(long) {
497
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
498
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
499
+ }
500
+ if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
501
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
502
+ }
503
+ return long.toNumber();
504
+ }
505
+ if (minimal_1.default.util.Long !== long_1.default) {
506
+ minimal_1.default.util.Long = long_1.default;
507
+ minimal_1.default.configure();
508
+ }
509
+ function isSet(value) {
510
+ return value !== null && value !== undefined;
511
+ }
@@ -18,6 +18,7 @@ export interface initiateTransactionRequest {
18
18
  payee_ifsc?: string | undefined;
19
19
  mcc?: string | undefined;
20
20
  merchant_type?: string | undefined;
21
+ payee_account_provider?: string | undefined;
21
22
  }
22
23
  export interface initiateTransactionResponse {
23
24
  seq_no: string;
@@ -31,6 +31,7 @@ function createBaseinitiateTransactionRequest() {
31
31
  payee_ifsc: undefined,
32
32
  mcc: undefined,
33
33
  merchant_type: undefined,
34
+ payee_account_provider: undefined,
34
35
  };
35
36
  }
36
37
  exports.initiateTransactionRequest = {
@@ -86,6 +87,9 @@ exports.initiateTransactionRequest = {
86
87
  if (message.merchant_type !== undefined) {
87
88
  writer.uint32(138).string(message.merchant_type);
88
89
  }
90
+ if (message.payee_account_provider !== undefined) {
91
+ writer.uint32(146).string(message.payee_account_provider);
92
+ }
89
93
  return writer;
90
94
  },
91
95
  decode(input, length) {
@@ -197,6 +201,12 @@ exports.initiateTransactionRequest = {
197
201
  }
198
202
  message.merchant_type = reader.string();
199
203
  continue;
204
+ case 18:
205
+ if (tag !== 146) {
206
+ break;
207
+ }
208
+ message.payee_account_provider = reader.string();
209
+ continue;
200
210
  }
201
211
  if ((tag & 7) === 4 || tag === 0) {
202
212
  break;
@@ -226,6 +236,9 @@ exports.initiateTransactionRequest = {
226
236
  payee_ifsc: isSet(object.payee_ifsc) ? globalThis.String(object.payee_ifsc) : undefined,
227
237
  mcc: isSet(object.mcc) ? globalThis.String(object.mcc) : undefined,
228
238
  merchant_type: isSet(object.merchant_type) ? globalThis.String(object.merchant_type) : undefined,
239
+ payee_account_provider: isSet(object.payee_account_provider)
240
+ ? globalThis.String(object.payee_account_provider)
241
+ : undefined,
229
242
  };
230
243
  },
231
244
  toJSON(message) {
@@ -281,6 +294,9 @@ exports.initiateTransactionRequest = {
281
294
  if (message.merchant_type !== undefined) {
282
295
  obj.merchant_type = message.merchant_type;
283
296
  }
297
+ if (message.payee_account_provider !== undefined) {
298
+ obj.payee_account_provider = message.payee_account_provider;
299
+ }
284
300
  return obj;
285
301
  },
286
302
  create(base) {
@@ -305,6 +321,7 @@ exports.initiateTransactionRequest = {
305
321
  message.payee_ifsc = object.payee_ifsc ?? undefined;
306
322
  message.mcc = object.mcc ?? undefined;
307
323
  message.merchant_type = object.merchant_type ?? undefined;
324
+ message.payee_account_provider = object.payee_account_provider ?? undefined;
308
325
  return message;
309
326
  },
310
327
  };
package/ts/upi.d.ts CHANGED
@@ -5,6 +5,7 @@ import { checkTransactionStatusRequest, checkTransactionStatusResponse } from ".
5
5
  import { getAccountsByProviderRequest, getAccountsByProviderResponse } from "./upi/getaccountsbyprovider";
6
6
  import { getAvailableVPARequest, getAvailableVPAResponse } from "./upi/getavailablevpa";
7
7
  import { getListedAccountProvidersRequest, getListedAccountProvidersResponse } from "./upi/getlistedaccountproviders";
8
+ import { pendingCollectRequest, pendingCollectResponse } from "./upi/getpendingcollectrequest";
8
9
  import { getProfileRequest, getProfileResponse } from "./upi/getprofile";
9
10
  import { initiateTransactionRequest, initiateTransactionResponse } from "./upi/initiatetransaction";
10
11
  import { listBlockedVPARequest, listBlockedVPAResponse } from "./upi/listblockedvpa";
@@ -132,6 +133,15 @@ export declare const upiService: {
132
133
  readonly responseSerialize: (value: validateIFSCResponse) => Buffer;
133
134
  readonly responseDeserialize: (value: Buffer) => validateIFSCResponse;
134
135
  };
136
+ readonly getPendingCollectRequest: {
137
+ readonly path: "/service.upi/getPendingCollectRequest";
138
+ readonly requestStream: false;
139
+ readonly responseStream: false;
140
+ readonly requestSerialize: (value: pendingCollectRequest) => Buffer;
141
+ readonly requestDeserialize: (value: Buffer) => pendingCollectRequest;
142
+ readonly responseSerialize: (value: pendingCollectResponse) => Buffer;
143
+ readonly responseDeserialize: (value: Buffer) => pendingCollectResponse;
144
+ };
135
145
  };
136
146
  export interface upiServer extends UntypedServiceImplementation {
137
147
  getListedAccountProviders: handleUnaryCall<getListedAccountProvidersRequest, getListedAccountProvidersResponse>;
@@ -147,6 +157,7 @@ export interface upiServer extends UntypedServiceImplementation {
147
157
  unblockVpa: handleUnaryCall<unblockVPARequest, unblockVPAResponse>;
148
158
  listBlockedVpa: handleUnaryCall<listBlockedVPARequest, listBlockedVPAResponse>;
149
159
  validateIfsc: handleUnaryCall<validateIFSCRequest, validateIFSCResponse>;
160
+ getPendingCollectRequest: handleUnaryCall<pendingCollectRequest, pendingCollectResponse>;
150
161
  }
151
162
  export interface upiClient extends Client {
152
163
  getListedAccountProviders(request: getListedAccountProvidersRequest, callback: (error: ServiceError | null, response: getListedAccountProvidersResponse) => void): ClientUnaryCall;
@@ -188,6 +199,9 @@ export interface upiClient extends Client {
188
199
  validateIfsc(request: validateIFSCRequest, callback: (error: ServiceError | null, response: validateIFSCResponse) => void): ClientUnaryCall;
189
200
  validateIfsc(request: validateIFSCRequest, metadata: Metadata, callback: (error: ServiceError | null, response: validateIFSCResponse) => void): ClientUnaryCall;
190
201
  validateIfsc(request: validateIFSCRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: validateIFSCResponse) => void): ClientUnaryCall;
202
+ getPendingCollectRequest(request: pendingCollectRequest, callback: (error: ServiceError | null, response: pendingCollectResponse) => void): ClientUnaryCall;
203
+ getPendingCollectRequest(request: pendingCollectRequest, metadata: Metadata, callback: (error: ServiceError | null, response: pendingCollectResponse) => void): ClientUnaryCall;
204
+ getPendingCollectRequest(request: pendingCollectRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: pendingCollectResponse) => void): ClientUnaryCall;
191
205
  }
192
206
  export declare const upiClient: {
193
207
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): upiClient;
package/ts/upi.js CHANGED
@@ -14,6 +14,7 @@ const checktransactionstatus_1 = require("./upi/checktransactionstatus");
14
14
  const getaccountsbyprovider_1 = require("./upi/getaccountsbyprovider");
15
15
  const getavailablevpa_1 = require("./upi/getavailablevpa");
16
16
  const getlistedaccountproviders_1 = require("./upi/getlistedaccountproviders");
17
+ const getpendingcollectrequest_1 = require("./upi/getpendingcollectrequest");
17
18
  const getprofile_1 = require("./upi/getprofile");
18
19
  const initiatetransaction_1 = require("./upi/initiatetransaction");
19
20
  const listblockedvpa_1 = require("./upi/listblockedvpa");
@@ -140,5 +141,14 @@ exports.upiService = {
140
141
  responseSerialize: (value) => Buffer.from(validateifsc_1.validateIFSCResponse.encode(value).finish()),
141
142
  responseDeserialize: (value) => validateifsc_1.validateIFSCResponse.decode(value),
142
143
  },
144
+ getPendingCollectRequest: {
145
+ path: "/service.upi/getPendingCollectRequest",
146
+ requestStream: false,
147
+ responseStream: false,
148
+ requestSerialize: (value) => Buffer.from(getpendingcollectrequest_1.pendingCollectRequest.encode(value).finish()),
149
+ requestDeserialize: (value) => getpendingcollectrequest_1.pendingCollectRequest.decode(value),
150
+ responseSerialize: (value) => Buffer.from(getpendingcollectrequest_1.pendingCollectResponse.encode(value).finish()),
151
+ responseDeserialize: (value) => getpendingcollectrequest_1.pendingCollectResponse.decode(value),
152
+ },
143
153
  };
144
154
  exports.upiClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.upiService, "service.upi");