@stashfin/grpc 1.2.542 → 1.2.543
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
|
@@ -15,6 +15,9 @@ export interface NotificationData {
|
|
|
15
15
|
created_at: string;
|
|
16
16
|
body: Body | undefined;
|
|
17
17
|
description?: string | undefined;
|
|
18
|
+
txn_id: string;
|
|
19
|
+
redirection_url: string;
|
|
20
|
+
redirection_type: string;
|
|
18
21
|
}
|
|
19
22
|
export interface Body {
|
|
20
23
|
notification: Notification | undefined;
|
|
@@ -146,7 +146,17 @@ exports.getNotificationsResponse = {
|
|
|
146
146
|
},
|
|
147
147
|
};
|
|
148
148
|
function createBaseNotificationData() {
|
|
149
|
-
return {
|
|
149
|
+
return {
|
|
150
|
+
id: 0,
|
|
151
|
+
customer_id: 0,
|
|
152
|
+
template_id: "",
|
|
153
|
+
created_at: "",
|
|
154
|
+
body: undefined,
|
|
155
|
+
description: undefined,
|
|
156
|
+
txn_id: "",
|
|
157
|
+
redirection_url: "",
|
|
158
|
+
redirection_type: "",
|
|
159
|
+
};
|
|
150
160
|
}
|
|
151
161
|
exports.NotificationData = {
|
|
152
162
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -168,6 +178,15 @@ exports.NotificationData = {
|
|
|
168
178
|
if (message.description !== undefined) {
|
|
169
179
|
writer.uint32(50).string(message.description);
|
|
170
180
|
}
|
|
181
|
+
if (message.txn_id !== "") {
|
|
182
|
+
writer.uint32(58).string(message.txn_id);
|
|
183
|
+
}
|
|
184
|
+
if (message.redirection_url !== "") {
|
|
185
|
+
writer.uint32(66).string(message.redirection_url);
|
|
186
|
+
}
|
|
187
|
+
if (message.redirection_type !== "") {
|
|
188
|
+
writer.uint32(74).string(message.redirection_type);
|
|
189
|
+
}
|
|
171
190
|
return writer;
|
|
172
191
|
},
|
|
173
192
|
decode(input, length) {
|
|
@@ -213,6 +232,24 @@ exports.NotificationData = {
|
|
|
213
232
|
}
|
|
214
233
|
message.description = reader.string();
|
|
215
234
|
continue;
|
|
235
|
+
case 7:
|
|
236
|
+
if (tag !== 58) {
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
message.txn_id = reader.string();
|
|
240
|
+
continue;
|
|
241
|
+
case 8:
|
|
242
|
+
if (tag !== 66) {
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
message.redirection_url = reader.string();
|
|
246
|
+
continue;
|
|
247
|
+
case 9:
|
|
248
|
+
if (tag !== 74) {
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
message.redirection_type = reader.string();
|
|
252
|
+
continue;
|
|
216
253
|
}
|
|
217
254
|
if ((tag & 7) === 4 || tag === 0) {
|
|
218
255
|
break;
|
|
@@ -229,6 +266,9 @@ exports.NotificationData = {
|
|
|
229
266
|
created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : "",
|
|
230
267
|
body: isSet(object.body) ? exports.Body.fromJSON(object.body) : undefined,
|
|
231
268
|
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
269
|
+
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
|
|
270
|
+
redirection_url: isSet(object.redirection_url) ? globalThis.String(object.redirection_url) : "",
|
|
271
|
+
redirection_type: isSet(object.redirection_type) ? globalThis.String(object.redirection_type) : "",
|
|
232
272
|
};
|
|
233
273
|
},
|
|
234
274
|
toJSON(message) {
|
|
@@ -251,6 +291,15 @@ exports.NotificationData = {
|
|
|
251
291
|
if (message.description !== undefined) {
|
|
252
292
|
obj.description = message.description;
|
|
253
293
|
}
|
|
294
|
+
if (message.txn_id !== "") {
|
|
295
|
+
obj.txn_id = message.txn_id;
|
|
296
|
+
}
|
|
297
|
+
if (message.redirection_url !== "") {
|
|
298
|
+
obj.redirection_url = message.redirection_url;
|
|
299
|
+
}
|
|
300
|
+
if (message.redirection_type !== "") {
|
|
301
|
+
obj.redirection_type = message.redirection_type;
|
|
302
|
+
}
|
|
254
303
|
return obj;
|
|
255
304
|
},
|
|
256
305
|
create(base) {
|
|
@@ -264,6 +313,9 @@ exports.NotificationData = {
|
|
|
264
313
|
message.created_at = object.created_at ?? "";
|
|
265
314
|
message.body = (object.body !== undefined && object.body !== null) ? exports.Body.fromPartial(object.body) : undefined;
|
|
266
315
|
message.description = object.description ?? undefined;
|
|
316
|
+
message.txn_id = object.txn_id ?? "";
|
|
317
|
+
message.redirection_url = object.redirection_url ?? "";
|
|
318
|
+
message.redirection_type = object.redirection_type ?? "";
|
|
267
319
|
return message;
|
|
268
320
|
},
|
|
269
321
|
};
|