@devline-smart-taxi/common 2.3.87 → 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/wallet.proto +80 -0
- package/package.json +1 -1
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;
|