@devline-smart-taxi/common 2.3.64 → 2.3.66
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/trip.proto +11 -0
- package/dist/proto/wallet.proto +93 -0
- package/package.json +1 -1
package/dist/proto/trip.proto
CHANGED
|
@@ -21,6 +21,9 @@ service TripService {
|
|
|
21
21
|
rpc CancelTrip (CancelTripRequest) returns (TripResponse);
|
|
22
22
|
// INTER-SERVICE
|
|
23
23
|
rpc CheckDriverHasActiveTrip (CheckDriverHasActiveTripRequest) returns (CheckDriverHasActiveTripResponse);
|
|
24
|
+
|
|
25
|
+
// DRIVER STATS
|
|
26
|
+
rpc GetDriverTodayTripsCount (GetDriverTodayTripsCountRequest) returns (GetDriverTodayTripsCountResponse);
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
// ==========================================
|
|
@@ -183,4 +186,12 @@ message TripDetailResponse {
|
|
|
183
186
|
// Manzil nomlari
|
|
184
187
|
optional string pickupAddress = 21;
|
|
185
188
|
optional string destinationAddress = 22;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
message GetDriverTodayTripsCountRequest {
|
|
192
|
+
string driverId = 1;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
message GetDriverTodayTripsCountResponse {
|
|
196
|
+
int32 count = 1;
|
|
186
197
|
}
|
package/dist/proto/wallet.proto
CHANGED
|
@@ -18,11 +18,15 @@ service WalletService {
|
|
|
18
18
|
rpc AddDriverEarning (AddDriverEarningRequest) returns (AddDriverEarningResponse);
|
|
19
19
|
rpc GetDriverTransactions (GetDriverTransactionsRequest) returns (DriverTransactionListResponse);
|
|
20
20
|
rpc RequestWithdrawal (RequestWithdrawalRequest) returns (WithdrawalResponse);
|
|
21
|
+
rpc GetDriverSettlementSummary (GetDriverSettlementSummaryRequest) returns (DriverSettlementSummaryResponse);
|
|
22
|
+
rpc GetDriverSettlementLedger (GetDriverSettlementLedgerRequest) returns (DriverSettlementLedgerResponse);
|
|
21
23
|
|
|
22
24
|
// Admin
|
|
23
25
|
rpc ProcessWithdrawal (ProcessWithdrawalRequest) returns (ProcessWithdrawalResponse);
|
|
24
26
|
rpc GetPendingWithdrawals (GetPendingWithdrawalsRequest) returns (PendingWithdrawalsResponse);
|
|
25
27
|
rpc GetAllDriverBalances (GetAllDriverBalancesRequest) returns (AllDriverBalancesResponse);
|
|
28
|
+
rpc GetSettlementOverview (GetSettlementOverviewRequest) returns (SettlementOverviewResponse);
|
|
29
|
+
rpc GetAdminDriverSettlement (GetAdminDriverSettlementRequest) returns (AdminDriverSettlementResponse);
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
// ==========================================
|
|
@@ -69,6 +73,44 @@ message DriverBalanceData {
|
|
|
69
73
|
float balance = 2;
|
|
70
74
|
}
|
|
71
75
|
|
|
76
|
+
message DriverSettlementSummaryData {
|
|
77
|
+
float credits = 1;
|
|
78
|
+
float debits = 2;
|
|
79
|
+
float netPayable = 3;
|
|
80
|
+
float availableToWithdraw = 4;
|
|
81
|
+
float outstandingDebt = 5;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
message DriverSettlementEntryData {
|
|
85
|
+
string id = 1;
|
|
86
|
+
string driverId = 2;
|
|
87
|
+
optional string tripId = 3;
|
|
88
|
+
string entryType = 4;
|
|
89
|
+
string direction = 5;
|
|
90
|
+
float amount = 6;
|
|
91
|
+
string currency = 7;
|
|
92
|
+
optional string metadata = 8;
|
|
93
|
+
string createdAt = 9;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
message DriverSettlementLedgerData {
|
|
97
|
+
repeated DriverSettlementEntryData entries = 1;
|
|
98
|
+
int32 total = 2;
|
|
99
|
+
int32 page = 3;
|
|
100
|
+
int32 pageSize = 4;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
message SettlementOverviewData {
|
|
104
|
+
int32 totalDrivers = 1;
|
|
105
|
+
float totalLiability = 2;
|
|
106
|
+
float totalDriverDebt = 3;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
message AdminDriverSettlementData {
|
|
110
|
+
DriverSettlementSummaryData summary = 1;
|
|
111
|
+
DriverSettlementLedgerData ledger = 2;
|
|
112
|
+
}
|
|
113
|
+
|
|
72
114
|
// ==========================================
|
|
73
115
|
// 3. REQUESTS
|
|
74
116
|
// ==========================================
|
|
@@ -109,6 +151,19 @@ message RequestWithdrawalRequest {
|
|
|
109
151
|
string cardHolderName = 4;
|
|
110
152
|
}
|
|
111
153
|
|
|
154
|
+
message GetDriverSettlementSummaryRequest {
|
|
155
|
+
string driverId = 1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
message GetDriverSettlementLedgerRequest {
|
|
159
|
+
string driverId = 1;
|
|
160
|
+
optional int32 page = 2;
|
|
161
|
+
optional int32 pageSize = 3;
|
|
162
|
+
optional string entryType = 4;
|
|
163
|
+
optional string fromDate = 5;
|
|
164
|
+
optional string toDate = 6;
|
|
165
|
+
}
|
|
166
|
+
|
|
112
167
|
// Admin
|
|
113
168
|
message ProcessWithdrawalRequest {
|
|
114
169
|
string withdrawalId = 1;
|
|
@@ -127,6 +182,20 @@ message GetAllDriverBalancesRequest {
|
|
|
127
182
|
int32 pageSize = 2;
|
|
128
183
|
}
|
|
129
184
|
|
|
185
|
+
message GetSettlementOverviewRequest {
|
|
186
|
+
optional string fromDate = 1;
|
|
187
|
+
optional string toDate = 2;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
message GetAdminDriverSettlementRequest {
|
|
191
|
+
string driverId = 1;
|
|
192
|
+
optional int32 page = 2;
|
|
193
|
+
optional int32 pageSize = 3;
|
|
194
|
+
optional string entryType = 4;
|
|
195
|
+
optional string fromDate = 5;
|
|
196
|
+
optional string toDate = 6;
|
|
197
|
+
}
|
|
198
|
+
|
|
130
199
|
// ==========================================
|
|
131
200
|
// 4. RESPONSES
|
|
132
201
|
// ==========================================
|
|
@@ -186,6 +255,18 @@ message WithdrawalResponse {
|
|
|
186
255
|
WithdrawalResponseData data = 3;
|
|
187
256
|
}
|
|
188
257
|
|
|
258
|
+
message DriverSettlementSummaryResponse {
|
|
259
|
+
int32 statusCode = 1;
|
|
260
|
+
string message = 2;
|
|
261
|
+
DriverSettlementSummaryData data = 3;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
message DriverSettlementLedgerResponse {
|
|
265
|
+
int32 statusCode = 1;
|
|
266
|
+
string message = 2;
|
|
267
|
+
DriverSettlementLedgerData data = 3;
|
|
268
|
+
}
|
|
269
|
+
|
|
189
270
|
// Withdrawal processed
|
|
190
271
|
message ProcessWithdrawalData {
|
|
191
272
|
string id = 1;
|
|
@@ -226,3 +307,15 @@ message AllDriverBalancesResponse {
|
|
|
226
307
|
string message = 2;
|
|
227
308
|
AllDriverBalancesData data = 3;
|
|
228
309
|
}
|
|
310
|
+
|
|
311
|
+
message SettlementOverviewResponse {
|
|
312
|
+
int32 statusCode = 1;
|
|
313
|
+
string message = 2;
|
|
314
|
+
SettlementOverviewData data = 3;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
message AdminDriverSettlementResponse {
|
|
318
|
+
int32 statusCode = 1;
|
|
319
|
+
string message = 2;
|
|
320
|
+
AdminDriverSettlementData data = 3;
|
|
321
|
+
}
|