@stashfin/grpc 1.2.874 → 1.2.875
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/processdecryptedrudata.d.ts +128 -0
- package/ts/bbps/processdecryptedrudata.js +784 -0
- package/ts/bbps.d.ts +14 -0
- package/ts/bbps.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "bbps.processdecryptedrudata";
|
|
3
|
+
/** Request message */
|
|
4
|
+
export interface BDTransactionRequest {
|
|
5
|
+
ru_data: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
customer_data: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
auth_session_response: RequestAuthSessionResponse | undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface BDTransactionRequest_RuDataEntry {
|
|
14
|
+
key: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}
|
|
17
|
+
export interface BDTransactionRequest_CustomerDataEntry {
|
|
18
|
+
key: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}
|
|
21
|
+
/** Request Auth session response message */
|
|
22
|
+
export interface RequestAuthSessionResponse {
|
|
23
|
+
customer_id: number;
|
|
24
|
+
auth_token: string;
|
|
25
|
+
device_id: string;
|
|
26
|
+
mobile: number;
|
|
27
|
+
}
|
|
28
|
+
/** Transaction response message */
|
|
29
|
+
export interface TxnResponse {
|
|
30
|
+
id: number;
|
|
31
|
+
customer_id: number;
|
|
32
|
+
utility_name: string;
|
|
33
|
+
provider_name: string;
|
|
34
|
+
/** optional / nullable */
|
|
35
|
+
provider_logo?: string | undefined;
|
|
36
|
+
/** nullable */
|
|
37
|
+
account_no?: string | undefined;
|
|
38
|
+
final_amount: number;
|
|
39
|
+
status: string;
|
|
40
|
+
txn_id: string;
|
|
41
|
+
order_id: string;
|
|
42
|
+
/** optional / nullable */
|
|
43
|
+
bbps_ref_no?: string | undefined;
|
|
44
|
+
/** optional */
|
|
45
|
+
source_ref_no?: string | undefined;
|
|
46
|
+
/** use ISO 8601 string or Timestamp */
|
|
47
|
+
paid_at: string;
|
|
48
|
+
/** optional / nullable */
|
|
49
|
+
biller_status?: string | undefined;
|
|
50
|
+
}
|
|
51
|
+
/** Auth session response message (for response - unchanged) */
|
|
52
|
+
export interface AuthSessionResponse {
|
|
53
|
+
customer_id: number;
|
|
54
|
+
auth_token?: string | undefined;
|
|
55
|
+
device_id?: string | undefined;
|
|
56
|
+
}
|
|
57
|
+
/** Combined response */
|
|
58
|
+
export interface BDTransactionResponse {
|
|
59
|
+
txnResponse: TxnResponse | undefined;
|
|
60
|
+
authSessionResponse: AuthSessionResponse | undefined;
|
|
61
|
+
}
|
|
62
|
+
export declare const BDTransactionRequest: {
|
|
63
|
+
encode(message: BDTransactionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
64
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BDTransactionRequest;
|
|
65
|
+
fromJSON(object: any): BDTransactionRequest;
|
|
66
|
+
toJSON(message: BDTransactionRequest): unknown;
|
|
67
|
+
create<I extends Exact<DeepPartial<BDTransactionRequest>, I>>(base?: I): BDTransactionRequest;
|
|
68
|
+
fromPartial<I extends Exact<DeepPartial<BDTransactionRequest>, I>>(object: I): BDTransactionRequest;
|
|
69
|
+
};
|
|
70
|
+
export declare const BDTransactionRequest_RuDataEntry: {
|
|
71
|
+
encode(message: BDTransactionRequest_RuDataEntry, writer?: _m0.Writer): _m0.Writer;
|
|
72
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BDTransactionRequest_RuDataEntry;
|
|
73
|
+
fromJSON(object: any): BDTransactionRequest_RuDataEntry;
|
|
74
|
+
toJSON(message: BDTransactionRequest_RuDataEntry): unknown;
|
|
75
|
+
create<I extends Exact<DeepPartial<BDTransactionRequest_RuDataEntry>, I>>(base?: I): BDTransactionRequest_RuDataEntry;
|
|
76
|
+
fromPartial<I extends Exact<DeepPartial<BDTransactionRequest_RuDataEntry>, I>>(object: I): BDTransactionRequest_RuDataEntry;
|
|
77
|
+
};
|
|
78
|
+
export declare const BDTransactionRequest_CustomerDataEntry: {
|
|
79
|
+
encode(message: BDTransactionRequest_CustomerDataEntry, writer?: _m0.Writer): _m0.Writer;
|
|
80
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BDTransactionRequest_CustomerDataEntry;
|
|
81
|
+
fromJSON(object: any): BDTransactionRequest_CustomerDataEntry;
|
|
82
|
+
toJSON(message: BDTransactionRequest_CustomerDataEntry): unknown;
|
|
83
|
+
create<I extends Exact<DeepPartial<BDTransactionRequest_CustomerDataEntry>, I>>(base?: I): BDTransactionRequest_CustomerDataEntry;
|
|
84
|
+
fromPartial<I extends Exact<DeepPartial<BDTransactionRequest_CustomerDataEntry>, I>>(object: I): BDTransactionRequest_CustomerDataEntry;
|
|
85
|
+
};
|
|
86
|
+
export declare const RequestAuthSessionResponse: {
|
|
87
|
+
encode(message: RequestAuthSessionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
88
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RequestAuthSessionResponse;
|
|
89
|
+
fromJSON(object: any): RequestAuthSessionResponse;
|
|
90
|
+
toJSON(message: RequestAuthSessionResponse): unknown;
|
|
91
|
+
create<I extends Exact<DeepPartial<RequestAuthSessionResponse>, I>>(base?: I): RequestAuthSessionResponse;
|
|
92
|
+
fromPartial<I extends Exact<DeepPartial<RequestAuthSessionResponse>, I>>(object: I): RequestAuthSessionResponse;
|
|
93
|
+
};
|
|
94
|
+
export declare const TxnResponse: {
|
|
95
|
+
encode(message: TxnResponse, writer?: _m0.Writer): _m0.Writer;
|
|
96
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TxnResponse;
|
|
97
|
+
fromJSON(object: any): TxnResponse;
|
|
98
|
+
toJSON(message: TxnResponse): unknown;
|
|
99
|
+
create<I extends Exact<DeepPartial<TxnResponse>, I>>(base?: I): TxnResponse;
|
|
100
|
+
fromPartial<I extends Exact<DeepPartial<TxnResponse>, I>>(object: I): TxnResponse;
|
|
101
|
+
};
|
|
102
|
+
export declare const AuthSessionResponse: {
|
|
103
|
+
encode(message: AuthSessionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
104
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AuthSessionResponse;
|
|
105
|
+
fromJSON(object: any): AuthSessionResponse;
|
|
106
|
+
toJSON(message: AuthSessionResponse): unknown;
|
|
107
|
+
create<I extends Exact<DeepPartial<AuthSessionResponse>, I>>(base?: I): AuthSessionResponse;
|
|
108
|
+
fromPartial<I extends Exact<DeepPartial<AuthSessionResponse>, I>>(object: I): AuthSessionResponse;
|
|
109
|
+
};
|
|
110
|
+
export declare const BDTransactionResponse: {
|
|
111
|
+
encode(message: BDTransactionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
112
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BDTransactionResponse;
|
|
113
|
+
fromJSON(object: any): BDTransactionResponse;
|
|
114
|
+
toJSON(message: BDTransactionResponse): unknown;
|
|
115
|
+
create<I extends Exact<DeepPartial<BDTransactionResponse>, I>>(base?: I): BDTransactionResponse;
|
|
116
|
+
fromPartial<I extends Exact<DeepPartial<BDTransactionResponse>, I>>(object: I): BDTransactionResponse;
|
|
117
|
+
};
|
|
118
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
119
|
+
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 {} ? {
|
|
120
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
121
|
+
} : Partial<T>;
|
|
122
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
123
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
124
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
125
|
+
} & {
|
|
126
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
127
|
+
};
|
|
128
|
+
export {};
|
|
@@ -0,0 +1,784 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.2
|
|
5
|
+
// protoc v6.32.0
|
|
6
|
+
// source: bbps/processdecryptedrudata.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.BDTransactionResponse = exports.AuthSessionResponse = exports.TxnResponse = exports.RequestAuthSessionResponse = exports.BDTransactionRequest_CustomerDataEntry = exports.BDTransactionRequest_RuDataEntry = exports.BDTransactionRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
14
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
|
+
exports.protobufPackage = "bbps.processdecryptedrudata";
|
|
16
|
+
function createBaseBDTransactionRequest() {
|
|
17
|
+
return { ru_data: {}, customer_data: {}, auth_session_response: undefined };
|
|
18
|
+
}
|
|
19
|
+
exports.BDTransactionRequest = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
Object.entries(message.ru_data).forEach(([key, value]) => {
|
|
22
|
+
exports.BDTransactionRequest_RuDataEntry.encode({ key: key, value }, writer.uint32(10).fork()).ldelim();
|
|
23
|
+
});
|
|
24
|
+
Object.entries(message.customer_data).forEach(([key, value]) => {
|
|
25
|
+
exports.BDTransactionRequest_CustomerDataEntry.encode({ key: key, value }, writer.uint32(18).fork()).ldelim();
|
|
26
|
+
});
|
|
27
|
+
if (message.auth_session_response !== undefined) {
|
|
28
|
+
exports.RequestAuthSessionResponse.encode(message.auth_session_response, writer.uint32(26).fork()).ldelim();
|
|
29
|
+
}
|
|
30
|
+
return writer;
|
|
31
|
+
},
|
|
32
|
+
decode(input, length) {
|
|
33
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
34
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35
|
+
const message = createBaseBDTransactionRequest();
|
|
36
|
+
while (reader.pos < end) {
|
|
37
|
+
const tag = reader.uint32();
|
|
38
|
+
switch (tag >>> 3) {
|
|
39
|
+
case 1:
|
|
40
|
+
if (tag !== 10) {
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
const entry1 = exports.BDTransactionRequest_RuDataEntry.decode(reader, reader.uint32());
|
|
44
|
+
if (entry1.value !== undefined) {
|
|
45
|
+
message.ru_data[entry1.key] = entry1.value;
|
|
46
|
+
}
|
|
47
|
+
continue;
|
|
48
|
+
case 2:
|
|
49
|
+
if (tag !== 18) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
const entry2 = exports.BDTransactionRequest_CustomerDataEntry.decode(reader, reader.uint32());
|
|
53
|
+
if (entry2.value !== undefined) {
|
|
54
|
+
message.customer_data[entry2.key] = entry2.value;
|
|
55
|
+
}
|
|
56
|
+
continue;
|
|
57
|
+
case 3:
|
|
58
|
+
if (tag !== 26) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
message.auth_session_response = exports.RequestAuthSessionResponse.decode(reader, reader.uint32());
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
reader.skipType(tag & 7);
|
|
68
|
+
}
|
|
69
|
+
return message;
|
|
70
|
+
},
|
|
71
|
+
fromJSON(object) {
|
|
72
|
+
return {
|
|
73
|
+
ru_data: isObject(object.ru_data)
|
|
74
|
+
? Object.entries(object.ru_data).reduce((acc, [key, value]) => {
|
|
75
|
+
acc[key] = String(value);
|
|
76
|
+
return acc;
|
|
77
|
+
}, {})
|
|
78
|
+
: {},
|
|
79
|
+
customer_data: isObject(object.customer_data)
|
|
80
|
+
? Object.entries(object.customer_data).reduce((acc, [key, value]) => {
|
|
81
|
+
acc[key] = String(value);
|
|
82
|
+
return acc;
|
|
83
|
+
}, {})
|
|
84
|
+
: {},
|
|
85
|
+
auth_session_response: isSet(object.auth_session_response)
|
|
86
|
+
? exports.RequestAuthSessionResponse.fromJSON(object.auth_session_response)
|
|
87
|
+
: undefined,
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
toJSON(message) {
|
|
91
|
+
const obj = {};
|
|
92
|
+
if (message.ru_data) {
|
|
93
|
+
const entries = Object.entries(message.ru_data);
|
|
94
|
+
if (entries.length > 0) {
|
|
95
|
+
obj.ru_data = {};
|
|
96
|
+
entries.forEach(([k, v]) => {
|
|
97
|
+
obj.ru_data[k] = v;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
if (message.customer_data) {
|
|
102
|
+
const entries = Object.entries(message.customer_data);
|
|
103
|
+
if (entries.length > 0) {
|
|
104
|
+
obj.customer_data = {};
|
|
105
|
+
entries.forEach(([k, v]) => {
|
|
106
|
+
obj.customer_data[k] = v;
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
if (message.auth_session_response !== undefined) {
|
|
111
|
+
obj.auth_session_response = exports.RequestAuthSessionResponse.toJSON(message.auth_session_response);
|
|
112
|
+
}
|
|
113
|
+
return obj;
|
|
114
|
+
},
|
|
115
|
+
create(base) {
|
|
116
|
+
return exports.BDTransactionRequest.fromPartial(base ?? {});
|
|
117
|
+
},
|
|
118
|
+
fromPartial(object) {
|
|
119
|
+
const message = createBaseBDTransactionRequest();
|
|
120
|
+
message.ru_data = Object.entries(object.ru_data ?? {}).reduce((acc, [key, value]) => {
|
|
121
|
+
if (value !== undefined) {
|
|
122
|
+
acc[key] = globalThis.String(value);
|
|
123
|
+
}
|
|
124
|
+
return acc;
|
|
125
|
+
}, {});
|
|
126
|
+
message.customer_data = Object.entries(object.customer_data ?? {}).reduce((acc, [key, value]) => {
|
|
127
|
+
if (value !== undefined) {
|
|
128
|
+
acc[key] = globalThis.String(value);
|
|
129
|
+
}
|
|
130
|
+
return acc;
|
|
131
|
+
}, {});
|
|
132
|
+
message.auth_session_response =
|
|
133
|
+
(object.auth_session_response !== undefined && object.auth_session_response !== null)
|
|
134
|
+
? exports.RequestAuthSessionResponse.fromPartial(object.auth_session_response)
|
|
135
|
+
: undefined;
|
|
136
|
+
return message;
|
|
137
|
+
},
|
|
138
|
+
};
|
|
139
|
+
function createBaseBDTransactionRequest_RuDataEntry() {
|
|
140
|
+
return { key: "", value: "" };
|
|
141
|
+
}
|
|
142
|
+
exports.BDTransactionRequest_RuDataEntry = {
|
|
143
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
144
|
+
if (message.key !== "") {
|
|
145
|
+
writer.uint32(10).string(message.key);
|
|
146
|
+
}
|
|
147
|
+
if (message.value !== "") {
|
|
148
|
+
writer.uint32(18).string(message.value);
|
|
149
|
+
}
|
|
150
|
+
return writer;
|
|
151
|
+
},
|
|
152
|
+
decode(input, length) {
|
|
153
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
154
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
155
|
+
const message = createBaseBDTransactionRequest_RuDataEntry();
|
|
156
|
+
while (reader.pos < end) {
|
|
157
|
+
const tag = reader.uint32();
|
|
158
|
+
switch (tag >>> 3) {
|
|
159
|
+
case 1:
|
|
160
|
+
if (tag !== 10) {
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
message.key = reader.string();
|
|
164
|
+
continue;
|
|
165
|
+
case 2:
|
|
166
|
+
if (tag !== 18) {
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
message.value = reader.string();
|
|
170
|
+
continue;
|
|
171
|
+
}
|
|
172
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
reader.skipType(tag & 7);
|
|
176
|
+
}
|
|
177
|
+
return message;
|
|
178
|
+
},
|
|
179
|
+
fromJSON(object) {
|
|
180
|
+
return {
|
|
181
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
182
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
183
|
+
};
|
|
184
|
+
},
|
|
185
|
+
toJSON(message) {
|
|
186
|
+
const obj = {};
|
|
187
|
+
if (message.key !== "") {
|
|
188
|
+
obj.key = message.key;
|
|
189
|
+
}
|
|
190
|
+
if (message.value !== "") {
|
|
191
|
+
obj.value = message.value;
|
|
192
|
+
}
|
|
193
|
+
return obj;
|
|
194
|
+
},
|
|
195
|
+
create(base) {
|
|
196
|
+
return exports.BDTransactionRequest_RuDataEntry.fromPartial(base ?? {});
|
|
197
|
+
},
|
|
198
|
+
fromPartial(object) {
|
|
199
|
+
const message = createBaseBDTransactionRequest_RuDataEntry();
|
|
200
|
+
message.key = object.key ?? "";
|
|
201
|
+
message.value = object.value ?? "";
|
|
202
|
+
return message;
|
|
203
|
+
},
|
|
204
|
+
};
|
|
205
|
+
function createBaseBDTransactionRequest_CustomerDataEntry() {
|
|
206
|
+
return { key: "", value: "" };
|
|
207
|
+
}
|
|
208
|
+
exports.BDTransactionRequest_CustomerDataEntry = {
|
|
209
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
210
|
+
if (message.key !== "") {
|
|
211
|
+
writer.uint32(10).string(message.key);
|
|
212
|
+
}
|
|
213
|
+
if (message.value !== "") {
|
|
214
|
+
writer.uint32(18).string(message.value);
|
|
215
|
+
}
|
|
216
|
+
return writer;
|
|
217
|
+
},
|
|
218
|
+
decode(input, length) {
|
|
219
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
220
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
221
|
+
const message = createBaseBDTransactionRequest_CustomerDataEntry();
|
|
222
|
+
while (reader.pos < end) {
|
|
223
|
+
const tag = reader.uint32();
|
|
224
|
+
switch (tag >>> 3) {
|
|
225
|
+
case 1:
|
|
226
|
+
if (tag !== 10) {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
message.key = reader.string();
|
|
230
|
+
continue;
|
|
231
|
+
case 2:
|
|
232
|
+
if (tag !== 18) {
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
message.value = reader.string();
|
|
236
|
+
continue;
|
|
237
|
+
}
|
|
238
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
reader.skipType(tag & 7);
|
|
242
|
+
}
|
|
243
|
+
return message;
|
|
244
|
+
},
|
|
245
|
+
fromJSON(object) {
|
|
246
|
+
return {
|
|
247
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
248
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
249
|
+
};
|
|
250
|
+
},
|
|
251
|
+
toJSON(message) {
|
|
252
|
+
const obj = {};
|
|
253
|
+
if (message.key !== "") {
|
|
254
|
+
obj.key = message.key;
|
|
255
|
+
}
|
|
256
|
+
if (message.value !== "") {
|
|
257
|
+
obj.value = message.value;
|
|
258
|
+
}
|
|
259
|
+
return obj;
|
|
260
|
+
},
|
|
261
|
+
create(base) {
|
|
262
|
+
return exports.BDTransactionRequest_CustomerDataEntry.fromPartial(base ?? {});
|
|
263
|
+
},
|
|
264
|
+
fromPartial(object) {
|
|
265
|
+
const message = createBaseBDTransactionRequest_CustomerDataEntry();
|
|
266
|
+
message.key = object.key ?? "";
|
|
267
|
+
message.value = object.value ?? "";
|
|
268
|
+
return message;
|
|
269
|
+
},
|
|
270
|
+
};
|
|
271
|
+
function createBaseRequestAuthSessionResponse() {
|
|
272
|
+
return { customer_id: 0, auth_token: "", device_id: "", mobile: 0 };
|
|
273
|
+
}
|
|
274
|
+
exports.RequestAuthSessionResponse = {
|
|
275
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
276
|
+
if (message.customer_id !== 0) {
|
|
277
|
+
writer.uint32(8).int64(message.customer_id);
|
|
278
|
+
}
|
|
279
|
+
if (message.auth_token !== "") {
|
|
280
|
+
writer.uint32(18).string(message.auth_token);
|
|
281
|
+
}
|
|
282
|
+
if (message.device_id !== "") {
|
|
283
|
+
writer.uint32(26).string(message.device_id);
|
|
284
|
+
}
|
|
285
|
+
if (message.mobile !== 0) {
|
|
286
|
+
writer.uint32(32).int64(message.mobile);
|
|
287
|
+
}
|
|
288
|
+
return writer;
|
|
289
|
+
},
|
|
290
|
+
decode(input, length) {
|
|
291
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
292
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
293
|
+
const message = createBaseRequestAuthSessionResponse();
|
|
294
|
+
while (reader.pos < end) {
|
|
295
|
+
const tag = reader.uint32();
|
|
296
|
+
switch (tag >>> 3) {
|
|
297
|
+
case 1:
|
|
298
|
+
if (tag !== 8) {
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
message.customer_id = longToNumber(reader.int64());
|
|
302
|
+
continue;
|
|
303
|
+
case 2:
|
|
304
|
+
if (tag !== 18) {
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
message.auth_token = reader.string();
|
|
308
|
+
continue;
|
|
309
|
+
case 3:
|
|
310
|
+
if (tag !== 26) {
|
|
311
|
+
break;
|
|
312
|
+
}
|
|
313
|
+
message.device_id = reader.string();
|
|
314
|
+
continue;
|
|
315
|
+
case 4:
|
|
316
|
+
if (tag !== 32) {
|
|
317
|
+
break;
|
|
318
|
+
}
|
|
319
|
+
message.mobile = longToNumber(reader.int64());
|
|
320
|
+
continue;
|
|
321
|
+
}
|
|
322
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
323
|
+
break;
|
|
324
|
+
}
|
|
325
|
+
reader.skipType(tag & 7);
|
|
326
|
+
}
|
|
327
|
+
return message;
|
|
328
|
+
},
|
|
329
|
+
fromJSON(object) {
|
|
330
|
+
return {
|
|
331
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
332
|
+
auth_token: isSet(object.auth_token) ? globalThis.String(object.auth_token) : "",
|
|
333
|
+
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
334
|
+
mobile: isSet(object.mobile) ? globalThis.Number(object.mobile) : 0,
|
|
335
|
+
};
|
|
336
|
+
},
|
|
337
|
+
toJSON(message) {
|
|
338
|
+
const obj = {};
|
|
339
|
+
if (message.customer_id !== 0) {
|
|
340
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
341
|
+
}
|
|
342
|
+
if (message.auth_token !== "") {
|
|
343
|
+
obj.auth_token = message.auth_token;
|
|
344
|
+
}
|
|
345
|
+
if (message.device_id !== "") {
|
|
346
|
+
obj.device_id = message.device_id;
|
|
347
|
+
}
|
|
348
|
+
if (message.mobile !== 0) {
|
|
349
|
+
obj.mobile = Math.round(message.mobile);
|
|
350
|
+
}
|
|
351
|
+
return obj;
|
|
352
|
+
},
|
|
353
|
+
create(base) {
|
|
354
|
+
return exports.RequestAuthSessionResponse.fromPartial(base ?? {});
|
|
355
|
+
},
|
|
356
|
+
fromPartial(object) {
|
|
357
|
+
const message = createBaseRequestAuthSessionResponse();
|
|
358
|
+
message.customer_id = object.customer_id ?? 0;
|
|
359
|
+
message.auth_token = object.auth_token ?? "";
|
|
360
|
+
message.device_id = object.device_id ?? "";
|
|
361
|
+
message.mobile = object.mobile ?? 0;
|
|
362
|
+
return message;
|
|
363
|
+
},
|
|
364
|
+
};
|
|
365
|
+
function createBaseTxnResponse() {
|
|
366
|
+
return {
|
|
367
|
+
id: 0,
|
|
368
|
+
customer_id: 0,
|
|
369
|
+
utility_name: "",
|
|
370
|
+
provider_name: "",
|
|
371
|
+
provider_logo: undefined,
|
|
372
|
+
account_no: undefined,
|
|
373
|
+
final_amount: 0,
|
|
374
|
+
status: "",
|
|
375
|
+
txn_id: "",
|
|
376
|
+
order_id: "",
|
|
377
|
+
bbps_ref_no: undefined,
|
|
378
|
+
source_ref_no: undefined,
|
|
379
|
+
paid_at: "",
|
|
380
|
+
biller_status: undefined,
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
exports.TxnResponse = {
|
|
384
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
385
|
+
if (message.id !== 0) {
|
|
386
|
+
writer.uint32(8).int32(message.id);
|
|
387
|
+
}
|
|
388
|
+
if (message.customer_id !== 0) {
|
|
389
|
+
writer.uint32(16).int32(message.customer_id);
|
|
390
|
+
}
|
|
391
|
+
if (message.utility_name !== "") {
|
|
392
|
+
writer.uint32(26).string(message.utility_name);
|
|
393
|
+
}
|
|
394
|
+
if (message.provider_name !== "") {
|
|
395
|
+
writer.uint32(34).string(message.provider_name);
|
|
396
|
+
}
|
|
397
|
+
if (message.provider_logo !== undefined) {
|
|
398
|
+
writer.uint32(42).string(message.provider_logo);
|
|
399
|
+
}
|
|
400
|
+
if (message.account_no !== undefined) {
|
|
401
|
+
writer.uint32(50).string(message.account_no);
|
|
402
|
+
}
|
|
403
|
+
if (message.final_amount !== 0) {
|
|
404
|
+
writer.uint32(57).double(message.final_amount);
|
|
405
|
+
}
|
|
406
|
+
if (message.status !== "") {
|
|
407
|
+
writer.uint32(66).string(message.status);
|
|
408
|
+
}
|
|
409
|
+
if (message.txn_id !== "") {
|
|
410
|
+
writer.uint32(74).string(message.txn_id);
|
|
411
|
+
}
|
|
412
|
+
if (message.order_id !== "") {
|
|
413
|
+
writer.uint32(82).string(message.order_id);
|
|
414
|
+
}
|
|
415
|
+
if (message.bbps_ref_no !== undefined) {
|
|
416
|
+
writer.uint32(90).string(message.bbps_ref_no);
|
|
417
|
+
}
|
|
418
|
+
if (message.source_ref_no !== undefined) {
|
|
419
|
+
writer.uint32(98).string(message.source_ref_no);
|
|
420
|
+
}
|
|
421
|
+
if (message.paid_at !== "") {
|
|
422
|
+
writer.uint32(106).string(message.paid_at);
|
|
423
|
+
}
|
|
424
|
+
if (message.biller_status !== undefined) {
|
|
425
|
+
writer.uint32(114).string(message.biller_status);
|
|
426
|
+
}
|
|
427
|
+
return writer;
|
|
428
|
+
},
|
|
429
|
+
decode(input, length) {
|
|
430
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
431
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
432
|
+
const message = createBaseTxnResponse();
|
|
433
|
+
while (reader.pos < end) {
|
|
434
|
+
const tag = reader.uint32();
|
|
435
|
+
switch (tag >>> 3) {
|
|
436
|
+
case 1:
|
|
437
|
+
if (tag !== 8) {
|
|
438
|
+
break;
|
|
439
|
+
}
|
|
440
|
+
message.id = reader.int32();
|
|
441
|
+
continue;
|
|
442
|
+
case 2:
|
|
443
|
+
if (tag !== 16) {
|
|
444
|
+
break;
|
|
445
|
+
}
|
|
446
|
+
message.customer_id = reader.int32();
|
|
447
|
+
continue;
|
|
448
|
+
case 3:
|
|
449
|
+
if (tag !== 26) {
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
message.utility_name = reader.string();
|
|
453
|
+
continue;
|
|
454
|
+
case 4:
|
|
455
|
+
if (tag !== 34) {
|
|
456
|
+
break;
|
|
457
|
+
}
|
|
458
|
+
message.provider_name = reader.string();
|
|
459
|
+
continue;
|
|
460
|
+
case 5:
|
|
461
|
+
if (tag !== 42) {
|
|
462
|
+
break;
|
|
463
|
+
}
|
|
464
|
+
message.provider_logo = reader.string();
|
|
465
|
+
continue;
|
|
466
|
+
case 6:
|
|
467
|
+
if (tag !== 50) {
|
|
468
|
+
break;
|
|
469
|
+
}
|
|
470
|
+
message.account_no = reader.string();
|
|
471
|
+
continue;
|
|
472
|
+
case 7:
|
|
473
|
+
if (tag !== 57) {
|
|
474
|
+
break;
|
|
475
|
+
}
|
|
476
|
+
message.final_amount = reader.double();
|
|
477
|
+
continue;
|
|
478
|
+
case 8:
|
|
479
|
+
if (tag !== 66) {
|
|
480
|
+
break;
|
|
481
|
+
}
|
|
482
|
+
message.status = reader.string();
|
|
483
|
+
continue;
|
|
484
|
+
case 9:
|
|
485
|
+
if (tag !== 74) {
|
|
486
|
+
break;
|
|
487
|
+
}
|
|
488
|
+
message.txn_id = reader.string();
|
|
489
|
+
continue;
|
|
490
|
+
case 10:
|
|
491
|
+
if (tag !== 82) {
|
|
492
|
+
break;
|
|
493
|
+
}
|
|
494
|
+
message.order_id = reader.string();
|
|
495
|
+
continue;
|
|
496
|
+
case 11:
|
|
497
|
+
if (tag !== 90) {
|
|
498
|
+
break;
|
|
499
|
+
}
|
|
500
|
+
message.bbps_ref_no = reader.string();
|
|
501
|
+
continue;
|
|
502
|
+
case 12:
|
|
503
|
+
if (tag !== 98) {
|
|
504
|
+
break;
|
|
505
|
+
}
|
|
506
|
+
message.source_ref_no = reader.string();
|
|
507
|
+
continue;
|
|
508
|
+
case 13:
|
|
509
|
+
if (tag !== 106) {
|
|
510
|
+
break;
|
|
511
|
+
}
|
|
512
|
+
message.paid_at = reader.string();
|
|
513
|
+
continue;
|
|
514
|
+
case 14:
|
|
515
|
+
if (tag !== 114) {
|
|
516
|
+
break;
|
|
517
|
+
}
|
|
518
|
+
message.biller_status = reader.string();
|
|
519
|
+
continue;
|
|
520
|
+
}
|
|
521
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
522
|
+
break;
|
|
523
|
+
}
|
|
524
|
+
reader.skipType(tag & 7);
|
|
525
|
+
}
|
|
526
|
+
return message;
|
|
527
|
+
},
|
|
528
|
+
fromJSON(object) {
|
|
529
|
+
return {
|
|
530
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
531
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
532
|
+
utility_name: isSet(object.utility_name) ? globalThis.String(object.utility_name) : "",
|
|
533
|
+
provider_name: isSet(object.provider_name) ? globalThis.String(object.provider_name) : "",
|
|
534
|
+
provider_logo: isSet(object.provider_logo) ? globalThis.String(object.provider_logo) : undefined,
|
|
535
|
+
account_no: isSet(object.account_no) ? globalThis.String(object.account_no) : undefined,
|
|
536
|
+
final_amount: isSet(object.final_amount) ? globalThis.Number(object.final_amount) : 0,
|
|
537
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
538
|
+
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
|
|
539
|
+
order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
|
|
540
|
+
bbps_ref_no: isSet(object.bbps_ref_no) ? globalThis.String(object.bbps_ref_no) : undefined,
|
|
541
|
+
source_ref_no: isSet(object.source_ref_no) ? globalThis.String(object.source_ref_no) : undefined,
|
|
542
|
+
paid_at: isSet(object.paid_at) ? globalThis.String(object.paid_at) : "",
|
|
543
|
+
biller_status: isSet(object.biller_status) ? globalThis.String(object.biller_status) : undefined,
|
|
544
|
+
};
|
|
545
|
+
},
|
|
546
|
+
toJSON(message) {
|
|
547
|
+
const obj = {};
|
|
548
|
+
if (message.id !== 0) {
|
|
549
|
+
obj.id = Math.round(message.id);
|
|
550
|
+
}
|
|
551
|
+
if (message.customer_id !== 0) {
|
|
552
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
553
|
+
}
|
|
554
|
+
if (message.utility_name !== "") {
|
|
555
|
+
obj.utility_name = message.utility_name;
|
|
556
|
+
}
|
|
557
|
+
if (message.provider_name !== "") {
|
|
558
|
+
obj.provider_name = message.provider_name;
|
|
559
|
+
}
|
|
560
|
+
if (message.provider_logo !== undefined) {
|
|
561
|
+
obj.provider_logo = message.provider_logo;
|
|
562
|
+
}
|
|
563
|
+
if (message.account_no !== undefined) {
|
|
564
|
+
obj.account_no = message.account_no;
|
|
565
|
+
}
|
|
566
|
+
if (message.final_amount !== 0) {
|
|
567
|
+
obj.final_amount = message.final_amount;
|
|
568
|
+
}
|
|
569
|
+
if (message.status !== "") {
|
|
570
|
+
obj.status = message.status;
|
|
571
|
+
}
|
|
572
|
+
if (message.txn_id !== "") {
|
|
573
|
+
obj.txn_id = message.txn_id;
|
|
574
|
+
}
|
|
575
|
+
if (message.order_id !== "") {
|
|
576
|
+
obj.order_id = message.order_id;
|
|
577
|
+
}
|
|
578
|
+
if (message.bbps_ref_no !== undefined) {
|
|
579
|
+
obj.bbps_ref_no = message.bbps_ref_no;
|
|
580
|
+
}
|
|
581
|
+
if (message.source_ref_no !== undefined) {
|
|
582
|
+
obj.source_ref_no = message.source_ref_no;
|
|
583
|
+
}
|
|
584
|
+
if (message.paid_at !== "") {
|
|
585
|
+
obj.paid_at = message.paid_at;
|
|
586
|
+
}
|
|
587
|
+
if (message.biller_status !== undefined) {
|
|
588
|
+
obj.biller_status = message.biller_status;
|
|
589
|
+
}
|
|
590
|
+
return obj;
|
|
591
|
+
},
|
|
592
|
+
create(base) {
|
|
593
|
+
return exports.TxnResponse.fromPartial(base ?? {});
|
|
594
|
+
},
|
|
595
|
+
fromPartial(object) {
|
|
596
|
+
const message = createBaseTxnResponse();
|
|
597
|
+
message.id = object.id ?? 0;
|
|
598
|
+
message.customer_id = object.customer_id ?? 0;
|
|
599
|
+
message.utility_name = object.utility_name ?? "";
|
|
600
|
+
message.provider_name = object.provider_name ?? "";
|
|
601
|
+
message.provider_logo = object.provider_logo ?? undefined;
|
|
602
|
+
message.account_no = object.account_no ?? undefined;
|
|
603
|
+
message.final_amount = object.final_amount ?? 0;
|
|
604
|
+
message.status = object.status ?? "";
|
|
605
|
+
message.txn_id = object.txn_id ?? "";
|
|
606
|
+
message.order_id = object.order_id ?? "";
|
|
607
|
+
message.bbps_ref_no = object.bbps_ref_no ?? undefined;
|
|
608
|
+
message.source_ref_no = object.source_ref_no ?? undefined;
|
|
609
|
+
message.paid_at = object.paid_at ?? "";
|
|
610
|
+
message.biller_status = object.biller_status ?? undefined;
|
|
611
|
+
return message;
|
|
612
|
+
},
|
|
613
|
+
};
|
|
614
|
+
function createBaseAuthSessionResponse() {
|
|
615
|
+
return { customer_id: 0, auth_token: undefined, device_id: undefined };
|
|
616
|
+
}
|
|
617
|
+
exports.AuthSessionResponse = {
|
|
618
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
619
|
+
if (message.customer_id !== 0) {
|
|
620
|
+
writer.uint32(8).int32(message.customer_id);
|
|
621
|
+
}
|
|
622
|
+
if (message.auth_token !== undefined) {
|
|
623
|
+
writer.uint32(18).string(message.auth_token);
|
|
624
|
+
}
|
|
625
|
+
if (message.device_id !== undefined) {
|
|
626
|
+
writer.uint32(26).string(message.device_id);
|
|
627
|
+
}
|
|
628
|
+
return writer;
|
|
629
|
+
},
|
|
630
|
+
decode(input, length) {
|
|
631
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
632
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
633
|
+
const message = createBaseAuthSessionResponse();
|
|
634
|
+
while (reader.pos < end) {
|
|
635
|
+
const tag = reader.uint32();
|
|
636
|
+
switch (tag >>> 3) {
|
|
637
|
+
case 1:
|
|
638
|
+
if (tag !== 8) {
|
|
639
|
+
break;
|
|
640
|
+
}
|
|
641
|
+
message.customer_id = reader.int32();
|
|
642
|
+
continue;
|
|
643
|
+
case 2:
|
|
644
|
+
if (tag !== 18) {
|
|
645
|
+
break;
|
|
646
|
+
}
|
|
647
|
+
message.auth_token = reader.string();
|
|
648
|
+
continue;
|
|
649
|
+
case 3:
|
|
650
|
+
if (tag !== 26) {
|
|
651
|
+
break;
|
|
652
|
+
}
|
|
653
|
+
message.device_id = reader.string();
|
|
654
|
+
continue;
|
|
655
|
+
}
|
|
656
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
657
|
+
break;
|
|
658
|
+
}
|
|
659
|
+
reader.skipType(tag & 7);
|
|
660
|
+
}
|
|
661
|
+
return message;
|
|
662
|
+
},
|
|
663
|
+
fromJSON(object) {
|
|
664
|
+
return {
|
|
665
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
666
|
+
auth_token: isSet(object.auth_token) ? globalThis.String(object.auth_token) : undefined,
|
|
667
|
+
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : undefined,
|
|
668
|
+
};
|
|
669
|
+
},
|
|
670
|
+
toJSON(message) {
|
|
671
|
+
const obj = {};
|
|
672
|
+
if (message.customer_id !== 0) {
|
|
673
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
674
|
+
}
|
|
675
|
+
if (message.auth_token !== undefined) {
|
|
676
|
+
obj.auth_token = message.auth_token;
|
|
677
|
+
}
|
|
678
|
+
if (message.device_id !== undefined) {
|
|
679
|
+
obj.device_id = message.device_id;
|
|
680
|
+
}
|
|
681
|
+
return obj;
|
|
682
|
+
},
|
|
683
|
+
create(base) {
|
|
684
|
+
return exports.AuthSessionResponse.fromPartial(base ?? {});
|
|
685
|
+
},
|
|
686
|
+
fromPartial(object) {
|
|
687
|
+
const message = createBaseAuthSessionResponse();
|
|
688
|
+
message.customer_id = object.customer_id ?? 0;
|
|
689
|
+
message.auth_token = object.auth_token ?? undefined;
|
|
690
|
+
message.device_id = object.device_id ?? undefined;
|
|
691
|
+
return message;
|
|
692
|
+
},
|
|
693
|
+
};
|
|
694
|
+
function createBaseBDTransactionResponse() {
|
|
695
|
+
return { txnResponse: undefined, authSessionResponse: undefined };
|
|
696
|
+
}
|
|
697
|
+
exports.BDTransactionResponse = {
|
|
698
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
699
|
+
if (message.txnResponse !== undefined) {
|
|
700
|
+
exports.TxnResponse.encode(message.txnResponse, writer.uint32(10).fork()).ldelim();
|
|
701
|
+
}
|
|
702
|
+
if (message.authSessionResponse !== undefined) {
|
|
703
|
+
exports.AuthSessionResponse.encode(message.authSessionResponse, writer.uint32(18).fork()).ldelim();
|
|
704
|
+
}
|
|
705
|
+
return writer;
|
|
706
|
+
},
|
|
707
|
+
decode(input, length) {
|
|
708
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
709
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
710
|
+
const message = createBaseBDTransactionResponse();
|
|
711
|
+
while (reader.pos < end) {
|
|
712
|
+
const tag = reader.uint32();
|
|
713
|
+
switch (tag >>> 3) {
|
|
714
|
+
case 1:
|
|
715
|
+
if (tag !== 10) {
|
|
716
|
+
break;
|
|
717
|
+
}
|
|
718
|
+
message.txnResponse = exports.TxnResponse.decode(reader, reader.uint32());
|
|
719
|
+
continue;
|
|
720
|
+
case 2:
|
|
721
|
+
if (tag !== 18) {
|
|
722
|
+
break;
|
|
723
|
+
}
|
|
724
|
+
message.authSessionResponse = exports.AuthSessionResponse.decode(reader, reader.uint32());
|
|
725
|
+
continue;
|
|
726
|
+
}
|
|
727
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
728
|
+
break;
|
|
729
|
+
}
|
|
730
|
+
reader.skipType(tag & 7);
|
|
731
|
+
}
|
|
732
|
+
return message;
|
|
733
|
+
},
|
|
734
|
+
fromJSON(object) {
|
|
735
|
+
return {
|
|
736
|
+
txnResponse: isSet(object.txnResponse) ? exports.TxnResponse.fromJSON(object.txnResponse) : undefined,
|
|
737
|
+
authSessionResponse: isSet(object.authSessionResponse)
|
|
738
|
+
? exports.AuthSessionResponse.fromJSON(object.authSessionResponse)
|
|
739
|
+
: undefined,
|
|
740
|
+
};
|
|
741
|
+
},
|
|
742
|
+
toJSON(message) {
|
|
743
|
+
const obj = {};
|
|
744
|
+
if (message.txnResponse !== undefined) {
|
|
745
|
+
obj.txnResponse = exports.TxnResponse.toJSON(message.txnResponse);
|
|
746
|
+
}
|
|
747
|
+
if (message.authSessionResponse !== undefined) {
|
|
748
|
+
obj.authSessionResponse = exports.AuthSessionResponse.toJSON(message.authSessionResponse);
|
|
749
|
+
}
|
|
750
|
+
return obj;
|
|
751
|
+
},
|
|
752
|
+
create(base) {
|
|
753
|
+
return exports.BDTransactionResponse.fromPartial(base ?? {});
|
|
754
|
+
},
|
|
755
|
+
fromPartial(object) {
|
|
756
|
+
const message = createBaseBDTransactionResponse();
|
|
757
|
+
message.txnResponse = (object.txnResponse !== undefined && object.txnResponse !== null)
|
|
758
|
+
? exports.TxnResponse.fromPartial(object.txnResponse)
|
|
759
|
+
: undefined;
|
|
760
|
+
message.authSessionResponse = (object.authSessionResponse !== undefined && object.authSessionResponse !== null)
|
|
761
|
+
? exports.AuthSessionResponse.fromPartial(object.authSessionResponse)
|
|
762
|
+
: undefined;
|
|
763
|
+
return message;
|
|
764
|
+
},
|
|
765
|
+
};
|
|
766
|
+
function longToNumber(long) {
|
|
767
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
768
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
769
|
+
}
|
|
770
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
771
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
772
|
+
}
|
|
773
|
+
return long.toNumber();
|
|
774
|
+
}
|
|
775
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
776
|
+
minimal_1.default.util.Long = long_1.default;
|
|
777
|
+
minimal_1.default.configure();
|
|
778
|
+
}
|
|
779
|
+
function isObject(value) {
|
|
780
|
+
return typeof value === "object" && value !== null;
|
|
781
|
+
}
|
|
782
|
+
function isSet(value) {
|
|
783
|
+
return value !== null && value !== undefined;
|
|
784
|
+
}
|
package/ts/bbps.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { getAllBbpsTnxRequest, getAllBbpsTnxResponse } from "./bbps/getallbbpstr
|
|
|
3
3
|
import { getAllCategoryRequest, getAllCategoryResponse } from "./bbps/getallcategory";
|
|
4
4
|
import { BillFetchRequest, BillFetchResponse } from "./bbps/getbillforreminder";
|
|
5
5
|
import { getBillsRequest, getBillsResponse } from "./bbps/getbills";
|
|
6
|
+
import { BDTransactionRequest as BDTransactionRequest1, BDTransactionResponse as BDTransactionResponse2 } from "./bbps/processdecryptedrudata";
|
|
6
7
|
import { BDTransactionRequest, BDTransactionResponse } from "./bbps/processwebhook";
|
|
7
8
|
import { BillTransactionUpdateEvent, StatusResponse } from "./bbps/sendremindercall";
|
|
8
9
|
import { updateTxnsStatusRequest, updateTxnsStatusResponse } from "./bbps/updatetxnsstatus";
|
|
@@ -27,6 +28,15 @@ export declare const bbpsService: {
|
|
|
27
28
|
readonly responseSerialize: (value: BDTransactionResponse) => Buffer<ArrayBuffer>;
|
|
28
29
|
readonly responseDeserialize: (value: Buffer) => BDTransactionResponse;
|
|
29
30
|
};
|
|
31
|
+
readonly processDecryptedRuData: {
|
|
32
|
+
readonly path: "/service.bbps/processDecryptedRUData";
|
|
33
|
+
readonly requestStream: false;
|
|
34
|
+
readonly responseStream: false;
|
|
35
|
+
readonly requestSerialize: (value: BDTransactionRequest1) => Buffer<ArrayBuffer>;
|
|
36
|
+
readonly requestDeserialize: (value: Buffer) => BDTransactionRequest1;
|
|
37
|
+
readonly responseSerialize: (value: BDTransactionResponse2) => Buffer<ArrayBuffer>;
|
|
38
|
+
readonly responseDeserialize: (value: Buffer) => BDTransactionResponse2;
|
|
39
|
+
};
|
|
30
40
|
readonly getAllBbpsTnxs: {
|
|
31
41
|
readonly path: "/service.bbps/getAllBbpsTnxs";
|
|
32
42
|
readonly requestStream: false;
|
|
@@ -76,6 +86,7 @@ export declare const bbpsService: {
|
|
|
76
86
|
export interface bbpsServer extends UntypedServiceImplementation {
|
|
77
87
|
getBillList: handleUnaryCall<getBillsRequest, getBillsResponse>;
|
|
78
88
|
processWebhook: handleUnaryCall<BDTransactionRequest, BDTransactionResponse>;
|
|
89
|
+
processDecryptedRuData: handleUnaryCall<BDTransactionRequest1, BDTransactionResponse2>;
|
|
79
90
|
getAllBbpsTnxs: handleUnaryCall<getAllBbpsTnxRequest, getAllBbpsTnxResponse>;
|
|
80
91
|
getAllBbpsCategory: handleUnaryCall<getAllCategoryRequest, getAllCategoryResponse>;
|
|
81
92
|
updateBbpsTxnsStatus: handleUnaryCall<updateTxnsStatusRequest, updateTxnsStatusResponse>;
|
|
@@ -89,6 +100,9 @@ export interface bbpsClient extends Client {
|
|
|
89
100
|
processWebhook(request: BDTransactionRequest, callback: (error: ServiceError | null, response: BDTransactionResponse) => void): ClientUnaryCall;
|
|
90
101
|
processWebhook(request: BDTransactionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: BDTransactionResponse) => void): ClientUnaryCall;
|
|
91
102
|
processWebhook(request: BDTransactionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: BDTransactionResponse) => void): ClientUnaryCall;
|
|
103
|
+
processDecryptedRuData(request: BDTransactionRequest1, callback: (error: ServiceError | null, response: BDTransactionResponse2) => void): ClientUnaryCall;
|
|
104
|
+
processDecryptedRuData(request: BDTransactionRequest1, metadata: Metadata, callback: (error: ServiceError | null, response: BDTransactionResponse2) => void): ClientUnaryCall;
|
|
105
|
+
processDecryptedRuData(request: BDTransactionRequest1, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: BDTransactionResponse2) => void): ClientUnaryCall;
|
|
92
106
|
getAllBbpsTnxs(request: getAllBbpsTnxRequest, callback: (error: ServiceError | null, response: getAllBbpsTnxResponse) => void): ClientUnaryCall;
|
|
93
107
|
getAllBbpsTnxs(request: getAllBbpsTnxRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAllBbpsTnxResponse) => void): ClientUnaryCall;
|
|
94
108
|
getAllBbpsTnxs(request: getAllBbpsTnxRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAllBbpsTnxResponse) => void): ClientUnaryCall;
|
package/ts/bbps.js
CHANGED
|
@@ -12,6 +12,7 @@ const getallbbpstransactions_1 = require("./bbps/getallbbpstransactions");
|
|
|
12
12
|
const getallcategory_1 = require("./bbps/getallcategory");
|
|
13
13
|
const getbillforreminder_1 = require("./bbps/getbillforreminder");
|
|
14
14
|
const getbills_1 = require("./bbps/getbills");
|
|
15
|
+
const processdecryptedrudata_1 = require("./bbps/processdecryptedrudata");
|
|
15
16
|
const processwebhook_1 = require("./bbps/processwebhook");
|
|
16
17
|
const sendremindercall_1 = require("./bbps/sendremindercall");
|
|
17
18
|
const updatetxnsstatus_1 = require("./bbps/updatetxnsstatus");
|
|
@@ -35,6 +36,15 @@ exports.bbpsService = {
|
|
|
35
36
|
responseSerialize: (value) => Buffer.from(processwebhook_1.BDTransactionResponse.encode(value).finish()),
|
|
36
37
|
responseDeserialize: (value) => processwebhook_1.BDTransactionResponse.decode(value),
|
|
37
38
|
},
|
|
39
|
+
processDecryptedRuData: {
|
|
40
|
+
path: "/service.bbps/processDecryptedRUData",
|
|
41
|
+
requestStream: false,
|
|
42
|
+
responseStream: false,
|
|
43
|
+
requestSerialize: (value) => Buffer.from(processdecryptedrudata_1.BDTransactionRequest.encode(value).finish()),
|
|
44
|
+
requestDeserialize: (value) => processdecryptedrudata_1.BDTransactionRequest.decode(value),
|
|
45
|
+
responseSerialize: (value) => Buffer.from(processdecryptedrudata_1.BDTransactionResponse.encode(value).finish()),
|
|
46
|
+
responseDeserialize: (value) => processdecryptedrudata_1.BDTransactionResponse.decode(value),
|
|
47
|
+
},
|
|
38
48
|
getAllBbpsTnxs: {
|
|
39
49
|
path: "/service.bbps/getAllBbpsTnxs",
|
|
40
50
|
requestStream: false,
|