@stashfin/grpc 1.2.486 → 1.2.488
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,8 +1,8 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "upi.getTransactions";
|
|
3
3
|
export interface getTransactionsRequest {
|
|
4
|
-
txn_status
|
|
5
|
-
txn_type
|
|
4
|
+
txn_status: string[];
|
|
5
|
+
txn_type: string[];
|
|
6
6
|
limit?: number | undefined;
|
|
7
7
|
off_set?: number | undefined;
|
|
8
8
|
}
|
|
@@ -13,15 +13,15 @@ exports.getTransactionsResponse = exports.Data = exports.Transactions = exports.
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "upi.getTransactions";
|
|
15
15
|
function createBasegetTransactionsRequest() {
|
|
16
|
-
return { txn_status:
|
|
16
|
+
return { txn_status: [], txn_type: [], limit: undefined, off_set: undefined };
|
|
17
17
|
}
|
|
18
18
|
exports.getTransactionsRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
|
|
21
|
-
writer.uint32(10).string(
|
|
20
|
+
for (const v of message.txn_status) {
|
|
21
|
+
writer.uint32(10).string(v);
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
writer.uint32(18).string(
|
|
23
|
+
for (const v of message.txn_type) {
|
|
24
|
+
writer.uint32(18).string(v);
|
|
25
25
|
}
|
|
26
26
|
if (message.limit !== undefined) {
|
|
27
27
|
writer.uint32(24).int32(message.limit);
|
|
@@ -42,13 +42,13 @@ exports.getTransactionsRequest = {
|
|
|
42
42
|
if (tag !== 10) {
|
|
43
43
|
break;
|
|
44
44
|
}
|
|
45
|
-
message.txn_status
|
|
45
|
+
message.txn_status.push(reader.string());
|
|
46
46
|
continue;
|
|
47
47
|
case 2:
|
|
48
48
|
if (tag !== 18) {
|
|
49
49
|
break;
|
|
50
50
|
}
|
|
51
|
-
message.txn_type
|
|
51
|
+
message.txn_type.push(reader.string());
|
|
52
52
|
continue;
|
|
53
53
|
case 3:
|
|
54
54
|
if (tag !== 24) {
|
|
@@ -72,18 +72,20 @@ exports.getTransactionsRequest = {
|
|
|
72
72
|
},
|
|
73
73
|
fromJSON(object) {
|
|
74
74
|
return {
|
|
75
|
-
txn_status:
|
|
76
|
-
|
|
75
|
+
txn_status: globalThis.Array.isArray(object?.txn_status)
|
|
76
|
+
? object.txn_status.map((e) => globalThis.String(e))
|
|
77
|
+
: [],
|
|
78
|
+
txn_type: globalThis.Array.isArray(object?.txn_type) ? object.txn_type.map((e) => globalThis.String(e)) : [],
|
|
77
79
|
limit: isSet(object.limit) ? globalThis.Number(object.limit) : undefined,
|
|
78
80
|
off_set: isSet(object.off_set) ? globalThis.Number(object.off_set) : undefined,
|
|
79
81
|
};
|
|
80
82
|
},
|
|
81
83
|
toJSON(message) {
|
|
82
84
|
const obj = {};
|
|
83
|
-
if (message.txn_status
|
|
85
|
+
if (message.txn_status?.length) {
|
|
84
86
|
obj.txn_status = message.txn_status;
|
|
85
87
|
}
|
|
86
|
-
if (message.txn_type
|
|
88
|
+
if (message.txn_type?.length) {
|
|
87
89
|
obj.txn_type = message.txn_type;
|
|
88
90
|
}
|
|
89
91
|
if (message.limit !== undefined) {
|
|
@@ -99,8 +101,8 @@ exports.getTransactionsRequest = {
|
|
|
99
101
|
},
|
|
100
102
|
fromPartial(object) {
|
|
101
103
|
const message = createBasegetTransactionsRequest();
|
|
102
|
-
message.txn_status = object.txn_status
|
|
103
|
-
message.txn_type = object.txn_type
|
|
104
|
+
message.txn_status = object.txn_status?.map((e) => e) || [];
|
|
105
|
+
message.txn_type = object.txn_type?.map((e) => e) || [];
|
|
104
106
|
message.limit = object.limit ?? undefined;
|
|
105
107
|
message.off_set = object.off_set ?? undefined;
|
|
106
108
|
return message;
|
|
@@ -19,6 +19,7 @@ export interface initiateTransactionRequest {
|
|
|
19
19
|
mcc?: string | undefined;
|
|
20
20
|
merchant_type?: string | undefined;
|
|
21
21
|
payee_account_provider?: string | undefined;
|
|
22
|
+
validate_type?: string | undefined;
|
|
22
23
|
}
|
|
23
24
|
export interface initiateTransactionResponse {
|
|
24
25
|
seq_no: string;
|
|
@@ -32,6 +32,7 @@ function createBaseinitiateTransactionRequest() {
|
|
|
32
32
|
mcc: undefined,
|
|
33
33
|
merchant_type: undefined,
|
|
34
34
|
payee_account_provider: undefined,
|
|
35
|
+
validate_type: undefined,
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
exports.initiateTransactionRequest = {
|
|
@@ -90,6 +91,9 @@ exports.initiateTransactionRequest = {
|
|
|
90
91
|
if (message.payee_account_provider !== undefined) {
|
|
91
92
|
writer.uint32(146).string(message.payee_account_provider);
|
|
92
93
|
}
|
|
94
|
+
if (message.validate_type !== undefined) {
|
|
95
|
+
writer.uint32(154).string(message.validate_type);
|
|
96
|
+
}
|
|
93
97
|
return writer;
|
|
94
98
|
},
|
|
95
99
|
decode(input, length) {
|
|
@@ -207,6 +211,12 @@ exports.initiateTransactionRequest = {
|
|
|
207
211
|
}
|
|
208
212
|
message.payee_account_provider = reader.string();
|
|
209
213
|
continue;
|
|
214
|
+
case 19:
|
|
215
|
+
if (tag !== 154) {
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
message.validate_type = reader.string();
|
|
219
|
+
continue;
|
|
210
220
|
}
|
|
211
221
|
if ((tag & 7) === 4 || tag === 0) {
|
|
212
222
|
break;
|
|
@@ -239,6 +249,7 @@ exports.initiateTransactionRequest = {
|
|
|
239
249
|
payee_account_provider: isSet(object.payee_account_provider)
|
|
240
250
|
? globalThis.String(object.payee_account_provider)
|
|
241
251
|
: undefined,
|
|
252
|
+
validate_type: isSet(object.validate_type) ? globalThis.String(object.validate_type) : undefined,
|
|
242
253
|
};
|
|
243
254
|
},
|
|
244
255
|
toJSON(message) {
|
|
@@ -297,6 +308,9 @@ exports.initiateTransactionRequest = {
|
|
|
297
308
|
if (message.payee_account_provider !== undefined) {
|
|
298
309
|
obj.payee_account_provider = message.payee_account_provider;
|
|
299
310
|
}
|
|
311
|
+
if (message.validate_type !== undefined) {
|
|
312
|
+
obj.validate_type = message.validate_type;
|
|
313
|
+
}
|
|
300
314
|
return obj;
|
|
301
315
|
},
|
|
302
316
|
create(base) {
|
|
@@ -322,6 +336,7 @@ exports.initiateTransactionRequest = {
|
|
|
322
336
|
message.mcc = object.mcc ?? undefined;
|
|
323
337
|
message.merchant_type = object.merchant_type ?? undefined;
|
|
324
338
|
message.payee_account_provider = object.payee_account_provider ?? undefined;
|
|
339
|
+
message.validate_type = object.validate_type ?? undefined;
|
|
325
340
|
return message;
|
|
326
341
|
},
|
|
327
342
|
};
|