@stashfin/grpc 1.2.249 → 1.2.251

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.249",
3
+ "version": "1.2.251",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -16,6 +16,7 @@ export interface response {
16
16
  export interface response_Data {
17
17
  gateway: string;
18
18
  amount: number;
19
+ service_fee: number;
19
20
  other_fees: number;
20
21
  total_amount: number;
21
22
  modes: string[];
@@ -215,7 +215,7 @@ exports.response = {
215
215
  },
216
216
  };
217
217
  function createBaseresponse_Data() {
218
- return { gateway: "", amount: 0, other_fees: 0, total_amount: 0, modes: [] };
218
+ return { gateway: "", amount: 0, service_fee: 0, other_fees: 0, total_amount: 0, modes: [] };
219
219
  }
220
220
  exports.response_Data = {
221
221
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -225,14 +225,17 @@ exports.response_Data = {
225
225
  if (message.amount !== 0) {
226
226
  writer.uint32(17).double(message.amount);
227
227
  }
228
+ if (message.service_fee !== 0) {
229
+ writer.uint32(25).double(message.service_fee);
230
+ }
228
231
  if (message.other_fees !== 0) {
229
- writer.uint32(25).double(message.other_fees);
232
+ writer.uint32(33).double(message.other_fees);
230
233
  }
231
234
  if (message.total_amount !== 0) {
232
- writer.uint32(33).double(message.total_amount);
235
+ writer.uint32(41).double(message.total_amount);
233
236
  }
234
237
  for (const v of message.modes) {
235
- writer.uint32(42).string(v);
238
+ writer.uint32(50).string(v);
236
239
  }
237
240
  return writer;
238
241
  },
@@ -259,16 +262,22 @@ exports.response_Data = {
259
262
  if (tag !== 25) {
260
263
  break;
261
264
  }
262
- message.other_fees = reader.double();
265
+ message.service_fee = reader.double();
263
266
  continue;
264
267
  case 4:
265
268
  if (tag !== 33) {
266
269
  break;
267
270
  }
268
- message.total_amount = reader.double();
271
+ message.other_fees = reader.double();
269
272
  continue;
270
273
  case 5:
271
- if (tag !== 42) {
274
+ if (tag !== 41) {
275
+ break;
276
+ }
277
+ message.total_amount = reader.double();
278
+ continue;
279
+ case 6:
280
+ if (tag !== 50) {
272
281
  break;
273
282
  }
274
283
  message.modes.push(reader.string());
@@ -285,6 +294,7 @@ exports.response_Data = {
285
294
  return {
286
295
  gateway: isSet(object.gateway) ? globalThis.String(object.gateway) : "",
287
296
  amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
297
+ service_fee: isSet(object.service_fee) ? globalThis.Number(object.service_fee) : 0,
288
298
  other_fees: isSet(object.other_fees) ? globalThis.Number(object.other_fees) : 0,
289
299
  total_amount: isSet(object.total_amount) ? globalThis.Number(object.total_amount) : 0,
290
300
  modes: globalThis.Array.isArray(object?.modes) ? object.modes.map((e) => globalThis.String(e)) : [],
@@ -298,6 +308,9 @@ exports.response_Data = {
298
308
  if (message.amount !== 0) {
299
309
  obj.amount = message.amount;
300
310
  }
311
+ if (message.service_fee !== 0) {
312
+ obj.service_fee = message.service_fee;
313
+ }
301
314
  if (message.other_fees !== 0) {
302
315
  obj.other_fees = message.other_fees;
303
316
  }
@@ -316,6 +329,7 @@ exports.response_Data = {
316
329
  const message = createBaseresponse_Data();
317
330
  message.gateway = object.gateway ?? "";
318
331
  message.amount = object.amount ?? 0;
332
+ message.service_fee = object.service_fee ?? 0;
319
333
  message.other_fees = object.other_fees ?? 0;
320
334
  message.total_amount = object.total_amount ?? 0;
321
335
  message.modes = object.modes?.map((e) => e) || [];