@stashfin/grpc 1.2.390 → 1.2.392

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.390",
3
+ "version": "1.2.392",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -9,6 +9,8 @@ export interface getAddonsListResponse {
9
9
  export interface getAddonsListResponse_Field {
10
10
  name: string;
11
11
  amount: number;
12
+ plan_id: number;
13
+ discount: number;
12
14
  }
13
15
  export declare const getAddonsListRequest: {
14
16
  encode(message: getAddonsListRequest, writer?: _m0.Writer): _m0.Writer;
@@ -117,7 +117,7 @@ exports.getAddonsListResponse = {
117
117
  },
118
118
  };
119
119
  function createBasegetAddonsListResponse_Field() {
120
- return { name: "", amount: 0 };
120
+ return { name: "", amount: 0, plan_id: 0, discount: 0 };
121
121
  }
122
122
  exports.getAddonsListResponse_Field = {
123
123
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -125,7 +125,13 @@ exports.getAddonsListResponse_Field = {
125
125
  writer.uint32(10).string(message.name);
126
126
  }
127
127
  if (message.amount !== 0) {
128
- writer.uint32(16).int32(message.amount);
128
+ writer.uint32(21).float(message.amount);
129
+ }
130
+ if (message.plan_id !== 0) {
131
+ writer.uint32(24).int32(message.plan_id);
132
+ }
133
+ if (message.discount !== 0) {
134
+ writer.uint32(37).float(message.discount);
129
135
  }
130
136
  return writer;
131
137
  },
@@ -143,10 +149,22 @@ exports.getAddonsListResponse_Field = {
143
149
  message.name = reader.string();
144
150
  continue;
145
151
  case 2:
146
- if (tag !== 16) {
152
+ if (tag !== 21) {
153
+ break;
154
+ }
155
+ message.amount = reader.float();
156
+ continue;
157
+ case 3:
158
+ if (tag !== 24) {
147
159
  break;
148
160
  }
149
- message.amount = reader.int32();
161
+ message.plan_id = reader.int32();
162
+ continue;
163
+ case 4:
164
+ if (tag !== 37) {
165
+ break;
166
+ }
167
+ message.discount = reader.float();
150
168
  continue;
151
169
  }
152
170
  if ((tag & 7) === 4 || tag === 0) {
@@ -160,6 +178,8 @@ exports.getAddonsListResponse_Field = {
160
178
  return {
161
179
  name: isSet(object.name) ? globalThis.String(object.name) : "",
162
180
  amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
181
+ plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
182
+ discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
163
183
  };
164
184
  },
165
185
  toJSON(message) {
@@ -168,7 +188,13 @@ exports.getAddonsListResponse_Field = {
168
188
  obj.name = message.name;
169
189
  }
170
190
  if (message.amount !== 0) {
171
- obj.amount = Math.round(message.amount);
191
+ obj.amount = message.amount;
192
+ }
193
+ if (message.plan_id !== 0) {
194
+ obj.plan_id = Math.round(message.plan_id);
195
+ }
196
+ if (message.discount !== 0) {
197
+ obj.discount = message.discount;
172
198
  }
173
199
  return obj;
174
200
  },
@@ -179,6 +205,8 @@ exports.getAddonsListResponse_Field = {
179
205
  const message = createBasegetAddonsListResponse_Field();
180
206
  message.name = object.name ?? "";
181
207
  message.amount = object.amount ?? 0;
208
+ message.plan_id = object.plan_id ?? 0;
209
+ message.discount = object.discount ?? 0;
182
210
  return message;
183
211
  },
184
212
  };
@@ -14,6 +14,7 @@ export interface getBillDetailsResponse_Field {
14
14
  penalty: number;
15
15
  is_visible: boolean;
16
16
  loan_id: number;
17
+ is_payable: boolean;
17
18
  }
18
19
  export declare const getBillDetailsRequest: {
19
20
  encode(_: getBillDetailsRequest, writer?: _m0.Writer): _m0.Writer;
@@ -113,6 +113,7 @@ function createBasegetBillDetailsResponse_Field() {
113
113
  penalty: 0,
114
114
  is_visible: false,
115
115
  loan_id: 0,
116
+ is_payable: false,
116
117
  };
117
118
  }
118
119
  exports.getBillDetailsResponse_Field = {
@@ -141,6 +142,9 @@ exports.getBillDetailsResponse_Field = {
141
142
  if (message.loan_id !== 0) {
142
143
  writer.uint32(64).int32(message.loan_id);
143
144
  }
145
+ if (message.is_payable !== false) {
146
+ writer.uint32(72).bool(message.is_payable);
147
+ }
144
148
  return writer;
145
149
  },
146
150
  decode(input, length) {
@@ -198,6 +202,12 @@ exports.getBillDetailsResponse_Field = {
198
202
  }
199
203
  message.loan_id = reader.int32();
200
204
  continue;
205
+ case 9:
206
+ if (tag !== 72) {
207
+ break;
208
+ }
209
+ message.is_payable = reader.bool();
210
+ continue;
201
211
  }
202
212
  if ((tag & 7) === 4 || tag === 0) {
203
213
  break;
@@ -216,6 +226,7 @@ exports.getBillDetailsResponse_Field = {
216
226
  penalty: isSet(object.penalty) ? globalThis.Number(object.penalty) : 0,
217
227
  is_visible: isSet(object.is_visible) ? globalThis.Boolean(object.is_visible) : false,
218
228
  loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
229
+ is_payable: isSet(object.is_payable) ? globalThis.Boolean(object.is_payable) : false,
219
230
  };
220
231
  },
221
232
  toJSON(message) {
@@ -244,6 +255,9 @@ exports.getBillDetailsResponse_Field = {
244
255
  if (message.loan_id !== 0) {
245
256
  obj.loan_id = Math.round(message.loan_id);
246
257
  }
258
+ if (message.is_payable !== false) {
259
+ obj.is_payable = message.is_payable;
260
+ }
247
261
  return obj;
248
262
  },
249
263
  create(base) {
@@ -259,6 +273,7 @@ exports.getBillDetailsResponse_Field = {
259
273
  message.penalty = object.penalty ?? 0;
260
274
  message.is_visible = object.is_visible ?? false;
261
275
  message.loan_id = object.loan_id ?? 0;
276
+ message.is_payable = object.is_payable ?? false;
262
277
  return message;
263
278
  },
264
279
  };