@technova-tech/olive-proto-lib 3.2.6 → 3.2.8
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 +1181 -0
- package/admin/admin.js +20 -0
- package/package.json +1 -1
- package/types/accounts/accounts.d.ts +387 -0
- package/types/admin/admin.d.ts +5 -0
- package/types/pos.v1/merchants.d.ts +1 -1
- package/types/users/users.d.ts +132 -0
- package/types/verifications/verifications.d.ts +45 -0
- package/users/users.js +420 -0
- package/verifications/verifications.js +145 -0
package/accounts/accounts.js
CHANGED
|
@@ -32,6 +32,1112 @@ var com;
|
|
|
32
32
|
(function (pkg) {
|
|
33
33
|
var account;
|
|
34
34
|
(function (account) {
|
|
35
|
+
class CbaPhoneRequest 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 ("phone" in data && data.phone != undefined) {
|
|
42
|
+
this.phone = data.phone;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
get phone() {
|
|
47
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
48
|
+
}
|
|
49
|
+
set phone(value) {
|
|
50
|
+
pb_1.Message.setField(this, 1, value);
|
|
51
|
+
}
|
|
52
|
+
static fromObject(data) {
|
|
53
|
+
const message = new CbaPhoneRequest({});
|
|
54
|
+
if (data.phone != null) {
|
|
55
|
+
message.phone = data.phone;
|
|
56
|
+
}
|
|
57
|
+
return message;
|
|
58
|
+
}
|
|
59
|
+
toObject() {
|
|
60
|
+
const data = {};
|
|
61
|
+
if (this.phone != null) {
|
|
62
|
+
data.phone = this.phone;
|
|
63
|
+
}
|
|
64
|
+
return data;
|
|
65
|
+
}
|
|
66
|
+
serialize(w) {
|
|
67
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
68
|
+
if (this.phone.length)
|
|
69
|
+
writer.writeString(1, this.phone);
|
|
70
|
+
if (!w)
|
|
71
|
+
return writer.getResultBuffer();
|
|
72
|
+
}
|
|
73
|
+
static deserialize(bytes) {
|
|
74
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CbaPhoneRequest();
|
|
75
|
+
while (reader.nextField()) {
|
|
76
|
+
if (reader.isEndGroup())
|
|
77
|
+
break;
|
|
78
|
+
switch (reader.getFieldNumber()) {
|
|
79
|
+
case 1:
|
|
80
|
+
message.phone = reader.readString();
|
|
81
|
+
break;
|
|
82
|
+
default: reader.skipField();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return message;
|
|
86
|
+
}
|
|
87
|
+
serializeBinary() {
|
|
88
|
+
return this.serialize();
|
|
89
|
+
}
|
|
90
|
+
static deserializeBinary(bytes) {
|
|
91
|
+
return CbaPhoneRequest.deserialize(bytes);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
account.CbaPhoneRequest = CbaPhoneRequest;
|
|
95
|
+
class CbaLinkableAccount extends pb_1.Message {
|
|
96
|
+
#one_of_decls = [];
|
|
97
|
+
constructor(data) {
|
|
98
|
+
super();
|
|
99
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
100
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
101
|
+
if ("id" in data && data.id != undefined) {
|
|
102
|
+
this.id = data.id;
|
|
103
|
+
}
|
|
104
|
+
if ("maskedAccountNumber" in data && data.maskedAccountNumber != undefined) {
|
|
105
|
+
this.maskedAccountNumber = data.maskedAccountNumber;
|
|
106
|
+
}
|
|
107
|
+
if ("accountName" in data && data.accountName != undefined) {
|
|
108
|
+
this.accountName = data.accountName;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
get id() {
|
|
113
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
114
|
+
}
|
|
115
|
+
set id(value) {
|
|
116
|
+
pb_1.Message.setField(this, 1, value);
|
|
117
|
+
}
|
|
118
|
+
get maskedAccountNumber() {
|
|
119
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
120
|
+
}
|
|
121
|
+
set maskedAccountNumber(value) {
|
|
122
|
+
pb_1.Message.setField(this, 2, value);
|
|
123
|
+
}
|
|
124
|
+
get accountName() {
|
|
125
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
126
|
+
}
|
|
127
|
+
set accountName(value) {
|
|
128
|
+
pb_1.Message.setField(this, 3, value);
|
|
129
|
+
}
|
|
130
|
+
static fromObject(data) {
|
|
131
|
+
const message = new CbaLinkableAccount({});
|
|
132
|
+
if (data.id != null) {
|
|
133
|
+
message.id = data.id;
|
|
134
|
+
}
|
|
135
|
+
if (data.maskedAccountNumber != null) {
|
|
136
|
+
message.maskedAccountNumber = data.maskedAccountNumber;
|
|
137
|
+
}
|
|
138
|
+
if (data.accountName != null) {
|
|
139
|
+
message.accountName = data.accountName;
|
|
140
|
+
}
|
|
141
|
+
return message;
|
|
142
|
+
}
|
|
143
|
+
toObject() {
|
|
144
|
+
const data = {};
|
|
145
|
+
if (this.id != null) {
|
|
146
|
+
data.id = this.id;
|
|
147
|
+
}
|
|
148
|
+
if (this.maskedAccountNumber != null) {
|
|
149
|
+
data.maskedAccountNumber = this.maskedAccountNumber;
|
|
150
|
+
}
|
|
151
|
+
if (this.accountName != null) {
|
|
152
|
+
data.accountName = this.accountName;
|
|
153
|
+
}
|
|
154
|
+
return data;
|
|
155
|
+
}
|
|
156
|
+
serialize(w) {
|
|
157
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
158
|
+
if (this.id.length)
|
|
159
|
+
writer.writeString(1, this.id);
|
|
160
|
+
if (this.maskedAccountNumber.length)
|
|
161
|
+
writer.writeString(2, this.maskedAccountNumber);
|
|
162
|
+
if (this.accountName.length)
|
|
163
|
+
writer.writeString(3, this.accountName);
|
|
164
|
+
if (!w)
|
|
165
|
+
return writer.getResultBuffer();
|
|
166
|
+
}
|
|
167
|
+
static deserialize(bytes) {
|
|
168
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CbaLinkableAccount();
|
|
169
|
+
while (reader.nextField()) {
|
|
170
|
+
if (reader.isEndGroup())
|
|
171
|
+
break;
|
|
172
|
+
switch (reader.getFieldNumber()) {
|
|
173
|
+
case 1:
|
|
174
|
+
message.id = reader.readString();
|
|
175
|
+
break;
|
|
176
|
+
case 2:
|
|
177
|
+
message.maskedAccountNumber = reader.readString();
|
|
178
|
+
break;
|
|
179
|
+
case 3:
|
|
180
|
+
message.accountName = reader.readString();
|
|
181
|
+
break;
|
|
182
|
+
default: reader.skipField();
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
return message;
|
|
186
|
+
}
|
|
187
|
+
serializeBinary() {
|
|
188
|
+
return this.serialize();
|
|
189
|
+
}
|
|
190
|
+
static deserializeBinary(bytes) {
|
|
191
|
+
return CbaLinkableAccount.deserialize(bytes);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
account.CbaLinkableAccount = CbaLinkableAccount;
|
|
195
|
+
class CbaLinkableAccountsResponse extends pb_1.Message {
|
|
196
|
+
#one_of_decls = [];
|
|
197
|
+
constructor(data) {
|
|
198
|
+
super();
|
|
199
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 5], this.#one_of_decls);
|
|
200
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
201
|
+
if ("status" in data && data.status != undefined) {
|
|
202
|
+
this.status = data.status;
|
|
203
|
+
}
|
|
204
|
+
if ("data" in data && data.data != undefined) {
|
|
205
|
+
this.data = data.data;
|
|
206
|
+
}
|
|
207
|
+
if ("error" in data && data.error != undefined) {
|
|
208
|
+
this.error = data.error;
|
|
209
|
+
}
|
|
210
|
+
if ("message" in data && data.message != undefined) {
|
|
211
|
+
this.message = data.message;
|
|
212
|
+
}
|
|
213
|
+
if ("errors" in data && data.errors != undefined) {
|
|
214
|
+
this.errors = data.errors;
|
|
215
|
+
}
|
|
216
|
+
if ("success" in data && data.success != undefined) {
|
|
217
|
+
this.success = data.success;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
get status() {
|
|
222
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
223
|
+
}
|
|
224
|
+
set status(value) {
|
|
225
|
+
pb_1.Message.setField(this, 1, value);
|
|
226
|
+
}
|
|
227
|
+
get data() {
|
|
228
|
+
return pb_1.Message.getRepeatedWrapperField(this, CbaLinkableAccount, 2);
|
|
229
|
+
}
|
|
230
|
+
set data(value) {
|
|
231
|
+
pb_1.Message.setRepeatedWrapperField(this, 2, value);
|
|
232
|
+
}
|
|
233
|
+
get error() {
|
|
234
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
235
|
+
}
|
|
236
|
+
set error(value) {
|
|
237
|
+
pb_1.Message.setField(this, 3, value);
|
|
238
|
+
}
|
|
239
|
+
get message() {
|
|
240
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
241
|
+
}
|
|
242
|
+
set message(value) {
|
|
243
|
+
pb_1.Message.setField(this, 4, value);
|
|
244
|
+
}
|
|
245
|
+
get errors() {
|
|
246
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 5);
|
|
247
|
+
}
|
|
248
|
+
set errors(value) {
|
|
249
|
+
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
250
|
+
}
|
|
251
|
+
get success() {
|
|
252
|
+
return pb_1.Message.getFieldWithDefault(this, 6, false);
|
|
253
|
+
}
|
|
254
|
+
set success(value) {
|
|
255
|
+
pb_1.Message.setField(this, 6, value);
|
|
256
|
+
}
|
|
257
|
+
static fromObject(data) {
|
|
258
|
+
const message = new CbaLinkableAccountsResponse({});
|
|
259
|
+
if (data.status != null) {
|
|
260
|
+
message.status = data.status;
|
|
261
|
+
}
|
|
262
|
+
if (data.data != null) {
|
|
263
|
+
message.data = data.data.map(item => CbaLinkableAccount.fromObject(item));
|
|
264
|
+
}
|
|
265
|
+
if (data.error != null) {
|
|
266
|
+
message.error = data.error;
|
|
267
|
+
}
|
|
268
|
+
if (data.message != null) {
|
|
269
|
+
message.message = data.message;
|
|
270
|
+
}
|
|
271
|
+
if (data.errors != null) {
|
|
272
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
273
|
+
}
|
|
274
|
+
if (data.success != null) {
|
|
275
|
+
message.success = data.success;
|
|
276
|
+
}
|
|
277
|
+
return message;
|
|
278
|
+
}
|
|
279
|
+
toObject() {
|
|
280
|
+
const data = {};
|
|
281
|
+
if (this.status != null) {
|
|
282
|
+
data.status = this.status;
|
|
283
|
+
}
|
|
284
|
+
if (this.data != null) {
|
|
285
|
+
data.data = this.data.map((item) => item.toObject());
|
|
286
|
+
}
|
|
287
|
+
if (this.error != null) {
|
|
288
|
+
data.error = this.error;
|
|
289
|
+
}
|
|
290
|
+
if (this.message != null) {
|
|
291
|
+
data.message = this.message;
|
|
292
|
+
}
|
|
293
|
+
if (this.errors != null) {
|
|
294
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
295
|
+
}
|
|
296
|
+
if (this.success != null) {
|
|
297
|
+
data.success = this.success;
|
|
298
|
+
}
|
|
299
|
+
return data;
|
|
300
|
+
}
|
|
301
|
+
serialize(w) {
|
|
302
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
303
|
+
if (this.status.length)
|
|
304
|
+
writer.writeString(1, this.status);
|
|
305
|
+
if (this.data.length)
|
|
306
|
+
writer.writeRepeatedMessage(2, this.data, (item) => item.serialize(writer));
|
|
307
|
+
if (this.error.length)
|
|
308
|
+
writer.writeString(3, this.error);
|
|
309
|
+
if (this.message.length)
|
|
310
|
+
writer.writeString(4, this.message);
|
|
311
|
+
if (this.errors.length)
|
|
312
|
+
writer.writeRepeatedMessage(5, this.errors, (item) => item.serialize(writer));
|
|
313
|
+
if (this.success != false)
|
|
314
|
+
writer.writeBool(6, this.success);
|
|
315
|
+
if (!w)
|
|
316
|
+
return writer.getResultBuffer();
|
|
317
|
+
}
|
|
318
|
+
static deserialize(bytes) {
|
|
319
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CbaLinkableAccountsResponse();
|
|
320
|
+
while (reader.nextField()) {
|
|
321
|
+
if (reader.isEndGroup())
|
|
322
|
+
break;
|
|
323
|
+
switch (reader.getFieldNumber()) {
|
|
324
|
+
case 1:
|
|
325
|
+
message.status = reader.readString();
|
|
326
|
+
break;
|
|
327
|
+
case 2:
|
|
328
|
+
reader.readMessage(message.data, () => pb_1.Message.addToRepeatedWrapperField(message, 2, CbaLinkableAccount.deserialize(reader), CbaLinkableAccount));
|
|
329
|
+
break;
|
|
330
|
+
case 3:
|
|
331
|
+
message.error = reader.readString();
|
|
332
|
+
break;
|
|
333
|
+
case 4:
|
|
334
|
+
message.message = reader.readString();
|
|
335
|
+
break;
|
|
336
|
+
case 5:
|
|
337
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 5, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
338
|
+
break;
|
|
339
|
+
case 6:
|
|
340
|
+
message.success = reader.readBool();
|
|
341
|
+
break;
|
|
342
|
+
default: reader.skipField();
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
return message;
|
|
346
|
+
}
|
|
347
|
+
serializeBinary() {
|
|
348
|
+
return this.serialize();
|
|
349
|
+
}
|
|
350
|
+
static deserializeBinary(bytes) {
|
|
351
|
+
return CbaLinkableAccountsResponse.deserialize(bytes);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
account.CbaLinkableAccountsResponse = CbaLinkableAccountsResponse;
|
|
355
|
+
class ResolveCbaAccountsRequest extends pb_1.Message {
|
|
356
|
+
#one_of_decls = [];
|
|
357
|
+
constructor(data) {
|
|
358
|
+
super();
|
|
359
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
|
|
360
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
361
|
+
if ("phone" in data && data.phone != undefined) {
|
|
362
|
+
this.phone = data.phone;
|
|
363
|
+
}
|
|
364
|
+
if ("accountIds" in data && data.accountIds != undefined) {
|
|
365
|
+
this.accountIds = data.accountIds;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
get phone() {
|
|
370
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
371
|
+
}
|
|
372
|
+
set phone(value) {
|
|
373
|
+
pb_1.Message.setField(this, 1, value);
|
|
374
|
+
}
|
|
375
|
+
get accountIds() {
|
|
376
|
+
return pb_1.Message.getFieldWithDefault(this, 2, []);
|
|
377
|
+
}
|
|
378
|
+
set accountIds(value) {
|
|
379
|
+
pb_1.Message.setField(this, 2, value);
|
|
380
|
+
}
|
|
381
|
+
static fromObject(data) {
|
|
382
|
+
const message = new ResolveCbaAccountsRequest({});
|
|
383
|
+
if (data.phone != null) {
|
|
384
|
+
message.phone = data.phone;
|
|
385
|
+
}
|
|
386
|
+
if (data.accountIds != null) {
|
|
387
|
+
message.accountIds = data.accountIds;
|
|
388
|
+
}
|
|
389
|
+
return message;
|
|
390
|
+
}
|
|
391
|
+
toObject() {
|
|
392
|
+
const data = {};
|
|
393
|
+
if (this.phone != null) {
|
|
394
|
+
data.phone = this.phone;
|
|
395
|
+
}
|
|
396
|
+
if (this.accountIds != null) {
|
|
397
|
+
data.accountIds = this.accountIds;
|
|
398
|
+
}
|
|
399
|
+
return data;
|
|
400
|
+
}
|
|
401
|
+
serialize(w) {
|
|
402
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
403
|
+
if (this.phone.length)
|
|
404
|
+
writer.writeString(1, this.phone);
|
|
405
|
+
if (this.accountIds.length)
|
|
406
|
+
writer.writeRepeatedString(2, this.accountIds);
|
|
407
|
+
if (!w)
|
|
408
|
+
return writer.getResultBuffer();
|
|
409
|
+
}
|
|
410
|
+
static deserialize(bytes) {
|
|
411
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ResolveCbaAccountsRequest();
|
|
412
|
+
while (reader.nextField()) {
|
|
413
|
+
if (reader.isEndGroup())
|
|
414
|
+
break;
|
|
415
|
+
switch (reader.getFieldNumber()) {
|
|
416
|
+
case 1:
|
|
417
|
+
message.phone = reader.readString();
|
|
418
|
+
break;
|
|
419
|
+
case 2:
|
|
420
|
+
pb_1.Message.addToRepeatedField(message, 2, reader.readString());
|
|
421
|
+
break;
|
|
422
|
+
default: reader.skipField();
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
return message;
|
|
426
|
+
}
|
|
427
|
+
serializeBinary() {
|
|
428
|
+
return this.serialize();
|
|
429
|
+
}
|
|
430
|
+
static deserializeBinary(bytes) {
|
|
431
|
+
return ResolveCbaAccountsRequest.deserialize(bytes);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
account.ResolveCbaAccountsRequest = ResolveCbaAccountsRequest;
|
|
435
|
+
class CbaCustomerProfile extends pb_1.Message {
|
|
436
|
+
#one_of_decls = [];
|
|
437
|
+
constructor(data) {
|
|
438
|
+
super();
|
|
439
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
440
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
441
|
+
if ("providerCustomerId" in data && data.providerCustomerId != undefined) {
|
|
442
|
+
this.providerCustomerId = data.providerCustomerId;
|
|
443
|
+
}
|
|
444
|
+
if ("firstName" in data && data.firstName != undefined) {
|
|
445
|
+
this.firstName = data.firstName;
|
|
446
|
+
}
|
|
447
|
+
if ("middleName" in data && data.middleName != undefined) {
|
|
448
|
+
this.middleName = data.middleName;
|
|
449
|
+
}
|
|
450
|
+
if ("lastName" in data && data.lastName != undefined) {
|
|
451
|
+
this.lastName = data.lastName;
|
|
452
|
+
}
|
|
453
|
+
if ("email" in data && data.email != undefined) {
|
|
454
|
+
this.email = data.email;
|
|
455
|
+
}
|
|
456
|
+
if ("gender" in data && data.gender != undefined) {
|
|
457
|
+
this.gender = data.gender;
|
|
458
|
+
}
|
|
459
|
+
if ("dateOfBirth" in data && data.dateOfBirth != undefined) {
|
|
460
|
+
this.dateOfBirth = data.dateOfBirth;
|
|
461
|
+
}
|
|
462
|
+
if ("bvn" in data && data.bvn != undefined) {
|
|
463
|
+
this.bvn = data.bvn;
|
|
464
|
+
}
|
|
465
|
+
if ("businessName" in data && data.businessName != undefined) {
|
|
466
|
+
this.businessName = data.businessName;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
get providerCustomerId() {
|
|
471
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
472
|
+
}
|
|
473
|
+
set providerCustomerId(value) {
|
|
474
|
+
pb_1.Message.setField(this, 1, value);
|
|
475
|
+
}
|
|
476
|
+
get firstName() {
|
|
477
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
478
|
+
}
|
|
479
|
+
set firstName(value) {
|
|
480
|
+
pb_1.Message.setField(this, 2, value);
|
|
481
|
+
}
|
|
482
|
+
get middleName() {
|
|
483
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
484
|
+
}
|
|
485
|
+
set middleName(value) {
|
|
486
|
+
pb_1.Message.setField(this, 3, value);
|
|
487
|
+
}
|
|
488
|
+
get lastName() {
|
|
489
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
490
|
+
}
|
|
491
|
+
set lastName(value) {
|
|
492
|
+
pb_1.Message.setField(this, 4, value);
|
|
493
|
+
}
|
|
494
|
+
get email() {
|
|
495
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
496
|
+
}
|
|
497
|
+
set email(value) {
|
|
498
|
+
pb_1.Message.setField(this, 5, value);
|
|
499
|
+
}
|
|
500
|
+
get gender() {
|
|
501
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
502
|
+
}
|
|
503
|
+
set gender(value) {
|
|
504
|
+
pb_1.Message.setField(this, 6, value);
|
|
505
|
+
}
|
|
506
|
+
get dateOfBirth() {
|
|
507
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
508
|
+
}
|
|
509
|
+
set dateOfBirth(value) {
|
|
510
|
+
pb_1.Message.setField(this, 7, value);
|
|
511
|
+
}
|
|
512
|
+
get bvn() {
|
|
513
|
+
return pb_1.Message.getFieldWithDefault(this, 8, "");
|
|
514
|
+
}
|
|
515
|
+
set bvn(value) {
|
|
516
|
+
pb_1.Message.setField(this, 8, value);
|
|
517
|
+
}
|
|
518
|
+
get businessName() {
|
|
519
|
+
return pb_1.Message.getFieldWithDefault(this, 9, "");
|
|
520
|
+
}
|
|
521
|
+
set businessName(value) {
|
|
522
|
+
pb_1.Message.setField(this, 9, value);
|
|
523
|
+
}
|
|
524
|
+
static fromObject(data) {
|
|
525
|
+
const message = new CbaCustomerProfile({});
|
|
526
|
+
if (data.providerCustomerId != null) {
|
|
527
|
+
message.providerCustomerId = data.providerCustomerId;
|
|
528
|
+
}
|
|
529
|
+
if (data.firstName != null) {
|
|
530
|
+
message.firstName = data.firstName;
|
|
531
|
+
}
|
|
532
|
+
if (data.middleName != null) {
|
|
533
|
+
message.middleName = data.middleName;
|
|
534
|
+
}
|
|
535
|
+
if (data.lastName != null) {
|
|
536
|
+
message.lastName = data.lastName;
|
|
537
|
+
}
|
|
538
|
+
if (data.email != null) {
|
|
539
|
+
message.email = data.email;
|
|
540
|
+
}
|
|
541
|
+
if (data.gender != null) {
|
|
542
|
+
message.gender = data.gender;
|
|
543
|
+
}
|
|
544
|
+
if (data.dateOfBirth != null) {
|
|
545
|
+
message.dateOfBirth = data.dateOfBirth;
|
|
546
|
+
}
|
|
547
|
+
if (data.bvn != null) {
|
|
548
|
+
message.bvn = data.bvn;
|
|
549
|
+
}
|
|
550
|
+
if (data.businessName != null) {
|
|
551
|
+
message.businessName = data.businessName;
|
|
552
|
+
}
|
|
553
|
+
return message;
|
|
554
|
+
}
|
|
555
|
+
toObject() {
|
|
556
|
+
const data = {};
|
|
557
|
+
if (this.providerCustomerId != null) {
|
|
558
|
+
data.providerCustomerId = this.providerCustomerId;
|
|
559
|
+
}
|
|
560
|
+
if (this.firstName != null) {
|
|
561
|
+
data.firstName = this.firstName;
|
|
562
|
+
}
|
|
563
|
+
if (this.middleName != null) {
|
|
564
|
+
data.middleName = this.middleName;
|
|
565
|
+
}
|
|
566
|
+
if (this.lastName != null) {
|
|
567
|
+
data.lastName = this.lastName;
|
|
568
|
+
}
|
|
569
|
+
if (this.email != null) {
|
|
570
|
+
data.email = this.email;
|
|
571
|
+
}
|
|
572
|
+
if (this.gender != null) {
|
|
573
|
+
data.gender = this.gender;
|
|
574
|
+
}
|
|
575
|
+
if (this.dateOfBirth != null) {
|
|
576
|
+
data.dateOfBirth = this.dateOfBirth;
|
|
577
|
+
}
|
|
578
|
+
if (this.bvn != null) {
|
|
579
|
+
data.bvn = this.bvn;
|
|
580
|
+
}
|
|
581
|
+
if (this.businessName != null) {
|
|
582
|
+
data.businessName = this.businessName;
|
|
583
|
+
}
|
|
584
|
+
return data;
|
|
585
|
+
}
|
|
586
|
+
serialize(w) {
|
|
587
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
588
|
+
if (this.providerCustomerId.length)
|
|
589
|
+
writer.writeString(1, this.providerCustomerId);
|
|
590
|
+
if (this.firstName.length)
|
|
591
|
+
writer.writeString(2, this.firstName);
|
|
592
|
+
if (this.middleName.length)
|
|
593
|
+
writer.writeString(3, this.middleName);
|
|
594
|
+
if (this.lastName.length)
|
|
595
|
+
writer.writeString(4, this.lastName);
|
|
596
|
+
if (this.email.length)
|
|
597
|
+
writer.writeString(5, this.email);
|
|
598
|
+
if (this.gender.length)
|
|
599
|
+
writer.writeString(6, this.gender);
|
|
600
|
+
if (this.dateOfBirth.length)
|
|
601
|
+
writer.writeString(7, this.dateOfBirth);
|
|
602
|
+
if (this.bvn.length)
|
|
603
|
+
writer.writeString(8, this.bvn);
|
|
604
|
+
if (this.businessName.length)
|
|
605
|
+
writer.writeString(9, this.businessName);
|
|
606
|
+
if (!w)
|
|
607
|
+
return writer.getResultBuffer();
|
|
608
|
+
}
|
|
609
|
+
static deserialize(bytes) {
|
|
610
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CbaCustomerProfile();
|
|
611
|
+
while (reader.nextField()) {
|
|
612
|
+
if (reader.isEndGroup())
|
|
613
|
+
break;
|
|
614
|
+
switch (reader.getFieldNumber()) {
|
|
615
|
+
case 1:
|
|
616
|
+
message.providerCustomerId = reader.readString();
|
|
617
|
+
break;
|
|
618
|
+
case 2:
|
|
619
|
+
message.firstName = reader.readString();
|
|
620
|
+
break;
|
|
621
|
+
case 3:
|
|
622
|
+
message.middleName = reader.readString();
|
|
623
|
+
break;
|
|
624
|
+
case 4:
|
|
625
|
+
message.lastName = reader.readString();
|
|
626
|
+
break;
|
|
627
|
+
case 5:
|
|
628
|
+
message.email = reader.readString();
|
|
629
|
+
break;
|
|
630
|
+
case 6:
|
|
631
|
+
message.gender = reader.readString();
|
|
632
|
+
break;
|
|
633
|
+
case 7:
|
|
634
|
+
message.dateOfBirth = reader.readString();
|
|
635
|
+
break;
|
|
636
|
+
case 8:
|
|
637
|
+
message.bvn = reader.readString();
|
|
638
|
+
break;
|
|
639
|
+
case 9:
|
|
640
|
+
message.businessName = 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 CbaCustomerProfile.deserialize(bytes);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
account.CbaCustomerProfile = CbaCustomerProfile;
|
|
655
|
+
class ResolvedCbaAccount 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 ("accountNumber" in data && data.accountNumber != undefined) {
|
|
662
|
+
this.accountNumber = data.accountNumber;
|
|
663
|
+
}
|
|
664
|
+
if ("accountName" in data && data.accountName != undefined) {
|
|
665
|
+
this.accountName = data.accountName;
|
|
666
|
+
}
|
|
667
|
+
if ("providerCustomerId" in data && data.providerCustomerId != undefined) {
|
|
668
|
+
this.providerCustomerId = data.providerCustomerId;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
get accountNumber() {
|
|
673
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
674
|
+
}
|
|
675
|
+
set accountNumber(value) {
|
|
676
|
+
pb_1.Message.setField(this, 1, value);
|
|
677
|
+
}
|
|
678
|
+
get accountName() {
|
|
679
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
680
|
+
}
|
|
681
|
+
set accountName(value) {
|
|
682
|
+
pb_1.Message.setField(this, 2, value);
|
|
683
|
+
}
|
|
684
|
+
get providerCustomerId() {
|
|
685
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
686
|
+
}
|
|
687
|
+
set providerCustomerId(value) {
|
|
688
|
+
pb_1.Message.setField(this, 3, value);
|
|
689
|
+
}
|
|
690
|
+
static fromObject(data) {
|
|
691
|
+
const message = new ResolvedCbaAccount({});
|
|
692
|
+
if (data.accountNumber != null) {
|
|
693
|
+
message.accountNumber = data.accountNumber;
|
|
694
|
+
}
|
|
695
|
+
if (data.accountName != null) {
|
|
696
|
+
message.accountName = data.accountName;
|
|
697
|
+
}
|
|
698
|
+
if (data.providerCustomerId != null) {
|
|
699
|
+
message.providerCustomerId = data.providerCustomerId;
|
|
700
|
+
}
|
|
701
|
+
return message;
|
|
702
|
+
}
|
|
703
|
+
toObject() {
|
|
704
|
+
const data = {};
|
|
705
|
+
if (this.accountNumber != null) {
|
|
706
|
+
data.accountNumber = this.accountNumber;
|
|
707
|
+
}
|
|
708
|
+
if (this.accountName != null) {
|
|
709
|
+
data.accountName = this.accountName;
|
|
710
|
+
}
|
|
711
|
+
if (this.providerCustomerId != null) {
|
|
712
|
+
data.providerCustomerId = this.providerCustomerId;
|
|
713
|
+
}
|
|
714
|
+
return data;
|
|
715
|
+
}
|
|
716
|
+
serialize(w) {
|
|
717
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
718
|
+
if (this.accountNumber.length)
|
|
719
|
+
writer.writeString(1, this.accountNumber);
|
|
720
|
+
if (this.accountName.length)
|
|
721
|
+
writer.writeString(2, this.accountName);
|
|
722
|
+
if (this.providerCustomerId.length)
|
|
723
|
+
writer.writeString(3, this.providerCustomerId);
|
|
724
|
+
if (!w)
|
|
725
|
+
return writer.getResultBuffer();
|
|
726
|
+
}
|
|
727
|
+
static deserialize(bytes) {
|
|
728
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ResolvedCbaAccount();
|
|
729
|
+
while (reader.nextField()) {
|
|
730
|
+
if (reader.isEndGroup())
|
|
731
|
+
break;
|
|
732
|
+
switch (reader.getFieldNumber()) {
|
|
733
|
+
case 1:
|
|
734
|
+
message.accountNumber = reader.readString();
|
|
735
|
+
break;
|
|
736
|
+
case 2:
|
|
737
|
+
message.accountName = reader.readString();
|
|
738
|
+
break;
|
|
739
|
+
case 3:
|
|
740
|
+
message.providerCustomerId = reader.readString();
|
|
741
|
+
break;
|
|
742
|
+
default: reader.skipField();
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
return message;
|
|
746
|
+
}
|
|
747
|
+
serializeBinary() {
|
|
748
|
+
return this.serialize();
|
|
749
|
+
}
|
|
750
|
+
static deserializeBinary(bytes) {
|
|
751
|
+
return ResolvedCbaAccount.deserialize(bytes);
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
account.ResolvedCbaAccount = ResolvedCbaAccount;
|
|
755
|
+
class ResolvedCbaAccountsData extends pb_1.Message {
|
|
756
|
+
#one_of_decls = [];
|
|
757
|
+
constructor(data) {
|
|
758
|
+
super();
|
|
759
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
|
|
760
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
761
|
+
if ("customer" in data && data.customer != undefined) {
|
|
762
|
+
this.customer = data.customer;
|
|
763
|
+
}
|
|
764
|
+
if ("accounts" in data && data.accounts != undefined) {
|
|
765
|
+
this.accounts = data.accounts;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
get customer() {
|
|
770
|
+
return pb_1.Message.getWrapperField(this, CbaCustomerProfile, 1);
|
|
771
|
+
}
|
|
772
|
+
set customer(value) {
|
|
773
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
774
|
+
}
|
|
775
|
+
get hasCustomer() {
|
|
776
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
777
|
+
}
|
|
778
|
+
get accounts() {
|
|
779
|
+
return pb_1.Message.getRepeatedWrapperField(this, ResolvedCbaAccount, 2);
|
|
780
|
+
}
|
|
781
|
+
set accounts(value) {
|
|
782
|
+
pb_1.Message.setRepeatedWrapperField(this, 2, value);
|
|
783
|
+
}
|
|
784
|
+
static fromObject(data) {
|
|
785
|
+
const message = new ResolvedCbaAccountsData({});
|
|
786
|
+
if (data.customer != null) {
|
|
787
|
+
message.customer = CbaCustomerProfile.fromObject(data.customer);
|
|
788
|
+
}
|
|
789
|
+
if (data.accounts != null) {
|
|
790
|
+
message.accounts = data.accounts.map(item => ResolvedCbaAccount.fromObject(item));
|
|
791
|
+
}
|
|
792
|
+
return message;
|
|
793
|
+
}
|
|
794
|
+
toObject() {
|
|
795
|
+
const data = {};
|
|
796
|
+
if (this.customer != null) {
|
|
797
|
+
data.customer = this.customer.toObject();
|
|
798
|
+
}
|
|
799
|
+
if (this.accounts != null) {
|
|
800
|
+
data.accounts = this.accounts.map((item) => item.toObject());
|
|
801
|
+
}
|
|
802
|
+
return data;
|
|
803
|
+
}
|
|
804
|
+
serialize(w) {
|
|
805
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
806
|
+
if (this.hasCustomer)
|
|
807
|
+
writer.writeMessage(1, this.customer, () => this.customer.serialize(writer));
|
|
808
|
+
if (this.accounts.length)
|
|
809
|
+
writer.writeRepeatedMessage(2, this.accounts, (item) => item.serialize(writer));
|
|
810
|
+
if (!w)
|
|
811
|
+
return writer.getResultBuffer();
|
|
812
|
+
}
|
|
813
|
+
static deserialize(bytes) {
|
|
814
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ResolvedCbaAccountsData();
|
|
815
|
+
while (reader.nextField()) {
|
|
816
|
+
if (reader.isEndGroup())
|
|
817
|
+
break;
|
|
818
|
+
switch (reader.getFieldNumber()) {
|
|
819
|
+
case 1:
|
|
820
|
+
reader.readMessage(message.customer, () => message.customer = CbaCustomerProfile.deserialize(reader));
|
|
821
|
+
break;
|
|
822
|
+
case 2:
|
|
823
|
+
reader.readMessage(message.accounts, () => pb_1.Message.addToRepeatedWrapperField(message, 2, ResolvedCbaAccount.deserialize(reader), ResolvedCbaAccount));
|
|
824
|
+
break;
|
|
825
|
+
default: reader.skipField();
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
return message;
|
|
829
|
+
}
|
|
830
|
+
serializeBinary() {
|
|
831
|
+
return this.serialize();
|
|
832
|
+
}
|
|
833
|
+
static deserializeBinary(bytes) {
|
|
834
|
+
return ResolvedCbaAccountsData.deserialize(bytes);
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
account.ResolvedCbaAccountsData = ResolvedCbaAccountsData;
|
|
838
|
+
class ResolvedCbaAccountsResponse extends pb_1.Message {
|
|
839
|
+
#one_of_decls = [];
|
|
840
|
+
constructor(data) {
|
|
841
|
+
super();
|
|
842
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5], this.#one_of_decls);
|
|
843
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
844
|
+
if ("status" in data && data.status != undefined) {
|
|
845
|
+
this.status = data.status;
|
|
846
|
+
}
|
|
847
|
+
if ("data" in data && data.data != undefined) {
|
|
848
|
+
this.data = data.data;
|
|
849
|
+
}
|
|
850
|
+
if ("error" in data && data.error != undefined) {
|
|
851
|
+
this.error = data.error;
|
|
852
|
+
}
|
|
853
|
+
if ("message" in data && data.message != undefined) {
|
|
854
|
+
this.message = data.message;
|
|
855
|
+
}
|
|
856
|
+
if ("errors" in data && data.errors != undefined) {
|
|
857
|
+
this.errors = data.errors;
|
|
858
|
+
}
|
|
859
|
+
if ("success" in data && data.success != undefined) {
|
|
860
|
+
this.success = data.success;
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
get status() {
|
|
865
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
866
|
+
}
|
|
867
|
+
set status(value) {
|
|
868
|
+
pb_1.Message.setField(this, 1, value);
|
|
869
|
+
}
|
|
870
|
+
get data() {
|
|
871
|
+
return pb_1.Message.getWrapperField(this, ResolvedCbaAccountsData, 2);
|
|
872
|
+
}
|
|
873
|
+
set data(value) {
|
|
874
|
+
pb_1.Message.setWrapperField(this, 2, value);
|
|
875
|
+
}
|
|
876
|
+
get hasData() {
|
|
877
|
+
return pb_1.Message.getField(this, 2) != null;
|
|
878
|
+
}
|
|
879
|
+
get error() {
|
|
880
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
881
|
+
}
|
|
882
|
+
set error(value) {
|
|
883
|
+
pb_1.Message.setField(this, 3, value);
|
|
884
|
+
}
|
|
885
|
+
get message() {
|
|
886
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
887
|
+
}
|
|
888
|
+
set message(value) {
|
|
889
|
+
pb_1.Message.setField(this, 4, value);
|
|
890
|
+
}
|
|
891
|
+
get errors() {
|
|
892
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 5);
|
|
893
|
+
}
|
|
894
|
+
set errors(value) {
|
|
895
|
+
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
896
|
+
}
|
|
897
|
+
get success() {
|
|
898
|
+
return pb_1.Message.getFieldWithDefault(this, 6, false);
|
|
899
|
+
}
|
|
900
|
+
set success(value) {
|
|
901
|
+
pb_1.Message.setField(this, 6, value);
|
|
902
|
+
}
|
|
903
|
+
static fromObject(data) {
|
|
904
|
+
const message = new ResolvedCbaAccountsResponse({});
|
|
905
|
+
if (data.status != null) {
|
|
906
|
+
message.status = data.status;
|
|
907
|
+
}
|
|
908
|
+
if (data.data != null) {
|
|
909
|
+
message.data = ResolvedCbaAccountsData.fromObject(data.data);
|
|
910
|
+
}
|
|
911
|
+
if (data.error != null) {
|
|
912
|
+
message.error = data.error;
|
|
913
|
+
}
|
|
914
|
+
if (data.message != null) {
|
|
915
|
+
message.message = data.message;
|
|
916
|
+
}
|
|
917
|
+
if (data.errors != null) {
|
|
918
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
919
|
+
}
|
|
920
|
+
if (data.success != null) {
|
|
921
|
+
message.success = data.success;
|
|
922
|
+
}
|
|
923
|
+
return message;
|
|
924
|
+
}
|
|
925
|
+
toObject() {
|
|
926
|
+
const data = {};
|
|
927
|
+
if (this.status != null) {
|
|
928
|
+
data.status = this.status;
|
|
929
|
+
}
|
|
930
|
+
if (this.data != null) {
|
|
931
|
+
data.data = this.data.toObject();
|
|
932
|
+
}
|
|
933
|
+
if (this.error != null) {
|
|
934
|
+
data.error = this.error;
|
|
935
|
+
}
|
|
936
|
+
if (this.message != null) {
|
|
937
|
+
data.message = this.message;
|
|
938
|
+
}
|
|
939
|
+
if (this.errors != null) {
|
|
940
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
941
|
+
}
|
|
942
|
+
if (this.success != null) {
|
|
943
|
+
data.success = this.success;
|
|
944
|
+
}
|
|
945
|
+
return data;
|
|
946
|
+
}
|
|
947
|
+
serialize(w) {
|
|
948
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
949
|
+
if (this.status.length)
|
|
950
|
+
writer.writeString(1, this.status);
|
|
951
|
+
if (this.hasData)
|
|
952
|
+
writer.writeMessage(2, this.data, () => this.data.serialize(writer));
|
|
953
|
+
if (this.error.length)
|
|
954
|
+
writer.writeString(3, this.error);
|
|
955
|
+
if (this.message.length)
|
|
956
|
+
writer.writeString(4, this.message);
|
|
957
|
+
if (this.errors.length)
|
|
958
|
+
writer.writeRepeatedMessage(5, this.errors, (item) => item.serialize(writer));
|
|
959
|
+
if (this.success != false)
|
|
960
|
+
writer.writeBool(6, this.success);
|
|
961
|
+
if (!w)
|
|
962
|
+
return writer.getResultBuffer();
|
|
963
|
+
}
|
|
964
|
+
static deserialize(bytes) {
|
|
965
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ResolvedCbaAccountsResponse();
|
|
966
|
+
while (reader.nextField()) {
|
|
967
|
+
if (reader.isEndGroup())
|
|
968
|
+
break;
|
|
969
|
+
switch (reader.getFieldNumber()) {
|
|
970
|
+
case 1:
|
|
971
|
+
message.status = reader.readString();
|
|
972
|
+
break;
|
|
973
|
+
case 2:
|
|
974
|
+
reader.readMessage(message.data, () => message.data = ResolvedCbaAccountsData.deserialize(reader));
|
|
975
|
+
break;
|
|
976
|
+
case 3:
|
|
977
|
+
message.error = reader.readString();
|
|
978
|
+
break;
|
|
979
|
+
case 4:
|
|
980
|
+
message.message = reader.readString();
|
|
981
|
+
break;
|
|
982
|
+
case 5:
|
|
983
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 5, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
984
|
+
break;
|
|
985
|
+
case 6:
|
|
986
|
+
message.success = reader.readBool();
|
|
987
|
+
break;
|
|
988
|
+
default: reader.skipField();
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
return message;
|
|
992
|
+
}
|
|
993
|
+
serializeBinary() {
|
|
994
|
+
return this.serialize();
|
|
995
|
+
}
|
|
996
|
+
static deserializeBinary(bytes) {
|
|
997
|
+
return ResolvedCbaAccountsResponse.deserialize(bytes);
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
account.ResolvedCbaAccountsResponse = ResolvedCbaAccountsResponse;
|
|
1001
|
+
class LinkCbaAccountsRequest extends pb_1.Message {
|
|
1002
|
+
#one_of_decls = [];
|
|
1003
|
+
constructor(data) {
|
|
1004
|
+
super();
|
|
1005
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3], this.#one_of_decls);
|
|
1006
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1007
|
+
if ("user" in data && data.user != undefined) {
|
|
1008
|
+
this.user = data.user;
|
|
1009
|
+
}
|
|
1010
|
+
if ("phone" in data && data.phone != undefined) {
|
|
1011
|
+
this.phone = data.phone;
|
|
1012
|
+
}
|
|
1013
|
+
if ("accountIds" in data && data.accountIds != undefined) {
|
|
1014
|
+
this.accountIds = data.accountIds;
|
|
1015
|
+
}
|
|
1016
|
+
if ("setFirstAsDefault" in data && data.setFirstAsDefault != undefined) {
|
|
1017
|
+
this.setFirstAsDefault = data.setFirstAsDefault;
|
|
1018
|
+
}
|
|
1019
|
+
if ("tier" in data && data.tier != undefined) {
|
|
1020
|
+
this.tier = data.tier;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
get user() {
|
|
1025
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
1026
|
+
}
|
|
1027
|
+
set user(value) {
|
|
1028
|
+
pb_1.Message.setField(this, 1, value);
|
|
1029
|
+
}
|
|
1030
|
+
get phone() {
|
|
1031
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
1032
|
+
}
|
|
1033
|
+
set phone(value) {
|
|
1034
|
+
pb_1.Message.setField(this, 2, value);
|
|
1035
|
+
}
|
|
1036
|
+
get accountIds() {
|
|
1037
|
+
return pb_1.Message.getFieldWithDefault(this, 3, []);
|
|
1038
|
+
}
|
|
1039
|
+
set accountIds(value) {
|
|
1040
|
+
pb_1.Message.setField(this, 3, value);
|
|
1041
|
+
}
|
|
1042
|
+
get setFirstAsDefault() {
|
|
1043
|
+
return pb_1.Message.getFieldWithDefault(this, 4, false);
|
|
1044
|
+
}
|
|
1045
|
+
set setFirstAsDefault(value) {
|
|
1046
|
+
pb_1.Message.setField(this, 4, value);
|
|
1047
|
+
}
|
|
1048
|
+
get tier() {
|
|
1049
|
+
return pb_1.Message.getFieldWithDefault(this, 5, 0);
|
|
1050
|
+
}
|
|
1051
|
+
set tier(value) {
|
|
1052
|
+
pb_1.Message.setField(this, 5, value);
|
|
1053
|
+
}
|
|
1054
|
+
static fromObject(data) {
|
|
1055
|
+
const message = new LinkCbaAccountsRequest({});
|
|
1056
|
+
if (data.user != null) {
|
|
1057
|
+
message.user = data.user;
|
|
1058
|
+
}
|
|
1059
|
+
if (data.phone != null) {
|
|
1060
|
+
message.phone = data.phone;
|
|
1061
|
+
}
|
|
1062
|
+
if (data.accountIds != null) {
|
|
1063
|
+
message.accountIds = data.accountIds;
|
|
1064
|
+
}
|
|
1065
|
+
if (data.setFirstAsDefault != null) {
|
|
1066
|
+
message.setFirstAsDefault = data.setFirstAsDefault;
|
|
1067
|
+
}
|
|
1068
|
+
if (data.tier != null) {
|
|
1069
|
+
message.tier = data.tier;
|
|
1070
|
+
}
|
|
1071
|
+
return message;
|
|
1072
|
+
}
|
|
1073
|
+
toObject() {
|
|
1074
|
+
const data = {};
|
|
1075
|
+
if (this.user != null) {
|
|
1076
|
+
data.user = this.user;
|
|
1077
|
+
}
|
|
1078
|
+
if (this.phone != null) {
|
|
1079
|
+
data.phone = this.phone;
|
|
1080
|
+
}
|
|
1081
|
+
if (this.accountIds != null) {
|
|
1082
|
+
data.accountIds = this.accountIds;
|
|
1083
|
+
}
|
|
1084
|
+
if (this.setFirstAsDefault != null) {
|
|
1085
|
+
data.setFirstAsDefault = this.setFirstAsDefault;
|
|
1086
|
+
}
|
|
1087
|
+
if (this.tier != null) {
|
|
1088
|
+
data.tier = this.tier;
|
|
1089
|
+
}
|
|
1090
|
+
return data;
|
|
1091
|
+
}
|
|
1092
|
+
serialize(w) {
|
|
1093
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
1094
|
+
if (this.user.length)
|
|
1095
|
+
writer.writeString(1, this.user);
|
|
1096
|
+
if (this.phone.length)
|
|
1097
|
+
writer.writeString(2, this.phone);
|
|
1098
|
+
if (this.accountIds.length)
|
|
1099
|
+
writer.writeRepeatedString(3, this.accountIds);
|
|
1100
|
+
if (this.setFirstAsDefault != false)
|
|
1101
|
+
writer.writeBool(4, this.setFirstAsDefault);
|
|
1102
|
+
if (this.tier != 0)
|
|
1103
|
+
writer.writeUint32(5, this.tier);
|
|
1104
|
+
if (!w)
|
|
1105
|
+
return writer.getResultBuffer();
|
|
1106
|
+
}
|
|
1107
|
+
static deserialize(bytes) {
|
|
1108
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new LinkCbaAccountsRequest();
|
|
1109
|
+
while (reader.nextField()) {
|
|
1110
|
+
if (reader.isEndGroup())
|
|
1111
|
+
break;
|
|
1112
|
+
switch (reader.getFieldNumber()) {
|
|
1113
|
+
case 1:
|
|
1114
|
+
message.user = reader.readString();
|
|
1115
|
+
break;
|
|
1116
|
+
case 2:
|
|
1117
|
+
message.phone = reader.readString();
|
|
1118
|
+
break;
|
|
1119
|
+
case 3:
|
|
1120
|
+
pb_1.Message.addToRepeatedField(message, 3, reader.readString());
|
|
1121
|
+
break;
|
|
1122
|
+
case 4:
|
|
1123
|
+
message.setFirstAsDefault = reader.readBool();
|
|
1124
|
+
break;
|
|
1125
|
+
case 5:
|
|
1126
|
+
message.tier = reader.readUint32();
|
|
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 LinkCbaAccountsRequest.deserialize(bytes);
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
account.LinkCbaAccountsRequest = LinkCbaAccountsRequest;
|
|
35
1141
|
class ValidationErrors extends pb_1.Message {
|
|
36
1142
|
#one_of_decls = [];
|
|
37
1143
|
constructor(data) {
|
|
@@ -12488,6 +13594,33 @@ var com;
|
|
|
12488
13594
|
requestDeserialize: (bytes) => IdRequest.deserialize(new Uint8Array(bytes)),
|
|
12489
13595
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
12490
13596
|
responseDeserialize: (bytes) => PayoutLogResponse.deserialize(new Uint8Array(bytes))
|
|
13597
|
+
},
|
|
13598
|
+
LookupCbaBusinessAccounts: {
|
|
13599
|
+
path: "/com.pkg.account.Accounts/LookupCbaBusinessAccounts",
|
|
13600
|
+
requestStream: false,
|
|
13601
|
+
responseStream: false,
|
|
13602
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
13603
|
+
requestDeserialize: (bytes) => CbaPhoneRequest.deserialize(new Uint8Array(bytes)),
|
|
13604
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
13605
|
+
responseDeserialize: (bytes) => CbaLinkableAccountsResponse.deserialize(new Uint8Array(bytes))
|
|
13606
|
+
},
|
|
13607
|
+
ResolveCbaBusinessAccounts: {
|
|
13608
|
+
path: "/com.pkg.account.Accounts/ResolveCbaBusinessAccounts",
|
|
13609
|
+
requestStream: false,
|
|
13610
|
+
responseStream: false,
|
|
13611
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
13612
|
+
requestDeserialize: (bytes) => ResolveCbaAccountsRequest.deserialize(new Uint8Array(bytes)),
|
|
13613
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
13614
|
+
responseDeserialize: (bytes) => ResolvedCbaAccountsResponse.deserialize(new Uint8Array(bytes))
|
|
13615
|
+
},
|
|
13616
|
+
LinkCbaAccounts: {
|
|
13617
|
+
path: "/com.pkg.account.Accounts/LinkCbaAccounts",
|
|
13618
|
+
requestStream: false,
|
|
13619
|
+
responseStream: false,
|
|
13620
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
13621
|
+
requestDeserialize: (bytes) => LinkCbaAccountsRequest.deserialize(new Uint8Array(bytes)),
|
|
13622
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
13623
|
+
responseDeserialize: (bytes) => MultiAccountResponse.deserialize(new Uint8Array(bytes))
|
|
12491
13624
|
}
|
|
12492
13625
|
};
|
|
12493
13626
|
}
|
|
@@ -13200,6 +14333,54 @@ var com;
|
|
|
13200
14333
|
}
|
|
13201
14334
|
}));
|
|
13202
14335
|
};
|
|
14336
|
+
LookupCbaBusinessAccounts = (message, metadata, options) => {
|
|
14337
|
+
if (!metadata) {
|
|
14338
|
+
metadata = new grpc_1.Metadata;
|
|
14339
|
+
}
|
|
14340
|
+
if (!options) {
|
|
14341
|
+
options = {};
|
|
14342
|
+
}
|
|
14343
|
+
return new Promise((resolve, reject) => super.LookupCbaBusinessAccounts(message, metadata, options, (error, response) => {
|
|
14344
|
+
if (error) {
|
|
14345
|
+
reject(error);
|
|
14346
|
+
}
|
|
14347
|
+
else {
|
|
14348
|
+
resolve(response);
|
|
14349
|
+
}
|
|
14350
|
+
}));
|
|
14351
|
+
};
|
|
14352
|
+
ResolveCbaBusinessAccounts = (message, metadata, options) => {
|
|
14353
|
+
if (!metadata) {
|
|
14354
|
+
metadata = new grpc_1.Metadata;
|
|
14355
|
+
}
|
|
14356
|
+
if (!options) {
|
|
14357
|
+
options = {};
|
|
14358
|
+
}
|
|
14359
|
+
return new Promise((resolve, reject) => super.ResolveCbaBusinessAccounts(message, metadata, options, (error, response) => {
|
|
14360
|
+
if (error) {
|
|
14361
|
+
reject(error);
|
|
14362
|
+
}
|
|
14363
|
+
else {
|
|
14364
|
+
resolve(response);
|
|
14365
|
+
}
|
|
14366
|
+
}));
|
|
14367
|
+
};
|
|
14368
|
+
LinkCbaAccounts = (message, metadata, options) => {
|
|
14369
|
+
if (!metadata) {
|
|
14370
|
+
metadata = new grpc_1.Metadata;
|
|
14371
|
+
}
|
|
14372
|
+
if (!options) {
|
|
14373
|
+
options = {};
|
|
14374
|
+
}
|
|
14375
|
+
return new Promise((resolve, reject) => super.LinkCbaAccounts(message, metadata, options, (error, response) => {
|
|
14376
|
+
if (error) {
|
|
14377
|
+
reject(error);
|
|
14378
|
+
}
|
|
14379
|
+
else {
|
|
14380
|
+
resolve(response);
|
|
14381
|
+
}
|
|
14382
|
+
}));
|
|
14383
|
+
};
|
|
13203
14384
|
}
|
|
13204
14385
|
account.AccountsClient = AccountsClient;
|
|
13205
14386
|
})(account = pkg.account || (pkg.account = {}));
|