@stashfin/grpc 1.2.493 → 1.2.495

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.493",
3
+ "version": "1.2.495",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -6,7 +6,7 @@ export interface pendingCollectRequest {
6
6
  profile_id: string;
7
7
  }
8
8
  export interface CollectRequest {
9
- date?: string | undefined;
9
+ date?: number | undefined;
10
10
  note?: string | undefined;
11
11
  amount?: number | undefined;
12
12
  seqNo?: string | undefined;
@@ -21,6 +21,7 @@ export interface CollectRequest {
21
21
  direction?: string | undefined;
22
22
  status?: string | undefined;
23
23
  payeeVerifiedMerchant?: string | undefined;
24
+ payeeType?: string | undefined;
24
25
  }
25
26
  export interface Data {
26
27
  requests: CollectRequest[];
@@ -110,12 +110,13 @@ function createBaseCollectRequest() {
110
110
  direction: undefined,
111
111
  status: undefined,
112
112
  payeeVerifiedMerchant: undefined,
113
+ payeeType: undefined,
113
114
  };
114
115
  }
115
116
  exports.CollectRequest = {
116
117
  encode(message, writer = minimal_1.default.Writer.create()) {
117
118
  if (message.date !== undefined) {
118
- writer.uint32(10).string(message.date);
119
+ writer.uint32(8).int64(message.date);
119
120
  }
120
121
  if (message.note !== undefined) {
121
122
  writer.uint32(18).string(message.note);
@@ -159,6 +160,9 @@ exports.CollectRequest = {
159
160
  if (message.payeeVerifiedMerchant !== undefined) {
160
161
  writer.uint32(130).string(message.payeeVerifiedMerchant);
161
162
  }
163
+ if (message.payeeType !== undefined) {
164
+ writer.uint32(138).string(message.payeeType);
165
+ }
162
166
  return writer;
163
167
  },
164
168
  decode(input, length) {
@@ -169,10 +173,10 @@ exports.CollectRequest = {
169
173
  const tag = reader.uint32();
170
174
  switch (tag >>> 3) {
171
175
  case 1:
172
- if (tag !== 10) {
176
+ if (tag !== 8) {
173
177
  break;
174
178
  }
175
- message.date = reader.string();
179
+ message.date = longToNumber(reader.int64());
176
180
  continue;
177
181
  case 2:
178
182
  if (tag !== 18) {
@@ -258,6 +262,12 @@ exports.CollectRequest = {
258
262
  }
259
263
  message.payeeVerifiedMerchant = reader.string();
260
264
  continue;
265
+ case 17:
266
+ if (tag !== 138) {
267
+ break;
268
+ }
269
+ message.payeeType = reader.string();
270
+ continue;
261
271
  }
262
272
  if ((tag & 7) === 4 || tag === 0) {
263
273
  break;
@@ -268,7 +278,7 @@ exports.CollectRequest = {
268
278
  },
269
279
  fromJSON(object) {
270
280
  return {
271
- date: isSet(object.date) ? globalThis.String(object.date) : undefined,
281
+ date: isSet(object.date) ? globalThis.Number(object.date) : undefined,
272
282
  note: isSet(object.note) ? globalThis.String(object.note) : undefined,
273
283
  amount: isSet(object.amount) ? globalThis.Number(object.amount) : undefined,
274
284
  seqNo: isSet(object.seqNo) ? globalThis.String(object.seqNo) : undefined,
@@ -285,12 +295,13 @@ exports.CollectRequest = {
285
295
  payeeVerifiedMerchant: isSet(object.payeeVerifiedMerchant)
286
296
  ? globalThis.String(object.payeeVerifiedMerchant)
287
297
  : undefined,
298
+ payeeType: isSet(object.payeeType) ? globalThis.String(object.payeeType) : undefined,
288
299
  };
289
300
  },
290
301
  toJSON(message) {
291
302
  const obj = {};
292
303
  if (message.date !== undefined) {
293
- obj.date = message.date;
304
+ obj.date = Math.round(message.date);
294
305
  }
295
306
  if (message.note !== undefined) {
296
307
  obj.note = message.note;
@@ -334,6 +345,9 @@ exports.CollectRequest = {
334
345
  if (message.payeeVerifiedMerchant !== undefined) {
335
346
  obj.payeeVerifiedMerchant = message.payeeVerifiedMerchant;
336
347
  }
348
+ if (message.payeeType !== undefined) {
349
+ obj.payeeType = message.payeeType;
350
+ }
337
351
  return obj;
338
352
  },
339
353
  create(base) {
@@ -356,6 +370,7 @@ exports.CollectRequest = {
356
370
  message.direction = object.direction ?? undefined;
357
371
  message.status = object.status ?? undefined;
358
372
  message.payeeVerifiedMerchant = object.payeeVerifiedMerchant ?? undefined;
373
+ message.payeeType = object.payeeType ?? undefined;
359
374
  return message;
360
375
  },
361
376
  };
@@ -19,6 +19,7 @@ export interface initiateTransactionRequest {
19
19
  mcc?: string | undefined;
20
20
  merchant_type?: string | undefined;
21
21
  payee_account_provider?: string | undefined;
22
+ seq_no?: string | undefined;
22
23
  }
23
24
  export interface initiateTransactionResponse {
24
25
  seq_no: string;
@@ -32,6 +32,7 @@ function createBaseinitiateTransactionRequest() {
32
32
  mcc: undefined,
33
33
  merchant_type: undefined,
34
34
  payee_account_provider: undefined,
35
+ seq_no: undefined,
35
36
  };
36
37
  }
37
38
  exports.initiateTransactionRequest = {
@@ -90,6 +91,9 @@ exports.initiateTransactionRequest = {
90
91
  if (message.payee_account_provider !== undefined) {
91
92
  writer.uint32(146).string(message.payee_account_provider);
92
93
  }
94
+ if (message.seq_no !== undefined) {
95
+ writer.uint32(154).string(message.seq_no);
96
+ }
93
97
  return writer;
94
98
  },
95
99
  decode(input, length) {
@@ -207,6 +211,12 @@ exports.initiateTransactionRequest = {
207
211
  }
208
212
  message.payee_account_provider = reader.string();
209
213
  continue;
214
+ case 19:
215
+ if (tag !== 154) {
216
+ break;
217
+ }
218
+ message.seq_no = reader.string();
219
+ continue;
210
220
  }
211
221
  if ((tag & 7) === 4 || tag === 0) {
212
222
  break;
@@ -239,6 +249,7 @@ exports.initiateTransactionRequest = {
239
249
  payee_account_provider: isSet(object.payee_account_provider)
240
250
  ? globalThis.String(object.payee_account_provider)
241
251
  : undefined,
252
+ seq_no: isSet(object.seq_no) ? globalThis.String(object.seq_no) : undefined,
242
253
  };
243
254
  },
244
255
  toJSON(message) {
@@ -297,6 +308,9 @@ exports.initiateTransactionRequest = {
297
308
  if (message.payee_account_provider !== undefined) {
298
309
  obj.payee_account_provider = message.payee_account_provider;
299
310
  }
311
+ if (message.seq_no !== undefined) {
312
+ obj.seq_no = message.seq_no;
313
+ }
300
314
  return obj;
301
315
  },
302
316
  create(base) {
@@ -322,6 +336,7 @@ exports.initiateTransactionRequest = {
322
336
  message.mcc = object.mcc ?? undefined;
323
337
  message.merchant_type = object.merchant_type ?? undefined;
324
338
  message.payee_account_provider = object.payee_account_provider ?? undefined;
339
+ message.seq_no = object.seq_no ?? undefined;
325
340
  return message;
326
341
  },
327
342
  };