@stashfin/grpc 1.5.11 → 1.5.12

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.5.11",
3
+ "version": "1.5.12",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -3,8 +3,8 @@ export declare const protobufPackage = "bbps.remindernotification";
3
3
  /** Request Data */
4
4
  export interface getBillRowDataRequest {
5
5
  id: number;
6
- due_date: string;
7
- due_amount: number;
6
+ due_date?: string | undefined;
7
+ due_amount?: number | undefined;
8
8
  customer_id: number;
9
9
  account_no: string;
10
10
  mobile: string;
@@ -12,6 +12,9 @@ export interface getBillRowDataRequest {
12
12
  biller_name: string;
13
13
  category: string;
14
14
  is_bill_new?: boolean | undefined;
15
+ txn_date?: string | undefined;
16
+ status?: string | undefined;
17
+ event_type?: string | undefined;
15
18
  }
16
19
  export interface getBillRowDataResponse {
17
20
  /** "success" or "failure" */
@@ -15,8 +15,8 @@ exports.protobufPackage = "bbps.remindernotification";
15
15
  function createBasegetBillRowDataRequest() {
16
16
  return {
17
17
  id: 0,
18
- due_date: "",
19
- due_amount: 0,
18
+ due_date: undefined,
19
+ due_amount: undefined,
20
20
  customer_id: 0,
21
21
  account_no: "",
22
22
  mobile: "",
@@ -24,6 +24,9 @@ function createBasegetBillRowDataRequest() {
24
24
  biller_name: "",
25
25
  category: "",
26
26
  is_bill_new: undefined,
27
+ txn_date: undefined,
28
+ status: undefined,
29
+ event_type: undefined,
27
30
  };
28
31
  }
29
32
  exports.getBillRowDataRequest = {
@@ -31,10 +34,10 @@ exports.getBillRowDataRequest = {
31
34
  if (message.id !== 0) {
32
35
  writer.uint32(8).int32(message.id);
33
36
  }
34
- if (message.due_date !== "") {
37
+ if (message.due_date !== undefined) {
35
38
  writer.uint32(18).string(message.due_date);
36
39
  }
37
- if (message.due_amount !== 0) {
40
+ if (message.due_amount !== undefined) {
38
41
  writer.uint32(25).double(message.due_amount);
39
42
  }
40
43
  if (message.customer_id !== 0) {
@@ -58,6 +61,15 @@ exports.getBillRowDataRequest = {
58
61
  if (message.is_bill_new !== undefined) {
59
62
  writer.uint32(80).bool(message.is_bill_new);
60
63
  }
64
+ if (message.txn_date !== undefined) {
65
+ writer.uint32(90).string(message.txn_date);
66
+ }
67
+ if (message.status !== undefined) {
68
+ writer.uint32(98).string(message.status);
69
+ }
70
+ if (message.event_type !== undefined) {
71
+ writer.uint32(106).string(message.event_type);
72
+ }
61
73
  return writer;
62
74
  },
63
75
  decode(input, length) {
@@ -127,6 +139,24 @@ exports.getBillRowDataRequest = {
127
139
  }
128
140
  message.is_bill_new = reader.bool();
129
141
  continue;
142
+ case 11:
143
+ if (tag !== 90) {
144
+ break;
145
+ }
146
+ message.txn_date = reader.string();
147
+ continue;
148
+ case 12:
149
+ if (tag !== 98) {
150
+ break;
151
+ }
152
+ message.status = reader.string();
153
+ continue;
154
+ case 13:
155
+ if (tag !== 106) {
156
+ break;
157
+ }
158
+ message.event_type = reader.string();
159
+ continue;
130
160
  }
131
161
  if ((tag & 7) === 4 || tag === 0) {
132
162
  break;
@@ -138,8 +168,8 @@ exports.getBillRowDataRequest = {
138
168
  fromJSON(object) {
139
169
  return {
140
170
  id: isSet(object.id) ? globalThis.Number(object.id) : 0,
141
- due_date: isSet(object.due_date) ? globalThis.String(object.due_date) : "",
142
- due_amount: isSet(object.due_amount) ? globalThis.Number(object.due_amount) : 0,
171
+ due_date: isSet(object.due_date) ? globalThis.String(object.due_date) : undefined,
172
+ due_amount: isSet(object.due_amount) ? globalThis.Number(object.due_amount) : undefined,
143
173
  customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
144
174
  account_no: isSet(object.account_no) ? globalThis.String(object.account_no) : "",
145
175
  mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
@@ -147,6 +177,9 @@ exports.getBillRowDataRequest = {
147
177
  biller_name: isSet(object.biller_name) ? globalThis.String(object.biller_name) : "",
148
178
  category: isSet(object.category) ? globalThis.String(object.category) : "",
149
179
  is_bill_new: isSet(object.is_bill_new) ? globalThis.Boolean(object.is_bill_new) : undefined,
180
+ txn_date: isSet(object.txn_date) ? globalThis.String(object.txn_date) : undefined,
181
+ status: isSet(object.status) ? globalThis.String(object.status) : undefined,
182
+ event_type: isSet(object.event_type) ? globalThis.String(object.event_type) : undefined,
150
183
  };
151
184
  },
152
185
  toJSON(message) {
@@ -154,10 +187,10 @@ exports.getBillRowDataRequest = {
154
187
  if (message.id !== 0) {
155
188
  obj.id = Math.round(message.id);
156
189
  }
157
- if (message.due_date !== "") {
190
+ if (message.due_date !== undefined) {
158
191
  obj.due_date = message.due_date;
159
192
  }
160
- if (message.due_amount !== 0) {
193
+ if (message.due_amount !== undefined) {
161
194
  obj.due_amount = message.due_amount;
162
195
  }
163
196
  if (message.customer_id !== 0) {
@@ -181,6 +214,15 @@ exports.getBillRowDataRequest = {
181
214
  if (message.is_bill_new !== undefined) {
182
215
  obj.is_bill_new = message.is_bill_new;
183
216
  }
217
+ if (message.txn_date !== undefined) {
218
+ obj.txn_date = message.txn_date;
219
+ }
220
+ if (message.status !== undefined) {
221
+ obj.status = message.status;
222
+ }
223
+ if (message.event_type !== undefined) {
224
+ obj.event_type = message.event_type;
225
+ }
184
226
  return obj;
185
227
  },
186
228
  create(base) {
@@ -189,8 +231,8 @@ exports.getBillRowDataRequest = {
189
231
  fromPartial(object) {
190
232
  const message = createBasegetBillRowDataRequest();
191
233
  message.id = object.id ?? 0;
192
- message.due_date = object.due_date ?? "";
193
- message.due_amount = object.due_amount ?? 0;
234
+ message.due_date = object.due_date ?? undefined;
235
+ message.due_amount = object.due_amount ?? undefined;
194
236
  message.customer_id = object.customer_id ?? 0;
195
237
  message.account_no = object.account_no ?? "";
196
238
  message.mobile = object.mobile ?? "";
@@ -198,6 +240,9 @@ exports.getBillRowDataRequest = {
198
240
  message.biller_name = object.biller_name ?? "";
199
241
  message.category = object.category ?? "";
200
242
  message.is_bill_new = object.is_bill_new ?? undefined;
243
+ message.txn_date = object.txn_date ?? undefined;
244
+ message.status = object.status ?? undefined;
245
+ message.event_type = object.event_type ?? undefined;
201
246
  return message;
202
247
  },
203
248
  };