@stashfin/grpc 1.2.472 → 1.2.474

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.472",
3
+ "version": "1.2.474",
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
  },
@@ -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
  };
@@ -4,28 +4,28 @@ export interface validateIFSCRequest {
4
4
  ifsc: string;
5
5
  }
6
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;
7
+ MICR?: string | undefined;
8
+ BRANCH?: string | undefined;
9
+ ADDRESS?: string | undefined;
10
+ STATE?: string | undefined;
11
+ CONTACT?: string | undefined;
12
+ UPI?: boolean | undefined;
13
+ RTGS?: boolean | undefined;
14
+ CITY?: string | undefined;
15
+ CENTRE?: string | undefined;
16
+ DISTRICT?: string | undefined;
17
+ NEFT?: boolean | undefined;
18
+ IMPS?: boolean | undefined;
19
+ SWIFT?: string | undefined;
20
+ ISO3166?: string | undefined;
21
+ BANK?: string | undefined;
22
+ BANKCODE?: string | undefined;
23
+ IFSC?: string | undefined;
24
24
  }
25
25
  export interface validateIFSCResponse {
26
26
  status: string;
27
27
  message: string;
28
- data: BankData | undefined;
28
+ data?: BankData | undefined;
29
29
  }
30
30
  export declare const validateIFSCRequest: {
31
31
  encode(message: validateIFSCRequest, writer?: _m0.Writer): _m0.Writer;
@@ -64,76 +64,76 @@ exports.validateIFSCRequest = {
64
64
  };
65
65
  function createBaseBankData() {
66
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: "",
67
+ MICR: undefined,
68
+ BRANCH: undefined,
69
+ ADDRESS: undefined,
70
+ STATE: undefined,
71
+ CONTACT: undefined,
72
+ UPI: undefined,
73
+ RTGS: undefined,
74
+ CITY: undefined,
75
+ CENTRE: undefined,
76
+ DISTRICT: undefined,
77
+ NEFT: undefined,
78
+ IMPS: undefined,
79
+ SWIFT: undefined,
80
+ ISO3166: undefined,
81
+ BANK: undefined,
82
+ BANKCODE: undefined,
83
+ IFSC: undefined,
84
84
  };
85
85
  }
86
86
  exports.BankData = {
87
87
  encode(message, writer = minimal_1.default.Writer.create()) {
88
- if (message.MICR !== "") {
88
+ if (message.MICR !== undefined) {
89
89
  writer.uint32(10).string(message.MICR);
90
90
  }
91
- if (message.BRANCH !== "") {
91
+ if (message.BRANCH !== undefined) {
92
92
  writer.uint32(18).string(message.BRANCH);
93
93
  }
94
- if (message.ADDRESS !== "") {
94
+ if (message.ADDRESS !== undefined) {
95
95
  writer.uint32(26).string(message.ADDRESS);
96
96
  }
97
- if (message.STATE !== "") {
97
+ if (message.STATE !== undefined) {
98
98
  writer.uint32(34).string(message.STATE);
99
99
  }
100
- if (message.CONTACT !== "") {
100
+ if (message.CONTACT !== undefined) {
101
101
  writer.uint32(42).string(message.CONTACT);
102
102
  }
103
- if (message.UPI !== false) {
103
+ if (message.UPI !== undefined) {
104
104
  writer.uint32(48).bool(message.UPI);
105
105
  }
106
- if (message.RTGS !== false) {
106
+ if (message.RTGS !== undefined) {
107
107
  writer.uint32(56).bool(message.RTGS);
108
108
  }
109
- if (message.CITY !== "") {
109
+ if (message.CITY !== undefined) {
110
110
  writer.uint32(66).string(message.CITY);
111
111
  }
112
- if (message.CENTRE !== "") {
112
+ if (message.CENTRE !== undefined) {
113
113
  writer.uint32(74).string(message.CENTRE);
114
114
  }
115
- if (message.DISTRICT !== "") {
115
+ if (message.DISTRICT !== undefined) {
116
116
  writer.uint32(82).string(message.DISTRICT);
117
117
  }
118
- if (message.NEFT !== false) {
118
+ if (message.NEFT !== undefined) {
119
119
  writer.uint32(88).bool(message.NEFT);
120
120
  }
121
- if (message.IMPS !== false) {
121
+ if (message.IMPS !== undefined) {
122
122
  writer.uint32(96).bool(message.IMPS);
123
123
  }
124
- if (message.SWIFT !== "") {
124
+ if (message.SWIFT !== undefined) {
125
125
  writer.uint32(106).string(message.SWIFT);
126
126
  }
127
- if (message.ISO3166 !== "") {
127
+ if (message.ISO3166 !== undefined) {
128
128
  writer.uint32(114).string(message.ISO3166);
129
129
  }
130
- if (message.BANK !== "") {
130
+ if (message.BANK !== undefined) {
131
131
  writer.uint32(122).string(message.BANK);
132
132
  }
133
- if (message.BANKCODE !== "") {
133
+ if (message.BANKCODE !== undefined) {
134
134
  writer.uint32(130).string(message.BANKCODE);
135
135
  }
136
- if (message.IFSC !== "") {
136
+ if (message.IFSC !== undefined) {
137
137
  writer.uint32(138).string(message.IFSC);
138
138
  }
139
139
  return writer;
@@ -257,76 +257,76 @@ exports.BankData = {
257
257
  },
258
258
  fromJSON(object) {
259
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) : "",
260
+ MICR: isSet(object.MICR) ? globalThis.String(object.MICR) : undefined,
261
+ BRANCH: isSet(object.BRANCH) ? globalThis.String(object.BRANCH) : undefined,
262
+ ADDRESS: isSet(object.ADDRESS) ? globalThis.String(object.ADDRESS) : undefined,
263
+ STATE: isSet(object.STATE) ? globalThis.String(object.STATE) : undefined,
264
+ CONTACT: isSet(object.CONTACT) ? globalThis.String(object.CONTACT) : undefined,
265
+ UPI: isSet(object.UPI) ? globalThis.Boolean(object.UPI) : undefined,
266
+ RTGS: isSet(object.RTGS) ? globalThis.Boolean(object.RTGS) : undefined,
267
+ CITY: isSet(object.CITY) ? globalThis.String(object.CITY) : undefined,
268
+ CENTRE: isSet(object.CENTRE) ? globalThis.String(object.CENTRE) : undefined,
269
+ DISTRICT: isSet(object.DISTRICT) ? globalThis.String(object.DISTRICT) : undefined,
270
+ NEFT: isSet(object.NEFT) ? globalThis.Boolean(object.NEFT) : undefined,
271
+ IMPS: isSet(object.IMPS) ? globalThis.Boolean(object.IMPS) : undefined,
272
+ SWIFT: isSet(object.SWIFT) ? globalThis.String(object.SWIFT) : undefined,
273
+ ISO3166: isSet(object.ISO3166) ? globalThis.String(object.ISO3166) : undefined,
274
+ BANK: isSet(object.BANK) ? globalThis.String(object.BANK) : undefined,
275
+ BANKCODE: isSet(object.BANKCODE) ? globalThis.String(object.BANKCODE) : undefined,
276
+ IFSC: isSet(object.IFSC) ? globalThis.String(object.IFSC) : undefined,
277
277
  };
278
278
  },
279
279
  toJSON(message) {
280
280
  const obj = {};
281
- if (message.MICR !== "") {
281
+ if (message.MICR !== undefined) {
282
282
  obj.MICR = message.MICR;
283
283
  }
284
- if (message.BRANCH !== "") {
284
+ if (message.BRANCH !== undefined) {
285
285
  obj.BRANCH = message.BRANCH;
286
286
  }
287
- if (message.ADDRESS !== "") {
287
+ if (message.ADDRESS !== undefined) {
288
288
  obj.ADDRESS = message.ADDRESS;
289
289
  }
290
- if (message.STATE !== "") {
290
+ if (message.STATE !== undefined) {
291
291
  obj.STATE = message.STATE;
292
292
  }
293
- if (message.CONTACT !== "") {
293
+ if (message.CONTACT !== undefined) {
294
294
  obj.CONTACT = message.CONTACT;
295
295
  }
296
- if (message.UPI !== false) {
296
+ if (message.UPI !== undefined) {
297
297
  obj.UPI = message.UPI;
298
298
  }
299
- if (message.RTGS !== false) {
299
+ if (message.RTGS !== undefined) {
300
300
  obj.RTGS = message.RTGS;
301
301
  }
302
- if (message.CITY !== "") {
302
+ if (message.CITY !== undefined) {
303
303
  obj.CITY = message.CITY;
304
304
  }
305
- if (message.CENTRE !== "") {
305
+ if (message.CENTRE !== undefined) {
306
306
  obj.CENTRE = message.CENTRE;
307
307
  }
308
- if (message.DISTRICT !== "") {
308
+ if (message.DISTRICT !== undefined) {
309
309
  obj.DISTRICT = message.DISTRICT;
310
310
  }
311
- if (message.NEFT !== false) {
311
+ if (message.NEFT !== undefined) {
312
312
  obj.NEFT = message.NEFT;
313
313
  }
314
- if (message.IMPS !== false) {
314
+ if (message.IMPS !== undefined) {
315
315
  obj.IMPS = message.IMPS;
316
316
  }
317
- if (message.SWIFT !== "") {
317
+ if (message.SWIFT !== undefined) {
318
318
  obj.SWIFT = message.SWIFT;
319
319
  }
320
- if (message.ISO3166 !== "") {
320
+ if (message.ISO3166 !== undefined) {
321
321
  obj.ISO3166 = message.ISO3166;
322
322
  }
323
- if (message.BANK !== "") {
323
+ if (message.BANK !== undefined) {
324
324
  obj.BANK = message.BANK;
325
325
  }
326
- if (message.BANKCODE !== "") {
326
+ if (message.BANKCODE !== undefined) {
327
327
  obj.BANKCODE = message.BANKCODE;
328
328
  }
329
- if (message.IFSC !== "") {
329
+ if (message.IFSC !== undefined) {
330
330
  obj.IFSC = message.IFSC;
331
331
  }
332
332
  return obj;
@@ -336,23 +336,23 @@ exports.BankData = {
336
336
  },
337
337
  fromPartial(object) {
338
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 ?? "";
339
+ message.MICR = object.MICR ?? undefined;
340
+ message.BRANCH = object.BRANCH ?? undefined;
341
+ message.ADDRESS = object.ADDRESS ?? undefined;
342
+ message.STATE = object.STATE ?? undefined;
343
+ message.CONTACT = object.CONTACT ?? undefined;
344
+ message.UPI = object.UPI ?? undefined;
345
+ message.RTGS = object.RTGS ?? undefined;
346
+ message.CITY = object.CITY ?? undefined;
347
+ message.CENTRE = object.CENTRE ?? undefined;
348
+ message.DISTRICT = object.DISTRICT ?? undefined;
349
+ message.NEFT = object.NEFT ?? undefined;
350
+ message.IMPS = object.IMPS ?? undefined;
351
+ message.SWIFT = object.SWIFT ?? undefined;
352
+ message.ISO3166 = object.ISO3166 ?? undefined;
353
+ message.BANK = object.BANK ?? undefined;
354
+ message.BANKCODE = object.BANKCODE ?? undefined;
355
+ message.IFSC = object.IFSC ?? undefined;
356
356
  return message;
357
357
  },
358
358
  };