squarefi-bff-api-module 1.32.1 → 1.32.2
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/api/auth.d.ts +29 -0
- package/dist/api/auth.js +59 -0
- package/dist/api/bank-data.d.ts +4 -0
- package/dist/api/bank-data.js +6 -0
- package/dist/api/counterparties.d.ts +14 -0
- package/dist/api/counterparties.js +16 -0
- package/dist/api/developer.d.ts +12 -0
- package/dist/api/developer.js +12 -0
- package/dist/api/exchange.d.ts +14 -0
- package/dist/api/exchange.js +20 -0
- package/dist/api/frontend.d.ts +11 -0
- package/dist/api/frontend.js +11 -0
- package/dist/api/index.d.ts +38 -0
- package/dist/api/index.js +36 -0
- package/dist/api/issuing.d.ts +64 -0
- package/dist/api/issuing.js +140 -0
- package/dist/api/kyc.d.ts +21 -0
- package/dist/api/kyc.js +21 -0
- package/dist/api/list.d.ts +16 -0
- package/dist/api/list.js +16 -0
- package/dist/api/orders.d.ts +49 -0
- package/dist/api/orders.js +84 -0
- package/dist/api/persona.d.ts +7 -0
- package/dist/api/persona.js +7 -0
- package/dist/api/storage.d.ts +8 -0
- package/dist/api/storage.js +16 -0
- package/dist/api/tenants.d.ts +6 -0
- package/dist/api/tenants.js +6 -0
- package/dist/api/totp.d.ts +17 -0
- package/dist/api/totp.js +45 -0
- package/{src/api/types/autogen/apiV2.types.ts → dist/api/types/autogen/apiV2.types.d.ts} +0 -1
- package/dist/api/types/autogen/apiV2.types.js +5 -0
- package/dist/api/types/types.d.ts +2258 -0
- package/dist/api/types/types.js +1 -0
- package/dist/api/user.d.ts +18 -0
- package/dist/api/user.js +18 -0
- package/dist/api/virtual-accounts.d.ts +9 -0
- package/dist/api/virtual-accounts.js +9 -0
- package/dist/api/wallets.d.ts +24 -0
- package/dist/api/wallets.js +30 -0
- package/dist/constants.d.ts +303 -0
- package/dist/constants.js +332 -0
- package/dist/hooks/index.js +3 -0
- package/dist/hooks/useCalc.d.ts +25 -0
- package/dist/hooks/useCalc.js +115 -0
- package/dist/hooks/useFileUpload.d.ts +49 -0
- package/dist/hooks/useFileUpload.js +100 -0
- package/dist/hooks/useSupabaseSubscription/config.d.ts +2 -0
- package/dist/hooks/useSupabaseSubscription/config.js +5 -0
- package/dist/hooks/useSupabaseSubscription/index.js +2 -0
- package/dist/hooks/useSupabaseSubscription/specialized.d.ts +5 -0
- package/{src/hooks/useSupabaseSubscription/specialized.ts → dist/hooks/useSupabaseSubscription/specialized.js} +2 -5
- package/dist/hooks/useSupabaseSubscription/types.d.ts +16 -0
- package/dist/hooks/useSupabaseSubscription/types.js +1 -0
- package/dist/hooks/useSupabaseSubscription/useSupabaseSubscription.d.ts +5 -0
- package/dist/hooks/useSupabaseSubscription/useSupabaseSubscription.js +37 -0
- package/dist/index.d.ts +7 -0
- package/dist/utils/apiClientFactory.d.ts +31 -0
- package/dist/utils/apiClientFactory.js +138 -0
- package/dist/utils/converters.d.ts +1 -0
- package/dist/utils/converters.js +1 -0
- package/dist/utils/encrypt.d.ts +10 -0
- package/dist/utils/encrypt.js +77 -0
- package/dist/utils/fileStorage.d.ts +120 -0
- package/dist/utils/fileStorage.js +292 -0
- package/dist/utils/storage.d.ts +3 -0
- package/dist/utils/storage.js +24 -0
- package/dist/utils/supabase.d.ts +1 -0
- package/dist/utils/supabase.js +12 -0
- package/dist/utils/tokensFactory.d.ts +12 -0
- package/dist/utils/tokensFactory.js +42 -0
- package/package.json +4 -1
- package/.env.example +0 -1
- package/.husky/pre-commit +0 -2
- package/.prettierignore +0 -6
- package/.prettierrc +0 -7
- package/CHANGELOG.md +0 -1415
- package/FIXED_RLS_ERROR.md +0 -146
- package/QUICK_TEST.md +0 -127
- package/STORAGE_MODULE_SUMMARY.md +0 -228
- package/TEST_INSTRUCTIONS.md +0 -122
- package/docs/AUTH_TOKEN_USAGE.md +0 -290
- package/docs/BACKEND_SERVICE_URL.md +0 -334
- package/docs/FRONTEND_STORAGE_GUIDE.md +0 -529
- package/docs/STORAGE_MODULE.md +0 -490
- package/docs/STORAGE_QUICK_START.md +0 -76
- package/scripts/generate-openapi-types.ts +0 -41
- package/scripts/supabase-storage-setup.sql +0 -223
- package/src/api/auth.ts +0 -78
- package/src/api/bank-data.ts +0 -11
- package/src/api/counterparties.ts +0 -73
- package/src/api/developer.ts +0 -20
- package/src/api/exchange.ts +0 -44
- package/src/api/frontend.ts +0 -20
- package/src/api/index.ts +0 -57
- package/src/api/issuing.ts +0 -214
- package/src/api/kyc.ts +0 -41
- package/src/api/list.ts +0 -26
- package/src/api/orders.ts +0 -255
- package/src/api/persona.ts +0 -16
- package/src/api/storage.ts +0 -24
- package/src/api/tenants.ts +0 -8
- package/src/api/totp.ts +0 -51
- package/src/api/types/types.ts +0 -2820
- package/src/api/user.ts +0 -27
- package/src/api/virtual-accounts.ts +0 -15
- package/src/api/wallets.ts +0 -65
- package/src/constants.ts +0 -343
- package/src/hooks/useCalc.ts +0 -181
- package/src/hooks/useFileUpload.ts +0 -129
- package/src/hooks/useSupabaseSubscription/config.ts +0 -7
- package/src/hooks/useSupabaseSubscription/types.ts +0 -18
- package/src/hooks/useSupabaseSubscription/useSupabaseSubscription.ts +0 -53
- package/src/utils/apiClientFactory.ts +0 -194
- package/src/utils/converters.ts +0 -1
- package/src/utils/encrypt.ts +0 -96
- package/src/utils/fileStorage.ts +0 -353
- package/src/utils/storage.ts +0 -29
- package/src/utils/supabase.ts +0 -16
- package/src/utils/tokensFactory.ts +0 -59
- package/tsconfig.json +0 -15
- package/types.d.ts +0 -11
- /package/{src/hooks/index.ts → dist/hooks/index.d.ts} +0 -0
- /package/{src/hooks/useSupabaseSubscription/index.ts → dist/hooks/useSupabaseSubscription/index.d.ts} +0 -0
- /package/{src/index.ts → dist/index.js} +0 -0
package/src/api/types/types.ts
DELETED
|
@@ -1,2820 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
APIKeyRole,
|
|
3
|
-
CardFormFactor,
|
|
4
|
-
CardStatus,
|
|
5
|
-
CardTransactionType,
|
|
6
|
-
CardType,
|
|
7
|
-
CounterpartyDestinationType,
|
|
8
|
-
CounterpartyType,
|
|
9
|
-
CurrencyType,
|
|
10
|
-
IssuingProgramStatus,
|
|
11
|
-
KYCStatuses,
|
|
12
|
-
OrderPaymentMethod,
|
|
13
|
-
OrderStatuses,
|
|
14
|
-
OrderType,
|
|
15
|
-
SortingDirection,
|
|
16
|
-
SubAccountType,
|
|
17
|
-
WalletTransactionMethod,
|
|
18
|
-
WalletTransactionRecordType,
|
|
19
|
-
WalletTransactionStatus,
|
|
20
|
-
WalletTransactionType,
|
|
21
|
-
} from '../../constants';
|
|
22
|
-
import { WalletType } from '../..';
|
|
23
|
-
import { components, operations, paths } from './autogen/apiV2.types';
|
|
24
|
-
|
|
25
|
-
export namespace API {
|
|
26
|
-
export namespace Auth {
|
|
27
|
-
export namespace RefreshToken {
|
|
28
|
-
export type Request = operations['AuthController_refreshToken']['requestBody']['content']['application/json'];
|
|
29
|
-
export type Response =
|
|
30
|
-
operations['AuthController_refreshToken']['responses']['200']['content']['application/json'];
|
|
31
|
-
}
|
|
32
|
-
export namespace Telegram {
|
|
33
|
-
export namespace Signin {
|
|
34
|
-
export type Request = operations['AuthTelegramController_signIn']['requestBody']['content']['application/json'];
|
|
35
|
-
export type Response =
|
|
36
|
-
operations['AuthTelegramController_signIn']['responses']['200']['content']['application/json'];
|
|
37
|
-
}
|
|
38
|
-
export namespace Signup {
|
|
39
|
-
export type Request = operations['AuthTelegramController_signUp']['requestBody']['content']['application/json'];
|
|
40
|
-
export type Response =
|
|
41
|
-
operations['AuthTelegramController_signUp']['responses']['200']['content']['application/json'];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface Tokens {
|
|
46
|
-
access_token: string;
|
|
47
|
-
refresh_token: string;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export namespace Update {
|
|
51
|
-
export namespace Phone {
|
|
52
|
-
export interface Request {
|
|
53
|
-
phone: string;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export namespace SignIn {
|
|
59
|
-
export namespace ByType {
|
|
60
|
-
export type Request = operations['AuthController_signIn']['requestBody']['content']['application/json'];
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export namespace Omni {
|
|
64
|
-
export namespace Email {
|
|
65
|
-
export namespace OTP {
|
|
66
|
-
export interface Request {
|
|
67
|
-
email: string;
|
|
68
|
-
invite_code?: string;
|
|
69
|
-
referrer?: string;
|
|
70
|
-
redirect_url?: string;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export namespace Phone {
|
|
76
|
-
export namespace OTP {
|
|
77
|
-
export interface Request {
|
|
78
|
-
phone: string;
|
|
79
|
-
invite_code?: string;
|
|
80
|
-
referrer?: string;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export namespace SignUp {
|
|
88
|
-
export namespace ByType {
|
|
89
|
-
export type Request = operations['AuthController_signUp']['requestBody']['content']['application/json'];
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export namespace Password {
|
|
93
|
-
export interface Request {
|
|
94
|
-
email: string;
|
|
95
|
-
password: string;
|
|
96
|
-
invite_code?: string;
|
|
97
|
-
referrer?: string;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
// export interface SupabaseGetSessionResponse {
|
|
102
|
-
// session?: Tokens;
|
|
103
|
-
// // user?: User;
|
|
104
|
-
// error?: string;
|
|
105
|
-
// }
|
|
106
|
-
|
|
107
|
-
export namespace VerifyOtp {
|
|
108
|
-
export type Response = {
|
|
109
|
-
access_token: string;
|
|
110
|
-
refresh_token: string;
|
|
111
|
-
error?: string;
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
export namespace BankData {
|
|
116
|
-
export namespace GetBankDataByAccountNumber {
|
|
117
|
-
export type Request = operations['BankDataController_getBankDataByCode']['parameters']['query'];
|
|
118
|
-
export type Response =
|
|
119
|
-
operations['BankDataController_getBankDataByCode']['responses']['200']['content']['application/json'];
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export namespace Cards {
|
|
124
|
-
export namespace Config {
|
|
125
|
-
export type IssuingProgramOrderType = {
|
|
126
|
-
id: string;
|
|
127
|
-
order_types_id: OrderType | string;
|
|
128
|
-
issuing_programs_id: string;
|
|
129
|
-
};
|
|
130
|
-
export interface Program {
|
|
131
|
-
id: string;
|
|
132
|
-
account_currency: string;
|
|
133
|
-
brand: string;
|
|
134
|
-
form_factor: CardFormFactor | string;
|
|
135
|
-
consent_text: string | null;
|
|
136
|
-
name: string;
|
|
137
|
-
// card_limit: number; deprecated, use max_cards instead
|
|
138
|
-
max_cards: number;
|
|
139
|
-
realtime_auth: boolean;
|
|
140
|
-
tokenizable: boolean;
|
|
141
|
-
kyc_rails_id: string;
|
|
142
|
-
integration_vendor_id: string;
|
|
143
|
-
vendor_id: string;
|
|
144
|
-
type: CardType | string; // MOCK
|
|
145
|
-
order_types: IssuingProgramOrderType[];
|
|
146
|
-
sub_account_type: SubAccountType | string;
|
|
147
|
-
description: string | null;
|
|
148
|
-
icon: string | null;
|
|
149
|
-
card_issuing_fee: number | null;
|
|
150
|
-
card_monthly_fee: number | null;
|
|
151
|
-
initial_topup: number | null;
|
|
152
|
-
status?: IssuingProgramStatus | string;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
export interface User {
|
|
156
|
-
email: string;
|
|
157
|
-
whitelabel: string;
|
|
158
|
-
id: string;
|
|
159
|
-
nickname: string;
|
|
160
|
-
role: string;
|
|
161
|
-
status: string;
|
|
162
|
-
user_type: string;
|
|
163
|
-
invite_accept: boolean;
|
|
164
|
-
is_new_client: boolean;
|
|
165
|
-
account: {
|
|
166
|
-
first_name: string;
|
|
167
|
-
middle_name: string;
|
|
168
|
-
last_name: string;
|
|
169
|
-
date_of_birth: string;
|
|
170
|
-
phone: string;
|
|
171
|
-
type: string;
|
|
172
|
-
id: string;
|
|
173
|
-
user_id: number;
|
|
174
|
-
tg_account: string;
|
|
175
|
-
company: {
|
|
176
|
-
name: string;
|
|
177
|
-
registration_number: string;
|
|
178
|
-
phone: string;
|
|
179
|
-
primary_contact_email: string;
|
|
180
|
-
id: string;
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export namespace Limits {
|
|
186
|
-
export interface Limits {
|
|
187
|
-
all_time_enabled: boolean;
|
|
188
|
-
all_time_cap: number;
|
|
189
|
-
all_time_spent: number;
|
|
190
|
-
daily_enabled: boolean;
|
|
191
|
-
daily_cap: number;
|
|
192
|
-
daily_spent: number;
|
|
193
|
-
weekly_enabled: boolean;
|
|
194
|
-
weekly_cap: number;
|
|
195
|
-
weekly_spent: number;
|
|
196
|
-
monthly_enabled: boolean;
|
|
197
|
-
monthly_cap: number;
|
|
198
|
-
monthly_spent: number;
|
|
199
|
-
yearly_enabled: boolean;
|
|
200
|
-
yearly_cap: number;
|
|
201
|
-
yearly_spent: number;
|
|
202
|
-
per_transaction_enabled: boolean;
|
|
203
|
-
per_transaction_cap: number;
|
|
204
|
-
per_transaction_spent: number;
|
|
205
|
-
}
|
|
206
|
-
export interface UpdateRequest {
|
|
207
|
-
all_time_cap?: number;
|
|
208
|
-
daily_cap?: number;
|
|
209
|
-
weekly_cap?: number;
|
|
210
|
-
monthly_cap?: number;
|
|
211
|
-
yearly_cap?: number;
|
|
212
|
-
per_transaction_cap?: number;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export interface IssuingCardListItem {
|
|
217
|
-
brand: string;
|
|
218
|
-
card_id: string;
|
|
219
|
-
card_status: string;
|
|
220
|
-
created_at: string;
|
|
221
|
-
nick_name: string | null;
|
|
222
|
-
wallet_id: string;
|
|
223
|
-
program_id: string;
|
|
224
|
-
limits?: API.Cards.Limits.Limits;
|
|
225
|
-
fiat_account: API.Issuing.SubAccounts.SubAccount;
|
|
226
|
-
last4: string;
|
|
227
|
-
request_id: string;
|
|
228
|
-
name_on_card: string | null;
|
|
229
|
-
type: CardType | string;
|
|
230
|
-
form_factor: CardFormFactor | string;
|
|
231
|
-
tokenizable: boolean;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
export interface IssuingCardDetailItem {
|
|
235
|
-
id: string;
|
|
236
|
-
brand: string;
|
|
237
|
-
card_id: string;
|
|
238
|
-
fiat_account: API.Issuing.SubAccounts.SubAccount;
|
|
239
|
-
last4: string;
|
|
240
|
-
card_status: string;
|
|
241
|
-
form_factor: string;
|
|
242
|
-
name_on_card: string | null;
|
|
243
|
-
nick_name: string;
|
|
244
|
-
wallet_id: string;
|
|
245
|
-
type: string;
|
|
246
|
-
tokenizable: boolean;
|
|
247
|
-
issuing_programs: API.Cards.Config.Program;
|
|
248
|
-
limits?: API.Cards.Limits.Limits;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export interface SubAccountCardListItem {
|
|
252
|
-
type: string;
|
|
253
|
-
brand: string;
|
|
254
|
-
last4: string;
|
|
255
|
-
card_id: string;
|
|
256
|
-
nick_name: string;
|
|
257
|
-
vendor_id: string;
|
|
258
|
-
wallet_id: string;
|
|
259
|
-
created_at: string;
|
|
260
|
-
program_id: string;
|
|
261
|
-
request_id: string;
|
|
262
|
-
card_number: string;
|
|
263
|
-
card_status: string;
|
|
264
|
-
expiry_year: number;
|
|
265
|
-
form_factor: string;
|
|
266
|
-
tokenizable: boolean;
|
|
267
|
-
expiry_month: number;
|
|
268
|
-
fiat_account: string;
|
|
269
|
-
name_on_card: string;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
export namespace CardsList {
|
|
273
|
-
export namespace Request {
|
|
274
|
-
export type CardsListSortingFields = Partial<
|
|
275
|
-
Pick<IssuingCardListItem, 'created_at' | 'card_status' | 'last4' | 'nick_name' | 'name_on_card' | 'card_id'>
|
|
276
|
-
>;
|
|
277
|
-
export type CardsListFilteringFields = Partial<IssuingCardListItem>;
|
|
278
|
-
|
|
279
|
-
export type CardsListRequestCommonParams = API.Common.Pagination.Request &
|
|
280
|
-
API.Common.Sorting.Request<CardsListSortingFields> &
|
|
281
|
-
API.Common.Filtering.Request<CardsListFilteringFields>;
|
|
282
|
-
|
|
283
|
-
export interface ByWalletUuid extends CardsListRequestCommonParams {
|
|
284
|
-
wallet_uuid: string;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
export interface BySubaccountAndWalletUuid extends ByWalletUuid {
|
|
288
|
-
filter?: Record<'fiat_account', Record<'type', SubAccountType>>;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
export type BySubAccountAndWalletId = ByWalletUuid & {
|
|
292
|
-
fiat_account_id: string;
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
export type Response = {
|
|
297
|
-
count: number;
|
|
298
|
-
data: IssuingCardListItem[];
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
export interface TransactionItem {
|
|
303
|
-
vendor_transaction_id: string;
|
|
304
|
-
created_at: string;
|
|
305
|
-
cleared_at: string;
|
|
306
|
-
merchant: {
|
|
307
|
-
name: string;
|
|
308
|
-
category_code: string;
|
|
309
|
-
city: string;
|
|
310
|
-
country: string;
|
|
311
|
-
};
|
|
312
|
-
last4: string;
|
|
313
|
-
title: string;
|
|
314
|
-
billing_amount: number;
|
|
315
|
-
billing_currency: string;
|
|
316
|
-
transaction_amount: number;
|
|
317
|
-
transaction_currency: string;
|
|
318
|
-
vendor_sub_account_id: string;
|
|
319
|
-
failure_reason: string;
|
|
320
|
-
status: string;
|
|
321
|
-
transaction_type: CardTransactionType | string;
|
|
322
|
-
is_credit: boolean;
|
|
323
|
-
has_receipt: boolean;
|
|
324
|
-
adjustment_type: string;
|
|
325
|
-
review_status: string;
|
|
326
|
-
group: string;
|
|
327
|
-
total_amount: number;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
export interface TransactionsList {
|
|
331
|
-
data: TransactionItem[];
|
|
332
|
-
has_more: boolean;
|
|
333
|
-
count: number;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
export interface SensitiveData {
|
|
337
|
-
card_number: string;
|
|
338
|
-
cvv: string;
|
|
339
|
-
expiry_month: number;
|
|
340
|
-
expiry_year: number;
|
|
341
|
-
security_code?: string;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
export interface OTP {
|
|
345
|
-
created_at: number;
|
|
346
|
-
internal_card_id: string;
|
|
347
|
-
otp: string;
|
|
348
|
-
valid_to: number;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
export type AuthorizationControls = {
|
|
352
|
-
allowed_merchant_categories: string[];
|
|
353
|
-
allowed_transaction_count: string;
|
|
354
|
-
};
|
|
355
|
-
|
|
356
|
-
export type TransactionLimit = {
|
|
357
|
-
amount: number;
|
|
358
|
-
interval: string;
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
export namespace Create {
|
|
362
|
-
export interface CommonRequest {
|
|
363
|
-
program_id: string;
|
|
364
|
-
request_id: string;
|
|
365
|
-
nick_name: string;
|
|
366
|
-
wallet_id: string;
|
|
367
|
-
initial_topup?: number;
|
|
368
|
-
currency_id?: string;
|
|
369
|
-
user_data_id: string;
|
|
370
|
-
}
|
|
371
|
-
export type StandAloneRequest = CommonRequest;
|
|
372
|
-
|
|
373
|
-
export interface SubAccountRequest extends CommonRequest {
|
|
374
|
-
sub_account_id: string;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
export type StandAloneResponse = IssuingCardDetailItem;
|
|
378
|
-
export type SubAccountResponse = {
|
|
379
|
-
card_id: string;
|
|
380
|
-
status: string;
|
|
381
|
-
};
|
|
382
|
-
|
|
383
|
-
export type ExtendedSubAccountResponse = SubAccountResponse & {
|
|
384
|
-
sub_account_id: string;
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
export namespace Chains {
|
|
390
|
-
export interface Chain {
|
|
391
|
-
id: number;
|
|
392
|
-
name: string;
|
|
393
|
-
symbol: string;
|
|
394
|
-
is_beta: boolean | null;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
export type ChainList = {
|
|
398
|
-
count: number;
|
|
399
|
-
data: Chain[];
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
export namespace Common {
|
|
404
|
-
export namespace Pagination {
|
|
405
|
-
export interface Request {
|
|
406
|
-
limit: number;
|
|
407
|
-
offset: number;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
export namespace Sorting {
|
|
412
|
-
export interface Request<T> {
|
|
413
|
-
sort_by?: keyof Partial<T>;
|
|
414
|
-
sort_order?: SortingDirection;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
export namespace Filtering {
|
|
419
|
-
export interface Request<T> {
|
|
420
|
-
filter?: Partial<Record<keyof T, any>>;
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
export namespace Encrypted {
|
|
425
|
-
export interface Request {
|
|
426
|
-
encrypted_key: string;
|
|
427
|
-
}
|
|
428
|
-
export interface Response {
|
|
429
|
-
data: string;
|
|
430
|
-
success: boolean;
|
|
431
|
-
encrypted: boolean;
|
|
432
|
-
iv: string;
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
export namespace Counterparties {
|
|
438
|
-
export interface Counterparty {
|
|
439
|
-
id: string;
|
|
440
|
-
email: string;
|
|
441
|
-
phone: string;
|
|
442
|
-
name: string;
|
|
443
|
-
nickname?: string | null;
|
|
444
|
-
type: CounterpartyType | string;
|
|
445
|
-
created_at: string;
|
|
446
|
-
}
|
|
447
|
-
export namespace Destination {
|
|
448
|
-
export namespace List {
|
|
449
|
-
export interface DestinationListItemCommonFields {
|
|
450
|
-
id: string;
|
|
451
|
-
nickname: string;
|
|
452
|
-
type: CounterpartyDestinationType | string;
|
|
453
|
-
created_at: string;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
export interface DestinationListItemExternalBankingData {
|
|
457
|
-
account_number?: string;
|
|
458
|
-
routing_number?: string;
|
|
459
|
-
bank_name: string;
|
|
460
|
-
note: string;
|
|
461
|
-
swift_bic?: string;
|
|
462
|
-
address: {
|
|
463
|
-
city: string;
|
|
464
|
-
country_id: number;
|
|
465
|
-
state_id: number;
|
|
466
|
-
postcode: string;
|
|
467
|
-
street1: string;
|
|
468
|
-
street2?: string;
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
export interface DestinationListItemExternalCryptoData {
|
|
473
|
-
address: string;
|
|
474
|
-
currency_id: string;
|
|
475
|
-
memo?: string;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
export interface DestinationListItemWithExternalBankingData extends DestinationListItemCommonFields {
|
|
479
|
-
type:
|
|
480
|
-
| CounterpartyDestinationType.DOMESTIC_WIRE
|
|
481
|
-
| CounterpartyDestinationType.ACH
|
|
482
|
-
| CounterpartyDestinationType.SWIFT
|
|
483
|
-
| CounterpartyDestinationType.SEPA;
|
|
484
|
-
external_banking_data: DestinationListItemExternalBankingData;
|
|
485
|
-
external_crypto_data?: never;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
export interface DestinationListItemWithExternalCryptoData extends DestinationListItemCommonFields {
|
|
489
|
-
type: CounterpartyDestinationType.CRYPTO_EXTERNAL | CounterpartyDestinationType.CRYPTO_INTERNAL;
|
|
490
|
-
external_banking_data?: never;
|
|
491
|
-
external_crypto_data: DestinationListItemExternalCryptoData;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
export type CounterpartyDestinationListItem =
|
|
495
|
-
| DestinationListItemWithExternalBankingData
|
|
496
|
-
| DestinationListItemWithExternalCryptoData;
|
|
497
|
-
|
|
498
|
-
export interface Request {
|
|
499
|
-
wallet_id: string;
|
|
500
|
-
counterparty_account_id: string;
|
|
501
|
-
limit?: number;
|
|
502
|
-
offset?: number;
|
|
503
|
-
search?: string;
|
|
504
|
-
type?: CounterpartyDestinationType | string;
|
|
505
|
-
sort_by?: 'created_at' | 'nickname' | 'type';
|
|
506
|
-
sort_order?: SortingDirection;
|
|
507
|
-
filter?: {
|
|
508
|
-
type?: CounterpartyDestinationType;
|
|
509
|
-
nickname?: string;
|
|
510
|
-
created_at?: string;
|
|
511
|
-
};
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
export type Response = {
|
|
515
|
-
total: number;
|
|
516
|
-
data: CounterpartyDestinationListItem[];
|
|
517
|
-
};
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
export namespace Detail {
|
|
521
|
-
export type DestinationDetailItemCommonFields =
|
|
522
|
-
API.Counterparties.Destination.List.DestinationListItemCommonFields;
|
|
523
|
-
|
|
524
|
-
export interface DestinationDetailItemExternalBankingData
|
|
525
|
-
extends API.Counterparties.Destination.List.DestinationListItemExternalBankingData {
|
|
526
|
-
address: API.Counterparties.Destination.List.DestinationListItemExternalBankingData['address'] & {
|
|
527
|
-
country?: API.Location.Countries.Country;
|
|
528
|
-
state?: API.Location.States.State;
|
|
529
|
-
};
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
export interface DestinationDetailItemExternalCryptoData
|
|
533
|
-
extends API.Counterparties.Destination.List.DestinationListItemExternalCryptoData {
|
|
534
|
-
currency: API.Currencies.Currency;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
export interface DestinationDetailItemWithExternalBankingData extends DestinationDetailItemCommonFields {
|
|
538
|
-
type:
|
|
539
|
-
| CounterpartyDestinationType.DOMESTIC_WIRE
|
|
540
|
-
| CounterpartyDestinationType.ACH
|
|
541
|
-
| CounterpartyDestinationType.SWIFT
|
|
542
|
-
| CounterpartyDestinationType.SEPA;
|
|
543
|
-
external_banking_data: DestinationDetailItemExternalBankingData;
|
|
544
|
-
external_crypto_data?: never;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
export interface DestinationDetailItemWithExternalCryptoData extends DestinationDetailItemCommonFields {
|
|
548
|
-
type: CounterpartyDestinationType.CRYPTO_EXTERNAL | CounterpartyDestinationType.CRYPTO_INTERNAL;
|
|
549
|
-
external_banking_data?: never;
|
|
550
|
-
external_crypto_data: DestinationDetailItemExternalCryptoData;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
export type DestinationDetailItem =
|
|
554
|
-
| DestinationDetailItemWithExternalBankingData
|
|
555
|
-
| DestinationDetailItemWithExternalCryptoData;
|
|
556
|
-
export interface Request {
|
|
557
|
-
wallet_id: string;
|
|
558
|
-
counterparty_account_id: string;
|
|
559
|
-
counterparty_destination_id: string;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
export type Response = DestinationDetailItem;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
export namespace Create {
|
|
566
|
-
export interface ExternalBankingData {
|
|
567
|
-
account_number: string;
|
|
568
|
-
routing_number: string;
|
|
569
|
-
bank_name: string;
|
|
570
|
-
note: string;
|
|
571
|
-
swift_bic: string;
|
|
572
|
-
}
|
|
573
|
-
export interface Request {
|
|
574
|
-
wallet_id: string;
|
|
575
|
-
counterparty_account_id: string;
|
|
576
|
-
type: CounterpartyDestinationType;
|
|
577
|
-
nickname: string;
|
|
578
|
-
external_banking_data?: API.Counterparties.Destination.Detail.DestinationDetailItemExternalBankingData;
|
|
579
|
-
|
|
580
|
-
external_crypto_data?: Pick<
|
|
581
|
-
API.Counterparties.Destination.Detail.DestinationDetailItemExternalCryptoData,
|
|
582
|
-
'currency_id' | 'address' | 'memo'
|
|
583
|
-
>;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
export type Response = API.Counterparties.Destination.Detail.DestinationDetailItem;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
export namespace Delete {
|
|
590
|
-
export interface Request {
|
|
591
|
-
wallet_id: string;
|
|
592
|
-
counterparty_account_id: string;
|
|
593
|
-
counterparty_destination_id: string;
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
export namespace Update {
|
|
598
|
-
export interface Request {
|
|
599
|
-
wallet_id: string;
|
|
600
|
-
counterparty_account_id: string;
|
|
601
|
-
counterparty_destination_id: string;
|
|
602
|
-
nickname: string;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
export type Response = API.Counterparties.Destination.Detail.DestinationDetailItemCommonFields;
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
export namespace GetById {
|
|
610
|
-
export interface Request {
|
|
611
|
-
wallet_id: string;
|
|
612
|
-
counterparty_account_id: string;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
export type Response = Counterparty;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
export namespace List {
|
|
619
|
-
export interface Request {
|
|
620
|
-
wallet_id: string;
|
|
621
|
-
offset?: number;
|
|
622
|
-
limit?: number;
|
|
623
|
-
sort_by?: 'created_at' | 'nickname' | 'type' | 'email' | 'phone';
|
|
624
|
-
sort_order?: SortingDirection;
|
|
625
|
-
filter?: {
|
|
626
|
-
type?: CounterpartyDestinationType;
|
|
627
|
-
nickname?: string;
|
|
628
|
-
created_at?: string;
|
|
629
|
-
search?: string;
|
|
630
|
-
};
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
export type Response = {
|
|
634
|
-
total: number;
|
|
635
|
-
data: Counterparty[];
|
|
636
|
-
};
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
export namespace Create {
|
|
640
|
-
export type Request = Omit<Counterparty, 'id' | 'created_at'> & {
|
|
641
|
-
wallet_id: string;
|
|
642
|
-
};
|
|
643
|
-
|
|
644
|
-
export type Response = Counterparty;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
export namespace Update {
|
|
648
|
-
export type Request = Partial<Omit<Counterparty, 'id' | 'created_at'>> & {
|
|
649
|
-
wallet_id: string;
|
|
650
|
-
counterparty_account_id: string;
|
|
651
|
-
};
|
|
652
|
-
|
|
653
|
-
export type Response = Counterparty;
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
export namespace Currencies {
|
|
658
|
-
interface CommonCurrencyFields {
|
|
659
|
-
uuid: string;
|
|
660
|
-
decimal: number | null;
|
|
661
|
-
is_memo: boolean | null;
|
|
662
|
-
is_stablecoin: boolean;
|
|
663
|
-
is_enabled: boolean; // added
|
|
664
|
-
render_decimal: number;
|
|
665
|
-
meta: {
|
|
666
|
-
icon: string;
|
|
667
|
-
name: string;
|
|
668
|
-
symbol: string;
|
|
669
|
-
description: string;
|
|
670
|
-
};
|
|
671
|
-
type: CurrencyType; // moved
|
|
672
|
-
}
|
|
673
|
-
export interface CryptoCurrency extends CommonCurrencyFields {
|
|
674
|
-
is_crypto: true;
|
|
675
|
-
meta: CommonCurrencyFields['meta'] & {
|
|
676
|
-
chain_id: number;
|
|
677
|
-
contract: string;
|
|
678
|
-
chain_name: string;
|
|
679
|
-
};
|
|
680
|
-
}
|
|
681
|
-
export interface FiatCurrency extends CommonCurrencyFields {
|
|
682
|
-
is_crypto: false;
|
|
683
|
-
meta: CommonCurrencyFields['meta'] & {
|
|
684
|
-
code: string;
|
|
685
|
-
iso_code: number;
|
|
686
|
-
sign: string;
|
|
687
|
-
};
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
export type Currency = CryptoCurrency | FiatCurrency;
|
|
691
|
-
|
|
692
|
-
export type CurrencyList = {
|
|
693
|
-
count: number;
|
|
694
|
-
data: Currency[];
|
|
695
|
-
};
|
|
696
|
-
|
|
697
|
-
// Упрощенная версия валюты (используется в некоторых эндпоинтах)
|
|
698
|
-
export interface SimplifiedCurrency {
|
|
699
|
-
icon?: string | null;
|
|
700
|
-
name: string;
|
|
701
|
-
uuid: string;
|
|
702
|
-
symbol: string;
|
|
703
|
-
decimal: number;
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
export namespace Developer {
|
|
708
|
-
export namespace ApiCode {
|
|
709
|
-
export interface ApiCode {
|
|
710
|
-
role: APIKeyRole | string;
|
|
711
|
-
name: string;
|
|
712
|
-
id: string;
|
|
713
|
-
created_at: string;
|
|
714
|
-
updated_at: string;
|
|
715
|
-
}
|
|
716
|
-
export namespace Create {
|
|
717
|
-
export interface Request {
|
|
718
|
-
name: string;
|
|
719
|
-
role: APIKeyRole;
|
|
720
|
-
}
|
|
721
|
-
export interface Response extends ApiCode {
|
|
722
|
-
apiKey: string;
|
|
723
|
-
key_hash: string;
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
export namespace Update {
|
|
728
|
-
export interface Request {
|
|
729
|
-
uuid: string;
|
|
730
|
-
// name: string;
|
|
731
|
-
role: APIKeyRole;
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
export namespace Rotate {
|
|
736
|
-
export interface Request {
|
|
737
|
-
uuid: string;
|
|
738
|
-
}
|
|
739
|
-
export interface Response {
|
|
740
|
-
apiKey: string;
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
export namespace Vendors {
|
|
746
|
-
export interface Vendor {
|
|
747
|
-
id: string;
|
|
748
|
-
name: string;
|
|
749
|
-
type: string;
|
|
750
|
-
currency: string;
|
|
751
|
-
currency_id: string;
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
export namespace Exchange {
|
|
757
|
-
// export interface F2C {
|
|
758
|
-
// crypto_uuid: string;
|
|
759
|
-
// crypto_symbol: string;
|
|
760
|
-
// fiat_uuid: string;
|
|
761
|
-
// fiat_code: string;
|
|
762
|
-
// rate: number;
|
|
763
|
-
// min_amount: number;
|
|
764
|
-
// }
|
|
765
|
-
|
|
766
|
-
// export interface C2F {
|
|
767
|
-
// crypto_uuid: string;
|
|
768
|
-
// crypto_symbol: string;
|
|
769
|
-
// fiat_uuid: string;
|
|
770
|
-
// fiat_code: string;
|
|
771
|
-
// rate: number;
|
|
772
|
-
// min_amount: number;
|
|
773
|
-
// }
|
|
774
|
-
|
|
775
|
-
// export interface C2C {
|
|
776
|
-
// from_uuid: string;
|
|
777
|
-
// from_symbol: string;
|
|
778
|
-
// to_uuid: string;
|
|
779
|
-
// to_symbol: string;
|
|
780
|
-
// rate: number;
|
|
781
|
-
// min_amount: string;
|
|
782
|
-
// }
|
|
783
|
-
|
|
784
|
-
export interface Exchange {
|
|
785
|
-
// id: number;
|
|
786
|
-
updated_at: string;
|
|
787
|
-
from: string;
|
|
788
|
-
to: string;
|
|
789
|
-
rate: number;
|
|
790
|
-
inverted_rate: number;
|
|
791
|
-
rate_source: string;
|
|
792
|
-
from_uuid: string;
|
|
793
|
-
to_uuid: string;
|
|
794
|
-
min_amount: string;
|
|
795
|
-
offramp_enabled: boolean;
|
|
796
|
-
onramp_enabled: boolean;
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
export namespace Frontend {
|
|
801
|
-
export namespace Access {
|
|
802
|
-
export namespace Keys {
|
|
803
|
-
export interface Key {
|
|
804
|
-
id: string;
|
|
805
|
-
name: string;
|
|
806
|
-
role: APIKeyRole;
|
|
807
|
-
wallet_id: string;
|
|
808
|
-
created_at: string;
|
|
809
|
-
is_enabled: boolean;
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
export interface ExtendedKey extends Key {
|
|
813
|
-
key: string;
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
export namespace Create {
|
|
817
|
-
export type Request = {
|
|
818
|
-
name: string;
|
|
819
|
-
role: APIKeyRole;
|
|
820
|
-
wallet_id: string;
|
|
821
|
-
};
|
|
822
|
-
export type Response = {
|
|
823
|
-
success: boolean;
|
|
824
|
-
data: API.Frontend.Access.Keys.ExtendedKey;
|
|
825
|
-
};
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
export namespace List {
|
|
829
|
-
export type Response = {
|
|
830
|
-
success: boolean;
|
|
831
|
-
data: API.Frontend.Access.Keys.Key[];
|
|
832
|
-
};
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
export namespace Regenerate {
|
|
836
|
-
export type Response = {
|
|
837
|
-
success: boolean;
|
|
838
|
-
data: API.Frontend.Access.Keys.ExtendedKey;
|
|
839
|
-
};
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
export namespace Revoke {
|
|
843
|
-
export type Response = {
|
|
844
|
-
success: boolean;
|
|
845
|
-
data: {
|
|
846
|
-
id: string;
|
|
847
|
-
revoked_at: string;
|
|
848
|
-
};
|
|
849
|
-
};
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
// export namespace SubAccountsV2 {
|
|
856
|
-
// export type SubAccountDetails = {
|
|
857
|
-
// iban: string;
|
|
858
|
-
// bank_name: string;
|
|
859
|
-
// swift_code: string;
|
|
860
|
-
// bank_address: string;
|
|
861
|
-
// receiver_name: string;
|
|
862
|
-
// payment_details: string;
|
|
863
|
-
// reference_number: string;
|
|
864
|
-
// registration_number: string;
|
|
865
|
-
// };
|
|
866
|
-
|
|
867
|
-
// export interface SubAccount {
|
|
868
|
-
// balance: number;
|
|
869
|
-
// cards_count: number;
|
|
870
|
-
// created_at: string;
|
|
871
|
-
// currency: API.Currencies.FiatCurrency;
|
|
872
|
-
// fiat_balance: number;
|
|
873
|
-
// id: string;
|
|
874
|
-
// issuing_program: API.Cards.Config.Program;
|
|
875
|
-
// nick_name: string;
|
|
876
|
-
// program_id: string;
|
|
877
|
-
// realtimeauth_balance: number;
|
|
878
|
-
// status: string;
|
|
879
|
-
// total_balance: number;
|
|
880
|
-
// wallet_id: string;
|
|
881
|
-
// }
|
|
882
|
-
|
|
883
|
-
// export namespace ExtendedSubAccount {
|
|
884
|
-
// export interface ExtendedSubAccount extends SubAccount {
|
|
885
|
-
// account_details?: SubAccountDetails;
|
|
886
|
-
// payment_types: Array<{ order_type: OrderType }>;
|
|
887
|
-
// realtime_auth: [
|
|
888
|
-
// {
|
|
889
|
-
// crypto_token: string;
|
|
890
|
-
// fiat_account: string;
|
|
891
|
-
// id: string;
|
|
892
|
-
// priority: number;
|
|
893
|
-
// }
|
|
894
|
-
// ];
|
|
895
|
-
// }
|
|
896
|
-
// export interface Request {
|
|
897
|
-
// wallet_uuid: string;
|
|
898
|
-
// fiat_account_id: string;
|
|
899
|
-
// }
|
|
900
|
-
|
|
901
|
-
// export type Response = ExtendedSubAccount;
|
|
902
|
-
// }
|
|
903
|
-
|
|
904
|
-
// export interface SubAccountWithCards extends SubAccount {
|
|
905
|
-
// cards: API.Cards.IssuingCardListItem[];
|
|
906
|
-
// }
|
|
907
|
-
|
|
908
|
-
// export interface SubAccountsList<T extends SubAccount | SubAccountWithCards> {
|
|
909
|
-
// count: number;
|
|
910
|
-
// data: T[];
|
|
911
|
-
// }
|
|
912
|
-
|
|
913
|
-
// export type SubAccountsListWithCards = SubAccountsList<SubAccountWithCards>;
|
|
914
|
-
// export type SubAccountsListWithoutCards = SubAccountsList<SubAccount>;
|
|
915
|
-
|
|
916
|
-
// export namespace CreateSubAccount {
|
|
917
|
-
// export interface Request {
|
|
918
|
-
// wallet_id: string;
|
|
919
|
-
// program_id: string;
|
|
920
|
-
// }
|
|
921
|
-
// export type Response = {
|
|
922
|
-
// id: string;
|
|
923
|
-
// balance: number;
|
|
924
|
-
// nick_name: string;
|
|
925
|
-
// wallet_id: string;
|
|
926
|
-
// created_at: string;
|
|
927
|
-
// account_currency: string;
|
|
928
|
-
// type: SubAccountType | string;
|
|
929
|
-
// program_id: string;
|
|
930
|
-
// status: 'ACTIVE';
|
|
931
|
-
// fiat: {
|
|
932
|
-
// code: string;
|
|
933
|
-
// uuid: string;
|
|
934
|
-
// symbol: string;
|
|
935
|
-
// enabled: boolean;
|
|
936
|
-
// coingecko: string;
|
|
937
|
-
// };
|
|
938
|
-
// issuing_program: {
|
|
939
|
-
// id: string;
|
|
940
|
-
// form_factor: CardFormFactor | string;
|
|
941
|
-
// brand: string;
|
|
942
|
-
// tokenizable: boolean;
|
|
943
|
-
// type: CardType | string;
|
|
944
|
-
// };
|
|
945
|
-
// };
|
|
946
|
-
// }
|
|
947
|
-
|
|
948
|
-
// export namespace Transactions {
|
|
949
|
-
// // export type Transaction = API.Cards.TransactionItem;
|
|
950
|
-
// export type Transaction = {
|
|
951
|
-
// vendor_transaction_id: string;
|
|
952
|
-
// created_at: string;
|
|
953
|
-
// cleared_at: string;
|
|
954
|
-
// merchant: {
|
|
955
|
-
// name: string;
|
|
956
|
-
// category_code: string;
|
|
957
|
-
// city: string;
|
|
958
|
-
// country: string;
|
|
959
|
-
// };
|
|
960
|
-
// last4: string;
|
|
961
|
-
// title: string;
|
|
962
|
-
// billing_amount: number;
|
|
963
|
-
// billing_currency: string;
|
|
964
|
-
// transaction_amount: number;
|
|
965
|
-
// transaction_currency: string;
|
|
966
|
-
// vendor_sub_account_id: string;
|
|
967
|
-
// failure_reason: string;
|
|
968
|
-
// status: string;
|
|
969
|
-
// transaction_type: string;
|
|
970
|
-
// is_credit: boolean;
|
|
971
|
-
// has_receipt: boolean;
|
|
972
|
-
// adjustment_type: string;
|
|
973
|
-
// review_status: string;
|
|
974
|
-
// group: string;
|
|
975
|
-
// total_amount: number;
|
|
976
|
-
// };
|
|
977
|
-
|
|
978
|
-
// export namespace TransactionList {
|
|
979
|
-
// export interface Request {
|
|
980
|
-
// fiat_account_id: string;
|
|
981
|
-
// wallet_uuid: string;
|
|
982
|
-
// limit?: number;
|
|
983
|
-
// offset?: number;
|
|
984
|
-
// }
|
|
985
|
-
// export interface Response {
|
|
986
|
-
// count: number;
|
|
987
|
-
// data: Transaction[];
|
|
988
|
-
// has_more: boolean;
|
|
989
|
-
// }
|
|
990
|
-
// }
|
|
991
|
-
// }
|
|
992
|
-
// }
|
|
993
|
-
|
|
994
|
-
export namespace Issuing {
|
|
995
|
-
export namespace Programs {
|
|
996
|
-
export type Request = {
|
|
997
|
-
wallet_id: string;
|
|
998
|
-
};
|
|
999
|
-
export type Response = {
|
|
1000
|
-
count: number;
|
|
1001
|
-
data: API.Cards.Config.Program[];
|
|
1002
|
-
};
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
export namespace SubAccounts {
|
|
1006
|
-
export type Transaction = API.Cards.TransactionItem;
|
|
1007
|
-
export type SubAccountDetails = {
|
|
1008
|
-
iban: string;
|
|
1009
|
-
bank_name: string;
|
|
1010
|
-
swift_code: string;
|
|
1011
|
-
bank_address: string;
|
|
1012
|
-
receiver_name: string;
|
|
1013
|
-
payment_details: string;
|
|
1014
|
-
reference_number: string;
|
|
1015
|
-
registration_number: string;
|
|
1016
|
-
};
|
|
1017
|
-
export type SubAccountCryptoDetails = {
|
|
1018
|
-
currency_id: string;
|
|
1019
|
-
deposit_address: string;
|
|
1020
|
-
chain_id: number;
|
|
1021
|
-
memo?: string;
|
|
1022
|
-
};
|
|
1023
|
-
|
|
1024
|
-
export namespace TransactionList {
|
|
1025
|
-
export interface Request {
|
|
1026
|
-
sub_account_id: string;
|
|
1027
|
-
limit: number;
|
|
1028
|
-
offset: number;
|
|
1029
|
-
card_id?: string;
|
|
1030
|
-
from_timestamp?: string;
|
|
1031
|
-
to_timestamp?: string;
|
|
1032
|
-
status?: string;
|
|
1033
|
-
}
|
|
1034
|
-
export interface Response {
|
|
1035
|
-
count: number;
|
|
1036
|
-
data: Transaction[];
|
|
1037
|
-
has_more: boolean;
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
export interface SubAccount {
|
|
1041
|
-
balance: number;
|
|
1042
|
-
cards_count: number;
|
|
1043
|
-
created_at: string;
|
|
1044
|
-
currency: API.Currencies.FiatCurrency;
|
|
1045
|
-
fiat_balance: number;
|
|
1046
|
-
type: SubAccountType | string;
|
|
1047
|
-
id: string;
|
|
1048
|
-
// payment_types: Array<{ order_type: OrderType }>; deprecated, use order_types inside issuing_program
|
|
1049
|
-
issuing_program: API.Cards.Config.Program;
|
|
1050
|
-
nick_name: string;
|
|
1051
|
-
program_id: string;
|
|
1052
|
-
realtime_auth: [
|
|
1053
|
-
{
|
|
1054
|
-
crypto_token: string;
|
|
1055
|
-
fiat_account: string;
|
|
1056
|
-
id: string;
|
|
1057
|
-
priority: number;
|
|
1058
|
-
},
|
|
1059
|
-
];
|
|
1060
|
-
realtimeauth_balance: number;
|
|
1061
|
-
status: string;
|
|
1062
|
-
total_balance: number;
|
|
1063
|
-
wallet_id: string;
|
|
1064
|
-
account_details?: SubAccountDetails;
|
|
1065
|
-
crypto_details?: SubAccountCryptoDetails[];
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
export namespace WithCards {
|
|
1069
|
-
export interface SubAccountWithCards extends SubAccount {
|
|
1070
|
-
cards: API.Cards.IssuingCardListItem[];
|
|
1071
|
-
}
|
|
1072
|
-
export interface Response {
|
|
1073
|
-
count: number;
|
|
1074
|
-
data: SubAccountWithCards[];
|
|
1075
|
-
has_more: boolean;
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
export namespace WithoutCards {
|
|
1079
|
-
export interface Request {
|
|
1080
|
-
wallet_uuid: string;
|
|
1081
|
-
limit: number;
|
|
1082
|
-
offset: number;
|
|
1083
|
-
type?: SubAccountType;
|
|
1084
|
-
}
|
|
1085
|
-
export interface Response {
|
|
1086
|
-
count: number;
|
|
1087
|
-
data: SubAccount[];
|
|
1088
|
-
has_more: boolean;
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
export namespace KYC {
|
|
1095
|
-
export namespace Sumsub {
|
|
1096
|
-
export namespace GenerateToken {
|
|
1097
|
-
export interface Request {
|
|
1098
|
-
user_data_id: number;
|
|
1099
|
-
}
|
|
1100
|
-
export interface Response extends Request {
|
|
1101
|
-
token: string;
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
export namespace Entity {
|
|
1107
|
-
export type Entity = components['schemas']['KycEntityDto'];
|
|
1108
|
-
export namespace Get {
|
|
1109
|
-
export type Request = operations['KycEntitiesController_findOne']['parameters']['path'];
|
|
1110
|
-
export type Response =
|
|
1111
|
-
operations['KycEntitiesController_findOne']['responses']['200']['content']['application/json'];
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
export namespace Forms {
|
|
1115
|
-
export namespace FormField {
|
|
1116
|
-
export type FormFieldType =
|
|
1117
|
-
| 'text'
|
|
1118
|
-
| 'email'
|
|
1119
|
-
| 'password'
|
|
1120
|
-
| 'radio'
|
|
1121
|
-
| 'select'
|
|
1122
|
-
| 'checkbox'
|
|
1123
|
-
| 'textarea'
|
|
1124
|
-
| 'number'
|
|
1125
|
-
| 'date'
|
|
1126
|
-
| 'switch'
|
|
1127
|
-
| 'file';
|
|
1128
|
-
|
|
1129
|
-
export interface FormFieldValidation {
|
|
1130
|
-
pattern?: string;
|
|
1131
|
-
min?: number;
|
|
1132
|
-
max?: number;
|
|
1133
|
-
min_length?: number;
|
|
1134
|
-
max_length?: number;
|
|
1135
|
-
message?: string;
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
export interface FormFieldOption {
|
|
1139
|
-
label: string;
|
|
1140
|
-
value: string;
|
|
1141
|
-
}
|
|
1142
|
-
export interface FormField {
|
|
1143
|
-
name: string;
|
|
1144
|
-
type: FormFieldType;
|
|
1145
|
-
label: string;
|
|
1146
|
-
placeholder?: string;
|
|
1147
|
-
required?: boolean;
|
|
1148
|
-
order?: number;
|
|
1149
|
-
options?: FormFieldOption[];
|
|
1150
|
-
rows?: number;
|
|
1151
|
-
value?: string;
|
|
1152
|
-
accept?: string;
|
|
1153
|
-
validation?: FormFieldValidation;
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
export namespace FormGroup {
|
|
1158
|
-
export type FormGroupFieldType = 'group' | 'field';
|
|
1159
|
-
export interface FormGroupFieldGroup {
|
|
1160
|
-
type: 'group';
|
|
1161
|
-
fields: API.KYC.Forms.FormGroup.FormGroup[];
|
|
1162
|
-
}
|
|
1163
|
-
export interface FormGroupFieldField {
|
|
1164
|
-
type: 'field';
|
|
1165
|
-
field: API.KYC.Forms.FormField.FormField;
|
|
1166
|
-
}
|
|
1167
|
-
export interface FormGroup {
|
|
1168
|
-
name?: string;
|
|
1169
|
-
isArray?: boolean;
|
|
1170
|
-
label: string;
|
|
1171
|
-
fields: Array<FormGroupFieldGroup | FormGroupFieldField>;
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
export namespace Rails {
|
|
1177
|
-
export type RailStatus = components['schemas']['WalletKycRailDto']['status'];
|
|
1178
|
-
|
|
1179
|
-
export type WalletRail = components['schemas']['WalletKycRailDto'];
|
|
1180
|
-
export type WalletRailExtraActions = components['schemas']['WalletKycRailExtraActionDto'];
|
|
1181
|
-
|
|
1182
|
-
export type WalletRailTermsAndConditions = components['schemas']['WalletKycRailTermsAndConditionsDto'];
|
|
1183
|
-
|
|
1184
|
-
export namespace RailInfo {
|
|
1185
|
-
export type RailInfo = components['schemas']['WalletKycRailTypeDto'];
|
|
1186
|
-
|
|
1187
|
-
export namespace SingleRail {
|
|
1188
|
-
export type Request = operations['WalletKycRailsController_findOne']['parameters']['path'];
|
|
1189
|
-
export type Response = RailInfo;
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
export namespace List {
|
|
1193
|
-
export type Request = {
|
|
1194
|
-
wallet_id: string;
|
|
1195
|
-
};
|
|
1196
|
-
export type Response = components['schemas']['GetWalletKycRailsResponseDto'];
|
|
1197
|
-
}
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
export namespace Submit {
|
|
1201
|
-
export namespace Single {
|
|
1202
|
-
export type Request = operations['WalletKycRailsController_findOne']['parameters']['path'];
|
|
1203
|
-
export type Response = components['schemas']['WalletKycRailTypeDto'];
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
export namespace Terms {
|
|
1208
|
-
export namespace Confirm {
|
|
1209
|
-
export type Request = operations['WalletKycRailsController_confirmTermsAndConditions']['parameters']['path'];
|
|
1210
|
-
export type Response = components['schemas']['WalletKycRailTypeDto'];
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
export namespace Location {
|
|
1217
|
-
export namespace Countries {
|
|
1218
|
-
export interface Country {
|
|
1219
|
-
id: number;
|
|
1220
|
-
capital: string;
|
|
1221
|
-
currency: string;
|
|
1222
|
-
currency_name: string;
|
|
1223
|
-
currency_symbol: string;
|
|
1224
|
-
emoji: string;
|
|
1225
|
-
emojiU: string;
|
|
1226
|
-
flag: number;
|
|
1227
|
-
iso2: string;
|
|
1228
|
-
iso3: string;
|
|
1229
|
-
latitude: number;
|
|
1230
|
-
longitude: number;
|
|
1231
|
-
name: string;
|
|
1232
|
-
nationality: string;
|
|
1233
|
-
native: string;
|
|
1234
|
-
numeric_code: string;
|
|
1235
|
-
phonecode: string;
|
|
1236
|
-
region: string;
|
|
1237
|
-
region_id: number;
|
|
1238
|
-
subregion: string;
|
|
1239
|
-
subregion_id: number;
|
|
1240
|
-
timezones: object[]; // TODO: add type
|
|
1241
|
-
tld: string;
|
|
1242
|
-
translations: object[]; // TODO: add type
|
|
1243
|
-
wikiDataId: string;
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
export namespace List {
|
|
1247
|
-
export type Response = {
|
|
1248
|
-
total: number;
|
|
1249
|
-
data: Country[];
|
|
1250
|
-
};
|
|
1251
|
-
}
|
|
1252
|
-
}
|
|
1253
|
-
export namespace States {
|
|
1254
|
-
export type State = components['schemas']['StateDto'];
|
|
1255
|
-
export namespace List {
|
|
1256
|
-
export type Request = operations['SystemController_states']['parameters']['path'];
|
|
1257
|
-
export type Response = operations['SystemController_states']['responses']['200']['content']['application/json'];
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
|
-
export namespace Orders {
|
|
1262
|
-
export namespace Create {
|
|
1263
|
-
export namespace ByOrderType {
|
|
1264
|
-
export namespace INTERNAL_TRANSFER {
|
|
1265
|
-
export interface Request {
|
|
1266
|
-
amount: number;
|
|
1267
|
-
wallet_uuid: string;
|
|
1268
|
-
from_uuid: string;
|
|
1269
|
-
to_uuid: string;
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
|
-
export interface Response {
|
|
1273
|
-
created_at: string;
|
|
1274
|
-
order_uuid: string;
|
|
1275
|
-
wallet_uuid: string;
|
|
1276
|
-
from_uuid: string;
|
|
1277
|
-
to_uuid: string;
|
|
1278
|
-
amount_from: number;
|
|
1279
|
-
order_type: 'EXCHANGE_CRYPTO_INTERNAL';
|
|
1280
|
-
status: OrderStatuses;
|
|
1281
|
-
amount_to: number;
|
|
1282
|
-
info: string;
|
|
1283
|
-
meta: {
|
|
1284
|
-
fee: number;
|
|
1285
|
-
order_uuid: string;
|
|
1286
|
-
to_address: string;
|
|
1287
|
-
fee_currency: string;
|
|
1288
|
-
billing_amount: number;
|
|
1289
|
-
transaction_amount: number;
|
|
1290
|
-
billing_amount_currency: string;
|
|
1291
|
-
transaction_amount_currency: string;
|
|
1292
|
-
network_fee: number;
|
|
1293
|
-
};
|
|
1294
|
-
id: string;
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
export namespace TRANSFER_CARD_PREPAID {
|
|
1299
|
-
// NOT USED
|
|
1300
|
-
export interface Request {
|
|
1301
|
-
amount: number;
|
|
1302
|
-
wallet_uuid: string;
|
|
1303
|
-
card_id: string;
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
export interface Response {
|
|
1307
|
-
created_at: string;
|
|
1308
|
-
order_uuid: string;
|
|
1309
|
-
wallet_uuid: string;
|
|
1310
|
-
from_uuid: string;
|
|
1311
|
-
to_uuid: string;
|
|
1312
|
-
amount_from: number;
|
|
1313
|
-
order_type: 'TRANSFER_CARD_PREPAID';
|
|
1314
|
-
status: OrderStatuses;
|
|
1315
|
-
amount_to: number;
|
|
1316
|
-
info: string;
|
|
1317
|
-
meta: {
|
|
1318
|
-
fee: number;
|
|
1319
|
-
order_uuid: string;
|
|
1320
|
-
fee_currency: string;
|
|
1321
|
-
exchange_rate: number;
|
|
1322
|
-
billing_amount: number;
|
|
1323
|
-
vendor_id: string;
|
|
1324
|
-
transaction_amount: number;
|
|
1325
|
-
billing_currency: string;
|
|
1326
|
-
transaction_currency: string;
|
|
1327
|
-
network_fee: number;
|
|
1328
|
-
};
|
|
1329
|
-
id: string;
|
|
1330
|
-
}
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
export namespace OMNIBUS_CRYPTO_WITHDRAWAL {
|
|
1334
|
-
export interface Request {
|
|
1335
|
-
idempotency_key: string;
|
|
1336
|
-
counterparty_account_id: string;
|
|
1337
|
-
amount: number;
|
|
1338
|
-
wallet_uuid: string;
|
|
1339
|
-
currency_id: string;
|
|
1340
|
-
memo?: string;
|
|
1341
|
-
note?: string;
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
export interface Response {
|
|
1345
|
-
created_at: string;
|
|
1346
|
-
order_uuid: string;
|
|
1347
|
-
wallet_uuid: string;
|
|
1348
|
-
from_uuid: string;
|
|
1349
|
-
to_uuid: string;
|
|
1350
|
-
amount_from: number;
|
|
1351
|
-
order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
|
|
1352
|
-
status: OrderStatuses;
|
|
1353
|
-
amount_to: number;
|
|
1354
|
-
info: string;
|
|
1355
|
-
meta: {
|
|
1356
|
-
fee: number;
|
|
1357
|
-
order_uuid: string;
|
|
1358
|
-
to_address: string;
|
|
1359
|
-
fee_currency: string;
|
|
1360
|
-
idempotency_key: string;
|
|
1361
|
-
counterparty_account_id: string;
|
|
1362
|
-
billing_amount: number;
|
|
1363
|
-
billing_currency: string;
|
|
1364
|
-
transaction_amount: number;
|
|
1365
|
-
transaction_currency: string;
|
|
1366
|
-
network_fee: number;
|
|
1367
|
-
};
|
|
1368
|
-
id: string;
|
|
1369
|
-
}
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
export namespace TRANSFER_CARD_SUBACCOUNT {
|
|
1373
|
-
export type Request = {
|
|
1374
|
-
amount: number;
|
|
1375
|
-
wallet_uuid: string;
|
|
1376
|
-
from_uuid: string;
|
|
1377
|
-
sub_account_id: string;
|
|
1378
|
-
};
|
|
1379
|
-
|
|
1380
|
-
export type Response = {
|
|
1381
|
-
id: number;
|
|
1382
|
-
created_at: string;
|
|
1383
|
-
order_uuid: string;
|
|
1384
|
-
wallet_uuid: string;
|
|
1385
|
-
fiat_uuid: string;
|
|
1386
|
-
crypto_uuid: string;
|
|
1387
|
-
amount_fiat: number;
|
|
1388
|
-
payment_method: string;
|
|
1389
|
-
redirect_url: string;
|
|
1390
|
-
status: string;
|
|
1391
|
-
provider_uuid: string;
|
|
1392
|
-
};
|
|
1393
|
-
}
|
|
1394
|
-
export namespace WITHDRAWAL_CRYPTO {
|
|
1395
|
-
export type Request = {
|
|
1396
|
-
amount: number;
|
|
1397
|
-
is_subsctract: boolean;
|
|
1398
|
-
wallet_uuid: string;
|
|
1399
|
-
crypto_uuid: string;
|
|
1400
|
-
to_address: string;
|
|
1401
|
-
memo?: string;
|
|
1402
|
-
};
|
|
1403
|
-
|
|
1404
|
-
export type Response = {
|
|
1405
|
-
id: number;
|
|
1406
|
-
created_at: string;
|
|
1407
|
-
order_uuid: string;
|
|
1408
|
-
wallet_uuid: string;
|
|
1409
|
-
crypto_uuid: string;
|
|
1410
|
-
amount: number;
|
|
1411
|
-
status: string;
|
|
1412
|
-
network: string;
|
|
1413
|
-
to_address: string;
|
|
1414
|
-
txid: string;
|
|
1415
|
-
};
|
|
1416
|
-
}
|
|
1417
|
-
export namespace EXCHANGE_CRYPTO_INTERNAL {
|
|
1418
|
-
export type Request = {
|
|
1419
|
-
amount: number;
|
|
1420
|
-
wallet_uuid: string;
|
|
1421
|
-
from_uuid: string;
|
|
1422
|
-
to_uuid: string;
|
|
1423
|
-
};
|
|
1424
|
-
export type Response = {
|
|
1425
|
-
id: number;
|
|
1426
|
-
// TODO: add response
|
|
1427
|
-
};
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
export namespace EXCHANGE_OMNI {
|
|
1431
|
-
export type Request = {
|
|
1432
|
-
amount: number;
|
|
1433
|
-
wallet_uuid: string;
|
|
1434
|
-
from_uuid: string;
|
|
1435
|
-
to_uuid: string;
|
|
1436
|
-
};
|
|
1437
|
-
export type Response = {
|
|
1438
|
-
created_at: string;
|
|
1439
|
-
order_uuid: string;
|
|
1440
|
-
wallet_uuid: string;
|
|
1441
|
-
from_uuid: string;
|
|
1442
|
-
to_uuid: string;
|
|
1443
|
-
amount_from: number;
|
|
1444
|
-
order_type: 'EXCHANGE_OMNI';
|
|
1445
|
-
status: OrderStatuses;
|
|
1446
|
-
amount_to: number;
|
|
1447
|
-
info: string;
|
|
1448
|
-
meta: {
|
|
1449
|
-
fee: number;
|
|
1450
|
-
order_uuid: string;
|
|
1451
|
-
to_address: string;
|
|
1452
|
-
fee_currency: string;
|
|
1453
|
-
billing_amount: number;
|
|
1454
|
-
transaction_amount: number;
|
|
1455
|
-
billing_amount_currency: string;
|
|
1456
|
-
transaction_amount_currency: string;
|
|
1457
|
-
network_fee: number;
|
|
1458
|
-
};
|
|
1459
|
-
id: string;
|
|
1460
|
-
};
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
export namespace TRANSFER_CARD_WHOLESALE {
|
|
1464
|
-
export type Request = {
|
|
1465
|
-
amount: number;
|
|
1466
|
-
wallet_id: string;
|
|
1467
|
-
currency_id: string;
|
|
1468
|
-
vendor_id: string;
|
|
1469
|
-
};
|
|
1470
|
-
export type Response = null;
|
|
1471
|
-
}
|
|
1472
|
-
|
|
1473
|
-
export namespace TBD_SWIFT_WITHDRAWAL {
|
|
1474
|
-
export type Request = {
|
|
1475
|
-
amount: number;
|
|
1476
|
-
wallet_uuid: string;
|
|
1477
|
-
currency_id: string;
|
|
1478
|
-
};
|
|
1479
|
-
export type Response = null;
|
|
1480
|
-
}
|
|
1481
|
-
export namespace WITHDRAW_CARD_PREPAID {
|
|
1482
|
-
export type Request = {
|
|
1483
|
-
amount: number;
|
|
1484
|
-
wallet_uuid: string;
|
|
1485
|
-
card_id: string;
|
|
1486
|
-
};
|
|
1487
|
-
|
|
1488
|
-
export type Response = null;
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
export namespace WITHDRAW_CARD_SUBACCOUNT {
|
|
1492
|
-
export type Request = {
|
|
1493
|
-
amount: number;
|
|
1494
|
-
wallet_uuid: string;
|
|
1495
|
-
sub_account_id: string;
|
|
1496
|
-
};
|
|
1497
|
-
|
|
1498
|
-
export type Response = null;
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
}
|
|
1502
|
-
export namespace Calc {
|
|
1503
|
-
interface CommonRequestParams {
|
|
1504
|
-
from_currency: string;
|
|
1505
|
-
to_currency: string;
|
|
1506
|
-
amount: number;
|
|
1507
|
-
is_reverse?: boolean;
|
|
1508
|
-
signal?: AbortSignal;
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
export interface WithdrawCryptoRequest extends CommonRequestParams {
|
|
1512
|
-
order_type:
|
|
1513
|
-
| OrderType.WITHDRAWAL_CRYPTO
|
|
1514
|
-
| OrderType.TRANSFER_INTERNAL
|
|
1515
|
-
| OrderType.OMNIBUS_CRYPTO_TRANSFER
|
|
1516
|
-
| OrderType.SEGREGATED_CRYPTO_TRANSFER;
|
|
1517
|
-
to_address?: string;
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
export interface NonWithdrawCryptoRequest extends CommonRequestParams {
|
|
1521
|
-
order_type: Exclude<OrderType, OrderType.WITHDRAWAL_CRYPTO>;
|
|
1522
|
-
to_address?: never;
|
|
1523
|
-
}
|
|
1524
|
-
|
|
1525
|
-
export type Request = NonWithdrawCryptoRequest | WithdrawCryptoRequest;
|
|
1526
|
-
export interface Response {
|
|
1527
|
-
from_currency: string;
|
|
1528
|
-
to_currency: string;
|
|
1529
|
-
from_symbol: string;
|
|
1530
|
-
to_symbol: string;
|
|
1531
|
-
from_amount: number;
|
|
1532
|
-
net_amount: number;
|
|
1533
|
-
result_amount: number;
|
|
1534
|
-
fees: number;
|
|
1535
|
-
comission: number;
|
|
1536
|
-
base_markup: number;
|
|
1537
|
-
network_fee: number;
|
|
1538
|
-
transaction_fee: number;
|
|
1539
|
-
rate: number;
|
|
1540
|
-
direction: 'c2f' | 'f2c' | 'c2c';
|
|
1541
|
-
}
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
|
-
export namespace OrderTypes {
|
|
1545
|
-
export type OrderTypeKycRail = {
|
|
1546
|
-
id: string;
|
|
1547
|
-
kyc_rail_id: string;
|
|
1548
|
-
};
|
|
1549
|
-
export interface OrderInfo {
|
|
1550
|
-
id: string;
|
|
1551
|
-
transaction_type: string;
|
|
1552
|
-
description: string | null;
|
|
1553
|
-
direction: 'deposit' | 'withdrawal';
|
|
1554
|
-
is_internal: boolean;
|
|
1555
|
-
// kyc_rails_id: string | null; // deprecated use order_types_kyc_rails instead
|
|
1556
|
-
order_types_kyc_rails: OrderTypeKycRail[];
|
|
1557
|
-
payment_method: OrderType | string;
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
export namespace List {
|
|
1561
|
-
export type Response = OrderInfo[];
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
// export namespace OffRamp {
|
|
1566
|
-
// // deprecated
|
|
1567
|
-
// export interface Item {
|
|
1568
|
-
// id: number;
|
|
1569
|
-
// created_at: string;
|
|
1570
|
-
// order_uuid: string;
|
|
1571
|
-
// wallet_uuid: string;
|
|
1572
|
-
// fiat_uuid: string;
|
|
1573
|
-
// crypto_uuid: string;
|
|
1574
|
-
// amount_fiat: number;
|
|
1575
|
-
// payment_method: string;
|
|
1576
|
-
// card_number: string;
|
|
1577
|
-
// status: string;
|
|
1578
|
-
// provider_uuid: string;
|
|
1579
|
-
// }
|
|
1580
|
-
// export interface Request {
|
|
1581
|
-
// amount: number;
|
|
1582
|
-
// wallet_uuid: string;
|
|
1583
|
-
// crypto_uuid: string;
|
|
1584
|
-
// fiat_uuid: string;
|
|
1585
|
-
// card_number: string;
|
|
1586
|
-
// is_subtract: boolean;
|
|
1587
|
-
// }
|
|
1588
|
-
// export type Response = Item;
|
|
1589
|
-
// }
|
|
1590
|
-
|
|
1591
|
-
export namespace Status {
|
|
1592
|
-
export interface Response {
|
|
1593
|
-
id: number;
|
|
1594
|
-
created_at: string;
|
|
1595
|
-
order_uuid: string;
|
|
1596
|
-
wallet_uuid: string;
|
|
1597
|
-
crypto_uuid: string;
|
|
1598
|
-
status: OrderStatuses | string;
|
|
1599
|
-
amount: number;
|
|
1600
|
-
comission: number;
|
|
1601
|
-
net_amount: number;
|
|
1602
|
-
type: OrderType | string;
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
|
|
1606
|
-
// export namespace OrdersIssuing { // deprecated
|
|
1607
|
-
// export namespace Topup {
|
|
1608
|
-
// export namespace Internal {
|
|
1609
|
-
// export namespace Card {
|
|
1610
|
-
// export type Request = {
|
|
1611
|
-
// amount: number;
|
|
1612
|
-
// fiat_uuid: string;
|
|
1613
|
-
// wallet_uuid: string;
|
|
1614
|
-
// crypto_uuid: string;
|
|
1615
|
-
// card_id: string;
|
|
1616
|
-
// is_subtract: boolean;
|
|
1617
|
-
// };
|
|
1618
|
-
// export interface Response {
|
|
1619
|
-
// id: number;
|
|
1620
|
-
// created_at: string;
|
|
1621
|
-
// order_uuid: string;
|
|
1622
|
-
// wallet_uuid: string;
|
|
1623
|
-
// fiat_uuid: string;
|
|
1624
|
-
// crypto_uuid: string;
|
|
1625
|
-
// amount_fiat: number;
|
|
1626
|
-
// payment_method: string;
|
|
1627
|
-
// status: string;
|
|
1628
|
-
// provider_uuid: string;
|
|
1629
|
-
// card_number: string;
|
|
1630
|
-
// amount_crypto: number;
|
|
1631
|
-
// comission: number;
|
|
1632
|
-
// }
|
|
1633
|
-
// }
|
|
1634
|
-
|
|
1635
|
-
// export namespace SubAccount {
|
|
1636
|
-
// export type Request = {
|
|
1637
|
-
// amount: number;
|
|
1638
|
-
// fiat_uuid: string;
|
|
1639
|
-
// wallet_uuid: string;
|
|
1640
|
-
// crypto_uuid: string;
|
|
1641
|
-
// fiat_account_id: string;
|
|
1642
|
-
// is_subtract: boolean;
|
|
1643
|
-
// };
|
|
1644
|
-
|
|
1645
|
-
// export interface Response {
|
|
1646
|
-
// id: number;
|
|
1647
|
-
// created_at: string;
|
|
1648
|
-
// order_uuid: string;
|
|
1649
|
-
// wallet_uuid: string;
|
|
1650
|
-
// fiat_uuid: string;
|
|
1651
|
-
// crypto_uuid: string;
|
|
1652
|
-
// amount_fiat: number;
|
|
1653
|
-
// payment_method: string;
|
|
1654
|
-
// status: string;
|
|
1655
|
-
// provider_uuid: string;
|
|
1656
|
-
// card_number: string;
|
|
1657
|
-
// amount_crypto: number;
|
|
1658
|
-
// comission: number;
|
|
1659
|
-
// }
|
|
1660
|
-
// }
|
|
1661
|
-
// }
|
|
1662
|
-
// }
|
|
1663
|
-
// }
|
|
1664
|
-
export namespace V2 {
|
|
1665
|
-
export interface Document {
|
|
1666
|
-
url: string;
|
|
1667
|
-
description: string;
|
|
1668
|
-
}
|
|
1669
|
-
export namespace Calc {
|
|
1670
|
-
interface CommonRequestParams {
|
|
1671
|
-
from_currency_id: string;
|
|
1672
|
-
to_currency_id: string;
|
|
1673
|
-
amount: number;
|
|
1674
|
-
is_reverse: boolean;
|
|
1675
|
-
is_subtract: boolean;
|
|
1676
|
-
signal?: AbortSignal;
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
export interface WithdrawCryptoRequest extends CommonRequestParams {
|
|
1680
|
-
order_type:
|
|
1681
|
-
| OrderType.WITHDRAWAL_CRYPTO
|
|
1682
|
-
| OrderType.TRANSFER_INTERNAL
|
|
1683
|
-
| OrderType.OMNIBUS_CRYPTO_TRANSFER
|
|
1684
|
-
| OrderType.SEGREGATED_CRYPTO_TRANSFER;
|
|
1685
|
-
to_address?: string;
|
|
1686
|
-
}
|
|
1687
|
-
|
|
1688
|
-
export interface NonWithdrawCryptoRequest extends CommonRequestParams {
|
|
1689
|
-
order_type: Exclude<OrderType, OrderType.WITHDRAWAL_CRYPTO>;
|
|
1690
|
-
to_address?: never;
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
export type Request = NonWithdrawCryptoRequest | WithdrawCryptoRequest;
|
|
1694
|
-
export interface Response {
|
|
1695
|
-
from_currency: string;
|
|
1696
|
-
to_currency: string;
|
|
1697
|
-
from_symbol: string;
|
|
1698
|
-
to_symbol: string;
|
|
1699
|
-
from_amount: number;
|
|
1700
|
-
net_amount: number;
|
|
1701
|
-
result_amount: number;
|
|
1702
|
-
fees: number;
|
|
1703
|
-
comission: number;
|
|
1704
|
-
base_markup: number;
|
|
1705
|
-
network_fee: number;
|
|
1706
|
-
transaction_fee: number;
|
|
1707
|
-
rate: number;
|
|
1708
|
-
direction: 'c2f' | 'f2c' | 'c2c';
|
|
1709
|
-
}
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
export namespace Create {
|
|
1713
|
-
export namespace Common {
|
|
1714
|
-
export namespace Request {
|
|
1715
|
-
export interface BaseOrderParams {
|
|
1716
|
-
request_id: string;
|
|
1717
|
-
amount: number;
|
|
1718
|
-
wallet_id: string;
|
|
1719
|
-
from_currency_id: string;
|
|
1720
|
-
to_currency_id: string;
|
|
1721
|
-
is_subtract: boolean;
|
|
1722
|
-
is_reverse: boolean;
|
|
1723
|
-
reference?: string;
|
|
1724
|
-
note?: string;
|
|
1725
|
-
documents?: Document[];
|
|
1726
|
-
}
|
|
1727
|
-
|
|
1728
|
-
export interface OrderWithCounterpartyParams extends BaseOrderParams {
|
|
1729
|
-
counterparty_destination_id: string;
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
|
-
export interface OrderWithWalletAccountParams extends BaseOrderParams {
|
|
1733
|
-
wallet_account_id: string;
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
export interface OrderWithVirtualAccountParams extends BaseOrderParams {
|
|
1737
|
-
virtual_account_id: string;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1740
|
-
export interface OrderWithSubAccountParams extends BaseOrderParams {
|
|
1741
|
-
sub_account_id: string;
|
|
1742
|
-
}
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
export namespace Response {
|
|
1746
|
-
export interface BaseOrderResponse {
|
|
1747
|
-
order_uuid: string;
|
|
1748
|
-
wallet_uuid: string;
|
|
1749
|
-
from_uuid: string;
|
|
1750
|
-
to_uuid: string;
|
|
1751
|
-
amount_from: number;
|
|
1752
|
-
amount_to: number;
|
|
1753
|
-
status: OrderStatuses;
|
|
1754
|
-
created_at: string;
|
|
1755
|
-
info: string;
|
|
1756
|
-
id: string;
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1759
|
-
export interface HifiOrderResponse extends BaseOrderResponse {
|
|
1760
|
-
order_type: string;
|
|
1761
|
-
meta: {
|
|
1762
|
-
request_id: string;
|
|
1763
|
-
counterparty_account_id: string;
|
|
1764
|
-
fee: number;
|
|
1765
|
-
fee_currency: string;
|
|
1766
|
-
billing_amount: number;
|
|
1767
|
-
billing_currency: string;
|
|
1768
|
-
transaction_amount: number;
|
|
1769
|
-
transaction_currency: string;
|
|
1770
|
-
order_uuid: string;
|
|
1771
|
-
};
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
|
-
export interface CryptoTransferResponse extends BaseOrderResponse {
|
|
1775
|
-
order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
|
|
1776
|
-
meta: {
|
|
1777
|
-
fee: number;
|
|
1778
|
-
order_uuid: string;
|
|
1779
|
-
to_address: string;
|
|
1780
|
-
fee_currency: string;
|
|
1781
|
-
request_id: string;
|
|
1782
|
-
counterparty_account_id: string;
|
|
1783
|
-
billing_amount: number;
|
|
1784
|
-
billing_currency: string;
|
|
1785
|
-
transaction_amount: number;
|
|
1786
|
-
transaction_currency: string;
|
|
1787
|
-
network_fee: number;
|
|
1788
|
-
};
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
export interface RnCardsResponse extends BaseOrderResponse {
|
|
1792
|
-
order_type: 'RN_CARDS_OFFRAMP';
|
|
1793
|
-
meta: {
|
|
1794
|
-
request_id: string;
|
|
1795
|
-
sub_account_id: string;
|
|
1796
|
-
to_address: string;
|
|
1797
|
-
deposit_chain_id: number;
|
|
1798
|
-
fee: number;
|
|
1799
|
-
fee_currency: string;
|
|
1800
|
-
billing_amount: number;
|
|
1801
|
-
billing_currency: string;
|
|
1802
|
-
transaction_amount: number;
|
|
1803
|
-
transaction_currency: string;
|
|
1804
|
-
order_uuid: string;
|
|
1805
|
-
};
|
|
1806
|
-
}
|
|
1807
|
-
|
|
1808
|
-
export interface L2FResponse extends BaseOrderResponse {
|
|
1809
|
-
order_type: 'L2F_SEPA_OFFRAMP' | 'L2F_SWIFT_OFFRAMP' | 'L2F_ACH_OFFRAMP' | 'L2F_WIRE_OFFRAMP';
|
|
1810
|
-
meta: {
|
|
1811
|
-
request_id: string;
|
|
1812
|
-
virtual_account_id: string;
|
|
1813
|
-
};
|
|
1814
|
-
}
|
|
1815
|
-
}
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
export namespace ByOrderType {
|
|
1819
|
-
export namespace INTERNAL_TRANSFER {
|
|
1820
|
-
export interface Request {
|
|
1821
|
-
wallet_id: string;
|
|
1822
|
-
from_crypto_uuid: string;
|
|
1823
|
-
to_wallet_id: string;
|
|
1824
|
-
to_wallet_uuid: string;
|
|
1825
|
-
amount: number;
|
|
1826
|
-
request_id: string;
|
|
1827
|
-
is_subtract: boolean;
|
|
1828
|
-
is_reverse: boolean;
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
export type Response = null;
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
export namespace HIFI_WIRE_ONRAMP {
|
|
1835
|
-
export type Request = Common.Request.OrderWithCounterpartyParams;
|
|
1836
|
-
export type Response = Common.Response.HifiOrderResponse & { order_type: 'HIFI_WIRE_ONRAMP' };
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
export namespace HIFI_ACH_ONRAMP {
|
|
1840
|
-
export type Request = Common.Request.OrderWithCounterpartyParams;
|
|
1841
|
-
export type Response = Common.Response.HifiOrderResponse & { order_type: 'HIFI_ACH_ONRAMP' };
|
|
1842
|
-
}
|
|
1843
|
-
|
|
1844
|
-
export namespace HIFI_SEPA_ONRAMP {
|
|
1845
|
-
export type Request = Common.Request.OrderWithCounterpartyParams;
|
|
1846
|
-
export type Response = Common.Response.HifiOrderResponse & { order_type: 'HIFI_SEPA_ONRAMP' };
|
|
1847
|
-
}
|
|
1848
|
-
|
|
1849
|
-
export namespace HIFI_WIRE_OFFRAMP {
|
|
1850
|
-
export type Request = Common.Request.OrderWithCounterpartyParams;
|
|
1851
|
-
export type Response = Common.Response.HifiOrderResponse & { order_type: 'HIFI_WIRE_OFFRAMP' };
|
|
1852
|
-
}
|
|
1853
|
-
|
|
1854
|
-
export namespace HIFI_ACH_OFFRAMP {
|
|
1855
|
-
export type Request = Common.Request.OrderWithCounterpartyParams;
|
|
1856
|
-
export type Response = Common.Response.HifiOrderResponse & { order_type: 'HIFI_ACH_OFFRAMP' };
|
|
1857
|
-
}
|
|
1858
|
-
|
|
1859
|
-
export namespace HIFI_SEPA_OFFRAMP {
|
|
1860
|
-
export type Request = Common.Request.OrderWithCounterpartyParams;
|
|
1861
|
-
export type Response = Common.Response.HifiOrderResponse & { order_type: 'HIFI_SEPA_OFFRAMP' };
|
|
1862
|
-
}
|
|
1863
|
-
export namespace TBD_SWIFT_WITHDRAWAL {
|
|
1864
|
-
export type Request = Common.Request.OrderWithCounterpartyParams;
|
|
1865
|
-
export type Response = Common.Response.HifiOrderResponse & { order_type: 'HIFI_SEPA_OFFRAMP' };
|
|
1866
|
-
}
|
|
1867
|
-
|
|
1868
|
-
export namespace OMNIBUS_CRYPTO_TRANSFER {
|
|
1869
|
-
export type Request = Omit<Common.Request.OrderWithWalletAccountParams, 'to_currency_id'> &
|
|
1870
|
-
Omit<Common.Request.OrderWithCounterpartyParams, 'to_currency_id'>;
|
|
1871
|
-
export type Response = Common.Response.CryptoTransferResponse;
|
|
1872
|
-
}
|
|
1873
|
-
export namespace SEGREGATED_CRYPTO_TRANSFER {
|
|
1874
|
-
export type Request = Omit<Common.Request.OrderWithWalletAccountParams, 'to_currency_id'> &
|
|
1875
|
-
Omit<Common.Request.OrderWithCounterpartyParams, 'to_currency_id'>;
|
|
1876
|
-
export type Response = Common.Response.CryptoTransferResponse;
|
|
1877
|
-
}
|
|
1878
|
-
export namespace RN_CARDS_OFFRAMP {
|
|
1879
|
-
export type Request = Common.Request.OrderWithSubAccountParams;
|
|
1880
|
-
export type Response = Common.Response.RnCardsResponse;
|
|
1881
|
-
}
|
|
1882
|
-
|
|
1883
|
-
export namespace L2F_SEPA_OFFRAMP {
|
|
1884
|
-
export type Request = Common.Request.OrderWithVirtualAccountParams &
|
|
1885
|
-
Common.Request.OrderWithCounterpartyParams;
|
|
1886
|
-
export type Response = Common.Response.L2FResponse & { order_type: 'L2F_SEPA_OFFRAMP' };
|
|
1887
|
-
}
|
|
1888
|
-
|
|
1889
|
-
export namespace L2F_SWIFT_OFFRAMP {
|
|
1890
|
-
export type Request = Common.Request.OrderWithVirtualAccountParams &
|
|
1891
|
-
Common.Request.OrderWithCounterpartyParams;
|
|
1892
|
-
export type Response = Common.Response.L2FResponse & { order_type: 'L2F_SWIFT_OFFRAMP' };
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
|
-
export namespace L2F_ACH_OFFRAMP {
|
|
1896
|
-
export type Request = Common.Request.OrderWithVirtualAccountParams &
|
|
1897
|
-
Common.Request.OrderWithCounterpartyParams;
|
|
1898
|
-
export type Response = Common.Response.L2FResponse & { order_type: 'L2F_ACH_OFFRAMP' };
|
|
1899
|
-
}
|
|
1900
|
-
|
|
1901
|
-
export namespace L2F_WIRE_OFFRAMP {
|
|
1902
|
-
export type Request = Common.Request.OrderWithVirtualAccountParams &
|
|
1903
|
-
Common.Request.OrderWithCounterpartyParams;
|
|
1904
|
-
export type Response = Common.Response.L2FResponse & { order_type: 'L2F_WIRE_OFFRAMP' };
|
|
1905
|
-
}
|
|
1906
|
-
}
|
|
1907
|
-
}
|
|
1908
|
-
|
|
1909
|
-
export namespace OrderTypes {
|
|
1910
|
-
export type OrderTypeKycRail = {
|
|
1911
|
-
id: string;
|
|
1912
|
-
kyc_rail_id: string;
|
|
1913
|
-
};
|
|
1914
|
-
export interface OrderInfo {
|
|
1915
|
-
id: OrderType | string;
|
|
1916
|
-
transaction_type: string;
|
|
1917
|
-
description: string | null;
|
|
1918
|
-
direction: string | null;
|
|
1919
|
-
is_internal: boolean;
|
|
1920
|
-
// kyc_rails_id: string | null; // deprecated use order_types_kyc_rails instead
|
|
1921
|
-
payment_method: OrderPaymentMethod | string;
|
|
1922
|
-
is_trusted: boolean;
|
|
1923
|
-
order_types_kyc_rails: OrderTypeKycRail[];
|
|
1924
|
-
}
|
|
1925
|
-
|
|
1926
|
-
export namespace List {
|
|
1927
|
-
export type Response = OrderInfo[];
|
|
1928
|
-
}
|
|
1929
|
-
}
|
|
1930
|
-
|
|
1931
|
-
export namespace List {
|
|
1932
|
-
export namespace ByWallet {
|
|
1933
|
-
export interface Request {
|
|
1934
|
-
wallet_uuid: string;
|
|
1935
|
-
offset?: number;
|
|
1936
|
-
limit?: number;
|
|
1937
|
-
sort_by?: string;
|
|
1938
|
-
sort_order?: 'asc' | 'desc';
|
|
1939
|
-
filter: {
|
|
1940
|
-
// ITS MOCK, NOT REAL FILTERS
|
|
1941
|
-
from_created_at?: string;
|
|
1942
|
-
to_created_at?: string;
|
|
1943
|
-
status?: OrderStatuses;
|
|
1944
|
-
order_type?: OrderType;
|
|
1945
|
-
from_currency_id?: string;
|
|
1946
|
-
to_currency_id?: string;
|
|
1947
|
-
};
|
|
1948
|
-
}
|
|
1949
|
-
|
|
1950
|
-
export interface PaymentOriginatorAddress {
|
|
1951
|
-
address_line1?: string | null;
|
|
1952
|
-
city?: string | null;
|
|
1953
|
-
state?: string | null;
|
|
1954
|
-
postal_code?: string | null;
|
|
1955
|
-
country?: string | null;
|
|
1956
|
-
}
|
|
1957
|
-
|
|
1958
|
-
export interface PaymentOriginatorProfile {
|
|
1959
|
-
name: string;
|
|
1960
|
-
address?: PaymentOriginatorAddress;
|
|
1961
|
-
}
|
|
1962
|
-
|
|
1963
|
-
export interface PaymentOriginatorAccountInfo {
|
|
1964
|
-
account_number: string;
|
|
1965
|
-
routing_number?: string | null;
|
|
1966
|
-
swift_bic?: string | null;
|
|
1967
|
-
institution_name?: string | null;
|
|
1968
|
-
}
|
|
1969
|
-
|
|
1970
|
-
export interface PaymentOriginator {
|
|
1971
|
-
profile: PaymentOriginatorProfile;
|
|
1972
|
-
account_information: PaymentOriginatorAccountInfo;
|
|
1973
|
-
reference?: string | null;
|
|
1974
|
-
memo?: string | null;
|
|
1975
|
-
}
|
|
1976
|
-
|
|
1977
|
-
export interface OrderMeta {
|
|
1978
|
-
order_uuid: string;
|
|
1979
|
-
request_id?: string | null;
|
|
1980
|
-
billing_amount?: number;
|
|
1981
|
-
billing_currency?: string;
|
|
1982
|
-
// billing_amount_currency?: string; // double billing_currency field
|
|
1983
|
-
transaction_amount?: number;
|
|
1984
|
-
transaction_currency?: string;
|
|
1985
|
-
// transaction_amount_currency?: string; // double transaction_currency field
|
|
1986
|
-
network_fee?: number | null;
|
|
1987
|
-
network_fee_currency?: string | null;
|
|
1988
|
-
exchange_rate?: number;
|
|
1989
|
-
fee?: number;
|
|
1990
|
-
fee_currency?: string;
|
|
1991
|
-
from_currency_id?: string;
|
|
1992
|
-
from_crypto_address?: string | null;
|
|
1993
|
-
to_currency_id?: string;
|
|
1994
|
-
chain_id?: number | null;
|
|
1995
|
-
counterparty_destination_id?: string | null;
|
|
1996
|
-
counterparty_account_id?: string | null;
|
|
1997
|
-
counterparty_account_name?: string | null;
|
|
1998
|
-
counterparty_account_nickname?: string | null;
|
|
1999
|
-
virtual_account_id?: string | null;
|
|
2000
|
-
virtual_account_name?: string | null;
|
|
2001
|
-
to_crypto_address?: string | null;
|
|
2002
|
-
reference?: string | null;
|
|
2003
|
-
note?: string | null;
|
|
2004
|
-
order_id?: string | null;
|
|
2005
|
-
originator?: PaymentOriginator | null;
|
|
2006
|
-
sub_account_id?: string | null;
|
|
2007
|
-
to_address?: string | null;
|
|
2008
|
-
sub_account_currency?: string | null;
|
|
2009
|
-
crypto_transaction_hash?: string | null;
|
|
2010
|
-
// Дополнительные поля для разных типов ордеров
|
|
2011
|
-
workflow_type?: string;
|
|
2012
|
-
processing_type?: string;
|
|
2013
|
-
workflow_status?: string;
|
|
2014
|
-
qstash_message_id?: string;
|
|
2015
|
-
vendor_account_id?: string;
|
|
2016
|
-
processing_started_at?: string;
|
|
2017
|
-
workflow_status_updated_at?: string;
|
|
2018
|
-
card_id?: string;
|
|
2019
|
-
vendor_id?: string;
|
|
2020
|
-
fiat_account_id?: string;
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
|
-
export interface OrderItem {
|
|
2024
|
-
id: string;
|
|
2025
|
-
order_uuid: string;
|
|
2026
|
-
request_id?: string | null;
|
|
2027
|
-
wallet_uuid: string;
|
|
2028
|
-
from_uuid: string;
|
|
2029
|
-
to_uuid: string;
|
|
2030
|
-
amount_from: number;
|
|
2031
|
-
amount_to: number;
|
|
2032
|
-
order_type: string;
|
|
2033
|
-
status: 'PENDING' | 'PROCESSING' | 'COMPLETE' | 'FAILED' | 'CANCELED';
|
|
2034
|
-
created_at: string;
|
|
2035
|
-
updated_at?: string | null;
|
|
2036
|
-
sub_account_id?: string | null;
|
|
2037
|
-
meta: OrderMeta;
|
|
2038
|
-
info?: string | null;
|
|
2039
|
-
}
|
|
2040
|
-
|
|
2041
|
-
export type Response = OrderItem[];
|
|
2042
|
-
}
|
|
2043
|
-
}
|
|
2044
|
-
|
|
2045
|
-
export namespace GetById {
|
|
2046
|
-
export interface Request {
|
|
2047
|
-
order_uuid: string;
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
export interface CounterpartyAccount {
|
|
2051
|
-
id: string;
|
|
2052
|
-
name: string;
|
|
2053
|
-
type: string;
|
|
2054
|
-
email?: string | null;
|
|
2055
|
-
phone?: string | null;
|
|
2056
|
-
wallet_id: string;
|
|
2057
|
-
}
|
|
2058
|
-
|
|
2059
|
-
export interface ExternalBankingData {
|
|
2060
|
-
id: string;
|
|
2061
|
-
account_number: string;
|
|
2062
|
-
routing_number?: string | null;
|
|
2063
|
-
bank_name: string;
|
|
2064
|
-
swift_bic?: string | null;
|
|
2065
|
-
iban?: string | null;
|
|
2066
|
-
note?: string | null;
|
|
2067
|
-
address_id?: string | null;
|
|
2068
|
-
}
|
|
2069
|
-
|
|
2070
|
-
export interface ExternalCryptoData {
|
|
2071
|
-
id: string;
|
|
2072
|
-
address: string;
|
|
2073
|
-
currency_id: string;
|
|
2074
|
-
memo?: string | null;
|
|
2075
|
-
}
|
|
2076
|
-
|
|
2077
|
-
export interface CounterpartyDestination {
|
|
2078
|
-
id: string;
|
|
2079
|
-
counterparty_account_id: string;
|
|
2080
|
-
nickname?: string | null;
|
|
2081
|
-
type: string;
|
|
2082
|
-
external_banking_data_id?: string | null;
|
|
2083
|
-
external_crypto_data_id?: string | null;
|
|
2084
|
-
created_at: string;
|
|
2085
|
-
updated_at: string;
|
|
2086
|
-
deleted_at?: string | null;
|
|
2087
|
-
is_deleted?: boolean | null;
|
|
2088
|
-
counterparty_account: CounterpartyAccount;
|
|
2089
|
-
external_banking_data?: ExternalBankingData | null;
|
|
2090
|
-
external_crypto_data?: ExternalCryptoData | null;
|
|
2091
|
-
}
|
|
2092
|
-
|
|
2093
|
-
export interface IntegrationVendorExtended extends API.VirtualAccounts.Programs.IntegrationVendor {
|
|
2094
|
-
type: string;
|
|
2095
|
-
}
|
|
2096
|
-
|
|
2097
|
-
export interface DepositInstructionAddress {
|
|
2098
|
-
address_line1: string;
|
|
2099
|
-
city: string;
|
|
2100
|
-
state: string;
|
|
2101
|
-
postal_code: string;
|
|
2102
|
-
country_code: string;
|
|
2103
|
-
}
|
|
2104
|
-
|
|
2105
|
-
export interface VirtualAccountAccountDetails {
|
|
2106
|
-
rail_account_id: string;
|
|
2107
|
-
rail_asset_type: string;
|
|
2108
|
-
rail_product_id: string;
|
|
2109
|
-
rail_customer_id: string;
|
|
2110
|
-
}
|
|
2111
|
-
|
|
2112
|
-
export interface VirtualAccountDetails {
|
|
2113
|
-
id: string;
|
|
2114
|
-
created_at: string;
|
|
2115
|
-
wallet_id: string;
|
|
2116
|
-
status: string;
|
|
2117
|
-
account_currency: string;
|
|
2118
|
-
destination_currency: string;
|
|
2119
|
-
destination_address?: string | null;
|
|
2120
|
-
va_programs_id: string;
|
|
2121
|
-
integration_vendor_id: string;
|
|
2122
|
-
vendor_account_id: string;
|
|
2123
|
-
vendor_status: string;
|
|
2124
|
-
current_balance: number;
|
|
2125
|
-
available_balance: number;
|
|
2126
|
-
customer_name: string;
|
|
2127
|
-
asset_type_id: string;
|
|
2128
|
-
deposit_type: string;
|
|
2129
|
-
meta?: Record<string, unknown>;
|
|
2130
|
-
account_details: VirtualAccountAccountDetails;
|
|
2131
|
-
deposit_instructions?: API.VirtualAccounts.VirtualAccount.DepositInstruction.DepositInstruction[];
|
|
2132
|
-
account_currency_details: API.Currencies.SimplifiedCurrency;
|
|
2133
|
-
destination_currency_details: API.Currencies.SimplifiedCurrency;
|
|
2134
|
-
integration_vendor: IntegrationVendorExtended;
|
|
2135
|
-
}
|
|
2136
|
-
|
|
2137
|
-
export type OrderDetails = API.Orders.V2.List.ByWallet.OrderItem & {
|
|
2138
|
-
request_id: string;
|
|
2139
|
-
updated_at: string;
|
|
2140
|
-
wallet: API.Wallets.SimplifiedWallet;
|
|
2141
|
-
from_currency: API.Currencies.SimplifiedCurrency;
|
|
2142
|
-
to_currency: API.Currencies.SimplifiedCurrency;
|
|
2143
|
-
virtual_account?: VirtualAccountDetails | null;
|
|
2144
|
-
counterparty_destination?: CounterpartyDestination | null;
|
|
2145
|
-
};
|
|
2146
|
-
|
|
2147
|
-
export type Response = OrderDetails;
|
|
2148
|
-
}
|
|
2149
|
-
}
|
|
2150
|
-
}
|
|
2151
|
-
|
|
2152
|
-
export namespace Persona {
|
|
2153
|
-
export namespace Inquiries {
|
|
2154
|
-
export type InquiryType = operations['PersonaController_initInquiry']['parameters']['path']['type'];
|
|
2155
|
-
export namespace Init {
|
|
2156
|
-
export type Request = operations['PersonaController_initInquiry']['parameters']['path'];
|
|
2157
|
-
export type Response =
|
|
2158
|
-
operations['PersonaController_initInquiry']['responses']['200']['content']['application/json'];
|
|
2159
|
-
}
|
|
2160
|
-
export namespace Resume {
|
|
2161
|
-
export type Request = operations['PersonaController_resumeInquiry']['parameters']['path'];
|
|
2162
|
-
export type Response =
|
|
2163
|
-
operations['PersonaController_resumeInquiry']['responses']['200']['content']['application/json'];
|
|
2164
|
-
}
|
|
2165
|
-
}
|
|
2166
|
-
}
|
|
2167
|
-
|
|
2168
|
-
export namespace Tenant {
|
|
2169
|
-
export type Config = components['schemas']['SystemConfigDto'];
|
|
2170
|
-
}
|
|
2171
|
-
|
|
2172
|
-
export namespace TOTP {
|
|
2173
|
-
export namespace OTPVerification {
|
|
2174
|
-
export type OTPVerificationChannelType = 'EMAIL' | 'SMS' | 'TOTP' | 'APP' | 'TG_TEST';
|
|
2175
|
-
export type OTPVerificationStatus = 'PENDING' | 'APPROVED' | 'DENIED';
|
|
2176
|
-
export type OTPVerificationChannelInfo = {
|
|
2177
|
-
channel: OTPVerificationChannelType;
|
|
2178
|
-
validity: number;
|
|
2179
|
-
max_requests: number;
|
|
2180
|
-
};
|
|
2181
|
-
export type OTPVerificationInfo = {
|
|
2182
|
-
request_id: string;
|
|
2183
|
-
status: OTPVerificationStatus;
|
|
2184
|
-
created_at: string;
|
|
2185
|
-
updated_at: string;
|
|
2186
|
-
};
|
|
2187
|
-
|
|
2188
|
-
export namespace Create {
|
|
2189
|
-
export type Request = {
|
|
2190
|
-
request_id: string;
|
|
2191
|
-
amount: number;
|
|
2192
|
-
order_type: string;
|
|
2193
|
-
wallet_id: string;
|
|
2194
|
-
meta?: {
|
|
2195
|
-
currency?: string;
|
|
2196
|
-
description?: string;
|
|
2197
|
-
counterparty_account_id?: string;
|
|
2198
|
-
from_currency_id?: string;
|
|
2199
|
-
to_currency_id?: string;
|
|
2200
|
-
note?: string;
|
|
2201
|
-
refference?: string;
|
|
2202
|
-
};
|
|
2203
|
-
};
|
|
2204
|
-
|
|
2205
|
-
export type Response = {
|
|
2206
|
-
request_id: string;
|
|
2207
|
-
status: OTPVerificationStatus;
|
|
2208
|
-
channels: OTPVerificationChannelInfo[];
|
|
2209
|
-
};
|
|
2210
|
-
}
|
|
2211
|
-
|
|
2212
|
-
export namespace RequestOtp {
|
|
2213
|
-
export type Request = {
|
|
2214
|
-
request_id: string;
|
|
2215
|
-
channel: OTPVerificationChannelType;
|
|
2216
|
-
};
|
|
2217
|
-
|
|
2218
|
-
export type Response = {
|
|
2219
|
-
success?: boolean;
|
|
2220
|
-
error?: boolean;
|
|
2221
|
-
message?: string;
|
|
2222
|
-
details?: string;
|
|
2223
|
-
validity?: number;
|
|
2224
|
-
requests_made?: number;
|
|
2225
|
-
max_requests?: number;
|
|
2226
|
-
};
|
|
2227
|
-
}
|
|
2228
|
-
|
|
2229
|
-
export namespace Verify {
|
|
2230
|
-
export type Request = {
|
|
2231
|
-
request_id: string;
|
|
2232
|
-
channel: OTPVerificationChannelType;
|
|
2233
|
-
otp: string;
|
|
2234
|
-
};
|
|
2235
|
-
|
|
2236
|
-
export type Response = {
|
|
2237
|
-
success?: boolean;
|
|
2238
|
-
error?: boolean;
|
|
2239
|
-
message?: string;
|
|
2240
|
-
details?: string;
|
|
2241
|
-
};
|
|
2242
|
-
}
|
|
2243
|
-
}
|
|
2244
|
-
export namespace TOTP {
|
|
2245
|
-
export namespace Generate {
|
|
2246
|
-
export type Request = {
|
|
2247
|
-
user_name: string;
|
|
2248
|
-
service_name: string;
|
|
2249
|
-
};
|
|
2250
|
-
|
|
2251
|
-
export type Response = {
|
|
2252
|
-
success?: boolean;
|
|
2253
|
-
error?: boolean;
|
|
2254
|
-
message?: string;
|
|
2255
|
-
data?: {
|
|
2256
|
-
id: string;
|
|
2257
|
-
qrCode: string;
|
|
2258
|
-
secret: string;
|
|
2259
|
-
};
|
|
2260
|
-
};
|
|
2261
|
-
}
|
|
2262
|
-
|
|
2263
|
-
export namespace Verify {
|
|
2264
|
-
export type Request = {
|
|
2265
|
-
token: string;
|
|
2266
|
-
otp: string;
|
|
2267
|
-
};
|
|
2268
|
-
|
|
2269
|
-
export type Response = {
|
|
2270
|
-
success?: boolean;
|
|
2271
|
-
error?: boolean;
|
|
2272
|
-
message?: string;
|
|
2273
|
-
details?: string;
|
|
2274
|
-
};
|
|
2275
|
-
}
|
|
2276
|
-
|
|
2277
|
-
export namespace Revoke {
|
|
2278
|
-
export type Request = {
|
|
2279
|
-
token: string;
|
|
2280
|
-
};
|
|
2281
|
-
|
|
2282
|
-
export type Response = {
|
|
2283
|
-
success?: boolean;
|
|
2284
|
-
error?: boolean;
|
|
2285
|
-
message?: string;
|
|
2286
|
-
details?: string;
|
|
2287
|
-
};
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
|
-
export namespace Activate {
|
|
2291
|
-
export type Request = {
|
|
2292
|
-
token: string;
|
|
2293
|
-
};
|
|
2294
|
-
|
|
2295
|
-
export type Response = {
|
|
2296
|
-
success?: boolean;
|
|
2297
|
-
error?: boolean;
|
|
2298
|
-
message?: string;
|
|
2299
|
-
details?: string;
|
|
2300
|
-
data?: {
|
|
2301
|
-
activated: boolean;
|
|
2302
|
-
};
|
|
2303
|
-
};
|
|
2304
|
-
}
|
|
2305
|
-
|
|
2306
|
-
export namespace GenerateEncrypted {
|
|
2307
|
-
export type Request = {
|
|
2308
|
-
user_name: string;
|
|
2309
|
-
service_name: string;
|
|
2310
|
-
public_key: string;
|
|
2311
|
-
};
|
|
2312
|
-
|
|
2313
|
-
export type Response = {
|
|
2314
|
-
success?: boolean;
|
|
2315
|
-
error?: boolean;
|
|
2316
|
-
message?: string;
|
|
2317
|
-
details?: string;
|
|
2318
|
-
data?: string;
|
|
2319
|
-
};
|
|
2320
|
-
}
|
|
2321
|
-
|
|
2322
|
-
export namespace Status {
|
|
2323
|
-
export type Response = {
|
|
2324
|
-
success?: boolean;
|
|
2325
|
-
error?: boolean;
|
|
2326
|
-
message?: string;
|
|
2327
|
-
details?: string;
|
|
2328
|
-
has_active_totp?: boolean;
|
|
2329
|
-
};
|
|
2330
|
-
}
|
|
2331
|
-
}
|
|
2332
|
-
}
|
|
2333
|
-
|
|
2334
|
-
export namespace VirtualAccounts {
|
|
2335
|
-
export namespace Create {
|
|
2336
|
-
export interface Request {
|
|
2337
|
-
wallet_id: string;
|
|
2338
|
-
va_programs_id: string;
|
|
2339
|
-
}
|
|
2340
|
-
|
|
2341
|
-
export type Response = API.VirtualAccounts.VirtualAccount.VirtualAccountDetailItem;
|
|
2342
|
-
}
|
|
2343
|
-
|
|
2344
|
-
export namespace GetByUuid {
|
|
2345
|
-
export interface Request {
|
|
2346
|
-
uuid: string;
|
|
2347
|
-
}
|
|
2348
|
-
|
|
2349
|
-
export type Response = API.VirtualAccounts.VirtualAccount.VirtualAccountDetailItem;
|
|
2350
|
-
}
|
|
2351
|
-
|
|
2352
|
-
export namespace GetAll {
|
|
2353
|
-
export interface Request {
|
|
2354
|
-
wallet_uuid: string;
|
|
2355
|
-
limit: number;
|
|
2356
|
-
offset: number;
|
|
2357
|
-
}
|
|
2358
|
-
|
|
2359
|
-
export type Response = {
|
|
2360
|
-
count: number;
|
|
2361
|
-
has_more: boolean;
|
|
2362
|
-
data: API.VirtualAccounts.VirtualAccount.VirtualAccountListItem[];
|
|
2363
|
-
};
|
|
2364
|
-
}
|
|
2365
|
-
|
|
2366
|
-
export namespace VirtualAccount {
|
|
2367
|
-
export interface Beneficiary {
|
|
2368
|
-
name: string;
|
|
2369
|
-
address: string;
|
|
2370
|
-
}
|
|
2371
|
-
|
|
2372
|
-
export interface AccountDetails {
|
|
2373
|
-
bankName: string;
|
|
2374
|
-
bankAddress: string;
|
|
2375
|
-
beneficiary: API.VirtualAccounts.VirtualAccount.Beneficiary;
|
|
2376
|
-
swiftCode: string;
|
|
2377
|
-
ach?: {
|
|
2378
|
-
accountNumber: string;
|
|
2379
|
-
routingNumber: string;
|
|
2380
|
-
};
|
|
2381
|
-
rtp?: {
|
|
2382
|
-
accountNumber: string;
|
|
2383
|
-
routingNumber: string;
|
|
2384
|
-
};
|
|
2385
|
-
wire?: {
|
|
2386
|
-
accountNumber: string;
|
|
2387
|
-
routingNumber: string;
|
|
2388
|
-
};
|
|
2389
|
-
swift?: {
|
|
2390
|
-
accountNumber: string;
|
|
2391
|
-
routingNumber: string;
|
|
2392
|
-
};
|
|
2393
|
-
}
|
|
2394
|
-
|
|
2395
|
-
export interface PaymentRail {
|
|
2396
|
-
currency: string;
|
|
2397
|
-
paymentRail: string[];
|
|
2398
|
-
}
|
|
2399
|
-
|
|
2400
|
-
export interface Destination {
|
|
2401
|
-
chain: string;
|
|
2402
|
-
currency: string;
|
|
2403
|
-
walletAddress: string;
|
|
2404
|
-
}
|
|
2405
|
-
|
|
2406
|
-
export namespace DepositInstruction {
|
|
2407
|
-
export type InstructionType = 'ACH' | 'FEDWIRE' | 'SWIFT' | 'SEPA_CT' | 'CHAPS' | 'FPS';
|
|
2408
|
-
|
|
2409
|
-
export interface Address {
|
|
2410
|
-
city: string;
|
|
2411
|
-
state: string;
|
|
2412
|
-
postal_code: string;
|
|
2413
|
-
country_code: string;
|
|
2414
|
-
address_line1: string;
|
|
2415
|
-
address_line2: string;
|
|
2416
|
-
}
|
|
2417
|
-
|
|
2418
|
-
export interface Common {
|
|
2419
|
-
memo: string;
|
|
2420
|
-
asset_type_id: string;
|
|
2421
|
-
account_number: string;
|
|
2422
|
-
institution_name: string;
|
|
2423
|
-
instruction_type: InstructionType;
|
|
2424
|
-
account_holder_address?: Address;
|
|
2425
|
-
institution_address?: Address;
|
|
2426
|
-
account_holder_name?: string;
|
|
2427
|
-
account_routing_number?: string;
|
|
2428
|
-
swift_bic?: string;
|
|
2429
|
-
iban?: string;
|
|
2430
|
-
sort_code?: string;
|
|
2431
|
-
}
|
|
2432
|
-
export interface ACH extends Common {
|
|
2433
|
-
instruction_type: 'ACH';
|
|
2434
|
-
}
|
|
2435
|
-
export interface FEDWIRE extends Common {
|
|
2436
|
-
instruction_type: 'FEDWIRE';
|
|
2437
|
-
account_holder_name: string;
|
|
2438
|
-
account_routing_number: string;
|
|
2439
|
-
institution_address: Address;
|
|
2440
|
-
account_holder_address: Address;
|
|
2441
|
-
}
|
|
2442
|
-
|
|
2443
|
-
export interface SWIFT extends Common {
|
|
2444
|
-
instruction_type: 'SWIFT';
|
|
2445
|
-
swift_bic: string;
|
|
2446
|
-
institution_address: Address;
|
|
2447
|
-
account_holder_address: Address;
|
|
2448
|
-
}
|
|
2449
|
-
export interface SEPA extends Common {
|
|
2450
|
-
instruction_type: 'SEPA_CT';
|
|
2451
|
-
iban: string;
|
|
2452
|
-
swift_bic: string;
|
|
2453
|
-
institution_address: Address;
|
|
2454
|
-
account_holder_address: Address;
|
|
2455
|
-
}
|
|
2456
|
-
|
|
2457
|
-
export interface CHAPS extends Common {
|
|
2458
|
-
instruction_type: 'CHAPS';
|
|
2459
|
-
account_holder_name: string;
|
|
2460
|
-
sort_code: string;
|
|
2461
|
-
account_holder_address: Address;
|
|
2462
|
-
institution_address: Address;
|
|
2463
|
-
}
|
|
2464
|
-
|
|
2465
|
-
export interface FPS extends Common {
|
|
2466
|
-
instruction_type: 'FPS';
|
|
2467
|
-
account_holder_name: string;
|
|
2468
|
-
sort_code: string;
|
|
2469
|
-
account_holder_address: Address;
|
|
2470
|
-
institution_address: Address;
|
|
2471
|
-
}
|
|
2472
|
-
|
|
2473
|
-
export type DepositInstruction = ACH | FEDWIRE | SWIFT | SEPA | CHAPS | FPS | Common;
|
|
2474
|
-
}
|
|
2475
|
-
|
|
2476
|
-
export interface OrderType {
|
|
2477
|
-
order_type_id: string;
|
|
2478
|
-
}
|
|
2479
|
-
|
|
2480
|
-
export interface VirtualAccountListItem {
|
|
2481
|
-
id: string;
|
|
2482
|
-
created_at: string;
|
|
2483
|
-
wallet_id: string;
|
|
2484
|
-
status: string;
|
|
2485
|
-
balance: number;
|
|
2486
|
-
total_balance: number;
|
|
2487
|
-
account_currency: API.Currencies.Currency;
|
|
2488
|
-
va_programs_id: string;
|
|
2489
|
-
destination_currency: API.Currencies.Currency;
|
|
2490
|
-
destination_address: string;
|
|
2491
|
-
integration_vendor_id: string;
|
|
2492
|
-
vendor_account_id: string;
|
|
2493
|
-
account_details: API.VirtualAccounts.VirtualAccount.AccountDetails;
|
|
2494
|
-
virtual_accounts_program: API.VirtualAccounts.Programs.Program;
|
|
2495
|
-
deposit_instructions?: API.VirtualAccounts.VirtualAccount.DepositInstruction.DepositInstruction[];
|
|
2496
|
-
}
|
|
2497
|
-
export interface VirtualAccountDetailItem {
|
|
2498
|
-
account_currency: string;
|
|
2499
|
-
account_currency_details: API.Currencies.Currency;
|
|
2500
|
-
account_details: API.VirtualAccounts.VirtualAccount.AccountDetails;
|
|
2501
|
-
balance: number;
|
|
2502
|
-
crypto_deposit_details: {
|
|
2503
|
-
currency_id: string;
|
|
2504
|
-
deposit_address: string;
|
|
2505
|
-
chain_id: number;
|
|
2506
|
-
}[];
|
|
2507
|
-
created_at: string;
|
|
2508
|
-
destination_address: string;
|
|
2509
|
-
destination_currency: string;
|
|
2510
|
-
destination_currency_details: API.Currencies.Currency;
|
|
2511
|
-
deposit_instructions?: API.VirtualAccounts.VirtualAccount.DepositInstruction.DepositInstruction[];
|
|
2512
|
-
id: string;
|
|
2513
|
-
integration_vendor_id: string;
|
|
2514
|
-
order_types: string[];
|
|
2515
|
-
status: string;
|
|
2516
|
-
total_balance: number;
|
|
2517
|
-
va_programs_id: string;
|
|
2518
|
-
vendor_account_id: string;
|
|
2519
|
-
virtual_accounts_program: API.VirtualAccounts.Programs.Program;
|
|
2520
|
-
wallet_id: string;
|
|
2521
|
-
}
|
|
2522
|
-
}
|
|
2523
|
-
export namespace Programs {
|
|
2524
|
-
export interface OrderType {
|
|
2525
|
-
id: string;
|
|
2526
|
-
description: string | null;
|
|
2527
|
-
}
|
|
2528
|
-
export interface OrderTypeListItem {
|
|
2529
|
-
order_type: API.VirtualAccounts.Programs.OrderType;
|
|
2530
|
-
order_type_id: string;
|
|
2531
|
-
}
|
|
2532
|
-
|
|
2533
|
-
export interface CurrencyItem {
|
|
2534
|
-
icon: string | null;
|
|
2535
|
-
name: string;
|
|
2536
|
-
type: string;
|
|
2537
|
-
uuid: string;
|
|
2538
|
-
symbol: string;
|
|
2539
|
-
}
|
|
2540
|
-
|
|
2541
|
-
export interface IntegrationVendor {
|
|
2542
|
-
id: string;
|
|
2543
|
-
code: string;
|
|
2544
|
-
name: string;
|
|
2545
|
-
}
|
|
2546
|
-
|
|
2547
|
-
export interface Program {
|
|
2548
|
-
id: string;
|
|
2549
|
-
name: string;
|
|
2550
|
-
vendor_id: string | null;
|
|
2551
|
-
tenant_id: string;
|
|
2552
|
-
status: string;
|
|
2553
|
-
account_currency_id: string;
|
|
2554
|
-
description: string;
|
|
2555
|
-
icon: string | null;
|
|
2556
|
-
code: string;
|
|
2557
|
-
kyc_rails_id: string;
|
|
2558
|
-
consent_text: string | null;
|
|
2559
|
-
integration_vendors_id: string;
|
|
2560
|
-
is_hidden: boolean;
|
|
2561
|
-
destination_currency_id: string;
|
|
2562
|
-
integration_vendor: API.VirtualAccounts.Programs.IntegrationVendor;
|
|
2563
|
-
account_currency_details: API.VirtualAccounts.Programs.CurrencyItem;
|
|
2564
|
-
destination_currency_details: API.VirtualAccounts.Programs.CurrencyItem;
|
|
2565
|
-
virtual_accounts_programs_order_types: API.VirtualAccounts.Programs.OrderTypeListItem[];
|
|
2566
|
-
}
|
|
2567
|
-
|
|
2568
|
-
export namespace List {
|
|
2569
|
-
export interface Request {
|
|
2570
|
-
offset: number;
|
|
2571
|
-
limit: number;
|
|
2572
|
-
pagination?: boolean;
|
|
2573
|
-
wallet_id: string;
|
|
2574
|
-
}
|
|
2575
|
-
export interface Response {
|
|
2576
|
-
data: Program[];
|
|
2577
|
-
count: number;
|
|
2578
|
-
has_more: boolean;
|
|
2579
|
-
}
|
|
2580
|
-
}
|
|
2581
|
-
}
|
|
2582
|
-
}
|
|
2583
|
-
|
|
2584
|
-
export namespace User {
|
|
2585
|
-
export type User = components['schemas']['UserEntity'];
|
|
2586
|
-
|
|
2587
|
-
export namespace Get {
|
|
2588
|
-
export type Request = operations['UserController_getMe']['parameters']['query'];
|
|
2589
|
-
export type Response = operations['UserController_getMe']['responses']['200']['content']['application/json'];
|
|
2590
|
-
}
|
|
2591
|
-
|
|
2592
|
-
export namespace UpdateUser {
|
|
2593
|
-
export namespace Phone {
|
|
2594
|
-
export namespace RequestOTP {
|
|
2595
|
-
export type Request =
|
|
2596
|
-
operations['AuthenticatedUserController_changePhone']['requestBody']['content']['application/json'];
|
|
2597
|
-
}
|
|
2598
|
-
export namespace Confirm {
|
|
2599
|
-
export type Request =
|
|
2600
|
-
operations['AuthenticatedUserController_changePhoneNumberConfirm']['requestBody']['content']['application/json'];
|
|
2601
|
-
}
|
|
2602
|
-
}
|
|
2603
|
-
|
|
2604
|
-
export namespace Email {
|
|
2605
|
-
export namespace RequestOTP {
|
|
2606
|
-
export type Request =
|
|
2607
|
-
operations['AuthenticatedUserController_changeEmail']['requestBody']['content']['application/json'];
|
|
2608
|
-
}
|
|
2609
|
-
|
|
2610
|
-
export namespace Confirm {
|
|
2611
|
-
export type Request =
|
|
2612
|
-
operations['AuthenticatedUserController_changeEmailConfirm']['requestBody']['content']['application/json'];
|
|
2613
|
-
}
|
|
2614
|
-
}
|
|
2615
|
-
}
|
|
2616
|
-
|
|
2617
|
-
export namespace UserData {
|
|
2618
|
-
export type UserData = components['schemas']['UserDataEntity'];
|
|
2619
|
-
|
|
2620
|
-
export namespace Get {
|
|
2621
|
-
export type Request = operations['UserController_getMyUserData']['parameters']['query'];
|
|
2622
|
-
export type Response =
|
|
2623
|
-
operations['UserController_getMyUserData']['responses']['200']['content']['application/json'];
|
|
2624
|
-
}
|
|
2625
|
-
|
|
2626
|
-
export namespace Update {
|
|
2627
|
-
export type Request =
|
|
2628
|
-
operations['UserController_updateMyUserData']['requestBody']['content']['application/json'];
|
|
2629
|
-
|
|
2630
|
-
export type Response =
|
|
2631
|
-
operations['UserController_updateMyUserData']['responses']['200']['content']['application/json'];
|
|
2632
|
-
}
|
|
2633
|
-
}
|
|
2634
|
-
}
|
|
2635
|
-
|
|
2636
|
-
export namespace Wallets {
|
|
2637
|
-
// Упрощенная версия кошелька (используется в некоторых эндпоинтах)
|
|
2638
|
-
export interface SimplifiedWallet {
|
|
2639
|
-
uuid: string;
|
|
2640
|
-
user_id: string;
|
|
2641
|
-
tenant_id: string;
|
|
2642
|
-
}
|
|
2643
|
-
|
|
2644
|
-
export interface WallletBalanceCryptoDetails {
|
|
2645
|
-
uuid: string;
|
|
2646
|
-
amount: number;
|
|
2647
|
-
fiat_amount: number;
|
|
2648
|
-
currency: API.Currencies.Currency;
|
|
2649
|
-
}
|
|
2650
|
-
export interface WalletBalanceItem {
|
|
2651
|
-
symbol: string;
|
|
2652
|
-
icon: string;
|
|
2653
|
-
name: string;
|
|
2654
|
-
is_crypto: boolean;
|
|
2655
|
-
decimal?: number | null;
|
|
2656
|
-
amount: number;
|
|
2657
|
-
fiat_amount: number;
|
|
2658
|
-
details: WallletBalanceCryptoDetails[];
|
|
2659
|
-
}
|
|
2660
|
-
|
|
2661
|
-
export type WalletBalance = WalletBalanceItem[];
|
|
2662
|
-
|
|
2663
|
-
export namespace WalletChain {
|
|
2664
|
-
export interface WalletChain {
|
|
2665
|
-
uuid: string;
|
|
2666
|
-
created_ad: string;
|
|
2667
|
-
address: string;
|
|
2668
|
-
wallet_uuid: string;
|
|
2669
|
-
chain: number;
|
|
2670
|
-
}
|
|
2671
|
-
|
|
2672
|
-
export namespace Create {
|
|
2673
|
-
export interface Request {
|
|
2674
|
-
wallet_uuid: string;
|
|
2675
|
-
chain: number;
|
|
2676
|
-
label: string;
|
|
2677
|
-
}
|
|
2678
|
-
export type Response = WalletChain;
|
|
2679
|
-
}
|
|
2680
|
-
}
|
|
2681
|
-
|
|
2682
|
-
export interface Wallet {
|
|
2683
|
-
uuid: string;
|
|
2684
|
-
type: WalletType | string;
|
|
2685
|
-
created_at: string;
|
|
2686
|
-
fiat_total: number;
|
|
2687
|
-
crypto_total: number;
|
|
2688
|
-
total_amount: number;
|
|
2689
|
-
balance: WalletBalance;
|
|
2690
|
-
}
|
|
2691
|
-
|
|
2692
|
-
export namespace WalletsList {
|
|
2693
|
-
export interface WalletsListItem {
|
|
2694
|
-
type: WalletType | string;
|
|
2695
|
-
uuid: string;
|
|
2696
|
-
created_at: string;
|
|
2697
|
-
}
|
|
2698
|
-
|
|
2699
|
-
export type Request = operations['WalletsController_all']['parameters']['query'];
|
|
2700
|
-
export type Response = operations['WalletsController_all']['responses']['200']['content']['application/json'];
|
|
2701
|
-
}
|
|
2702
|
-
|
|
2703
|
-
export namespace WalletTransactions {
|
|
2704
|
-
export interface WalletTransactionMeta {
|
|
2705
|
-
transaction_hash?: string;
|
|
2706
|
-
fee?: number;
|
|
2707
|
-
order_id?: string;
|
|
2708
|
-
from_address?: string; // not added on backend
|
|
2709
|
-
to_address?: string;
|
|
2710
|
-
network_fee?: number;
|
|
2711
|
-
network_fee_currency?: string;
|
|
2712
|
-
fee_currency?: string;
|
|
2713
|
-
billing_amount?: number;
|
|
2714
|
-
utila_transaction?: string;
|
|
2715
|
-
transcation_amount?: number;
|
|
2716
|
-
transaction_amount?: number;
|
|
2717
|
-
billing_amount_currency?: string;
|
|
2718
|
-
transcation_amount_currency?: string;
|
|
2719
|
-
transaction_amount_currency?: string;
|
|
2720
|
-
exchange_rate?: number;
|
|
2721
|
-
fiat_account_id?: string;
|
|
2722
|
-
txid?: string;
|
|
2723
|
-
chain_id?: number;
|
|
2724
|
-
from_user_data?: number;
|
|
2725
|
-
to_user_data?: number;
|
|
2726
|
-
to_card_id?: string;
|
|
2727
|
-
to_card_last4?: string;
|
|
2728
|
-
to_fiat_account_id?: string;
|
|
2729
|
-
to_vendor_id?: string;
|
|
2730
|
-
}
|
|
2731
|
-
export interface Transaction {
|
|
2732
|
-
id: number;
|
|
2733
|
-
created_at: string;
|
|
2734
|
-
type: WalletTransactionType | string;
|
|
2735
|
-
method: WalletTransactionMethod | string;
|
|
2736
|
-
status: WalletTransactionStatus | string;
|
|
2737
|
-
amount: number;
|
|
2738
|
-
from: string | null; // deprecated?
|
|
2739
|
-
to: string | null; // deprecated?
|
|
2740
|
-
wallet_id: string;
|
|
2741
|
-
txid: string; // deprecated?
|
|
2742
|
-
info: string;
|
|
2743
|
-
currency: API.Currencies.Currency;
|
|
2744
|
-
record_type: WalletTransactionRecordType | string;
|
|
2745
|
-
meta?: WalletTransactionMeta;
|
|
2746
|
-
}
|
|
2747
|
-
|
|
2748
|
-
export interface DetailedTransaction {
|
|
2749
|
-
id: number;
|
|
2750
|
-
amount: number;
|
|
2751
|
-
created_at: string;
|
|
2752
|
-
from: string;
|
|
2753
|
-
info: string;
|
|
2754
|
-
status: WalletTransactionStatus | string;
|
|
2755
|
-
to: string;
|
|
2756
|
-
txid: string;
|
|
2757
|
-
type: WalletTransactionType | string;
|
|
2758
|
-
wallet_id: string;
|
|
2759
|
-
method: WalletTransactionMethod | string;
|
|
2760
|
-
meta: WalletTransactionMeta;
|
|
2761
|
-
record_type: WalletTransactionRecordType | string;
|
|
2762
|
-
currency: API.Currencies.Currency;
|
|
2763
|
-
}
|
|
2764
|
-
|
|
2765
|
-
export namespace GetByUuid {
|
|
2766
|
-
export type Request = {
|
|
2767
|
-
wallet_uuid: string;
|
|
2768
|
-
uuid: string;
|
|
2769
|
-
};
|
|
2770
|
-
}
|
|
2771
|
-
|
|
2772
|
-
export namespace TransactionList {
|
|
2773
|
-
export type Request = {
|
|
2774
|
-
wallet_uuid: string;
|
|
2775
|
-
limit: number;
|
|
2776
|
-
offset: number;
|
|
2777
|
-
filter?: Partial<components['schemas']['TransactionsFilter']>;
|
|
2778
|
-
};
|
|
2779
|
-
export type Response = {
|
|
2780
|
-
total: number;
|
|
2781
|
-
data: Transaction[];
|
|
2782
|
-
};
|
|
2783
|
-
|
|
2784
|
-
export namespace ExportCsv {
|
|
2785
|
-
export type Request = {
|
|
2786
|
-
wallet_uuid: string;
|
|
2787
|
-
filter?: Partial<components['schemas']['TransactionsFilter']>;
|
|
2788
|
-
};
|
|
2789
|
-
export type Response = string;
|
|
2790
|
-
}
|
|
2791
|
-
}
|
|
2792
|
-
}
|
|
2793
|
-
}
|
|
2794
|
-
|
|
2795
|
-
export namespace Storage {
|
|
2796
|
-
export namespace KYC {
|
|
2797
|
-
export namespace Upload {
|
|
2798
|
-
export type Response =
|
|
2799
|
-
operations['StorageController_uploadKycFile']['responses']['201']['content']['application/json'];
|
|
2800
|
-
}
|
|
2801
|
-
|
|
2802
|
-
export namespace GetFileUrl {
|
|
2803
|
-
export type Request = {
|
|
2804
|
-
path: string;
|
|
2805
|
-
};
|
|
2806
|
-
export type Response =
|
|
2807
|
-
operations['StorageController_getFileUrl']['responses']['200']['content']['application/octet-stream'];
|
|
2808
|
-
}
|
|
2809
|
-
|
|
2810
|
-
export namespace GetFileById {
|
|
2811
|
-
export interface Request {
|
|
2812
|
-
folderId: string;
|
|
2813
|
-
fileId: string;
|
|
2814
|
-
}
|
|
2815
|
-
export type Response =
|
|
2816
|
-
operations['StorageController_getKycFile']['responses']['200']['content']['application/octet-stream'];
|
|
2817
|
-
}
|
|
2818
|
-
}
|
|
2819
|
-
}
|
|
2820
|
-
}
|