@arbiwallet/contracts 1.0.261 → 1.0.263
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/gen/crm_auth.ts +4 -4
- package/gen/crm_manager.ts +13 -13
- package/gen/referral.ts +35 -69
- package/package.json +1 -1
- package/proto/crm_auth.proto +12 -12
- package/proto/crm_manager.proto +39 -39
- package/proto/referral.proto +18 -45
package/gen/crm_auth.ts
CHANGED
|
@@ -68,18 +68,18 @@ export interface CrmManagerResponse {
|
|
|
68
68
|
username: string;
|
|
69
69
|
firstName: string;
|
|
70
70
|
lastName: string;
|
|
71
|
-
fullName: string;
|
|
72
71
|
displayName: string;
|
|
73
72
|
avatarUrl: string;
|
|
74
73
|
status: CrmManagerStatus;
|
|
75
74
|
createdAtUnixMs: number;
|
|
76
75
|
roles: string[];
|
|
77
|
-
role: string;
|
|
78
76
|
permissions: string[];
|
|
79
|
-
permissionsVersion: number;
|
|
80
77
|
isSuperAdmin: boolean;
|
|
81
|
-
canCrossOffice: boolean;
|
|
82
78
|
sectionPermissions: SectionPermission[];
|
|
79
|
+
fullName: string;
|
|
80
|
+
role: string;
|
|
81
|
+
permissionsVersion: number;
|
|
82
|
+
canCrossOffice: boolean;
|
|
83
83
|
officeIds: string[];
|
|
84
84
|
}
|
|
85
85
|
|
package/gen/crm_manager.ts
CHANGED
|
@@ -29,21 +29,21 @@ export interface ManagerRecord {
|
|
|
29
29
|
username: string;
|
|
30
30
|
firstName: string;
|
|
31
31
|
lastName: string;
|
|
32
|
-
fullName: string;
|
|
33
32
|
displayName: string;
|
|
34
33
|
avatarUrl: string;
|
|
35
34
|
status: CrmManagerRecordStatus;
|
|
36
|
-
isActive: boolean;
|
|
37
35
|
createdAtUnixMs: number;
|
|
38
|
-
updatedAtUnixMs: number;
|
|
39
36
|
roles: string[];
|
|
40
|
-
role: string;
|
|
41
37
|
permissions: string[];
|
|
42
|
-
permissionsVersion: number;
|
|
43
38
|
isSuperAdmin: boolean;
|
|
44
|
-
canCrossOffice: boolean;
|
|
45
39
|
sectionPermissions: SectionPermission[];
|
|
46
40
|
officeIds: string[];
|
|
41
|
+
fullName: string;
|
|
42
|
+
isActive: boolean;
|
|
43
|
+
updatedAtUnixMs: number;
|
|
44
|
+
role: string;
|
|
45
|
+
permissionsVersion: number;
|
|
46
|
+
canCrossOffice: boolean;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export interface RoleRecord {
|
|
@@ -104,16 +104,16 @@ export interface CreateManagerRequest {
|
|
|
104
104
|
username: string;
|
|
105
105
|
firstName: string;
|
|
106
106
|
lastName: string;
|
|
107
|
-
fullName: string;
|
|
108
107
|
displayName: string;
|
|
109
108
|
avatarUrl: string;
|
|
110
109
|
status: CrmManagerRecordStatus;
|
|
111
|
-
canCrossOffice: boolean;
|
|
112
110
|
roleNames: string[];
|
|
113
|
-
customPermissions: string[];
|
|
114
111
|
sectionPermissions: SectionPermission[];
|
|
115
112
|
officeIds: string[];
|
|
116
113
|
password: string;
|
|
114
|
+
fullName: string;
|
|
115
|
+
canCrossOffice: boolean;
|
|
116
|
+
customPermissions: string[];
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
export interface CreateManagerResponse {
|
|
@@ -128,20 +128,20 @@ export interface UpdateManagerRequest {
|
|
|
128
128
|
username: string;
|
|
129
129
|
firstName: string;
|
|
130
130
|
lastName: string;
|
|
131
|
-
fullName: string;
|
|
132
131
|
displayName: string;
|
|
133
132
|
avatarUrl: string;
|
|
134
133
|
status: CrmManagerRecordStatus;
|
|
135
|
-
canCrossOffice?: boolean | undefined;
|
|
136
134
|
replaceRoles: boolean;
|
|
137
135
|
roleNames: string[];
|
|
138
|
-
replaceCustomPermissions: boolean;
|
|
139
|
-
customPermissions: string[];
|
|
140
136
|
sectionPermissions: SectionPermission[];
|
|
141
137
|
replaceSectionPermissions: boolean;
|
|
142
138
|
replaceOfficeIds: boolean;
|
|
143
139
|
officeIds: string[];
|
|
144
140
|
password: string;
|
|
141
|
+
fullName: string;
|
|
142
|
+
canCrossOffice?: boolean | undefined;
|
|
143
|
+
replaceCustomPermissions: boolean;
|
|
144
|
+
customPermissions: string[];
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
export interface UpdateManagerResponse {
|
package/gen/referral.ts
CHANGED
|
@@ -98,8 +98,6 @@ export interface GetReferralSummaryResponse {
|
|
|
98
98
|
balances: ReferralBalanceItem[];
|
|
99
99
|
referralsCount: number;
|
|
100
100
|
totalUsdVolume: string;
|
|
101
|
-
totalUsdtBalance: string;
|
|
102
|
-
availableUsdtBalance: string;
|
|
103
101
|
}
|
|
104
102
|
|
|
105
103
|
export interface ListReferralsRequest {
|
|
@@ -124,6 +122,22 @@ export interface ListReferralsResponse {
|
|
|
124
122
|
limit: number;
|
|
125
123
|
}
|
|
126
124
|
|
|
125
|
+
export interface GetReferredUserIdsRequest {
|
|
126
|
+
userId: number;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface GetReferredUserIdsResponse {
|
|
130
|
+
referredUserIds: number[];
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface BatchGetDirectReferrersByUserIdsRequest {
|
|
134
|
+
userIds: number[];
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface BatchGetDirectReferrersByUserIdsResponse {
|
|
138
|
+
directReferrerIds: number[];
|
|
139
|
+
}
|
|
140
|
+
|
|
127
141
|
export interface ApplyExchangeCompletedRequest {
|
|
128
142
|
exchangeId: string;
|
|
129
143
|
walletUserId: string;
|
|
@@ -199,28 +213,6 @@ export interface ConfirmPayoutRequest {
|
|
|
199
213
|
confirmedByManagerId?: string | undefined;
|
|
200
214
|
}
|
|
201
215
|
|
|
202
|
-
export interface UpdatePayoutRequest {
|
|
203
|
-
payoutId: string;
|
|
204
|
-
amount?: string | undefined;
|
|
205
|
-
currency?: string | undefined;
|
|
206
|
-
paymentMethod?: string | undefined;
|
|
207
|
-
outputCurrency?: string | undefined;
|
|
208
|
-
comment?: string | undefined;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export interface CancelPayoutRequest {
|
|
212
|
-
payoutId: string;
|
|
213
|
-
reason?: string | undefined;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export interface DeletePayoutRequest {
|
|
217
|
-
payoutId: string;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export interface DeletePayoutResponse {
|
|
221
|
-
deleted: boolean;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
216
|
export interface ReferralPayoutResponse {
|
|
225
217
|
id: string;
|
|
226
218
|
profileId: string;
|
|
@@ -232,7 +224,6 @@ export interface ReferralPayoutResponse {
|
|
|
232
224
|
comment?: string | undefined;
|
|
233
225
|
createdAt: string;
|
|
234
226
|
updatedAt: string;
|
|
235
|
-
walletUserId?: string | undefined;
|
|
236
227
|
}
|
|
237
228
|
|
|
238
229
|
export interface ListPayoutsRequest {
|
|
@@ -248,22 +239,6 @@ export interface ListPayoutsResponse {
|
|
|
248
239
|
limit: number;
|
|
249
240
|
}
|
|
250
241
|
|
|
251
|
-
export interface RecreatedBalanceItem {
|
|
252
|
-
currency: string;
|
|
253
|
-
amount: string;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export interface RecreateBonusesRequest {
|
|
257
|
-
walletUserId: string;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export interface RecreateBonusesResponse {
|
|
261
|
-
success: boolean;
|
|
262
|
-
commissionsCount: number;
|
|
263
|
-
payoutsCount: number;
|
|
264
|
-
balances: RecreatedBalanceItem[];
|
|
265
|
-
}
|
|
266
|
-
|
|
267
242
|
export interface AdminRecalculateExchangeRequest {
|
|
268
243
|
exchangeId: string;
|
|
269
244
|
dryRun: boolean;
|
|
@@ -292,6 +267,12 @@ export interface ReferralServiceClient {
|
|
|
292
267
|
|
|
293
268
|
listReferrals(request: ListReferralsRequest): Observable<ListReferralsResponse>;
|
|
294
269
|
|
|
270
|
+
getReferredUserIds(request: GetReferredUserIdsRequest): Observable<GetReferredUserIdsResponse>;
|
|
271
|
+
|
|
272
|
+
batchGetDirectReferrersByUserIds(
|
|
273
|
+
request: BatchGetDirectReferrersByUserIdsRequest,
|
|
274
|
+
): Observable<BatchGetDirectReferrersByUserIdsResponse>;
|
|
275
|
+
|
|
295
276
|
applyExchangeCompleted(request: ApplyExchangeCompletedRequest): Observable<ApplyExchangeCompletedResponse>;
|
|
296
277
|
|
|
297
278
|
applyExchangeCancelled(request: ApplyExchangeCancelledRequest): Observable<ApplyExchangeCancelledResponse>;
|
|
@@ -302,16 +283,8 @@ export interface ReferralServiceClient {
|
|
|
302
283
|
|
|
303
284
|
confirmPayout(request: ConfirmPayoutRequest): Observable<ReferralPayoutResponse>;
|
|
304
285
|
|
|
305
|
-
updatePayout(request: UpdatePayoutRequest): Observable<ReferralPayoutResponse>;
|
|
306
|
-
|
|
307
|
-
cancelPayout(request: CancelPayoutRequest): Observable<ReferralPayoutResponse>;
|
|
308
|
-
|
|
309
|
-
deletePayout(request: DeletePayoutRequest): Observable<DeletePayoutResponse>;
|
|
310
|
-
|
|
311
286
|
listPayouts(request: ListPayoutsRequest): Observable<ListPayoutsResponse>;
|
|
312
287
|
|
|
313
|
-
recreateBonuses(request: RecreateBonusesRequest): Observable<RecreateBonusesResponse>;
|
|
314
|
-
|
|
315
288
|
adminRecalculateExchange(request: AdminRecalculateExchangeRequest): Observable<AdminRecalculateExchangeResponse>;
|
|
316
289
|
}
|
|
317
290
|
|
|
@@ -341,6 +314,17 @@ export interface ReferralServiceController {
|
|
|
341
314
|
request: ListReferralsRequest,
|
|
342
315
|
): Promise<ListReferralsResponse> | Observable<ListReferralsResponse> | ListReferralsResponse;
|
|
343
316
|
|
|
317
|
+
getReferredUserIds(
|
|
318
|
+
request: GetReferredUserIdsRequest,
|
|
319
|
+
): Promise<GetReferredUserIdsResponse> | Observable<GetReferredUserIdsResponse> | GetReferredUserIdsResponse;
|
|
320
|
+
|
|
321
|
+
batchGetDirectReferrersByUserIds(
|
|
322
|
+
request: BatchGetDirectReferrersByUserIdsRequest,
|
|
323
|
+
):
|
|
324
|
+
| Promise<BatchGetDirectReferrersByUserIdsResponse>
|
|
325
|
+
| Observable<BatchGetDirectReferrersByUserIdsResponse>
|
|
326
|
+
| BatchGetDirectReferrersByUserIdsResponse;
|
|
327
|
+
|
|
344
328
|
applyExchangeCompleted(
|
|
345
329
|
request: ApplyExchangeCompletedRequest,
|
|
346
330
|
):
|
|
@@ -367,26 +351,10 @@ export interface ReferralServiceController {
|
|
|
367
351
|
request: ConfirmPayoutRequest,
|
|
368
352
|
): Promise<ReferralPayoutResponse> | Observable<ReferralPayoutResponse> | ReferralPayoutResponse;
|
|
369
353
|
|
|
370
|
-
updatePayout(
|
|
371
|
-
request: UpdatePayoutRequest,
|
|
372
|
-
): Promise<ReferralPayoutResponse> | Observable<ReferralPayoutResponse> | ReferralPayoutResponse;
|
|
373
|
-
|
|
374
|
-
cancelPayout(
|
|
375
|
-
request: CancelPayoutRequest,
|
|
376
|
-
): Promise<ReferralPayoutResponse> | Observable<ReferralPayoutResponse> | ReferralPayoutResponse;
|
|
377
|
-
|
|
378
|
-
deletePayout(
|
|
379
|
-
request: DeletePayoutRequest,
|
|
380
|
-
): Promise<DeletePayoutResponse> | Observable<DeletePayoutResponse> | DeletePayoutResponse;
|
|
381
|
-
|
|
382
354
|
listPayouts(
|
|
383
355
|
request: ListPayoutsRequest,
|
|
384
356
|
): Promise<ListPayoutsResponse> | Observable<ListPayoutsResponse> | ListPayoutsResponse;
|
|
385
357
|
|
|
386
|
-
recreateBonuses(
|
|
387
|
-
request: RecreateBonusesRequest,
|
|
388
|
-
): Promise<RecreateBonusesResponse> | Observable<RecreateBonusesResponse> | RecreateBonusesResponse;
|
|
389
|
-
|
|
390
358
|
adminRecalculateExchange(
|
|
391
359
|
request: AdminRecalculateExchangeRequest,
|
|
392
360
|
):
|
|
@@ -403,16 +371,14 @@ export function ReferralServiceControllerMethods() {
|
|
|
403
371
|
"bindReferralByCode",
|
|
404
372
|
"getReferralSummary",
|
|
405
373
|
"listReferrals",
|
|
374
|
+
"getReferredUserIds",
|
|
375
|
+
"batchGetDirectReferrersByUserIds",
|
|
406
376
|
"applyExchangeCompleted",
|
|
407
377
|
"applyExchangeCancelled",
|
|
408
378
|
"listCommissions",
|
|
409
379
|
"createPayout",
|
|
410
380
|
"confirmPayout",
|
|
411
|
-
"updatePayout",
|
|
412
|
-
"cancelPayout",
|
|
413
|
-
"deletePayout",
|
|
414
381
|
"listPayouts",
|
|
415
|
-
"recreateBonuses",
|
|
416
382
|
"adminRecalculateExchange",
|
|
417
383
|
];
|
|
418
384
|
for (const method of grpcMethods) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbiwallet/contracts",
|
|
3
3
|
"descriptions": "Generate and manage smart contracts for ArbiWallet",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.263",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
package/proto/crm_auth.proto
CHANGED
|
@@ -66,18 +66,18 @@ message CrmManagerResponse {
|
|
|
66
66
|
string username = 3;
|
|
67
67
|
string first_name = 4;
|
|
68
68
|
string last_name = 5;
|
|
69
|
-
string
|
|
70
|
-
string
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
repeated string
|
|
75
|
-
|
|
76
|
-
repeated
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
69
|
+
string display_name = 6;
|
|
70
|
+
string avatar_url = 7;
|
|
71
|
+
CrmManagerStatus status = 8;
|
|
72
|
+
int64 created_at_unix_ms = 9;
|
|
73
|
+
repeated string roles = 10;
|
|
74
|
+
repeated string permissions = 11;
|
|
75
|
+
bool is_super_admin = 12;
|
|
76
|
+
repeated SectionPermission section_permissions = 13;
|
|
77
|
+
string full_name = 14;
|
|
78
|
+
string role = 15;
|
|
79
|
+
int32 permissions_version = 16;
|
|
80
|
+
bool can_cross_office = 17;
|
|
81
81
|
repeated string office_ids = 18;
|
|
82
82
|
}
|
|
83
83
|
|
package/proto/crm_manager.proto
CHANGED
|
@@ -37,21 +37,21 @@ message ManagerRecord {
|
|
|
37
37
|
string username = 3;
|
|
38
38
|
string first_name = 4;
|
|
39
39
|
string last_name = 5;
|
|
40
|
-
string
|
|
41
|
-
string
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
repeated
|
|
48
|
-
string
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
40
|
+
string display_name = 6;
|
|
41
|
+
string avatar_url = 7;
|
|
42
|
+
CrmManagerRecordStatus status = 8;
|
|
43
|
+
int64 created_at_unix_ms = 9;
|
|
44
|
+
repeated string roles = 10;
|
|
45
|
+
repeated string permissions = 11;
|
|
46
|
+
bool is_super_admin = 12;
|
|
47
|
+
repeated SectionPermission section_permissions = 13;
|
|
48
|
+
repeated string office_ids = 14;
|
|
49
|
+
string full_name = 15;
|
|
50
|
+
bool is_active = 16;
|
|
51
|
+
int64 updated_at_unix_ms = 17;
|
|
52
|
+
string role = 18;
|
|
53
|
+
int32 permissions_version = 19;
|
|
54
|
+
bool can_cross_office = 20;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
message RoleRecord {
|
|
@@ -112,16 +112,16 @@ message CreateManagerRequest {
|
|
|
112
112
|
string username = 2;
|
|
113
113
|
string first_name = 3;
|
|
114
114
|
string last_name = 4;
|
|
115
|
-
string
|
|
116
|
-
string
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
repeated string
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
string
|
|
115
|
+
string display_name = 5;
|
|
116
|
+
string avatar_url = 6;
|
|
117
|
+
CrmManagerRecordStatus status = 7;
|
|
118
|
+
repeated string role_names = 8;
|
|
119
|
+
repeated SectionPermission section_permissions = 9;
|
|
120
|
+
repeated string office_ids = 10;
|
|
121
|
+
string password = 11;
|
|
122
|
+
string full_name = 12;
|
|
123
|
+
bool can_cross_office = 13;
|
|
124
|
+
repeated string custom_permissions = 14;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
message CreateManagerResponse {
|
|
@@ -136,20 +136,20 @@ message UpdateManagerRequest {
|
|
|
136
136
|
string username = 3;
|
|
137
137
|
string first_name = 4;
|
|
138
138
|
string last_name = 5;
|
|
139
|
-
string
|
|
140
|
-
string
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
bool
|
|
147
|
-
repeated string
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
bool
|
|
151
|
-
|
|
152
|
-
string
|
|
139
|
+
string display_name = 6;
|
|
140
|
+
string avatar_url = 7;
|
|
141
|
+
CrmManagerRecordStatus status = 8;
|
|
142
|
+
bool replace_roles = 9;
|
|
143
|
+
repeated string role_names = 10;
|
|
144
|
+
repeated SectionPermission section_permissions = 11;
|
|
145
|
+
bool replace_section_permissions = 12;
|
|
146
|
+
bool replace_office_ids = 13;
|
|
147
|
+
repeated string office_ids = 14;
|
|
148
|
+
string password = 15;
|
|
149
|
+
string full_name = 16;
|
|
150
|
+
optional bool can_cross_office = 17;
|
|
151
|
+
bool replace_custom_permissions = 18;
|
|
152
|
+
repeated string custom_permissions = 19;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
message UpdateManagerResponse {
|
package/proto/referral.proto
CHANGED
|
@@ -10,16 +10,14 @@ service ReferralService {
|
|
|
10
10
|
rpc BindReferralByCode(BindReferralByCodeRequest) returns (BindReferralByCodeResponse);
|
|
11
11
|
rpc GetReferralSummary(GetReferralSummaryRequest) returns (GetReferralSummaryResponse);
|
|
12
12
|
rpc ListReferrals(ListReferralsRequest) returns (ListReferralsResponse);
|
|
13
|
+
rpc GetReferredUserIds(GetReferredUserIdsRequest) returns (GetReferredUserIdsResponse);
|
|
14
|
+
rpc BatchGetDirectReferrersByUserIds(BatchGetDirectReferrersByUserIdsRequest) returns (BatchGetDirectReferrersByUserIdsResponse);
|
|
13
15
|
rpc ApplyExchangeCompleted(ApplyExchangeCompletedRequest) returns (ApplyExchangeCompletedResponse);
|
|
14
16
|
rpc ApplyExchangeCancelled(ApplyExchangeCancelledRequest) returns (ApplyExchangeCancelledResponse);
|
|
15
17
|
rpc ListCommissions(ListCommissionsRequest) returns (ListCommissionsResponse);
|
|
16
18
|
rpc CreatePayout(CreatePayoutRequest) returns (ReferralPayoutResponse);
|
|
17
19
|
rpc ConfirmPayout(ConfirmPayoutRequest) returns (ReferralPayoutResponse);
|
|
18
|
-
rpc UpdatePayout(UpdatePayoutRequest) returns (ReferralPayoutResponse);
|
|
19
|
-
rpc CancelPayout(CancelPayoutRequest) returns (ReferralPayoutResponse);
|
|
20
|
-
rpc DeletePayout(DeletePayoutRequest) returns (DeletePayoutResponse);
|
|
21
20
|
rpc ListPayouts(ListPayoutsRequest) returns (ListPayoutsResponse);
|
|
22
|
-
rpc RecreateBonuses(RecreateBonusesRequest) returns (RecreateBonusesResponse);
|
|
23
21
|
rpc AdminRecalculateExchange(AdminRecalculateExchangeRequest) returns (AdminRecalculateExchangeResponse);
|
|
24
22
|
}
|
|
25
23
|
|
|
@@ -107,8 +105,6 @@ message GetReferralSummaryResponse {
|
|
|
107
105
|
repeated ReferralBalanceItem balances = 2;
|
|
108
106
|
int32 referrals_count = 3;
|
|
109
107
|
string total_usd_volume = 4;
|
|
110
|
-
string total_usdt_balance = 5;
|
|
111
|
-
string available_usdt_balance = 6;
|
|
112
108
|
}
|
|
113
109
|
|
|
114
110
|
message ListReferralsRequest {
|
|
@@ -133,6 +129,22 @@ message ListReferralsResponse {
|
|
|
133
129
|
int32 limit = 4;
|
|
134
130
|
}
|
|
135
131
|
|
|
132
|
+
message GetReferredUserIdsRequest {
|
|
133
|
+
int32 user_id = 1;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
message GetReferredUserIdsResponse {
|
|
137
|
+
repeated int32 referred_user_ids = 1;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
message BatchGetDirectReferrersByUserIdsRequest {
|
|
141
|
+
repeated int32 user_ids = 1;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
message BatchGetDirectReferrersByUserIdsResponse {
|
|
145
|
+
repeated int32 direct_referrer_ids = 1;
|
|
146
|
+
}
|
|
147
|
+
|
|
136
148
|
message ApplyExchangeCompletedRequest {
|
|
137
149
|
string exchange_id = 1;
|
|
138
150
|
string wallet_user_id = 2;
|
|
@@ -208,28 +220,6 @@ message ConfirmPayoutRequest {
|
|
|
208
220
|
optional string confirmed_by_manager_id = 2;
|
|
209
221
|
}
|
|
210
222
|
|
|
211
|
-
message UpdatePayoutRequest {
|
|
212
|
-
string payout_id = 1;
|
|
213
|
-
optional string amount = 2;
|
|
214
|
-
optional string currency = 3;
|
|
215
|
-
optional string payment_method = 4;
|
|
216
|
-
optional string output_currency = 5;
|
|
217
|
-
optional string comment = 6;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
message CancelPayoutRequest {
|
|
221
|
-
string payout_id = 1;
|
|
222
|
-
optional string reason = 2;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
message DeletePayoutRequest {
|
|
226
|
-
string payout_id = 1;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
message DeletePayoutResponse {
|
|
230
|
-
bool deleted = 1;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
223
|
message ReferralPayoutResponse {
|
|
234
224
|
string id = 1;
|
|
235
225
|
string profile_id = 2;
|
|
@@ -241,7 +231,6 @@ message ReferralPayoutResponse {
|
|
|
241
231
|
optional string comment = 8;
|
|
242
232
|
string created_at = 9;
|
|
243
233
|
string updated_at = 10;
|
|
244
|
-
optional string wallet_user_id = 11;
|
|
245
234
|
}
|
|
246
235
|
|
|
247
236
|
message ListPayoutsRequest {
|
|
@@ -257,22 +246,6 @@ message ListPayoutsResponse {
|
|
|
257
246
|
int32 limit = 4;
|
|
258
247
|
}
|
|
259
248
|
|
|
260
|
-
message RecreatedBalanceItem {
|
|
261
|
-
string currency = 1;
|
|
262
|
-
string amount = 2;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
message RecreateBonusesRequest {
|
|
266
|
-
string wallet_user_id = 1;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
message RecreateBonusesResponse {
|
|
270
|
-
bool success = 1;
|
|
271
|
-
int32 commissions_count = 2;
|
|
272
|
-
int32 payouts_count = 3;
|
|
273
|
-
repeated RecreatedBalanceItem balances = 4;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
249
|
message AdminRecalculateExchangeRequest {
|
|
277
250
|
string exchange_id = 1;
|
|
278
251
|
bool dry_run = 2;
|