@stashfin/grpc 1.2.823 → 1.2.825
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/bbps/getallbbpstransactions.d.ts +64 -0
- package/ts/bbps/getallbbpstransactions.js +434 -0
- package/ts/bbps.d.ts +14 -0
- package/ts/bbps.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "bbps.getallbbpstransactions";
|
|
3
|
+
/** Request message */
|
|
4
|
+
export interface getAllBbpsTnxRequest {
|
|
5
|
+
page?: number | undefined;
|
|
6
|
+
limit?: number | undefined;
|
|
7
|
+
transaction_id?: string | undefined;
|
|
8
|
+
bbps_ref_no?: string | undefined;
|
|
9
|
+
mobile?: string | undefined;
|
|
10
|
+
start_date?: string | undefined;
|
|
11
|
+
end_date?: string | undefined;
|
|
12
|
+
category?: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
export interface BBPSTransactions {
|
|
15
|
+
transaction_id?: string | undefined;
|
|
16
|
+
bbps_ref_no?: string | undefined;
|
|
17
|
+
name?: string | undefined;
|
|
18
|
+
mobile?: string | undefined;
|
|
19
|
+
category?: string | undefined;
|
|
20
|
+
biller_name?: string | undefined;
|
|
21
|
+
bill_amount?: string | undefined;
|
|
22
|
+
mode?: string | undefined;
|
|
23
|
+
status?: string | undefined;
|
|
24
|
+
transaction_date?: string | undefined;
|
|
25
|
+
order_id: string;
|
|
26
|
+
}
|
|
27
|
+
export interface getAllBbpsTnxResponse {
|
|
28
|
+
transactions: BBPSTransactions[];
|
|
29
|
+
}
|
|
30
|
+
export declare const getAllBbpsTnxRequest: {
|
|
31
|
+
encode(message: getAllBbpsTnxRequest, writer?: _m0.Writer): _m0.Writer;
|
|
32
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getAllBbpsTnxRequest;
|
|
33
|
+
fromJSON(object: any): getAllBbpsTnxRequest;
|
|
34
|
+
toJSON(message: getAllBbpsTnxRequest): unknown;
|
|
35
|
+
create<I extends Exact<DeepPartial<getAllBbpsTnxRequest>, I>>(base?: I): getAllBbpsTnxRequest;
|
|
36
|
+
fromPartial<I extends Exact<DeepPartial<getAllBbpsTnxRequest>, I>>(object: I): getAllBbpsTnxRequest;
|
|
37
|
+
};
|
|
38
|
+
export declare const BBPSTransactions: {
|
|
39
|
+
encode(message: BBPSTransactions, writer?: _m0.Writer): _m0.Writer;
|
|
40
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BBPSTransactions;
|
|
41
|
+
fromJSON(object: any): BBPSTransactions;
|
|
42
|
+
toJSON(message: BBPSTransactions): unknown;
|
|
43
|
+
create<I extends Exact<DeepPartial<BBPSTransactions>, I>>(base?: I): BBPSTransactions;
|
|
44
|
+
fromPartial<I extends Exact<DeepPartial<BBPSTransactions>, I>>(object: I): BBPSTransactions;
|
|
45
|
+
};
|
|
46
|
+
export declare const getAllBbpsTnxResponse: {
|
|
47
|
+
encode(message: getAllBbpsTnxResponse, writer?: _m0.Writer): _m0.Writer;
|
|
48
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getAllBbpsTnxResponse;
|
|
49
|
+
fromJSON(object: any): getAllBbpsTnxResponse;
|
|
50
|
+
toJSON(message: getAllBbpsTnxResponse): unknown;
|
|
51
|
+
create<I extends Exact<DeepPartial<getAllBbpsTnxResponse>, I>>(base?: I): getAllBbpsTnxResponse;
|
|
52
|
+
fromPartial<I extends Exact<DeepPartial<getAllBbpsTnxResponse>, I>>(object: I): getAllBbpsTnxResponse;
|
|
53
|
+
};
|
|
54
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
55
|
+
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 {} ? {
|
|
56
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
57
|
+
} : Partial<T>;
|
|
58
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
59
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
60
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
61
|
+
} & {
|
|
62
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
63
|
+
};
|
|
64
|
+
export {};
|
|
@@ -0,0 +1,434 @@
|
|
|
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 v6.31.1
|
|
6
|
+
// source: bbps/getallbbpstransactions.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.getAllBbpsTnxResponse = exports.BBPSTransactions = exports.getAllBbpsTnxRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "bbps.getallbbpstransactions";
|
|
15
|
+
function createBasegetAllBbpsTnxRequest() {
|
|
16
|
+
return {
|
|
17
|
+
page: undefined,
|
|
18
|
+
limit: undefined,
|
|
19
|
+
transaction_id: undefined,
|
|
20
|
+
bbps_ref_no: undefined,
|
|
21
|
+
mobile: undefined,
|
|
22
|
+
start_date: undefined,
|
|
23
|
+
end_date: undefined,
|
|
24
|
+
category: undefined,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.getAllBbpsTnxRequest = {
|
|
28
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
29
|
+
if (message.page !== undefined) {
|
|
30
|
+
writer.uint32(8).int32(message.page);
|
|
31
|
+
}
|
|
32
|
+
if (message.limit !== undefined) {
|
|
33
|
+
writer.uint32(16).int32(message.limit);
|
|
34
|
+
}
|
|
35
|
+
if (message.transaction_id !== undefined) {
|
|
36
|
+
writer.uint32(26).string(message.transaction_id);
|
|
37
|
+
}
|
|
38
|
+
if (message.bbps_ref_no !== undefined) {
|
|
39
|
+
writer.uint32(34).string(message.bbps_ref_no);
|
|
40
|
+
}
|
|
41
|
+
if (message.mobile !== undefined) {
|
|
42
|
+
writer.uint32(42).string(message.mobile);
|
|
43
|
+
}
|
|
44
|
+
if (message.start_date !== undefined) {
|
|
45
|
+
writer.uint32(50).string(message.start_date);
|
|
46
|
+
}
|
|
47
|
+
if (message.end_date !== undefined) {
|
|
48
|
+
writer.uint32(58).string(message.end_date);
|
|
49
|
+
}
|
|
50
|
+
if (message.category !== undefined) {
|
|
51
|
+
writer.uint32(66).string(message.category);
|
|
52
|
+
}
|
|
53
|
+
return writer;
|
|
54
|
+
},
|
|
55
|
+
decode(input, length) {
|
|
56
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
57
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
58
|
+
const message = createBasegetAllBbpsTnxRequest();
|
|
59
|
+
while (reader.pos < end) {
|
|
60
|
+
const tag = reader.uint32();
|
|
61
|
+
switch (tag >>> 3) {
|
|
62
|
+
case 1:
|
|
63
|
+
if (tag !== 8) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.page = reader.int32();
|
|
67
|
+
continue;
|
|
68
|
+
case 2:
|
|
69
|
+
if (tag !== 16) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.limit = reader.int32();
|
|
73
|
+
continue;
|
|
74
|
+
case 3:
|
|
75
|
+
if (tag !== 26) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
message.transaction_id = reader.string();
|
|
79
|
+
continue;
|
|
80
|
+
case 4:
|
|
81
|
+
if (tag !== 34) {
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
message.bbps_ref_no = reader.string();
|
|
85
|
+
continue;
|
|
86
|
+
case 5:
|
|
87
|
+
if (tag !== 42) {
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
message.mobile = reader.string();
|
|
91
|
+
continue;
|
|
92
|
+
case 6:
|
|
93
|
+
if (tag !== 50) {
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
message.start_date = reader.string();
|
|
97
|
+
continue;
|
|
98
|
+
case 7:
|
|
99
|
+
if (tag !== 58) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
message.end_date = reader.string();
|
|
103
|
+
continue;
|
|
104
|
+
case 8:
|
|
105
|
+
if (tag !== 66) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
message.category = reader.string();
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
reader.skipType(tag & 7);
|
|
115
|
+
}
|
|
116
|
+
return message;
|
|
117
|
+
},
|
|
118
|
+
fromJSON(object) {
|
|
119
|
+
return {
|
|
120
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : undefined,
|
|
121
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : undefined,
|
|
122
|
+
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : undefined,
|
|
123
|
+
bbps_ref_no: isSet(object.bbps_ref_no) ? globalThis.String(object.bbps_ref_no) : undefined,
|
|
124
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : undefined,
|
|
125
|
+
start_date: isSet(object.start_date) ? globalThis.String(object.start_date) : undefined,
|
|
126
|
+
end_date: isSet(object.end_date) ? globalThis.String(object.end_date) : undefined,
|
|
127
|
+
category: isSet(object.category) ? globalThis.String(object.category) : undefined,
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
toJSON(message) {
|
|
131
|
+
const obj = {};
|
|
132
|
+
if (message.page !== undefined) {
|
|
133
|
+
obj.page = Math.round(message.page);
|
|
134
|
+
}
|
|
135
|
+
if (message.limit !== undefined) {
|
|
136
|
+
obj.limit = Math.round(message.limit);
|
|
137
|
+
}
|
|
138
|
+
if (message.transaction_id !== undefined) {
|
|
139
|
+
obj.transaction_id = message.transaction_id;
|
|
140
|
+
}
|
|
141
|
+
if (message.bbps_ref_no !== undefined) {
|
|
142
|
+
obj.bbps_ref_no = message.bbps_ref_no;
|
|
143
|
+
}
|
|
144
|
+
if (message.mobile !== undefined) {
|
|
145
|
+
obj.mobile = message.mobile;
|
|
146
|
+
}
|
|
147
|
+
if (message.start_date !== undefined) {
|
|
148
|
+
obj.start_date = message.start_date;
|
|
149
|
+
}
|
|
150
|
+
if (message.end_date !== undefined) {
|
|
151
|
+
obj.end_date = message.end_date;
|
|
152
|
+
}
|
|
153
|
+
if (message.category !== undefined) {
|
|
154
|
+
obj.category = message.category;
|
|
155
|
+
}
|
|
156
|
+
return obj;
|
|
157
|
+
},
|
|
158
|
+
create(base) {
|
|
159
|
+
return exports.getAllBbpsTnxRequest.fromPartial(base ?? {});
|
|
160
|
+
},
|
|
161
|
+
fromPartial(object) {
|
|
162
|
+
const message = createBasegetAllBbpsTnxRequest();
|
|
163
|
+
message.page = object.page ?? undefined;
|
|
164
|
+
message.limit = object.limit ?? undefined;
|
|
165
|
+
message.transaction_id = object.transaction_id ?? undefined;
|
|
166
|
+
message.bbps_ref_no = object.bbps_ref_no ?? undefined;
|
|
167
|
+
message.mobile = object.mobile ?? undefined;
|
|
168
|
+
message.start_date = object.start_date ?? undefined;
|
|
169
|
+
message.end_date = object.end_date ?? undefined;
|
|
170
|
+
message.category = object.category ?? undefined;
|
|
171
|
+
return message;
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
function createBaseBBPSTransactions() {
|
|
175
|
+
return {
|
|
176
|
+
transaction_id: undefined,
|
|
177
|
+
bbps_ref_no: undefined,
|
|
178
|
+
name: undefined,
|
|
179
|
+
mobile: undefined,
|
|
180
|
+
category: undefined,
|
|
181
|
+
biller_name: undefined,
|
|
182
|
+
bill_amount: undefined,
|
|
183
|
+
mode: undefined,
|
|
184
|
+
status: undefined,
|
|
185
|
+
transaction_date: undefined,
|
|
186
|
+
order_id: "",
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
exports.BBPSTransactions = {
|
|
190
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
191
|
+
if (message.transaction_id !== undefined) {
|
|
192
|
+
writer.uint32(10).string(message.transaction_id);
|
|
193
|
+
}
|
|
194
|
+
if (message.bbps_ref_no !== undefined) {
|
|
195
|
+
writer.uint32(18).string(message.bbps_ref_no);
|
|
196
|
+
}
|
|
197
|
+
if (message.name !== undefined) {
|
|
198
|
+
writer.uint32(26).string(message.name);
|
|
199
|
+
}
|
|
200
|
+
if (message.mobile !== undefined) {
|
|
201
|
+
writer.uint32(34).string(message.mobile);
|
|
202
|
+
}
|
|
203
|
+
if (message.category !== undefined) {
|
|
204
|
+
writer.uint32(42).string(message.category);
|
|
205
|
+
}
|
|
206
|
+
if (message.biller_name !== undefined) {
|
|
207
|
+
writer.uint32(50).string(message.biller_name);
|
|
208
|
+
}
|
|
209
|
+
if (message.bill_amount !== undefined) {
|
|
210
|
+
writer.uint32(58).string(message.bill_amount);
|
|
211
|
+
}
|
|
212
|
+
if (message.mode !== undefined) {
|
|
213
|
+
writer.uint32(66).string(message.mode);
|
|
214
|
+
}
|
|
215
|
+
if (message.status !== undefined) {
|
|
216
|
+
writer.uint32(74).string(message.status);
|
|
217
|
+
}
|
|
218
|
+
if (message.transaction_date !== undefined) {
|
|
219
|
+
writer.uint32(82).string(message.transaction_date);
|
|
220
|
+
}
|
|
221
|
+
if (message.order_id !== "") {
|
|
222
|
+
writer.uint32(90).string(message.order_id);
|
|
223
|
+
}
|
|
224
|
+
return writer;
|
|
225
|
+
},
|
|
226
|
+
decode(input, length) {
|
|
227
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
228
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
229
|
+
const message = createBaseBBPSTransactions();
|
|
230
|
+
while (reader.pos < end) {
|
|
231
|
+
const tag = reader.uint32();
|
|
232
|
+
switch (tag >>> 3) {
|
|
233
|
+
case 1:
|
|
234
|
+
if (tag !== 10) {
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
message.transaction_id = reader.string();
|
|
238
|
+
continue;
|
|
239
|
+
case 2:
|
|
240
|
+
if (tag !== 18) {
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
message.bbps_ref_no = reader.string();
|
|
244
|
+
continue;
|
|
245
|
+
case 3:
|
|
246
|
+
if (tag !== 26) {
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
message.name = reader.string();
|
|
250
|
+
continue;
|
|
251
|
+
case 4:
|
|
252
|
+
if (tag !== 34) {
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
message.mobile = reader.string();
|
|
256
|
+
continue;
|
|
257
|
+
case 5:
|
|
258
|
+
if (tag !== 42) {
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
message.category = reader.string();
|
|
262
|
+
continue;
|
|
263
|
+
case 6:
|
|
264
|
+
if (tag !== 50) {
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
message.biller_name = reader.string();
|
|
268
|
+
continue;
|
|
269
|
+
case 7:
|
|
270
|
+
if (tag !== 58) {
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
message.bill_amount = reader.string();
|
|
274
|
+
continue;
|
|
275
|
+
case 8:
|
|
276
|
+
if (tag !== 66) {
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
message.mode = reader.string();
|
|
280
|
+
continue;
|
|
281
|
+
case 9:
|
|
282
|
+
if (tag !== 74) {
|
|
283
|
+
break;
|
|
284
|
+
}
|
|
285
|
+
message.status = reader.string();
|
|
286
|
+
continue;
|
|
287
|
+
case 10:
|
|
288
|
+
if (tag !== 82) {
|
|
289
|
+
break;
|
|
290
|
+
}
|
|
291
|
+
message.transaction_date = reader.string();
|
|
292
|
+
continue;
|
|
293
|
+
case 11:
|
|
294
|
+
if (tag !== 90) {
|
|
295
|
+
break;
|
|
296
|
+
}
|
|
297
|
+
message.order_id = reader.string();
|
|
298
|
+
continue;
|
|
299
|
+
}
|
|
300
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
301
|
+
break;
|
|
302
|
+
}
|
|
303
|
+
reader.skipType(tag & 7);
|
|
304
|
+
}
|
|
305
|
+
return message;
|
|
306
|
+
},
|
|
307
|
+
fromJSON(object) {
|
|
308
|
+
return {
|
|
309
|
+
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : undefined,
|
|
310
|
+
bbps_ref_no: isSet(object.bbps_ref_no) ? globalThis.String(object.bbps_ref_no) : undefined,
|
|
311
|
+
name: isSet(object.name) ? globalThis.String(object.name) : undefined,
|
|
312
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : undefined,
|
|
313
|
+
category: isSet(object.category) ? globalThis.String(object.category) : undefined,
|
|
314
|
+
biller_name: isSet(object.biller_name) ? globalThis.String(object.biller_name) : undefined,
|
|
315
|
+
bill_amount: isSet(object.bill_amount) ? globalThis.String(object.bill_amount) : undefined,
|
|
316
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : undefined,
|
|
317
|
+
status: isSet(object.status) ? globalThis.String(object.status) : undefined,
|
|
318
|
+
transaction_date: isSet(object.transaction_date) ? globalThis.String(object.transaction_date) : undefined,
|
|
319
|
+
order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
|
|
320
|
+
};
|
|
321
|
+
},
|
|
322
|
+
toJSON(message) {
|
|
323
|
+
const obj = {};
|
|
324
|
+
if (message.transaction_id !== undefined) {
|
|
325
|
+
obj.transaction_id = message.transaction_id;
|
|
326
|
+
}
|
|
327
|
+
if (message.bbps_ref_no !== undefined) {
|
|
328
|
+
obj.bbps_ref_no = message.bbps_ref_no;
|
|
329
|
+
}
|
|
330
|
+
if (message.name !== undefined) {
|
|
331
|
+
obj.name = message.name;
|
|
332
|
+
}
|
|
333
|
+
if (message.mobile !== undefined) {
|
|
334
|
+
obj.mobile = message.mobile;
|
|
335
|
+
}
|
|
336
|
+
if (message.category !== undefined) {
|
|
337
|
+
obj.category = message.category;
|
|
338
|
+
}
|
|
339
|
+
if (message.biller_name !== undefined) {
|
|
340
|
+
obj.biller_name = message.biller_name;
|
|
341
|
+
}
|
|
342
|
+
if (message.bill_amount !== undefined) {
|
|
343
|
+
obj.bill_amount = message.bill_amount;
|
|
344
|
+
}
|
|
345
|
+
if (message.mode !== undefined) {
|
|
346
|
+
obj.mode = message.mode;
|
|
347
|
+
}
|
|
348
|
+
if (message.status !== undefined) {
|
|
349
|
+
obj.status = message.status;
|
|
350
|
+
}
|
|
351
|
+
if (message.transaction_date !== undefined) {
|
|
352
|
+
obj.transaction_date = message.transaction_date;
|
|
353
|
+
}
|
|
354
|
+
if (message.order_id !== "") {
|
|
355
|
+
obj.order_id = message.order_id;
|
|
356
|
+
}
|
|
357
|
+
return obj;
|
|
358
|
+
},
|
|
359
|
+
create(base) {
|
|
360
|
+
return exports.BBPSTransactions.fromPartial(base ?? {});
|
|
361
|
+
},
|
|
362
|
+
fromPartial(object) {
|
|
363
|
+
const message = createBaseBBPSTransactions();
|
|
364
|
+
message.transaction_id = object.transaction_id ?? undefined;
|
|
365
|
+
message.bbps_ref_no = object.bbps_ref_no ?? undefined;
|
|
366
|
+
message.name = object.name ?? undefined;
|
|
367
|
+
message.mobile = object.mobile ?? undefined;
|
|
368
|
+
message.category = object.category ?? undefined;
|
|
369
|
+
message.biller_name = object.biller_name ?? undefined;
|
|
370
|
+
message.bill_amount = object.bill_amount ?? undefined;
|
|
371
|
+
message.mode = object.mode ?? undefined;
|
|
372
|
+
message.status = object.status ?? undefined;
|
|
373
|
+
message.transaction_date = object.transaction_date ?? undefined;
|
|
374
|
+
message.order_id = object.order_id ?? "";
|
|
375
|
+
return message;
|
|
376
|
+
},
|
|
377
|
+
};
|
|
378
|
+
function createBasegetAllBbpsTnxResponse() {
|
|
379
|
+
return { transactions: [] };
|
|
380
|
+
}
|
|
381
|
+
exports.getAllBbpsTnxResponse = {
|
|
382
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
383
|
+
for (const v of message.transactions) {
|
|
384
|
+
exports.BBPSTransactions.encode(v, writer.uint32(10).fork()).ldelim();
|
|
385
|
+
}
|
|
386
|
+
return writer;
|
|
387
|
+
},
|
|
388
|
+
decode(input, length) {
|
|
389
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
390
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
391
|
+
const message = createBasegetAllBbpsTnxResponse();
|
|
392
|
+
while (reader.pos < end) {
|
|
393
|
+
const tag = reader.uint32();
|
|
394
|
+
switch (tag >>> 3) {
|
|
395
|
+
case 1:
|
|
396
|
+
if (tag !== 10) {
|
|
397
|
+
break;
|
|
398
|
+
}
|
|
399
|
+
message.transactions.push(exports.BBPSTransactions.decode(reader, reader.uint32()));
|
|
400
|
+
continue;
|
|
401
|
+
}
|
|
402
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
403
|
+
break;
|
|
404
|
+
}
|
|
405
|
+
reader.skipType(tag & 7);
|
|
406
|
+
}
|
|
407
|
+
return message;
|
|
408
|
+
},
|
|
409
|
+
fromJSON(object) {
|
|
410
|
+
return {
|
|
411
|
+
transactions: globalThis.Array.isArray(object?.transactions)
|
|
412
|
+
? object.transactions.map((e) => exports.BBPSTransactions.fromJSON(e))
|
|
413
|
+
: [],
|
|
414
|
+
};
|
|
415
|
+
},
|
|
416
|
+
toJSON(message) {
|
|
417
|
+
const obj = {};
|
|
418
|
+
if (message.transactions?.length) {
|
|
419
|
+
obj.transactions = message.transactions.map((e) => exports.BBPSTransactions.toJSON(e));
|
|
420
|
+
}
|
|
421
|
+
return obj;
|
|
422
|
+
},
|
|
423
|
+
create(base) {
|
|
424
|
+
return exports.getAllBbpsTnxResponse.fromPartial(base ?? {});
|
|
425
|
+
},
|
|
426
|
+
fromPartial(object) {
|
|
427
|
+
const message = createBasegetAllBbpsTnxResponse();
|
|
428
|
+
message.transactions = object.transactions?.map((e) => exports.BBPSTransactions.fromPartial(e)) || [];
|
|
429
|
+
return message;
|
|
430
|
+
},
|
|
431
|
+
};
|
|
432
|
+
function isSet(value) {
|
|
433
|
+
return value !== null && value !== undefined;
|
|
434
|
+
}
|
package/ts/bbps.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { getAllBbpsTnxRequest, getAllBbpsTnxResponse } from "./bbps/getallbbpstransactions";
|
|
2
3
|
import { getBillsRequest, getBillsResponse } from "./bbps/getbills";
|
|
3
4
|
import { BDTransactionRequest, BDTransactionResponse } from "./bbps/processwebhook";
|
|
4
5
|
export declare const protobufPackage = "service";
|
|
@@ -22,10 +23,20 @@ export declare const bbpsService: {
|
|
|
22
23
|
readonly responseSerialize: (value: BDTransactionResponse) => Buffer;
|
|
23
24
|
readonly responseDeserialize: (value: Buffer) => BDTransactionResponse;
|
|
24
25
|
};
|
|
26
|
+
readonly getAllBbpsTnxs: {
|
|
27
|
+
readonly path: "/service.bbps/getAllBbpsTnxs";
|
|
28
|
+
readonly requestStream: false;
|
|
29
|
+
readonly responseStream: false;
|
|
30
|
+
readonly requestSerialize: (value: getAllBbpsTnxRequest) => Buffer;
|
|
31
|
+
readonly requestDeserialize: (value: Buffer) => getAllBbpsTnxRequest;
|
|
32
|
+
readonly responseSerialize: (value: getAllBbpsTnxResponse) => Buffer;
|
|
33
|
+
readonly responseDeserialize: (value: Buffer) => getAllBbpsTnxResponse;
|
|
34
|
+
};
|
|
25
35
|
};
|
|
26
36
|
export interface bbpsServer extends UntypedServiceImplementation {
|
|
27
37
|
getBillList: handleUnaryCall<getBillsRequest, getBillsResponse>;
|
|
28
38
|
processWebhook: handleUnaryCall<BDTransactionRequest, BDTransactionResponse>;
|
|
39
|
+
getAllBbpsTnxs: handleUnaryCall<getAllBbpsTnxRequest, getAllBbpsTnxResponse>;
|
|
29
40
|
}
|
|
30
41
|
export interface bbpsClient extends Client {
|
|
31
42
|
getBillList(request: getBillsRequest, callback: (error: ServiceError | null, response: getBillsResponse) => void): ClientUnaryCall;
|
|
@@ -34,6 +45,9 @@ export interface bbpsClient extends Client {
|
|
|
34
45
|
processWebhook(request: BDTransactionRequest, callback: (error: ServiceError | null, response: BDTransactionResponse) => void): ClientUnaryCall;
|
|
35
46
|
processWebhook(request: BDTransactionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: BDTransactionResponse) => void): ClientUnaryCall;
|
|
36
47
|
processWebhook(request: BDTransactionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: BDTransactionResponse) => void): ClientUnaryCall;
|
|
48
|
+
getAllBbpsTnxs(request: getAllBbpsTnxRequest, callback: (error: ServiceError | null, response: getAllBbpsTnxResponse) => void): ClientUnaryCall;
|
|
49
|
+
getAllBbpsTnxs(request: getAllBbpsTnxRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAllBbpsTnxResponse) => void): ClientUnaryCall;
|
|
50
|
+
getAllBbpsTnxs(request: getAllBbpsTnxRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAllBbpsTnxResponse) => void): ClientUnaryCall;
|
|
37
51
|
}
|
|
38
52
|
export declare const bbpsClient: {
|
|
39
53
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): bbpsClient;
|
package/ts/bbps.js
CHANGED
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.bbpsClient = exports.bbpsService = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
+
const getallbbpstransactions_1 = require("./bbps/getallbbpstransactions");
|
|
11
12
|
const getbills_1 = require("./bbps/getbills");
|
|
12
13
|
const processwebhook_1 = require("./bbps/processwebhook");
|
|
13
14
|
exports.protobufPackage = "service";
|
|
@@ -30,5 +31,14 @@ exports.bbpsService = {
|
|
|
30
31
|
responseSerialize: (value) => Buffer.from(processwebhook_1.BDTransactionResponse.encode(value).finish()),
|
|
31
32
|
responseDeserialize: (value) => processwebhook_1.BDTransactionResponse.decode(value),
|
|
32
33
|
},
|
|
34
|
+
getAllBbpsTnxs: {
|
|
35
|
+
path: "/service.bbps/getAllBbpsTnxs",
|
|
36
|
+
requestStream: false,
|
|
37
|
+
responseStream: false,
|
|
38
|
+
requestSerialize: (value) => Buffer.from(getallbbpstransactions_1.getAllBbpsTnxRequest.encode(value).finish()),
|
|
39
|
+
requestDeserialize: (value) => getallbbpstransactions_1.getAllBbpsTnxRequest.decode(value),
|
|
40
|
+
responseSerialize: (value) => Buffer.from(getallbbpstransactions_1.getAllBbpsTnxResponse.encode(value).finish()),
|
|
41
|
+
responseDeserialize: (value) => getallbbpstransactions_1.getAllBbpsTnxResponse.decode(value),
|
|
42
|
+
},
|
|
33
43
|
};
|
|
34
44
|
exports.bbpsClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.bbpsService, "service.bbps");
|