@stashfin/grpc 1.2.466 → 1.2.468

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.466",
3
+ "version": "1.2.468",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,7 +1,6 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "eqxcustomers.getcustomerbyid";
3
3
  export interface getCustomerByIdRequest {
4
- id: number;
5
4
  }
6
5
  export interface getCustomerByIdResponse {
7
6
  id: number;
@@ -16,12 +15,12 @@ export interface getCustomerByIdResponse {
16
15
  refferal_code?: string | undefined;
17
16
  }
18
17
  export declare const getCustomerByIdRequest: {
19
- encode(message: getCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
18
+ encode(_: getCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
20
19
  decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerByIdRequest;
21
- fromJSON(object: any): getCustomerByIdRequest;
22
- toJSON(message: getCustomerByIdRequest): unknown;
20
+ fromJSON(_: any): getCustomerByIdRequest;
21
+ toJSON(_: getCustomerByIdRequest): unknown;
23
22
  create<I extends Exact<DeepPartial<getCustomerByIdRequest>, I>>(base?: I): getCustomerByIdRequest;
24
- fromPartial<I extends Exact<DeepPartial<getCustomerByIdRequest>, I>>(object: I): getCustomerByIdRequest;
23
+ fromPartial<I extends Exact<DeepPartial<getCustomerByIdRequest>, I>>(_: I): getCustomerByIdRequest;
25
24
  };
26
25
  export declare const getCustomerByIdResponse: {
27
26
  encode(message: getCustomerByIdResponse, writer?: _m0.Writer): _m0.Writer;
@@ -13,13 +13,10 @@ exports.getCustomerByIdResponse = exports.getCustomerByIdRequest = exports.proto
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "eqxcustomers.getcustomerbyid";
15
15
  function createBasegetCustomerByIdRequest() {
16
- return { id: 0 };
16
+ return {};
17
17
  }
18
18
  exports.getCustomerByIdRequest = {
19
- encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.id !== 0) {
21
- writer.uint32(8).int32(message.id);
22
- }
19
+ encode(_, writer = minimal_1.default.Writer.create()) {
23
20
  return writer;
24
21
  },
25
22
  decode(input, length) {
@@ -29,12 +26,6 @@ exports.getCustomerByIdRequest = {
29
26
  while (reader.pos < end) {
30
27
  const tag = reader.uint32();
31
28
  switch (tag >>> 3) {
32
- case 1:
33
- if (tag !== 8) {
34
- break;
35
- }
36
- message.id = reader.int32();
37
- continue;
38
29
  }
39
30
  if ((tag & 7) === 4 || tag === 0) {
40
31
  break;
@@ -43,22 +34,18 @@ exports.getCustomerByIdRequest = {
43
34
  }
44
35
  return message;
45
36
  },
46
- fromJSON(object) {
47
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
37
+ fromJSON(_) {
38
+ return {};
48
39
  },
49
- toJSON(message) {
40
+ toJSON(_) {
50
41
  const obj = {};
51
- if (message.id !== 0) {
52
- obj.id = Math.round(message.id);
53
- }
54
42
  return obj;
55
43
  },
56
44
  create(base) {
57
45
  return exports.getCustomerByIdRequest.fromPartial(base ?? {});
58
46
  },
59
- fromPartial(object) {
47
+ fromPartial(_) {
60
48
  const message = createBasegetCustomerByIdRequest();
61
- message.id = object.id ?? 0;
62
49
  return message;
63
50
  },
64
51
  };
@@ -15,6 +15,7 @@ export interface addAccountRequest {
15
15
  status: string;
16
16
  is_primary?: string | undefined;
17
17
  is_active?: string | undefined;
18
+ profile_id: string;
18
19
  }
19
20
  export interface addAccountResponse {
20
21
  acc_number: string;
@@ -28,6 +28,7 @@ function createBaseaddAccountRequest() {
28
28
  status: "",
29
29
  is_primary: undefined,
30
30
  is_active: undefined,
31
+ profile_id: "",
31
32
  };
32
33
  }
33
34
  exports.addAccountRequest = {
@@ -74,6 +75,9 @@ exports.addAccountRequest = {
74
75
  if (message.is_active !== undefined) {
75
76
  writer.uint32(114).string(message.is_active);
76
77
  }
78
+ if (message.profile_id !== "") {
79
+ writer.uint32(122).string(message.profile_id);
80
+ }
77
81
  return writer;
78
82
  },
79
83
  decode(input, length) {
@@ -167,6 +171,12 @@ exports.addAccountRequest = {
167
171
  }
168
172
  message.is_active = reader.string();
169
173
  continue;
174
+ case 15:
175
+ if (tag !== 122) {
176
+ break;
177
+ }
178
+ message.profile_id = reader.string();
179
+ continue;
170
180
  }
171
181
  if ((tag & 7) === 4 || tag === 0) {
172
182
  break;
@@ -191,6 +201,7 @@ exports.addAccountRequest = {
191
201
  status: isSet(object.status) ? globalThis.String(object.status) : "",
192
202
  is_primary: isSet(object.is_primary) ? globalThis.String(object.is_primary) : undefined,
193
203
  is_active: isSet(object.is_active) ? globalThis.String(object.is_active) : undefined,
204
+ profile_id: isSet(object.profile_id) ? globalThis.String(object.profile_id) : "",
194
205
  };
195
206
  },
196
207
  toJSON(message) {
@@ -237,6 +248,9 @@ exports.addAccountRequest = {
237
248
  if (message.is_active !== undefined) {
238
249
  obj.is_active = message.is_active;
239
250
  }
251
+ if (message.profile_id !== "") {
252
+ obj.profile_id = message.profile_id;
253
+ }
240
254
  return obj;
241
255
  },
242
256
  create(base) {
@@ -258,6 +272,7 @@ exports.addAccountRequest = {
258
272
  message.status = object.status ?? "";
259
273
  message.is_primary = object.is_primary ?? undefined;
260
274
  message.is_active = object.is_active ?? undefined;
275
+ message.profile_id = object.profile_id ?? "";
261
276
  return message;
262
277
  },
263
278
  };
@@ -14,6 +14,7 @@ export interface checkTransactionStatusResponse {
14
14
  payee_vpa: string;
15
15
  payer_name: string;
16
16
  payer_vpa: string;
17
+ amount: number;
17
18
  message: string;
18
19
  }
19
20
  export declare const checkTransactionStatusRequest: {
@@ -115,6 +115,7 @@ function createBasecheckTransactionStatusResponse() {
115
115
  payee_vpa: "",
116
116
  payer_name: "",
117
117
  payer_vpa: "",
118
+ amount: 0,
118
119
  message: "",
119
120
  };
120
121
  }
@@ -141,8 +142,11 @@ exports.checkTransactionStatusResponse = {
141
142
  if (message.payer_vpa !== "") {
142
143
  writer.uint32(58).string(message.payer_vpa);
143
144
  }
145
+ if (message.amount !== 0) {
146
+ writer.uint32(69).float(message.amount);
147
+ }
144
148
  if (message.message !== "") {
145
- writer.uint32(66).string(message.message);
149
+ writer.uint32(74).string(message.message);
146
150
  }
147
151
  return writer;
148
152
  },
@@ -196,7 +200,13 @@ exports.checkTransactionStatusResponse = {
196
200
  message.payer_vpa = reader.string();
197
201
  continue;
198
202
  case 8:
199
- if (tag !== 66) {
203
+ if (tag !== 69) {
204
+ break;
205
+ }
206
+ message.amount = reader.float();
207
+ continue;
208
+ case 9:
209
+ if (tag !== 74) {
200
210
  break;
201
211
  }
202
212
  message.message = reader.string();
@@ -218,6 +228,7 @@ exports.checkTransactionStatusResponse = {
218
228
  payee_vpa: isSet(object.payee_vpa) ? globalThis.String(object.payee_vpa) : "",
219
229
  payer_name: isSet(object.payer_name) ? globalThis.String(object.payer_name) : "",
220
230
  payer_vpa: isSet(object.payer_vpa) ? globalThis.String(object.payer_vpa) : "",
231
+ amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
221
232
  message: isSet(object.message) ? globalThis.String(object.message) : "",
222
233
  };
223
234
  },
@@ -244,6 +255,9 @@ exports.checkTransactionStatusResponse = {
244
255
  if (message.payer_vpa !== "") {
245
256
  obj.payer_vpa = message.payer_vpa;
246
257
  }
258
+ if (message.amount !== 0) {
259
+ obj.amount = message.amount;
260
+ }
247
261
  if (message.message !== "") {
248
262
  obj.message = message.message;
249
263
  }
@@ -261,6 +275,7 @@ exports.checkTransactionStatusResponse = {
261
275
  message.payee_vpa = object.payee_vpa ?? "";
262
276
  message.payer_name = object.payer_name ?? "";
263
277
  message.payer_vpa = object.payer_vpa ?? "";
278
+ message.amount = object.amount ?? 0;
264
279
  message.message = object.message ?? "";
265
280
  return message;
266
281
  },
@@ -4,6 +4,7 @@ export interface updateDeviceBindingRequest {
4
4
  device_id: string;
5
5
  sim_no: string;
6
6
  sim_name?: string | undefined;
7
+ mobile: string;
7
8
  status: string;
8
9
  }
9
10
  export interface updateDeviceBindingResponse {
@@ -13,7 +13,7 @@ exports.updateDeviceBindingResponse = exports.updateDeviceBindingRequest = expor
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "upi.updateDeviceBinding";
15
15
  function createBaseupdateDeviceBindingRequest() {
16
- return { device_id: "", sim_no: "", sim_name: undefined, status: "" };
16
+ return { device_id: "", sim_no: "", sim_name: undefined, mobile: "", status: "" };
17
17
  }
18
18
  exports.updateDeviceBindingRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -26,8 +26,11 @@ exports.updateDeviceBindingRequest = {
26
26
  if (message.sim_name !== undefined) {
27
27
  writer.uint32(26).string(message.sim_name);
28
28
  }
29
+ if (message.mobile !== "") {
30
+ writer.uint32(34).string(message.mobile);
31
+ }
29
32
  if (message.status !== "") {
30
- writer.uint32(34).string(message.status);
33
+ writer.uint32(42).string(message.status);
31
34
  }
32
35
  return writer;
33
36
  },
@@ -60,6 +63,12 @@ exports.updateDeviceBindingRequest = {
60
63
  if (tag !== 34) {
61
64
  break;
62
65
  }
66
+ message.mobile = reader.string();
67
+ continue;
68
+ case 5:
69
+ if (tag !== 42) {
70
+ break;
71
+ }
63
72
  message.status = reader.string();
64
73
  continue;
65
74
  }
@@ -75,6 +84,7 @@ exports.updateDeviceBindingRequest = {
75
84
  device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
76
85
  sim_no: isSet(object.sim_no) ? globalThis.String(object.sim_no) : "",
77
86
  sim_name: isSet(object.sim_name) ? globalThis.String(object.sim_name) : undefined,
87
+ mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
78
88
  status: isSet(object.status) ? globalThis.String(object.status) : "",
79
89
  };
80
90
  },
@@ -89,6 +99,9 @@ exports.updateDeviceBindingRequest = {
89
99
  if (message.sim_name !== undefined) {
90
100
  obj.sim_name = message.sim_name;
91
101
  }
102
+ if (message.mobile !== "") {
103
+ obj.mobile = message.mobile;
104
+ }
92
105
  if (message.status !== "") {
93
106
  obj.status = message.status;
94
107
  }
@@ -102,6 +115,7 @@ exports.updateDeviceBindingRequest = {
102
115
  message.device_id = object.device_id ?? "";
103
116
  message.sim_no = object.sim_no ?? "";
104
117
  message.sim_name = object.sim_name ?? undefined;
118
+ message.mobile = object.mobile ?? "";
105
119
  message.status = object.status ?? "";
106
120
  return message;
107
121
  },