@stashfin/grpc 1.2.455 → 1.2.457
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 +1 -1
- package/ts/upi/initiatetransaction.d.ts +44 -0
- package/ts/upi/initiatetransaction.js +255 -0
- package/ts/upi/updatedevicelinking.d.ts +2 -12
- package/ts/upi/updatedevicelinking.js +34 -71
- package/ts/upi.d.ts +14 -0
- package/ts/upi.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "upi.initiateTransaction";
|
|
3
|
+
export interface initiateTransactionRequest {
|
|
4
|
+
mobile: string;
|
|
5
|
+
amount: number;
|
|
6
|
+
note?: string | undefined;
|
|
7
|
+
txn_type: string;
|
|
8
|
+
txn_status: string;
|
|
9
|
+
payee_vpa?: string | undefined;
|
|
10
|
+
payer_vpa?: string | undefined;
|
|
11
|
+
}
|
|
12
|
+
export interface initiateTransactionResponse {
|
|
13
|
+
seq_no: string;
|
|
14
|
+
txn_hash: string;
|
|
15
|
+
status: string;
|
|
16
|
+
message: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const initiateTransactionRequest: {
|
|
19
|
+
encode(message: initiateTransactionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): initiateTransactionRequest;
|
|
21
|
+
fromJSON(object: any): initiateTransactionRequest;
|
|
22
|
+
toJSON(message: initiateTransactionRequest): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<initiateTransactionRequest>, I>>(base?: I): initiateTransactionRequest;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<initiateTransactionRequest>, I>>(object: I): initiateTransactionRequest;
|
|
25
|
+
};
|
|
26
|
+
export declare const initiateTransactionResponse: {
|
|
27
|
+
encode(message: initiateTransactionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
28
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): initiateTransactionResponse;
|
|
29
|
+
fromJSON(object: any): initiateTransactionResponse;
|
|
30
|
+
toJSON(message: initiateTransactionResponse): unknown;
|
|
31
|
+
create<I extends Exact<DeepPartial<initiateTransactionResponse>, I>>(base?: I): initiateTransactionResponse;
|
|
32
|
+
fromPartial<I extends Exact<DeepPartial<initiateTransactionResponse>, I>>(object: I): initiateTransactionResponse;
|
|
33
|
+
};
|
|
34
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
35
|
+
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 {} ? {
|
|
36
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
37
|
+
} : Partial<T>;
|
|
38
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
39
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
40
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
41
|
+
} & {
|
|
42
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
43
|
+
};
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,255 @@
|
|
|
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/initiatetransaction.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.initiateTransactionResponse = exports.initiateTransactionRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "upi.initiateTransaction";
|
|
15
|
+
function createBaseinitiateTransactionRequest() {
|
|
16
|
+
return {
|
|
17
|
+
mobile: "",
|
|
18
|
+
amount: 0,
|
|
19
|
+
note: undefined,
|
|
20
|
+
txn_type: "",
|
|
21
|
+
txn_status: "",
|
|
22
|
+
payee_vpa: undefined,
|
|
23
|
+
payer_vpa: undefined,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
exports.initiateTransactionRequest = {
|
|
27
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
28
|
+
if (message.mobile !== "") {
|
|
29
|
+
writer.uint32(10).string(message.mobile);
|
|
30
|
+
}
|
|
31
|
+
if (message.amount !== 0) {
|
|
32
|
+
writer.uint32(21).float(message.amount);
|
|
33
|
+
}
|
|
34
|
+
if (message.note !== undefined) {
|
|
35
|
+
writer.uint32(26).string(message.note);
|
|
36
|
+
}
|
|
37
|
+
if (message.txn_type !== "") {
|
|
38
|
+
writer.uint32(34).string(message.txn_type);
|
|
39
|
+
}
|
|
40
|
+
if (message.txn_status !== "") {
|
|
41
|
+
writer.uint32(42).string(message.txn_status);
|
|
42
|
+
}
|
|
43
|
+
if (message.payee_vpa !== undefined) {
|
|
44
|
+
writer.uint32(50).string(message.payee_vpa);
|
|
45
|
+
}
|
|
46
|
+
if (message.payer_vpa !== undefined) {
|
|
47
|
+
writer.uint32(58).string(message.payer_vpa);
|
|
48
|
+
}
|
|
49
|
+
return writer;
|
|
50
|
+
},
|
|
51
|
+
decode(input, length) {
|
|
52
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
53
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
54
|
+
const message = createBaseinitiateTransactionRequest();
|
|
55
|
+
while (reader.pos < end) {
|
|
56
|
+
const tag = reader.uint32();
|
|
57
|
+
switch (tag >>> 3) {
|
|
58
|
+
case 1:
|
|
59
|
+
if (tag !== 10) {
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
message.mobile = reader.string();
|
|
63
|
+
continue;
|
|
64
|
+
case 2:
|
|
65
|
+
if (tag !== 21) {
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
message.amount = reader.float();
|
|
69
|
+
continue;
|
|
70
|
+
case 3:
|
|
71
|
+
if (tag !== 26) {
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
message.note = reader.string();
|
|
75
|
+
continue;
|
|
76
|
+
case 4:
|
|
77
|
+
if (tag !== 34) {
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
message.txn_type = reader.string();
|
|
81
|
+
continue;
|
|
82
|
+
case 5:
|
|
83
|
+
if (tag !== 42) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.txn_status = reader.string();
|
|
87
|
+
continue;
|
|
88
|
+
case 6:
|
|
89
|
+
if (tag !== 50) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
message.payee_vpa = reader.string();
|
|
93
|
+
continue;
|
|
94
|
+
case 7:
|
|
95
|
+
if (tag !== 58) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
message.payer_vpa = reader.string();
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
reader.skipType(tag & 7);
|
|
105
|
+
}
|
|
106
|
+
return message;
|
|
107
|
+
},
|
|
108
|
+
fromJSON(object) {
|
|
109
|
+
return {
|
|
110
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
111
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
112
|
+
note: isSet(object.note) ? globalThis.String(object.note) : undefined,
|
|
113
|
+
txn_type: isSet(object.txn_type) ? globalThis.String(object.txn_type) : "",
|
|
114
|
+
txn_status: isSet(object.txn_status) ? globalThis.String(object.txn_status) : "",
|
|
115
|
+
payee_vpa: isSet(object.payee_vpa) ? globalThis.String(object.payee_vpa) : undefined,
|
|
116
|
+
payer_vpa: isSet(object.payer_vpa) ? globalThis.String(object.payer_vpa) : undefined,
|
|
117
|
+
};
|
|
118
|
+
},
|
|
119
|
+
toJSON(message) {
|
|
120
|
+
const obj = {};
|
|
121
|
+
if (message.mobile !== "") {
|
|
122
|
+
obj.mobile = message.mobile;
|
|
123
|
+
}
|
|
124
|
+
if (message.amount !== 0) {
|
|
125
|
+
obj.amount = message.amount;
|
|
126
|
+
}
|
|
127
|
+
if (message.note !== undefined) {
|
|
128
|
+
obj.note = message.note;
|
|
129
|
+
}
|
|
130
|
+
if (message.txn_type !== "") {
|
|
131
|
+
obj.txn_type = message.txn_type;
|
|
132
|
+
}
|
|
133
|
+
if (message.txn_status !== "") {
|
|
134
|
+
obj.txn_status = message.txn_status;
|
|
135
|
+
}
|
|
136
|
+
if (message.payee_vpa !== undefined) {
|
|
137
|
+
obj.payee_vpa = message.payee_vpa;
|
|
138
|
+
}
|
|
139
|
+
if (message.payer_vpa !== undefined) {
|
|
140
|
+
obj.payer_vpa = message.payer_vpa;
|
|
141
|
+
}
|
|
142
|
+
return obj;
|
|
143
|
+
},
|
|
144
|
+
create(base) {
|
|
145
|
+
return exports.initiateTransactionRequest.fromPartial(base ?? {});
|
|
146
|
+
},
|
|
147
|
+
fromPartial(object) {
|
|
148
|
+
const message = createBaseinitiateTransactionRequest();
|
|
149
|
+
message.mobile = object.mobile ?? "";
|
|
150
|
+
message.amount = object.amount ?? 0;
|
|
151
|
+
message.note = object.note ?? undefined;
|
|
152
|
+
message.txn_type = object.txn_type ?? "";
|
|
153
|
+
message.txn_status = object.txn_status ?? "";
|
|
154
|
+
message.payee_vpa = object.payee_vpa ?? undefined;
|
|
155
|
+
message.payer_vpa = object.payer_vpa ?? undefined;
|
|
156
|
+
return message;
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
function createBaseinitiateTransactionResponse() {
|
|
160
|
+
return { seq_no: "", txn_hash: "", status: "", message: "" };
|
|
161
|
+
}
|
|
162
|
+
exports.initiateTransactionResponse = {
|
|
163
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
164
|
+
if (message.seq_no !== "") {
|
|
165
|
+
writer.uint32(10).string(message.seq_no);
|
|
166
|
+
}
|
|
167
|
+
if (message.txn_hash !== "") {
|
|
168
|
+
writer.uint32(18).string(message.txn_hash);
|
|
169
|
+
}
|
|
170
|
+
if (message.status !== "") {
|
|
171
|
+
writer.uint32(26).string(message.status);
|
|
172
|
+
}
|
|
173
|
+
if (message.message !== "") {
|
|
174
|
+
writer.uint32(34).string(message.message);
|
|
175
|
+
}
|
|
176
|
+
return writer;
|
|
177
|
+
},
|
|
178
|
+
decode(input, length) {
|
|
179
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
180
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
181
|
+
const message = createBaseinitiateTransactionResponse();
|
|
182
|
+
while (reader.pos < end) {
|
|
183
|
+
const tag = reader.uint32();
|
|
184
|
+
switch (tag >>> 3) {
|
|
185
|
+
case 1:
|
|
186
|
+
if (tag !== 10) {
|
|
187
|
+
break;
|
|
188
|
+
}
|
|
189
|
+
message.seq_no = reader.string();
|
|
190
|
+
continue;
|
|
191
|
+
case 2:
|
|
192
|
+
if (tag !== 18) {
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
message.txn_hash = reader.string();
|
|
196
|
+
continue;
|
|
197
|
+
case 3:
|
|
198
|
+
if (tag !== 26) {
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
message.status = reader.string();
|
|
202
|
+
continue;
|
|
203
|
+
case 4:
|
|
204
|
+
if (tag !== 34) {
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
|
+
message.message = reader.string();
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
reader.skipType(tag & 7);
|
|
214
|
+
}
|
|
215
|
+
return message;
|
|
216
|
+
},
|
|
217
|
+
fromJSON(object) {
|
|
218
|
+
return {
|
|
219
|
+
seq_no: isSet(object.seq_no) ? globalThis.String(object.seq_no) : "",
|
|
220
|
+
txn_hash: isSet(object.txn_hash) ? globalThis.String(object.txn_hash) : "",
|
|
221
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
222
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
223
|
+
};
|
|
224
|
+
},
|
|
225
|
+
toJSON(message) {
|
|
226
|
+
const obj = {};
|
|
227
|
+
if (message.seq_no !== "") {
|
|
228
|
+
obj.seq_no = message.seq_no;
|
|
229
|
+
}
|
|
230
|
+
if (message.txn_hash !== "") {
|
|
231
|
+
obj.txn_hash = message.txn_hash;
|
|
232
|
+
}
|
|
233
|
+
if (message.status !== "") {
|
|
234
|
+
obj.status = message.status;
|
|
235
|
+
}
|
|
236
|
+
if (message.message !== "") {
|
|
237
|
+
obj.message = message.message;
|
|
238
|
+
}
|
|
239
|
+
return obj;
|
|
240
|
+
},
|
|
241
|
+
create(base) {
|
|
242
|
+
return exports.initiateTransactionResponse.fromPartial(base ?? {});
|
|
243
|
+
},
|
|
244
|
+
fromPartial(object) {
|
|
245
|
+
const message = createBaseinitiateTransactionResponse();
|
|
246
|
+
message.seq_no = object.seq_no ?? "";
|
|
247
|
+
message.txn_hash = object.txn_hash ?? "";
|
|
248
|
+
message.status = object.status ?? "";
|
|
249
|
+
message.message = object.message ?? "";
|
|
250
|
+
return message;
|
|
251
|
+
},
|
|
252
|
+
};
|
|
253
|
+
function isSet(value) {
|
|
254
|
+
return value !== null && value !== undefined;
|
|
255
|
+
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "upi.updateDeviceLinking";
|
|
3
3
|
export interface updateDeviceLinkingRequest {
|
|
4
|
-
account: AccountInfo | undefined;
|
|
5
|
-
}
|
|
6
|
-
export interface AccountInfo {
|
|
7
4
|
acc_number: string;
|
|
8
5
|
acc_ref_number: string;
|
|
9
6
|
acc_type: string;
|
|
@@ -11,7 +8,8 @@ export interface AccountInfo {
|
|
|
11
8
|
aeba?: string | undefined;
|
|
12
9
|
mbeba?: string | undefined;
|
|
13
10
|
ifsc: string;
|
|
14
|
-
vpa
|
|
11
|
+
vpa?: string | undefined;
|
|
12
|
+
mmid?: string | undefined;
|
|
15
13
|
default_credit: string;
|
|
16
14
|
default_debit: string;
|
|
17
15
|
status: string;
|
|
@@ -30,14 +28,6 @@ export declare const updateDeviceLinkingRequest: {
|
|
|
30
28
|
create<I extends Exact<DeepPartial<updateDeviceLinkingRequest>, I>>(base?: I): updateDeviceLinkingRequest;
|
|
31
29
|
fromPartial<I extends Exact<DeepPartial<updateDeviceLinkingRequest>, I>>(object: I): updateDeviceLinkingRequest;
|
|
32
30
|
};
|
|
33
|
-
export declare const AccountInfo: {
|
|
34
|
-
encode(message: AccountInfo, writer?: _m0.Writer): _m0.Writer;
|
|
35
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): AccountInfo;
|
|
36
|
-
fromJSON(object: any): AccountInfo;
|
|
37
|
-
toJSON(message: AccountInfo): unknown;
|
|
38
|
-
create<I extends Exact<DeepPartial<AccountInfo>, I>>(base?: I): AccountInfo;
|
|
39
|
-
fromPartial<I extends Exact<DeepPartial<AccountInfo>, I>>(object: I): AccountInfo;
|
|
40
|
-
};
|
|
41
31
|
export declare const updateDeviceLinkingResponse: {
|
|
42
32
|
encode(message: updateDeviceLinkingResponse, writer?: _m0.Writer): _m0.Writer;
|
|
43
33
|
decode(input: _m0.Reader | Uint8Array, length?: number): updateDeviceLinkingResponse;
|
|
@@ -8,63 +8,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.updateDeviceLinkingResponse = exports.
|
|
11
|
+
exports.updateDeviceLinkingResponse = exports.updateDeviceLinkingRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "upi.updateDeviceLinking";
|
|
15
15
|
function createBaseupdateDeviceLinkingRequest() {
|
|
16
|
-
return { account: undefined };
|
|
17
|
-
}
|
|
18
|
-
exports.updateDeviceLinkingRequest = {
|
|
19
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.account !== undefined) {
|
|
21
|
-
exports.AccountInfo.encode(message.account, writer.uint32(10).fork()).ldelim();
|
|
22
|
-
}
|
|
23
|
-
return writer;
|
|
24
|
-
},
|
|
25
|
-
decode(input, length) {
|
|
26
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
-
const message = createBaseupdateDeviceLinkingRequest();
|
|
29
|
-
while (reader.pos < end) {
|
|
30
|
-
const tag = reader.uint32();
|
|
31
|
-
switch (tag >>> 3) {
|
|
32
|
-
case 1:
|
|
33
|
-
if (tag !== 10) {
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
message.account = exports.AccountInfo.decode(reader, reader.uint32());
|
|
37
|
-
continue;
|
|
38
|
-
}
|
|
39
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
reader.skipType(tag & 7);
|
|
43
|
-
}
|
|
44
|
-
return message;
|
|
45
|
-
},
|
|
46
|
-
fromJSON(object) {
|
|
47
|
-
return { account: isSet(object.account) ? exports.AccountInfo.fromJSON(object.account) : undefined };
|
|
48
|
-
},
|
|
49
|
-
toJSON(message) {
|
|
50
|
-
const obj = {};
|
|
51
|
-
if (message.account !== undefined) {
|
|
52
|
-
obj.account = exports.AccountInfo.toJSON(message.account);
|
|
53
|
-
}
|
|
54
|
-
return obj;
|
|
55
|
-
},
|
|
56
|
-
create(base) {
|
|
57
|
-
return exports.updateDeviceLinkingRequest.fromPartial(base ?? {});
|
|
58
|
-
},
|
|
59
|
-
fromPartial(object) {
|
|
60
|
-
const message = createBaseupdateDeviceLinkingRequest();
|
|
61
|
-
message.account = (object.account !== undefined && object.account !== null)
|
|
62
|
-
? exports.AccountInfo.fromPartial(object.account)
|
|
63
|
-
: undefined;
|
|
64
|
-
return message;
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
function createBaseAccountInfo() {
|
|
68
16
|
return {
|
|
69
17
|
acc_number: "",
|
|
70
18
|
acc_ref_number: "",
|
|
@@ -73,7 +21,8 @@ function createBaseAccountInfo() {
|
|
|
73
21
|
aeba: undefined,
|
|
74
22
|
mbeba: undefined,
|
|
75
23
|
ifsc: "",
|
|
76
|
-
vpa:
|
|
24
|
+
vpa: undefined,
|
|
25
|
+
mmid: undefined,
|
|
77
26
|
default_credit: "",
|
|
78
27
|
default_debit: "",
|
|
79
28
|
status: "",
|
|
@@ -81,7 +30,7 @@ function createBaseAccountInfo() {
|
|
|
81
30
|
is_active: undefined,
|
|
82
31
|
};
|
|
83
32
|
}
|
|
84
|
-
exports.
|
|
33
|
+
exports.updateDeviceLinkingRequest = {
|
|
85
34
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
35
|
if (message.acc_number !== "") {
|
|
87
36
|
writer.uint32(10).string(message.acc_number);
|
|
@@ -104,30 +53,33 @@ exports.AccountInfo = {
|
|
|
104
53
|
if (message.ifsc !== "") {
|
|
105
54
|
writer.uint32(58).string(message.ifsc);
|
|
106
55
|
}
|
|
107
|
-
if (message.vpa !==
|
|
56
|
+
if (message.vpa !== undefined) {
|
|
108
57
|
writer.uint32(66).string(message.vpa);
|
|
109
58
|
}
|
|
59
|
+
if (message.mmid !== undefined) {
|
|
60
|
+
writer.uint32(74).string(message.mmid);
|
|
61
|
+
}
|
|
110
62
|
if (message.default_credit !== "") {
|
|
111
|
-
writer.uint32(
|
|
63
|
+
writer.uint32(82).string(message.default_credit);
|
|
112
64
|
}
|
|
113
65
|
if (message.default_debit !== "") {
|
|
114
|
-
writer.uint32(
|
|
66
|
+
writer.uint32(90).string(message.default_debit);
|
|
115
67
|
}
|
|
116
68
|
if (message.status !== "") {
|
|
117
|
-
writer.uint32(
|
|
69
|
+
writer.uint32(98).string(message.status);
|
|
118
70
|
}
|
|
119
71
|
if (message.is_primary !== undefined) {
|
|
120
|
-
writer.uint32(
|
|
72
|
+
writer.uint32(106).string(message.is_primary);
|
|
121
73
|
}
|
|
122
74
|
if (message.is_active !== undefined) {
|
|
123
|
-
writer.uint32(
|
|
75
|
+
writer.uint32(114).string(message.is_active);
|
|
124
76
|
}
|
|
125
77
|
return writer;
|
|
126
78
|
},
|
|
127
79
|
decode(input, length) {
|
|
128
80
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
129
81
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
130
|
-
const message =
|
|
82
|
+
const message = createBaseupdateDeviceLinkingRequest();
|
|
131
83
|
while (reader.pos < end) {
|
|
132
84
|
const tag = reader.uint32();
|
|
133
85
|
switch (tag >>> 3) {
|
|
@@ -183,30 +135,36 @@ exports.AccountInfo = {
|
|
|
183
135
|
if (tag !== 74) {
|
|
184
136
|
break;
|
|
185
137
|
}
|
|
186
|
-
message.
|
|
138
|
+
message.mmid = reader.string();
|
|
187
139
|
continue;
|
|
188
140
|
case 10:
|
|
189
141
|
if (tag !== 82) {
|
|
190
142
|
break;
|
|
191
143
|
}
|
|
192
|
-
message.
|
|
144
|
+
message.default_credit = reader.string();
|
|
193
145
|
continue;
|
|
194
146
|
case 11:
|
|
195
147
|
if (tag !== 90) {
|
|
196
148
|
break;
|
|
197
149
|
}
|
|
198
|
-
message.
|
|
150
|
+
message.default_debit = reader.string();
|
|
199
151
|
continue;
|
|
200
152
|
case 12:
|
|
201
153
|
if (tag !== 98) {
|
|
202
154
|
break;
|
|
203
155
|
}
|
|
204
|
-
message.
|
|
156
|
+
message.status = reader.string();
|
|
205
157
|
continue;
|
|
206
158
|
case 13:
|
|
207
159
|
if (tag !== 106) {
|
|
208
160
|
break;
|
|
209
161
|
}
|
|
162
|
+
message.is_primary = reader.string();
|
|
163
|
+
continue;
|
|
164
|
+
case 14:
|
|
165
|
+
if (tag !== 114) {
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
210
168
|
message.is_active = reader.string();
|
|
211
169
|
continue;
|
|
212
170
|
}
|
|
@@ -226,7 +184,8 @@ exports.AccountInfo = {
|
|
|
226
184
|
aeba: isSet(object.aeba) ? globalThis.String(object.aeba) : undefined,
|
|
227
185
|
mbeba: isSet(object.mbeba) ? globalThis.String(object.mbeba) : undefined,
|
|
228
186
|
ifsc: isSet(object.ifsc) ? globalThis.String(object.ifsc) : "",
|
|
229
|
-
vpa: isSet(object.vpa) ? globalThis.String(object.vpa) :
|
|
187
|
+
vpa: isSet(object.vpa) ? globalThis.String(object.vpa) : undefined,
|
|
188
|
+
mmid: isSet(object.mmid) ? globalThis.String(object.mmid) : undefined,
|
|
230
189
|
default_credit: isSet(object.default_credit) ? globalThis.String(object.default_credit) : "",
|
|
231
190
|
default_debit: isSet(object.default_debit) ? globalThis.String(object.default_debit) : "",
|
|
232
191
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
@@ -257,9 +216,12 @@ exports.AccountInfo = {
|
|
|
257
216
|
if (message.ifsc !== "") {
|
|
258
217
|
obj.ifsc = message.ifsc;
|
|
259
218
|
}
|
|
260
|
-
if (message.vpa !==
|
|
219
|
+
if (message.vpa !== undefined) {
|
|
261
220
|
obj.vpa = message.vpa;
|
|
262
221
|
}
|
|
222
|
+
if (message.mmid !== undefined) {
|
|
223
|
+
obj.mmid = message.mmid;
|
|
224
|
+
}
|
|
263
225
|
if (message.default_credit !== "") {
|
|
264
226
|
obj.default_credit = message.default_credit;
|
|
265
227
|
}
|
|
@@ -278,10 +240,10 @@ exports.AccountInfo = {
|
|
|
278
240
|
return obj;
|
|
279
241
|
},
|
|
280
242
|
create(base) {
|
|
281
|
-
return exports.
|
|
243
|
+
return exports.updateDeviceLinkingRequest.fromPartial(base ?? {});
|
|
282
244
|
},
|
|
283
245
|
fromPartial(object) {
|
|
284
|
-
const message =
|
|
246
|
+
const message = createBaseupdateDeviceLinkingRequest();
|
|
285
247
|
message.acc_number = object.acc_number ?? "";
|
|
286
248
|
message.acc_ref_number = object.acc_ref_number ?? "";
|
|
287
249
|
message.acc_type = object.acc_type ?? "";
|
|
@@ -289,7 +251,8 @@ exports.AccountInfo = {
|
|
|
289
251
|
message.aeba = object.aeba ?? undefined;
|
|
290
252
|
message.mbeba = object.mbeba ?? undefined;
|
|
291
253
|
message.ifsc = object.ifsc ?? "";
|
|
292
|
-
message.vpa = object.vpa ??
|
|
254
|
+
message.vpa = object.vpa ?? undefined;
|
|
255
|
+
message.mmid = object.mmid ?? undefined;
|
|
293
256
|
message.default_credit = object.default_credit ?? "";
|
|
294
257
|
message.default_debit = object.default_debit ?? "";
|
|
295
258
|
message.status = object.status ?? "";
|
package/ts/upi.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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 { getAvailableVPARequest, getAvailableVPAResponse } from "./upi/getavailablevpa";
|
|
3
3
|
import { getListedAccountProvidersRequest, getListedAccountProvidersResponse } from "./upi/getlistedaccountproviders";
|
|
4
|
+
import { initiateTransactionRequest, initiateTransactionResponse } from "./upi/initiatetransaction";
|
|
4
5
|
import { updateDeviceBindingRequest, updateDeviceBindingResponse } from "./upi/updatedevicebinding";
|
|
5
6
|
import { updateDeviceLinkingRequest, updateDeviceLinkingResponse } from "./upi/updatedevicelinking";
|
|
6
7
|
export declare const protobufPackage = "service";
|
|
@@ -42,12 +43,22 @@ export declare const upiService: {
|
|
|
42
43
|
readonly responseSerialize: (value: getAvailableVPAResponse) => Buffer;
|
|
43
44
|
readonly responseDeserialize: (value: Buffer) => getAvailableVPAResponse;
|
|
44
45
|
};
|
|
46
|
+
readonly initiateTransaction: {
|
|
47
|
+
readonly path: "/service.upi/initiateTransaction";
|
|
48
|
+
readonly requestStream: false;
|
|
49
|
+
readonly responseStream: false;
|
|
50
|
+
readonly requestSerialize: (value: initiateTransactionRequest) => Buffer;
|
|
51
|
+
readonly requestDeserialize: (value: Buffer) => initiateTransactionRequest;
|
|
52
|
+
readonly responseSerialize: (value: initiateTransactionResponse) => Buffer;
|
|
53
|
+
readonly responseDeserialize: (value: Buffer) => initiateTransactionResponse;
|
|
54
|
+
};
|
|
45
55
|
};
|
|
46
56
|
export interface upiServer extends UntypedServiceImplementation {
|
|
47
57
|
getListedAccountProviders: handleUnaryCall<getListedAccountProvidersRequest, getListedAccountProvidersResponse>;
|
|
48
58
|
updateDeviceBinding: handleUnaryCall<updateDeviceBindingRequest, updateDeviceBindingResponse>;
|
|
49
59
|
updateDeviceLinking: handleUnaryCall<updateDeviceLinkingRequest, updateDeviceLinkingResponse>;
|
|
50
60
|
getAvailableVpa: handleUnaryCall<getAvailableVPARequest, getAvailableVPAResponse>;
|
|
61
|
+
initiateTransaction: handleUnaryCall<initiateTransactionRequest, initiateTransactionResponse>;
|
|
51
62
|
}
|
|
52
63
|
export interface upiClient extends Client {
|
|
53
64
|
getListedAccountProviders(request: getListedAccountProvidersRequest, callback: (error: ServiceError | null, response: getListedAccountProvidersResponse) => void): ClientUnaryCall;
|
|
@@ -62,6 +73,9 @@ export interface upiClient extends Client {
|
|
|
62
73
|
getAvailableVpa(request: getAvailableVPARequest, callback: (error: ServiceError | null, response: getAvailableVPAResponse) => void): ClientUnaryCall;
|
|
63
74
|
getAvailableVpa(request: getAvailableVPARequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAvailableVPAResponse) => void): ClientUnaryCall;
|
|
64
75
|
getAvailableVpa(request: getAvailableVPARequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAvailableVPAResponse) => void): ClientUnaryCall;
|
|
76
|
+
initiateTransaction(request: initiateTransactionRequest, callback: (error: ServiceError | null, response: initiateTransactionResponse) => void): ClientUnaryCall;
|
|
77
|
+
initiateTransaction(request: initiateTransactionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: initiateTransactionResponse) => void): ClientUnaryCall;
|
|
78
|
+
initiateTransaction(request: initiateTransactionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: initiateTransactionResponse) => void): ClientUnaryCall;
|
|
65
79
|
}
|
|
66
80
|
export declare const upiClient: {
|
|
67
81
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): upiClient;
|
package/ts/upi.js
CHANGED
|
@@ -10,6 +10,7 @@ exports.upiClient = exports.upiService = exports.protobufPackage = void 0;
|
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
11
|
const getavailablevpa_1 = require("./upi/getavailablevpa");
|
|
12
12
|
const getlistedaccountproviders_1 = require("./upi/getlistedaccountproviders");
|
|
13
|
+
const initiatetransaction_1 = require("./upi/initiatetransaction");
|
|
13
14
|
const updatedevicebinding_1 = require("./upi/updatedevicebinding");
|
|
14
15
|
const updatedevicelinking_1 = require("./upi/updatedevicelinking");
|
|
15
16
|
exports.protobufPackage = "service";
|
|
@@ -50,5 +51,14 @@ exports.upiService = {
|
|
|
50
51
|
responseSerialize: (value) => Buffer.from(getavailablevpa_1.getAvailableVPAResponse.encode(value).finish()),
|
|
51
52
|
responseDeserialize: (value) => getavailablevpa_1.getAvailableVPAResponse.decode(value),
|
|
52
53
|
},
|
|
54
|
+
initiateTransaction: {
|
|
55
|
+
path: "/service.upi/initiateTransaction",
|
|
56
|
+
requestStream: false,
|
|
57
|
+
responseStream: false,
|
|
58
|
+
requestSerialize: (value) => Buffer.from(initiatetransaction_1.initiateTransactionRequest.encode(value).finish()),
|
|
59
|
+
requestDeserialize: (value) => initiatetransaction_1.initiateTransactionRequest.decode(value),
|
|
60
|
+
responseSerialize: (value) => Buffer.from(initiatetransaction_1.initiateTransactionResponse.encode(value).finish()),
|
|
61
|
+
responseDeserialize: (value) => initiatetransaction_1.initiateTransactionResponse.decode(value),
|
|
62
|
+
},
|
|
53
63
|
};
|
|
54
64
|
exports.upiClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.upiService, "service.upi");
|