@stashfin/grpc 1.2.242 → 1.2.243

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.242",
3
+ "version": "1.2.243",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,7 +1,7 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "payments.getpaymentoptions";
3
3
  export interface request {
4
- customer_id: string;
4
+ customer_id: number;
5
5
  client_id: string;
6
6
  amount?: number | undefined;
7
7
  }
@@ -9,7 +9,7 @@ export interface response {
9
9
  status: string;
10
10
  status_code: number;
11
11
  client_id: string;
12
- customer_id: string;
12
+ customer_id: number;
13
13
  data?: response_Data | undefined;
14
14
  message?: string | undefined;
15
15
  }
@@ -13,12 +13,12 @@ exports.response_Data = exports.response_Fee_data = exports.response_Fees = expo
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "payments.getpaymentoptions";
15
15
  function createBaserequest() {
16
- return { customer_id: "", client_id: "", amount: undefined };
16
+ return { customer_id: 0, client_id: "", amount: undefined };
17
17
  }
18
18
  exports.request = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.customer_id !== "") {
21
- writer.uint32(10).string(message.customer_id);
20
+ if (message.customer_id !== 0) {
21
+ writer.uint32(8).int32(message.customer_id);
22
22
  }
23
23
  if (message.client_id !== "") {
24
24
  writer.uint32(18).string(message.client_id);
@@ -36,10 +36,10 @@ exports.request = {
36
36
  const tag = reader.uint32();
37
37
  switch (tag >>> 3) {
38
38
  case 1:
39
- if (tag !== 10) {
39
+ if (tag !== 8) {
40
40
  break;
41
41
  }
42
- message.customer_id = reader.string();
42
+ message.customer_id = reader.int32();
43
43
  continue;
44
44
  case 2:
45
45
  if (tag !== 18) {
@@ -63,15 +63,15 @@ exports.request = {
63
63
  },
64
64
  fromJSON(object) {
65
65
  return {
66
- customer_id: isSet(object.customer_id) ? globalThis.String(object.customer_id) : "",
66
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
67
67
  client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
68
68
  amount: isSet(object.amount) ? globalThis.Number(object.amount) : undefined,
69
69
  };
70
70
  },
71
71
  toJSON(message) {
72
72
  const obj = {};
73
- if (message.customer_id !== "") {
74
- obj.customer_id = message.customer_id;
73
+ if (message.customer_id !== 0) {
74
+ obj.customer_id = Math.round(message.customer_id);
75
75
  }
76
76
  if (message.client_id !== "") {
77
77
  obj.client_id = message.client_id;
@@ -86,14 +86,14 @@ exports.request = {
86
86
  },
87
87
  fromPartial(object) {
88
88
  const message = createBaserequest();
89
- message.customer_id = object.customer_id ?? "";
89
+ message.customer_id = object.customer_id ?? 0;
90
90
  message.client_id = object.client_id ?? "";
91
91
  message.amount = object.amount ?? undefined;
92
92
  return message;
93
93
  },
94
94
  };
95
95
  function createBaseresponse() {
96
- return { status: "", status_code: 0, client_id: "", customer_id: "", data: undefined, message: undefined };
96
+ return { status: "", status_code: 0, client_id: "", customer_id: 0, data: undefined, message: undefined };
97
97
  }
98
98
  exports.response = {
99
99
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -106,8 +106,8 @@ exports.response = {
106
106
  if (message.client_id !== "") {
107
107
  writer.uint32(26).string(message.client_id);
108
108
  }
109
- if (message.customer_id !== "") {
110
- writer.uint32(34).string(message.customer_id);
109
+ if (message.customer_id !== 0) {
110
+ writer.uint32(32).int32(message.customer_id);
111
111
  }
112
112
  if (message.data !== undefined) {
113
113
  exports.response_Data.encode(message.data, writer.uint32(42).fork()).ldelim();
@@ -143,10 +143,10 @@ exports.response = {
143
143
  message.client_id = reader.string();
144
144
  continue;
145
145
  case 4:
146
- if (tag !== 34) {
146
+ if (tag !== 32) {
147
147
  break;
148
148
  }
149
- message.customer_id = reader.string();
149
+ message.customer_id = reader.int32();
150
150
  continue;
151
151
  case 5:
152
152
  if (tag !== 42) {
@@ -173,7 +173,7 @@ exports.response = {
173
173
  status: isSet(object.status) ? globalThis.String(object.status) : "",
174
174
  status_code: isSet(object.status_code) ? globalThis.Number(object.status_code) : 0,
175
175
  client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
176
- customer_id: isSet(object.customer_id) ? globalThis.String(object.customer_id) : "",
176
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
177
177
  data: isSet(object.data) ? exports.response_Data.fromJSON(object.data) : undefined,
178
178
  message: isSet(object.message) ? globalThis.String(object.message) : undefined,
179
179
  };
@@ -189,8 +189,8 @@ exports.response = {
189
189
  if (message.client_id !== "") {
190
190
  obj.client_id = message.client_id;
191
191
  }
192
- if (message.customer_id !== "") {
193
- obj.customer_id = message.customer_id;
192
+ if (message.customer_id !== 0) {
193
+ obj.customer_id = Math.round(message.customer_id);
194
194
  }
195
195
  if (message.data !== undefined) {
196
196
  obj.data = exports.response_Data.toJSON(message.data);
@@ -208,7 +208,7 @@ exports.response = {
208
208
  message.status = object.status ?? "";
209
209
  message.status_code = object.status_code ?? 0;
210
210
  message.client_id = object.client_id ?? "";
211
- message.customer_id = object.customer_id ?? "";
211
+ message.customer_id = object.customer_id ?? 0;
212
212
  message.data = (object.data !== undefined && object.data !== null)
213
213
  ? exports.response_Data.fromPartial(object.data)
214
214
  : undefined;