@arbiwallet/contracts 1.0.212 → 1.0.214
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/exchange_core.ts +66 -125
- package/package.json +1 -1
- package/proto/exchange_core.proto +177 -162
package/gen/exchange_core.ts
CHANGED
|
@@ -28,94 +28,29 @@ export enum ExchangeDealAction {
|
|
|
28
28
|
UNRECOGNIZED = -1,
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export interface
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
export interface CreateExchangePaymentRequest {
|
|
52
|
-
managerUserId?: string | undefined;
|
|
53
|
-
managerId?: string | undefined;
|
|
54
|
-
calculationId?: string | undefined;
|
|
55
|
-
agentId: number;
|
|
56
|
-
amount?: number | undefined;
|
|
57
|
-
customerId?: string | undefined;
|
|
58
|
-
cryptoNetwork?: string | undefined;
|
|
59
|
-
customerSource?: string | undefined;
|
|
60
|
-
customerReferrer?: string | undefined;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface CreateExchangePaymentResult {
|
|
64
|
-
paymentId: string;
|
|
65
|
-
paymentUuid: string;
|
|
66
|
-
amount: number;
|
|
67
|
-
status: number;
|
|
68
|
-
agent: string;
|
|
69
|
-
walletId?: string | undefined;
|
|
70
|
-
cryptoNetwork?: string | undefined;
|
|
71
|
-
cryptoAddress?: string | undefined;
|
|
72
|
-
arbiLink?: string | undefined;
|
|
73
|
-
paymentLink?: string | undefined;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export interface CreateExchangePaymentResponse {
|
|
77
|
-
ok: boolean;
|
|
78
|
-
result?: CreateExchangePaymentResult | undefined;
|
|
79
|
-
error?: string | undefined;
|
|
80
|
-
validationErrors?: { [key: string]: any } | undefined;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export interface HandlePaymentWebhookRequest {
|
|
84
|
-
jsonPayload: string;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export interface HandlePaymentWebhookResponse {
|
|
88
|
-
ok: boolean;
|
|
89
|
-
status: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export interface GetExchangePaymentsRequest {
|
|
93
|
-
page?: number | undefined;
|
|
94
|
-
limit?: number | undefined;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export interface GetExchangePaymentsItem {
|
|
98
|
-
paymentId: string;
|
|
99
|
-
paymentUuid: string;
|
|
100
|
-
amount: number;
|
|
101
|
-
status: number;
|
|
102
|
-
paymentAgentStatus?: string | undefined;
|
|
103
|
-
paymentLink?: string | undefined;
|
|
104
|
-
qrLink?: string | undefined;
|
|
105
|
-
cryptoAddress?: string | undefined;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export interface GetExchangePaymentsResponse {
|
|
109
|
-
payments: GetExchangePaymentsItem[];
|
|
110
|
-
page: number;
|
|
111
|
-
limit: number;
|
|
112
|
-
total: number;
|
|
113
|
-
totalPages: number;
|
|
31
|
+
export interface ActorContext {
|
|
32
|
+
/** users.CustomUser.id */
|
|
33
|
+
userId: string;
|
|
34
|
+
/** exchanges_manager.id (если есть) */
|
|
35
|
+
managerId?:
|
|
36
|
+
| string
|
|
37
|
+
| undefined;
|
|
38
|
+
/** request.user.is_superuser */
|
|
39
|
+
isSuperuser: boolean;
|
|
40
|
+
/** имена Django-групп из старого проекта */
|
|
41
|
+
groupNames: string[];
|
|
42
|
+
/** офисы менеджера (для office-based checks) */
|
|
43
|
+
officeIds: string[];
|
|
44
|
+
/** для аудита/трассировки (по желанию) */
|
|
45
|
+
requestId?:
|
|
46
|
+
| string
|
|
47
|
+
| undefined;
|
|
48
|
+
/** тип клиента (опционально) */
|
|
49
|
+
clientType?: string | undefined;
|
|
114
50
|
}
|
|
115
51
|
|
|
116
52
|
export interface CreateExchangeDealRequest {
|
|
117
|
-
|
|
118
|
-
managerId?: string | undefined;
|
|
53
|
+
actor: ActorContext | undefined;
|
|
119
54
|
calculationId?: string | undefined;
|
|
120
55
|
paymentId?: string | undefined;
|
|
121
56
|
methodId: string;
|
|
@@ -127,6 +62,7 @@ export interface CreateExchangeDealRequest {
|
|
|
127
62
|
inputCurrencyId?: string | undefined;
|
|
128
63
|
outputCurrencyId?: string | undefined;
|
|
129
64
|
customerId?: string | undefined;
|
|
65
|
+
managerPersonId?: string | undefined;
|
|
130
66
|
expensesForCourier?: number | undefined;
|
|
131
67
|
includeInTotalCalculation?: boolean | undefined;
|
|
132
68
|
oneCurrencyExchange?: boolean | undefined;
|
|
@@ -158,32 +94,33 @@ export interface CreateExchangeDealResponse {
|
|
|
158
94
|
}
|
|
159
95
|
|
|
160
96
|
export interface GetExchangeDealsRequest {
|
|
97
|
+
actor: ActorContext | undefined;
|
|
161
98
|
fromDate?: string | undefined;
|
|
162
99
|
toDate?: string | undefined;
|
|
163
|
-
|
|
164
|
-
|
|
100
|
+
managerId?: string | undefined;
|
|
101
|
+
customerId?: string | undefined;
|
|
165
102
|
page?: number | undefined;
|
|
166
103
|
pageSize?: number | undefined;
|
|
167
104
|
ordering?: string | undefined;
|
|
168
105
|
}
|
|
169
106
|
|
|
170
107
|
export interface GetExchangeDealsManager {
|
|
171
|
-
id:
|
|
108
|
+
id: string;
|
|
172
109
|
email: string;
|
|
173
110
|
}
|
|
174
111
|
|
|
175
112
|
export interface GetExchangeDealsItem {
|
|
176
|
-
id:
|
|
177
|
-
customerId:
|
|
178
|
-
paymentId?:
|
|
113
|
+
id: string;
|
|
114
|
+
customerId: string;
|
|
115
|
+
paymentId?: string | undefined;
|
|
179
116
|
inputAmount: number;
|
|
180
|
-
inputCurrencyId:
|
|
117
|
+
inputCurrencyId: string;
|
|
181
118
|
outputAmount: number;
|
|
182
|
-
outputCurrencyId:
|
|
119
|
+
outputCurrencyId: string;
|
|
183
120
|
factOutputAmount: number;
|
|
184
121
|
status: boolean;
|
|
185
122
|
exchangeStatusName: string;
|
|
186
|
-
calculationSourceId?:
|
|
123
|
+
calculationSourceId?: string | undefined;
|
|
187
124
|
manager?: GetExchangeDealsManager | undefined;
|
|
188
125
|
createdAt: string;
|
|
189
126
|
}
|
|
@@ -196,19 +133,20 @@ export interface GetExchangeDealsResponse {
|
|
|
196
133
|
}
|
|
197
134
|
|
|
198
135
|
export interface UpdateExchangeDealRequest {
|
|
199
|
-
|
|
200
|
-
|
|
136
|
+
actor: ActorContext | undefined;
|
|
137
|
+
id: string;
|
|
138
|
+
customerId?: string | undefined;
|
|
201
139
|
inputAmount?: number | undefined;
|
|
202
|
-
inputCurrencyId?:
|
|
203
|
-
inputWalletId?:
|
|
204
|
-
methodId?:
|
|
205
|
-
outputCurrencyId?:
|
|
140
|
+
inputCurrencyId?: string | undefined;
|
|
141
|
+
inputWalletId?: string | undefined;
|
|
142
|
+
methodId?: string | undefined;
|
|
143
|
+
outputCurrencyId?: string | undefined;
|
|
206
144
|
outputAmount?: number | undefined;
|
|
207
145
|
factOutputAmount?: number | undefined;
|
|
208
|
-
outputWalletId?:
|
|
209
|
-
exchangeStatusId?:
|
|
146
|
+
outputWalletId?: string | undefined;
|
|
147
|
+
exchangeStatusId?: string | undefined;
|
|
210
148
|
payed?: boolean | undefined;
|
|
211
|
-
managerPersonId?:
|
|
149
|
+
managerPersonId?: string | undefined;
|
|
212
150
|
exchangeRate1Iter?: number | undefined;
|
|
213
151
|
exchangeRate2Iter?: number | undefined;
|
|
214
152
|
usdtRate?: number | undefined;
|
|
@@ -217,19 +155,19 @@ export interface UpdateExchangeDealRequest {
|
|
|
217
155
|
customerDocName?: string | undefined;
|
|
218
156
|
customerDocNationality?: string | undefined;
|
|
219
157
|
customerDocNumber?: string | undefined;
|
|
220
|
-
priorityManagerId?:
|
|
221
|
-
priorityOutcomeWalletId?:
|
|
158
|
+
priorityManagerId?: string | undefined;
|
|
159
|
+
priorityOutcomeWalletId?: string | undefined;
|
|
222
160
|
}
|
|
223
161
|
|
|
224
162
|
export interface UpdateExchangeDealResult {
|
|
225
|
-
id:
|
|
226
|
-
customerId:
|
|
163
|
+
id: string;
|
|
164
|
+
customerId: string;
|
|
227
165
|
inputAmount: number;
|
|
228
|
-
inputCurrencyId:
|
|
166
|
+
inputCurrencyId: string;
|
|
229
167
|
outputAmount: number;
|
|
230
|
-
outputCurrencyId:
|
|
168
|
+
outputCurrencyId: string;
|
|
231
169
|
factOutputAmount: number;
|
|
232
|
-
exchangeStatusId:
|
|
170
|
+
exchangeStatusId: string;
|
|
233
171
|
payed: boolean;
|
|
234
172
|
includeInTotalCalculation: boolean;
|
|
235
173
|
}
|
|
@@ -242,7 +180,8 @@ export interface UpdateExchangeDealResponse {
|
|
|
242
180
|
}
|
|
243
181
|
|
|
244
182
|
export interface CompleteExchangeDealRequest {
|
|
245
|
-
|
|
183
|
+
actor: ActorContext | undefined;
|
|
184
|
+
id: string;
|
|
246
185
|
}
|
|
247
186
|
|
|
248
187
|
export interface CompleteExchangeDealResponse {
|
|
@@ -252,7 +191,8 @@ export interface CompleteExchangeDealResponse {
|
|
|
252
191
|
}
|
|
253
192
|
|
|
254
193
|
export interface CancelExchangeDealRequest {
|
|
255
|
-
|
|
194
|
+
actor: ActorContext | undefined;
|
|
195
|
+
id: string;
|
|
256
196
|
}
|
|
257
197
|
|
|
258
198
|
export interface CancelExchangeDealResponse {
|
|
@@ -267,7 +207,7 @@ export interface GetExchangeDealStatesByCalculationIdsRequest {
|
|
|
267
207
|
|
|
268
208
|
export interface ExchangeDealStateByCalculation {
|
|
269
209
|
calculationId: string;
|
|
270
|
-
dealId?:
|
|
210
|
+
dealId?: string | undefined;
|
|
271
211
|
status: ExchangeDealStatus;
|
|
272
212
|
allowedActions: ExchangeDealAction[];
|
|
273
213
|
}
|
|
@@ -278,15 +218,16 @@ export interface GetExchangeDealStatesByCalculationIdsResponse {
|
|
|
278
218
|
}
|
|
279
219
|
|
|
280
220
|
export interface GetTransactionsRequest {
|
|
221
|
+
actor: ActorContext | undefined;
|
|
281
222
|
startDate?: string | undefined;
|
|
282
223
|
endDate?: string | undefined;
|
|
283
|
-
userId?:
|
|
284
|
-
currencyId?:
|
|
285
|
-
walletId?:
|
|
224
|
+
userId?: string | undefined;
|
|
225
|
+
currencyId?: string | undefined;
|
|
226
|
+
walletId?: string | undefined;
|
|
286
227
|
type?: number | undefined;
|
|
287
228
|
accountType?: number | undefined;
|
|
288
|
-
categoryId?:
|
|
289
|
-
businessUnitId?:
|
|
229
|
+
categoryId?: string | undefined;
|
|
230
|
+
businessUnitId?: string | undefined;
|
|
290
231
|
search?: string | undefined;
|
|
291
232
|
page?: number | undefined;
|
|
292
233
|
pageSize?: number | undefined;
|
|
@@ -299,28 +240,28 @@ export interface GetTransactionsSummaryItem {
|
|
|
299
240
|
}
|
|
300
241
|
|
|
301
242
|
export interface GetTransactionsItem {
|
|
302
|
-
id:
|
|
243
|
+
id: string;
|
|
303
244
|
transactionDatetime: string;
|
|
304
245
|
createdAt: string;
|
|
305
246
|
amount: number;
|
|
306
247
|
currency?: string | undefined;
|
|
307
248
|
usdtAmount?: number | undefined;
|
|
308
249
|
status: boolean;
|
|
309
|
-
walletId?:
|
|
250
|
+
walletId?: string | undefined;
|
|
310
251
|
walletName?: string | undefined;
|
|
311
|
-
moveWalletId?:
|
|
252
|
+
moveWalletId?: string | undefined;
|
|
312
253
|
moveWalletName?: string | undefined;
|
|
313
254
|
type: number;
|
|
314
255
|
typeName?: string | undefined;
|
|
315
|
-
categoryId?:
|
|
256
|
+
categoryId?: string | undefined;
|
|
316
257
|
categoryName?: string | undefined;
|
|
317
|
-
businessUnitId?:
|
|
258
|
+
businessUnitId?: string | undefined;
|
|
318
259
|
businessUnitName?: string | undefined;
|
|
319
260
|
name: string;
|
|
320
261
|
comment?: string | undefined;
|
|
321
|
-
exchangeId?:
|
|
262
|
+
exchangeId?: string | undefined;
|
|
322
263
|
exchangeUrl?: string | undefined;
|
|
323
|
-
userId?:
|
|
264
|
+
userId?: string | undefined;
|
|
324
265
|
username?: string | undefined;
|
|
325
266
|
accountType: number;
|
|
326
267
|
}
|
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.214",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -24,95 +24,104 @@ service ExchangeCoreService {
|
|
|
24
24
|
rpc GetTransactions(GetTransactionsRequest) returns (GetTransactionsResponse);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
message CreateExchangeOrderRequest {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
message CreateExchangeOrderResponse {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
message CreateExchangePaymentRequest {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
message CreateExchangePaymentResult {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
message CreateExchangePaymentResponse {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
message HandlePaymentWebhookRequest {
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
message HandlePaymentWebhookResponse {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
message GetExchangePaymentsRequest {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
message GetExchangePaymentsItem {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
message GetExchangePaymentsResponse {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
27
|
+
// message CreateExchangeOrderRequest {
|
|
28
|
+
// double input_amount = 1;
|
|
29
|
+
// double output_amount = 2;
|
|
30
|
+
// string input_currency = 3;
|
|
31
|
+
// string output_currency = 4;
|
|
32
|
+
// string withdraw_type = 5;
|
|
33
|
+
// string customer_id = 6;
|
|
34
|
+
// optional string receive_bank = 7;
|
|
35
|
+
// }
|
|
36
|
+
|
|
37
|
+
// message CreateExchangeOrderResponse {
|
|
38
|
+
// bool success = 1;
|
|
39
|
+
// int32 status_code = 2;
|
|
40
|
+
// optional string order_id = 3;
|
|
41
|
+
// optional string message = 4;
|
|
42
|
+
// optional string warning = 5;
|
|
43
|
+
// optional string error = 6;
|
|
44
|
+
// repeated string errors = 7;
|
|
45
|
+
// }
|
|
46
|
+
|
|
47
|
+
// message CreateExchangePaymentRequest {
|
|
48
|
+
// optional string manager_user_id = 1;
|
|
49
|
+
// optional string manager_id = 2;
|
|
50
|
+
|
|
51
|
+
// optional string calculation_id = 3;
|
|
52
|
+
// int32 agent_id = 4;
|
|
53
|
+
// optional double amount = 5;
|
|
54
|
+
// optional string customer_id = 6;
|
|
55
|
+
// optional string crypto_network = 7;
|
|
56
|
+
// optional string customer_source = 8;
|
|
57
|
+
// optional string customer_referrer = 9;
|
|
58
|
+
// }
|
|
59
|
+
|
|
60
|
+
// message CreateExchangePaymentResult {
|
|
61
|
+
// string payment_id = 1;
|
|
62
|
+
// string payment_uuid = 2;
|
|
63
|
+
// double amount = 3;
|
|
64
|
+
// int32 status = 4;
|
|
65
|
+
// string agent = 5;
|
|
66
|
+
// optional string wallet_id = 6;
|
|
67
|
+
// optional string crypto_network = 7;
|
|
68
|
+
// optional string crypto_address = 8;
|
|
69
|
+
// optional string arbi_link = 9;
|
|
70
|
+
// optional string payment_link = 10;
|
|
71
|
+
// }
|
|
72
|
+
|
|
73
|
+
// message CreateExchangePaymentResponse {
|
|
74
|
+
// bool ok = 1;
|
|
75
|
+
// optional CreateExchangePaymentResult result = 2;
|
|
76
|
+
// optional string error = 3;
|
|
77
|
+
// optional google.protobuf.Struct validationErrors = 4;
|
|
78
|
+
// }
|
|
79
|
+
|
|
80
|
+
// message HandlePaymentWebhookRequest {
|
|
81
|
+
// string json_payload = 1;
|
|
82
|
+
// }
|
|
83
|
+
|
|
84
|
+
// message HandlePaymentWebhookResponse {
|
|
85
|
+
// bool ok = 1;
|
|
86
|
+
// string status = 2;
|
|
87
|
+
// }
|
|
88
|
+
|
|
89
|
+
// message GetExchangePaymentsRequest {
|
|
90
|
+
// optional int32 page = 1;
|
|
91
|
+
// optional int32 limit = 2;
|
|
92
|
+
// }
|
|
93
|
+
|
|
94
|
+
// message GetExchangePaymentsItem {
|
|
95
|
+
// string payment_id = 1;
|
|
96
|
+
// string payment_uuid = 2;
|
|
97
|
+
// double amount = 3;
|
|
98
|
+
// int32 status = 4;
|
|
99
|
+
// optional string payment_agent_status = 5;
|
|
100
|
+
// optional string payment_link = 6;
|
|
101
|
+
// optional string qr_link = 7;
|
|
102
|
+
// optional string crypto_address = 8;
|
|
103
|
+
// }
|
|
104
|
+
|
|
105
|
+
// message GetExchangePaymentsResponse {
|
|
106
|
+
// repeated GetExchangePaymentsItem payments = 1;
|
|
107
|
+
// int32 page = 2;
|
|
108
|
+
// int32 limit = 3;
|
|
109
|
+
// int32 total = 4;
|
|
110
|
+
// int32 total_pages = 5;
|
|
111
|
+
// }
|
|
112
|
+
|
|
113
|
+
message ActorContext {
|
|
114
|
+
string user_id = 1; // users.CustomUser.id
|
|
115
|
+
optional string manager_id = 2; // exchanges_manager.id (если есть)
|
|
116
|
+
bool is_superuser = 3; // request.user.is_superuser
|
|
117
|
+
repeated string group_names = 4; // имена Django-групп из старого проекта
|
|
118
|
+
repeated string office_ids = 5; // офисы менеджера (для office-based checks)
|
|
119
|
+
optional string request_id = 6; // для аудита/трассировки (по желанию)
|
|
120
|
+
optional string client_type = 7; // тип клиента (опционально)
|
|
111
121
|
}
|
|
112
122
|
|
|
113
123
|
message CreateExchangeDealRequest {
|
|
114
|
-
|
|
115
|
-
optional string manager_id = 2;
|
|
124
|
+
ActorContext actor = 1;
|
|
116
125
|
|
|
117
126
|
optional string calculation_id = 3;
|
|
118
127
|
optional string payment_id = 4;
|
|
@@ -129,19 +138,20 @@ message CreateExchangeDealRequest {
|
|
|
129
138
|
optional string output_currency_id = 12;
|
|
130
139
|
|
|
131
140
|
optional string customer_id = 13;
|
|
141
|
+
optional string manager_person_id = 14;
|
|
132
142
|
|
|
133
|
-
optional double expenses_for_courier =
|
|
134
|
-
optional bool include_in_total_calculation =
|
|
135
|
-
optional bool one_currency_exchange =
|
|
136
|
-
optional bool received_from_dealer =
|
|
137
|
-
optional string received_from_dealer_wallet_id =
|
|
143
|
+
optional double expenses_for_courier = 15;
|
|
144
|
+
optional bool include_in_total_calculation = 16;
|
|
145
|
+
optional bool one_currency_exchange = 17;
|
|
146
|
+
optional bool received_from_dealer = 18;
|
|
147
|
+
optional string received_from_dealer_wallet_id = 19;
|
|
138
148
|
|
|
139
|
-
optional string customer_doc_name =
|
|
140
|
-
optional string customer_doc_nationality =
|
|
141
|
-
optional string customer_doc_number =
|
|
149
|
+
optional string customer_doc_name = 20;
|
|
150
|
+
optional string customer_doc_nationality = 21;
|
|
151
|
+
optional string customer_doc_number = 22;
|
|
142
152
|
|
|
143
|
-
optional string customer_source =
|
|
144
|
-
optional string customer_referrer =
|
|
153
|
+
optional string customer_source = 23;
|
|
154
|
+
optional string customer_referrer = 24;
|
|
145
155
|
|
|
146
156
|
repeated double receipts = 25;
|
|
147
157
|
}
|
|
@@ -164,32 +174,33 @@ message CreateExchangeDealResponse {
|
|
|
164
174
|
}
|
|
165
175
|
|
|
166
176
|
message GetExchangeDealsRequest {
|
|
167
|
-
|
|
168
|
-
optional string
|
|
169
|
-
optional
|
|
170
|
-
optional
|
|
171
|
-
optional
|
|
172
|
-
optional int32
|
|
173
|
-
optional
|
|
177
|
+
ActorContext actor = 1;
|
|
178
|
+
optional string from_date = 2;
|
|
179
|
+
optional string to_date = 3;
|
|
180
|
+
optional string manager_id = 4;
|
|
181
|
+
optional string customer_id = 5;
|
|
182
|
+
optional int32 page = 6;
|
|
183
|
+
optional int32 page_size = 7;
|
|
184
|
+
optional string ordering = 8;
|
|
174
185
|
}
|
|
175
186
|
|
|
176
187
|
message GetExchangeDealsManager {
|
|
177
|
-
|
|
188
|
+
string id = 1;
|
|
178
189
|
string email = 2;
|
|
179
190
|
}
|
|
180
191
|
|
|
181
192
|
message GetExchangeDealsItem {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
optional
|
|
193
|
+
string id = 1;
|
|
194
|
+
string customer_id = 2;
|
|
195
|
+
optional string payment_id = 3;
|
|
185
196
|
double input_amount = 4;
|
|
186
|
-
|
|
197
|
+
string input_currency_id = 5;
|
|
187
198
|
double output_amount = 6;
|
|
188
|
-
|
|
199
|
+
string output_currency_id = 7;
|
|
189
200
|
double fact_output_amount = 8;
|
|
190
201
|
bool status = 9;
|
|
191
202
|
string exchange_status_name = 10;
|
|
192
|
-
optional
|
|
203
|
+
optional string calculation_source_id = 11;
|
|
193
204
|
optional GetExchangeDealsManager manager = 12;
|
|
194
205
|
string created_at = 13;
|
|
195
206
|
}
|
|
@@ -202,42 +213,43 @@ message GetExchangeDealsResponse {
|
|
|
202
213
|
}
|
|
203
214
|
|
|
204
215
|
message UpdateExchangeDealRequest {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
optional
|
|
209
|
-
optional
|
|
210
|
-
optional
|
|
211
|
-
optional
|
|
212
|
-
optional
|
|
213
|
-
optional
|
|
214
|
-
optional double
|
|
215
|
-
optional
|
|
216
|
-
optional
|
|
217
|
-
optional
|
|
218
|
-
optional
|
|
219
|
-
optional
|
|
220
|
-
optional double
|
|
221
|
-
optional double
|
|
222
|
-
optional
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
optional string
|
|
227
|
-
optional string
|
|
228
|
-
optional
|
|
229
|
-
optional
|
|
216
|
+
ActorContext actor = 1;
|
|
217
|
+
string id = 2;
|
|
218
|
+
|
|
219
|
+
optional string customer_id = 3;
|
|
220
|
+
optional double input_amount = 4;
|
|
221
|
+
optional string input_currency_id = 5;
|
|
222
|
+
optional string input_wallet_id = 6;
|
|
223
|
+
optional string method_id = 7;
|
|
224
|
+
optional string output_currency_id = 8;
|
|
225
|
+
optional double output_amount = 9;
|
|
226
|
+
optional double fact_output_amount = 10;
|
|
227
|
+
optional string output_wallet_id = 11;
|
|
228
|
+
optional string exchange_status_id = 12;
|
|
229
|
+
optional bool payed = 13;
|
|
230
|
+
optional string manager_person_id = 14;
|
|
231
|
+
optional double exchange_rate_1_iter = 15;
|
|
232
|
+
optional double exchange_rate_2_iter = 16;
|
|
233
|
+
optional double usdt_rate = 17;
|
|
234
|
+
optional bool include_in_total_calculation = 18;
|
|
235
|
+
|
|
236
|
+
repeated double receipts = 19;
|
|
237
|
+
optional string customer_doc_name = 20;
|
|
238
|
+
optional string customer_doc_nationality = 21;
|
|
239
|
+
optional string customer_doc_number = 22;
|
|
240
|
+
optional string priority_manager_id = 23;
|
|
241
|
+
optional string priority_outcome_wallet_id = 24;
|
|
230
242
|
}
|
|
231
243
|
|
|
232
244
|
message UpdateExchangeDealResult {
|
|
233
|
-
|
|
234
|
-
|
|
245
|
+
string id = 1;
|
|
246
|
+
string customer_id = 2;
|
|
235
247
|
double input_amount = 3;
|
|
236
|
-
|
|
248
|
+
string input_currency_id = 4;
|
|
237
249
|
double output_amount = 5;
|
|
238
|
-
|
|
250
|
+
string output_currency_id = 6;
|
|
239
251
|
double fact_output_amount = 7;
|
|
240
|
-
|
|
252
|
+
string exchange_status_id = 8;
|
|
241
253
|
bool payed = 9;
|
|
242
254
|
bool include_in_total_calculation = 10;
|
|
243
255
|
}
|
|
@@ -250,7 +262,8 @@ message UpdateExchangeDealResponse {
|
|
|
250
262
|
}
|
|
251
263
|
|
|
252
264
|
message CompleteExchangeDealRequest {
|
|
253
|
-
|
|
265
|
+
ActorContext actor = 1;
|
|
266
|
+
string id = 2;
|
|
254
267
|
}
|
|
255
268
|
|
|
256
269
|
message CompleteExchangeDealResponse {
|
|
@@ -260,7 +273,8 @@ message CompleteExchangeDealResponse {
|
|
|
260
273
|
}
|
|
261
274
|
|
|
262
275
|
message CancelExchangeDealRequest {
|
|
263
|
-
|
|
276
|
+
ActorContext actor = 1;
|
|
277
|
+
string id = 2;
|
|
264
278
|
}
|
|
265
279
|
|
|
266
280
|
message CancelExchangeDealResponse {
|
|
@@ -289,7 +303,7 @@ enum ExchangeDealAction {
|
|
|
289
303
|
|
|
290
304
|
message ExchangeDealStateByCalculation {
|
|
291
305
|
string calculation_id = 1;
|
|
292
|
-
optional
|
|
306
|
+
optional string deal_id = 2;
|
|
293
307
|
ExchangeDealStatus status = 3;
|
|
294
308
|
repeated ExchangeDealAction allowed_actions = 4;
|
|
295
309
|
}
|
|
@@ -300,18 +314,19 @@ message GetExchangeDealStatesByCalculationIdsResponse {
|
|
|
300
314
|
}
|
|
301
315
|
|
|
302
316
|
message GetTransactionsRequest {
|
|
303
|
-
|
|
304
|
-
optional string
|
|
305
|
-
optional
|
|
306
|
-
optional
|
|
307
|
-
optional
|
|
308
|
-
optional
|
|
309
|
-
optional int32
|
|
310
|
-
optional int32
|
|
311
|
-
optional
|
|
312
|
-
optional string
|
|
313
|
-
optional
|
|
314
|
-
optional int32
|
|
317
|
+
ActorContext actor = 1;
|
|
318
|
+
optional string start_date = 2;
|
|
319
|
+
optional string end_date = 3;
|
|
320
|
+
optional string user_id = 4;
|
|
321
|
+
optional string currency_id = 5;
|
|
322
|
+
optional string wallet_id = 6;
|
|
323
|
+
optional int32 type = 7;
|
|
324
|
+
optional int32 account_type = 8;
|
|
325
|
+
optional string category_id = 9;
|
|
326
|
+
optional string business_unit_id = 10;
|
|
327
|
+
optional string search = 11;
|
|
328
|
+
optional int32 page = 12;
|
|
329
|
+
optional int32 page_size = 13;
|
|
315
330
|
}
|
|
316
331
|
|
|
317
332
|
message GetTransactionsSummaryItem {
|
|
@@ -321,28 +336,28 @@ message GetTransactionsSummaryItem {
|
|
|
321
336
|
}
|
|
322
337
|
|
|
323
338
|
message GetTransactionsItem {
|
|
324
|
-
|
|
339
|
+
string id = 1;
|
|
325
340
|
string transaction_datetime = 2;
|
|
326
341
|
string created_at = 3;
|
|
327
342
|
double amount = 4;
|
|
328
343
|
optional string currency = 5;
|
|
329
344
|
optional double usdt_amount = 6;
|
|
330
345
|
bool status = 7;
|
|
331
|
-
optional
|
|
346
|
+
optional string wallet_id = 8;
|
|
332
347
|
optional string wallet_name = 9;
|
|
333
|
-
optional
|
|
348
|
+
optional string move_wallet_id = 10;
|
|
334
349
|
optional string move_wallet_name = 11;
|
|
335
350
|
int32 type = 12;
|
|
336
351
|
optional string type_name = 13;
|
|
337
|
-
optional
|
|
352
|
+
optional string category_id = 14;
|
|
338
353
|
optional string category_name = 15;
|
|
339
|
-
optional
|
|
354
|
+
optional string business_unit_id = 16;
|
|
340
355
|
optional string business_unit_name = 17;
|
|
341
356
|
string name = 18;
|
|
342
357
|
optional string comment = 19;
|
|
343
|
-
optional
|
|
358
|
+
optional string exchange_id = 20;
|
|
344
359
|
optional string exchange_url = 21;
|
|
345
|
-
optional
|
|
360
|
+
optional string user_id = 22;
|
|
346
361
|
optional string username = 23;
|
|
347
362
|
int32 account_type = 24;
|
|
348
363
|
}
|