@stashfin/grpc 1.2.756 → 1.2.757
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
|
@@ -7,6 +7,7 @@ export interface request {
|
|
|
7
7
|
sc_type: string;
|
|
8
8
|
expiry?: string | undefined;
|
|
9
9
|
product?: string | undefined;
|
|
10
|
+
ext_transaction_id?: string | undefined;
|
|
10
11
|
}
|
|
11
12
|
export interface response {
|
|
12
13
|
status: string;
|
|
@@ -17,6 +18,7 @@ export interface response_Data {
|
|
|
17
18
|
unlocked: number;
|
|
18
19
|
balance: number;
|
|
19
20
|
txn_id: number;
|
|
21
|
+
sc_id: number;
|
|
20
22
|
}
|
|
21
23
|
export declare const request: {
|
|
22
24
|
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
package/ts/stashcash/creditsc.js
CHANGED
|
@@ -14,7 +14,15 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "stashcash.creditsc";
|
|
16
16
|
function createBaserequest() {
|
|
17
|
-
return {
|
|
17
|
+
return {
|
|
18
|
+
customer_id: 0,
|
|
19
|
+
campaign_id: 0,
|
|
20
|
+
amount: 0,
|
|
21
|
+
sc_type: "",
|
|
22
|
+
expiry: undefined,
|
|
23
|
+
product: undefined,
|
|
24
|
+
ext_transaction_id: undefined,
|
|
25
|
+
};
|
|
18
26
|
}
|
|
19
27
|
exports.request = {
|
|
20
28
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -36,6 +44,9 @@ exports.request = {
|
|
|
36
44
|
if (message.product !== undefined) {
|
|
37
45
|
writer.uint32(50).string(message.product);
|
|
38
46
|
}
|
|
47
|
+
if (message.ext_transaction_id !== undefined) {
|
|
48
|
+
writer.uint32(58).string(message.ext_transaction_id);
|
|
49
|
+
}
|
|
39
50
|
return writer;
|
|
40
51
|
},
|
|
41
52
|
decode(input, length) {
|
|
@@ -81,6 +92,12 @@ exports.request = {
|
|
|
81
92
|
}
|
|
82
93
|
message.product = reader.string();
|
|
83
94
|
continue;
|
|
95
|
+
case 7:
|
|
96
|
+
if (tag !== 58) {
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
message.ext_transaction_id = reader.string();
|
|
100
|
+
continue;
|
|
84
101
|
}
|
|
85
102
|
if ((tag & 7) === 4 || tag === 0) {
|
|
86
103
|
break;
|
|
@@ -97,6 +114,7 @@ exports.request = {
|
|
|
97
114
|
sc_type: isSet(object.sc_type) ? globalThis.String(object.sc_type) : "",
|
|
98
115
|
expiry: isSet(object.expiry) ? globalThis.String(object.expiry) : undefined,
|
|
99
116
|
product: isSet(object.product) ? globalThis.String(object.product) : undefined,
|
|
117
|
+
ext_transaction_id: isSet(object.ext_transaction_id) ? globalThis.String(object.ext_transaction_id) : undefined,
|
|
100
118
|
};
|
|
101
119
|
},
|
|
102
120
|
toJSON(message) {
|
|
@@ -119,6 +137,9 @@ exports.request = {
|
|
|
119
137
|
if (message.product !== undefined) {
|
|
120
138
|
obj.product = message.product;
|
|
121
139
|
}
|
|
140
|
+
if (message.ext_transaction_id !== undefined) {
|
|
141
|
+
obj.ext_transaction_id = message.ext_transaction_id;
|
|
142
|
+
}
|
|
122
143
|
return obj;
|
|
123
144
|
},
|
|
124
145
|
create(base) {
|
|
@@ -132,6 +153,7 @@ exports.request = {
|
|
|
132
153
|
message.sc_type = object.sc_type ?? "";
|
|
133
154
|
message.expiry = object.expiry ?? undefined;
|
|
134
155
|
message.product = object.product ?? undefined;
|
|
156
|
+
message.ext_transaction_id = object.ext_transaction_id ?? undefined;
|
|
135
157
|
return message;
|
|
136
158
|
},
|
|
137
159
|
};
|
|
@@ -204,7 +226,7 @@ exports.response = {
|
|
|
204
226
|
},
|
|
205
227
|
};
|
|
206
228
|
function createBaseresponse_Data() {
|
|
207
|
-
return { locked: 0, unlocked: 0, balance: 0, txn_id: 0 };
|
|
229
|
+
return { locked: 0, unlocked: 0, balance: 0, txn_id: 0, sc_id: 0 };
|
|
208
230
|
}
|
|
209
231
|
exports.response_Data = {
|
|
210
232
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -220,6 +242,9 @@ exports.response_Data = {
|
|
|
220
242
|
if (message.txn_id !== 0) {
|
|
221
243
|
writer.uint32(32).int64(message.txn_id);
|
|
222
244
|
}
|
|
245
|
+
if (message.sc_id !== 0) {
|
|
246
|
+
writer.uint32(40).int32(message.sc_id);
|
|
247
|
+
}
|
|
223
248
|
return writer;
|
|
224
249
|
},
|
|
225
250
|
decode(input, length) {
|
|
@@ -253,6 +278,12 @@ exports.response_Data = {
|
|
|
253
278
|
}
|
|
254
279
|
message.txn_id = longToNumber(reader.int64());
|
|
255
280
|
continue;
|
|
281
|
+
case 5:
|
|
282
|
+
if (tag !== 40) {
|
|
283
|
+
break;
|
|
284
|
+
}
|
|
285
|
+
message.sc_id = reader.int32();
|
|
286
|
+
continue;
|
|
256
287
|
}
|
|
257
288
|
if ((tag & 7) === 4 || tag === 0) {
|
|
258
289
|
break;
|
|
@@ -267,6 +298,7 @@ exports.response_Data = {
|
|
|
267
298
|
unlocked: isSet(object.unlocked) ? globalThis.Number(object.unlocked) : 0,
|
|
268
299
|
balance: isSet(object.balance) ? globalThis.Number(object.balance) : 0,
|
|
269
300
|
txn_id: isSet(object.txn_id) ? globalThis.Number(object.txn_id) : 0,
|
|
301
|
+
sc_id: isSet(object.sc_id) ? globalThis.Number(object.sc_id) : 0,
|
|
270
302
|
};
|
|
271
303
|
},
|
|
272
304
|
toJSON(message) {
|
|
@@ -283,6 +315,9 @@ exports.response_Data = {
|
|
|
283
315
|
if (message.txn_id !== 0) {
|
|
284
316
|
obj.txn_id = Math.round(message.txn_id);
|
|
285
317
|
}
|
|
318
|
+
if (message.sc_id !== 0) {
|
|
319
|
+
obj.sc_id = Math.round(message.sc_id);
|
|
320
|
+
}
|
|
286
321
|
return obj;
|
|
287
322
|
},
|
|
288
323
|
create(base) {
|
|
@@ -294,6 +329,7 @@ exports.response_Data = {
|
|
|
294
329
|
message.unlocked = object.unlocked ?? 0;
|
|
295
330
|
message.balance = object.balance ?? 0;
|
|
296
331
|
message.txn_id = object.txn_id ?? 0;
|
|
332
|
+
message.sc_id = object.sc_id ?? 0;
|
|
297
333
|
return message;
|
|
298
334
|
},
|
|
299
335
|
};
|