@stashfin/grpc 1.2.533 → 1.2.536

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.533",
3
+ "version": "1.2.536",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -5,6 +5,7 @@ export interface checkTransactionStatusRequest {
5
5
  mobile: string;
6
6
  ext_txn_id: string;
7
7
  profile_id: string;
8
+ umn?: string | undefined;
8
9
  }
9
10
  export interface checkTransactionStatusResponse {
10
11
  txn_status: string;
@@ -24,6 +25,10 @@ export interface checkTransactionStatusResponse {
24
25
  payee_ifsc?: string | undefined;
25
26
  lite_lrn?: string | undefined;
26
27
  txn_type?: string | undefined;
28
+ payement_frequency?: string | undefined;
29
+ umn?: string | undefined;
30
+ start_date?: string | undefined;
31
+ end_date?: string | undefined;
27
32
  }
28
33
  export declare const checkTransactionStatusRequest: {
29
34
  encode(message: checkTransactionStatusRequest, writer?: _m0.Writer): _m0.Writer;
@@ -13,7 +13,7 @@ exports.checkTransactionStatusResponse = exports.checkTransactionStatusRequest =
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "upi.checkTransactionStatus";
15
15
  function createBasecheckTransactionStatusRequest() {
16
- return { device_id: "", mobile: "", ext_txn_id: "", profile_id: "" };
16
+ return { device_id: "", mobile: "", ext_txn_id: "", profile_id: "", umn: undefined };
17
17
  }
18
18
  exports.checkTransactionStatusRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -29,6 +29,9 @@ exports.checkTransactionStatusRequest = {
29
29
  if (message.profile_id !== "") {
30
30
  writer.uint32(34).string(message.profile_id);
31
31
  }
32
+ if (message.umn !== undefined) {
33
+ writer.uint32(42).string(message.umn);
34
+ }
32
35
  return writer;
33
36
  },
34
37
  decode(input, length) {
@@ -62,6 +65,12 @@ exports.checkTransactionStatusRequest = {
62
65
  }
63
66
  message.profile_id = reader.string();
64
67
  continue;
68
+ case 5:
69
+ if (tag !== 42) {
70
+ break;
71
+ }
72
+ message.umn = reader.string();
73
+ continue;
65
74
  }
66
75
  if ((tag & 7) === 4 || tag === 0) {
67
76
  break;
@@ -76,6 +85,7 @@ exports.checkTransactionStatusRequest = {
76
85
  mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
77
86
  ext_txn_id: isSet(object.ext_txn_id) ? globalThis.String(object.ext_txn_id) : "",
78
87
  profile_id: isSet(object.profile_id) ? globalThis.String(object.profile_id) : "",
88
+ umn: isSet(object.umn) ? globalThis.String(object.umn) : undefined,
79
89
  };
80
90
  },
81
91
  toJSON(message) {
@@ -92,6 +102,9 @@ exports.checkTransactionStatusRequest = {
92
102
  if (message.profile_id !== "") {
93
103
  obj.profile_id = message.profile_id;
94
104
  }
105
+ if (message.umn !== undefined) {
106
+ obj.umn = message.umn;
107
+ }
95
108
  return obj;
96
109
  },
97
110
  create(base) {
@@ -103,6 +116,7 @@ exports.checkTransactionStatusRequest = {
103
116
  message.mobile = object.mobile ?? "";
104
117
  message.ext_txn_id = object.ext_txn_id ?? "";
105
118
  message.profile_id = object.profile_id ?? "";
119
+ message.umn = object.umn ?? undefined;
106
120
  return message;
107
121
  },
108
122
  };
@@ -125,6 +139,10 @@ function createBasecheckTransactionStatusResponse() {
125
139
  payee_ifsc: undefined,
126
140
  lite_lrn: undefined,
127
141
  txn_type: undefined,
142
+ payement_frequency: undefined,
143
+ umn: undefined,
144
+ start_date: undefined,
145
+ end_date: undefined,
128
146
  };
129
147
  }
130
148
  exports.checkTransactionStatusResponse = {
@@ -180,6 +198,18 @@ exports.checkTransactionStatusResponse = {
180
198
  if (message.txn_type !== undefined) {
181
199
  writer.uint32(138).string(message.txn_type);
182
200
  }
201
+ if (message.payement_frequency !== undefined) {
202
+ writer.uint32(146).string(message.payement_frequency);
203
+ }
204
+ if (message.umn !== undefined) {
205
+ writer.uint32(154).string(message.umn);
206
+ }
207
+ if (message.start_date !== undefined) {
208
+ writer.uint32(162).string(message.start_date);
209
+ }
210
+ if (message.end_date !== undefined) {
211
+ writer.uint32(170).string(message.end_date);
212
+ }
183
213
  return writer;
184
214
  },
185
215
  decode(input, length) {
@@ -291,6 +321,30 @@ exports.checkTransactionStatusResponse = {
291
321
  }
292
322
  message.txn_type = reader.string();
293
323
  continue;
324
+ case 18:
325
+ if (tag !== 146) {
326
+ break;
327
+ }
328
+ message.payement_frequency = reader.string();
329
+ continue;
330
+ case 19:
331
+ if (tag !== 154) {
332
+ break;
333
+ }
334
+ message.umn = reader.string();
335
+ continue;
336
+ case 20:
337
+ if (tag !== 162) {
338
+ break;
339
+ }
340
+ message.start_date = reader.string();
341
+ continue;
342
+ case 21:
343
+ if (tag !== 170) {
344
+ break;
345
+ }
346
+ message.end_date = reader.string();
347
+ continue;
294
348
  }
295
349
  if ((tag & 7) === 4 || tag === 0) {
296
350
  break;
@@ -326,6 +380,10 @@ exports.checkTransactionStatusResponse = {
326
380
  payee_ifsc: isSet(object.payee_ifsc) ? globalThis.String(object.payee_ifsc) : undefined,
327
381
  lite_lrn: isSet(object.lite_lrn) ? globalThis.String(object.lite_lrn) : undefined,
328
382
  txn_type: isSet(object.txn_type) ? globalThis.String(object.txn_type) : undefined,
383
+ payement_frequency: isSet(object.payement_frequency) ? globalThis.String(object.payement_frequency) : undefined,
384
+ umn: isSet(object.umn) ? globalThis.String(object.umn) : undefined,
385
+ start_date: isSet(object.start_date) ? globalThis.String(object.start_date) : undefined,
386
+ end_date: isSet(object.end_date) ? globalThis.String(object.end_date) : undefined,
329
387
  };
330
388
  },
331
389
  toJSON(message) {
@@ -381,6 +439,18 @@ exports.checkTransactionStatusResponse = {
381
439
  if (message.txn_type !== undefined) {
382
440
  obj.txn_type = message.txn_type;
383
441
  }
442
+ if (message.payement_frequency !== undefined) {
443
+ obj.payement_frequency = message.payement_frequency;
444
+ }
445
+ if (message.umn !== undefined) {
446
+ obj.umn = message.umn;
447
+ }
448
+ if (message.start_date !== undefined) {
449
+ obj.start_date = message.start_date;
450
+ }
451
+ if (message.end_date !== undefined) {
452
+ obj.end_date = message.end_date;
453
+ }
384
454
  return obj;
385
455
  },
386
456
  create(base) {
@@ -405,6 +475,10 @@ exports.checkTransactionStatusResponse = {
405
475
  message.payee_ifsc = object.payee_ifsc ?? undefined;
406
476
  message.lite_lrn = object.lite_lrn ?? undefined;
407
477
  message.txn_type = object.txn_type ?? undefined;
478
+ message.payement_frequency = object.payement_frequency ?? undefined;
479
+ message.umn = object.umn ?? undefined;
480
+ message.start_date = object.start_date ?? undefined;
481
+ message.end_date = object.end_date ?? undefined;
408
482
  return message;
409
483
  },
410
484
  };
package/ts/upi.d.ts CHANGED
@@ -222,6 +222,15 @@ export declare const upiService: {
222
222
  readonly responseSerialize: (value: initiateMandateActionResponse) => Buffer;
223
223
  readonly responseDeserialize: (value: Buffer) => initiateMandateActionResponse;
224
224
  };
225
+ readonly checkMandateStatus: {
226
+ readonly path: "/service.upi/checkMandateStatus";
227
+ readonly requestStream: false;
228
+ readonly responseStream: false;
229
+ readonly requestSerialize: (value: checkTransactionStatusRequest) => Buffer;
230
+ readonly requestDeserialize: (value: Buffer) => checkTransactionStatusRequest;
231
+ readonly responseSerialize: (value: checkTransactionStatusResponse) => Buffer;
232
+ readonly responseDeserialize: (value: Buffer) => checkTransactionStatusResponse;
233
+ };
225
234
  };
226
235
  export interface upiServer extends UntypedServiceImplementation {
227
236
  getListedAccountProviders: handleUnaryCall<getListedAccountProvidersRequest, getListedAccountProvidersResponse>;
@@ -246,6 +255,7 @@ export interface upiServer extends UntypedServiceImplementation {
246
255
  getMandateDetails: handleUnaryCall<getMandatesDetailsRequest, getMandateDetailsReponse>;
247
256
  getUpiNumbers: handleUnaryCall<getUpiNumbersRequest, getUpiNumbersResponse>;
248
257
  initiateMandateAction: handleUnaryCall<initiateMandateActionRequest, initiateMandateActionResponse>;
258
+ checkMandateStatus: handleUnaryCall<checkTransactionStatusRequest, checkTransactionStatusResponse>;
249
259
  }
250
260
  export interface upiClient extends Client {
251
261
  getListedAccountProviders(request: getListedAccountProvidersRequest, callback: (error: ServiceError | null, response: getListedAccountProvidersResponse) => void): ClientUnaryCall;
@@ -314,6 +324,9 @@ export interface upiClient extends Client {
314
324
  initiateMandateAction(request: initiateMandateActionRequest, callback: (error: ServiceError | null, response: initiateMandateActionResponse) => void): ClientUnaryCall;
315
325
  initiateMandateAction(request: initiateMandateActionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: initiateMandateActionResponse) => void): ClientUnaryCall;
316
326
  initiateMandateAction(request: initiateMandateActionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: initiateMandateActionResponse) => void): ClientUnaryCall;
327
+ checkMandateStatus(request: checkTransactionStatusRequest, callback: (error: ServiceError | null, response: checkTransactionStatusResponse) => void): ClientUnaryCall;
328
+ checkMandateStatus(request: checkTransactionStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: checkTransactionStatusResponse) => void): ClientUnaryCall;
329
+ checkMandateStatus(request: checkTransactionStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: checkTransactionStatusResponse) => void): ClientUnaryCall;
317
330
  }
318
331
  export declare const upiClient: {
319
332
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): upiClient;
package/ts/upi.js CHANGED
@@ -230,5 +230,14 @@ exports.upiService = {
230
230
  responseSerialize: (value) => Buffer.from(initiatemandateaction_1.initiateMandateActionResponse.encode(value).finish()),
231
231
  responseDeserialize: (value) => initiatemandateaction_1.initiateMandateActionResponse.decode(value),
232
232
  },
233
+ checkMandateStatus: {
234
+ path: "/service.upi/checkMandateStatus",
235
+ requestStream: false,
236
+ responseStream: false,
237
+ requestSerialize: (value) => Buffer.from(checktransactionstatus_1.checkTransactionStatusRequest.encode(value).finish()),
238
+ requestDeserialize: (value) => checktransactionstatus_1.checkTransactionStatusRequest.decode(value),
239
+ responseSerialize: (value) => Buffer.from(checktransactionstatus_1.checkTransactionStatusResponse.encode(value).finish()),
240
+ responseDeserialize: (value) => checktransactionstatus_1.checkTransactionStatusResponse.decode(value),
241
+ },
233
242
  };
234
243
  exports.upiClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.upiService, "service.upi");