@stashfin/grpc 1.2.756 → 1.2.758
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
|
};
|
|
@@ -160,7 +160,7 @@ exports.getEarningResponse = {
|
|
|
160
160
|
},
|
|
161
161
|
};
|
|
162
162
|
function createBaseData() {
|
|
163
|
-
return { locked: 0, unlocked: 0, balance: 0 };
|
|
163
|
+
return { locked: 0, unlocked: 0, balance: 0, weekly_earning_percentage: 0 };
|
|
164
164
|
}
|
|
165
165
|
exports.Data = {
|
|
166
166
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -173,6 +173,9 @@ exports.Data = {
|
|
|
173
173
|
if (message.balance !== 0) {
|
|
174
174
|
writer.uint32(29).float(message.balance);
|
|
175
175
|
}
|
|
176
|
+
if (message.weekly_earning_percentage !== 0) {
|
|
177
|
+
writer.uint32(37).float(message.weekly_earning_percentage);
|
|
178
|
+
}
|
|
176
179
|
return writer;
|
|
177
180
|
},
|
|
178
181
|
decode(input, length) {
|
|
@@ -200,6 +203,12 @@ exports.Data = {
|
|
|
200
203
|
}
|
|
201
204
|
message.balance = reader.float();
|
|
202
205
|
continue;
|
|
206
|
+
case 4:
|
|
207
|
+
if (tag !== 37) {
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
message.weekly_earning_percentage = reader.float();
|
|
211
|
+
continue;
|
|
203
212
|
}
|
|
204
213
|
if ((tag & 7) === 4 || tag === 0) {
|
|
205
214
|
break;
|
|
@@ -213,6 +222,9 @@ exports.Data = {
|
|
|
213
222
|
locked: isSet(object.locked) ? globalThis.Number(object.locked) : 0,
|
|
214
223
|
unlocked: isSet(object.unlocked) ? globalThis.Number(object.unlocked) : 0,
|
|
215
224
|
balance: isSet(object.balance) ? globalThis.Number(object.balance) : 0,
|
|
225
|
+
weekly_earning_percentage: isSet(object.weekly_earning_percentage)
|
|
226
|
+
? globalThis.Number(object.weekly_earning_percentage)
|
|
227
|
+
: 0,
|
|
216
228
|
};
|
|
217
229
|
},
|
|
218
230
|
toJSON(message) {
|
|
@@ -226,6 +238,9 @@ exports.Data = {
|
|
|
226
238
|
if (message.balance !== 0) {
|
|
227
239
|
obj.balance = message.balance;
|
|
228
240
|
}
|
|
241
|
+
if (message.weekly_earning_percentage !== 0) {
|
|
242
|
+
obj.weekly_earning_percentage = message.weekly_earning_percentage;
|
|
243
|
+
}
|
|
229
244
|
return obj;
|
|
230
245
|
},
|
|
231
246
|
create(base) {
|
|
@@ -236,6 +251,7 @@ exports.Data = {
|
|
|
236
251
|
message.locked = object.locked ?? 0;
|
|
237
252
|
message.unlocked = object.unlocked ?? 0;
|
|
238
253
|
message.balance = object.balance ?? 0;
|
|
254
|
+
message.weekly_earning_percentage = object.weekly_earning_percentage ?? 0;
|
|
239
255
|
return message;
|
|
240
256
|
},
|
|
241
257
|
};
|
|
@@ -14,7 +14,7 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "stashcash.getschistory";
|
|
16
16
|
function createBaserequest() {
|
|
17
|
-
return { customer_id: 0, page: "", limit: "", filter_by: undefined };
|
|
17
|
+
return { customer_id: 0, page: "", limit: "", filter_by: undefined, product: undefined };
|
|
18
18
|
}
|
|
19
19
|
exports.request = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -30,6 +30,9 @@ exports.request = {
|
|
|
30
30
|
if (message.filter_by !== undefined) {
|
|
31
31
|
writer.uint32(34).string(message.filter_by);
|
|
32
32
|
}
|
|
33
|
+
if (message.product !== undefined) {
|
|
34
|
+
writer.uint32(42).string(message.product);
|
|
35
|
+
}
|
|
33
36
|
return writer;
|
|
34
37
|
},
|
|
35
38
|
decode(input, length) {
|
|
@@ -63,6 +66,12 @@ exports.request = {
|
|
|
63
66
|
}
|
|
64
67
|
message.filter_by = reader.string();
|
|
65
68
|
continue;
|
|
69
|
+
case 5:
|
|
70
|
+
if (tag !== 42) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.product = reader.string();
|
|
74
|
+
continue;
|
|
66
75
|
}
|
|
67
76
|
if ((tag & 7) === 4 || tag === 0) {
|
|
68
77
|
break;
|
|
@@ -77,6 +86,7 @@ exports.request = {
|
|
|
77
86
|
page: isSet(object.page) ? globalThis.String(object.page) : "",
|
|
78
87
|
limit: isSet(object.limit) ? globalThis.String(object.limit) : "",
|
|
79
88
|
filter_by: isSet(object.filter_by) ? globalThis.String(object.filter_by) : undefined,
|
|
89
|
+
product: isSet(object.product) ? globalThis.String(object.product) : undefined,
|
|
80
90
|
};
|
|
81
91
|
},
|
|
82
92
|
toJSON(message) {
|
|
@@ -93,6 +103,9 @@ exports.request = {
|
|
|
93
103
|
if (message.filter_by !== undefined) {
|
|
94
104
|
obj.filter_by = message.filter_by;
|
|
95
105
|
}
|
|
106
|
+
if (message.product !== undefined) {
|
|
107
|
+
obj.product = message.product;
|
|
108
|
+
}
|
|
96
109
|
return obj;
|
|
97
110
|
},
|
|
98
111
|
create(base) {
|
|
@@ -104,6 +117,7 @@ exports.request = {
|
|
|
104
117
|
message.page = object.page ?? "";
|
|
105
118
|
message.limit = object.limit ?? "";
|
|
106
119
|
message.filter_by = object.filter_by ?? undefined;
|
|
120
|
+
message.product = object.product ?? undefined;
|
|
107
121
|
return message;
|
|
108
122
|
},
|
|
109
123
|
};
|