@stashfin/grpc 1.2.463 → 1.2.464

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.463",
3
+ "version": "1.2.464",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -0,0 +1,41 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "upi.checkTransactionStatus";
3
+ export interface checkTransactionStatusRequest {
4
+ device_id: string;
5
+ mobile: string;
6
+ ext_txn_id: string;
7
+ profile_id: string;
8
+ }
9
+ export interface checkTransactionStatusResponse {
10
+ txn_status: string;
11
+ ext_txn_id: string;
12
+ rrn: string;
13
+ message: string;
14
+ }
15
+ export declare const checkTransactionStatusRequest: {
16
+ encode(message: checkTransactionStatusRequest, writer?: _m0.Writer): _m0.Writer;
17
+ decode(input: _m0.Reader | Uint8Array, length?: number): checkTransactionStatusRequest;
18
+ fromJSON(object: any): checkTransactionStatusRequest;
19
+ toJSON(message: checkTransactionStatusRequest): unknown;
20
+ create<I extends Exact<DeepPartial<checkTransactionStatusRequest>, I>>(base?: I): checkTransactionStatusRequest;
21
+ fromPartial<I extends Exact<DeepPartial<checkTransactionStatusRequest>, I>>(object: I): checkTransactionStatusRequest;
22
+ };
23
+ export declare const checkTransactionStatusResponse: {
24
+ encode(message: checkTransactionStatusResponse, writer?: _m0.Writer): _m0.Writer;
25
+ decode(input: _m0.Reader | Uint8Array, length?: number): checkTransactionStatusResponse;
26
+ fromJSON(object: any): checkTransactionStatusResponse;
27
+ toJSON(message: checkTransactionStatusResponse): unknown;
28
+ create<I extends Exact<DeepPartial<checkTransactionStatusResponse>, I>>(base?: I): checkTransactionStatusResponse;
29
+ fromPartial<I extends Exact<DeepPartial<checkTransactionStatusResponse>, I>>(object: I): checkTransactionStatusResponse;
30
+ };
31
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
32
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
33
+ [K in keyof T]?: DeepPartial<T[K]>;
34
+ } : Partial<T>;
35
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
36
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
37
+ [K in keyof P]: Exact<P[K], I[K]>;
38
+ } & {
39
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
40
+ };
41
+ export {};
@@ -0,0 +1,205 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v5.29.0
6
+ // source: upi/checktransactionstatus.proto
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.checkTransactionStatusResponse = exports.checkTransactionStatusRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "upi.checkTransactionStatus";
15
+ function createBasecheckTransactionStatusRequest() {
16
+ return { device_id: "", mobile: "", ext_txn_id: "", profile_id: "" };
17
+ }
18
+ exports.checkTransactionStatusRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.device_id !== "") {
21
+ writer.uint32(10).string(message.device_id);
22
+ }
23
+ if (message.mobile !== "") {
24
+ writer.uint32(18).string(message.mobile);
25
+ }
26
+ if (message.ext_txn_id !== "") {
27
+ writer.uint32(26).string(message.ext_txn_id);
28
+ }
29
+ if (message.profile_id !== "") {
30
+ writer.uint32(34).string(message.profile_id);
31
+ }
32
+ return writer;
33
+ },
34
+ decode(input, length) {
35
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
36
+ let end = length === undefined ? reader.len : reader.pos + length;
37
+ const message = createBasecheckTransactionStatusRequest();
38
+ while (reader.pos < end) {
39
+ const tag = reader.uint32();
40
+ switch (tag >>> 3) {
41
+ case 1:
42
+ if (tag !== 10) {
43
+ break;
44
+ }
45
+ message.device_id = reader.string();
46
+ continue;
47
+ case 2:
48
+ if (tag !== 18) {
49
+ break;
50
+ }
51
+ message.mobile = reader.string();
52
+ continue;
53
+ case 3:
54
+ if (tag !== 26) {
55
+ break;
56
+ }
57
+ message.ext_txn_id = reader.string();
58
+ continue;
59
+ case 4:
60
+ if (tag !== 34) {
61
+ break;
62
+ }
63
+ message.profile_id = reader.string();
64
+ continue;
65
+ }
66
+ if ((tag & 7) === 4 || tag === 0) {
67
+ break;
68
+ }
69
+ reader.skipType(tag & 7);
70
+ }
71
+ return message;
72
+ },
73
+ fromJSON(object) {
74
+ return {
75
+ device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
76
+ mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
77
+ ext_txn_id: isSet(object.ext_txn_id) ? globalThis.String(object.ext_txn_id) : "",
78
+ profile_id: isSet(object.profile_id) ? globalThis.String(object.profile_id) : "",
79
+ };
80
+ },
81
+ toJSON(message) {
82
+ const obj = {};
83
+ if (message.device_id !== "") {
84
+ obj.device_id = message.device_id;
85
+ }
86
+ if (message.mobile !== "") {
87
+ obj.mobile = message.mobile;
88
+ }
89
+ if (message.ext_txn_id !== "") {
90
+ obj.ext_txn_id = message.ext_txn_id;
91
+ }
92
+ if (message.profile_id !== "") {
93
+ obj.profile_id = message.profile_id;
94
+ }
95
+ return obj;
96
+ },
97
+ create(base) {
98
+ return exports.checkTransactionStatusRequest.fromPartial(base ?? {});
99
+ },
100
+ fromPartial(object) {
101
+ const message = createBasecheckTransactionStatusRequest();
102
+ message.device_id = object.device_id ?? "";
103
+ message.mobile = object.mobile ?? "";
104
+ message.ext_txn_id = object.ext_txn_id ?? "";
105
+ message.profile_id = object.profile_id ?? "";
106
+ return message;
107
+ },
108
+ };
109
+ function createBasecheckTransactionStatusResponse() {
110
+ return { txn_status: "", ext_txn_id: "", rrn: "", message: "" };
111
+ }
112
+ exports.checkTransactionStatusResponse = {
113
+ encode(message, writer = minimal_1.default.Writer.create()) {
114
+ if (message.txn_status !== "") {
115
+ writer.uint32(10).string(message.txn_status);
116
+ }
117
+ if (message.ext_txn_id !== "") {
118
+ writer.uint32(18).string(message.ext_txn_id);
119
+ }
120
+ if (message.rrn !== "") {
121
+ writer.uint32(26).string(message.rrn);
122
+ }
123
+ if (message.message !== "") {
124
+ writer.uint32(34).string(message.message);
125
+ }
126
+ return writer;
127
+ },
128
+ decode(input, length) {
129
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
130
+ let end = length === undefined ? reader.len : reader.pos + length;
131
+ const message = createBasecheckTransactionStatusResponse();
132
+ while (reader.pos < end) {
133
+ const tag = reader.uint32();
134
+ switch (tag >>> 3) {
135
+ case 1:
136
+ if (tag !== 10) {
137
+ break;
138
+ }
139
+ message.txn_status = reader.string();
140
+ continue;
141
+ case 2:
142
+ if (tag !== 18) {
143
+ break;
144
+ }
145
+ message.ext_txn_id = reader.string();
146
+ continue;
147
+ case 3:
148
+ if (tag !== 26) {
149
+ break;
150
+ }
151
+ message.rrn = reader.string();
152
+ continue;
153
+ case 4:
154
+ if (tag !== 34) {
155
+ break;
156
+ }
157
+ message.message = reader.string();
158
+ continue;
159
+ }
160
+ if ((tag & 7) === 4 || tag === 0) {
161
+ break;
162
+ }
163
+ reader.skipType(tag & 7);
164
+ }
165
+ return message;
166
+ },
167
+ fromJSON(object) {
168
+ return {
169
+ txn_status: isSet(object.txn_status) ? globalThis.String(object.txn_status) : "",
170
+ ext_txn_id: isSet(object.ext_txn_id) ? globalThis.String(object.ext_txn_id) : "",
171
+ rrn: isSet(object.rrn) ? globalThis.String(object.rrn) : "",
172
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
173
+ };
174
+ },
175
+ toJSON(message) {
176
+ const obj = {};
177
+ if (message.txn_status !== "") {
178
+ obj.txn_status = message.txn_status;
179
+ }
180
+ if (message.ext_txn_id !== "") {
181
+ obj.ext_txn_id = message.ext_txn_id;
182
+ }
183
+ if (message.rrn !== "") {
184
+ obj.rrn = message.rrn;
185
+ }
186
+ if (message.message !== "") {
187
+ obj.message = message.message;
188
+ }
189
+ return obj;
190
+ },
191
+ create(base) {
192
+ return exports.checkTransactionStatusResponse.fromPartial(base ?? {});
193
+ },
194
+ fromPartial(object) {
195
+ const message = createBasecheckTransactionStatusResponse();
196
+ message.txn_status = object.txn_status ?? "";
197
+ message.ext_txn_id = object.ext_txn_id ?? "";
198
+ message.rrn = object.rrn ?? "";
199
+ message.message = object.message ?? "";
200
+ return message;
201
+ },
202
+ };
203
+ function isSet(value) {
204
+ return value !== null && value !== undefined;
205
+ }
package/ts/upi.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
2
  import { addAccountRequest, addAccountResponse } from "./upi/addaccount";
3
+ import { checkTransactionStatusRequest, checkTransactionStatusResponse } from "./upi/checktransactionstatus";
3
4
  import { getAccountsByProviderRequest, getAccountsByProviderResponse } from "./upi/getaccountsbyprovider";
4
5
  import { getAvailableVPARequest, getAvailableVPAResponse } from "./upi/getavailablevpa";
5
6
  import { getListedAccountProvidersRequest, getListedAccountProvidersResponse } from "./upi/getlistedaccountproviders";
@@ -82,6 +83,15 @@ export declare const upiService: {
82
83
  readonly responseSerialize: (value: getAccountsByProviderResponse) => Buffer;
83
84
  readonly responseDeserialize: (value: Buffer) => getAccountsByProviderResponse;
84
85
  };
86
+ readonly checkTransactionStatus: {
87
+ readonly path: "/service.upi/checkTransactionStatus";
88
+ readonly requestStream: false;
89
+ readonly responseStream: false;
90
+ readonly requestSerialize: (value: checkTransactionStatusRequest) => Buffer;
91
+ readonly requestDeserialize: (value: Buffer) => checkTransactionStatusRequest;
92
+ readonly responseSerialize: (value: checkTransactionStatusResponse) => Buffer;
93
+ readonly responseDeserialize: (value: Buffer) => checkTransactionStatusResponse;
94
+ };
85
95
  };
86
96
  export interface upiServer extends UntypedServiceImplementation {
87
97
  getListedAccountProviders: handleUnaryCall<getListedAccountProvidersRequest, getListedAccountProvidersResponse>;
@@ -92,6 +102,7 @@ export interface upiServer extends UntypedServiceImplementation {
92
102
  getProfile: handleUnaryCall<getProfileRequest, getProfileResponse>;
93
103
  validateVpa: handleUnaryCall<validateVPARequest, validateVPAResponse>;
94
104
  getAccountsByProvider: handleUnaryCall<getAccountsByProviderRequest, getAccountsByProviderResponse>;
105
+ checkTransactionStatus: handleUnaryCall<checkTransactionStatusRequest, checkTransactionStatusResponse>;
95
106
  }
96
107
  export interface upiClient extends Client {
97
108
  getListedAccountProviders(request: getListedAccountProvidersRequest, callback: (error: ServiceError | null, response: getListedAccountProvidersResponse) => void): ClientUnaryCall;
@@ -118,6 +129,9 @@ export interface upiClient extends Client {
118
129
  getAccountsByProvider(request: getAccountsByProviderRequest, callback: (error: ServiceError | null, response: getAccountsByProviderResponse) => void): ClientUnaryCall;
119
130
  getAccountsByProvider(request: getAccountsByProviderRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAccountsByProviderResponse) => void): ClientUnaryCall;
120
131
  getAccountsByProvider(request: getAccountsByProviderRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAccountsByProviderResponse) => void): ClientUnaryCall;
132
+ checkTransactionStatus(request: checkTransactionStatusRequest, callback: (error: ServiceError | null, response: checkTransactionStatusResponse) => void): ClientUnaryCall;
133
+ checkTransactionStatus(request: checkTransactionStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: checkTransactionStatusResponse) => void): ClientUnaryCall;
134
+ checkTransactionStatus(request: checkTransactionStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: checkTransactionStatusResponse) => void): ClientUnaryCall;
121
135
  }
122
136
  export declare const upiClient: {
123
137
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): upiClient;
package/ts/upi.js CHANGED
@@ -9,6 +9,7 @@ exports.upiClient = exports.upiService = exports.protobufPackage = void 0;
9
9
  /* eslint-disable */
10
10
  const grpc_js_1 = require("@grpc/grpc-js");
11
11
  const addaccount_1 = require("./upi/addaccount");
12
+ const checktransactionstatus_1 = require("./upi/checktransactionstatus");
12
13
  const getaccountsbyprovider_1 = require("./upi/getaccountsbyprovider");
13
14
  const getavailablevpa_1 = require("./upi/getavailablevpa");
14
15
  const getlistedaccountproviders_1 = require("./upi/getlistedaccountproviders");
@@ -90,5 +91,14 @@ exports.upiService = {
90
91
  responseSerialize: (value) => Buffer.from(getaccountsbyprovider_1.getAccountsByProviderResponse.encode(value).finish()),
91
92
  responseDeserialize: (value) => getaccountsbyprovider_1.getAccountsByProviderResponse.decode(value),
92
93
  },
94
+ checkTransactionStatus: {
95
+ path: "/service.upi/checkTransactionStatus",
96
+ requestStream: false,
97
+ responseStream: false,
98
+ requestSerialize: (value) => Buffer.from(checktransactionstatus_1.checkTransactionStatusRequest.encode(value).finish()),
99
+ requestDeserialize: (value) => checktransactionstatus_1.checkTransactionStatusRequest.decode(value),
100
+ responseSerialize: (value) => Buffer.from(checktransactionstatus_1.checkTransactionStatusResponse.encode(value).finish()),
101
+ responseDeserialize: (value) => checktransactionstatus_1.checkTransactionStatusResponse.decode(value),
102
+ },
93
103
  };
94
104
  exports.upiClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.upiService, "service.upi");