@arbiwallet/contracts 1.0.225 → 1.0.227
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 +37 -138
- package/package.json +1 -1
- package/proto/exchange_core.proto +32 -97
package/gen/exchange_core.ts
CHANGED
|
@@ -12,22 +12,6 @@ import { Struct } from "./google/protobuf/struct";
|
|
|
12
12
|
|
|
13
13
|
export const protobufPackage = "exchange_core";
|
|
14
14
|
|
|
15
|
-
export enum ExchangeDealStatus {
|
|
16
|
-
EXCHANGE_DEAL_STATUS_UNSPECIFIED = 0,
|
|
17
|
-
EXCHANGE_DEAL_STATUS_NO_DEAL = 1,
|
|
18
|
-
EXCHANGE_DEAL_STATUS_IN_PROGRESS = 2,
|
|
19
|
-
EXCHANGE_DEAL_STATUS_COMPLETED = 3,
|
|
20
|
-
EXCHANGE_DEAL_STATUS_CANCELLED = 4,
|
|
21
|
-
UNRECOGNIZED = -1,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export enum ExchangeDealAction {
|
|
25
|
-
EXCHANGE_DEAL_ACTION_UNSPECIFIED = 0,
|
|
26
|
-
EXCHANGE_DEAL_ACTION_CREATE_DEAL = 1,
|
|
27
|
-
EXCHANGE_DEAL_ACTION_OPEN_DEAL = 2,
|
|
28
|
-
UNRECOGNIZED = -1,
|
|
29
|
-
}
|
|
30
|
-
|
|
31
15
|
export interface AuthManagerContext {
|
|
32
16
|
managerId: string;
|
|
33
17
|
officeIds: string[];
|
|
@@ -48,7 +32,7 @@ export interface CreateExchangeDealRequest {
|
|
|
48
32
|
factOutputAmount?: number | undefined;
|
|
49
33
|
inputCurrencyId?: string | undefined;
|
|
50
34
|
outputCurrencyId?: string | undefined;
|
|
51
|
-
|
|
35
|
+
userId?: string | undefined;
|
|
52
36
|
managerPersonId?: string | undefined;
|
|
53
37
|
expensesForCourier?: number | undefined;
|
|
54
38
|
includeInTotalCalculation?: boolean | undefined;
|
|
@@ -65,7 +49,7 @@ export interface CreateExchangeDealRequest {
|
|
|
65
49
|
|
|
66
50
|
export interface CreateExchangeDealResult {
|
|
67
51
|
exchangeId: string;
|
|
68
|
-
|
|
52
|
+
userId: string;
|
|
69
53
|
inputAmount: number;
|
|
70
54
|
inputCurrencyId: string;
|
|
71
55
|
outputAmount: number;
|
|
@@ -85,7 +69,7 @@ export interface GetExchangeDealsRequest {
|
|
|
85
69
|
fromDate?: string | undefined;
|
|
86
70
|
toDate?: string | undefined;
|
|
87
71
|
managerId?: string | undefined;
|
|
88
|
-
|
|
72
|
+
userId?: string | undefined;
|
|
89
73
|
page?: number | undefined;
|
|
90
74
|
pageSize?: number | undefined;
|
|
91
75
|
ordering?: string | undefined;
|
|
@@ -98,7 +82,7 @@ export interface GetExchangeDealsManager {
|
|
|
98
82
|
|
|
99
83
|
export interface GetExchangeDealsItem {
|
|
100
84
|
id: string;
|
|
101
|
-
|
|
85
|
+
userId: string;
|
|
102
86
|
paymentId?: string | undefined;
|
|
103
87
|
inputAmount: number;
|
|
104
88
|
inputCurrencyId: string;
|
|
@@ -122,7 +106,7 @@ export interface GetExchangeDealsResponse {
|
|
|
122
106
|
export interface UpdateExchangeDealRequest {
|
|
123
107
|
authManagerContext: AuthManagerContext | undefined;
|
|
124
108
|
id: string;
|
|
125
|
-
|
|
109
|
+
userId?: string | undefined;
|
|
126
110
|
inputAmount?: number | undefined;
|
|
127
111
|
inputCurrencyId?: string | undefined;
|
|
128
112
|
inputWalletId?: string | undefined;
|
|
@@ -148,7 +132,7 @@ export interface UpdateExchangeDealRequest {
|
|
|
148
132
|
|
|
149
133
|
export interface UpdateExchangeDealResult {
|
|
150
134
|
id: string;
|
|
151
|
-
|
|
135
|
+
userId: string;
|
|
152
136
|
inputAmount: number;
|
|
153
137
|
inputCurrencyId: string;
|
|
154
138
|
outputAmount: number;
|
|
@@ -206,12 +190,6 @@ export interface GetTransactionsRequest {
|
|
|
206
190
|
pageSize?: number | undefined;
|
|
207
191
|
}
|
|
208
192
|
|
|
209
|
-
export interface GetTransactionsSummaryItem {
|
|
210
|
-
currency: string;
|
|
211
|
-
totalIncome: number;
|
|
212
|
-
totalExpense: number;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
193
|
export interface GetTransactionsItem {
|
|
216
194
|
id: string;
|
|
217
195
|
transactionDatetime: string;
|
|
@@ -234,11 +212,31 @@ export interface GetTransactionsItem {
|
|
|
234
212
|
comment?: string | undefined;
|
|
235
213
|
exchangeId?: string | undefined;
|
|
236
214
|
exchangeUrl?: string | undefined;
|
|
237
|
-
|
|
238
|
-
|
|
215
|
+
managerId?: string | undefined;
|
|
216
|
+
managerName?: string | undefined;
|
|
239
217
|
accountType: number;
|
|
240
218
|
}
|
|
241
219
|
|
|
220
|
+
export interface GetTransactionsSummaryRequest {
|
|
221
|
+
authManagerContext: AuthManagerContext | undefined;
|
|
222
|
+
startDate?: string | undefined;
|
|
223
|
+
endDate?: string | undefined;
|
|
224
|
+
userId?: string | undefined;
|
|
225
|
+
currencyId?: string | undefined;
|
|
226
|
+
walletId?: string | undefined;
|
|
227
|
+
type?: number | undefined;
|
|
228
|
+
accountType?: number | undefined;
|
|
229
|
+
categoryId?: string | undefined;
|
|
230
|
+
businessUnitId?: string | undefined;
|
|
231
|
+
search?: string | undefined;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface GetTransactionsSummaryItem {
|
|
235
|
+
currency: string;
|
|
236
|
+
totalIncome: number;
|
|
237
|
+
totalExpense: number;
|
|
238
|
+
}
|
|
239
|
+
|
|
242
240
|
export interface GetTransactionsResponse {
|
|
243
241
|
count: number;
|
|
244
242
|
next?: string | undefined;
|
|
@@ -247,69 +245,8 @@ export interface GetTransactionsResponse {
|
|
|
247
245
|
summary: GetTransactionsSummaryItem[];
|
|
248
246
|
}
|
|
249
247
|
|
|
250
|
-
export interface
|
|
251
|
-
|
|
252
|
-
dateTo?: string | undefined;
|
|
253
|
-
amountFrom?: number | undefined;
|
|
254
|
-
amountTo?: number | undefined;
|
|
255
|
-
inputCurrency?: string | undefined;
|
|
256
|
-
outputCurrency?:
|
|
257
|
-
| string
|
|
258
|
-
| undefined;
|
|
259
|
-
/** no_payment | with_payment | with_exchange | completed */
|
|
260
|
-
status?: string | undefined;
|
|
261
|
-
search?: string | undefined;
|
|
262
|
-
page?: number | undefined;
|
|
263
|
-
pageSize?: number | undefined;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export interface GetExchangeDealHistoryStatisticsResponse {
|
|
267
|
-
items: ExchangeDealStateByCalculation[];
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
export interface GetExchangePaymentRefsByCalculationIdsRequest {
|
|
271
|
-
calculationIds: string[];
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export interface ExchangePaymentRefByCalculation {
|
|
275
|
-
calculationId: string;
|
|
276
|
-
paymentUuid: string;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export interface GetExchangePaymentRefsByCalculationIdsResponse {
|
|
280
|
-
items: ExchangePaymentRefByCalculation[];
|
|
281
|
-
notFoundCalculationIds: string[];
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
export interface GetExchangeDealRefsByCalculationIdsRequest {
|
|
285
|
-
calculationIds: string[];
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
export interface ExchangeDealRefByCalculation {
|
|
289
|
-
calculationId: string;
|
|
290
|
-
exchangeId: string;
|
|
291
|
-
status: boolean;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
export interface GetExchangeDealRefsByCalculationIdsResponse {
|
|
295
|
-
items: ExchangeDealRefByCalculation[];
|
|
296
|
-
notFoundCalculationIds: string[];
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
export interface GetExchangeDealStatesByCalculationIdsRequest {
|
|
300
|
-
calculationIds: string[];
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
export interface ExchangeDealStateByCalculation {
|
|
304
|
-
calculationId: string;
|
|
305
|
-
dealId?: string | undefined;
|
|
306
|
-
status: ExchangeDealStatus;
|
|
307
|
-
allowedActions: ExchangeDealAction[];
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
export interface GetExchangeDealStatesByCalculationIdsResponse {
|
|
311
|
-
items: ExchangeDealStateByCalculation[];
|
|
312
|
-
notFoundCalculationIds: string[];
|
|
248
|
+
export interface GetTransactionsSummaryResponse {
|
|
249
|
+
summary: GetTransactionsSummaryItem[];
|
|
313
250
|
}
|
|
314
251
|
|
|
315
252
|
export const EXCHANGE_CORE_PACKAGE_NAME = "exchange_core";
|
|
@@ -335,21 +272,7 @@ export interface ExchangeCoreServiceClient {
|
|
|
335
272
|
|
|
336
273
|
getTransactions(request: GetTransactionsRequest): Observable<GetTransactionsResponse>;
|
|
337
274
|
|
|
338
|
-
|
|
339
|
-
request: GetExchangeDealHistoryStatisticsRequest,
|
|
340
|
-
): Observable<GetExchangeDealHistoryStatisticsResponse>;
|
|
341
|
-
|
|
342
|
-
getExchangePaymentRefsByCalculationIds(
|
|
343
|
-
request: GetExchangePaymentRefsByCalculationIdsRequest,
|
|
344
|
-
): Observable<GetExchangePaymentRefsByCalculationIdsResponse>;
|
|
345
|
-
|
|
346
|
-
getExchangeDealRefsByCalculationIds(
|
|
347
|
-
request: GetExchangeDealRefsByCalculationIdsRequest,
|
|
348
|
-
): Observable<GetExchangeDealRefsByCalculationIdsResponse>;
|
|
349
|
-
|
|
350
|
-
getExchangeDealStatesByCalculationIds(
|
|
351
|
-
request: GetExchangeDealStatesByCalculationIdsRequest,
|
|
352
|
-
): Observable<GetExchangeDealStatesByCalculationIdsResponse>;
|
|
275
|
+
getTransactionsSummary(request: GetTransactionsSummaryRequest): Observable<GetTransactionsSummaryResponse>;
|
|
353
276
|
}
|
|
354
277
|
|
|
355
278
|
/**
|
|
@@ -383,33 +306,12 @@ export interface ExchangeCoreServiceController {
|
|
|
383
306
|
request: GetTransactionsRequest,
|
|
384
307
|
): Promise<GetTransactionsResponse> | Observable<GetTransactionsResponse> | GetTransactionsResponse;
|
|
385
308
|
|
|
386
|
-
|
|
387
|
-
request:
|
|
388
|
-
):
|
|
389
|
-
| Promise<GetExchangeDealHistoryStatisticsResponse>
|
|
390
|
-
| Observable<GetExchangeDealHistoryStatisticsResponse>
|
|
391
|
-
| GetExchangeDealHistoryStatisticsResponse;
|
|
392
|
-
|
|
393
|
-
getExchangePaymentRefsByCalculationIds(
|
|
394
|
-
request: GetExchangePaymentRefsByCalculationIdsRequest,
|
|
395
|
-
):
|
|
396
|
-
| Promise<GetExchangePaymentRefsByCalculationIdsResponse>
|
|
397
|
-
| Observable<GetExchangePaymentRefsByCalculationIdsResponse>
|
|
398
|
-
| GetExchangePaymentRefsByCalculationIdsResponse;
|
|
399
|
-
|
|
400
|
-
getExchangeDealRefsByCalculationIds(
|
|
401
|
-
request: GetExchangeDealRefsByCalculationIdsRequest,
|
|
402
|
-
):
|
|
403
|
-
| Promise<GetExchangeDealRefsByCalculationIdsResponse>
|
|
404
|
-
| Observable<GetExchangeDealRefsByCalculationIdsResponse>
|
|
405
|
-
| GetExchangeDealRefsByCalculationIdsResponse;
|
|
406
|
-
|
|
407
|
-
getExchangeDealStatesByCalculationIds(
|
|
408
|
-
request: GetExchangeDealStatesByCalculationIdsRequest,
|
|
309
|
+
getTransactionsSummary(
|
|
310
|
+
request: GetTransactionsSummaryRequest,
|
|
409
311
|
):
|
|
410
|
-
| Promise<
|
|
411
|
-
| Observable<
|
|
412
|
-
|
|
|
312
|
+
| Promise<GetTransactionsSummaryResponse>
|
|
313
|
+
| Observable<GetTransactionsSummaryResponse>
|
|
314
|
+
| GetTransactionsSummaryResponse;
|
|
413
315
|
}
|
|
414
316
|
|
|
415
317
|
export function ExchangeCoreServiceControllerMethods() {
|
|
@@ -421,10 +323,7 @@ export function ExchangeCoreServiceControllerMethods() {
|
|
|
421
323
|
"completeExchangeDeal",
|
|
422
324
|
"cancelExchangeDeal",
|
|
423
325
|
"getTransactions",
|
|
424
|
-
"
|
|
425
|
-
"getExchangePaymentRefsByCalculationIds",
|
|
426
|
-
"getExchangeDealRefsByCalculationIds",
|
|
427
|
-
"getExchangeDealStatesByCalculationIds",
|
|
326
|
+
"getTransactionsSummary",
|
|
428
327
|
];
|
|
429
328
|
for (const method of grpcMethods) {
|
|
430
329
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
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.227",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -20,13 +20,7 @@ service ExchangeCoreService {
|
|
|
20
20
|
rpc CancelExchangeDeal(CancelExchangeDealRequest) returns (CancelExchangeDealResponse);
|
|
21
21
|
|
|
22
22
|
rpc GetTransactions(GetTransactionsRequest) returns (GetTransactionsResponse);
|
|
23
|
-
|
|
24
|
-
rpc GetExchangeDealHistoryStatistics(GetExchangeDealHistoryStatisticsRequest) returns (GetExchangeDealHistoryStatisticsResponse);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
rpc GetExchangePaymentRefsByCalculationIds(GetExchangePaymentRefsByCalculationIdsRequest) returns (GetExchangePaymentRefsByCalculationIdsResponse);
|
|
28
|
-
rpc GetExchangeDealRefsByCalculationIds(GetExchangeDealRefsByCalculationIdsRequest) returns (GetExchangeDealRefsByCalculationIdsResponse);
|
|
29
|
-
rpc GetExchangeDealStatesByCalculationIds(GetExchangeDealStatesByCalculationIdsRequest) returns (GetExchangeDealStatesByCalculationIdsResponse);
|
|
23
|
+
rpc GetTransactionsSummary(GetTransactionsSummaryRequest) returns (GetTransactionsSummaryResponse);
|
|
30
24
|
}
|
|
31
25
|
|
|
32
26
|
// message CreateExchangePaymentRequest {
|
|
@@ -36,7 +30,7 @@ service ExchangeCoreService {
|
|
|
36
30
|
// optional string calculation_id = 3;
|
|
37
31
|
// int32 agent_id = 4;
|
|
38
32
|
// optional double amount = 5;
|
|
39
|
-
// optional string
|
|
33
|
+
// optional string user_id = 6;
|
|
40
34
|
// optional string crypto_network = 7;
|
|
41
35
|
// optional string customer_source = 8;
|
|
42
36
|
// optional string customer_referrer = 9;
|
|
@@ -120,7 +114,7 @@ message CreateExchangeDealRequest {
|
|
|
120
114
|
optional string input_currency_id = 11;
|
|
121
115
|
optional string output_currency_id = 12;
|
|
122
116
|
|
|
123
|
-
optional string
|
|
117
|
+
optional string user_id = 13;
|
|
124
118
|
optional string manager_person_id = 14;
|
|
125
119
|
|
|
126
120
|
optional double expenses_for_courier = 15;
|
|
@@ -141,7 +135,7 @@ message CreateExchangeDealRequest {
|
|
|
141
135
|
|
|
142
136
|
message CreateExchangeDealResult {
|
|
143
137
|
string exchange_id = 1;
|
|
144
|
-
string
|
|
138
|
+
string user_id = 2;
|
|
145
139
|
double input_amount = 3;
|
|
146
140
|
string input_currency_id = 4;
|
|
147
141
|
double output_amount = 5;
|
|
@@ -161,7 +155,7 @@ message GetExchangeDealsRequest {
|
|
|
161
155
|
optional string from_date = 2;
|
|
162
156
|
optional string to_date = 3;
|
|
163
157
|
optional string manager_id = 4;
|
|
164
|
-
optional string
|
|
158
|
+
optional string user_id = 5;
|
|
165
159
|
optional int32 page = 6;
|
|
166
160
|
optional int32 page_size = 7;
|
|
167
161
|
optional string ordering = 8;
|
|
@@ -174,7 +168,7 @@ message GetExchangeDealsManager {
|
|
|
174
168
|
|
|
175
169
|
message GetExchangeDealsItem {
|
|
176
170
|
string id = 1;
|
|
177
|
-
string
|
|
171
|
+
string user_id = 2;
|
|
178
172
|
optional string payment_id = 3;
|
|
179
173
|
double input_amount = 4;
|
|
180
174
|
string input_currency_id = 5;
|
|
@@ -199,7 +193,7 @@ message UpdateExchangeDealRequest {
|
|
|
199
193
|
AuthManagerContext auth_manager_context = 1;
|
|
200
194
|
string id = 2;
|
|
201
195
|
|
|
202
|
-
optional string
|
|
196
|
+
optional string user_id = 3;
|
|
203
197
|
optional double input_amount = 4;
|
|
204
198
|
optional string input_currency_id = 5;
|
|
205
199
|
optional string input_wallet_id = 6;
|
|
@@ -226,7 +220,7 @@ message UpdateExchangeDealRequest {
|
|
|
226
220
|
|
|
227
221
|
message UpdateExchangeDealResult {
|
|
228
222
|
string id = 1;
|
|
229
|
-
string
|
|
223
|
+
string user_id = 2;
|
|
230
224
|
double input_amount = 3;
|
|
231
225
|
string input_currency_id = 4;
|
|
232
226
|
double output_amount = 5;
|
|
@@ -284,12 +278,6 @@ message GetTransactionsRequest {
|
|
|
284
278
|
optional int32 page_size = 13;
|
|
285
279
|
}
|
|
286
280
|
|
|
287
|
-
message GetTransactionsSummaryItem {
|
|
288
|
-
string currency = 1;
|
|
289
|
-
double total_income = 2;
|
|
290
|
-
double total_expense = 3;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
281
|
message GetTransactionsItem {
|
|
294
282
|
string id = 1;
|
|
295
283
|
string transaction_datetime = 2;
|
|
@@ -312,11 +300,31 @@ message GetTransactionsItem {
|
|
|
312
300
|
optional string comment = 19;
|
|
313
301
|
optional string exchange_id = 20;
|
|
314
302
|
optional string exchange_url = 21;
|
|
315
|
-
optional string
|
|
316
|
-
optional string
|
|
303
|
+
optional string manager_id = 22;
|
|
304
|
+
optional string manager_name = 23;
|
|
317
305
|
int32 account_type = 24;
|
|
318
306
|
}
|
|
319
307
|
|
|
308
|
+
message GetTransactionsSummaryRequest {
|
|
309
|
+
AuthManagerContext auth_manager_context = 1;
|
|
310
|
+
optional string start_date = 2;
|
|
311
|
+
optional string end_date = 3;
|
|
312
|
+
optional string user_id = 4;
|
|
313
|
+
optional string currency_id = 5;
|
|
314
|
+
optional string wallet_id = 6;
|
|
315
|
+
optional int32 type = 7;
|
|
316
|
+
optional int32 account_type = 8;
|
|
317
|
+
optional string category_id = 9;
|
|
318
|
+
optional string business_unit_id = 10;
|
|
319
|
+
optional string search = 11;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
message GetTransactionsSummaryItem {
|
|
323
|
+
string currency = 1;
|
|
324
|
+
double total_income = 2;
|
|
325
|
+
double total_expense = 3;
|
|
326
|
+
}
|
|
327
|
+
|
|
320
328
|
message GetTransactionsResponse {
|
|
321
329
|
int32 count = 1;
|
|
322
330
|
optional string next = 2;
|
|
@@ -325,79 +333,6 @@ message GetTransactionsResponse {
|
|
|
325
333
|
repeated GetTransactionsSummaryItem summary = 5;
|
|
326
334
|
}
|
|
327
335
|
|
|
328
|
-
message
|
|
329
|
-
|
|
330
|
-
optional string date_to = 2;
|
|
331
|
-
optional double amount_from = 3;
|
|
332
|
-
optional double amount_to = 4;
|
|
333
|
-
optional string input_currency = 5;
|
|
334
|
-
optional string output_currency = 6;
|
|
335
|
-
optional string status = 7; // no_payment | with_payment | with_exchange | completed
|
|
336
|
-
optional string search = 8;
|
|
337
|
-
optional int32 page = 9;
|
|
338
|
-
optional int32 page_size = 10;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
message GetExchangeDealHistoryStatisticsResponse {
|
|
342
|
-
repeated ExchangeDealStateByCalculation items = 1;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
message GetExchangePaymentRefsByCalculationIdsRequest {
|
|
346
|
-
repeated string calculation_ids = 1;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
message ExchangePaymentRefByCalculation {
|
|
350
|
-
string calculation_id = 1;
|
|
351
|
-
string payment_uuid = 2;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
message GetExchangePaymentRefsByCalculationIdsResponse {
|
|
355
|
-
repeated ExchangePaymentRefByCalculation items = 1;
|
|
356
|
-
repeated string not_found_calculation_ids = 2;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
message GetExchangeDealRefsByCalculationIdsRequest {
|
|
360
|
-
repeated string calculation_ids = 1;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
message ExchangeDealRefByCalculation {
|
|
364
|
-
string calculation_id = 1;
|
|
365
|
-
string exchange_id = 2;
|
|
366
|
-
bool status = 3;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
message GetExchangeDealRefsByCalculationIdsResponse {
|
|
370
|
-
repeated ExchangeDealRefByCalculation items = 1;
|
|
371
|
-
repeated string not_found_calculation_ids = 2;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
message GetExchangeDealStatesByCalculationIdsRequest {
|
|
376
|
-
repeated string calculation_ids = 1;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
enum ExchangeDealStatus {
|
|
380
|
-
EXCHANGE_DEAL_STATUS_UNSPECIFIED = 0;
|
|
381
|
-
EXCHANGE_DEAL_STATUS_NO_DEAL = 1;
|
|
382
|
-
EXCHANGE_DEAL_STATUS_IN_PROGRESS = 2;
|
|
383
|
-
EXCHANGE_DEAL_STATUS_COMPLETED = 3;
|
|
384
|
-
EXCHANGE_DEAL_STATUS_CANCELLED = 4;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
enum ExchangeDealAction {
|
|
388
|
-
EXCHANGE_DEAL_ACTION_UNSPECIFIED = 0;
|
|
389
|
-
EXCHANGE_DEAL_ACTION_CREATE_DEAL = 1;
|
|
390
|
-
EXCHANGE_DEAL_ACTION_OPEN_DEAL = 2;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
message ExchangeDealStateByCalculation {
|
|
394
|
-
string calculation_id = 1;
|
|
395
|
-
optional string deal_id = 2;
|
|
396
|
-
ExchangeDealStatus status = 3;
|
|
397
|
-
repeated ExchangeDealAction allowed_actions = 4;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
message GetExchangeDealStatesByCalculationIdsResponse {
|
|
401
|
-
repeated ExchangeDealStateByCalculation items = 1;
|
|
402
|
-
repeated string not_found_calculation_ids = 2;
|
|
336
|
+
message GetTransactionsSummaryResponse {
|
|
337
|
+
repeated GetTransactionsSummaryItem summary = 1;
|
|
403
338
|
}
|