@arbiwallet/contracts 1.0.205 → 1.0.206
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_rates.ts +225 -8
- package/package.json +1 -1
- package/proto/exchange_rates.proto +168 -4
package/gen/exchange_rates.ts
CHANGED
|
@@ -12,6 +12,107 @@ import { Struct } from "./google/protobuf/struct";
|
|
|
12
12
|
|
|
13
13
|
export const protobufPackage = "exchange_rates";
|
|
14
14
|
|
|
15
|
+
export interface CurrencySetting {
|
|
16
|
+
id: string;
|
|
17
|
+
shortName: string;
|
|
18
|
+
priorityBuy?: number | undefined;
|
|
19
|
+
prioritySell?: number | undefined;
|
|
20
|
+
priceBuy?: string | undefined;
|
|
21
|
+
priceSell?: string | undefined;
|
|
22
|
+
onePriceForVariationsBuy: boolean;
|
|
23
|
+
onePriceBuyTypeId?: string | undefined;
|
|
24
|
+
onePriceBuyType?: string | undefined;
|
|
25
|
+
onePriceForVariationsSell: boolean;
|
|
26
|
+
onePriceSellTypeId?: string | undefined;
|
|
27
|
+
onePriceSellType?: string | undefined;
|
|
28
|
+
outputRounding?: number | undefined;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface GetCurrencySettingsRequest {
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface GetCurrencySettingsResponse {
|
|
35
|
+
exist: boolean;
|
|
36
|
+
settings: CurrencySetting[];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface UpdateCurrencySettingRequest {
|
|
40
|
+
id: string;
|
|
41
|
+
priorityBuy?: number | undefined;
|
|
42
|
+
prioritySell?: number | undefined;
|
|
43
|
+
priceBuy?: string | undefined;
|
|
44
|
+
priceSell?: string | undefined;
|
|
45
|
+
onePriceForVariationsBuy?: boolean | undefined;
|
|
46
|
+
onePriceBuyTypeId?: string | undefined;
|
|
47
|
+
onePriceForVariationsSell?: boolean | undefined;
|
|
48
|
+
onePriceSellTypeId?: string | undefined;
|
|
49
|
+
outputRounding?: number | undefined;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface UpdateCurrencySettingResponse {
|
|
53
|
+
ok: boolean;
|
|
54
|
+
setting?: CurrencySetting | undefined;
|
|
55
|
+
error?: string | undefined;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface GetExchangeRatesRequest {
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface GetExchangeRatesResponse {
|
|
62
|
+
exist: boolean;
|
|
63
|
+
result?: string | undefined;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface GetCustomRatesRequest {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface CustomRate {
|
|
70
|
+
id: string;
|
|
71
|
+
inputCurrencyId: string;
|
|
72
|
+
outputCurrencyId: string;
|
|
73
|
+
inputCurrency?: string | undefined;
|
|
74
|
+
outputCurrency?: string | undefined;
|
|
75
|
+
rate: number;
|
|
76
|
+
rateProfit: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface GetCustomRatesResponse {
|
|
80
|
+
exist: boolean;
|
|
81
|
+
rates: CustomRate[];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface UpdateCustomRateRequest {
|
|
85
|
+
id: string;
|
|
86
|
+
inputCurrencyId?: string | undefined;
|
|
87
|
+
outputCurrencyId?: string | undefined;
|
|
88
|
+
rate?: number | undefined;
|
|
89
|
+
rateProfit?: string | undefined;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface UpdateCustomRateResponse {
|
|
93
|
+
ok: boolean;
|
|
94
|
+
rate?: CustomRate | undefined;
|
|
95
|
+
error?: string | undefined;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface GetBybitRateProfitRequest {
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface GetBybitRateProfitResponse {
|
|
102
|
+
exist: boolean;
|
|
103
|
+
rateProfit?: string | undefined;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface UpdateBybitRateProfitRequest {
|
|
107
|
+
rateProfit: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface UpdateBybitRateProfitResponse {
|
|
111
|
+
ok: boolean;
|
|
112
|
+
rateProfit?: string | undefined;
|
|
113
|
+
error?: string | undefined;
|
|
114
|
+
}
|
|
115
|
+
|
|
15
116
|
export interface CalculateExchangeRequest {
|
|
16
117
|
managerUserId: string;
|
|
17
118
|
managerId?: string | undefined;
|
|
@@ -76,12 +177,70 @@ export interface GetExchangeCalculationResponse {
|
|
|
76
177
|
result?: ExchangeCalculation | undefined;
|
|
77
178
|
}
|
|
78
179
|
|
|
79
|
-
export interface
|
|
180
|
+
export interface GetExchangeCalculationHistoryRequest {
|
|
181
|
+
dateFrom?: string | undefined;
|
|
182
|
+
dateTo?: string | undefined;
|
|
183
|
+
amountFrom?: number | undefined;
|
|
184
|
+
amountTo?: number | undefined;
|
|
185
|
+
inputCurrency?: string | undefined;
|
|
186
|
+
outputCurrency?:
|
|
187
|
+
| string
|
|
188
|
+
| undefined;
|
|
189
|
+
/** no_payment | with_payment | with_exchange | completed */
|
|
190
|
+
status?: string | undefined;
|
|
191
|
+
search?: string | undefined;
|
|
192
|
+
page?: number | undefined;
|
|
193
|
+
pageSize?: number | undefined;
|
|
80
194
|
}
|
|
81
195
|
|
|
82
|
-
export interface
|
|
196
|
+
export interface ExchangeCalculationHistoryAppliedFilters {
|
|
197
|
+
dateFrom?: string | undefined;
|
|
198
|
+
dateTo?: string | undefined;
|
|
199
|
+
amountFrom?: number | undefined;
|
|
200
|
+
amountTo?: number | undefined;
|
|
201
|
+
inputCurrency?: string | undefined;
|
|
202
|
+
outputCurrency?: string | undefined;
|
|
203
|
+
status?: string | undefined;
|
|
204
|
+
search?: string | undefined;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export interface ExchangeCalculationHistoryPagination {
|
|
208
|
+
page: number;
|
|
209
|
+
pageSize: number;
|
|
210
|
+
totalPages: number;
|
|
211
|
+
totalCount: number;
|
|
212
|
+
hasNext: boolean;
|
|
213
|
+
hasPrevious: boolean;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export interface ExchangeCalculationHistoryItem {
|
|
217
|
+
id: string;
|
|
218
|
+
createdAt: string;
|
|
219
|
+
customerName?: string | undefined;
|
|
220
|
+
inputCurrency: string;
|
|
221
|
+
outputCurrency: string;
|
|
222
|
+
inputCurrencyQuantity: number;
|
|
223
|
+
outputCurrencyQuantity: number;
|
|
224
|
+
exchangeRate: number;
|
|
225
|
+
finalPercent: number;
|
|
226
|
+
managerUsername?: string | undefined;
|
|
227
|
+
hasPayment: boolean;
|
|
228
|
+
paymentUuid?: string | undefined;
|
|
229
|
+
hasExchange: boolean;
|
|
230
|
+
exchangeId?: string | undefined;
|
|
231
|
+
exchangeCompleted?:
|
|
232
|
+
| boolean
|
|
233
|
+
| undefined;
|
|
234
|
+
/** no_payment | with_payment | with_exchange | completed */
|
|
235
|
+
status: string;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface GetExchangeCalculationHistoryResponse {
|
|
83
239
|
exist: boolean;
|
|
84
|
-
|
|
240
|
+
items: ExchangeCalculationHistoryItem[];
|
|
241
|
+
currencies: string[];
|
|
242
|
+
filters?: ExchangeCalculationHistoryAppliedFilters | undefined;
|
|
243
|
+
pagination?: ExchangeCalculationHistoryPagination | undefined;
|
|
85
244
|
}
|
|
86
245
|
|
|
87
246
|
export const EXCHANGE_RATES_PACKAGE_NAME = "exchange_rates";
|
|
@@ -89,14 +248,58 @@ export const EXCHANGE_RATES_PACKAGE_NAME = "exchange_rates";
|
|
|
89
248
|
wrappers[".google.protobuf.Struct"] = { fromObject: Struct.wrap, toObject: Struct.unwrap } as any;
|
|
90
249
|
|
|
91
250
|
export interface ExchangeRatesServiceClient {
|
|
251
|
+
getCurrencySettings(request: GetCurrencySettingsRequest): Observable<GetCurrencySettingsResponse>;
|
|
252
|
+
|
|
253
|
+
updateCurrencySetting(request: UpdateCurrencySettingRequest): Observable<UpdateCurrencySettingResponse>;
|
|
254
|
+
|
|
255
|
+
getExchangeRates(request: GetExchangeRatesRequest): Observable<GetExchangeRatesResponse>;
|
|
256
|
+
|
|
257
|
+
getCustomRates(request: GetCustomRatesRequest): Observable<GetCustomRatesResponse>;
|
|
258
|
+
|
|
259
|
+
updateCustomRate(request: UpdateCustomRateRequest): Observable<UpdateCustomRateResponse>;
|
|
260
|
+
|
|
261
|
+
getBybitRateProfit(request: GetBybitRateProfitRequest): Observable<GetBybitRateProfitResponse>;
|
|
262
|
+
|
|
263
|
+
updateBybitRateProfit(request: UpdateBybitRateProfitRequest): Observable<UpdateBybitRateProfitResponse>;
|
|
264
|
+
|
|
92
265
|
calculateExchange(request: CalculateExchangeRequest): Observable<CalculateExchangeResponse>;
|
|
93
266
|
|
|
94
267
|
getExchangeCalculation(request: GetExchangeCalculationRequest): Observable<GetExchangeCalculationResponse>;
|
|
95
268
|
|
|
96
|
-
|
|
269
|
+
getExchangeCalculationHistory(
|
|
270
|
+
request: GetExchangeCalculationHistoryRequest,
|
|
271
|
+
): Observable<GetExchangeCalculationHistoryResponse>;
|
|
97
272
|
}
|
|
98
273
|
|
|
99
274
|
export interface ExchangeRatesServiceController {
|
|
275
|
+
getCurrencySettings(
|
|
276
|
+
request: GetCurrencySettingsRequest,
|
|
277
|
+
): Promise<GetCurrencySettingsResponse> | Observable<GetCurrencySettingsResponse> | GetCurrencySettingsResponse;
|
|
278
|
+
|
|
279
|
+
updateCurrencySetting(
|
|
280
|
+
request: UpdateCurrencySettingRequest,
|
|
281
|
+
): Promise<UpdateCurrencySettingResponse> | Observable<UpdateCurrencySettingResponse> | UpdateCurrencySettingResponse;
|
|
282
|
+
|
|
283
|
+
getExchangeRates(
|
|
284
|
+
request: GetExchangeRatesRequest,
|
|
285
|
+
): Promise<GetExchangeRatesResponse> | Observable<GetExchangeRatesResponse> | GetExchangeRatesResponse;
|
|
286
|
+
|
|
287
|
+
getCustomRates(
|
|
288
|
+
request: GetCustomRatesRequest,
|
|
289
|
+
): Promise<GetCustomRatesResponse> | Observable<GetCustomRatesResponse> | GetCustomRatesResponse;
|
|
290
|
+
|
|
291
|
+
updateCustomRate(
|
|
292
|
+
request: UpdateCustomRateRequest,
|
|
293
|
+
): Promise<UpdateCustomRateResponse> | Observable<UpdateCustomRateResponse> | UpdateCustomRateResponse;
|
|
294
|
+
|
|
295
|
+
getBybitRateProfit(
|
|
296
|
+
request: GetBybitRateProfitRequest,
|
|
297
|
+
): Promise<GetBybitRateProfitResponse> | Observable<GetBybitRateProfitResponse> | GetBybitRateProfitResponse;
|
|
298
|
+
|
|
299
|
+
updateBybitRateProfit(
|
|
300
|
+
request: UpdateBybitRateProfitRequest,
|
|
301
|
+
): Promise<UpdateBybitRateProfitResponse> | Observable<UpdateBybitRateProfitResponse> | UpdateBybitRateProfitResponse;
|
|
302
|
+
|
|
100
303
|
calculateExchange(
|
|
101
304
|
request: CalculateExchangeRequest,
|
|
102
305
|
): Promise<CalculateExchangeResponse> | Observable<CalculateExchangeResponse> | CalculateExchangeResponse;
|
|
@@ -108,14 +311,28 @@ export interface ExchangeRatesServiceController {
|
|
|
108
311
|
| Observable<GetExchangeCalculationResponse>
|
|
109
312
|
| GetExchangeCalculationResponse;
|
|
110
313
|
|
|
111
|
-
|
|
112
|
-
request:
|
|
113
|
-
):
|
|
314
|
+
getExchangeCalculationHistory(
|
|
315
|
+
request: GetExchangeCalculationHistoryRequest,
|
|
316
|
+
):
|
|
317
|
+
| Promise<GetExchangeCalculationHistoryResponse>
|
|
318
|
+
| Observable<GetExchangeCalculationHistoryResponse>
|
|
319
|
+
| GetExchangeCalculationHistoryResponse;
|
|
114
320
|
}
|
|
115
321
|
|
|
116
322
|
export function ExchangeRatesServiceControllerMethods() {
|
|
117
323
|
return function (constructor: Function) {
|
|
118
|
-
const grpcMethods: string[] = [
|
|
324
|
+
const grpcMethods: string[] = [
|
|
325
|
+
"getCurrencySettings",
|
|
326
|
+
"updateCurrencySetting",
|
|
327
|
+
"getExchangeRates",
|
|
328
|
+
"getCustomRates",
|
|
329
|
+
"updateCustomRate",
|
|
330
|
+
"getBybitRateProfit",
|
|
331
|
+
"updateBybitRateProfit",
|
|
332
|
+
"calculateExchange",
|
|
333
|
+
"getExchangeCalculation",
|
|
334
|
+
"getExchangeCalculationHistory",
|
|
335
|
+
];
|
|
119
336
|
for (const method of grpcMethods) {
|
|
120
337
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
121
338
|
GrpcMethod("ExchangeRatesService", method)(constructor.prototype[method], method, descriptor);
|
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.206",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -9,9 +9,117 @@ option java_multiple_files = true;
|
|
|
9
9
|
option java_package = "com.arbiwallet.exchange.rates";
|
|
10
10
|
|
|
11
11
|
service ExchangeRatesService {
|
|
12
|
+
rpc GetCurrencySettings(GetCurrencySettingsRequest) returns (GetCurrencySettingsResponse);
|
|
13
|
+
rpc UpdateCurrencySetting(UpdateCurrencySettingRequest) returns (UpdateCurrencySettingResponse);
|
|
14
|
+
|
|
15
|
+
rpc GetExchangeRates(GetExchangeRatesRequest) returns (GetExchangeRatesResponse);
|
|
16
|
+
|
|
17
|
+
rpc GetCustomRates(GetCustomRatesRequest) returns (GetCustomRatesResponse);
|
|
18
|
+
rpc UpdateCustomRate(UpdateCustomRateRequest) returns (UpdateCustomRateResponse);
|
|
19
|
+
|
|
20
|
+
rpc GetBybitRateProfit(GetBybitRateProfitRequest) returns (GetBybitRateProfitResponse);
|
|
21
|
+
rpc UpdateBybitRateProfit(UpdateBybitRateProfitRequest) returns (UpdateBybitRateProfitResponse);
|
|
22
|
+
|
|
12
23
|
rpc CalculateExchange(CalculateExchangeRequest) returns (CalculateExchangeResponse);
|
|
13
24
|
rpc GetExchangeCalculation(GetExchangeCalculationRequest) returns (GetExchangeCalculationResponse);
|
|
14
|
-
rpc
|
|
25
|
+
rpc GetExchangeCalculationHistory(GetExchangeCalculationHistoryRequest) returns (GetExchangeCalculationHistoryResponse);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message CurrencySetting {
|
|
29
|
+
string id = 1;
|
|
30
|
+
string short_name = 2;
|
|
31
|
+
optional double priority_buy = 3;
|
|
32
|
+
optional double priority_sell = 4;
|
|
33
|
+
optional string price_buy = 5;
|
|
34
|
+
optional string price_sell = 6;
|
|
35
|
+
bool one_price_for_variations_buy = 7;
|
|
36
|
+
optional string one_price_buy_type_id = 8;
|
|
37
|
+
optional string one_price_buy_type = 9;
|
|
38
|
+
bool one_price_for_variations_sell = 10;
|
|
39
|
+
optional string one_price_sell_type_id = 11;
|
|
40
|
+
optional string one_price_sell_type = 12;
|
|
41
|
+
optional int32 output_rounding = 13;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message GetCurrencySettingsRequest {}
|
|
45
|
+
|
|
46
|
+
message GetCurrencySettingsResponse {
|
|
47
|
+
bool exist = 1;
|
|
48
|
+
repeated CurrencySetting settings = 2;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
message UpdateCurrencySettingRequest {
|
|
52
|
+
string id = 1;
|
|
53
|
+
optional double priority_buy = 2;
|
|
54
|
+
optional double priority_sell = 3;
|
|
55
|
+
optional string price_buy = 4;
|
|
56
|
+
optional string price_sell = 5;
|
|
57
|
+
optional bool one_price_for_variations_buy = 6;
|
|
58
|
+
optional string one_price_buy_type_id = 7;
|
|
59
|
+
optional bool one_price_for_variations_sell = 8;
|
|
60
|
+
optional string one_price_sell_type_id = 9;
|
|
61
|
+
optional int32 output_rounding = 10;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message UpdateCurrencySettingResponse {
|
|
65
|
+
bool ok = 1;
|
|
66
|
+
optional CurrencySetting setting = 2;
|
|
67
|
+
optional string error = 3;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
message GetExchangeRatesRequest {}
|
|
71
|
+
|
|
72
|
+
message GetExchangeRatesResponse {
|
|
73
|
+
bool exist = 1;
|
|
74
|
+
optional string result = 2;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
message GetCustomRatesRequest {}
|
|
78
|
+
|
|
79
|
+
message CustomRate {
|
|
80
|
+
string id = 1;
|
|
81
|
+
string input_currency_id = 2;
|
|
82
|
+
string output_currency_id = 3;
|
|
83
|
+
optional string input_currency = 4;
|
|
84
|
+
optional string output_currency = 5;
|
|
85
|
+
double rate = 6;
|
|
86
|
+
string rate_profit = 7;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
message GetCustomRatesResponse {
|
|
90
|
+
bool exist = 1;
|
|
91
|
+
repeated CustomRate rates = 2;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
message UpdateCustomRateRequest {
|
|
95
|
+
string id = 1;
|
|
96
|
+
optional string input_currency_id = 2;
|
|
97
|
+
optional string output_currency_id = 3;
|
|
98
|
+
optional double rate = 4;
|
|
99
|
+
optional string rate_profit = 5;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
message UpdateCustomRateResponse {
|
|
103
|
+
bool ok = 1;
|
|
104
|
+
optional CustomRate rate = 2;
|
|
105
|
+
optional string error = 3;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
message GetBybitRateProfitRequest {}
|
|
109
|
+
|
|
110
|
+
message GetBybitRateProfitResponse {
|
|
111
|
+
bool exist = 1;
|
|
112
|
+
optional string rate_profit = 2;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message UpdateBybitRateProfitRequest {
|
|
116
|
+
string rate_profit = 1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
message UpdateBybitRateProfitResponse {
|
|
120
|
+
bool ok = 1;
|
|
121
|
+
optional string rate_profit = 2;
|
|
122
|
+
optional string error = 3;
|
|
15
123
|
}
|
|
16
124
|
|
|
17
125
|
message CalculateExchangeRequest {
|
|
@@ -79,9 +187,65 @@ message GetExchangeCalculationResponse {
|
|
|
79
187
|
optional ExchangeCalculation result = 2;
|
|
80
188
|
}
|
|
81
189
|
|
|
82
|
-
message
|
|
190
|
+
message GetExchangeCalculationHistoryRequest {
|
|
191
|
+
optional string date_from = 1;
|
|
192
|
+
optional string date_to = 2;
|
|
193
|
+
optional double amount_from = 3;
|
|
194
|
+
optional double amount_to = 4;
|
|
195
|
+
optional string input_currency = 5;
|
|
196
|
+
optional string output_currency = 6;
|
|
197
|
+
optional string status = 7; // no_payment | with_payment | with_exchange | completed
|
|
198
|
+
optional string search = 8;
|
|
199
|
+
optional int32 page = 9;
|
|
200
|
+
optional int32 page_size = 10;
|
|
201
|
+
}
|
|
83
202
|
|
|
84
|
-
message
|
|
203
|
+
message ExchangeCalculationHistoryAppliedFilters {
|
|
204
|
+
optional string date_from = 1;
|
|
205
|
+
optional string date_to = 2;
|
|
206
|
+
optional double amount_from = 3;
|
|
207
|
+
optional double amount_to = 4;
|
|
208
|
+
optional string input_currency = 5;
|
|
209
|
+
optional string output_currency = 6;
|
|
210
|
+
optional string status = 7;
|
|
211
|
+
optional string search = 8;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
message ExchangeCalculationHistoryPagination {
|
|
215
|
+
int32 page = 1;
|
|
216
|
+
int32 page_size = 2;
|
|
217
|
+
int32 total_pages = 3;
|
|
218
|
+
int32 total_count = 4;
|
|
219
|
+
bool has_next = 5;
|
|
220
|
+
bool has_previous = 6;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
message ExchangeCalculationHistoryItem {
|
|
224
|
+
string id = 1;
|
|
225
|
+
string created_at = 2;
|
|
226
|
+
|
|
227
|
+
optional string customer_name = 3;
|
|
228
|
+
string input_currency = 4;
|
|
229
|
+
string output_currency = 5;
|
|
230
|
+
double input_currency_quantity = 6;
|
|
231
|
+
double output_currency_quantity = 7;
|
|
232
|
+
double exchange_rate = 8;
|
|
233
|
+
double final_percent = 9;
|
|
234
|
+
optional string manager_username = 10;
|
|
235
|
+
|
|
236
|
+
bool has_payment = 11;
|
|
237
|
+
optional string payment_uuid = 12;
|
|
238
|
+
bool has_exchange = 13;
|
|
239
|
+
optional string exchange_id = 14;
|
|
240
|
+
optional bool exchange_completed = 15;
|
|
241
|
+
|
|
242
|
+
string status = 16; // no_payment | with_payment | with_exchange | completed
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
message GetExchangeCalculationHistoryResponse {
|
|
85
246
|
bool exist = 1;
|
|
86
|
-
|
|
247
|
+
repeated ExchangeCalculationHistoryItem items = 2;
|
|
248
|
+
repeated string currencies = 3;
|
|
249
|
+
optional ExchangeCalculationHistoryAppliedFilters filters = 4;
|
|
250
|
+
optional ExchangeCalculationHistoryPagination pagination = 5;
|
|
87
251
|
}
|