@technova-tech/olive-proto-lib 1.2.0
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/accounts/accounts.js +11726 -0
- package/admin/admin.js +6902 -0
- package/audit/audit.js +984 -0
- package/bills/bills.js +2363 -0
- package/business/business.js +16432 -0
- package/google/protobuf/any.js +113 -0
- package/google/protobuf/struct.js +357 -0
- package/image/recognition.js +456 -0
- package/index.js +46 -0
- package/package.json +31 -0
- package/pos/transactions.js +2084 -0
- package/pos.v1/auth.js +1179 -0
- package/pos.v1/card-transactions.js +2473 -0
- package/pos.v1/eod.js +2416 -0
- package/pos.v1/merchants.js +1552 -0
- package/pos.v1/terminal-transactions.js +3792 -0
- package/pos.v1/terminal-types.js +3888 -0
- package/pos.v1/terminals.js +32605 -0
- package/pos.v1/transactions.js +2918 -0
- package/shared/response.js +233 -0
- package/storage/storage.js +476 -0
- package/terminal/terminal.js +12583 -0
- package/transfer/transfer.js +3609 -0
- package/types/accounts/accounts.d.ts +3943 -0
- package/types/admin/admin.d.ts +2348 -0
- package/types/audit/audit.d.ts +323 -0
- package/types/bills/bills.d.ts +731 -0
- package/types/business/business.d.ts +7630 -0
- package/types/google/protobuf/any.d.ts +27 -0
- package/types/google/protobuf/struct.d.ts +175 -0
- package/types/image/recognition.d.ts +147 -0
- package/types/index.d.ts +43 -0
- package/types/pos/transactions.d.ts +667 -0
- package/types/pos.v1/auth.d.ts +374 -0
- package/types/pos.v1/card-transactions.d.ts +808 -0
- package/types/pos.v1/eod.d.ts +819 -0
- package/types/pos.v1/merchants.d.ts +566 -0
- package/types/pos.v1/terminal-transactions.d.ts +1342 -0
- package/types/pos.v1/terminal-types.d.ts +1215 -0
- package/types/pos.v1/terminals.d.ts +11142 -0
- package/types/pos.v1/transactions.d.ts +1057 -0
- package/types/shared/response.d.ts +65 -0
- package/types/storage/storage.d.ts +153 -0
- package/types/terminal/terminal.d.ts +5482 -0
- package/types/transfer/transfer.d.ts +1148 -0
- package/types/users/users.d.ts +4336 -0
- package/types/verifications/verifications.d.ts +2952 -0
- package/users/users.js +12683 -0
- package/verifications/verifications.js +8194 -0
|
@@ -0,0 +1,3609 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.com = void 0;
|
|
27
|
+
const pb_1 = __importStar(require("google-protobuf"));
|
|
28
|
+
const grpc_1 = __importStar(require("@grpc/grpc-js"));
|
|
29
|
+
var com;
|
|
30
|
+
(function (com) {
|
|
31
|
+
var pkg;
|
|
32
|
+
(function (pkg) {
|
|
33
|
+
var transfer;
|
|
34
|
+
(function (transfer) {
|
|
35
|
+
class ValidationErrors extends pb_1.Message {
|
|
36
|
+
#one_of_decls = [];
|
|
37
|
+
constructor(data) {
|
|
38
|
+
super();
|
|
39
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
40
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
41
|
+
if ("field" in data && data.field != undefined) {
|
|
42
|
+
this.field = data.field;
|
|
43
|
+
}
|
|
44
|
+
if ("message" in data && data.message != undefined) {
|
|
45
|
+
this.message = data.message;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
get field() {
|
|
50
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
51
|
+
}
|
|
52
|
+
set field(value) {
|
|
53
|
+
pb_1.Message.setField(this, 1, value);
|
|
54
|
+
}
|
|
55
|
+
get message() {
|
|
56
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
57
|
+
}
|
|
58
|
+
set message(value) {
|
|
59
|
+
pb_1.Message.setField(this, 2, value);
|
|
60
|
+
}
|
|
61
|
+
static fromObject(data) {
|
|
62
|
+
const message = new ValidationErrors({});
|
|
63
|
+
if (data.field != null) {
|
|
64
|
+
message.field = data.field;
|
|
65
|
+
}
|
|
66
|
+
if (data.message != null) {
|
|
67
|
+
message.message = data.message;
|
|
68
|
+
}
|
|
69
|
+
return message;
|
|
70
|
+
}
|
|
71
|
+
toObject() {
|
|
72
|
+
const data = {};
|
|
73
|
+
if (this.field != null) {
|
|
74
|
+
data.field = this.field;
|
|
75
|
+
}
|
|
76
|
+
if (this.message != null) {
|
|
77
|
+
data.message = this.message;
|
|
78
|
+
}
|
|
79
|
+
return data;
|
|
80
|
+
}
|
|
81
|
+
serialize(w) {
|
|
82
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
83
|
+
if (this.field.length)
|
|
84
|
+
writer.writeString(1, this.field);
|
|
85
|
+
if (this.message.length)
|
|
86
|
+
writer.writeString(2, this.message);
|
|
87
|
+
if (!w)
|
|
88
|
+
return writer.getResultBuffer();
|
|
89
|
+
}
|
|
90
|
+
static deserialize(bytes) {
|
|
91
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ValidationErrors();
|
|
92
|
+
while (reader.nextField()) {
|
|
93
|
+
if (reader.isEndGroup())
|
|
94
|
+
break;
|
|
95
|
+
switch (reader.getFieldNumber()) {
|
|
96
|
+
case 1:
|
|
97
|
+
message.field = reader.readString();
|
|
98
|
+
break;
|
|
99
|
+
case 2:
|
|
100
|
+
message.message = reader.readString();
|
|
101
|
+
break;
|
|
102
|
+
default: reader.skipField();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return message;
|
|
106
|
+
}
|
|
107
|
+
serializeBinary() {
|
|
108
|
+
return this.serialize();
|
|
109
|
+
}
|
|
110
|
+
static deserializeBinary(bytes) {
|
|
111
|
+
return ValidationErrors.deserialize(bytes);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
transfer.ValidationErrors = ValidationErrors;
|
|
115
|
+
class Pagination extends pb_1.Message {
|
|
116
|
+
#one_of_decls = [];
|
|
117
|
+
constructor(data) {
|
|
118
|
+
super();
|
|
119
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
120
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
121
|
+
if ("total" in data && data.total != undefined) {
|
|
122
|
+
this.total = data.total;
|
|
123
|
+
}
|
|
124
|
+
if ("page" in data && data.page != undefined) {
|
|
125
|
+
this.page = data.page;
|
|
126
|
+
}
|
|
127
|
+
if ("limit" in data && data.limit != undefined) {
|
|
128
|
+
this.limit = data.limit;
|
|
129
|
+
}
|
|
130
|
+
if ("hasNext" in data && data.hasNext != undefined) {
|
|
131
|
+
this.hasNext = data.hasNext;
|
|
132
|
+
}
|
|
133
|
+
if ("hasPrev" in data && data.hasPrev != undefined) {
|
|
134
|
+
this.hasPrev = data.hasPrev;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
get total() {
|
|
139
|
+
return pb_1.Message.getFieldWithDefault(this, 1, 0);
|
|
140
|
+
}
|
|
141
|
+
set total(value) {
|
|
142
|
+
pb_1.Message.setField(this, 1, value);
|
|
143
|
+
}
|
|
144
|
+
get page() {
|
|
145
|
+
return pb_1.Message.getFieldWithDefault(this, 2, 0);
|
|
146
|
+
}
|
|
147
|
+
set page(value) {
|
|
148
|
+
pb_1.Message.setField(this, 2, value);
|
|
149
|
+
}
|
|
150
|
+
get limit() {
|
|
151
|
+
return pb_1.Message.getFieldWithDefault(this, 3, 0);
|
|
152
|
+
}
|
|
153
|
+
set limit(value) {
|
|
154
|
+
pb_1.Message.setField(this, 3, value);
|
|
155
|
+
}
|
|
156
|
+
get hasNext() {
|
|
157
|
+
return pb_1.Message.getFieldWithDefault(this, 4, false);
|
|
158
|
+
}
|
|
159
|
+
set hasNext(value) {
|
|
160
|
+
pb_1.Message.setField(this, 4, value);
|
|
161
|
+
}
|
|
162
|
+
get hasPrev() {
|
|
163
|
+
return pb_1.Message.getFieldWithDefault(this, 5, false);
|
|
164
|
+
}
|
|
165
|
+
set hasPrev(value) {
|
|
166
|
+
pb_1.Message.setField(this, 5, value);
|
|
167
|
+
}
|
|
168
|
+
static fromObject(data) {
|
|
169
|
+
const message = new Pagination({});
|
|
170
|
+
if (data.total != null) {
|
|
171
|
+
message.total = data.total;
|
|
172
|
+
}
|
|
173
|
+
if (data.page != null) {
|
|
174
|
+
message.page = data.page;
|
|
175
|
+
}
|
|
176
|
+
if (data.limit != null) {
|
|
177
|
+
message.limit = data.limit;
|
|
178
|
+
}
|
|
179
|
+
if (data.hasNext != null) {
|
|
180
|
+
message.hasNext = data.hasNext;
|
|
181
|
+
}
|
|
182
|
+
if (data.hasPrev != null) {
|
|
183
|
+
message.hasPrev = data.hasPrev;
|
|
184
|
+
}
|
|
185
|
+
return message;
|
|
186
|
+
}
|
|
187
|
+
toObject() {
|
|
188
|
+
const data = {};
|
|
189
|
+
if (this.total != null) {
|
|
190
|
+
data.total = this.total;
|
|
191
|
+
}
|
|
192
|
+
if (this.page != null) {
|
|
193
|
+
data.page = this.page;
|
|
194
|
+
}
|
|
195
|
+
if (this.limit != null) {
|
|
196
|
+
data.limit = this.limit;
|
|
197
|
+
}
|
|
198
|
+
if (this.hasNext != null) {
|
|
199
|
+
data.hasNext = this.hasNext;
|
|
200
|
+
}
|
|
201
|
+
if (this.hasPrev != null) {
|
|
202
|
+
data.hasPrev = this.hasPrev;
|
|
203
|
+
}
|
|
204
|
+
return data;
|
|
205
|
+
}
|
|
206
|
+
serialize(w) {
|
|
207
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
208
|
+
if (this.total != 0)
|
|
209
|
+
writer.writeUint32(1, this.total);
|
|
210
|
+
if (this.page != 0)
|
|
211
|
+
writer.writeUint32(2, this.page);
|
|
212
|
+
if (this.limit != 0)
|
|
213
|
+
writer.writeUint32(3, this.limit);
|
|
214
|
+
if (this.hasNext != false)
|
|
215
|
+
writer.writeBool(4, this.hasNext);
|
|
216
|
+
if (this.hasPrev != false)
|
|
217
|
+
writer.writeBool(5, this.hasPrev);
|
|
218
|
+
if (!w)
|
|
219
|
+
return writer.getResultBuffer();
|
|
220
|
+
}
|
|
221
|
+
static deserialize(bytes) {
|
|
222
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Pagination();
|
|
223
|
+
while (reader.nextField()) {
|
|
224
|
+
if (reader.isEndGroup())
|
|
225
|
+
break;
|
|
226
|
+
switch (reader.getFieldNumber()) {
|
|
227
|
+
case 1:
|
|
228
|
+
message.total = reader.readUint32();
|
|
229
|
+
break;
|
|
230
|
+
case 2:
|
|
231
|
+
message.page = reader.readUint32();
|
|
232
|
+
break;
|
|
233
|
+
case 3:
|
|
234
|
+
message.limit = reader.readUint32();
|
|
235
|
+
break;
|
|
236
|
+
case 4:
|
|
237
|
+
message.hasNext = reader.readBool();
|
|
238
|
+
break;
|
|
239
|
+
case 5:
|
|
240
|
+
message.hasPrev = reader.readBool();
|
|
241
|
+
break;
|
|
242
|
+
default: reader.skipField();
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return message;
|
|
246
|
+
}
|
|
247
|
+
serializeBinary() {
|
|
248
|
+
return this.serialize();
|
|
249
|
+
}
|
|
250
|
+
static deserializeBinary(bytes) {
|
|
251
|
+
return Pagination.deserialize(bytes);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
transfer.Pagination = Pagination;
|
|
255
|
+
class FundTransferRequest extends pb_1.Message {
|
|
256
|
+
#one_of_decls = [];
|
|
257
|
+
constructor(data) {
|
|
258
|
+
super();
|
|
259
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
260
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
261
|
+
if ("amount" in data && data.amount != undefined) {
|
|
262
|
+
this.amount = data.amount;
|
|
263
|
+
}
|
|
264
|
+
if ("beneficiaryAccountName" in data && data.beneficiaryAccountName != undefined) {
|
|
265
|
+
this.beneficiaryAccountName = data.beneficiaryAccountName;
|
|
266
|
+
}
|
|
267
|
+
if ("beneficiaryAccountNumber" in data && data.beneficiaryAccountNumber != undefined) {
|
|
268
|
+
this.beneficiaryAccountNumber = data.beneficiaryAccountNumber;
|
|
269
|
+
}
|
|
270
|
+
if ("beneficiaryBankVerificationNumber" in data && data.beneficiaryBankVerificationNumber != undefined) {
|
|
271
|
+
this.beneficiaryBankVerificationNumber = data.beneficiaryBankVerificationNumber;
|
|
272
|
+
}
|
|
273
|
+
if ("beneficiaryInstitutionCode" in data && data.beneficiaryInstitutionCode != undefined) {
|
|
274
|
+
this.beneficiaryInstitutionCode = data.beneficiaryInstitutionCode;
|
|
275
|
+
}
|
|
276
|
+
if ("beneficiaryKycLevel" in data && data.beneficiaryKycLevel != undefined) {
|
|
277
|
+
this.beneficiaryKycLevel = data.beneficiaryKycLevel;
|
|
278
|
+
}
|
|
279
|
+
if ("beneficiaryNarration" in data && data.beneficiaryNarration != undefined) {
|
|
280
|
+
this.beneficiaryNarration = data.beneficiaryNarration;
|
|
281
|
+
}
|
|
282
|
+
if ("originatorAccountName" in data && data.originatorAccountName != undefined) {
|
|
283
|
+
this.originatorAccountName = data.originatorAccountName;
|
|
284
|
+
}
|
|
285
|
+
if ("originatorAccountNumber" in data && data.originatorAccountNumber != undefined) {
|
|
286
|
+
this.originatorAccountNumber = data.originatorAccountNumber;
|
|
287
|
+
}
|
|
288
|
+
if ("originatorKycLevel" in data && data.originatorKycLevel != undefined) {
|
|
289
|
+
this.originatorKycLevel = data.originatorKycLevel;
|
|
290
|
+
}
|
|
291
|
+
if ("originatorBankVerificationNumber" in data && data.originatorBankVerificationNumber != undefined) {
|
|
292
|
+
this.originatorBankVerificationNumber = data.originatorBankVerificationNumber;
|
|
293
|
+
}
|
|
294
|
+
if ("originatorInstitutionCode" in data && data.originatorInstitutionCode != undefined) {
|
|
295
|
+
this.originatorInstitutionCode = data.originatorInstitutionCode;
|
|
296
|
+
}
|
|
297
|
+
if ("originatorNarration" in data && data.originatorNarration != undefined) {
|
|
298
|
+
this.originatorNarration = data.originatorNarration;
|
|
299
|
+
}
|
|
300
|
+
if ("channelCode" in data && data.channelCode != undefined) {
|
|
301
|
+
this.channelCode = data.channelCode;
|
|
302
|
+
}
|
|
303
|
+
if ("paymentReference" in data && data.paymentReference != undefined) {
|
|
304
|
+
this.paymentReference = data.paymentReference;
|
|
305
|
+
}
|
|
306
|
+
if ("sessionId" in data && data.sessionId != undefined) {
|
|
307
|
+
this.sessionId = data.sessionId;
|
|
308
|
+
}
|
|
309
|
+
if ("provider" in data && data.provider != undefined) {
|
|
310
|
+
this.provider = data.provider;
|
|
311
|
+
}
|
|
312
|
+
if ("transactionId" in data && data.transactionId != undefined) {
|
|
313
|
+
this.transactionId = data.transactionId;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
get amount() {
|
|
318
|
+
return pb_1.Message.getFieldWithDefault(this, 1, 0);
|
|
319
|
+
}
|
|
320
|
+
set amount(value) {
|
|
321
|
+
pb_1.Message.setField(this, 1, value);
|
|
322
|
+
}
|
|
323
|
+
get beneficiaryAccountName() {
|
|
324
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
325
|
+
}
|
|
326
|
+
set beneficiaryAccountName(value) {
|
|
327
|
+
pb_1.Message.setField(this, 2, value);
|
|
328
|
+
}
|
|
329
|
+
get beneficiaryAccountNumber() {
|
|
330
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
331
|
+
}
|
|
332
|
+
set beneficiaryAccountNumber(value) {
|
|
333
|
+
pb_1.Message.setField(this, 3, value);
|
|
334
|
+
}
|
|
335
|
+
get beneficiaryBankVerificationNumber() {
|
|
336
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
337
|
+
}
|
|
338
|
+
set beneficiaryBankVerificationNumber(value) {
|
|
339
|
+
pb_1.Message.setField(this, 4, value);
|
|
340
|
+
}
|
|
341
|
+
get beneficiaryInstitutionCode() {
|
|
342
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
343
|
+
}
|
|
344
|
+
set beneficiaryInstitutionCode(value) {
|
|
345
|
+
pb_1.Message.setField(this, 5, value);
|
|
346
|
+
}
|
|
347
|
+
get beneficiaryKycLevel() {
|
|
348
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
349
|
+
}
|
|
350
|
+
set beneficiaryKycLevel(value) {
|
|
351
|
+
pb_1.Message.setField(this, 6, value);
|
|
352
|
+
}
|
|
353
|
+
get beneficiaryNarration() {
|
|
354
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
355
|
+
}
|
|
356
|
+
set beneficiaryNarration(value) {
|
|
357
|
+
pb_1.Message.setField(this, 7, value);
|
|
358
|
+
}
|
|
359
|
+
get originatorAccountName() {
|
|
360
|
+
return pb_1.Message.getFieldWithDefault(this, 8, "");
|
|
361
|
+
}
|
|
362
|
+
set originatorAccountName(value) {
|
|
363
|
+
pb_1.Message.setField(this, 8, value);
|
|
364
|
+
}
|
|
365
|
+
get originatorAccountNumber() {
|
|
366
|
+
return pb_1.Message.getFieldWithDefault(this, 9, "");
|
|
367
|
+
}
|
|
368
|
+
set originatorAccountNumber(value) {
|
|
369
|
+
pb_1.Message.setField(this, 9, value);
|
|
370
|
+
}
|
|
371
|
+
get originatorKycLevel() {
|
|
372
|
+
return pb_1.Message.getFieldWithDefault(this, 10, "");
|
|
373
|
+
}
|
|
374
|
+
set originatorKycLevel(value) {
|
|
375
|
+
pb_1.Message.setField(this, 10, value);
|
|
376
|
+
}
|
|
377
|
+
get originatorBankVerificationNumber() {
|
|
378
|
+
return pb_1.Message.getFieldWithDefault(this, 11, "");
|
|
379
|
+
}
|
|
380
|
+
set originatorBankVerificationNumber(value) {
|
|
381
|
+
pb_1.Message.setField(this, 11, value);
|
|
382
|
+
}
|
|
383
|
+
get originatorInstitutionCode() {
|
|
384
|
+
return pb_1.Message.getFieldWithDefault(this, 12, "");
|
|
385
|
+
}
|
|
386
|
+
set originatorInstitutionCode(value) {
|
|
387
|
+
pb_1.Message.setField(this, 12, value);
|
|
388
|
+
}
|
|
389
|
+
get originatorNarration() {
|
|
390
|
+
return pb_1.Message.getFieldWithDefault(this, 13, "");
|
|
391
|
+
}
|
|
392
|
+
set originatorNarration(value) {
|
|
393
|
+
pb_1.Message.setField(this, 13, value);
|
|
394
|
+
}
|
|
395
|
+
get channelCode() {
|
|
396
|
+
return pb_1.Message.getFieldWithDefault(this, 14, "");
|
|
397
|
+
}
|
|
398
|
+
set channelCode(value) {
|
|
399
|
+
pb_1.Message.setField(this, 14, value);
|
|
400
|
+
}
|
|
401
|
+
get paymentReference() {
|
|
402
|
+
return pb_1.Message.getFieldWithDefault(this, 15, "");
|
|
403
|
+
}
|
|
404
|
+
set paymentReference(value) {
|
|
405
|
+
pb_1.Message.setField(this, 15, value);
|
|
406
|
+
}
|
|
407
|
+
get sessionId() {
|
|
408
|
+
return pb_1.Message.getFieldWithDefault(this, 16, "");
|
|
409
|
+
}
|
|
410
|
+
set sessionId(value) {
|
|
411
|
+
pb_1.Message.setField(this, 16, value);
|
|
412
|
+
}
|
|
413
|
+
get provider() {
|
|
414
|
+
return pb_1.Message.getFieldWithDefault(this, 17, "");
|
|
415
|
+
}
|
|
416
|
+
set provider(value) {
|
|
417
|
+
pb_1.Message.setField(this, 17, value);
|
|
418
|
+
}
|
|
419
|
+
get transactionId() {
|
|
420
|
+
return pb_1.Message.getFieldWithDefault(this, 18, "");
|
|
421
|
+
}
|
|
422
|
+
set transactionId(value) {
|
|
423
|
+
pb_1.Message.setField(this, 18, value);
|
|
424
|
+
}
|
|
425
|
+
static fromObject(data) {
|
|
426
|
+
const message = new FundTransferRequest({});
|
|
427
|
+
if (data.amount != null) {
|
|
428
|
+
message.amount = data.amount;
|
|
429
|
+
}
|
|
430
|
+
if (data.beneficiaryAccountName != null) {
|
|
431
|
+
message.beneficiaryAccountName = data.beneficiaryAccountName;
|
|
432
|
+
}
|
|
433
|
+
if (data.beneficiaryAccountNumber != null) {
|
|
434
|
+
message.beneficiaryAccountNumber = data.beneficiaryAccountNumber;
|
|
435
|
+
}
|
|
436
|
+
if (data.beneficiaryBankVerificationNumber != null) {
|
|
437
|
+
message.beneficiaryBankVerificationNumber = data.beneficiaryBankVerificationNumber;
|
|
438
|
+
}
|
|
439
|
+
if (data.beneficiaryInstitutionCode != null) {
|
|
440
|
+
message.beneficiaryInstitutionCode = data.beneficiaryInstitutionCode;
|
|
441
|
+
}
|
|
442
|
+
if (data.beneficiaryKycLevel != null) {
|
|
443
|
+
message.beneficiaryKycLevel = data.beneficiaryKycLevel;
|
|
444
|
+
}
|
|
445
|
+
if (data.beneficiaryNarration != null) {
|
|
446
|
+
message.beneficiaryNarration = data.beneficiaryNarration;
|
|
447
|
+
}
|
|
448
|
+
if (data.originatorAccountName != null) {
|
|
449
|
+
message.originatorAccountName = data.originatorAccountName;
|
|
450
|
+
}
|
|
451
|
+
if (data.originatorAccountNumber != null) {
|
|
452
|
+
message.originatorAccountNumber = data.originatorAccountNumber;
|
|
453
|
+
}
|
|
454
|
+
if (data.originatorKycLevel != null) {
|
|
455
|
+
message.originatorKycLevel = data.originatorKycLevel;
|
|
456
|
+
}
|
|
457
|
+
if (data.originatorBankVerificationNumber != null) {
|
|
458
|
+
message.originatorBankVerificationNumber = data.originatorBankVerificationNumber;
|
|
459
|
+
}
|
|
460
|
+
if (data.originatorInstitutionCode != null) {
|
|
461
|
+
message.originatorInstitutionCode = data.originatorInstitutionCode;
|
|
462
|
+
}
|
|
463
|
+
if (data.originatorNarration != null) {
|
|
464
|
+
message.originatorNarration = data.originatorNarration;
|
|
465
|
+
}
|
|
466
|
+
if (data.channelCode != null) {
|
|
467
|
+
message.channelCode = data.channelCode;
|
|
468
|
+
}
|
|
469
|
+
if (data.paymentReference != null) {
|
|
470
|
+
message.paymentReference = data.paymentReference;
|
|
471
|
+
}
|
|
472
|
+
if (data.sessionId != null) {
|
|
473
|
+
message.sessionId = data.sessionId;
|
|
474
|
+
}
|
|
475
|
+
if (data.provider != null) {
|
|
476
|
+
message.provider = data.provider;
|
|
477
|
+
}
|
|
478
|
+
if (data.transactionId != null) {
|
|
479
|
+
message.transactionId = data.transactionId;
|
|
480
|
+
}
|
|
481
|
+
return message;
|
|
482
|
+
}
|
|
483
|
+
toObject() {
|
|
484
|
+
const data = {};
|
|
485
|
+
if (this.amount != null) {
|
|
486
|
+
data.amount = this.amount;
|
|
487
|
+
}
|
|
488
|
+
if (this.beneficiaryAccountName != null) {
|
|
489
|
+
data.beneficiaryAccountName = this.beneficiaryAccountName;
|
|
490
|
+
}
|
|
491
|
+
if (this.beneficiaryAccountNumber != null) {
|
|
492
|
+
data.beneficiaryAccountNumber = this.beneficiaryAccountNumber;
|
|
493
|
+
}
|
|
494
|
+
if (this.beneficiaryBankVerificationNumber != null) {
|
|
495
|
+
data.beneficiaryBankVerificationNumber = this.beneficiaryBankVerificationNumber;
|
|
496
|
+
}
|
|
497
|
+
if (this.beneficiaryInstitutionCode != null) {
|
|
498
|
+
data.beneficiaryInstitutionCode = this.beneficiaryInstitutionCode;
|
|
499
|
+
}
|
|
500
|
+
if (this.beneficiaryKycLevel != null) {
|
|
501
|
+
data.beneficiaryKycLevel = this.beneficiaryKycLevel;
|
|
502
|
+
}
|
|
503
|
+
if (this.beneficiaryNarration != null) {
|
|
504
|
+
data.beneficiaryNarration = this.beneficiaryNarration;
|
|
505
|
+
}
|
|
506
|
+
if (this.originatorAccountName != null) {
|
|
507
|
+
data.originatorAccountName = this.originatorAccountName;
|
|
508
|
+
}
|
|
509
|
+
if (this.originatorAccountNumber != null) {
|
|
510
|
+
data.originatorAccountNumber = this.originatorAccountNumber;
|
|
511
|
+
}
|
|
512
|
+
if (this.originatorKycLevel != null) {
|
|
513
|
+
data.originatorKycLevel = this.originatorKycLevel;
|
|
514
|
+
}
|
|
515
|
+
if (this.originatorBankVerificationNumber != null) {
|
|
516
|
+
data.originatorBankVerificationNumber = this.originatorBankVerificationNumber;
|
|
517
|
+
}
|
|
518
|
+
if (this.originatorInstitutionCode != null) {
|
|
519
|
+
data.originatorInstitutionCode = this.originatorInstitutionCode;
|
|
520
|
+
}
|
|
521
|
+
if (this.originatorNarration != null) {
|
|
522
|
+
data.originatorNarration = this.originatorNarration;
|
|
523
|
+
}
|
|
524
|
+
if (this.channelCode != null) {
|
|
525
|
+
data.channelCode = this.channelCode;
|
|
526
|
+
}
|
|
527
|
+
if (this.paymentReference != null) {
|
|
528
|
+
data.paymentReference = this.paymentReference;
|
|
529
|
+
}
|
|
530
|
+
if (this.sessionId != null) {
|
|
531
|
+
data.sessionId = this.sessionId;
|
|
532
|
+
}
|
|
533
|
+
if (this.provider != null) {
|
|
534
|
+
data.provider = this.provider;
|
|
535
|
+
}
|
|
536
|
+
if (this.transactionId != null) {
|
|
537
|
+
data.transactionId = this.transactionId;
|
|
538
|
+
}
|
|
539
|
+
return data;
|
|
540
|
+
}
|
|
541
|
+
serialize(w) {
|
|
542
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
543
|
+
if (this.amount != 0)
|
|
544
|
+
writer.writeDouble(1, this.amount);
|
|
545
|
+
if (this.beneficiaryAccountName.length)
|
|
546
|
+
writer.writeString(2, this.beneficiaryAccountName);
|
|
547
|
+
if (this.beneficiaryAccountNumber.length)
|
|
548
|
+
writer.writeString(3, this.beneficiaryAccountNumber);
|
|
549
|
+
if (this.beneficiaryBankVerificationNumber.length)
|
|
550
|
+
writer.writeString(4, this.beneficiaryBankVerificationNumber);
|
|
551
|
+
if (this.beneficiaryInstitutionCode.length)
|
|
552
|
+
writer.writeString(5, this.beneficiaryInstitutionCode);
|
|
553
|
+
if (this.beneficiaryKycLevel.length)
|
|
554
|
+
writer.writeString(6, this.beneficiaryKycLevel);
|
|
555
|
+
if (this.beneficiaryNarration.length)
|
|
556
|
+
writer.writeString(7, this.beneficiaryNarration);
|
|
557
|
+
if (this.originatorAccountName.length)
|
|
558
|
+
writer.writeString(8, this.originatorAccountName);
|
|
559
|
+
if (this.originatorAccountNumber.length)
|
|
560
|
+
writer.writeString(9, this.originatorAccountNumber);
|
|
561
|
+
if (this.originatorKycLevel.length)
|
|
562
|
+
writer.writeString(10, this.originatorKycLevel);
|
|
563
|
+
if (this.originatorBankVerificationNumber.length)
|
|
564
|
+
writer.writeString(11, this.originatorBankVerificationNumber);
|
|
565
|
+
if (this.originatorInstitutionCode.length)
|
|
566
|
+
writer.writeString(12, this.originatorInstitutionCode);
|
|
567
|
+
if (this.originatorNarration.length)
|
|
568
|
+
writer.writeString(13, this.originatorNarration);
|
|
569
|
+
if (this.channelCode.length)
|
|
570
|
+
writer.writeString(14, this.channelCode);
|
|
571
|
+
if (this.paymentReference.length)
|
|
572
|
+
writer.writeString(15, this.paymentReference);
|
|
573
|
+
if (this.sessionId.length)
|
|
574
|
+
writer.writeString(16, this.sessionId);
|
|
575
|
+
if (this.provider.length)
|
|
576
|
+
writer.writeString(17, this.provider);
|
|
577
|
+
if (this.transactionId.length)
|
|
578
|
+
writer.writeString(18, this.transactionId);
|
|
579
|
+
if (!w)
|
|
580
|
+
return writer.getResultBuffer();
|
|
581
|
+
}
|
|
582
|
+
static deserialize(bytes) {
|
|
583
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FundTransferRequest();
|
|
584
|
+
while (reader.nextField()) {
|
|
585
|
+
if (reader.isEndGroup())
|
|
586
|
+
break;
|
|
587
|
+
switch (reader.getFieldNumber()) {
|
|
588
|
+
case 1:
|
|
589
|
+
message.amount = reader.readDouble();
|
|
590
|
+
break;
|
|
591
|
+
case 2:
|
|
592
|
+
message.beneficiaryAccountName = reader.readString();
|
|
593
|
+
break;
|
|
594
|
+
case 3:
|
|
595
|
+
message.beneficiaryAccountNumber = reader.readString();
|
|
596
|
+
break;
|
|
597
|
+
case 4:
|
|
598
|
+
message.beneficiaryBankVerificationNumber = reader.readString();
|
|
599
|
+
break;
|
|
600
|
+
case 5:
|
|
601
|
+
message.beneficiaryInstitutionCode = reader.readString();
|
|
602
|
+
break;
|
|
603
|
+
case 6:
|
|
604
|
+
message.beneficiaryKycLevel = reader.readString();
|
|
605
|
+
break;
|
|
606
|
+
case 7:
|
|
607
|
+
message.beneficiaryNarration = reader.readString();
|
|
608
|
+
break;
|
|
609
|
+
case 8:
|
|
610
|
+
message.originatorAccountName = reader.readString();
|
|
611
|
+
break;
|
|
612
|
+
case 9:
|
|
613
|
+
message.originatorAccountNumber = reader.readString();
|
|
614
|
+
break;
|
|
615
|
+
case 10:
|
|
616
|
+
message.originatorKycLevel = reader.readString();
|
|
617
|
+
break;
|
|
618
|
+
case 11:
|
|
619
|
+
message.originatorBankVerificationNumber = reader.readString();
|
|
620
|
+
break;
|
|
621
|
+
case 12:
|
|
622
|
+
message.originatorInstitutionCode = reader.readString();
|
|
623
|
+
break;
|
|
624
|
+
case 13:
|
|
625
|
+
message.originatorNarration = reader.readString();
|
|
626
|
+
break;
|
|
627
|
+
case 14:
|
|
628
|
+
message.channelCode = reader.readString();
|
|
629
|
+
break;
|
|
630
|
+
case 15:
|
|
631
|
+
message.paymentReference = reader.readString();
|
|
632
|
+
break;
|
|
633
|
+
case 16:
|
|
634
|
+
message.sessionId = reader.readString();
|
|
635
|
+
break;
|
|
636
|
+
case 17:
|
|
637
|
+
message.provider = reader.readString();
|
|
638
|
+
break;
|
|
639
|
+
case 18:
|
|
640
|
+
message.transactionId = reader.readString();
|
|
641
|
+
break;
|
|
642
|
+
default: reader.skipField();
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
return message;
|
|
646
|
+
}
|
|
647
|
+
serializeBinary() {
|
|
648
|
+
return this.serialize();
|
|
649
|
+
}
|
|
650
|
+
static deserializeBinary(bytes) {
|
|
651
|
+
return FundTransferRequest.deserialize(bytes);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
transfer.FundTransferRequest = FundTransferRequest;
|
|
655
|
+
class FundTransferData extends pb_1.Message {
|
|
656
|
+
#one_of_decls = [];
|
|
657
|
+
constructor(data) {
|
|
658
|
+
super();
|
|
659
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
660
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
661
|
+
if ("responseCode" in data && data.responseCode != undefined) {
|
|
662
|
+
this.responseCode = data.responseCode;
|
|
663
|
+
}
|
|
664
|
+
if ("responseMessage" in data && data.responseMessage != undefined) {
|
|
665
|
+
this.responseMessage = data.responseMessage;
|
|
666
|
+
}
|
|
667
|
+
if ("sessionId" in data && data.sessionId != undefined) {
|
|
668
|
+
this.sessionId = data.sessionId;
|
|
669
|
+
}
|
|
670
|
+
if ("paymentRefernece" in data && data.paymentRefernece != undefined) {
|
|
671
|
+
this.paymentRefernece = data.paymentRefernece;
|
|
672
|
+
}
|
|
673
|
+
if ("transfer" in data && data.transfer != undefined) {
|
|
674
|
+
this.transfer = data.transfer;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
get responseCode() {
|
|
679
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
680
|
+
}
|
|
681
|
+
set responseCode(value) {
|
|
682
|
+
pb_1.Message.setField(this, 1, value);
|
|
683
|
+
}
|
|
684
|
+
get responseMessage() {
|
|
685
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
686
|
+
}
|
|
687
|
+
set responseMessage(value) {
|
|
688
|
+
pb_1.Message.setField(this, 2, value);
|
|
689
|
+
}
|
|
690
|
+
get sessionId() {
|
|
691
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
692
|
+
}
|
|
693
|
+
set sessionId(value) {
|
|
694
|
+
pb_1.Message.setField(this, 3, value);
|
|
695
|
+
}
|
|
696
|
+
get paymentRefernece() {
|
|
697
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
698
|
+
}
|
|
699
|
+
set paymentRefernece(value) {
|
|
700
|
+
pb_1.Message.setField(this, 4, value);
|
|
701
|
+
}
|
|
702
|
+
get transfer() {
|
|
703
|
+
return pb_1.Message.getWrapperField(this, FundTransferRequest, 5);
|
|
704
|
+
}
|
|
705
|
+
set transfer(value) {
|
|
706
|
+
pb_1.Message.setWrapperField(this, 5, value);
|
|
707
|
+
}
|
|
708
|
+
get hasTransfer() {
|
|
709
|
+
return pb_1.Message.getField(this, 5) != null;
|
|
710
|
+
}
|
|
711
|
+
static fromObject(data) {
|
|
712
|
+
const message = new FundTransferData({});
|
|
713
|
+
if (data.responseCode != null) {
|
|
714
|
+
message.responseCode = data.responseCode;
|
|
715
|
+
}
|
|
716
|
+
if (data.responseMessage != null) {
|
|
717
|
+
message.responseMessage = data.responseMessage;
|
|
718
|
+
}
|
|
719
|
+
if (data.sessionId != null) {
|
|
720
|
+
message.sessionId = data.sessionId;
|
|
721
|
+
}
|
|
722
|
+
if (data.paymentRefernece != null) {
|
|
723
|
+
message.paymentRefernece = data.paymentRefernece;
|
|
724
|
+
}
|
|
725
|
+
if (data.transfer != null) {
|
|
726
|
+
message.transfer = FundTransferRequest.fromObject(data.transfer);
|
|
727
|
+
}
|
|
728
|
+
return message;
|
|
729
|
+
}
|
|
730
|
+
toObject() {
|
|
731
|
+
const data = {};
|
|
732
|
+
if (this.responseCode != null) {
|
|
733
|
+
data.responseCode = this.responseCode;
|
|
734
|
+
}
|
|
735
|
+
if (this.responseMessage != null) {
|
|
736
|
+
data.responseMessage = this.responseMessage;
|
|
737
|
+
}
|
|
738
|
+
if (this.sessionId != null) {
|
|
739
|
+
data.sessionId = this.sessionId;
|
|
740
|
+
}
|
|
741
|
+
if (this.paymentRefernece != null) {
|
|
742
|
+
data.paymentRefernece = this.paymentRefernece;
|
|
743
|
+
}
|
|
744
|
+
if (this.transfer != null) {
|
|
745
|
+
data.transfer = this.transfer.toObject();
|
|
746
|
+
}
|
|
747
|
+
return data;
|
|
748
|
+
}
|
|
749
|
+
serialize(w) {
|
|
750
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
751
|
+
if (this.responseCode.length)
|
|
752
|
+
writer.writeString(1, this.responseCode);
|
|
753
|
+
if (this.responseMessage.length)
|
|
754
|
+
writer.writeString(2, this.responseMessage);
|
|
755
|
+
if (this.sessionId.length)
|
|
756
|
+
writer.writeString(3, this.sessionId);
|
|
757
|
+
if (this.paymentRefernece.length)
|
|
758
|
+
writer.writeString(4, this.paymentRefernece);
|
|
759
|
+
if (this.hasTransfer)
|
|
760
|
+
writer.writeMessage(5, this.transfer, () => this.transfer.serialize(writer));
|
|
761
|
+
if (!w)
|
|
762
|
+
return writer.getResultBuffer();
|
|
763
|
+
}
|
|
764
|
+
static deserialize(bytes) {
|
|
765
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FundTransferData();
|
|
766
|
+
while (reader.nextField()) {
|
|
767
|
+
if (reader.isEndGroup())
|
|
768
|
+
break;
|
|
769
|
+
switch (reader.getFieldNumber()) {
|
|
770
|
+
case 1:
|
|
771
|
+
message.responseCode = reader.readString();
|
|
772
|
+
break;
|
|
773
|
+
case 2:
|
|
774
|
+
message.responseMessage = reader.readString();
|
|
775
|
+
break;
|
|
776
|
+
case 3:
|
|
777
|
+
message.sessionId = reader.readString();
|
|
778
|
+
break;
|
|
779
|
+
case 4:
|
|
780
|
+
message.paymentRefernece = reader.readString();
|
|
781
|
+
break;
|
|
782
|
+
case 5:
|
|
783
|
+
reader.readMessage(message.transfer, () => message.transfer = FundTransferRequest.deserialize(reader));
|
|
784
|
+
break;
|
|
785
|
+
default: reader.skipField();
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
return message;
|
|
789
|
+
}
|
|
790
|
+
serializeBinary() {
|
|
791
|
+
return this.serialize();
|
|
792
|
+
}
|
|
793
|
+
static deserializeBinary(bytes) {
|
|
794
|
+
return FundTransferData.deserialize(bytes);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
transfer.FundTransferData = FundTransferData;
|
|
798
|
+
class FundTransferResponse extends pb_1.Message {
|
|
799
|
+
#one_of_decls = [];
|
|
800
|
+
constructor(data) {
|
|
801
|
+
super();
|
|
802
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5], this.#one_of_decls);
|
|
803
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
804
|
+
if ("status" in data && data.status != undefined) {
|
|
805
|
+
this.status = data.status;
|
|
806
|
+
}
|
|
807
|
+
if ("data" in data && data.data != undefined) {
|
|
808
|
+
this.data = data.data;
|
|
809
|
+
}
|
|
810
|
+
if ("error" in data && data.error != undefined) {
|
|
811
|
+
this.error = data.error;
|
|
812
|
+
}
|
|
813
|
+
if ("message" in data && data.message != undefined) {
|
|
814
|
+
this.message = data.message;
|
|
815
|
+
}
|
|
816
|
+
if ("errors" in data && data.errors != undefined) {
|
|
817
|
+
this.errors = data.errors;
|
|
818
|
+
}
|
|
819
|
+
if ("success" in data && data.success != undefined) {
|
|
820
|
+
this.success = data.success;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
get status() {
|
|
825
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
826
|
+
}
|
|
827
|
+
set status(value) {
|
|
828
|
+
pb_1.Message.setField(this, 1, value);
|
|
829
|
+
}
|
|
830
|
+
get data() {
|
|
831
|
+
return pb_1.Message.getWrapperField(this, FundTransferData, 2);
|
|
832
|
+
}
|
|
833
|
+
set data(value) {
|
|
834
|
+
pb_1.Message.setWrapperField(this, 2, value);
|
|
835
|
+
}
|
|
836
|
+
get hasData() {
|
|
837
|
+
return pb_1.Message.getField(this, 2) != null;
|
|
838
|
+
}
|
|
839
|
+
get error() {
|
|
840
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
841
|
+
}
|
|
842
|
+
set error(value) {
|
|
843
|
+
pb_1.Message.setField(this, 3, value);
|
|
844
|
+
}
|
|
845
|
+
get message() {
|
|
846
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
847
|
+
}
|
|
848
|
+
set message(value) {
|
|
849
|
+
pb_1.Message.setField(this, 4, value);
|
|
850
|
+
}
|
|
851
|
+
get errors() {
|
|
852
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 5);
|
|
853
|
+
}
|
|
854
|
+
set errors(value) {
|
|
855
|
+
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
856
|
+
}
|
|
857
|
+
get success() {
|
|
858
|
+
return pb_1.Message.getFieldWithDefault(this, 6, false);
|
|
859
|
+
}
|
|
860
|
+
set success(value) {
|
|
861
|
+
pb_1.Message.setField(this, 6, value);
|
|
862
|
+
}
|
|
863
|
+
static fromObject(data) {
|
|
864
|
+
const message = new FundTransferResponse({});
|
|
865
|
+
if (data.status != null) {
|
|
866
|
+
message.status = data.status;
|
|
867
|
+
}
|
|
868
|
+
if (data.data != null) {
|
|
869
|
+
message.data = FundTransferData.fromObject(data.data);
|
|
870
|
+
}
|
|
871
|
+
if (data.error != null) {
|
|
872
|
+
message.error = data.error;
|
|
873
|
+
}
|
|
874
|
+
if (data.message != null) {
|
|
875
|
+
message.message = data.message;
|
|
876
|
+
}
|
|
877
|
+
if (data.errors != null) {
|
|
878
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
879
|
+
}
|
|
880
|
+
if (data.success != null) {
|
|
881
|
+
message.success = data.success;
|
|
882
|
+
}
|
|
883
|
+
return message;
|
|
884
|
+
}
|
|
885
|
+
toObject() {
|
|
886
|
+
const data = {};
|
|
887
|
+
if (this.status != null) {
|
|
888
|
+
data.status = this.status;
|
|
889
|
+
}
|
|
890
|
+
if (this.data != null) {
|
|
891
|
+
data.data = this.data.toObject();
|
|
892
|
+
}
|
|
893
|
+
if (this.error != null) {
|
|
894
|
+
data.error = this.error;
|
|
895
|
+
}
|
|
896
|
+
if (this.message != null) {
|
|
897
|
+
data.message = this.message;
|
|
898
|
+
}
|
|
899
|
+
if (this.errors != null) {
|
|
900
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
901
|
+
}
|
|
902
|
+
if (this.success != null) {
|
|
903
|
+
data.success = this.success;
|
|
904
|
+
}
|
|
905
|
+
return data;
|
|
906
|
+
}
|
|
907
|
+
serialize(w) {
|
|
908
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
909
|
+
if (this.status.length)
|
|
910
|
+
writer.writeString(1, this.status);
|
|
911
|
+
if (this.hasData)
|
|
912
|
+
writer.writeMessage(2, this.data, () => this.data.serialize(writer));
|
|
913
|
+
if (this.error.length)
|
|
914
|
+
writer.writeString(3, this.error);
|
|
915
|
+
if (this.message.length)
|
|
916
|
+
writer.writeString(4, this.message);
|
|
917
|
+
if (this.errors.length)
|
|
918
|
+
writer.writeRepeatedMessage(5, this.errors, (item) => item.serialize(writer));
|
|
919
|
+
if (this.success != false)
|
|
920
|
+
writer.writeBool(6, this.success);
|
|
921
|
+
if (!w)
|
|
922
|
+
return writer.getResultBuffer();
|
|
923
|
+
}
|
|
924
|
+
static deserialize(bytes) {
|
|
925
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FundTransferResponse();
|
|
926
|
+
while (reader.nextField()) {
|
|
927
|
+
if (reader.isEndGroup())
|
|
928
|
+
break;
|
|
929
|
+
switch (reader.getFieldNumber()) {
|
|
930
|
+
case 1:
|
|
931
|
+
message.status = reader.readString();
|
|
932
|
+
break;
|
|
933
|
+
case 2:
|
|
934
|
+
reader.readMessage(message.data, () => message.data = FundTransferData.deserialize(reader));
|
|
935
|
+
break;
|
|
936
|
+
case 3:
|
|
937
|
+
message.error = reader.readString();
|
|
938
|
+
break;
|
|
939
|
+
case 4:
|
|
940
|
+
message.message = reader.readString();
|
|
941
|
+
break;
|
|
942
|
+
case 5:
|
|
943
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 5, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
944
|
+
break;
|
|
945
|
+
case 6:
|
|
946
|
+
message.success = reader.readBool();
|
|
947
|
+
break;
|
|
948
|
+
default: reader.skipField();
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
return message;
|
|
952
|
+
}
|
|
953
|
+
serializeBinary() {
|
|
954
|
+
return this.serialize();
|
|
955
|
+
}
|
|
956
|
+
static deserializeBinary(bytes) {
|
|
957
|
+
return FundTransferResponse.deserialize(bytes);
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
transfer.FundTransferResponse = FundTransferResponse;
|
|
961
|
+
class NameEnquiryRequest extends pb_1.Message {
|
|
962
|
+
#one_of_decls = [];
|
|
963
|
+
constructor(data) {
|
|
964
|
+
super();
|
|
965
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
966
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
967
|
+
if ("channel" in data && data.channel != undefined) {
|
|
968
|
+
this.channel = data.channel;
|
|
969
|
+
}
|
|
970
|
+
if ("accountNumber" in data && data.accountNumber != undefined) {
|
|
971
|
+
this.accountNumber = data.accountNumber;
|
|
972
|
+
}
|
|
973
|
+
if ("institutionCode" in data && data.institutionCode != undefined) {
|
|
974
|
+
this.institutionCode = data.institutionCode;
|
|
975
|
+
}
|
|
976
|
+
if ("nameEnquiryRef" in data && data.nameEnquiryRef != undefined) {
|
|
977
|
+
this.nameEnquiryRef = data.nameEnquiryRef;
|
|
978
|
+
}
|
|
979
|
+
if ("accountName" in data && data.accountName != undefined) {
|
|
980
|
+
this.accountName = data.accountName;
|
|
981
|
+
}
|
|
982
|
+
if ("kycLevel" in data && data.kycLevel != undefined) {
|
|
983
|
+
this.kycLevel = data.kycLevel;
|
|
984
|
+
}
|
|
985
|
+
if ("accountBvn" in data && data.accountBvn != undefined) {
|
|
986
|
+
this.accountBvn = data.accountBvn;
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
get channel() {
|
|
991
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
992
|
+
}
|
|
993
|
+
set channel(value) {
|
|
994
|
+
pb_1.Message.setField(this, 3, value);
|
|
995
|
+
}
|
|
996
|
+
get accountNumber() {
|
|
997
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
998
|
+
}
|
|
999
|
+
set accountNumber(value) {
|
|
1000
|
+
pb_1.Message.setField(this, 4, value);
|
|
1001
|
+
}
|
|
1002
|
+
get institutionCode() {
|
|
1003
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
1004
|
+
}
|
|
1005
|
+
set institutionCode(value) {
|
|
1006
|
+
pb_1.Message.setField(this, 5, value);
|
|
1007
|
+
}
|
|
1008
|
+
get nameEnquiryRef() {
|
|
1009
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
1010
|
+
}
|
|
1011
|
+
set nameEnquiryRef(value) {
|
|
1012
|
+
pb_1.Message.setField(this, 6, value);
|
|
1013
|
+
}
|
|
1014
|
+
get accountName() {
|
|
1015
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
1016
|
+
}
|
|
1017
|
+
set accountName(value) {
|
|
1018
|
+
pb_1.Message.setField(this, 7, value);
|
|
1019
|
+
}
|
|
1020
|
+
get kycLevel() {
|
|
1021
|
+
return pb_1.Message.getFieldWithDefault(this, 8, "");
|
|
1022
|
+
}
|
|
1023
|
+
set kycLevel(value) {
|
|
1024
|
+
pb_1.Message.setField(this, 8, value);
|
|
1025
|
+
}
|
|
1026
|
+
get accountBvn() {
|
|
1027
|
+
return pb_1.Message.getFieldWithDefault(this, 11, "");
|
|
1028
|
+
}
|
|
1029
|
+
set accountBvn(value) {
|
|
1030
|
+
pb_1.Message.setField(this, 11, value);
|
|
1031
|
+
}
|
|
1032
|
+
static fromObject(data) {
|
|
1033
|
+
const message = new NameEnquiryRequest({});
|
|
1034
|
+
if (data.channel != null) {
|
|
1035
|
+
message.channel = data.channel;
|
|
1036
|
+
}
|
|
1037
|
+
if (data.accountNumber != null) {
|
|
1038
|
+
message.accountNumber = data.accountNumber;
|
|
1039
|
+
}
|
|
1040
|
+
if (data.institutionCode != null) {
|
|
1041
|
+
message.institutionCode = data.institutionCode;
|
|
1042
|
+
}
|
|
1043
|
+
if (data.nameEnquiryRef != null) {
|
|
1044
|
+
message.nameEnquiryRef = data.nameEnquiryRef;
|
|
1045
|
+
}
|
|
1046
|
+
if (data.accountName != null) {
|
|
1047
|
+
message.accountName = data.accountName;
|
|
1048
|
+
}
|
|
1049
|
+
if (data.kycLevel != null) {
|
|
1050
|
+
message.kycLevel = data.kycLevel;
|
|
1051
|
+
}
|
|
1052
|
+
if (data.accountBvn != null) {
|
|
1053
|
+
message.accountBvn = data.accountBvn;
|
|
1054
|
+
}
|
|
1055
|
+
return message;
|
|
1056
|
+
}
|
|
1057
|
+
toObject() {
|
|
1058
|
+
const data = {};
|
|
1059
|
+
if (this.channel != null) {
|
|
1060
|
+
data.channel = this.channel;
|
|
1061
|
+
}
|
|
1062
|
+
if (this.accountNumber != null) {
|
|
1063
|
+
data.accountNumber = this.accountNumber;
|
|
1064
|
+
}
|
|
1065
|
+
if (this.institutionCode != null) {
|
|
1066
|
+
data.institutionCode = this.institutionCode;
|
|
1067
|
+
}
|
|
1068
|
+
if (this.nameEnquiryRef != null) {
|
|
1069
|
+
data.nameEnquiryRef = this.nameEnquiryRef;
|
|
1070
|
+
}
|
|
1071
|
+
if (this.accountName != null) {
|
|
1072
|
+
data.accountName = this.accountName;
|
|
1073
|
+
}
|
|
1074
|
+
if (this.kycLevel != null) {
|
|
1075
|
+
data.kycLevel = this.kycLevel;
|
|
1076
|
+
}
|
|
1077
|
+
if (this.accountBvn != null) {
|
|
1078
|
+
data.accountBvn = this.accountBvn;
|
|
1079
|
+
}
|
|
1080
|
+
return data;
|
|
1081
|
+
}
|
|
1082
|
+
serialize(w) {
|
|
1083
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
1084
|
+
if (this.channel.length)
|
|
1085
|
+
writer.writeString(3, this.channel);
|
|
1086
|
+
if (this.accountNumber.length)
|
|
1087
|
+
writer.writeString(4, this.accountNumber);
|
|
1088
|
+
if (this.institutionCode.length)
|
|
1089
|
+
writer.writeString(5, this.institutionCode);
|
|
1090
|
+
if (this.nameEnquiryRef.length)
|
|
1091
|
+
writer.writeString(6, this.nameEnquiryRef);
|
|
1092
|
+
if (this.accountName.length)
|
|
1093
|
+
writer.writeString(7, this.accountName);
|
|
1094
|
+
if (this.kycLevel.length)
|
|
1095
|
+
writer.writeString(8, this.kycLevel);
|
|
1096
|
+
if (this.accountBvn.length)
|
|
1097
|
+
writer.writeString(11, this.accountBvn);
|
|
1098
|
+
if (!w)
|
|
1099
|
+
return writer.getResultBuffer();
|
|
1100
|
+
}
|
|
1101
|
+
static deserialize(bytes) {
|
|
1102
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new NameEnquiryRequest();
|
|
1103
|
+
while (reader.nextField()) {
|
|
1104
|
+
if (reader.isEndGroup())
|
|
1105
|
+
break;
|
|
1106
|
+
switch (reader.getFieldNumber()) {
|
|
1107
|
+
case 3:
|
|
1108
|
+
message.channel = reader.readString();
|
|
1109
|
+
break;
|
|
1110
|
+
case 4:
|
|
1111
|
+
message.accountNumber = reader.readString();
|
|
1112
|
+
break;
|
|
1113
|
+
case 5:
|
|
1114
|
+
message.institutionCode = reader.readString();
|
|
1115
|
+
break;
|
|
1116
|
+
case 6:
|
|
1117
|
+
message.nameEnquiryRef = reader.readString();
|
|
1118
|
+
break;
|
|
1119
|
+
case 7:
|
|
1120
|
+
message.accountName = reader.readString();
|
|
1121
|
+
break;
|
|
1122
|
+
case 8:
|
|
1123
|
+
message.kycLevel = reader.readString();
|
|
1124
|
+
break;
|
|
1125
|
+
case 11:
|
|
1126
|
+
message.accountBvn = reader.readString();
|
|
1127
|
+
break;
|
|
1128
|
+
default: reader.skipField();
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
return message;
|
|
1132
|
+
}
|
|
1133
|
+
serializeBinary() {
|
|
1134
|
+
return this.serialize();
|
|
1135
|
+
}
|
|
1136
|
+
static deserializeBinary(bytes) {
|
|
1137
|
+
return NameEnquiryRequest.deserialize(bytes);
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
transfer.NameEnquiryRequest = NameEnquiryRequest;
|
|
1141
|
+
class TransactionStatusQueryRequest extends pb_1.Message {
|
|
1142
|
+
#one_of_decls = [];
|
|
1143
|
+
constructor(data) {
|
|
1144
|
+
super();
|
|
1145
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
1146
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1147
|
+
if ("sessionId" in data && data.sessionId != undefined) {
|
|
1148
|
+
this.sessionId = data.sessionId;
|
|
1149
|
+
}
|
|
1150
|
+
if ("paymentReference" in data && data.paymentReference != undefined) {
|
|
1151
|
+
this.paymentReference = data.paymentReference;
|
|
1152
|
+
}
|
|
1153
|
+
if ("transactionId" in data && data.transactionId != undefined) {
|
|
1154
|
+
this.transactionId = data.transactionId;
|
|
1155
|
+
}
|
|
1156
|
+
if ("providerReference" in data && data.providerReference != undefined) {
|
|
1157
|
+
this.providerReference = data.providerReference;
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
get sessionId() {
|
|
1162
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
1163
|
+
}
|
|
1164
|
+
set sessionId(value) {
|
|
1165
|
+
pb_1.Message.setField(this, 1, value);
|
|
1166
|
+
}
|
|
1167
|
+
get paymentReference() {
|
|
1168
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
1169
|
+
}
|
|
1170
|
+
set paymentReference(value) {
|
|
1171
|
+
pb_1.Message.setField(this, 2, value);
|
|
1172
|
+
}
|
|
1173
|
+
get transactionId() {
|
|
1174
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
1175
|
+
}
|
|
1176
|
+
set transactionId(value) {
|
|
1177
|
+
pb_1.Message.setField(this, 3, value);
|
|
1178
|
+
}
|
|
1179
|
+
get providerReference() {
|
|
1180
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
1181
|
+
}
|
|
1182
|
+
set providerReference(value) {
|
|
1183
|
+
pb_1.Message.setField(this, 4, value);
|
|
1184
|
+
}
|
|
1185
|
+
static fromObject(data) {
|
|
1186
|
+
const message = new TransactionStatusQueryRequest({});
|
|
1187
|
+
if (data.sessionId != null) {
|
|
1188
|
+
message.sessionId = data.sessionId;
|
|
1189
|
+
}
|
|
1190
|
+
if (data.paymentReference != null) {
|
|
1191
|
+
message.paymentReference = data.paymentReference;
|
|
1192
|
+
}
|
|
1193
|
+
if (data.transactionId != null) {
|
|
1194
|
+
message.transactionId = data.transactionId;
|
|
1195
|
+
}
|
|
1196
|
+
if (data.providerReference != null) {
|
|
1197
|
+
message.providerReference = data.providerReference;
|
|
1198
|
+
}
|
|
1199
|
+
return message;
|
|
1200
|
+
}
|
|
1201
|
+
toObject() {
|
|
1202
|
+
const data = {};
|
|
1203
|
+
if (this.sessionId != null) {
|
|
1204
|
+
data.sessionId = this.sessionId;
|
|
1205
|
+
}
|
|
1206
|
+
if (this.paymentReference != null) {
|
|
1207
|
+
data.paymentReference = this.paymentReference;
|
|
1208
|
+
}
|
|
1209
|
+
if (this.transactionId != null) {
|
|
1210
|
+
data.transactionId = this.transactionId;
|
|
1211
|
+
}
|
|
1212
|
+
if (this.providerReference != null) {
|
|
1213
|
+
data.providerReference = this.providerReference;
|
|
1214
|
+
}
|
|
1215
|
+
return data;
|
|
1216
|
+
}
|
|
1217
|
+
serialize(w) {
|
|
1218
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
1219
|
+
if (this.sessionId.length)
|
|
1220
|
+
writer.writeString(1, this.sessionId);
|
|
1221
|
+
if (this.paymentReference.length)
|
|
1222
|
+
writer.writeString(2, this.paymentReference);
|
|
1223
|
+
if (this.transactionId.length)
|
|
1224
|
+
writer.writeString(3, this.transactionId);
|
|
1225
|
+
if (this.providerReference.length)
|
|
1226
|
+
writer.writeString(4, this.providerReference);
|
|
1227
|
+
if (!w)
|
|
1228
|
+
return writer.getResultBuffer();
|
|
1229
|
+
}
|
|
1230
|
+
static deserialize(bytes) {
|
|
1231
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TransactionStatusQueryRequest();
|
|
1232
|
+
while (reader.nextField()) {
|
|
1233
|
+
if (reader.isEndGroup())
|
|
1234
|
+
break;
|
|
1235
|
+
switch (reader.getFieldNumber()) {
|
|
1236
|
+
case 1:
|
|
1237
|
+
message.sessionId = reader.readString();
|
|
1238
|
+
break;
|
|
1239
|
+
case 2:
|
|
1240
|
+
message.paymentReference = reader.readString();
|
|
1241
|
+
break;
|
|
1242
|
+
case 3:
|
|
1243
|
+
message.transactionId = reader.readString();
|
|
1244
|
+
break;
|
|
1245
|
+
case 4:
|
|
1246
|
+
message.providerReference = reader.readString();
|
|
1247
|
+
break;
|
|
1248
|
+
default: reader.skipField();
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
return message;
|
|
1252
|
+
}
|
|
1253
|
+
serializeBinary() {
|
|
1254
|
+
return this.serialize();
|
|
1255
|
+
}
|
|
1256
|
+
static deserializeBinary(bytes) {
|
|
1257
|
+
return TransactionStatusQueryRequest.deserialize(bytes);
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
transfer.TransactionStatusQueryRequest = TransactionStatusQueryRequest;
|
|
1261
|
+
class TransferData extends pb_1.Message {
|
|
1262
|
+
#one_of_decls = [];
|
|
1263
|
+
constructor(data) {
|
|
1264
|
+
super();
|
|
1265
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
1266
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1267
|
+
if ("initiator" in data && data.initiator != undefined) {
|
|
1268
|
+
this.initiator = data.initiator;
|
|
1269
|
+
}
|
|
1270
|
+
if ("initiatorType" in data && data.initiatorType != undefined) {
|
|
1271
|
+
this.initiatorType = data.initiatorType;
|
|
1272
|
+
}
|
|
1273
|
+
if ("amount" in data && data.amount != undefined) {
|
|
1274
|
+
this.amount = data.amount;
|
|
1275
|
+
}
|
|
1276
|
+
if ("type" in data && data.type != undefined) {
|
|
1277
|
+
this.type = data.type;
|
|
1278
|
+
}
|
|
1279
|
+
if ("channelCode" in data && data.channelCode != undefined) {
|
|
1280
|
+
this.channelCode = data.channelCode;
|
|
1281
|
+
}
|
|
1282
|
+
if ("provider" in data && data.provider != undefined) {
|
|
1283
|
+
this.provider = data.provider;
|
|
1284
|
+
}
|
|
1285
|
+
if ("originatorAccountName" in data && data.originatorAccountName != undefined) {
|
|
1286
|
+
this.originatorAccountName = data.originatorAccountName;
|
|
1287
|
+
}
|
|
1288
|
+
if ("originatorAccountNumber" in data && data.originatorAccountNumber != undefined) {
|
|
1289
|
+
this.originatorAccountNumber = data.originatorAccountNumber;
|
|
1290
|
+
}
|
|
1291
|
+
if ("originatorInstitutionCode" in data && data.originatorInstitutionCode != undefined) {
|
|
1292
|
+
this.originatorInstitutionCode = data.originatorInstitutionCode;
|
|
1293
|
+
}
|
|
1294
|
+
if ("originatorBankVerificationNumber" in data && data.originatorBankVerificationNumber != undefined) {
|
|
1295
|
+
this.originatorBankVerificationNumber = data.originatorBankVerificationNumber;
|
|
1296
|
+
}
|
|
1297
|
+
if ("originatorKycLevel" in data && data.originatorKycLevel != undefined) {
|
|
1298
|
+
this.originatorKycLevel = data.originatorKycLevel;
|
|
1299
|
+
}
|
|
1300
|
+
if ("originatorNarration" in data && data.originatorNarration != undefined) {
|
|
1301
|
+
this.originatorNarration = data.originatorNarration;
|
|
1302
|
+
}
|
|
1303
|
+
if ("beneficiaryAccountName" in data && data.beneficiaryAccountName != undefined) {
|
|
1304
|
+
this.beneficiaryAccountName = data.beneficiaryAccountName;
|
|
1305
|
+
}
|
|
1306
|
+
if ("beneficiaryAccountNumber" in data && data.beneficiaryAccountNumber != undefined) {
|
|
1307
|
+
this.beneficiaryAccountNumber = data.beneficiaryAccountNumber;
|
|
1308
|
+
}
|
|
1309
|
+
if ("beneficiaryInstitutionCode" in data && data.beneficiaryInstitutionCode != undefined) {
|
|
1310
|
+
this.beneficiaryInstitutionCode = data.beneficiaryInstitutionCode;
|
|
1311
|
+
}
|
|
1312
|
+
if ("beneficiaryBankVerificationNumber" in data && data.beneficiaryBankVerificationNumber != undefined) {
|
|
1313
|
+
this.beneficiaryBankVerificationNumber = data.beneficiaryBankVerificationNumber;
|
|
1314
|
+
}
|
|
1315
|
+
if ("beneficiaryKycLevel" in data && data.beneficiaryKycLevel != undefined) {
|
|
1316
|
+
this.beneficiaryKycLevel = data.beneficiaryKycLevel;
|
|
1317
|
+
}
|
|
1318
|
+
if ("beneficiaryNarration" in data && data.beneficiaryNarration != undefined) {
|
|
1319
|
+
this.beneficiaryNarration = data.beneficiaryNarration;
|
|
1320
|
+
}
|
|
1321
|
+
if ("sessionId" in data && data.sessionId != undefined) {
|
|
1322
|
+
this.sessionId = data.sessionId;
|
|
1323
|
+
}
|
|
1324
|
+
if ("paymentReference" in data && data.paymentReference != undefined) {
|
|
1325
|
+
this.paymentReference = data.paymentReference;
|
|
1326
|
+
}
|
|
1327
|
+
if ("providerReference" in data && data.providerReference != undefined) {
|
|
1328
|
+
this.providerReference = data.providerReference;
|
|
1329
|
+
}
|
|
1330
|
+
if ("status" in data && data.status != undefined) {
|
|
1331
|
+
this.status = data.status;
|
|
1332
|
+
}
|
|
1333
|
+
if ("initialResponseCode" in data && data.initialResponseCode != undefined) {
|
|
1334
|
+
this.initialResponseCode = data.initialResponseCode;
|
|
1335
|
+
}
|
|
1336
|
+
if ("initialResponseMessage" in data && data.initialResponseMessage != undefined) {
|
|
1337
|
+
this.initialResponseMessage = data.initialResponseMessage;
|
|
1338
|
+
}
|
|
1339
|
+
if ("finalResponseCode" in data && data.finalResponseCode != undefined) {
|
|
1340
|
+
this.finalResponseCode = data.finalResponseCode;
|
|
1341
|
+
}
|
|
1342
|
+
if ("finalResponseMessage" in data && data.finalResponseMessage != undefined) {
|
|
1343
|
+
this.finalResponseMessage = data.finalResponseMessage;
|
|
1344
|
+
}
|
|
1345
|
+
if ("dueTime" in data && data.dueTime != undefined) {
|
|
1346
|
+
this.dueTime = data.dueTime;
|
|
1347
|
+
}
|
|
1348
|
+
if ("createdAt" in data && data.createdAt != undefined) {
|
|
1349
|
+
this.createdAt = data.createdAt;
|
|
1350
|
+
}
|
|
1351
|
+
if ("updatedAt" in data && data.updatedAt != undefined) {
|
|
1352
|
+
this.updatedAt = data.updatedAt;
|
|
1353
|
+
}
|
|
1354
|
+
if ("queuedForUpdate" in data && data.queuedForUpdate != undefined) {
|
|
1355
|
+
this.queuedForUpdate = data.queuedForUpdate;
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
get initiator() {
|
|
1360
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
1361
|
+
}
|
|
1362
|
+
set initiator(value) {
|
|
1363
|
+
pb_1.Message.setField(this, 1, value);
|
|
1364
|
+
}
|
|
1365
|
+
get initiatorType() {
|
|
1366
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
1367
|
+
}
|
|
1368
|
+
set initiatorType(value) {
|
|
1369
|
+
pb_1.Message.setField(this, 2, value);
|
|
1370
|
+
}
|
|
1371
|
+
get amount() {
|
|
1372
|
+
return pb_1.Message.getFieldWithDefault(this, 3, 0);
|
|
1373
|
+
}
|
|
1374
|
+
set amount(value) {
|
|
1375
|
+
pb_1.Message.setField(this, 3, value);
|
|
1376
|
+
}
|
|
1377
|
+
get type() {
|
|
1378
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
1379
|
+
}
|
|
1380
|
+
set type(value) {
|
|
1381
|
+
pb_1.Message.setField(this, 4, value);
|
|
1382
|
+
}
|
|
1383
|
+
get channelCode() {
|
|
1384
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
1385
|
+
}
|
|
1386
|
+
set channelCode(value) {
|
|
1387
|
+
pb_1.Message.setField(this, 5, value);
|
|
1388
|
+
}
|
|
1389
|
+
get provider() {
|
|
1390
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
1391
|
+
}
|
|
1392
|
+
set provider(value) {
|
|
1393
|
+
pb_1.Message.setField(this, 6, value);
|
|
1394
|
+
}
|
|
1395
|
+
get originatorAccountName() {
|
|
1396
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
1397
|
+
}
|
|
1398
|
+
set originatorAccountName(value) {
|
|
1399
|
+
pb_1.Message.setField(this, 7, value);
|
|
1400
|
+
}
|
|
1401
|
+
get originatorAccountNumber() {
|
|
1402
|
+
return pb_1.Message.getFieldWithDefault(this, 8, "");
|
|
1403
|
+
}
|
|
1404
|
+
set originatorAccountNumber(value) {
|
|
1405
|
+
pb_1.Message.setField(this, 8, value);
|
|
1406
|
+
}
|
|
1407
|
+
get originatorInstitutionCode() {
|
|
1408
|
+
return pb_1.Message.getFieldWithDefault(this, 9, "");
|
|
1409
|
+
}
|
|
1410
|
+
set originatorInstitutionCode(value) {
|
|
1411
|
+
pb_1.Message.setField(this, 9, value);
|
|
1412
|
+
}
|
|
1413
|
+
get originatorBankVerificationNumber() {
|
|
1414
|
+
return pb_1.Message.getFieldWithDefault(this, 10, "");
|
|
1415
|
+
}
|
|
1416
|
+
set originatorBankVerificationNumber(value) {
|
|
1417
|
+
pb_1.Message.setField(this, 10, value);
|
|
1418
|
+
}
|
|
1419
|
+
get originatorKycLevel() {
|
|
1420
|
+
return pb_1.Message.getFieldWithDefault(this, 11, "");
|
|
1421
|
+
}
|
|
1422
|
+
set originatorKycLevel(value) {
|
|
1423
|
+
pb_1.Message.setField(this, 11, value);
|
|
1424
|
+
}
|
|
1425
|
+
get originatorNarration() {
|
|
1426
|
+
return pb_1.Message.getFieldWithDefault(this, 12, "");
|
|
1427
|
+
}
|
|
1428
|
+
set originatorNarration(value) {
|
|
1429
|
+
pb_1.Message.setField(this, 12, value);
|
|
1430
|
+
}
|
|
1431
|
+
get beneficiaryAccountName() {
|
|
1432
|
+
return pb_1.Message.getFieldWithDefault(this, 13, "");
|
|
1433
|
+
}
|
|
1434
|
+
set beneficiaryAccountName(value) {
|
|
1435
|
+
pb_1.Message.setField(this, 13, value);
|
|
1436
|
+
}
|
|
1437
|
+
get beneficiaryAccountNumber() {
|
|
1438
|
+
return pb_1.Message.getFieldWithDefault(this, 14, "");
|
|
1439
|
+
}
|
|
1440
|
+
set beneficiaryAccountNumber(value) {
|
|
1441
|
+
pb_1.Message.setField(this, 14, value);
|
|
1442
|
+
}
|
|
1443
|
+
get beneficiaryInstitutionCode() {
|
|
1444
|
+
return pb_1.Message.getFieldWithDefault(this, 15, "");
|
|
1445
|
+
}
|
|
1446
|
+
set beneficiaryInstitutionCode(value) {
|
|
1447
|
+
pb_1.Message.setField(this, 15, value);
|
|
1448
|
+
}
|
|
1449
|
+
get beneficiaryBankVerificationNumber() {
|
|
1450
|
+
return pb_1.Message.getFieldWithDefault(this, 16, "");
|
|
1451
|
+
}
|
|
1452
|
+
set beneficiaryBankVerificationNumber(value) {
|
|
1453
|
+
pb_1.Message.setField(this, 16, value);
|
|
1454
|
+
}
|
|
1455
|
+
get beneficiaryKycLevel() {
|
|
1456
|
+
return pb_1.Message.getFieldWithDefault(this, 17, "");
|
|
1457
|
+
}
|
|
1458
|
+
set beneficiaryKycLevel(value) {
|
|
1459
|
+
pb_1.Message.setField(this, 17, value);
|
|
1460
|
+
}
|
|
1461
|
+
get beneficiaryNarration() {
|
|
1462
|
+
return pb_1.Message.getFieldWithDefault(this, 18, "");
|
|
1463
|
+
}
|
|
1464
|
+
set beneficiaryNarration(value) {
|
|
1465
|
+
pb_1.Message.setField(this, 18, value);
|
|
1466
|
+
}
|
|
1467
|
+
get sessionId() {
|
|
1468
|
+
return pb_1.Message.getFieldWithDefault(this, 19, "");
|
|
1469
|
+
}
|
|
1470
|
+
set sessionId(value) {
|
|
1471
|
+
pb_1.Message.setField(this, 19, value);
|
|
1472
|
+
}
|
|
1473
|
+
get paymentReference() {
|
|
1474
|
+
return pb_1.Message.getFieldWithDefault(this, 20, "");
|
|
1475
|
+
}
|
|
1476
|
+
set paymentReference(value) {
|
|
1477
|
+
pb_1.Message.setField(this, 20, value);
|
|
1478
|
+
}
|
|
1479
|
+
get providerReference() {
|
|
1480
|
+
return pb_1.Message.getFieldWithDefault(this, 21, "");
|
|
1481
|
+
}
|
|
1482
|
+
set providerReference(value) {
|
|
1483
|
+
pb_1.Message.setField(this, 21, value);
|
|
1484
|
+
}
|
|
1485
|
+
get status() {
|
|
1486
|
+
return pb_1.Message.getFieldWithDefault(this, 22, "");
|
|
1487
|
+
}
|
|
1488
|
+
set status(value) {
|
|
1489
|
+
pb_1.Message.setField(this, 22, value);
|
|
1490
|
+
}
|
|
1491
|
+
get initialResponseCode() {
|
|
1492
|
+
return pb_1.Message.getFieldWithDefault(this, 23, "");
|
|
1493
|
+
}
|
|
1494
|
+
set initialResponseCode(value) {
|
|
1495
|
+
pb_1.Message.setField(this, 23, value);
|
|
1496
|
+
}
|
|
1497
|
+
get initialResponseMessage() {
|
|
1498
|
+
return pb_1.Message.getFieldWithDefault(this, 24, "");
|
|
1499
|
+
}
|
|
1500
|
+
set initialResponseMessage(value) {
|
|
1501
|
+
pb_1.Message.setField(this, 24, value);
|
|
1502
|
+
}
|
|
1503
|
+
get finalResponseCode() {
|
|
1504
|
+
return pb_1.Message.getFieldWithDefault(this, 25, "");
|
|
1505
|
+
}
|
|
1506
|
+
set finalResponseCode(value) {
|
|
1507
|
+
pb_1.Message.setField(this, 25, value);
|
|
1508
|
+
}
|
|
1509
|
+
get finalResponseMessage() {
|
|
1510
|
+
return pb_1.Message.getFieldWithDefault(this, 26, "");
|
|
1511
|
+
}
|
|
1512
|
+
set finalResponseMessage(value) {
|
|
1513
|
+
pb_1.Message.setField(this, 26, value);
|
|
1514
|
+
}
|
|
1515
|
+
get dueTime() {
|
|
1516
|
+
return pb_1.Message.getFieldWithDefault(this, 27, "");
|
|
1517
|
+
}
|
|
1518
|
+
set dueTime(value) {
|
|
1519
|
+
pb_1.Message.setField(this, 27, value);
|
|
1520
|
+
}
|
|
1521
|
+
get createdAt() {
|
|
1522
|
+
return pb_1.Message.getFieldWithDefault(this, 28, "");
|
|
1523
|
+
}
|
|
1524
|
+
set createdAt(value) {
|
|
1525
|
+
pb_1.Message.setField(this, 28, value);
|
|
1526
|
+
}
|
|
1527
|
+
get updatedAt() {
|
|
1528
|
+
return pb_1.Message.getFieldWithDefault(this, 29, "");
|
|
1529
|
+
}
|
|
1530
|
+
set updatedAt(value) {
|
|
1531
|
+
pb_1.Message.setField(this, 29, value);
|
|
1532
|
+
}
|
|
1533
|
+
get queuedForUpdate() {
|
|
1534
|
+
return pb_1.Message.getFieldWithDefault(this, 30, false);
|
|
1535
|
+
}
|
|
1536
|
+
set queuedForUpdate(value) {
|
|
1537
|
+
pb_1.Message.setField(this, 30, value);
|
|
1538
|
+
}
|
|
1539
|
+
static fromObject(data) {
|
|
1540
|
+
const message = new TransferData({});
|
|
1541
|
+
if (data.initiator != null) {
|
|
1542
|
+
message.initiator = data.initiator;
|
|
1543
|
+
}
|
|
1544
|
+
if (data.initiatorType != null) {
|
|
1545
|
+
message.initiatorType = data.initiatorType;
|
|
1546
|
+
}
|
|
1547
|
+
if (data.amount != null) {
|
|
1548
|
+
message.amount = data.amount;
|
|
1549
|
+
}
|
|
1550
|
+
if (data.type != null) {
|
|
1551
|
+
message.type = data.type;
|
|
1552
|
+
}
|
|
1553
|
+
if (data.channelCode != null) {
|
|
1554
|
+
message.channelCode = data.channelCode;
|
|
1555
|
+
}
|
|
1556
|
+
if (data.provider != null) {
|
|
1557
|
+
message.provider = data.provider;
|
|
1558
|
+
}
|
|
1559
|
+
if (data.originatorAccountName != null) {
|
|
1560
|
+
message.originatorAccountName = data.originatorAccountName;
|
|
1561
|
+
}
|
|
1562
|
+
if (data.originatorAccountNumber != null) {
|
|
1563
|
+
message.originatorAccountNumber = data.originatorAccountNumber;
|
|
1564
|
+
}
|
|
1565
|
+
if (data.originatorInstitutionCode != null) {
|
|
1566
|
+
message.originatorInstitutionCode = data.originatorInstitutionCode;
|
|
1567
|
+
}
|
|
1568
|
+
if (data.originatorBankVerificationNumber != null) {
|
|
1569
|
+
message.originatorBankVerificationNumber = data.originatorBankVerificationNumber;
|
|
1570
|
+
}
|
|
1571
|
+
if (data.originatorKycLevel != null) {
|
|
1572
|
+
message.originatorKycLevel = data.originatorKycLevel;
|
|
1573
|
+
}
|
|
1574
|
+
if (data.originatorNarration != null) {
|
|
1575
|
+
message.originatorNarration = data.originatorNarration;
|
|
1576
|
+
}
|
|
1577
|
+
if (data.beneficiaryAccountName != null) {
|
|
1578
|
+
message.beneficiaryAccountName = data.beneficiaryAccountName;
|
|
1579
|
+
}
|
|
1580
|
+
if (data.beneficiaryAccountNumber != null) {
|
|
1581
|
+
message.beneficiaryAccountNumber = data.beneficiaryAccountNumber;
|
|
1582
|
+
}
|
|
1583
|
+
if (data.beneficiaryInstitutionCode != null) {
|
|
1584
|
+
message.beneficiaryInstitutionCode = data.beneficiaryInstitutionCode;
|
|
1585
|
+
}
|
|
1586
|
+
if (data.beneficiaryBankVerificationNumber != null) {
|
|
1587
|
+
message.beneficiaryBankVerificationNumber = data.beneficiaryBankVerificationNumber;
|
|
1588
|
+
}
|
|
1589
|
+
if (data.beneficiaryKycLevel != null) {
|
|
1590
|
+
message.beneficiaryKycLevel = data.beneficiaryKycLevel;
|
|
1591
|
+
}
|
|
1592
|
+
if (data.beneficiaryNarration != null) {
|
|
1593
|
+
message.beneficiaryNarration = data.beneficiaryNarration;
|
|
1594
|
+
}
|
|
1595
|
+
if (data.sessionId != null) {
|
|
1596
|
+
message.sessionId = data.sessionId;
|
|
1597
|
+
}
|
|
1598
|
+
if (data.paymentReference != null) {
|
|
1599
|
+
message.paymentReference = data.paymentReference;
|
|
1600
|
+
}
|
|
1601
|
+
if (data.providerReference != null) {
|
|
1602
|
+
message.providerReference = data.providerReference;
|
|
1603
|
+
}
|
|
1604
|
+
if (data.status != null) {
|
|
1605
|
+
message.status = data.status;
|
|
1606
|
+
}
|
|
1607
|
+
if (data.initialResponseCode != null) {
|
|
1608
|
+
message.initialResponseCode = data.initialResponseCode;
|
|
1609
|
+
}
|
|
1610
|
+
if (data.initialResponseMessage != null) {
|
|
1611
|
+
message.initialResponseMessage = data.initialResponseMessage;
|
|
1612
|
+
}
|
|
1613
|
+
if (data.finalResponseCode != null) {
|
|
1614
|
+
message.finalResponseCode = data.finalResponseCode;
|
|
1615
|
+
}
|
|
1616
|
+
if (data.finalResponseMessage != null) {
|
|
1617
|
+
message.finalResponseMessage = data.finalResponseMessage;
|
|
1618
|
+
}
|
|
1619
|
+
if (data.dueTime != null) {
|
|
1620
|
+
message.dueTime = data.dueTime;
|
|
1621
|
+
}
|
|
1622
|
+
if (data.createdAt != null) {
|
|
1623
|
+
message.createdAt = data.createdAt;
|
|
1624
|
+
}
|
|
1625
|
+
if (data.updatedAt != null) {
|
|
1626
|
+
message.updatedAt = data.updatedAt;
|
|
1627
|
+
}
|
|
1628
|
+
if (data.queuedForUpdate != null) {
|
|
1629
|
+
message.queuedForUpdate = data.queuedForUpdate;
|
|
1630
|
+
}
|
|
1631
|
+
return message;
|
|
1632
|
+
}
|
|
1633
|
+
toObject() {
|
|
1634
|
+
const data = {};
|
|
1635
|
+
if (this.initiator != null) {
|
|
1636
|
+
data.initiator = this.initiator;
|
|
1637
|
+
}
|
|
1638
|
+
if (this.initiatorType != null) {
|
|
1639
|
+
data.initiatorType = this.initiatorType;
|
|
1640
|
+
}
|
|
1641
|
+
if (this.amount != null) {
|
|
1642
|
+
data.amount = this.amount;
|
|
1643
|
+
}
|
|
1644
|
+
if (this.type != null) {
|
|
1645
|
+
data.type = this.type;
|
|
1646
|
+
}
|
|
1647
|
+
if (this.channelCode != null) {
|
|
1648
|
+
data.channelCode = this.channelCode;
|
|
1649
|
+
}
|
|
1650
|
+
if (this.provider != null) {
|
|
1651
|
+
data.provider = this.provider;
|
|
1652
|
+
}
|
|
1653
|
+
if (this.originatorAccountName != null) {
|
|
1654
|
+
data.originatorAccountName = this.originatorAccountName;
|
|
1655
|
+
}
|
|
1656
|
+
if (this.originatorAccountNumber != null) {
|
|
1657
|
+
data.originatorAccountNumber = this.originatorAccountNumber;
|
|
1658
|
+
}
|
|
1659
|
+
if (this.originatorInstitutionCode != null) {
|
|
1660
|
+
data.originatorInstitutionCode = this.originatorInstitutionCode;
|
|
1661
|
+
}
|
|
1662
|
+
if (this.originatorBankVerificationNumber != null) {
|
|
1663
|
+
data.originatorBankVerificationNumber = this.originatorBankVerificationNumber;
|
|
1664
|
+
}
|
|
1665
|
+
if (this.originatorKycLevel != null) {
|
|
1666
|
+
data.originatorKycLevel = this.originatorKycLevel;
|
|
1667
|
+
}
|
|
1668
|
+
if (this.originatorNarration != null) {
|
|
1669
|
+
data.originatorNarration = this.originatorNarration;
|
|
1670
|
+
}
|
|
1671
|
+
if (this.beneficiaryAccountName != null) {
|
|
1672
|
+
data.beneficiaryAccountName = this.beneficiaryAccountName;
|
|
1673
|
+
}
|
|
1674
|
+
if (this.beneficiaryAccountNumber != null) {
|
|
1675
|
+
data.beneficiaryAccountNumber = this.beneficiaryAccountNumber;
|
|
1676
|
+
}
|
|
1677
|
+
if (this.beneficiaryInstitutionCode != null) {
|
|
1678
|
+
data.beneficiaryInstitutionCode = this.beneficiaryInstitutionCode;
|
|
1679
|
+
}
|
|
1680
|
+
if (this.beneficiaryBankVerificationNumber != null) {
|
|
1681
|
+
data.beneficiaryBankVerificationNumber = this.beneficiaryBankVerificationNumber;
|
|
1682
|
+
}
|
|
1683
|
+
if (this.beneficiaryKycLevel != null) {
|
|
1684
|
+
data.beneficiaryKycLevel = this.beneficiaryKycLevel;
|
|
1685
|
+
}
|
|
1686
|
+
if (this.beneficiaryNarration != null) {
|
|
1687
|
+
data.beneficiaryNarration = this.beneficiaryNarration;
|
|
1688
|
+
}
|
|
1689
|
+
if (this.sessionId != null) {
|
|
1690
|
+
data.sessionId = this.sessionId;
|
|
1691
|
+
}
|
|
1692
|
+
if (this.paymentReference != null) {
|
|
1693
|
+
data.paymentReference = this.paymentReference;
|
|
1694
|
+
}
|
|
1695
|
+
if (this.providerReference != null) {
|
|
1696
|
+
data.providerReference = this.providerReference;
|
|
1697
|
+
}
|
|
1698
|
+
if (this.status != null) {
|
|
1699
|
+
data.status = this.status;
|
|
1700
|
+
}
|
|
1701
|
+
if (this.initialResponseCode != null) {
|
|
1702
|
+
data.initialResponseCode = this.initialResponseCode;
|
|
1703
|
+
}
|
|
1704
|
+
if (this.initialResponseMessage != null) {
|
|
1705
|
+
data.initialResponseMessage = this.initialResponseMessage;
|
|
1706
|
+
}
|
|
1707
|
+
if (this.finalResponseCode != null) {
|
|
1708
|
+
data.finalResponseCode = this.finalResponseCode;
|
|
1709
|
+
}
|
|
1710
|
+
if (this.finalResponseMessage != null) {
|
|
1711
|
+
data.finalResponseMessage = this.finalResponseMessage;
|
|
1712
|
+
}
|
|
1713
|
+
if (this.dueTime != null) {
|
|
1714
|
+
data.dueTime = this.dueTime;
|
|
1715
|
+
}
|
|
1716
|
+
if (this.createdAt != null) {
|
|
1717
|
+
data.createdAt = this.createdAt;
|
|
1718
|
+
}
|
|
1719
|
+
if (this.updatedAt != null) {
|
|
1720
|
+
data.updatedAt = this.updatedAt;
|
|
1721
|
+
}
|
|
1722
|
+
if (this.queuedForUpdate != null) {
|
|
1723
|
+
data.queuedForUpdate = this.queuedForUpdate;
|
|
1724
|
+
}
|
|
1725
|
+
return data;
|
|
1726
|
+
}
|
|
1727
|
+
serialize(w) {
|
|
1728
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
1729
|
+
if (this.initiator.length)
|
|
1730
|
+
writer.writeString(1, this.initiator);
|
|
1731
|
+
if (this.initiatorType.length)
|
|
1732
|
+
writer.writeString(2, this.initiatorType);
|
|
1733
|
+
if (this.amount != 0)
|
|
1734
|
+
writer.writeDouble(3, this.amount);
|
|
1735
|
+
if (this.type.length)
|
|
1736
|
+
writer.writeString(4, this.type);
|
|
1737
|
+
if (this.channelCode.length)
|
|
1738
|
+
writer.writeString(5, this.channelCode);
|
|
1739
|
+
if (this.provider.length)
|
|
1740
|
+
writer.writeString(6, this.provider);
|
|
1741
|
+
if (this.originatorAccountName.length)
|
|
1742
|
+
writer.writeString(7, this.originatorAccountName);
|
|
1743
|
+
if (this.originatorAccountNumber.length)
|
|
1744
|
+
writer.writeString(8, this.originatorAccountNumber);
|
|
1745
|
+
if (this.originatorInstitutionCode.length)
|
|
1746
|
+
writer.writeString(9, this.originatorInstitutionCode);
|
|
1747
|
+
if (this.originatorBankVerificationNumber.length)
|
|
1748
|
+
writer.writeString(10, this.originatorBankVerificationNumber);
|
|
1749
|
+
if (this.originatorKycLevel.length)
|
|
1750
|
+
writer.writeString(11, this.originatorKycLevel);
|
|
1751
|
+
if (this.originatorNarration.length)
|
|
1752
|
+
writer.writeString(12, this.originatorNarration);
|
|
1753
|
+
if (this.beneficiaryAccountName.length)
|
|
1754
|
+
writer.writeString(13, this.beneficiaryAccountName);
|
|
1755
|
+
if (this.beneficiaryAccountNumber.length)
|
|
1756
|
+
writer.writeString(14, this.beneficiaryAccountNumber);
|
|
1757
|
+
if (this.beneficiaryInstitutionCode.length)
|
|
1758
|
+
writer.writeString(15, this.beneficiaryInstitutionCode);
|
|
1759
|
+
if (this.beneficiaryBankVerificationNumber.length)
|
|
1760
|
+
writer.writeString(16, this.beneficiaryBankVerificationNumber);
|
|
1761
|
+
if (this.beneficiaryKycLevel.length)
|
|
1762
|
+
writer.writeString(17, this.beneficiaryKycLevel);
|
|
1763
|
+
if (this.beneficiaryNarration.length)
|
|
1764
|
+
writer.writeString(18, this.beneficiaryNarration);
|
|
1765
|
+
if (this.sessionId.length)
|
|
1766
|
+
writer.writeString(19, this.sessionId);
|
|
1767
|
+
if (this.paymentReference.length)
|
|
1768
|
+
writer.writeString(20, this.paymentReference);
|
|
1769
|
+
if (this.providerReference.length)
|
|
1770
|
+
writer.writeString(21, this.providerReference);
|
|
1771
|
+
if (this.status.length)
|
|
1772
|
+
writer.writeString(22, this.status);
|
|
1773
|
+
if (this.initialResponseCode.length)
|
|
1774
|
+
writer.writeString(23, this.initialResponseCode);
|
|
1775
|
+
if (this.initialResponseMessage.length)
|
|
1776
|
+
writer.writeString(24, this.initialResponseMessage);
|
|
1777
|
+
if (this.finalResponseCode.length)
|
|
1778
|
+
writer.writeString(25, this.finalResponseCode);
|
|
1779
|
+
if (this.finalResponseMessage.length)
|
|
1780
|
+
writer.writeString(26, this.finalResponseMessage);
|
|
1781
|
+
if (this.dueTime.length)
|
|
1782
|
+
writer.writeString(27, this.dueTime);
|
|
1783
|
+
if (this.createdAt.length)
|
|
1784
|
+
writer.writeString(28, this.createdAt);
|
|
1785
|
+
if (this.updatedAt.length)
|
|
1786
|
+
writer.writeString(29, this.updatedAt);
|
|
1787
|
+
if (this.queuedForUpdate != false)
|
|
1788
|
+
writer.writeBool(30, this.queuedForUpdate);
|
|
1789
|
+
if (!w)
|
|
1790
|
+
return writer.getResultBuffer();
|
|
1791
|
+
}
|
|
1792
|
+
static deserialize(bytes) {
|
|
1793
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TransferData();
|
|
1794
|
+
while (reader.nextField()) {
|
|
1795
|
+
if (reader.isEndGroup())
|
|
1796
|
+
break;
|
|
1797
|
+
switch (reader.getFieldNumber()) {
|
|
1798
|
+
case 1:
|
|
1799
|
+
message.initiator = reader.readString();
|
|
1800
|
+
break;
|
|
1801
|
+
case 2:
|
|
1802
|
+
message.initiatorType = reader.readString();
|
|
1803
|
+
break;
|
|
1804
|
+
case 3:
|
|
1805
|
+
message.amount = reader.readDouble();
|
|
1806
|
+
break;
|
|
1807
|
+
case 4:
|
|
1808
|
+
message.type = reader.readString();
|
|
1809
|
+
break;
|
|
1810
|
+
case 5:
|
|
1811
|
+
message.channelCode = reader.readString();
|
|
1812
|
+
break;
|
|
1813
|
+
case 6:
|
|
1814
|
+
message.provider = reader.readString();
|
|
1815
|
+
break;
|
|
1816
|
+
case 7:
|
|
1817
|
+
message.originatorAccountName = reader.readString();
|
|
1818
|
+
break;
|
|
1819
|
+
case 8:
|
|
1820
|
+
message.originatorAccountNumber = reader.readString();
|
|
1821
|
+
break;
|
|
1822
|
+
case 9:
|
|
1823
|
+
message.originatorInstitutionCode = reader.readString();
|
|
1824
|
+
break;
|
|
1825
|
+
case 10:
|
|
1826
|
+
message.originatorBankVerificationNumber = reader.readString();
|
|
1827
|
+
break;
|
|
1828
|
+
case 11:
|
|
1829
|
+
message.originatorKycLevel = reader.readString();
|
|
1830
|
+
break;
|
|
1831
|
+
case 12:
|
|
1832
|
+
message.originatorNarration = reader.readString();
|
|
1833
|
+
break;
|
|
1834
|
+
case 13:
|
|
1835
|
+
message.beneficiaryAccountName = reader.readString();
|
|
1836
|
+
break;
|
|
1837
|
+
case 14:
|
|
1838
|
+
message.beneficiaryAccountNumber = reader.readString();
|
|
1839
|
+
break;
|
|
1840
|
+
case 15:
|
|
1841
|
+
message.beneficiaryInstitutionCode = reader.readString();
|
|
1842
|
+
break;
|
|
1843
|
+
case 16:
|
|
1844
|
+
message.beneficiaryBankVerificationNumber = reader.readString();
|
|
1845
|
+
break;
|
|
1846
|
+
case 17:
|
|
1847
|
+
message.beneficiaryKycLevel = reader.readString();
|
|
1848
|
+
break;
|
|
1849
|
+
case 18:
|
|
1850
|
+
message.beneficiaryNarration = reader.readString();
|
|
1851
|
+
break;
|
|
1852
|
+
case 19:
|
|
1853
|
+
message.sessionId = reader.readString();
|
|
1854
|
+
break;
|
|
1855
|
+
case 20:
|
|
1856
|
+
message.paymentReference = reader.readString();
|
|
1857
|
+
break;
|
|
1858
|
+
case 21:
|
|
1859
|
+
message.providerReference = reader.readString();
|
|
1860
|
+
break;
|
|
1861
|
+
case 22:
|
|
1862
|
+
message.status = reader.readString();
|
|
1863
|
+
break;
|
|
1864
|
+
case 23:
|
|
1865
|
+
message.initialResponseCode = reader.readString();
|
|
1866
|
+
break;
|
|
1867
|
+
case 24:
|
|
1868
|
+
message.initialResponseMessage = reader.readString();
|
|
1869
|
+
break;
|
|
1870
|
+
case 25:
|
|
1871
|
+
message.finalResponseCode = reader.readString();
|
|
1872
|
+
break;
|
|
1873
|
+
case 26:
|
|
1874
|
+
message.finalResponseMessage = reader.readString();
|
|
1875
|
+
break;
|
|
1876
|
+
case 27:
|
|
1877
|
+
message.dueTime = reader.readString();
|
|
1878
|
+
break;
|
|
1879
|
+
case 28:
|
|
1880
|
+
message.createdAt = reader.readString();
|
|
1881
|
+
break;
|
|
1882
|
+
case 29:
|
|
1883
|
+
message.updatedAt = reader.readString();
|
|
1884
|
+
break;
|
|
1885
|
+
case 30:
|
|
1886
|
+
message.queuedForUpdate = reader.readBool();
|
|
1887
|
+
break;
|
|
1888
|
+
default: reader.skipField();
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
return message;
|
|
1892
|
+
}
|
|
1893
|
+
serializeBinary() {
|
|
1894
|
+
return this.serialize();
|
|
1895
|
+
}
|
|
1896
|
+
static deserializeBinary(bytes) {
|
|
1897
|
+
return TransferData.deserialize(bytes);
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
transfer.TransferData = TransferData;
|
|
1901
|
+
class TransactionStatusQueryResponse extends pb_1.Message {
|
|
1902
|
+
#one_of_decls = [];
|
|
1903
|
+
constructor(data) {
|
|
1904
|
+
super();
|
|
1905
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4], this.#one_of_decls);
|
|
1906
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1907
|
+
if ("status" in data && data.status != undefined) {
|
|
1908
|
+
this.status = data.status;
|
|
1909
|
+
}
|
|
1910
|
+
if ("error" in data && data.error != undefined) {
|
|
1911
|
+
this.error = data.error;
|
|
1912
|
+
}
|
|
1913
|
+
if ("message" in data && data.message != undefined) {
|
|
1914
|
+
this.message = data.message;
|
|
1915
|
+
}
|
|
1916
|
+
if ("errors" in data && data.errors != undefined) {
|
|
1917
|
+
this.errors = data.errors;
|
|
1918
|
+
}
|
|
1919
|
+
if ("success" in data && data.success != undefined) {
|
|
1920
|
+
this.success = data.success;
|
|
1921
|
+
}
|
|
1922
|
+
if ("data" in data && data.data != undefined) {
|
|
1923
|
+
this.data = data.data;
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
get status() {
|
|
1928
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
1929
|
+
}
|
|
1930
|
+
set status(value) {
|
|
1931
|
+
pb_1.Message.setField(this, 1, value);
|
|
1932
|
+
}
|
|
1933
|
+
get error() {
|
|
1934
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
1935
|
+
}
|
|
1936
|
+
set error(value) {
|
|
1937
|
+
pb_1.Message.setField(this, 2, value);
|
|
1938
|
+
}
|
|
1939
|
+
get message() {
|
|
1940
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
1941
|
+
}
|
|
1942
|
+
set message(value) {
|
|
1943
|
+
pb_1.Message.setField(this, 3, value);
|
|
1944
|
+
}
|
|
1945
|
+
get errors() {
|
|
1946
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 4);
|
|
1947
|
+
}
|
|
1948
|
+
set errors(value) {
|
|
1949
|
+
pb_1.Message.setRepeatedWrapperField(this, 4, value);
|
|
1950
|
+
}
|
|
1951
|
+
get success() {
|
|
1952
|
+
return pb_1.Message.getFieldWithDefault(this, 5, false);
|
|
1953
|
+
}
|
|
1954
|
+
set success(value) {
|
|
1955
|
+
pb_1.Message.setField(this, 5, value);
|
|
1956
|
+
}
|
|
1957
|
+
get data() {
|
|
1958
|
+
return pb_1.Message.getWrapperField(this, TransferData, 6);
|
|
1959
|
+
}
|
|
1960
|
+
set data(value) {
|
|
1961
|
+
pb_1.Message.setWrapperField(this, 6, value);
|
|
1962
|
+
}
|
|
1963
|
+
get hasData() {
|
|
1964
|
+
return pb_1.Message.getField(this, 6) != null;
|
|
1965
|
+
}
|
|
1966
|
+
static fromObject(data) {
|
|
1967
|
+
const message = new TransactionStatusQueryResponse({});
|
|
1968
|
+
if (data.status != null) {
|
|
1969
|
+
message.status = data.status;
|
|
1970
|
+
}
|
|
1971
|
+
if (data.error != null) {
|
|
1972
|
+
message.error = data.error;
|
|
1973
|
+
}
|
|
1974
|
+
if (data.message != null) {
|
|
1975
|
+
message.message = data.message;
|
|
1976
|
+
}
|
|
1977
|
+
if (data.errors != null) {
|
|
1978
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
1979
|
+
}
|
|
1980
|
+
if (data.success != null) {
|
|
1981
|
+
message.success = data.success;
|
|
1982
|
+
}
|
|
1983
|
+
if (data.data != null) {
|
|
1984
|
+
message.data = TransferData.fromObject(data.data);
|
|
1985
|
+
}
|
|
1986
|
+
return message;
|
|
1987
|
+
}
|
|
1988
|
+
toObject() {
|
|
1989
|
+
const data = {};
|
|
1990
|
+
if (this.status != null) {
|
|
1991
|
+
data.status = this.status;
|
|
1992
|
+
}
|
|
1993
|
+
if (this.error != null) {
|
|
1994
|
+
data.error = this.error;
|
|
1995
|
+
}
|
|
1996
|
+
if (this.message != null) {
|
|
1997
|
+
data.message = this.message;
|
|
1998
|
+
}
|
|
1999
|
+
if (this.errors != null) {
|
|
2000
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
2001
|
+
}
|
|
2002
|
+
if (this.success != null) {
|
|
2003
|
+
data.success = this.success;
|
|
2004
|
+
}
|
|
2005
|
+
if (this.data != null) {
|
|
2006
|
+
data.data = this.data.toObject();
|
|
2007
|
+
}
|
|
2008
|
+
return data;
|
|
2009
|
+
}
|
|
2010
|
+
serialize(w) {
|
|
2011
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
2012
|
+
if (this.status.length)
|
|
2013
|
+
writer.writeString(1, this.status);
|
|
2014
|
+
if (this.error.length)
|
|
2015
|
+
writer.writeString(2, this.error);
|
|
2016
|
+
if (this.message.length)
|
|
2017
|
+
writer.writeString(3, this.message);
|
|
2018
|
+
if (this.errors.length)
|
|
2019
|
+
writer.writeRepeatedMessage(4, this.errors, (item) => item.serialize(writer));
|
|
2020
|
+
if (this.success != false)
|
|
2021
|
+
writer.writeBool(5, this.success);
|
|
2022
|
+
if (this.hasData)
|
|
2023
|
+
writer.writeMessage(6, this.data, () => this.data.serialize(writer));
|
|
2024
|
+
if (!w)
|
|
2025
|
+
return writer.getResultBuffer();
|
|
2026
|
+
}
|
|
2027
|
+
static deserialize(bytes) {
|
|
2028
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TransactionStatusQueryResponse();
|
|
2029
|
+
while (reader.nextField()) {
|
|
2030
|
+
if (reader.isEndGroup())
|
|
2031
|
+
break;
|
|
2032
|
+
switch (reader.getFieldNumber()) {
|
|
2033
|
+
case 1:
|
|
2034
|
+
message.status = reader.readString();
|
|
2035
|
+
break;
|
|
2036
|
+
case 2:
|
|
2037
|
+
message.error = reader.readString();
|
|
2038
|
+
break;
|
|
2039
|
+
case 3:
|
|
2040
|
+
message.message = reader.readString();
|
|
2041
|
+
break;
|
|
2042
|
+
case 4:
|
|
2043
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 4, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
2044
|
+
break;
|
|
2045
|
+
case 5:
|
|
2046
|
+
message.success = reader.readBool();
|
|
2047
|
+
break;
|
|
2048
|
+
case 6:
|
|
2049
|
+
reader.readMessage(message.data, () => message.data = TransferData.deserialize(reader));
|
|
2050
|
+
break;
|
|
2051
|
+
default: reader.skipField();
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
return message;
|
|
2055
|
+
}
|
|
2056
|
+
serializeBinary() {
|
|
2057
|
+
return this.serialize();
|
|
2058
|
+
}
|
|
2059
|
+
static deserializeBinary(bytes) {
|
|
2060
|
+
return TransactionStatusQueryResponse.deserialize(bytes);
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2063
|
+
transfer.TransactionStatusQueryResponse = TransactionStatusQueryResponse;
|
|
2064
|
+
class NameEnquiryData extends pb_1.Message {
|
|
2065
|
+
#one_of_decls = [];
|
|
2066
|
+
constructor(data) {
|
|
2067
|
+
super();
|
|
2068
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
2069
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
2070
|
+
if ("responseCode" in data && data.responseCode != undefined) {
|
|
2071
|
+
this.responseCode = data.responseCode;
|
|
2072
|
+
}
|
|
2073
|
+
if ("responseMessage" in data && data.responseMessage != undefined) {
|
|
2074
|
+
this.responseMessage = data.responseMessage;
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
get responseCode() {
|
|
2079
|
+
return pb_1.Message.getFieldWithDefault(this, 9, "");
|
|
2080
|
+
}
|
|
2081
|
+
set responseCode(value) {
|
|
2082
|
+
pb_1.Message.setField(this, 9, value);
|
|
2083
|
+
}
|
|
2084
|
+
get responseMessage() {
|
|
2085
|
+
return pb_1.Message.getFieldWithDefault(this, 10, "");
|
|
2086
|
+
}
|
|
2087
|
+
set responseMessage(value) {
|
|
2088
|
+
pb_1.Message.setField(this, 10, value);
|
|
2089
|
+
}
|
|
2090
|
+
static fromObject(data) {
|
|
2091
|
+
const message = new NameEnquiryData({});
|
|
2092
|
+
if (data.responseCode != null) {
|
|
2093
|
+
message.responseCode = data.responseCode;
|
|
2094
|
+
}
|
|
2095
|
+
if (data.responseMessage != null) {
|
|
2096
|
+
message.responseMessage = data.responseMessage;
|
|
2097
|
+
}
|
|
2098
|
+
return message;
|
|
2099
|
+
}
|
|
2100
|
+
toObject() {
|
|
2101
|
+
const data = {};
|
|
2102
|
+
if (this.responseCode != null) {
|
|
2103
|
+
data.responseCode = this.responseCode;
|
|
2104
|
+
}
|
|
2105
|
+
if (this.responseMessage != null) {
|
|
2106
|
+
data.responseMessage = this.responseMessage;
|
|
2107
|
+
}
|
|
2108
|
+
return data;
|
|
2109
|
+
}
|
|
2110
|
+
serialize(w) {
|
|
2111
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
2112
|
+
if (this.responseCode.length)
|
|
2113
|
+
writer.writeString(9, this.responseCode);
|
|
2114
|
+
if (this.responseMessage.length)
|
|
2115
|
+
writer.writeString(10, this.responseMessage);
|
|
2116
|
+
if (!w)
|
|
2117
|
+
return writer.getResultBuffer();
|
|
2118
|
+
}
|
|
2119
|
+
static deserialize(bytes) {
|
|
2120
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new NameEnquiryData();
|
|
2121
|
+
while (reader.nextField()) {
|
|
2122
|
+
if (reader.isEndGroup())
|
|
2123
|
+
break;
|
|
2124
|
+
switch (reader.getFieldNumber()) {
|
|
2125
|
+
case 9:
|
|
2126
|
+
message.responseCode = reader.readString();
|
|
2127
|
+
break;
|
|
2128
|
+
case 10:
|
|
2129
|
+
message.responseMessage = reader.readString();
|
|
2130
|
+
break;
|
|
2131
|
+
default: reader.skipField();
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
return message;
|
|
2135
|
+
}
|
|
2136
|
+
serializeBinary() {
|
|
2137
|
+
return this.serialize();
|
|
2138
|
+
}
|
|
2139
|
+
static deserializeBinary(bytes) {
|
|
2140
|
+
return NameEnquiryData.deserialize(bytes);
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
transfer.NameEnquiryData = NameEnquiryData;
|
|
2144
|
+
class NameEnquiryResponse extends pb_1.Message {
|
|
2145
|
+
#one_of_decls = [];
|
|
2146
|
+
constructor(data) {
|
|
2147
|
+
super();
|
|
2148
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5], this.#one_of_decls);
|
|
2149
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
2150
|
+
if ("status" in data && data.status != undefined) {
|
|
2151
|
+
this.status = data.status;
|
|
2152
|
+
}
|
|
2153
|
+
if ("data" in data && data.data != undefined) {
|
|
2154
|
+
this.data = data.data;
|
|
2155
|
+
}
|
|
2156
|
+
if ("error" in data && data.error != undefined) {
|
|
2157
|
+
this.error = data.error;
|
|
2158
|
+
}
|
|
2159
|
+
if ("message" in data && data.message != undefined) {
|
|
2160
|
+
this.message = data.message;
|
|
2161
|
+
}
|
|
2162
|
+
if ("errors" in data && data.errors != undefined) {
|
|
2163
|
+
this.errors = data.errors;
|
|
2164
|
+
}
|
|
2165
|
+
if ("success" in data && data.success != undefined) {
|
|
2166
|
+
this.success = data.success;
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
2170
|
+
get status() {
|
|
2171
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
2172
|
+
}
|
|
2173
|
+
set status(value) {
|
|
2174
|
+
pb_1.Message.setField(this, 1, value);
|
|
2175
|
+
}
|
|
2176
|
+
get data() {
|
|
2177
|
+
return pb_1.Message.getWrapperField(this, NameEnquiryData, 2);
|
|
2178
|
+
}
|
|
2179
|
+
set data(value) {
|
|
2180
|
+
pb_1.Message.setWrapperField(this, 2, value);
|
|
2181
|
+
}
|
|
2182
|
+
get hasData() {
|
|
2183
|
+
return pb_1.Message.getField(this, 2) != null;
|
|
2184
|
+
}
|
|
2185
|
+
get error() {
|
|
2186
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
2187
|
+
}
|
|
2188
|
+
set error(value) {
|
|
2189
|
+
pb_1.Message.setField(this, 3, value);
|
|
2190
|
+
}
|
|
2191
|
+
get message() {
|
|
2192
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
2193
|
+
}
|
|
2194
|
+
set message(value) {
|
|
2195
|
+
pb_1.Message.setField(this, 4, value);
|
|
2196
|
+
}
|
|
2197
|
+
get errors() {
|
|
2198
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 5);
|
|
2199
|
+
}
|
|
2200
|
+
set errors(value) {
|
|
2201
|
+
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
2202
|
+
}
|
|
2203
|
+
get success() {
|
|
2204
|
+
return pb_1.Message.getFieldWithDefault(this, 6, false);
|
|
2205
|
+
}
|
|
2206
|
+
set success(value) {
|
|
2207
|
+
pb_1.Message.setField(this, 6, value);
|
|
2208
|
+
}
|
|
2209
|
+
static fromObject(data) {
|
|
2210
|
+
const message = new NameEnquiryResponse({});
|
|
2211
|
+
if (data.status != null) {
|
|
2212
|
+
message.status = data.status;
|
|
2213
|
+
}
|
|
2214
|
+
if (data.data != null) {
|
|
2215
|
+
message.data = NameEnquiryData.fromObject(data.data);
|
|
2216
|
+
}
|
|
2217
|
+
if (data.error != null) {
|
|
2218
|
+
message.error = data.error;
|
|
2219
|
+
}
|
|
2220
|
+
if (data.message != null) {
|
|
2221
|
+
message.message = data.message;
|
|
2222
|
+
}
|
|
2223
|
+
if (data.errors != null) {
|
|
2224
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
2225
|
+
}
|
|
2226
|
+
if (data.success != null) {
|
|
2227
|
+
message.success = data.success;
|
|
2228
|
+
}
|
|
2229
|
+
return message;
|
|
2230
|
+
}
|
|
2231
|
+
toObject() {
|
|
2232
|
+
const data = {};
|
|
2233
|
+
if (this.status != null) {
|
|
2234
|
+
data.status = this.status;
|
|
2235
|
+
}
|
|
2236
|
+
if (this.data != null) {
|
|
2237
|
+
data.data = this.data.toObject();
|
|
2238
|
+
}
|
|
2239
|
+
if (this.error != null) {
|
|
2240
|
+
data.error = this.error;
|
|
2241
|
+
}
|
|
2242
|
+
if (this.message != null) {
|
|
2243
|
+
data.message = this.message;
|
|
2244
|
+
}
|
|
2245
|
+
if (this.errors != null) {
|
|
2246
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
2247
|
+
}
|
|
2248
|
+
if (this.success != null) {
|
|
2249
|
+
data.success = this.success;
|
|
2250
|
+
}
|
|
2251
|
+
return data;
|
|
2252
|
+
}
|
|
2253
|
+
serialize(w) {
|
|
2254
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
2255
|
+
if (this.status.length)
|
|
2256
|
+
writer.writeString(1, this.status);
|
|
2257
|
+
if (this.hasData)
|
|
2258
|
+
writer.writeMessage(2, this.data, () => this.data.serialize(writer));
|
|
2259
|
+
if (this.error.length)
|
|
2260
|
+
writer.writeString(3, this.error);
|
|
2261
|
+
if (this.message.length)
|
|
2262
|
+
writer.writeString(4, this.message);
|
|
2263
|
+
if (this.errors.length)
|
|
2264
|
+
writer.writeRepeatedMessage(5, this.errors, (item) => item.serialize(writer));
|
|
2265
|
+
if (this.success != false)
|
|
2266
|
+
writer.writeBool(6, this.success);
|
|
2267
|
+
if (!w)
|
|
2268
|
+
return writer.getResultBuffer();
|
|
2269
|
+
}
|
|
2270
|
+
static deserialize(bytes) {
|
|
2271
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new NameEnquiryResponse();
|
|
2272
|
+
while (reader.nextField()) {
|
|
2273
|
+
if (reader.isEndGroup())
|
|
2274
|
+
break;
|
|
2275
|
+
switch (reader.getFieldNumber()) {
|
|
2276
|
+
case 1:
|
|
2277
|
+
message.status = reader.readString();
|
|
2278
|
+
break;
|
|
2279
|
+
case 2:
|
|
2280
|
+
reader.readMessage(message.data, () => message.data = NameEnquiryData.deserialize(reader));
|
|
2281
|
+
break;
|
|
2282
|
+
case 3:
|
|
2283
|
+
message.error = reader.readString();
|
|
2284
|
+
break;
|
|
2285
|
+
case 4:
|
|
2286
|
+
message.message = reader.readString();
|
|
2287
|
+
break;
|
|
2288
|
+
case 5:
|
|
2289
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 5, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
2290
|
+
break;
|
|
2291
|
+
case 6:
|
|
2292
|
+
message.success = reader.readBool();
|
|
2293
|
+
break;
|
|
2294
|
+
default: reader.skipField();
|
|
2295
|
+
}
|
|
2296
|
+
}
|
|
2297
|
+
return message;
|
|
2298
|
+
}
|
|
2299
|
+
serializeBinary() {
|
|
2300
|
+
return this.serialize();
|
|
2301
|
+
}
|
|
2302
|
+
static deserializeBinary(bytes) {
|
|
2303
|
+
return NameEnquiryResponse.deserialize(bytes);
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
transfer.NameEnquiryResponse = NameEnquiryResponse;
|
|
2307
|
+
class FilterRequest extends pb_1.Message {
|
|
2308
|
+
#one_of_decls = [];
|
|
2309
|
+
constructor(data) {
|
|
2310
|
+
super();
|
|
2311
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
2312
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
2313
|
+
if ("from" in data && data.from != undefined) {
|
|
2314
|
+
this.from = data.from;
|
|
2315
|
+
}
|
|
2316
|
+
if ("to" in data && data.to != undefined) {
|
|
2317
|
+
this.to = data.to;
|
|
2318
|
+
}
|
|
2319
|
+
if ("limit" in data && data.limit != undefined) {
|
|
2320
|
+
this.limit = data.limit;
|
|
2321
|
+
}
|
|
2322
|
+
if ("page" in data && data.page != undefined) {
|
|
2323
|
+
this.page = data.page;
|
|
2324
|
+
}
|
|
2325
|
+
if ("id" in data && data.id != undefined) {
|
|
2326
|
+
this.id = data.id;
|
|
2327
|
+
}
|
|
2328
|
+
if ("search" in data && data.search != undefined) {
|
|
2329
|
+
this.search = data.search;
|
|
2330
|
+
}
|
|
2331
|
+
if ("provider" in data && data.provider != undefined) {
|
|
2332
|
+
this.provider = data.provider;
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
}
|
|
2336
|
+
get from() {
|
|
2337
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
2338
|
+
}
|
|
2339
|
+
set from(value) {
|
|
2340
|
+
pb_1.Message.setField(this, 1, value);
|
|
2341
|
+
}
|
|
2342
|
+
get to() {
|
|
2343
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
2344
|
+
}
|
|
2345
|
+
set to(value) {
|
|
2346
|
+
pb_1.Message.setField(this, 2, value);
|
|
2347
|
+
}
|
|
2348
|
+
get limit() {
|
|
2349
|
+
return pb_1.Message.getFieldWithDefault(this, 3, 0);
|
|
2350
|
+
}
|
|
2351
|
+
set limit(value) {
|
|
2352
|
+
pb_1.Message.setField(this, 3, value);
|
|
2353
|
+
}
|
|
2354
|
+
get page() {
|
|
2355
|
+
return pb_1.Message.getFieldWithDefault(this, 4, 0);
|
|
2356
|
+
}
|
|
2357
|
+
set page(value) {
|
|
2358
|
+
pb_1.Message.setField(this, 4, value);
|
|
2359
|
+
}
|
|
2360
|
+
get id() {
|
|
2361
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
2362
|
+
}
|
|
2363
|
+
set id(value) {
|
|
2364
|
+
pb_1.Message.setField(this, 5, value);
|
|
2365
|
+
}
|
|
2366
|
+
get search() {
|
|
2367
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
2368
|
+
}
|
|
2369
|
+
set search(value) {
|
|
2370
|
+
pb_1.Message.setField(this, 6, value);
|
|
2371
|
+
}
|
|
2372
|
+
get provider() {
|
|
2373
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
2374
|
+
}
|
|
2375
|
+
set provider(value) {
|
|
2376
|
+
pb_1.Message.setField(this, 7, value);
|
|
2377
|
+
}
|
|
2378
|
+
static fromObject(data) {
|
|
2379
|
+
const message = new FilterRequest({});
|
|
2380
|
+
if (data.from != null) {
|
|
2381
|
+
message.from = data.from;
|
|
2382
|
+
}
|
|
2383
|
+
if (data.to != null) {
|
|
2384
|
+
message.to = data.to;
|
|
2385
|
+
}
|
|
2386
|
+
if (data.limit != null) {
|
|
2387
|
+
message.limit = data.limit;
|
|
2388
|
+
}
|
|
2389
|
+
if (data.page != null) {
|
|
2390
|
+
message.page = data.page;
|
|
2391
|
+
}
|
|
2392
|
+
if (data.id != null) {
|
|
2393
|
+
message.id = data.id;
|
|
2394
|
+
}
|
|
2395
|
+
if (data.search != null) {
|
|
2396
|
+
message.search = data.search;
|
|
2397
|
+
}
|
|
2398
|
+
if (data.provider != null) {
|
|
2399
|
+
message.provider = data.provider;
|
|
2400
|
+
}
|
|
2401
|
+
return message;
|
|
2402
|
+
}
|
|
2403
|
+
toObject() {
|
|
2404
|
+
const data = {};
|
|
2405
|
+
if (this.from != null) {
|
|
2406
|
+
data.from = this.from;
|
|
2407
|
+
}
|
|
2408
|
+
if (this.to != null) {
|
|
2409
|
+
data.to = this.to;
|
|
2410
|
+
}
|
|
2411
|
+
if (this.limit != null) {
|
|
2412
|
+
data.limit = this.limit;
|
|
2413
|
+
}
|
|
2414
|
+
if (this.page != null) {
|
|
2415
|
+
data.page = this.page;
|
|
2416
|
+
}
|
|
2417
|
+
if (this.id != null) {
|
|
2418
|
+
data.id = this.id;
|
|
2419
|
+
}
|
|
2420
|
+
if (this.search != null) {
|
|
2421
|
+
data.search = this.search;
|
|
2422
|
+
}
|
|
2423
|
+
if (this.provider != null) {
|
|
2424
|
+
data.provider = this.provider;
|
|
2425
|
+
}
|
|
2426
|
+
return data;
|
|
2427
|
+
}
|
|
2428
|
+
serialize(w) {
|
|
2429
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
2430
|
+
if (this.from.length)
|
|
2431
|
+
writer.writeString(1, this.from);
|
|
2432
|
+
if (this.to.length)
|
|
2433
|
+
writer.writeString(2, this.to);
|
|
2434
|
+
if (this.limit != 0)
|
|
2435
|
+
writer.writeInt32(3, this.limit);
|
|
2436
|
+
if (this.page != 0)
|
|
2437
|
+
writer.writeInt32(4, this.page);
|
|
2438
|
+
if (this.id.length)
|
|
2439
|
+
writer.writeString(5, this.id);
|
|
2440
|
+
if (this.search.length)
|
|
2441
|
+
writer.writeString(6, this.search);
|
|
2442
|
+
if (this.provider.length)
|
|
2443
|
+
writer.writeString(7, this.provider);
|
|
2444
|
+
if (!w)
|
|
2445
|
+
return writer.getResultBuffer();
|
|
2446
|
+
}
|
|
2447
|
+
static deserialize(bytes) {
|
|
2448
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FilterRequest();
|
|
2449
|
+
while (reader.nextField()) {
|
|
2450
|
+
if (reader.isEndGroup())
|
|
2451
|
+
break;
|
|
2452
|
+
switch (reader.getFieldNumber()) {
|
|
2453
|
+
case 1:
|
|
2454
|
+
message.from = reader.readString();
|
|
2455
|
+
break;
|
|
2456
|
+
case 2:
|
|
2457
|
+
message.to = reader.readString();
|
|
2458
|
+
break;
|
|
2459
|
+
case 3:
|
|
2460
|
+
message.limit = reader.readInt32();
|
|
2461
|
+
break;
|
|
2462
|
+
case 4:
|
|
2463
|
+
message.page = reader.readInt32();
|
|
2464
|
+
break;
|
|
2465
|
+
case 5:
|
|
2466
|
+
message.id = reader.readString();
|
|
2467
|
+
break;
|
|
2468
|
+
case 6:
|
|
2469
|
+
message.search = reader.readString();
|
|
2470
|
+
break;
|
|
2471
|
+
case 7:
|
|
2472
|
+
message.provider = reader.readString();
|
|
2473
|
+
break;
|
|
2474
|
+
default: reader.skipField();
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
return message;
|
|
2478
|
+
}
|
|
2479
|
+
serializeBinary() {
|
|
2480
|
+
return this.serialize();
|
|
2481
|
+
}
|
|
2482
|
+
static deserializeBinary(bytes) {
|
|
2483
|
+
return FilterRequest.deserialize(bytes);
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
transfer.FilterRequest = FilterRequest;
|
|
2487
|
+
class Code extends pb_1.Message {
|
|
2488
|
+
#one_of_decls = [];
|
|
2489
|
+
constructor(data) {
|
|
2490
|
+
super();
|
|
2491
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
2492
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
2493
|
+
if ("nip" in data && data.nip != undefined) {
|
|
2494
|
+
this.nip = data.nip;
|
|
2495
|
+
}
|
|
2496
|
+
if ("cbn" in data && data.cbn != undefined) {
|
|
2497
|
+
this.cbn = data.cbn;
|
|
2498
|
+
}
|
|
2499
|
+
if ("uscode" in data && data.uscode != undefined) {
|
|
2500
|
+
this.uscode = data.uscode;
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
get nip() {
|
|
2505
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
2506
|
+
}
|
|
2507
|
+
set nip(value) {
|
|
2508
|
+
pb_1.Message.setField(this, 1, value);
|
|
2509
|
+
}
|
|
2510
|
+
get cbn() {
|
|
2511
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
2512
|
+
}
|
|
2513
|
+
set cbn(value) {
|
|
2514
|
+
pb_1.Message.setField(this, 2, value);
|
|
2515
|
+
}
|
|
2516
|
+
get uscode() {
|
|
2517
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
2518
|
+
}
|
|
2519
|
+
set uscode(value) {
|
|
2520
|
+
pb_1.Message.setField(this, 3, value);
|
|
2521
|
+
}
|
|
2522
|
+
static fromObject(data) {
|
|
2523
|
+
const message = new Code({});
|
|
2524
|
+
if (data.nip != null) {
|
|
2525
|
+
message.nip = data.nip;
|
|
2526
|
+
}
|
|
2527
|
+
if (data.cbn != null) {
|
|
2528
|
+
message.cbn = data.cbn;
|
|
2529
|
+
}
|
|
2530
|
+
if (data.uscode != null) {
|
|
2531
|
+
message.uscode = data.uscode;
|
|
2532
|
+
}
|
|
2533
|
+
return message;
|
|
2534
|
+
}
|
|
2535
|
+
toObject() {
|
|
2536
|
+
const data = {};
|
|
2537
|
+
if (this.nip != null) {
|
|
2538
|
+
data.nip = this.nip;
|
|
2539
|
+
}
|
|
2540
|
+
if (this.cbn != null) {
|
|
2541
|
+
data.cbn = this.cbn;
|
|
2542
|
+
}
|
|
2543
|
+
if (this.uscode != null) {
|
|
2544
|
+
data.uscode = this.uscode;
|
|
2545
|
+
}
|
|
2546
|
+
return data;
|
|
2547
|
+
}
|
|
2548
|
+
serialize(w) {
|
|
2549
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
2550
|
+
if (this.nip.length)
|
|
2551
|
+
writer.writeString(1, this.nip);
|
|
2552
|
+
if (this.cbn.length)
|
|
2553
|
+
writer.writeString(2, this.cbn);
|
|
2554
|
+
if (this.uscode.length)
|
|
2555
|
+
writer.writeString(3, this.uscode);
|
|
2556
|
+
if (!w)
|
|
2557
|
+
return writer.getResultBuffer();
|
|
2558
|
+
}
|
|
2559
|
+
static deserialize(bytes) {
|
|
2560
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Code();
|
|
2561
|
+
while (reader.nextField()) {
|
|
2562
|
+
if (reader.isEndGroup())
|
|
2563
|
+
break;
|
|
2564
|
+
switch (reader.getFieldNumber()) {
|
|
2565
|
+
case 1:
|
|
2566
|
+
message.nip = reader.readString();
|
|
2567
|
+
break;
|
|
2568
|
+
case 2:
|
|
2569
|
+
message.cbn = reader.readString();
|
|
2570
|
+
break;
|
|
2571
|
+
case 3:
|
|
2572
|
+
message.uscode = reader.readString();
|
|
2573
|
+
break;
|
|
2574
|
+
default: reader.skipField();
|
|
2575
|
+
}
|
|
2576
|
+
}
|
|
2577
|
+
return message;
|
|
2578
|
+
}
|
|
2579
|
+
serializeBinary() {
|
|
2580
|
+
return this.serialize();
|
|
2581
|
+
}
|
|
2582
|
+
static deserializeBinary(bytes) {
|
|
2583
|
+
return Code.deserialize(bytes);
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
transfer.Code = Code;
|
|
2587
|
+
class InstitutionRequest extends pb_1.Message {
|
|
2588
|
+
#one_of_decls = [];
|
|
2589
|
+
constructor(data) {
|
|
2590
|
+
super();
|
|
2591
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
2592
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
2593
|
+
if ("name" in data && data.name != undefined) {
|
|
2594
|
+
this.name = data.name;
|
|
2595
|
+
}
|
|
2596
|
+
if ("status" in data && data.status != undefined) {
|
|
2597
|
+
this.status = data.status;
|
|
2598
|
+
}
|
|
2599
|
+
if ("logo" in data && data.logo != undefined) {
|
|
2600
|
+
this.logo = data.logo;
|
|
2601
|
+
}
|
|
2602
|
+
if ("country" in data && data.country != undefined) {
|
|
2603
|
+
this.country = data.country;
|
|
2604
|
+
}
|
|
2605
|
+
if ("category" in data && data.category != undefined) {
|
|
2606
|
+
this.category = data.category;
|
|
2607
|
+
}
|
|
2608
|
+
if ("id" in data && data.id != undefined) {
|
|
2609
|
+
this.id = data.id;
|
|
2610
|
+
}
|
|
2611
|
+
if ("nipCode" in data && data.nipCode != undefined) {
|
|
2612
|
+
this.nipCode = data.nipCode;
|
|
2613
|
+
}
|
|
2614
|
+
if ("cbnCode" in data && data.cbnCode != undefined) {
|
|
2615
|
+
this.cbnCode = data.cbnCode;
|
|
2616
|
+
}
|
|
2617
|
+
if ("usCode" in data && data.usCode != undefined) {
|
|
2618
|
+
this.usCode = data.usCode;
|
|
2619
|
+
}
|
|
2620
|
+
if ("provider" in data && data.provider != undefined) {
|
|
2621
|
+
this.provider = data.provider;
|
|
2622
|
+
}
|
|
2623
|
+
}
|
|
2624
|
+
}
|
|
2625
|
+
get name() {
|
|
2626
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
2627
|
+
}
|
|
2628
|
+
set name(value) {
|
|
2629
|
+
pb_1.Message.setField(this, 1, value);
|
|
2630
|
+
}
|
|
2631
|
+
get status() {
|
|
2632
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
2633
|
+
}
|
|
2634
|
+
set status(value) {
|
|
2635
|
+
pb_1.Message.setField(this, 2, value);
|
|
2636
|
+
}
|
|
2637
|
+
get logo() {
|
|
2638
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
2639
|
+
}
|
|
2640
|
+
set logo(value) {
|
|
2641
|
+
pb_1.Message.setField(this, 3, value);
|
|
2642
|
+
}
|
|
2643
|
+
get country() {
|
|
2644
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
2645
|
+
}
|
|
2646
|
+
set country(value) {
|
|
2647
|
+
pb_1.Message.setField(this, 4, value);
|
|
2648
|
+
}
|
|
2649
|
+
get category() {
|
|
2650
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
2651
|
+
}
|
|
2652
|
+
set category(value) {
|
|
2653
|
+
pb_1.Message.setField(this, 5, value);
|
|
2654
|
+
}
|
|
2655
|
+
get id() {
|
|
2656
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
2657
|
+
}
|
|
2658
|
+
set id(value) {
|
|
2659
|
+
pb_1.Message.setField(this, 6, value);
|
|
2660
|
+
}
|
|
2661
|
+
get nipCode() {
|
|
2662
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
2663
|
+
}
|
|
2664
|
+
set nipCode(value) {
|
|
2665
|
+
pb_1.Message.setField(this, 7, value);
|
|
2666
|
+
}
|
|
2667
|
+
get cbnCode() {
|
|
2668
|
+
return pb_1.Message.getFieldWithDefault(this, 8, "");
|
|
2669
|
+
}
|
|
2670
|
+
set cbnCode(value) {
|
|
2671
|
+
pb_1.Message.setField(this, 8, value);
|
|
2672
|
+
}
|
|
2673
|
+
get usCode() {
|
|
2674
|
+
return pb_1.Message.getFieldWithDefault(this, 9, "");
|
|
2675
|
+
}
|
|
2676
|
+
set usCode(value) {
|
|
2677
|
+
pb_1.Message.setField(this, 9, value);
|
|
2678
|
+
}
|
|
2679
|
+
get provider() {
|
|
2680
|
+
return pb_1.Message.getFieldWithDefault(this, 10, "");
|
|
2681
|
+
}
|
|
2682
|
+
set provider(value) {
|
|
2683
|
+
pb_1.Message.setField(this, 10, value);
|
|
2684
|
+
}
|
|
2685
|
+
static fromObject(data) {
|
|
2686
|
+
const message = new InstitutionRequest({});
|
|
2687
|
+
if (data.name != null) {
|
|
2688
|
+
message.name = data.name;
|
|
2689
|
+
}
|
|
2690
|
+
if (data.status != null) {
|
|
2691
|
+
message.status = data.status;
|
|
2692
|
+
}
|
|
2693
|
+
if (data.logo != null) {
|
|
2694
|
+
message.logo = data.logo;
|
|
2695
|
+
}
|
|
2696
|
+
if (data.country != null) {
|
|
2697
|
+
message.country = data.country;
|
|
2698
|
+
}
|
|
2699
|
+
if (data.category != null) {
|
|
2700
|
+
message.category = data.category;
|
|
2701
|
+
}
|
|
2702
|
+
if (data.id != null) {
|
|
2703
|
+
message.id = data.id;
|
|
2704
|
+
}
|
|
2705
|
+
if (data.nipCode != null) {
|
|
2706
|
+
message.nipCode = data.nipCode;
|
|
2707
|
+
}
|
|
2708
|
+
if (data.cbnCode != null) {
|
|
2709
|
+
message.cbnCode = data.cbnCode;
|
|
2710
|
+
}
|
|
2711
|
+
if (data.usCode != null) {
|
|
2712
|
+
message.usCode = data.usCode;
|
|
2713
|
+
}
|
|
2714
|
+
if (data.provider != null) {
|
|
2715
|
+
message.provider = data.provider;
|
|
2716
|
+
}
|
|
2717
|
+
return message;
|
|
2718
|
+
}
|
|
2719
|
+
toObject() {
|
|
2720
|
+
const data = {};
|
|
2721
|
+
if (this.name != null) {
|
|
2722
|
+
data.name = this.name;
|
|
2723
|
+
}
|
|
2724
|
+
if (this.status != null) {
|
|
2725
|
+
data.status = this.status;
|
|
2726
|
+
}
|
|
2727
|
+
if (this.logo != null) {
|
|
2728
|
+
data.logo = this.logo;
|
|
2729
|
+
}
|
|
2730
|
+
if (this.country != null) {
|
|
2731
|
+
data.country = this.country;
|
|
2732
|
+
}
|
|
2733
|
+
if (this.category != null) {
|
|
2734
|
+
data.category = this.category;
|
|
2735
|
+
}
|
|
2736
|
+
if (this.id != null) {
|
|
2737
|
+
data.id = this.id;
|
|
2738
|
+
}
|
|
2739
|
+
if (this.nipCode != null) {
|
|
2740
|
+
data.nipCode = this.nipCode;
|
|
2741
|
+
}
|
|
2742
|
+
if (this.cbnCode != null) {
|
|
2743
|
+
data.cbnCode = this.cbnCode;
|
|
2744
|
+
}
|
|
2745
|
+
if (this.usCode != null) {
|
|
2746
|
+
data.usCode = this.usCode;
|
|
2747
|
+
}
|
|
2748
|
+
if (this.provider != null) {
|
|
2749
|
+
data.provider = this.provider;
|
|
2750
|
+
}
|
|
2751
|
+
return data;
|
|
2752
|
+
}
|
|
2753
|
+
serialize(w) {
|
|
2754
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
2755
|
+
if (this.name.length)
|
|
2756
|
+
writer.writeString(1, this.name);
|
|
2757
|
+
if (this.status.length)
|
|
2758
|
+
writer.writeString(2, this.status);
|
|
2759
|
+
if (this.logo.length)
|
|
2760
|
+
writer.writeString(3, this.logo);
|
|
2761
|
+
if (this.country.length)
|
|
2762
|
+
writer.writeString(4, this.country);
|
|
2763
|
+
if (this.category.length)
|
|
2764
|
+
writer.writeString(5, this.category);
|
|
2765
|
+
if (this.id.length)
|
|
2766
|
+
writer.writeString(6, this.id);
|
|
2767
|
+
if (this.nipCode.length)
|
|
2768
|
+
writer.writeString(7, this.nipCode);
|
|
2769
|
+
if (this.cbnCode.length)
|
|
2770
|
+
writer.writeString(8, this.cbnCode);
|
|
2771
|
+
if (this.usCode.length)
|
|
2772
|
+
writer.writeString(9, this.usCode);
|
|
2773
|
+
if (this.provider.length)
|
|
2774
|
+
writer.writeString(10, this.provider);
|
|
2775
|
+
if (!w)
|
|
2776
|
+
return writer.getResultBuffer();
|
|
2777
|
+
}
|
|
2778
|
+
static deserialize(bytes) {
|
|
2779
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new InstitutionRequest();
|
|
2780
|
+
while (reader.nextField()) {
|
|
2781
|
+
if (reader.isEndGroup())
|
|
2782
|
+
break;
|
|
2783
|
+
switch (reader.getFieldNumber()) {
|
|
2784
|
+
case 1:
|
|
2785
|
+
message.name = reader.readString();
|
|
2786
|
+
break;
|
|
2787
|
+
case 2:
|
|
2788
|
+
message.status = reader.readString();
|
|
2789
|
+
break;
|
|
2790
|
+
case 3:
|
|
2791
|
+
message.logo = reader.readString();
|
|
2792
|
+
break;
|
|
2793
|
+
case 4:
|
|
2794
|
+
message.country = reader.readString();
|
|
2795
|
+
break;
|
|
2796
|
+
case 5:
|
|
2797
|
+
message.category = reader.readString();
|
|
2798
|
+
break;
|
|
2799
|
+
case 6:
|
|
2800
|
+
message.id = reader.readString();
|
|
2801
|
+
break;
|
|
2802
|
+
case 7:
|
|
2803
|
+
message.nipCode = reader.readString();
|
|
2804
|
+
break;
|
|
2805
|
+
case 8:
|
|
2806
|
+
message.cbnCode = reader.readString();
|
|
2807
|
+
break;
|
|
2808
|
+
case 9:
|
|
2809
|
+
message.usCode = reader.readString();
|
|
2810
|
+
break;
|
|
2811
|
+
case 10:
|
|
2812
|
+
message.provider = reader.readString();
|
|
2813
|
+
break;
|
|
2814
|
+
default: reader.skipField();
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
return message;
|
|
2818
|
+
}
|
|
2819
|
+
serializeBinary() {
|
|
2820
|
+
return this.serialize();
|
|
2821
|
+
}
|
|
2822
|
+
static deserializeBinary(bytes) {
|
|
2823
|
+
return InstitutionRequest.deserialize(bytes);
|
|
2824
|
+
}
|
|
2825
|
+
}
|
|
2826
|
+
transfer.InstitutionRequest = InstitutionRequest;
|
|
2827
|
+
class InstitutionData extends pb_1.Message {
|
|
2828
|
+
#one_of_decls = [];
|
|
2829
|
+
constructor(data) {
|
|
2830
|
+
super();
|
|
2831
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
2832
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
2833
|
+
if ("name" in data && data.name != undefined) {
|
|
2834
|
+
this.name = data.name;
|
|
2835
|
+
}
|
|
2836
|
+
if ("code" in data && data.code != undefined) {
|
|
2837
|
+
this.code = data.code;
|
|
2838
|
+
}
|
|
2839
|
+
if ("status" in data && data.status != undefined) {
|
|
2840
|
+
this.status = data.status;
|
|
2841
|
+
}
|
|
2842
|
+
if ("logo" in data && data.logo != undefined) {
|
|
2843
|
+
this.logo = data.logo;
|
|
2844
|
+
}
|
|
2845
|
+
if ("country" in data && data.country != undefined) {
|
|
2846
|
+
this.country = data.country;
|
|
2847
|
+
}
|
|
2848
|
+
if ("category" in data && data.category != undefined) {
|
|
2849
|
+
this.category = data.category;
|
|
2850
|
+
}
|
|
2851
|
+
if ("strength" in data && data.strength != undefined) {
|
|
2852
|
+
this.strength = data.strength;
|
|
2853
|
+
}
|
|
2854
|
+
if ("percentile" in data && data.percentile != undefined) {
|
|
2855
|
+
this.percentile = data.percentile;
|
|
2856
|
+
}
|
|
2857
|
+
if ("id" in data && data.id != undefined) {
|
|
2858
|
+
this.id = data.id;
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
}
|
|
2862
|
+
get name() {
|
|
2863
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
2864
|
+
}
|
|
2865
|
+
set name(value) {
|
|
2866
|
+
pb_1.Message.setField(this, 1, value);
|
|
2867
|
+
}
|
|
2868
|
+
get code() {
|
|
2869
|
+
return pb_1.Message.getWrapperField(this, Code, 2);
|
|
2870
|
+
}
|
|
2871
|
+
set code(value) {
|
|
2872
|
+
pb_1.Message.setWrapperField(this, 2, value);
|
|
2873
|
+
}
|
|
2874
|
+
get hasCode() {
|
|
2875
|
+
return pb_1.Message.getField(this, 2) != null;
|
|
2876
|
+
}
|
|
2877
|
+
get status() {
|
|
2878
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
2879
|
+
}
|
|
2880
|
+
set status(value) {
|
|
2881
|
+
pb_1.Message.setField(this, 3, value);
|
|
2882
|
+
}
|
|
2883
|
+
get logo() {
|
|
2884
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
2885
|
+
}
|
|
2886
|
+
set logo(value) {
|
|
2887
|
+
pb_1.Message.setField(this, 4, value);
|
|
2888
|
+
}
|
|
2889
|
+
get country() {
|
|
2890
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
2891
|
+
}
|
|
2892
|
+
set country(value) {
|
|
2893
|
+
pb_1.Message.setField(this, 5, value);
|
|
2894
|
+
}
|
|
2895
|
+
get category() {
|
|
2896
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
2897
|
+
}
|
|
2898
|
+
set category(value) {
|
|
2899
|
+
pb_1.Message.setField(this, 6, value);
|
|
2900
|
+
}
|
|
2901
|
+
get strength() {
|
|
2902
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
2903
|
+
}
|
|
2904
|
+
set strength(value) {
|
|
2905
|
+
pb_1.Message.setField(this, 7, value);
|
|
2906
|
+
}
|
|
2907
|
+
get percentile() {
|
|
2908
|
+
return pb_1.Message.getFieldWithDefault(this, 8, 0);
|
|
2909
|
+
}
|
|
2910
|
+
set percentile(value) {
|
|
2911
|
+
pb_1.Message.setField(this, 8, value);
|
|
2912
|
+
}
|
|
2913
|
+
get id() {
|
|
2914
|
+
return pb_1.Message.getFieldWithDefault(this, 9, "");
|
|
2915
|
+
}
|
|
2916
|
+
set id(value) {
|
|
2917
|
+
pb_1.Message.setField(this, 9, value);
|
|
2918
|
+
}
|
|
2919
|
+
static fromObject(data) {
|
|
2920
|
+
const message = new InstitutionData({});
|
|
2921
|
+
if (data.name != null) {
|
|
2922
|
+
message.name = data.name;
|
|
2923
|
+
}
|
|
2924
|
+
if (data.code != null) {
|
|
2925
|
+
message.code = Code.fromObject(data.code);
|
|
2926
|
+
}
|
|
2927
|
+
if (data.status != null) {
|
|
2928
|
+
message.status = data.status;
|
|
2929
|
+
}
|
|
2930
|
+
if (data.logo != null) {
|
|
2931
|
+
message.logo = data.logo;
|
|
2932
|
+
}
|
|
2933
|
+
if (data.country != null) {
|
|
2934
|
+
message.country = data.country;
|
|
2935
|
+
}
|
|
2936
|
+
if (data.category != null) {
|
|
2937
|
+
message.category = data.category;
|
|
2938
|
+
}
|
|
2939
|
+
if (data.strength != null) {
|
|
2940
|
+
message.strength = data.strength;
|
|
2941
|
+
}
|
|
2942
|
+
if (data.percentile != null) {
|
|
2943
|
+
message.percentile = data.percentile;
|
|
2944
|
+
}
|
|
2945
|
+
if (data.id != null) {
|
|
2946
|
+
message.id = data.id;
|
|
2947
|
+
}
|
|
2948
|
+
return message;
|
|
2949
|
+
}
|
|
2950
|
+
toObject() {
|
|
2951
|
+
const data = {};
|
|
2952
|
+
if (this.name != null) {
|
|
2953
|
+
data.name = this.name;
|
|
2954
|
+
}
|
|
2955
|
+
if (this.code != null) {
|
|
2956
|
+
data.code = this.code.toObject();
|
|
2957
|
+
}
|
|
2958
|
+
if (this.status != null) {
|
|
2959
|
+
data.status = this.status;
|
|
2960
|
+
}
|
|
2961
|
+
if (this.logo != null) {
|
|
2962
|
+
data.logo = this.logo;
|
|
2963
|
+
}
|
|
2964
|
+
if (this.country != null) {
|
|
2965
|
+
data.country = this.country;
|
|
2966
|
+
}
|
|
2967
|
+
if (this.category != null) {
|
|
2968
|
+
data.category = this.category;
|
|
2969
|
+
}
|
|
2970
|
+
if (this.strength != null) {
|
|
2971
|
+
data.strength = this.strength;
|
|
2972
|
+
}
|
|
2973
|
+
if (this.percentile != null) {
|
|
2974
|
+
data.percentile = this.percentile;
|
|
2975
|
+
}
|
|
2976
|
+
if (this.id != null) {
|
|
2977
|
+
data.id = this.id;
|
|
2978
|
+
}
|
|
2979
|
+
return data;
|
|
2980
|
+
}
|
|
2981
|
+
serialize(w) {
|
|
2982
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
2983
|
+
if (this.name.length)
|
|
2984
|
+
writer.writeString(1, this.name);
|
|
2985
|
+
if (this.hasCode)
|
|
2986
|
+
writer.writeMessage(2, this.code, () => this.code.serialize(writer));
|
|
2987
|
+
if (this.status.length)
|
|
2988
|
+
writer.writeString(3, this.status);
|
|
2989
|
+
if (this.logo.length)
|
|
2990
|
+
writer.writeString(4, this.logo);
|
|
2991
|
+
if (this.country.length)
|
|
2992
|
+
writer.writeString(5, this.country);
|
|
2993
|
+
if (this.category.length)
|
|
2994
|
+
writer.writeString(6, this.category);
|
|
2995
|
+
if (this.strength.length)
|
|
2996
|
+
writer.writeString(7, this.strength);
|
|
2997
|
+
if (this.percentile != 0)
|
|
2998
|
+
writer.writeDouble(8, this.percentile);
|
|
2999
|
+
if (this.id.length)
|
|
3000
|
+
writer.writeString(9, this.id);
|
|
3001
|
+
if (!w)
|
|
3002
|
+
return writer.getResultBuffer();
|
|
3003
|
+
}
|
|
3004
|
+
static deserialize(bytes) {
|
|
3005
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new InstitutionData();
|
|
3006
|
+
while (reader.nextField()) {
|
|
3007
|
+
if (reader.isEndGroup())
|
|
3008
|
+
break;
|
|
3009
|
+
switch (reader.getFieldNumber()) {
|
|
3010
|
+
case 1:
|
|
3011
|
+
message.name = reader.readString();
|
|
3012
|
+
break;
|
|
3013
|
+
case 2:
|
|
3014
|
+
reader.readMessage(message.code, () => message.code = Code.deserialize(reader));
|
|
3015
|
+
break;
|
|
3016
|
+
case 3:
|
|
3017
|
+
message.status = reader.readString();
|
|
3018
|
+
break;
|
|
3019
|
+
case 4:
|
|
3020
|
+
message.logo = reader.readString();
|
|
3021
|
+
break;
|
|
3022
|
+
case 5:
|
|
3023
|
+
message.country = reader.readString();
|
|
3024
|
+
break;
|
|
3025
|
+
case 6:
|
|
3026
|
+
message.category = reader.readString();
|
|
3027
|
+
break;
|
|
3028
|
+
case 7:
|
|
3029
|
+
message.strength = reader.readString();
|
|
3030
|
+
break;
|
|
3031
|
+
case 8:
|
|
3032
|
+
message.percentile = reader.readDouble();
|
|
3033
|
+
break;
|
|
3034
|
+
case 9:
|
|
3035
|
+
message.id = reader.readString();
|
|
3036
|
+
break;
|
|
3037
|
+
default: reader.skipField();
|
|
3038
|
+
}
|
|
3039
|
+
}
|
|
3040
|
+
return message;
|
|
3041
|
+
}
|
|
3042
|
+
serializeBinary() {
|
|
3043
|
+
return this.serialize();
|
|
3044
|
+
}
|
|
3045
|
+
static deserializeBinary(bytes) {
|
|
3046
|
+
return InstitutionData.deserialize(bytes);
|
|
3047
|
+
}
|
|
3048
|
+
}
|
|
3049
|
+
transfer.InstitutionData = InstitutionData;
|
|
3050
|
+
class RepeatedInstitutionResponse extends pb_1.Message {
|
|
3051
|
+
#one_of_decls = [];
|
|
3052
|
+
constructor(data) {
|
|
3053
|
+
super();
|
|
3054
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 5], this.#one_of_decls);
|
|
3055
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
3056
|
+
if ("status" in data && data.status != undefined) {
|
|
3057
|
+
this.status = data.status;
|
|
3058
|
+
}
|
|
3059
|
+
if ("data" in data && data.data != undefined) {
|
|
3060
|
+
this.data = data.data;
|
|
3061
|
+
}
|
|
3062
|
+
if ("error" in data && data.error != undefined) {
|
|
3063
|
+
this.error = data.error;
|
|
3064
|
+
}
|
|
3065
|
+
if ("message" in data && data.message != undefined) {
|
|
3066
|
+
this.message = data.message;
|
|
3067
|
+
}
|
|
3068
|
+
if ("errors" in data && data.errors != undefined) {
|
|
3069
|
+
this.errors = data.errors;
|
|
3070
|
+
}
|
|
3071
|
+
if ("success" in data && data.success != undefined) {
|
|
3072
|
+
this.success = data.success;
|
|
3073
|
+
}
|
|
3074
|
+
if ("pagination" in data && data.pagination != undefined) {
|
|
3075
|
+
this.pagination = data.pagination;
|
|
3076
|
+
}
|
|
3077
|
+
}
|
|
3078
|
+
}
|
|
3079
|
+
get status() {
|
|
3080
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
3081
|
+
}
|
|
3082
|
+
set status(value) {
|
|
3083
|
+
pb_1.Message.setField(this, 1, value);
|
|
3084
|
+
}
|
|
3085
|
+
get data() {
|
|
3086
|
+
return pb_1.Message.getRepeatedWrapperField(this, InstitutionData, 2);
|
|
3087
|
+
}
|
|
3088
|
+
set data(value) {
|
|
3089
|
+
pb_1.Message.setRepeatedWrapperField(this, 2, value);
|
|
3090
|
+
}
|
|
3091
|
+
get error() {
|
|
3092
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
3093
|
+
}
|
|
3094
|
+
set error(value) {
|
|
3095
|
+
pb_1.Message.setField(this, 3, value);
|
|
3096
|
+
}
|
|
3097
|
+
get message() {
|
|
3098
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
3099
|
+
}
|
|
3100
|
+
set message(value) {
|
|
3101
|
+
pb_1.Message.setField(this, 4, value);
|
|
3102
|
+
}
|
|
3103
|
+
get errors() {
|
|
3104
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 5);
|
|
3105
|
+
}
|
|
3106
|
+
set errors(value) {
|
|
3107
|
+
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
3108
|
+
}
|
|
3109
|
+
get success() {
|
|
3110
|
+
return pb_1.Message.getFieldWithDefault(this, 6, false);
|
|
3111
|
+
}
|
|
3112
|
+
set success(value) {
|
|
3113
|
+
pb_1.Message.setField(this, 6, value);
|
|
3114
|
+
}
|
|
3115
|
+
get pagination() {
|
|
3116
|
+
return pb_1.Message.getWrapperField(this, Pagination, 7);
|
|
3117
|
+
}
|
|
3118
|
+
set pagination(value) {
|
|
3119
|
+
pb_1.Message.setWrapperField(this, 7, value);
|
|
3120
|
+
}
|
|
3121
|
+
get hasPagination() {
|
|
3122
|
+
return pb_1.Message.getField(this, 7) != null;
|
|
3123
|
+
}
|
|
3124
|
+
static fromObject(data) {
|
|
3125
|
+
const message = new RepeatedInstitutionResponse({});
|
|
3126
|
+
if (data.status != null) {
|
|
3127
|
+
message.status = data.status;
|
|
3128
|
+
}
|
|
3129
|
+
if (data.data != null) {
|
|
3130
|
+
message.data = data.data.map(item => InstitutionData.fromObject(item));
|
|
3131
|
+
}
|
|
3132
|
+
if (data.error != null) {
|
|
3133
|
+
message.error = data.error;
|
|
3134
|
+
}
|
|
3135
|
+
if (data.message != null) {
|
|
3136
|
+
message.message = data.message;
|
|
3137
|
+
}
|
|
3138
|
+
if (data.errors != null) {
|
|
3139
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
3140
|
+
}
|
|
3141
|
+
if (data.success != null) {
|
|
3142
|
+
message.success = data.success;
|
|
3143
|
+
}
|
|
3144
|
+
if (data.pagination != null) {
|
|
3145
|
+
message.pagination = Pagination.fromObject(data.pagination);
|
|
3146
|
+
}
|
|
3147
|
+
return message;
|
|
3148
|
+
}
|
|
3149
|
+
toObject() {
|
|
3150
|
+
const data = {};
|
|
3151
|
+
if (this.status != null) {
|
|
3152
|
+
data.status = this.status;
|
|
3153
|
+
}
|
|
3154
|
+
if (this.data != null) {
|
|
3155
|
+
data.data = this.data.map((item) => item.toObject());
|
|
3156
|
+
}
|
|
3157
|
+
if (this.error != null) {
|
|
3158
|
+
data.error = this.error;
|
|
3159
|
+
}
|
|
3160
|
+
if (this.message != null) {
|
|
3161
|
+
data.message = this.message;
|
|
3162
|
+
}
|
|
3163
|
+
if (this.errors != null) {
|
|
3164
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
3165
|
+
}
|
|
3166
|
+
if (this.success != null) {
|
|
3167
|
+
data.success = this.success;
|
|
3168
|
+
}
|
|
3169
|
+
if (this.pagination != null) {
|
|
3170
|
+
data.pagination = this.pagination.toObject();
|
|
3171
|
+
}
|
|
3172
|
+
return data;
|
|
3173
|
+
}
|
|
3174
|
+
serialize(w) {
|
|
3175
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
3176
|
+
if (this.status.length)
|
|
3177
|
+
writer.writeString(1, this.status);
|
|
3178
|
+
if (this.data.length)
|
|
3179
|
+
writer.writeRepeatedMessage(2, this.data, (item) => item.serialize(writer));
|
|
3180
|
+
if (this.error.length)
|
|
3181
|
+
writer.writeString(3, this.error);
|
|
3182
|
+
if (this.message.length)
|
|
3183
|
+
writer.writeString(4, this.message);
|
|
3184
|
+
if (this.errors.length)
|
|
3185
|
+
writer.writeRepeatedMessage(5, this.errors, (item) => item.serialize(writer));
|
|
3186
|
+
if (this.success != false)
|
|
3187
|
+
writer.writeBool(6, this.success);
|
|
3188
|
+
if (this.hasPagination)
|
|
3189
|
+
writer.writeMessage(7, this.pagination, () => this.pagination.serialize(writer));
|
|
3190
|
+
if (!w)
|
|
3191
|
+
return writer.getResultBuffer();
|
|
3192
|
+
}
|
|
3193
|
+
static deserialize(bytes) {
|
|
3194
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RepeatedInstitutionResponse();
|
|
3195
|
+
while (reader.nextField()) {
|
|
3196
|
+
if (reader.isEndGroup())
|
|
3197
|
+
break;
|
|
3198
|
+
switch (reader.getFieldNumber()) {
|
|
3199
|
+
case 1:
|
|
3200
|
+
message.status = reader.readString();
|
|
3201
|
+
break;
|
|
3202
|
+
case 2:
|
|
3203
|
+
reader.readMessage(message.data, () => pb_1.Message.addToRepeatedWrapperField(message, 2, InstitutionData.deserialize(reader), InstitutionData));
|
|
3204
|
+
break;
|
|
3205
|
+
case 3:
|
|
3206
|
+
message.error = reader.readString();
|
|
3207
|
+
break;
|
|
3208
|
+
case 4:
|
|
3209
|
+
message.message = reader.readString();
|
|
3210
|
+
break;
|
|
3211
|
+
case 5:
|
|
3212
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 5, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
3213
|
+
break;
|
|
3214
|
+
case 6:
|
|
3215
|
+
message.success = reader.readBool();
|
|
3216
|
+
break;
|
|
3217
|
+
case 7:
|
|
3218
|
+
reader.readMessage(message.pagination, () => message.pagination = Pagination.deserialize(reader));
|
|
3219
|
+
break;
|
|
3220
|
+
default: reader.skipField();
|
|
3221
|
+
}
|
|
3222
|
+
}
|
|
3223
|
+
return message;
|
|
3224
|
+
}
|
|
3225
|
+
serializeBinary() {
|
|
3226
|
+
return this.serialize();
|
|
3227
|
+
}
|
|
3228
|
+
static deserializeBinary(bytes) {
|
|
3229
|
+
return RepeatedInstitutionResponse.deserialize(bytes);
|
|
3230
|
+
}
|
|
3231
|
+
}
|
|
3232
|
+
transfer.RepeatedInstitutionResponse = RepeatedInstitutionResponse;
|
|
3233
|
+
class InstitutionResponse extends pb_1.Message {
|
|
3234
|
+
#one_of_decls = [];
|
|
3235
|
+
constructor(data) {
|
|
3236
|
+
super();
|
|
3237
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5], this.#one_of_decls);
|
|
3238
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
3239
|
+
if ("status" in data && data.status != undefined) {
|
|
3240
|
+
this.status = data.status;
|
|
3241
|
+
}
|
|
3242
|
+
if ("data" in data && data.data != undefined) {
|
|
3243
|
+
this.data = data.data;
|
|
3244
|
+
}
|
|
3245
|
+
if ("error" in data && data.error != undefined) {
|
|
3246
|
+
this.error = data.error;
|
|
3247
|
+
}
|
|
3248
|
+
if ("message" in data && data.message != undefined) {
|
|
3249
|
+
this.message = data.message;
|
|
3250
|
+
}
|
|
3251
|
+
if ("errors" in data && data.errors != undefined) {
|
|
3252
|
+
this.errors = data.errors;
|
|
3253
|
+
}
|
|
3254
|
+
if ("success" in data && data.success != undefined) {
|
|
3255
|
+
this.success = data.success;
|
|
3256
|
+
}
|
|
3257
|
+
}
|
|
3258
|
+
}
|
|
3259
|
+
get status() {
|
|
3260
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
3261
|
+
}
|
|
3262
|
+
set status(value) {
|
|
3263
|
+
pb_1.Message.setField(this, 1, value);
|
|
3264
|
+
}
|
|
3265
|
+
get data() {
|
|
3266
|
+
return pb_1.Message.getWrapperField(this, InstitutionData, 2);
|
|
3267
|
+
}
|
|
3268
|
+
set data(value) {
|
|
3269
|
+
pb_1.Message.setWrapperField(this, 2, value);
|
|
3270
|
+
}
|
|
3271
|
+
get hasData() {
|
|
3272
|
+
return pb_1.Message.getField(this, 2) != null;
|
|
3273
|
+
}
|
|
3274
|
+
get error() {
|
|
3275
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
3276
|
+
}
|
|
3277
|
+
set error(value) {
|
|
3278
|
+
pb_1.Message.setField(this, 3, value);
|
|
3279
|
+
}
|
|
3280
|
+
get message() {
|
|
3281
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
3282
|
+
}
|
|
3283
|
+
set message(value) {
|
|
3284
|
+
pb_1.Message.setField(this, 4, value);
|
|
3285
|
+
}
|
|
3286
|
+
get errors() {
|
|
3287
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 5);
|
|
3288
|
+
}
|
|
3289
|
+
set errors(value) {
|
|
3290
|
+
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
3291
|
+
}
|
|
3292
|
+
get success() {
|
|
3293
|
+
return pb_1.Message.getFieldWithDefault(this, 6, false);
|
|
3294
|
+
}
|
|
3295
|
+
set success(value) {
|
|
3296
|
+
pb_1.Message.setField(this, 6, value);
|
|
3297
|
+
}
|
|
3298
|
+
static fromObject(data) {
|
|
3299
|
+
const message = new InstitutionResponse({});
|
|
3300
|
+
if (data.status != null) {
|
|
3301
|
+
message.status = data.status;
|
|
3302
|
+
}
|
|
3303
|
+
if (data.data != null) {
|
|
3304
|
+
message.data = InstitutionData.fromObject(data.data);
|
|
3305
|
+
}
|
|
3306
|
+
if (data.error != null) {
|
|
3307
|
+
message.error = data.error;
|
|
3308
|
+
}
|
|
3309
|
+
if (data.message != null) {
|
|
3310
|
+
message.message = data.message;
|
|
3311
|
+
}
|
|
3312
|
+
if (data.errors != null) {
|
|
3313
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
3314
|
+
}
|
|
3315
|
+
if (data.success != null) {
|
|
3316
|
+
message.success = data.success;
|
|
3317
|
+
}
|
|
3318
|
+
return message;
|
|
3319
|
+
}
|
|
3320
|
+
toObject() {
|
|
3321
|
+
const data = {};
|
|
3322
|
+
if (this.status != null) {
|
|
3323
|
+
data.status = this.status;
|
|
3324
|
+
}
|
|
3325
|
+
if (this.data != null) {
|
|
3326
|
+
data.data = this.data.toObject();
|
|
3327
|
+
}
|
|
3328
|
+
if (this.error != null) {
|
|
3329
|
+
data.error = this.error;
|
|
3330
|
+
}
|
|
3331
|
+
if (this.message != null) {
|
|
3332
|
+
data.message = this.message;
|
|
3333
|
+
}
|
|
3334
|
+
if (this.errors != null) {
|
|
3335
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
3336
|
+
}
|
|
3337
|
+
if (this.success != null) {
|
|
3338
|
+
data.success = this.success;
|
|
3339
|
+
}
|
|
3340
|
+
return data;
|
|
3341
|
+
}
|
|
3342
|
+
serialize(w) {
|
|
3343
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
3344
|
+
if (this.status.length)
|
|
3345
|
+
writer.writeString(1, this.status);
|
|
3346
|
+
if (this.hasData)
|
|
3347
|
+
writer.writeMessage(2, this.data, () => this.data.serialize(writer));
|
|
3348
|
+
if (this.error.length)
|
|
3349
|
+
writer.writeString(3, this.error);
|
|
3350
|
+
if (this.message.length)
|
|
3351
|
+
writer.writeString(4, this.message);
|
|
3352
|
+
if (this.errors.length)
|
|
3353
|
+
writer.writeRepeatedMessage(5, this.errors, (item) => item.serialize(writer));
|
|
3354
|
+
if (this.success != false)
|
|
3355
|
+
writer.writeBool(6, this.success);
|
|
3356
|
+
if (!w)
|
|
3357
|
+
return writer.getResultBuffer();
|
|
3358
|
+
}
|
|
3359
|
+
static deserialize(bytes) {
|
|
3360
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new InstitutionResponse();
|
|
3361
|
+
while (reader.nextField()) {
|
|
3362
|
+
if (reader.isEndGroup())
|
|
3363
|
+
break;
|
|
3364
|
+
switch (reader.getFieldNumber()) {
|
|
3365
|
+
case 1:
|
|
3366
|
+
message.status = reader.readString();
|
|
3367
|
+
break;
|
|
3368
|
+
case 2:
|
|
3369
|
+
reader.readMessage(message.data, () => message.data = InstitutionData.deserialize(reader));
|
|
3370
|
+
break;
|
|
3371
|
+
case 3:
|
|
3372
|
+
message.error = reader.readString();
|
|
3373
|
+
break;
|
|
3374
|
+
case 4:
|
|
3375
|
+
message.message = reader.readString();
|
|
3376
|
+
break;
|
|
3377
|
+
case 5:
|
|
3378
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 5, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
3379
|
+
break;
|
|
3380
|
+
case 6:
|
|
3381
|
+
message.success = reader.readBool();
|
|
3382
|
+
break;
|
|
3383
|
+
default: reader.skipField();
|
|
3384
|
+
}
|
|
3385
|
+
}
|
|
3386
|
+
return message;
|
|
3387
|
+
}
|
|
3388
|
+
serializeBinary() {
|
|
3389
|
+
return this.serialize();
|
|
3390
|
+
}
|
|
3391
|
+
static deserializeBinary(bytes) {
|
|
3392
|
+
return InstitutionResponse.deserialize(bytes);
|
|
3393
|
+
}
|
|
3394
|
+
}
|
|
3395
|
+
transfer.InstitutionResponse = InstitutionResponse;
|
|
3396
|
+
class UnimplementedTransferService {
|
|
3397
|
+
static definition = {
|
|
3398
|
+
ProcessInboundTransfer: {
|
|
3399
|
+
path: "/com.pkg.transfer.Transfer/ProcessInboundTransfer",
|
|
3400
|
+
requestStream: false,
|
|
3401
|
+
responseStream: false,
|
|
3402
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3403
|
+
requestDeserialize: (bytes) => FundTransferRequest.deserialize(new Uint8Array(bytes)),
|
|
3404
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3405
|
+
responseDeserialize: (bytes) => FundTransferResponse.deserialize(new Uint8Array(bytes))
|
|
3406
|
+
},
|
|
3407
|
+
ProcessOutboundTransfer: {
|
|
3408
|
+
path: "/com.pkg.transfer.Transfer/ProcessOutboundTransfer",
|
|
3409
|
+
requestStream: false,
|
|
3410
|
+
responseStream: false,
|
|
3411
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3412
|
+
requestDeserialize: (bytes) => FundTransferRequest.deserialize(new Uint8Array(bytes)),
|
|
3413
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3414
|
+
responseDeserialize: (bytes) => FundTransferResponse.deserialize(new Uint8Array(bytes))
|
|
3415
|
+
},
|
|
3416
|
+
SaveNameEnquiry: {
|
|
3417
|
+
path: "/com.pkg.transfer.Transfer/SaveNameEnquiry",
|
|
3418
|
+
requestStream: false,
|
|
3419
|
+
responseStream: false,
|
|
3420
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3421
|
+
requestDeserialize: (bytes) => NameEnquiryRequest.deserialize(new Uint8Array(bytes)),
|
|
3422
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3423
|
+
responseDeserialize: (bytes) => NameEnquiryResponse.deserialize(new Uint8Array(bytes))
|
|
3424
|
+
},
|
|
3425
|
+
TransactionStatusQuery: {
|
|
3426
|
+
path: "/com.pkg.transfer.Transfer/TransactionStatusQuery",
|
|
3427
|
+
requestStream: false,
|
|
3428
|
+
responseStream: false,
|
|
3429
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3430
|
+
requestDeserialize: (bytes) => TransactionStatusQueryRequest.deserialize(new Uint8Array(bytes)),
|
|
3431
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3432
|
+
responseDeserialize: (bytes) => TransactionStatusQueryResponse.deserialize(new Uint8Array(bytes))
|
|
3433
|
+
},
|
|
3434
|
+
GetInstitutions: {
|
|
3435
|
+
path: "/com.pkg.transfer.Transfer/GetInstitutions",
|
|
3436
|
+
requestStream: false,
|
|
3437
|
+
responseStream: false,
|
|
3438
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3439
|
+
requestDeserialize: (bytes) => FilterRequest.deserialize(new Uint8Array(bytes)),
|
|
3440
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3441
|
+
responseDeserialize: (bytes) => RepeatedInstitutionResponse.deserialize(new Uint8Array(bytes))
|
|
3442
|
+
},
|
|
3443
|
+
AddInstitutions: {
|
|
3444
|
+
path: "/com.pkg.transfer.Transfer/AddInstitutions",
|
|
3445
|
+
requestStream: false,
|
|
3446
|
+
responseStream: false,
|
|
3447
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3448
|
+
requestDeserialize: (bytes) => InstitutionRequest.deserialize(new Uint8Array(bytes)),
|
|
3449
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3450
|
+
responseDeserialize: (bytes) => InstitutionResponse.deserialize(new Uint8Array(bytes))
|
|
3451
|
+
},
|
|
3452
|
+
UpdateInstitution: {
|
|
3453
|
+
path: "/com.pkg.transfer.Transfer/UpdateInstitution",
|
|
3454
|
+
requestStream: false,
|
|
3455
|
+
responseStream: false,
|
|
3456
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3457
|
+
requestDeserialize: (bytes) => InstitutionRequest.deserialize(new Uint8Array(bytes)),
|
|
3458
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3459
|
+
responseDeserialize: (bytes) => InstitutionResponse.deserialize(new Uint8Array(bytes))
|
|
3460
|
+
},
|
|
3461
|
+
RemoveInstitutions: {
|
|
3462
|
+
path: "/com.pkg.transfer.Transfer/RemoveInstitutions",
|
|
3463
|
+
requestStream: false,
|
|
3464
|
+
responseStream: false,
|
|
3465
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3466
|
+
requestDeserialize: (bytes) => FilterRequest.deserialize(new Uint8Array(bytes)),
|
|
3467
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3468
|
+
responseDeserialize: (bytes) => RepeatedInstitutionResponse.deserialize(new Uint8Array(bytes))
|
|
3469
|
+
}
|
|
3470
|
+
};
|
|
3471
|
+
}
|
|
3472
|
+
transfer.UnimplementedTransferService = UnimplementedTransferService;
|
|
3473
|
+
class TransferClient extends grpc_1.makeGenericClientConstructor(UnimplementedTransferService.definition, "Transfer", {}) {
|
|
3474
|
+
constructor(address, credentials, options) {
|
|
3475
|
+
super(address, credentials, options);
|
|
3476
|
+
}
|
|
3477
|
+
ProcessInboundTransfer = (message, metadata, options) => {
|
|
3478
|
+
if (!metadata) {
|
|
3479
|
+
metadata = new grpc_1.Metadata;
|
|
3480
|
+
}
|
|
3481
|
+
if (!options) {
|
|
3482
|
+
options = {};
|
|
3483
|
+
}
|
|
3484
|
+
return new Promise((resolve, reject) => super.ProcessInboundTransfer(message, metadata, options, (error, response) => {
|
|
3485
|
+
if (error) {
|
|
3486
|
+
reject(error);
|
|
3487
|
+
}
|
|
3488
|
+
else {
|
|
3489
|
+
resolve(response);
|
|
3490
|
+
}
|
|
3491
|
+
}));
|
|
3492
|
+
};
|
|
3493
|
+
ProcessOutboundTransfer = (message, metadata, options) => {
|
|
3494
|
+
if (!metadata) {
|
|
3495
|
+
metadata = new grpc_1.Metadata;
|
|
3496
|
+
}
|
|
3497
|
+
if (!options) {
|
|
3498
|
+
options = {};
|
|
3499
|
+
}
|
|
3500
|
+
return new Promise((resolve, reject) => super.ProcessOutboundTransfer(message, metadata, options, (error, response) => {
|
|
3501
|
+
if (error) {
|
|
3502
|
+
reject(error);
|
|
3503
|
+
}
|
|
3504
|
+
else {
|
|
3505
|
+
resolve(response);
|
|
3506
|
+
}
|
|
3507
|
+
}));
|
|
3508
|
+
};
|
|
3509
|
+
SaveNameEnquiry = (message, metadata, options) => {
|
|
3510
|
+
if (!metadata) {
|
|
3511
|
+
metadata = new grpc_1.Metadata;
|
|
3512
|
+
}
|
|
3513
|
+
if (!options) {
|
|
3514
|
+
options = {};
|
|
3515
|
+
}
|
|
3516
|
+
return new Promise((resolve, reject) => super.SaveNameEnquiry(message, metadata, options, (error, response) => {
|
|
3517
|
+
if (error) {
|
|
3518
|
+
reject(error);
|
|
3519
|
+
}
|
|
3520
|
+
else {
|
|
3521
|
+
resolve(response);
|
|
3522
|
+
}
|
|
3523
|
+
}));
|
|
3524
|
+
};
|
|
3525
|
+
TransactionStatusQuery = (message, metadata, options) => {
|
|
3526
|
+
if (!metadata) {
|
|
3527
|
+
metadata = new grpc_1.Metadata;
|
|
3528
|
+
}
|
|
3529
|
+
if (!options) {
|
|
3530
|
+
options = {};
|
|
3531
|
+
}
|
|
3532
|
+
return new Promise((resolve, reject) => super.TransactionStatusQuery(message, metadata, options, (error, response) => {
|
|
3533
|
+
if (error) {
|
|
3534
|
+
reject(error);
|
|
3535
|
+
}
|
|
3536
|
+
else {
|
|
3537
|
+
resolve(response);
|
|
3538
|
+
}
|
|
3539
|
+
}));
|
|
3540
|
+
};
|
|
3541
|
+
GetInstitutions = (message, metadata, options) => {
|
|
3542
|
+
if (!metadata) {
|
|
3543
|
+
metadata = new grpc_1.Metadata;
|
|
3544
|
+
}
|
|
3545
|
+
if (!options) {
|
|
3546
|
+
options = {};
|
|
3547
|
+
}
|
|
3548
|
+
return new Promise((resolve, reject) => super.GetInstitutions(message, metadata, options, (error, response) => {
|
|
3549
|
+
if (error) {
|
|
3550
|
+
reject(error);
|
|
3551
|
+
}
|
|
3552
|
+
else {
|
|
3553
|
+
resolve(response);
|
|
3554
|
+
}
|
|
3555
|
+
}));
|
|
3556
|
+
};
|
|
3557
|
+
AddInstitutions = (message, metadata, options) => {
|
|
3558
|
+
if (!metadata) {
|
|
3559
|
+
metadata = new grpc_1.Metadata;
|
|
3560
|
+
}
|
|
3561
|
+
if (!options) {
|
|
3562
|
+
options = {};
|
|
3563
|
+
}
|
|
3564
|
+
return new Promise((resolve, reject) => super.AddInstitutions(message, metadata, options, (error, response) => {
|
|
3565
|
+
if (error) {
|
|
3566
|
+
reject(error);
|
|
3567
|
+
}
|
|
3568
|
+
else {
|
|
3569
|
+
resolve(response);
|
|
3570
|
+
}
|
|
3571
|
+
}));
|
|
3572
|
+
};
|
|
3573
|
+
UpdateInstitution = (message, metadata, options) => {
|
|
3574
|
+
if (!metadata) {
|
|
3575
|
+
metadata = new grpc_1.Metadata;
|
|
3576
|
+
}
|
|
3577
|
+
if (!options) {
|
|
3578
|
+
options = {};
|
|
3579
|
+
}
|
|
3580
|
+
return new Promise((resolve, reject) => super.UpdateInstitution(message, metadata, options, (error, response) => {
|
|
3581
|
+
if (error) {
|
|
3582
|
+
reject(error);
|
|
3583
|
+
}
|
|
3584
|
+
else {
|
|
3585
|
+
resolve(response);
|
|
3586
|
+
}
|
|
3587
|
+
}));
|
|
3588
|
+
};
|
|
3589
|
+
RemoveInstitutions = (message, metadata, options) => {
|
|
3590
|
+
if (!metadata) {
|
|
3591
|
+
metadata = new grpc_1.Metadata;
|
|
3592
|
+
}
|
|
3593
|
+
if (!options) {
|
|
3594
|
+
options = {};
|
|
3595
|
+
}
|
|
3596
|
+
return new Promise((resolve, reject) => super.RemoveInstitutions(message, metadata, options, (error, response) => {
|
|
3597
|
+
if (error) {
|
|
3598
|
+
reject(error);
|
|
3599
|
+
}
|
|
3600
|
+
else {
|
|
3601
|
+
resolve(response);
|
|
3602
|
+
}
|
|
3603
|
+
}));
|
|
3604
|
+
};
|
|
3605
|
+
}
|
|
3606
|
+
transfer.TransferClient = TransferClient;
|
|
3607
|
+
})(transfer = pkg.transfer || (pkg.transfer = {}));
|
|
3608
|
+
})(pkg = com.pkg || (com.pkg = {}));
|
|
3609
|
+
})(com || (exports.com = com = {}));
|