@devline-smart-taxi/common 2.3.81 → 2.3.83
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/branch.proto +38 -0
- package/package.json +1 -1
package/dist/proto/branch.proto
CHANGED
|
@@ -22,6 +22,9 @@ service BranchService {
|
|
|
22
22
|
rpc GetMyBranches (common.NoParams) returns (MyBranchResponse);
|
|
23
23
|
rpc DeleteBranch (common.IdRequest) returns (common.SuccessResponseResult);
|
|
24
24
|
rpc DeactivateBranch (common.IdRequest) returns (common.SuccessResponseResult);
|
|
25
|
+
rpc GetGlobalCommission (common.NoParams) returns (CommissionResponse);
|
|
26
|
+
rpc UpdateGlobalCommission (UpdateGlobalCommissionRequest) returns (common.SuccessResponseResult);
|
|
27
|
+
rpc GetDriverEffectiveCommission (GetDriverEffectiveCommissionRequest) returns (DriverEffectiveCommissionResponse);
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
// ==========================================
|
|
@@ -30,12 +33,14 @@ service BranchService {
|
|
|
30
33
|
message CreateBranchRequest {
|
|
31
34
|
string name = 1;
|
|
32
35
|
string region = 2;
|
|
36
|
+
optional double driverCommissionRate = 3;
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
message UpdateBranchRequest {
|
|
36
40
|
string id = 1;
|
|
37
41
|
optional string name = 2;
|
|
38
42
|
optional string region = 3;
|
|
43
|
+
optional double driverCommissionRate = 4;
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
message GetAllBranchesRequest {
|
|
@@ -44,6 +49,14 @@ message GetAllBranchesRequest {
|
|
|
44
49
|
optional string search = 3;
|
|
45
50
|
}
|
|
46
51
|
|
|
52
|
+
message UpdateGlobalCommissionRequest {
|
|
53
|
+
double driverCommissionRate = 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
message GetDriverEffectiveCommissionRequest {
|
|
57
|
+
string driverId = 1;
|
|
58
|
+
}
|
|
59
|
+
|
|
47
60
|
// ==========================================
|
|
48
61
|
// 3. RESPONSE MESSAGES
|
|
49
62
|
// ==========================================
|
|
@@ -75,6 +88,7 @@ message BranchData {
|
|
|
75
88
|
string createdAt = 6;
|
|
76
89
|
optional string updatedAt = 7;
|
|
77
90
|
repeated string manager_ids = 8;
|
|
91
|
+
optional double driverCommissionRate = 9;
|
|
78
92
|
}
|
|
79
93
|
|
|
80
94
|
message MyBranchResponse {
|
|
@@ -82,3 +96,27 @@ message MyBranchResponse {
|
|
|
82
96
|
string message = 2;
|
|
83
97
|
repeated BranchData data = 3;
|
|
84
98
|
}
|
|
99
|
+
|
|
100
|
+
message CommissionData {
|
|
101
|
+
double driverCommissionRate = 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
message CommissionResponse {
|
|
105
|
+
int32 statusCode = 1;
|
|
106
|
+
string message = 2;
|
|
107
|
+
CommissionData data = 3;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
message DriverEffectiveCommissionData {
|
|
111
|
+
string driverId = 1;
|
|
112
|
+
optional string branchId = 2;
|
|
113
|
+
optional double branchCommissionRate = 3;
|
|
114
|
+
double globalCommissionRate = 4;
|
|
115
|
+
double effectiveCommissionRate = 5;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
message DriverEffectiveCommissionResponse {
|
|
119
|
+
int32 statusCode = 1;
|
|
120
|
+
string message = 2;
|
|
121
|
+
DriverEffectiveCommissionData data = 3;
|
|
122
|
+
}
|