@technova-tech/olive-proto-lib 3.2.7 → 3.2.9
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 +125 -0
- package/package.json +1 -1
- package/types/accounts/accounts.d.ts +387 -0
- package/types/admin/admin.d.ts +40 -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/admin/admin.js
CHANGED
|
@@ -8972,6 +8972,106 @@ var com;
|
|
|
8972
8972
|
}
|
|
8973
8973
|
}
|
|
8974
8974
|
admin.RegionData = RegionData;
|
|
8975
|
+
class ChangeDefaultPasswordRequest extends pb_1.Message {
|
|
8976
|
+
#one_of_decls = [];
|
|
8977
|
+
constructor(data) {
|
|
8978
|
+
super();
|
|
8979
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
8980
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
8981
|
+
if ("email" in data && data.email != undefined) {
|
|
8982
|
+
this.email = data.email;
|
|
8983
|
+
}
|
|
8984
|
+
if ("defaultPassword" in data && data.defaultPassword != undefined) {
|
|
8985
|
+
this.defaultPassword = data.defaultPassword;
|
|
8986
|
+
}
|
|
8987
|
+
if ("newPassword" in data && data.newPassword != undefined) {
|
|
8988
|
+
this.newPassword = data.newPassword;
|
|
8989
|
+
}
|
|
8990
|
+
}
|
|
8991
|
+
}
|
|
8992
|
+
get email() {
|
|
8993
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
8994
|
+
}
|
|
8995
|
+
set email(value) {
|
|
8996
|
+
pb_1.Message.setField(this, 1, value);
|
|
8997
|
+
}
|
|
8998
|
+
get defaultPassword() {
|
|
8999
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
9000
|
+
}
|
|
9001
|
+
set defaultPassword(value) {
|
|
9002
|
+
pb_1.Message.setField(this, 2, value);
|
|
9003
|
+
}
|
|
9004
|
+
get newPassword() {
|
|
9005
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
9006
|
+
}
|
|
9007
|
+
set newPassword(value) {
|
|
9008
|
+
pb_1.Message.setField(this, 3, value);
|
|
9009
|
+
}
|
|
9010
|
+
static fromObject(data) {
|
|
9011
|
+
const message = new ChangeDefaultPasswordRequest({});
|
|
9012
|
+
if (data.email != null) {
|
|
9013
|
+
message.email = data.email;
|
|
9014
|
+
}
|
|
9015
|
+
if (data.defaultPassword != null) {
|
|
9016
|
+
message.defaultPassword = data.defaultPassword;
|
|
9017
|
+
}
|
|
9018
|
+
if (data.newPassword != null) {
|
|
9019
|
+
message.newPassword = data.newPassword;
|
|
9020
|
+
}
|
|
9021
|
+
return message;
|
|
9022
|
+
}
|
|
9023
|
+
toObject() {
|
|
9024
|
+
const data = {};
|
|
9025
|
+
if (this.email != null) {
|
|
9026
|
+
data.email = this.email;
|
|
9027
|
+
}
|
|
9028
|
+
if (this.defaultPassword != null) {
|
|
9029
|
+
data.defaultPassword = this.defaultPassword;
|
|
9030
|
+
}
|
|
9031
|
+
if (this.newPassword != null) {
|
|
9032
|
+
data.newPassword = this.newPassword;
|
|
9033
|
+
}
|
|
9034
|
+
return data;
|
|
9035
|
+
}
|
|
9036
|
+
serialize(w) {
|
|
9037
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
9038
|
+
if (this.email.length)
|
|
9039
|
+
writer.writeString(1, this.email);
|
|
9040
|
+
if (this.defaultPassword.length)
|
|
9041
|
+
writer.writeString(2, this.defaultPassword);
|
|
9042
|
+
if (this.newPassword.length)
|
|
9043
|
+
writer.writeString(3, this.newPassword);
|
|
9044
|
+
if (!w)
|
|
9045
|
+
return writer.getResultBuffer();
|
|
9046
|
+
}
|
|
9047
|
+
static deserialize(bytes) {
|
|
9048
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ChangeDefaultPasswordRequest();
|
|
9049
|
+
while (reader.nextField()) {
|
|
9050
|
+
if (reader.isEndGroup())
|
|
9051
|
+
break;
|
|
9052
|
+
switch (reader.getFieldNumber()) {
|
|
9053
|
+
case 1:
|
|
9054
|
+
message.email = reader.readString();
|
|
9055
|
+
break;
|
|
9056
|
+
case 2:
|
|
9057
|
+
message.defaultPassword = reader.readString();
|
|
9058
|
+
break;
|
|
9059
|
+
case 3:
|
|
9060
|
+
message.newPassword = reader.readString();
|
|
9061
|
+
break;
|
|
9062
|
+
default: reader.skipField();
|
|
9063
|
+
}
|
|
9064
|
+
}
|
|
9065
|
+
return message;
|
|
9066
|
+
}
|
|
9067
|
+
serializeBinary() {
|
|
9068
|
+
return this.serialize();
|
|
9069
|
+
}
|
|
9070
|
+
static deserializeBinary(bytes) {
|
|
9071
|
+
return ChangeDefaultPasswordRequest.deserialize(bytes);
|
|
9072
|
+
}
|
|
9073
|
+
}
|
|
9074
|
+
admin.ChangeDefaultPasswordRequest = ChangeDefaultPasswordRequest;
|
|
8975
9075
|
class UnimplementedAdminServiceService {
|
|
8976
9076
|
static definition = {
|
|
8977
9077
|
InviteAdmin: {
|
|
@@ -9333,6 +9433,15 @@ var com;
|
|
|
9333
9433
|
requestDeserialize: (bytes) => IdRequest.deserialize(new Uint8Array(bytes)),
|
|
9334
9434
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
9335
9435
|
responseDeserialize: (bytes) => AdminsResponse.deserialize(new Uint8Array(bytes))
|
|
9436
|
+
},
|
|
9437
|
+
ChangeDefaultPassword: {
|
|
9438
|
+
path: "/com.pkg.admin.AdminService/ChangeDefaultPassword",
|
|
9439
|
+
requestStream: false,
|
|
9440
|
+
responseStream: false,
|
|
9441
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
9442
|
+
requestDeserialize: (bytes) => ChangeDefaultPasswordRequest.deserialize(new Uint8Array(bytes)),
|
|
9443
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
9444
|
+
responseDeserialize: (bytes) => AdminResponse.deserialize(new Uint8Array(bytes))
|
|
9336
9445
|
}
|
|
9337
9446
|
};
|
|
9338
9447
|
}
|
|
@@ -9981,6 +10090,22 @@ var com;
|
|
|
9981
10090
|
}
|
|
9982
10091
|
}));
|
|
9983
10092
|
};
|
|
10093
|
+
ChangeDefaultPassword = (message, metadata, options) => {
|
|
10094
|
+
if (!metadata) {
|
|
10095
|
+
metadata = new grpc_1.Metadata;
|
|
10096
|
+
}
|
|
10097
|
+
if (!options) {
|
|
10098
|
+
options = {};
|
|
10099
|
+
}
|
|
10100
|
+
return new Promise((resolve, reject) => super.ChangeDefaultPassword(message, metadata, options, (error, response) => {
|
|
10101
|
+
if (error) {
|
|
10102
|
+
reject(error);
|
|
10103
|
+
}
|
|
10104
|
+
else {
|
|
10105
|
+
resolve(response);
|
|
10106
|
+
}
|
|
10107
|
+
}));
|
|
10108
|
+
};
|
|
9984
10109
|
}
|
|
9985
10110
|
admin.AdminServiceClient = AdminServiceClient;
|
|
9986
10111
|
})(admin = pkg.admin || (pkg.admin = {}));
|
package/package.json
CHANGED
|
@@ -2,6 +2,360 @@
|
|
|
2
2
|
import * as pb_1 from "google-protobuf";
|
|
3
3
|
import * as grpc_1 from "@grpc/grpc-js";
|
|
4
4
|
export declare namespace com.pkg.account {
|
|
5
|
+
export class CbaPhoneRequest extends pb_1.Message {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(data?: any[] | {
|
|
8
|
+
phone?: string;
|
|
9
|
+
});
|
|
10
|
+
get phone(): string;
|
|
11
|
+
set phone(value: string);
|
|
12
|
+
static fromObject(data: {
|
|
13
|
+
phone?: string;
|
|
14
|
+
}): CbaPhoneRequest;
|
|
15
|
+
toObject(): {
|
|
16
|
+
phone?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
serialize(): Uint8Array;
|
|
19
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
20
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CbaPhoneRequest;
|
|
21
|
+
serializeBinary(): Uint8Array;
|
|
22
|
+
static deserializeBinary(bytes: Uint8Array): CbaPhoneRequest;
|
|
23
|
+
}
|
|
24
|
+
export class CbaLinkableAccount extends pb_1.Message {
|
|
25
|
+
#private;
|
|
26
|
+
constructor(data?: any[] | {
|
|
27
|
+
id?: string;
|
|
28
|
+
maskedAccountNumber?: string;
|
|
29
|
+
accountName?: string;
|
|
30
|
+
});
|
|
31
|
+
get id(): string;
|
|
32
|
+
set id(value: string);
|
|
33
|
+
get maskedAccountNumber(): string;
|
|
34
|
+
set maskedAccountNumber(value: string);
|
|
35
|
+
get accountName(): string;
|
|
36
|
+
set accountName(value: string);
|
|
37
|
+
static fromObject(data: {
|
|
38
|
+
id?: string;
|
|
39
|
+
maskedAccountNumber?: string;
|
|
40
|
+
accountName?: string;
|
|
41
|
+
}): CbaLinkableAccount;
|
|
42
|
+
toObject(): {
|
|
43
|
+
id?: string | undefined;
|
|
44
|
+
maskedAccountNumber?: string | undefined;
|
|
45
|
+
accountName?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
serialize(): Uint8Array;
|
|
48
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
49
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CbaLinkableAccount;
|
|
50
|
+
serializeBinary(): Uint8Array;
|
|
51
|
+
static deserializeBinary(bytes: Uint8Array): CbaLinkableAccount;
|
|
52
|
+
}
|
|
53
|
+
export class CbaLinkableAccountsResponse extends pb_1.Message {
|
|
54
|
+
#private;
|
|
55
|
+
constructor(data?: any[] | {
|
|
56
|
+
status?: string;
|
|
57
|
+
data?: CbaLinkableAccount[];
|
|
58
|
+
error?: string;
|
|
59
|
+
message?: string;
|
|
60
|
+
errors?: ValidationErrors[];
|
|
61
|
+
success?: boolean;
|
|
62
|
+
});
|
|
63
|
+
get status(): string;
|
|
64
|
+
set status(value: string);
|
|
65
|
+
get data(): CbaLinkableAccount[];
|
|
66
|
+
set data(value: CbaLinkableAccount[]);
|
|
67
|
+
get error(): string;
|
|
68
|
+
set error(value: string);
|
|
69
|
+
get message(): string;
|
|
70
|
+
set message(value: string);
|
|
71
|
+
get errors(): ValidationErrors[];
|
|
72
|
+
set errors(value: ValidationErrors[]);
|
|
73
|
+
get success(): boolean;
|
|
74
|
+
set success(value: boolean);
|
|
75
|
+
static fromObject(data: {
|
|
76
|
+
status?: string;
|
|
77
|
+
data?: ReturnType<typeof CbaLinkableAccount.prototype.toObject>[];
|
|
78
|
+
error?: string;
|
|
79
|
+
message?: string;
|
|
80
|
+
errors?: ReturnType<typeof ValidationErrors.prototype.toObject>[];
|
|
81
|
+
success?: boolean;
|
|
82
|
+
}): CbaLinkableAccountsResponse;
|
|
83
|
+
toObject(): {
|
|
84
|
+
status?: string | undefined;
|
|
85
|
+
data?: {
|
|
86
|
+
id?: string | undefined;
|
|
87
|
+
maskedAccountNumber?: string | undefined;
|
|
88
|
+
accountName?: string | undefined;
|
|
89
|
+
}[] | undefined;
|
|
90
|
+
error?: string | undefined;
|
|
91
|
+
message?: string | undefined;
|
|
92
|
+
errors?: {
|
|
93
|
+
field?: string | undefined;
|
|
94
|
+
message?: string | undefined;
|
|
95
|
+
}[] | undefined;
|
|
96
|
+
success?: boolean | undefined;
|
|
97
|
+
};
|
|
98
|
+
serialize(): Uint8Array;
|
|
99
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
100
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CbaLinkableAccountsResponse;
|
|
101
|
+
serializeBinary(): Uint8Array;
|
|
102
|
+
static deserializeBinary(bytes: Uint8Array): CbaLinkableAccountsResponse;
|
|
103
|
+
}
|
|
104
|
+
export class ResolveCbaAccountsRequest extends pb_1.Message {
|
|
105
|
+
#private;
|
|
106
|
+
constructor(data?: any[] | {
|
|
107
|
+
phone?: string;
|
|
108
|
+
accountIds?: string[];
|
|
109
|
+
});
|
|
110
|
+
get phone(): string;
|
|
111
|
+
set phone(value: string);
|
|
112
|
+
get accountIds(): string[];
|
|
113
|
+
set accountIds(value: string[]);
|
|
114
|
+
static fromObject(data: {
|
|
115
|
+
phone?: string;
|
|
116
|
+
accountIds?: string[];
|
|
117
|
+
}): ResolveCbaAccountsRequest;
|
|
118
|
+
toObject(): {
|
|
119
|
+
phone?: string | undefined;
|
|
120
|
+
accountIds?: string[] | undefined;
|
|
121
|
+
};
|
|
122
|
+
serialize(): Uint8Array;
|
|
123
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
124
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ResolveCbaAccountsRequest;
|
|
125
|
+
serializeBinary(): Uint8Array;
|
|
126
|
+
static deserializeBinary(bytes: Uint8Array): ResolveCbaAccountsRequest;
|
|
127
|
+
}
|
|
128
|
+
export class CbaCustomerProfile extends pb_1.Message {
|
|
129
|
+
#private;
|
|
130
|
+
constructor(data?: any[] | {
|
|
131
|
+
providerCustomerId?: string;
|
|
132
|
+
firstName?: string;
|
|
133
|
+
middleName?: string;
|
|
134
|
+
lastName?: string;
|
|
135
|
+
email?: string;
|
|
136
|
+
gender?: string;
|
|
137
|
+
dateOfBirth?: string;
|
|
138
|
+
bvn?: string;
|
|
139
|
+
businessName?: string;
|
|
140
|
+
});
|
|
141
|
+
get providerCustomerId(): string;
|
|
142
|
+
set providerCustomerId(value: string);
|
|
143
|
+
get firstName(): string;
|
|
144
|
+
set firstName(value: string);
|
|
145
|
+
get middleName(): string;
|
|
146
|
+
set middleName(value: string);
|
|
147
|
+
get lastName(): string;
|
|
148
|
+
set lastName(value: string);
|
|
149
|
+
get email(): string;
|
|
150
|
+
set email(value: string);
|
|
151
|
+
get gender(): string;
|
|
152
|
+
set gender(value: string);
|
|
153
|
+
get dateOfBirth(): string;
|
|
154
|
+
set dateOfBirth(value: string);
|
|
155
|
+
get bvn(): string;
|
|
156
|
+
set bvn(value: string);
|
|
157
|
+
get businessName(): string;
|
|
158
|
+
set businessName(value: string);
|
|
159
|
+
static fromObject(data: {
|
|
160
|
+
providerCustomerId?: string;
|
|
161
|
+
firstName?: string;
|
|
162
|
+
middleName?: string;
|
|
163
|
+
lastName?: string;
|
|
164
|
+
email?: string;
|
|
165
|
+
gender?: string;
|
|
166
|
+
dateOfBirth?: string;
|
|
167
|
+
bvn?: string;
|
|
168
|
+
businessName?: string;
|
|
169
|
+
}): CbaCustomerProfile;
|
|
170
|
+
toObject(): {
|
|
171
|
+
providerCustomerId?: string | undefined;
|
|
172
|
+
firstName?: string | undefined;
|
|
173
|
+
middleName?: string | undefined;
|
|
174
|
+
lastName?: string | undefined;
|
|
175
|
+
email?: string | undefined;
|
|
176
|
+
gender?: string | undefined;
|
|
177
|
+
dateOfBirth?: string | undefined;
|
|
178
|
+
bvn?: string | undefined;
|
|
179
|
+
businessName?: string | undefined;
|
|
180
|
+
};
|
|
181
|
+
serialize(): Uint8Array;
|
|
182
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
183
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CbaCustomerProfile;
|
|
184
|
+
serializeBinary(): Uint8Array;
|
|
185
|
+
static deserializeBinary(bytes: Uint8Array): CbaCustomerProfile;
|
|
186
|
+
}
|
|
187
|
+
export class ResolvedCbaAccount extends pb_1.Message {
|
|
188
|
+
#private;
|
|
189
|
+
constructor(data?: any[] | {
|
|
190
|
+
accountNumber?: string;
|
|
191
|
+
accountName?: string;
|
|
192
|
+
providerCustomerId?: string;
|
|
193
|
+
});
|
|
194
|
+
get accountNumber(): string;
|
|
195
|
+
set accountNumber(value: string);
|
|
196
|
+
get accountName(): string;
|
|
197
|
+
set accountName(value: string);
|
|
198
|
+
get providerCustomerId(): string;
|
|
199
|
+
set providerCustomerId(value: string);
|
|
200
|
+
static fromObject(data: {
|
|
201
|
+
accountNumber?: string;
|
|
202
|
+
accountName?: string;
|
|
203
|
+
providerCustomerId?: string;
|
|
204
|
+
}): ResolvedCbaAccount;
|
|
205
|
+
toObject(): {
|
|
206
|
+
accountNumber?: string | undefined;
|
|
207
|
+
accountName?: string | undefined;
|
|
208
|
+
providerCustomerId?: string | undefined;
|
|
209
|
+
};
|
|
210
|
+
serialize(): Uint8Array;
|
|
211
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
212
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ResolvedCbaAccount;
|
|
213
|
+
serializeBinary(): Uint8Array;
|
|
214
|
+
static deserializeBinary(bytes: Uint8Array): ResolvedCbaAccount;
|
|
215
|
+
}
|
|
216
|
+
export class ResolvedCbaAccountsData extends pb_1.Message {
|
|
217
|
+
#private;
|
|
218
|
+
constructor(data?: any[] | {
|
|
219
|
+
customer?: CbaCustomerProfile;
|
|
220
|
+
accounts?: ResolvedCbaAccount[];
|
|
221
|
+
});
|
|
222
|
+
get customer(): CbaCustomerProfile;
|
|
223
|
+
set customer(value: CbaCustomerProfile);
|
|
224
|
+
get hasCustomer(): boolean;
|
|
225
|
+
get accounts(): ResolvedCbaAccount[];
|
|
226
|
+
set accounts(value: ResolvedCbaAccount[]);
|
|
227
|
+
static fromObject(data: {
|
|
228
|
+
customer?: ReturnType<typeof CbaCustomerProfile.prototype.toObject>;
|
|
229
|
+
accounts?: ReturnType<typeof ResolvedCbaAccount.prototype.toObject>[];
|
|
230
|
+
}): ResolvedCbaAccountsData;
|
|
231
|
+
toObject(): {
|
|
232
|
+
customer?: {
|
|
233
|
+
providerCustomerId?: string | undefined;
|
|
234
|
+
firstName?: string | undefined;
|
|
235
|
+
middleName?: string | undefined;
|
|
236
|
+
lastName?: string | undefined;
|
|
237
|
+
email?: string | undefined;
|
|
238
|
+
gender?: string | undefined;
|
|
239
|
+
dateOfBirth?: string | undefined;
|
|
240
|
+
bvn?: string | undefined;
|
|
241
|
+
businessName?: string | undefined;
|
|
242
|
+
} | undefined;
|
|
243
|
+
accounts?: {
|
|
244
|
+
accountNumber?: string | undefined;
|
|
245
|
+
accountName?: string | undefined;
|
|
246
|
+
providerCustomerId?: string | undefined;
|
|
247
|
+
}[] | undefined;
|
|
248
|
+
};
|
|
249
|
+
serialize(): Uint8Array;
|
|
250
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
251
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ResolvedCbaAccountsData;
|
|
252
|
+
serializeBinary(): Uint8Array;
|
|
253
|
+
static deserializeBinary(bytes: Uint8Array): ResolvedCbaAccountsData;
|
|
254
|
+
}
|
|
255
|
+
export class ResolvedCbaAccountsResponse extends pb_1.Message {
|
|
256
|
+
#private;
|
|
257
|
+
constructor(data?: any[] | {
|
|
258
|
+
status?: string;
|
|
259
|
+
data?: ResolvedCbaAccountsData;
|
|
260
|
+
error?: string;
|
|
261
|
+
message?: string;
|
|
262
|
+
errors?: ValidationErrors[];
|
|
263
|
+
success?: boolean;
|
|
264
|
+
});
|
|
265
|
+
get status(): string;
|
|
266
|
+
set status(value: string);
|
|
267
|
+
get data(): ResolvedCbaAccountsData;
|
|
268
|
+
set data(value: ResolvedCbaAccountsData);
|
|
269
|
+
get hasData(): boolean;
|
|
270
|
+
get error(): string;
|
|
271
|
+
set error(value: string);
|
|
272
|
+
get message(): string;
|
|
273
|
+
set message(value: string);
|
|
274
|
+
get errors(): ValidationErrors[];
|
|
275
|
+
set errors(value: ValidationErrors[]);
|
|
276
|
+
get success(): boolean;
|
|
277
|
+
set success(value: boolean);
|
|
278
|
+
static fromObject(data: {
|
|
279
|
+
status?: string;
|
|
280
|
+
data?: ReturnType<typeof ResolvedCbaAccountsData.prototype.toObject>;
|
|
281
|
+
error?: string;
|
|
282
|
+
message?: string;
|
|
283
|
+
errors?: ReturnType<typeof ValidationErrors.prototype.toObject>[];
|
|
284
|
+
success?: boolean;
|
|
285
|
+
}): ResolvedCbaAccountsResponse;
|
|
286
|
+
toObject(): {
|
|
287
|
+
status?: string | undefined;
|
|
288
|
+
data?: {
|
|
289
|
+
customer?: {
|
|
290
|
+
providerCustomerId?: string | undefined;
|
|
291
|
+
firstName?: string | undefined;
|
|
292
|
+
middleName?: string | undefined;
|
|
293
|
+
lastName?: string | undefined;
|
|
294
|
+
email?: string | undefined;
|
|
295
|
+
gender?: string | undefined;
|
|
296
|
+
dateOfBirth?: string | undefined;
|
|
297
|
+
bvn?: string | undefined;
|
|
298
|
+
businessName?: string | undefined;
|
|
299
|
+
} | undefined;
|
|
300
|
+
accounts?: {
|
|
301
|
+
accountNumber?: string | undefined;
|
|
302
|
+
accountName?: string | undefined;
|
|
303
|
+
providerCustomerId?: string | undefined;
|
|
304
|
+
}[] | undefined;
|
|
305
|
+
} | undefined;
|
|
306
|
+
error?: string | undefined;
|
|
307
|
+
message?: string | undefined;
|
|
308
|
+
errors?: {
|
|
309
|
+
field?: string | undefined;
|
|
310
|
+
message?: string | undefined;
|
|
311
|
+
}[] | undefined;
|
|
312
|
+
success?: boolean | undefined;
|
|
313
|
+
};
|
|
314
|
+
serialize(): Uint8Array;
|
|
315
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
316
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ResolvedCbaAccountsResponse;
|
|
317
|
+
serializeBinary(): Uint8Array;
|
|
318
|
+
static deserializeBinary(bytes: Uint8Array): ResolvedCbaAccountsResponse;
|
|
319
|
+
}
|
|
320
|
+
export class LinkCbaAccountsRequest extends pb_1.Message {
|
|
321
|
+
#private;
|
|
322
|
+
constructor(data?: any[] | {
|
|
323
|
+
user?: string;
|
|
324
|
+
phone?: string;
|
|
325
|
+
accountIds?: string[];
|
|
326
|
+
setFirstAsDefault?: boolean;
|
|
327
|
+
tier?: number;
|
|
328
|
+
});
|
|
329
|
+
get user(): string;
|
|
330
|
+
set user(value: string);
|
|
331
|
+
get phone(): string;
|
|
332
|
+
set phone(value: string);
|
|
333
|
+
get accountIds(): string[];
|
|
334
|
+
set accountIds(value: string[]);
|
|
335
|
+
get setFirstAsDefault(): boolean;
|
|
336
|
+
set setFirstAsDefault(value: boolean);
|
|
337
|
+
get tier(): number;
|
|
338
|
+
set tier(value: number);
|
|
339
|
+
static fromObject(data: {
|
|
340
|
+
user?: string;
|
|
341
|
+
phone?: string;
|
|
342
|
+
accountIds?: string[];
|
|
343
|
+
setFirstAsDefault?: boolean;
|
|
344
|
+
tier?: number;
|
|
345
|
+
}): LinkCbaAccountsRequest;
|
|
346
|
+
toObject(): {
|
|
347
|
+
user?: string | undefined;
|
|
348
|
+
phone?: string | undefined;
|
|
349
|
+
accountIds?: string[] | undefined;
|
|
350
|
+
setFirstAsDefault?: boolean | undefined;
|
|
351
|
+
tier?: number | undefined;
|
|
352
|
+
};
|
|
353
|
+
serialize(): Uint8Array;
|
|
354
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
355
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): LinkCbaAccountsRequest;
|
|
356
|
+
serializeBinary(): Uint8Array;
|
|
357
|
+
static deserializeBinary(bytes: Uint8Array): LinkCbaAccountsRequest;
|
|
358
|
+
}
|
|
5
359
|
export class ValidationErrors extends pb_1.Message {
|
|
6
360
|
#private;
|
|
7
361
|
constructor(data?: any[] | {
|
|
@@ -4320,6 +4674,33 @@ export declare namespace com.pkg.account {
|
|
|
4320
4674
|
responseSerialize: (message: PayoutLogResponse) => Buffer;
|
|
4321
4675
|
responseDeserialize: (bytes: Buffer) => PayoutLogResponse;
|
|
4322
4676
|
};
|
|
4677
|
+
LookupCbaBusinessAccounts: {
|
|
4678
|
+
path: string;
|
|
4679
|
+
requestStream: boolean;
|
|
4680
|
+
responseStream: boolean;
|
|
4681
|
+
requestSerialize: (message: CbaPhoneRequest) => Buffer;
|
|
4682
|
+
requestDeserialize: (bytes: Buffer) => CbaPhoneRequest;
|
|
4683
|
+
responseSerialize: (message: CbaLinkableAccountsResponse) => Buffer;
|
|
4684
|
+
responseDeserialize: (bytes: Buffer) => CbaLinkableAccountsResponse;
|
|
4685
|
+
};
|
|
4686
|
+
ResolveCbaBusinessAccounts: {
|
|
4687
|
+
path: string;
|
|
4688
|
+
requestStream: boolean;
|
|
4689
|
+
responseStream: boolean;
|
|
4690
|
+
requestSerialize: (message: ResolveCbaAccountsRequest) => Buffer;
|
|
4691
|
+
requestDeserialize: (bytes: Buffer) => ResolveCbaAccountsRequest;
|
|
4692
|
+
responseSerialize: (message: ResolvedCbaAccountsResponse) => Buffer;
|
|
4693
|
+
responseDeserialize: (bytes: Buffer) => ResolvedCbaAccountsResponse;
|
|
4694
|
+
};
|
|
4695
|
+
LinkCbaAccounts: {
|
|
4696
|
+
path: string;
|
|
4697
|
+
requestStream: boolean;
|
|
4698
|
+
responseStream: boolean;
|
|
4699
|
+
requestSerialize: (message: LinkCbaAccountsRequest) => Buffer;
|
|
4700
|
+
requestDeserialize: (bytes: Buffer) => LinkCbaAccountsRequest;
|
|
4701
|
+
responseSerialize: (message: MultiAccountResponse) => Buffer;
|
|
4702
|
+
responseDeserialize: (bytes: Buffer) => MultiAccountResponse;
|
|
4703
|
+
};
|
|
4323
4704
|
};
|
|
4324
4705
|
[method: string]: grpc_1.UntypedHandleCall;
|
|
4325
4706
|
abstract IssueAccount(call: grpc_1.ServerUnaryCall<IssueAccountRequest, AccountResponse>, callback: grpc_1.sendUnaryData<AccountResponse>): void;
|
|
@@ -4366,6 +4747,9 @@ export declare namespace com.pkg.account {
|
|
|
4366
4747
|
abstract GetPayoutLog(call: grpc_1.ServerUnaryCall<IdRequest, PayoutLogResponse>, callback: grpc_1.sendUnaryData<PayoutLogResponse>): void;
|
|
4367
4748
|
abstract UpdatePayoutLog(call: grpc_1.ServerUnaryCall<UpdatePayoutLogRequest, PayoutLogResponse>, callback: grpc_1.sendUnaryData<PayoutLogResponse>): void;
|
|
4368
4749
|
abstract RefreshPayoutLogStatus(call: grpc_1.ServerUnaryCall<IdRequest, PayoutLogResponse>, callback: grpc_1.sendUnaryData<PayoutLogResponse>): void;
|
|
4750
|
+
abstract LookupCbaBusinessAccounts(call: grpc_1.ServerUnaryCall<CbaPhoneRequest, CbaLinkableAccountsResponse>, callback: grpc_1.sendUnaryData<CbaLinkableAccountsResponse>): void;
|
|
4751
|
+
abstract ResolveCbaBusinessAccounts(call: grpc_1.ServerUnaryCall<ResolveCbaAccountsRequest, ResolvedCbaAccountsResponse>, callback: grpc_1.sendUnaryData<ResolvedCbaAccountsResponse>): void;
|
|
4752
|
+
abstract LinkCbaAccounts(call: grpc_1.ServerUnaryCall<LinkCbaAccountsRequest, MultiAccountResponse>, callback: grpc_1.sendUnaryData<MultiAccountResponse>): void;
|
|
4369
4753
|
}
|
|
4370
4754
|
const AccountsClient_base: grpc_1.ServiceClientConstructor;
|
|
4371
4755
|
export class AccountsClient extends AccountsClient_base {
|
|
@@ -4414,6 +4798,9 @@ export declare namespace com.pkg.account {
|
|
|
4414
4798
|
GetPayoutLog: GrpcPromiseServiceInterface<IdRequest, PayoutLogResponse>;
|
|
4415
4799
|
UpdatePayoutLog: GrpcPromiseServiceInterface<UpdatePayoutLogRequest, PayoutLogResponse>;
|
|
4416
4800
|
RefreshPayoutLogStatus: GrpcPromiseServiceInterface<IdRequest, PayoutLogResponse>;
|
|
4801
|
+
LookupCbaBusinessAccounts: GrpcPromiseServiceInterface<CbaPhoneRequest, CbaLinkableAccountsResponse>;
|
|
4802
|
+
ResolveCbaBusinessAccounts: GrpcPromiseServiceInterface<ResolveCbaAccountsRequest, ResolvedCbaAccountsResponse>;
|
|
4803
|
+
LinkCbaAccounts: GrpcPromiseServiceInterface<LinkCbaAccountsRequest, MultiAccountResponse>;
|
|
4417
4804
|
}
|
|
4418
4805
|
export {};
|
|
4419
4806
|
}
|
package/types/admin/admin.d.ts
CHANGED
|
@@ -2928,6 +2928,35 @@ export declare namespace com.pkg.admin {
|
|
|
2928
2928
|
serializeBinary(): Uint8Array;
|
|
2929
2929
|
static deserializeBinary(bytes: Uint8Array): RegionData;
|
|
2930
2930
|
}
|
|
2931
|
+
export class ChangeDefaultPasswordRequest extends pb_1.Message {
|
|
2932
|
+
#private;
|
|
2933
|
+
constructor(data?: any[] | {
|
|
2934
|
+
email?: string;
|
|
2935
|
+
defaultPassword?: string;
|
|
2936
|
+
newPassword?: string;
|
|
2937
|
+
});
|
|
2938
|
+
get email(): string;
|
|
2939
|
+
set email(value: string);
|
|
2940
|
+
get defaultPassword(): string;
|
|
2941
|
+
set defaultPassword(value: string);
|
|
2942
|
+
get newPassword(): string;
|
|
2943
|
+
set newPassword(value: string);
|
|
2944
|
+
static fromObject(data: {
|
|
2945
|
+
email?: string;
|
|
2946
|
+
defaultPassword?: string;
|
|
2947
|
+
newPassword?: string;
|
|
2948
|
+
}): ChangeDefaultPasswordRequest;
|
|
2949
|
+
toObject(): {
|
|
2950
|
+
email?: string | undefined;
|
|
2951
|
+
defaultPassword?: string | undefined;
|
|
2952
|
+
newPassword?: string | undefined;
|
|
2953
|
+
};
|
|
2954
|
+
serialize(): Uint8Array;
|
|
2955
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
2956
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ChangeDefaultPasswordRequest;
|
|
2957
|
+
serializeBinary(): Uint8Array;
|
|
2958
|
+
static deserializeBinary(bytes: Uint8Array): ChangeDefaultPasswordRequest;
|
|
2959
|
+
}
|
|
2931
2960
|
interface GrpcPromiseServiceInterface<P, R> {
|
|
2932
2961
|
(message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>;
|
|
2933
2962
|
(message: P, options?: grpc_1.CallOptions): Promise<R>;
|
|
@@ -3294,6 +3323,15 @@ export declare namespace com.pkg.admin {
|
|
|
3294
3323
|
responseSerialize: (message: AdminsResponse) => Buffer;
|
|
3295
3324
|
responseDeserialize: (bytes: Buffer) => AdminsResponse;
|
|
3296
3325
|
};
|
|
3326
|
+
ChangeDefaultPassword: {
|
|
3327
|
+
path: string;
|
|
3328
|
+
requestStream: boolean;
|
|
3329
|
+
responseStream: boolean;
|
|
3330
|
+
requestSerialize: (message: ChangeDefaultPasswordRequest) => Buffer;
|
|
3331
|
+
requestDeserialize: (bytes: Buffer) => ChangeDefaultPasswordRequest;
|
|
3332
|
+
responseSerialize: (message: AdminResponse) => Buffer;
|
|
3333
|
+
responseDeserialize: (bytes: Buffer) => AdminResponse;
|
|
3334
|
+
};
|
|
3297
3335
|
};
|
|
3298
3336
|
[method: string]: grpc_1.UntypedHandleCall;
|
|
3299
3337
|
abstract InviteAdmin(call: grpc_1.ServerUnaryCall<InviteAdminRequest, AdminResponse>, callback: grpc_1.sendUnaryData<AdminResponse>): void;
|
|
@@ -3336,6 +3374,7 @@ export declare namespace com.pkg.admin {
|
|
|
3336
3374
|
abstract UpdateRegionStatus(call: grpc_1.ServerUnaryCall<UpdateRegionStatusRequest, RegionResponse>, callback: grpc_1.sendUnaryData<RegionResponse>): void;
|
|
3337
3375
|
abstract GetAdminsByRegionId(call: grpc_1.ServerUnaryCall<IdRequest, AdminsResponse>, callback: grpc_1.sendUnaryData<AdminsResponse>): void;
|
|
3338
3376
|
abstract GetAdminRegionalManager(call: grpc_1.ServerUnaryCall<IdRequest, AdminsResponse>, callback: grpc_1.sendUnaryData<AdminsResponse>): void;
|
|
3377
|
+
abstract ChangeDefaultPassword(call: grpc_1.ServerUnaryCall<ChangeDefaultPasswordRequest, AdminResponse>, callback: grpc_1.sendUnaryData<AdminResponse>): void;
|
|
3339
3378
|
}
|
|
3340
3379
|
const AdminServiceClient_base: grpc_1.ServiceClientConstructor;
|
|
3341
3380
|
export class AdminServiceClient extends AdminServiceClient_base {
|
|
@@ -3380,6 +3419,7 @@ export declare namespace com.pkg.admin {
|
|
|
3380
3419
|
UpdateRegionStatus: GrpcPromiseServiceInterface<UpdateRegionStatusRequest, RegionResponse>;
|
|
3381
3420
|
GetAdminsByRegionId: GrpcPromiseServiceInterface<IdRequest, AdminsResponse>;
|
|
3382
3421
|
GetAdminRegionalManager: GrpcPromiseServiceInterface<IdRequest, AdminsResponse>;
|
|
3422
|
+
ChangeDefaultPassword: GrpcPromiseServiceInterface<ChangeDefaultPasswordRequest, AdminResponse>;
|
|
3383
3423
|
}
|
|
3384
3424
|
export {};
|
|
3385
3425
|
}
|
|
@@ -102,7 +102,7 @@ export declare namespace com.pkg.posv1.merchants {
|
|
|
102
102
|
get settlementInfo(): SettlementInfo;
|
|
103
103
|
set settlementInfo(value: SettlementInfo);
|
|
104
104
|
get hasSettlementInfo(): boolean;
|
|
105
|
-
get _business_name(): "
|
|
105
|
+
get _business_name(): "businessName" | "none";
|
|
106
106
|
get _contact_name(): "none" | "contactName";
|
|
107
107
|
get _email(): "email" | "none";
|
|
108
108
|
get _phone(): "phone" | "none";
|