@devline-smart-taxi/common 2.3.86 → 2.3.88
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/dist/proto/driver.proto +32 -0
- package/dist/proto/wallet.proto +80 -0
- package/package.json +1 -1
package/dist/proto/driver.proto
CHANGED
|
@@ -8,6 +8,9 @@ import "common.proto";
|
|
|
8
8
|
// 1. SERVICES
|
|
9
9
|
// ==========================================
|
|
10
10
|
service DriverService {
|
|
11
|
+
// Admin tomonidan haydovchini to'liq onboarding qilish
|
|
12
|
+
rpc AdminOnboardDriver (AdminOnboardDriverRequest) returns (common.SuccessResponseResult);
|
|
13
|
+
|
|
11
14
|
// Ro'yxatdan o'tish uchun OTP yuborish
|
|
12
15
|
rpc SendOtpRegistration (SendOtpRequest) returns (SendOtpResponse);
|
|
13
16
|
|
|
@@ -110,6 +113,35 @@ message SendOtpRequest {
|
|
|
110
113
|
bool hasDataConsent = 2;
|
|
111
114
|
}
|
|
112
115
|
|
|
116
|
+
message AdminOnboardDriverRequest {
|
|
117
|
+
string phoneNumber = 1;
|
|
118
|
+
string firstName = 2;
|
|
119
|
+
optional string lastName = 3;
|
|
120
|
+
optional string email = 4;
|
|
121
|
+
optional string birthDate = 5;
|
|
122
|
+
optional string address = 6;
|
|
123
|
+
optional string lang = 7;
|
|
124
|
+
optional string branchId = 8;
|
|
125
|
+
string pinfl = 9;
|
|
126
|
+
string cardFrontId = 10;
|
|
127
|
+
string cardBackId = 11;
|
|
128
|
+
string selfieWithCardId = 12;
|
|
129
|
+
optional string profilePhotoId = 13;
|
|
130
|
+
string carClassId = 14;
|
|
131
|
+
string carBrand = 15;
|
|
132
|
+
string carModel = 16;
|
|
133
|
+
string carNumber = 17;
|
|
134
|
+
string carColor = 18;
|
|
135
|
+
bool isOwner = 19;
|
|
136
|
+
string documentFrontId = 20;
|
|
137
|
+
string documentBackId = 21;
|
|
138
|
+
string licenseNumber = 22;
|
|
139
|
+
string expiryDate = 23;
|
|
140
|
+
int32 experience = 24;
|
|
141
|
+
string licenseFrontId = 25;
|
|
142
|
+
string licenseBackId = 26;
|
|
143
|
+
}
|
|
144
|
+
|
|
113
145
|
message VerifyOtpRequest {
|
|
114
146
|
string phoneNumber = 1;
|
|
115
147
|
int32 otp = 2;
|
package/dist/proto/wallet.proto
CHANGED
|
@@ -29,6 +29,13 @@ service WalletService {
|
|
|
29
29
|
rpc GetSettlementOverview (GetSettlementOverviewRequest) returns (SettlementOverviewResponse);
|
|
30
30
|
rpc GetAdminDriverSettlement (GetAdminDriverSettlementRequest) returns (AdminDriverSettlementResponse);
|
|
31
31
|
rpc GetBranchDashboard (GetBranchDashboardRequest) returns (BranchDashboardResponse);
|
|
32
|
+
|
|
33
|
+
// Client Cards (Payme)
|
|
34
|
+
rpc CreatePaymentCard (CreatePaymentCardRequest) returns (CreatePaymentCardResponse);
|
|
35
|
+
rpc VerifyPaymentCard (VerifyPaymentCardRequest) returns (VerifyPaymentCardResponse);
|
|
36
|
+
rpc GetMyPaymentCards (GetMyPaymentCardsRequest) returns (GetMyPaymentCardsResponse);
|
|
37
|
+
rpc RemovePaymentCard (RemovePaymentCardRequest) returns (RemovePaymentCardResponse);
|
|
38
|
+
rpc SetMainPaymentCard (SetMainPaymentCardRequest) returns (SetMainPaymentCardResponse);
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
// ==========================================
|
|
@@ -195,6 +202,43 @@ message ApplyPromoCodeRequest {
|
|
|
195
202
|
string promoCode = 2;
|
|
196
203
|
}
|
|
197
204
|
|
|
205
|
+
// Client Payment Cards (Payme)
|
|
206
|
+
message PaymentCardData {
|
|
207
|
+
string id = 1;
|
|
208
|
+
string clientId = 2;
|
|
209
|
+
string number = 3;
|
|
210
|
+
string expire = 4;
|
|
211
|
+
bool isVerified = 5;
|
|
212
|
+
bool isMain = 6;
|
|
213
|
+
string createdAt = 7;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
message CreatePaymentCardRequest {
|
|
217
|
+
string clientId = 1;
|
|
218
|
+
string number = 2;
|
|
219
|
+
string expire = 3;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
message VerifyPaymentCardRequest {
|
|
223
|
+
string clientId = 1;
|
|
224
|
+
string verifyCode = 2;
|
|
225
|
+
string token = 3;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
message GetMyPaymentCardsRequest {
|
|
229
|
+
string clientId = 1;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
message RemovePaymentCardRequest {
|
|
233
|
+
string clientId = 1;
|
|
234
|
+
string cardId = 2;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
message SetMainPaymentCardRequest {
|
|
238
|
+
string clientId = 1;
|
|
239
|
+
string cardId = 2;
|
|
240
|
+
}
|
|
241
|
+
|
|
198
242
|
// Driver
|
|
199
243
|
message GetDriverBalanceRequest {
|
|
200
244
|
string driverId = 1;
|
|
@@ -288,6 +332,42 @@ message WalletResponse {
|
|
|
288
332
|
WalletData data = 3;
|
|
289
333
|
}
|
|
290
334
|
|
|
335
|
+
// Client Payment Cards
|
|
336
|
+
message CreatePaymentCardData {
|
|
337
|
+
string token = 1;
|
|
338
|
+
string phone = 2;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
message CreatePaymentCardResponse {
|
|
342
|
+
int32 statusCode = 1;
|
|
343
|
+
string message = 2;
|
|
344
|
+
CreatePaymentCardData data = 3;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
message VerifyPaymentCardResponse {
|
|
348
|
+
int32 statusCode = 1;
|
|
349
|
+
string message = 2;
|
|
350
|
+
PaymentCardData data = 3;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
message GetMyPaymentCardsResponse {
|
|
354
|
+
int32 statusCode = 1;
|
|
355
|
+
string message = 2;
|
|
356
|
+
repeated PaymentCardData data = 3;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
message RemovePaymentCardResponse {
|
|
360
|
+
int32 statusCode = 1;
|
|
361
|
+
string message = 2;
|
|
362
|
+
bool data = 3;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
message SetMainPaymentCardResponse {
|
|
366
|
+
int32 statusCode = 1;
|
|
367
|
+
string message = 2;
|
|
368
|
+
PaymentCardData data = 3;
|
|
369
|
+
}
|
|
370
|
+
|
|
291
371
|
// Driver balance
|
|
292
372
|
message DriverBalanceResponse {
|
|
293
373
|
int32 statusCode = 1;
|