@stashfin/grpc 1.2.532 → 1.2.534
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
|
@@ -13,7 +13,7 @@ exports.checkTransactionStatusResponse = exports.checkTransactionStatusRequest =
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "upi.checkTransactionStatus";
|
|
15
15
|
function createBasecheckTransactionStatusRequest() {
|
|
16
|
-
return { device_id: "", mobile: "", ext_txn_id: "", profile_id: "" };
|
|
16
|
+
return { device_id: "", mobile: "", ext_txn_id: "", profile_id: "", umn: undefined };
|
|
17
17
|
}
|
|
18
18
|
exports.checkTransactionStatusRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -29,6 +29,9 @@ exports.checkTransactionStatusRequest = {
|
|
|
29
29
|
if (message.profile_id !== "") {
|
|
30
30
|
writer.uint32(34).string(message.profile_id);
|
|
31
31
|
}
|
|
32
|
+
if (message.umn !== undefined) {
|
|
33
|
+
writer.uint32(42).string(message.umn);
|
|
34
|
+
}
|
|
32
35
|
return writer;
|
|
33
36
|
},
|
|
34
37
|
decode(input, length) {
|
|
@@ -62,6 +65,12 @@ exports.checkTransactionStatusRequest = {
|
|
|
62
65
|
}
|
|
63
66
|
message.profile_id = reader.string();
|
|
64
67
|
continue;
|
|
68
|
+
case 5:
|
|
69
|
+
if (tag !== 42) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.umn = reader.string();
|
|
73
|
+
continue;
|
|
65
74
|
}
|
|
66
75
|
if ((tag & 7) === 4 || tag === 0) {
|
|
67
76
|
break;
|
|
@@ -76,6 +85,7 @@ exports.checkTransactionStatusRequest = {
|
|
|
76
85
|
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
77
86
|
ext_txn_id: isSet(object.ext_txn_id) ? globalThis.String(object.ext_txn_id) : "",
|
|
78
87
|
profile_id: isSet(object.profile_id) ? globalThis.String(object.profile_id) : "",
|
|
88
|
+
umn: isSet(object.umn) ? globalThis.String(object.umn) : undefined,
|
|
79
89
|
};
|
|
80
90
|
},
|
|
81
91
|
toJSON(message) {
|
|
@@ -92,6 +102,9 @@ exports.checkTransactionStatusRequest = {
|
|
|
92
102
|
if (message.profile_id !== "") {
|
|
93
103
|
obj.profile_id = message.profile_id;
|
|
94
104
|
}
|
|
105
|
+
if (message.umn !== undefined) {
|
|
106
|
+
obj.umn = message.umn;
|
|
107
|
+
}
|
|
95
108
|
return obj;
|
|
96
109
|
},
|
|
97
110
|
create(base) {
|
|
@@ -103,6 +116,7 @@ exports.checkTransactionStatusRequest = {
|
|
|
103
116
|
message.mobile = object.mobile ?? "";
|
|
104
117
|
message.ext_txn_id = object.ext_txn_id ?? "";
|
|
105
118
|
message.profile_id = object.profile_id ?? "";
|
|
119
|
+
message.umn = object.umn ?? undefined;
|
|
106
120
|
return message;
|
|
107
121
|
},
|
|
108
122
|
};
|
|
@@ -401,7 +401,7 @@ exports.Data = {
|
|
|
401
401
|
exports.Transactions.encode(v, writer.uint32(10).fork()).ldelim();
|
|
402
402
|
}
|
|
403
403
|
if (message.count !== undefined) {
|
|
404
|
-
writer.uint32(
|
|
404
|
+
writer.uint32(16).int32(message.count);
|
|
405
405
|
}
|
|
406
406
|
return writer;
|
|
407
407
|
},
|
|
@@ -419,10 +419,10 @@ exports.Data = {
|
|
|
419
419
|
message.transactions.push(exports.Transactions.decode(reader, reader.uint32()));
|
|
420
420
|
continue;
|
|
421
421
|
case 2:
|
|
422
|
-
if (tag !==
|
|
422
|
+
if (tag !== 16) {
|
|
423
423
|
break;
|
|
424
424
|
}
|
|
425
|
-
message.count = reader.
|
|
425
|
+
message.count = reader.int32();
|
|
426
426
|
continue;
|
|
427
427
|
}
|
|
428
428
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -437,7 +437,7 @@ exports.Data = {
|
|
|
437
437
|
transactions: globalThis.Array.isArray(object?.transactions)
|
|
438
438
|
? object.transactions.map((e) => exports.Transactions.fromJSON(e))
|
|
439
439
|
: [],
|
|
440
|
-
count: isSet(object.count) ? globalThis.
|
|
440
|
+
count: isSet(object.count) ? globalThis.Number(object.count) : undefined,
|
|
441
441
|
};
|
|
442
442
|
},
|
|
443
443
|
toJSON(message) {
|
|
@@ -446,7 +446,7 @@ exports.Data = {
|
|
|
446
446
|
obj.transactions = message.transactions.map((e) => exports.Transactions.toJSON(e));
|
|
447
447
|
}
|
|
448
448
|
if (message.count !== undefined) {
|
|
449
|
-
obj.count = message.count;
|
|
449
|
+
obj.count = Math.round(message.count);
|
|
450
450
|
}
|
|
451
451
|
return obj;
|
|
452
452
|
},
|
package/ts/upi.d.ts
CHANGED
|
@@ -222,6 +222,15 @@ export declare const upiService: {
|
|
|
222
222
|
readonly responseSerialize: (value: initiateMandateActionResponse) => Buffer;
|
|
223
223
|
readonly responseDeserialize: (value: Buffer) => initiateMandateActionResponse;
|
|
224
224
|
};
|
|
225
|
+
readonly checkMandateStatus: {
|
|
226
|
+
readonly path: "/service.upi/checkMandateStatus";
|
|
227
|
+
readonly requestStream: false;
|
|
228
|
+
readonly responseStream: false;
|
|
229
|
+
readonly requestSerialize: (value: checkTransactionStatusRequest) => Buffer;
|
|
230
|
+
readonly requestDeserialize: (value: Buffer) => checkTransactionStatusRequest;
|
|
231
|
+
readonly responseSerialize: (value: checkTransactionStatusResponse) => Buffer;
|
|
232
|
+
readonly responseDeserialize: (value: Buffer) => checkTransactionStatusResponse;
|
|
233
|
+
};
|
|
225
234
|
};
|
|
226
235
|
export interface upiServer extends UntypedServiceImplementation {
|
|
227
236
|
getListedAccountProviders: handleUnaryCall<getListedAccountProvidersRequest, getListedAccountProvidersResponse>;
|
|
@@ -246,6 +255,7 @@ export interface upiServer extends UntypedServiceImplementation {
|
|
|
246
255
|
getMandateDetails: handleUnaryCall<getMandatesDetailsRequest, getMandateDetailsReponse>;
|
|
247
256
|
getUpiNumbers: handleUnaryCall<getUpiNumbersRequest, getUpiNumbersResponse>;
|
|
248
257
|
initiateMandateAction: handleUnaryCall<initiateMandateActionRequest, initiateMandateActionResponse>;
|
|
258
|
+
checkMandateStatus: handleUnaryCall<checkTransactionStatusRequest, checkTransactionStatusResponse>;
|
|
249
259
|
}
|
|
250
260
|
export interface upiClient extends Client {
|
|
251
261
|
getListedAccountProviders(request: getListedAccountProvidersRequest, callback: (error: ServiceError | null, response: getListedAccountProvidersResponse) => void): ClientUnaryCall;
|
|
@@ -314,6 +324,9 @@ export interface upiClient extends Client {
|
|
|
314
324
|
initiateMandateAction(request: initiateMandateActionRequest, callback: (error: ServiceError | null, response: initiateMandateActionResponse) => void): ClientUnaryCall;
|
|
315
325
|
initiateMandateAction(request: initiateMandateActionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: initiateMandateActionResponse) => void): ClientUnaryCall;
|
|
316
326
|
initiateMandateAction(request: initiateMandateActionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: initiateMandateActionResponse) => void): ClientUnaryCall;
|
|
327
|
+
checkMandateStatus(request: checkTransactionStatusRequest, callback: (error: ServiceError | null, response: checkTransactionStatusResponse) => void): ClientUnaryCall;
|
|
328
|
+
checkMandateStatus(request: checkTransactionStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: checkTransactionStatusResponse) => void): ClientUnaryCall;
|
|
329
|
+
checkMandateStatus(request: checkTransactionStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: checkTransactionStatusResponse) => void): ClientUnaryCall;
|
|
317
330
|
}
|
|
318
331
|
export declare const upiClient: {
|
|
319
332
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): upiClient;
|
package/ts/upi.js
CHANGED
|
@@ -230,5 +230,14 @@ exports.upiService = {
|
|
|
230
230
|
responseSerialize: (value) => Buffer.from(initiatemandateaction_1.initiateMandateActionResponse.encode(value).finish()),
|
|
231
231
|
responseDeserialize: (value) => initiatemandateaction_1.initiateMandateActionResponse.decode(value),
|
|
232
232
|
},
|
|
233
|
+
checkMandateStatus: {
|
|
234
|
+
path: "/service.upi/checkMandateStatus",
|
|
235
|
+
requestStream: false,
|
|
236
|
+
responseStream: false,
|
|
237
|
+
requestSerialize: (value) => Buffer.from(checktransactionstatus_1.checkTransactionStatusRequest.encode(value).finish()),
|
|
238
|
+
requestDeserialize: (value) => checktransactionstatus_1.checkTransactionStatusRequest.decode(value),
|
|
239
|
+
responseSerialize: (value) => Buffer.from(checktransactionstatus_1.checkTransactionStatusResponse.encode(value).finish()),
|
|
240
|
+
responseDeserialize: (value) => checktransactionstatus_1.checkTransactionStatusResponse.decode(value),
|
|
241
|
+
},
|
|
233
242
|
};
|
|
234
243
|
exports.upiClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.upiService, "service.upi");
|