@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.
@@ -32,6 +32,126 @@ var com;
32
32
  (function (pkg) {
33
33
  var verification;
34
34
  (function (verification) {
35
+ class ImportedBusinessVerificationRequest 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 ("userId" in data && data.userId != undefined) {
42
+ this.userId = data.userId;
43
+ }
44
+ if ("businessName" in data && data.businessName != undefined) {
45
+ this.businessName = data.businessName;
46
+ }
47
+ if ("businessEmail" in data && data.businessEmail != undefined) {
48
+ this.businessEmail = data.businessEmail;
49
+ }
50
+ if ("bvn" in data && data.bvn != undefined) {
51
+ this.bvn = data.bvn;
52
+ }
53
+ }
54
+ }
55
+ get userId() {
56
+ return pb_1.Message.getFieldWithDefault(this, 1, "");
57
+ }
58
+ set userId(value) {
59
+ pb_1.Message.setField(this, 1, value);
60
+ }
61
+ get businessName() {
62
+ return pb_1.Message.getFieldWithDefault(this, 2, "");
63
+ }
64
+ set businessName(value) {
65
+ pb_1.Message.setField(this, 2, value);
66
+ }
67
+ get businessEmail() {
68
+ return pb_1.Message.getFieldWithDefault(this, 3, "");
69
+ }
70
+ set businessEmail(value) {
71
+ pb_1.Message.setField(this, 3, value);
72
+ }
73
+ get bvn() {
74
+ return pb_1.Message.getFieldWithDefault(this, 4, "");
75
+ }
76
+ set bvn(value) {
77
+ pb_1.Message.setField(this, 4, value);
78
+ }
79
+ static fromObject(data) {
80
+ const message = new ImportedBusinessVerificationRequest({});
81
+ if (data.userId != null) {
82
+ message.userId = data.userId;
83
+ }
84
+ if (data.businessName != null) {
85
+ message.businessName = data.businessName;
86
+ }
87
+ if (data.businessEmail != null) {
88
+ message.businessEmail = data.businessEmail;
89
+ }
90
+ if (data.bvn != null) {
91
+ message.bvn = data.bvn;
92
+ }
93
+ return message;
94
+ }
95
+ toObject() {
96
+ const data = {};
97
+ if (this.userId != null) {
98
+ data.userId = this.userId;
99
+ }
100
+ if (this.businessName != null) {
101
+ data.businessName = this.businessName;
102
+ }
103
+ if (this.businessEmail != null) {
104
+ data.businessEmail = this.businessEmail;
105
+ }
106
+ if (this.bvn != null) {
107
+ data.bvn = this.bvn;
108
+ }
109
+ return data;
110
+ }
111
+ serialize(w) {
112
+ const writer = w || new pb_1.BinaryWriter();
113
+ if (this.userId.length)
114
+ writer.writeString(1, this.userId);
115
+ if (this.businessName.length)
116
+ writer.writeString(2, this.businessName);
117
+ if (this.businessEmail.length)
118
+ writer.writeString(3, this.businessEmail);
119
+ if (this.bvn.length)
120
+ writer.writeString(4, this.bvn);
121
+ if (!w)
122
+ return writer.getResultBuffer();
123
+ }
124
+ static deserialize(bytes) {
125
+ const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ImportedBusinessVerificationRequest();
126
+ while (reader.nextField()) {
127
+ if (reader.isEndGroup())
128
+ break;
129
+ switch (reader.getFieldNumber()) {
130
+ case 1:
131
+ message.userId = reader.readString();
132
+ break;
133
+ case 2:
134
+ message.businessName = reader.readString();
135
+ break;
136
+ case 3:
137
+ message.businessEmail = reader.readString();
138
+ break;
139
+ case 4:
140
+ message.bvn = reader.readString();
141
+ break;
142
+ default: reader.skipField();
143
+ }
144
+ }
145
+ return message;
146
+ }
147
+ serializeBinary() {
148
+ return this.serialize();
149
+ }
150
+ static deserializeBinary(bytes) {
151
+ return ImportedBusinessVerificationRequest.deserialize(bytes);
152
+ }
153
+ }
154
+ verification.ImportedBusinessVerificationRequest = ImportedBusinessVerificationRequest;
35
155
  class SaveVerificationSessionRequest extends pb_1.Message {
36
156
  #one_of_decls = [];
37
157
  constructor(data) {
@@ -7917,6 +8037,15 @@ var com;
7917
8037
  requestDeserialize: (bytes) => GetVerificationSessionRequest.deserialize(new Uint8Array(bytes)),
7918
8038
  responseSerialize: (message) => Buffer.from(message.serialize()),
7919
8039
  responseDeserialize: (bytes) => VerificationSessionResponse.deserialize(new Uint8Array(bytes))
8040
+ },
8041
+ CreateImportedBusinessVerification: {
8042
+ path: "/com.pkg.verification.VerificationService/CreateImportedBusinessVerification",
8043
+ requestStream: false,
8044
+ responseStream: false,
8045
+ requestSerialize: (message) => Buffer.from(message.serialize()),
8046
+ requestDeserialize: (bytes) => ImportedBusinessVerificationRequest.deserialize(new Uint8Array(bytes)),
8047
+ responseSerialize: (message) => Buffer.from(message.serialize()),
8048
+ responseDeserialize: (bytes) => DefaultResponse.deserialize(new Uint8Array(bytes))
7920
8049
  }
7921
8050
  };
7922
8051
  }
@@ -8517,6 +8646,22 @@ var com;
8517
8646
  }
8518
8647
  }));
8519
8648
  };
8649
+ CreateImportedBusinessVerification = (message, metadata, options) => {
8650
+ if (!metadata) {
8651
+ metadata = new grpc_1.Metadata;
8652
+ }
8653
+ if (!options) {
8654
+ options = {};
8655
+ }
8656
+ return new Promise((resolve, reject) => super.CreateImportedBusinessVerification(message, metadata, options, (error, response) => {
8657
+ if (error) {
8658
+ reject(error);
8659
+ }
8660
+ else {
8661
+ resolve(response);
8662
+ }
8663
+ }));
8664
+ };
8520
8665
  }
8521
8666
  verification.VerificationServiceClient = VerificationServiceClient;
8522
8667
  })(verification = pkg.verification || (pkg.verification = {}));