@stashfin/grpc 1.2.639 → 1.2.641

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.639",
3
+ "version": "1.2.641",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -9,7 +9,7 @@ export interface GetLocConfirmRequest {
9
9
  is_fcp: boolean;
10
10
  txn_id: string;
11
11
  max_amount: number;
12
- gateway_fees: number;
12
+ gateway_fees?: number | undefined;
13
13
  plan_id: number;
14
14
  gateway_type: string;
15
15
  }
@@ -22,7 +22,7 @@ function createBaseGetLocConfirmRequest() {
22
22
  is_fcp: false,
23
23
  txn_id: "",
24
24
  max_amount: 0,
25
- gateway_fees: 0,
25
+ gateway_fees: undefined,
26
26
  plan_id: 0,
27
27
  gateway_type: "",
28
28
  };
@@ -30,7 +30,7 @@ function createBaseGetLocConfirmRequest() {
30
30
  exports.GetLocConfirmRequest = {
31
31
  encode(message, writer = minimal_1.default.Writer.create()) {
32
32
  if (message.amount !== 0) {
33
- writer.uint32(9).double(message.amount);
33
+ writer.uint32(8).int32(message.amount);
34
34
  }
35
35
  if (message.tenure !== 0) {
36
36
  writer.uint32(16).int32(message.tenure);
@@ -53,7 +53,7 @@ exports.GetLocConfirmRequest = {
53
53
  if (message.max_amount !== 0) {
54
54
  writer.uint32(65).double(message.max_amount);
55
55
  }
56
- if (message.gateway_fees !== 0) {
56
+ if (message.gateway_fees !== undefined) {
57
57
  writer.uint32(73).double(message.gateway_fees);
58
58
  }
59
59
  if (message.plan_id !== 0) {
@@ -72,10 +72,10 @@ exports.GetLocConfirmRequest = {
72
72
  const tag = reader.uint32();
73
73
  switch (tag >>> 3) {
74
74
  case 1:
75
- if (tag !== 9) {
75
+ if (tag !== 8) {
76
76
  break;
77
77
  }
78
- message.amount = reader.double();
78
+ message.amount = reader.int32();
79
79
  continue;
80
80
  case 2:
81
81
  if (tag !== 16) {
@@ -155,7 +155,7 @@ exports.GetLocConfirmRequest = {
155
155
  is_fcp: isSet(object.is_fcp) ? globalThis.Boolean(object.is_fcp) : false,
156
156
  txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
157
157
  max_amount: isSet(object.max_amount) ? globalThis.Number(object.max_amount) : 0,
158
- gateway_fees: isSet(object.gateway_fees) ? globalThis.Number(object.gateway_fees) : 0,
158
+ gateway_fees: isSet(object.gateway_fees) ? globalThis.Number(object.gateway_fees) : undefined,
159
159
  plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
160
160
  gateway_type: isSet(object.gateway_type) ? globalThis.String(object.gateway_type) : "",
161
161
  };
@@ -163,7 +163,7 @@ exports.GetLocConfirmRequest = {
163
163
  toJSON(message) {
164
164
  const obj = {};
165
165
  if (message.amount !== 0) {
166
- obj.amount = message.amount;
166
+ obj.amount = Math.round(message.amount);
167
167
  }
168
168
  if (message.tenure !== 0) {
169
169
  obj.tenure = Math.round(message.tenure);
@@ -186,7 +186,7 @@ exports.GetLocConfirmRequest = {
186
186
  if (message.max_amount !== 0) {
187
187
  obj.max_amount = message.max_amount;
188
188
  }
189
- if (message.gateway_fees !== 0) {
189
+ if (message.gateway_fees !== undefined) {
190
190
  obj.gateway_fees = message.gateway_fees;
191
191
  }
192
192
  if (message.plan_id !== 0) {
@@ -210,7 +210,7 @@ exports.GetLocConfirmRequest = {
210
210
  message.is_fcp = object.is_fcp ?? false;
211
211
  message.txn_id = object.txn_id ?? "";
212
212
  message.max_amount = object.max_amount ?? 0;
213
- message.gateway_fees = object.gateway_fees ?? 0;
213
+ message.gateway_fees = object.gateway_fees ?? undefined;
214
214
  message.plan_id = object.plan_id ?? 0;
215
215
  message.gateway_type = object.gateway_type ?? "";
216
216
  return message;