squarefi-bff-api-module 1.26.12 → 1.26.14
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 +0 -0
- package/dist/api/auth.js +0 -0
- package/dist/api/counterparties.d.ts +0 -0
- package/dist/api/counterparties.js +0 -0
- package/dist/api/developer.d.ts +0 -0
- package/dist/api/developer.js +0 -0
- package/dist/api/exchange.d.ts +0 -0
- package/dist/api/exchange.js +0 -0
- package/dist/api/frontend.d.ts +0 -0
- package/dist/api/frontend.js +0 -0
- package/dist/api/index.d.ts +0 -0
- package/dist/api/index.js +0 -0
- package/dist/api/issuing.d.ts +0 -0
- package/dist/api/issuing.js +0 -0
- package/dist/api/kyc.d.ts +0 -0
- package/dist/api/kyc.js +0 -0
- package/dist/api/list.d.ts +0 -0
- package/dist/api/list.js +0 -0
- package/dist/api/orders.d.ts +0 -0
- package/dist/api/orders.js +0 -0
- package/dist/api/persona.d.ts +0 -0
- package/dist/api/persona.js +0 -0
- package/dist/api/tenants.d.ts +0 -0
- package/dist/api/tenants.js +0 -0
- package/dist/api/totp.d.ts +0 -0
- package/dist/api/totp.js +0 -0
- package/dist/api/types/autogen/apiV2.types.d.ts +42 -70
- package/dist/api/types/autogen/apiV2.types.js +0 -0
- package/dist/api/types/types.d.ts +41 -30
- package/dist/api/types/types.js +0 -0
- package/dist/api/user.d.ts +0 -0
- package/dist/api/user.js +0 -0
- package/dist/api/virtual-accounts.d.ts +0 -0
- package/dist/api/virtual-accounts.js +0 -0
- package/dist/api/wallets.d.ts +0 -0
- package/dist/api/wallets.js +0 -0
- package/dist/constants.d.ts +0 -0
- package/dist/constants.js +0 -0
- package/dist/hooks/index.d.ts +0 -0
- package/dist/hooks/index.js +0 -0
- package/dist/hooks/useCalc.d.ts +0 -0
- package/dist/hooks/useCalc.js +0 -0
- package/dist/hooks/useSupabaseSubscription/config.d.ts +0 -0
- package/dist/hooks/useSupabaseSubscription/config.js +0 -0
- package/dist/hooks/useSupabaseSubscription/index.d.ts +0 -0
- package/dist/hooks/useSupabaseSubscription/index.js +0 -0
- package/dist/hooks/useSupabaseSubscription/specialized.d.ts +0 -0
- package/dist/hooks/useSupabaseSubscription/specialized.js +0 -0
- package/dist/hooks/useSupabaseSubscription/types.d.ts +0 -0
- package/dist/hooks/useSupabaseSubscription/types.js +0 -0
- package/dist/hooks/useSupabaseSubscription/useSupabaseSubscription.d.ts +0 -0
- package/dist/hooks/useSupabaseSubscription/useSupabaseSubscription.js +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/utils/apiClientFactory.d.ts +0 -0
- package/dist/utils/apiClientFactory.js +0 -0
- package/dist/utils/converters.d.ts +0 -0
- package/dist/utils/converters.js +0 -0
- package/dist/utils/encrypt.d.ts +0 -0
- package/dist/utils/encrypt.js +0 -0
- package/dist/utils/storage.d.ts +0 -0
- package/dist/utils/storage.js +0 -0
- package/dist/utils/supabase.d.ts +0 -0
- package/dist/utils/supabase.js +0 -0
- package/dist/utils/tokensFactory.d.ts +0 -0
- package/dist/utils/tokensFactory.js +0 -0
- package/package.json +1 -1
- package/src/api/types/autogen/apiV2.types.ts +42 -70
- package/src/api/types/types.ts +43 -31
- package/dist/api/config.d.ts +0 -37
- package/dist/api/config.js +0 -40
- package/dist/api/fetch_api.d.ts +0 -1
- package/dist/api/fetch_api.js +0 -122
- package/dist/api/fiat_accounts.d.ts +0 -32
- package/dist/api/fiat_accounts.js +0 -51
- package/dist/api/location.d.ts +0 -6
- package/dist/api/location.js +0 -9
- package/dist/api/types.d.ts +0 -1674
- package/dist/api/types.js +0 -2
- package/dist/utils/common.d.ts +0 -5
- package/dist/utils/common.js +0 -48
package/dist/api/types.d.ts
DELETED
|
@@ -1,1674 +0,0 @@
|
|
|
1
|
-
import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CounterpartyDestinationType, CounterpartyType, CurrencyType, IssuingProgramStatus, KYCStatuses, OrderStatuses, OrderType, SortingDirection, SubAccountType, WalletTransactionMethod, WalletTransactionRecordType, WalletTransactionStatus, WalletTransactionType } from '../constants';
|
|
2
|
-
import { WalletType } from '../';
|
|
3
|
-
export declare namespace API {
|
|
4
|
-
namespace Auth {
|
|
5
|
-
namespace Telegram {
|
|
6
|
-
interface Signin {
|
|
7
|
-
tg_id: number;
|
|
8
|
-
hash: string;
|
|
9
|
-
init_data_raw: string;
|
|
10
|
-
}
|
|
11
|
-
interface Signup {
|
|
12
|
-
phone: string;
|
|
13
|
-
tg_id: number;
|
|
14
|
-
first_name: string;
|
|
15
|
-
last_name?: string;
|
|
16
|
-
hash: string;
|
|
17
|
-
init_data_raw: string;
|
|
18
|
-
referrer?: string;
|
|
19
|
-
invite_code?: string;
|
|
20
|
-
username: string;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
interface Tokens {
|
|
24
|
-
access_token: string;
|
|
25
|
-
refresh_token: string;
|
|
26
|
-
}
|
|
27
|
-
namespace UserData {
|
|
28
|
-
namespace Update {
|
|
29
|
-
interface Request {
|
|
30
|
-
default_currency: string;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
interface UserData {
|
|
34
|
-
id: number;
|
|
35
|
-
created_at: string;
|
|
36
|
-
user_id: string;
|
|
37
|
-
kyc_status: KYCStatuses | string;
|
|
38
|
-
kyc_date: string;
|
|
39
|
-
turnover_limit?: number;
|
|
40
|
-
default_currency: string;
|
|
41
|
-
tenant_id: string;
|
|
42
|
-
user_group_id: string;
|
|
43
|
-
is_developer: boolean;
|
|
44
|
-
can_invite: boolean;
|
|
45
|
-
total_turnover: {
|
|
46
|
-
onramp: number;
|
|
47
|
-
offramp: number;
|
|
48
|
-
total: number;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
namespace Update {
|
|
53
|
-
namespace Phone {
|
|
54
|
-
interface Request {
|
|
55
|
-
phone: string;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
namespace SignIn {
|
|
60
|
-
namespace Email {
|
|
61
|
-
namespace OTP {
|
|
62
|
-
interface Request {
|
|
63
|
-
email: string;
|
|
64
|
-
invite_code?: string;
|
|
65
|
-
referrer?: string;
|
|
66
|
-
redirect_url?: string;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
namespace Phone {
|
|
71
|
-
namespace OTP {
|
|
72
|
-
interface Request {
|
|
73
|
-
phone: string;
|
|
74
|
-
invite_code?: string;
|
|
75
|
-
referrer?: string;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
namespace SignUp {
|
|
81
|
-
namespace Password {
|
|
82
|
-
interface Request {
|
|
83
|
-
email: string;
|
|
84
|
-
password: string;
|
|
85
|
-
invite_code?: string;
|
|
86
|
-
referrer?: string;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
namespace VerifyOtp {
|
|
91
|
-
type Response = {
|
|
92
|
-
access_token: string;
|
|
93
|
-
refresh_token: string;
|
|
94
|
-
error?: string;
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
namespace Cards {
|
|
99
|
-
namespace Config {
|
|
100
|
-
type IssuingProgramOrderType = {
|
|
101
|
-
id: string;
|
|
102
|
-
order_types_id: OrderType | string;
|
|
103
|
-
issuing_programs_id: string;
|
|
104
|
-
};
|
|
105
|
-
interface Program {
|
|
106
|
-
id: string;
|
|
107
|
-
account_currency: string;
|
|
108
|
-
brand: string;
|
|
109
|
-
form_factor: CardFormFactor | string;
|
|
110
|
-
name: string;
|
|
111
|
-
card_limit: number;
|
|
112
|
-
realtime_auth: boolean;
|
|
113
|
-
tokenizable: boolean;
|
|
114
|
-
vendor_id: string;
|
|
115
|
-
purposes: string[] | null;
|
|
116
|
-
type: CardType | string;
|
|
117
|
-
order_types: IssuingProgramOrderType[];
|
|
118
|
-
sub_account_type: SubAccountType | string;
|
|
119
|
-
description: string | null;
|
|
120
|
-
icon: string | null;
|
|
121
|
-
card_issuing_fee: number | null;
|
|
122
|
-
card_monthly_fee: number | null;
|
|
123
|
-
initial_topup: number | null;
|
|
124
|
-
status?: IssuingProgramStatus | string;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
interface User {
|
|
128
|
-
email: string;
|
|
129
|
-
whitelabel: string;
|
|
130
|
-
id: string;
|
|
131
|
-
nickname: string;
|
|
132
|
-
role: string;
|
|
133
|
-
status: string;
|
|
134
|
-
user_type: string;
|
|
135
|
-
invite_accept: boolean;
|
|
136
|
-
is_new_client: boolean;
|
|
137
|
-
account: {
|
|
138
|
-
first_name: string;
|
|
139
|
-
middle_name: string;
|
|
140
|
-
last_name: string;
|
|
141
|
-
date_of_birth: string;
|
|
142
|
-
phone: string;
|
|
143
|
-
type: string;
|
|
144
|
-
id: string;
|
|
145
|
-
user_id: number;
|
|
146
|
-
tg_account: string;
|
|
147
|
-
company: {
|
|
148
|
-
name: string;
|
|
149
|
-
registration_number: string;
|
|
150
|
-
phone: string;
|
|
151
|
-
primary_contact_email: string;
|
|
152
|
-
id: string;
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
namespace Limits {
|
|
157
|
-
interface Limits {
|
|
158
|
-
all_time_enabled: boolean;
|
|
159
|
-
all_time_cap: number;
|
|
160
|
-
all_time_spent: number;
|
|
161
|
-
daily_enabled: boolean;
|
|
162
|
-
daily_cap: number;
|
|
163
|
-
daily_spent: number;
|
|
164
|
-
weekly_enabled: boolean;
|
|
165
|
-
weekly_cap: number;
|
|
166
|
-
weekly_spent: number;
|
|
167
|
-
monthly_enabled: boolean;
|
|
168
|
-
monthly_cap: number;
|
|
169
|
-
monthly_spent: number;
|
|
170
|
-
yearly_enabled: boolean;
|
|
171
|
-
yearly_cap: number;
|
|
172
|
-
yearly_spent: number;
|
|
173
|
-
per_transaction_enabled: boolean;
|
|
174
|
-
per_transaction_cap: number;
|
|
175
|
-
per_transaction_spent: number;
|
|
176
|
-
}
|
|
177
|
-
interface UpdateRequest {
|
|
178
|
-
all_time_cap?: number;
|
|
179
|
-
daily_cap?: number;
|
|
180
|
-
weekly_cap?: number;
|
|
181
|
-
monthly_cap?: number;
|
|
182
|
-
yearly_cap?: number;
|
|
183
|
-
per_transaction_cap?: number;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
interface IssuingCardListItem {
|
|
187
|
-
brand: string;
|
|
188
|
-
card_id: string;
|
|
189
|
-
card_status: string;
|
|
190
|
-
created_at: string;
|
|
191
|
-
nick_name: string | null;
|
|
192
|
-
wallet_id: string;
|
|
193
|
-
program_id: string;
|
|
194
|
-
fiat_account: API.Issuing.SubAccounts.SubAccount;
|
|
195
|
-
last4: string;
|
|
196
|
-
request_id: string;
|
|
197
|
-
name_on_card: string | null;
|
|
198
|
-
type: CardType | string;
|
|
199
|
-
form_factor: CardFormFactor | string;
|
|
200
|
-
tokenizable: boolean;
|
|
201
|
-
}
|
|
202
|
-
interface IssuingCardDetailItem {
|
|
203
|
-
id: string;
|
|
204
|
-
brand: string;
|
|
205
|
-
card_id: string;
|
|
206
|
-
fiat_account: API.Issuing.SubAccounts.SubAccount;
|
|
207
|
-
last4: string;
|
|
208
|
-
card_status: string;
|
|
209
|
-
form_factor: string;
|
|
210
|
-
name_on_card: string | null;
|
|
211
|
-
nick_name: string;
|
|
212
|
-
wallet_id: string;
|
|
213
|
-
type: string;
|
|
214
|
-
tokenizable: boolean;
|
|
215
|
-
issuing_programs: API.Cards.Config.Program;
|
|
216
|
-
limits: API.Cards.Limits.Limits;
|
|
217
|
-
}
|
|
218
|
-
interface SubAccountCardListItem {
|
|
219
|
-
type: string;
|
|
220
|
-
brand: string;
|
|
221
|
-
last4: string;
|
|
222
|
-
card_id: string;
|
|
223
|
-
nick_name: string;
|
|
224
|
-
vendor_id: string;
|
|
225
|
-
wallet_id: string;
|
|
226
|
-
created_at: string;
|
|
227
|
-
program_id: string;
|
|
228
|
-
request_id: string;
|
|
229
|
-
card_number: string;
|
|
230
|
-
card_status: string;
|
|
231
|
-
expiry_year: number;
|
|
232
|
-
form_factor: string;
|
|
233
|
-
tokenizable: boolean;
|
|
234
|
-
expiry_month: number;
|
|
235
|
-
fiat_account: string;
|
|
236
|
-
name_on_card: string;
|
|
237
|
-
}
|
|
238
|
-
namespace CardsList {
|
|
239
|
-
namespace Request {
|
|
240
|
-
type CardsListSortingFields = Partial<Pick<IssuingCardListItem, 'created_at' | 'card_status' | 'last4' | 'nick_name' | 'name_on_card' | 'card_id'>>;
|
|
241
|
-
type CardsListFilteringFields = Partial<IssuingCardListItem>;
|
|
242
|
-
type CardsListRequestCommonParams = API.Common.Pagination.Request & API.Common.Sorting.Request<CardsListSortingFields> & API.Common.Filtering.Request<CardsListFilteringFields>;
|
|
243
|
-
interface ByWalletUuid extends CardsListRequestCommonParams {
|
|
244
|
-
wallet_uuid: string;
|
|
245
|
-
}
|
|
246
|
-
interface BySubaccountAndWalletUuid extends ByWalletUuid {
|
|
247
|
-
filter?: Record<'fiat_account', Record<'type', SubAccountType>>;
|
|
248
|
-
}
|
|
249
|
-
type BySubAccountAndWalletId = ByWalletUuid & {
|
|
250
|
-
fiat_account_id: string;
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
type Response = {
|
|
254
|
-
count: number;
|
|
255
|
-
data: IssuingCardListItem[];
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
interface TransactionItem {
|
|
259
|
-
vendor_transaction_id: string;
|
|
260
|
-
created_at: string;
|
|
261
|
-
cleared_at: string;
|
|
262
|
-
merchant: {
|
|
263
|
-
name: string;
|
|
264
|
-
category_code: string;
|
|
265
|
-
city: string;
|
|
266
|
-
country: string;
|
|
267
|
-
};
|
|
268
|
-
last4: string;
|
|
269
|
-
title: string;
|
|
270
|
-
billing_amount: number;
|
|
271
|
-
billing_currency: string;
|
|
272
|
-
transaction_amount: number;
|
|
273
|
-
transaction_currency: string;
|
|
274
|
-
vendor_sub_account_id: string;
|
|
275
|
-
failure_reason: string;
|
|
276
|
-
status: string;
|
|
277
|
-
transaction_type: CardTransactionType | string;
|
|
278
|
-
is_credit: boolean;
|
|
279
|
-
has_receipt: boolean;
|
|
280
|
-
adjustment_type: string;
|
|
281
|
-
review_status: string;
|
|
282
|
-
group: string;
|
|
283
|
-
total_amount: number;
|
|
284
|
-
}
|
|
285
|
-
interface TransactionsList {
|
|
286
|
-
data: TransactionItem[];
|
|
287
|
-
has_more: boolean;
|
|
288
|
-
}
|
|
289
|
-
interface SensitiveData {
|
|
290
|
-
card_number: string;
|
|
291
|
-
cvv: string;
|
|
292
|
-
expiry_month: number;
|
|
293
|
-
expiry_year: number;
|
|
294
|
-
security_code?: string;
|
|
295
|
-
}
|
|
296
|
-
interface OTP {
|
|
297
|
-
created_at: number;
|
|
298
|
-
internal_card_id: string;
|
|
299
|
-
otp: string;
|
|
300
|
-
valid_to: number;
|
|
301
|
-
}
|
|
302
|
-
type AuthorizationControls = {
|
|
303
|
-
allowed_merchant_categories: string[];
|
|
304
|
-
allowed_transaction_count: string;
|
|
305
|
-
};
|
|
306
|
-
type TransactionLimit = {
|
|
307
|
-
amount: number;
|
|
308
|
-
interval: string;
|
|
309
|
-
};
|
|
310
|
-
namespace Create {
|
|
311
|
-
interface CommonRequest {
|
|
312
|
-
program_id: string;
|
|
313
|
-
request_id: string;
|
|
314
|
-
nick_name: string;
|
|
315
|
-
wallet_id: string;
|
|
316
|
-
initial_topup?: number;
|
|
317
|
-
currency_id?: string;
|
|
318
|
-
}
|
|
319
|
-
type StandAloneRequest = CommonRequest;
|
|
320
|
-
interface SubAccountRequest extends CommonRequest {
|
|
321
|
-
sub_account_id: string;
|
|
322
|
-
}
|
|
323
|
-
type StandAloneResponse = IssuingCardDetailItem;
|
|
324
|
-
type SubAccountResponse = IssuingCardDetailItem;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
namespace Chains {
|
|
328
|
-
interface Chain {
|
|
329
|
-
id: number;
|
|
330
|
-
name: string;
|
|
331
|
-
symbol: string;
|
|
332
|
-
is_beta: boolean | null;
|
|
333
|
-
}
|
|
334
|
-
type ChainList = {
|
|
335
|
-
count: number;
|
|
336
|
-
data: Chain[];
|
|
337
|
-
};
|
|
338
|
-
}
|
|
339
|
-
namespace Common {
|
|
340
|
-
namespace Pagination {
|
|
341
|
-
interface Request {
|
|
342
|
-
limit: number;
|
|
343
|
-
offset: number;
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
namespace Sorting {
|
|
347
|
-
interface Request<T> {
|
|
348
|
-
sort_by?: keyof Partial<T>;
|
|
349
|
-
sort_order?: SortingDirection;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
namespace Filtering {
|
|
353
|
-
interface Request<T> {
|
|
354
|
-
filter?: Partial<Record<keyof T, any>>;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
namespace Encrypted {
|
|
358
|
-
interface Request {
|
|
359
|
-
encrypted_key: string;
|
|
360
|
-
}
|
|
361
|
-
interface Response {
|
|
362
|
-
data: string;
|
|
363
|
-
success: boolean;
|
|
364
|
-
encrypted: boolean;
|
|
365
|
-
iv: string;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
namespace Counterparties {
|
|
370
|
-
interface Counterparty {
|
|
371
|
-
id: string;
|
|
372
|
-
email?: string | null;
|
|
373
|
-
phone?: string | null;
|
|
374
|
-
name: string;
|
|
375
|
-
nickname?: string | null;
|
|
376
|
-
type: CounterpartyType | string;
|
|
377
|
-
created_at: string;
|
|
378
|
-
}
|
|
379
|
-
namespace Destination {
|
|
380
|
-
namespace List {
|
|
381
|
-
interface DestinationListItemCommonFields {
|
|
382
|
-
id: string;
|
|
383
|
-
nickname: string;
|
|
384
|
-
type: CounterpartyDestinationType | string;
|
|
385
|
-
created_at: string;
|
|
386
|
-
}
|
|
387
|
-
interface DestinationListItemExternalBankingData {
|
|
388
|
-
account_number: string;
|
|
389
|
-
routing_number: string;
|
|
390
|
-
bank_name: string;
|
|
391
|
-
note: string;
|
|
392
|
-
swift_bic: string;
|
|
393
|
-
address: {
|
|
394
|
-
city: string;
|
|
395
|
-
country_id: number;
|
|
396
|
-
postcode: string;
|
|
397
|
-
street1: string;
|
|
398
|
-
street2?: string;
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
interface DestinationListItemExternalCryptoData {
|
|
402
|
-
address: string;
|
|
403
|
-
currency_id: string;
|
|
404
|
-
memo?: string;
|
|
405
|
-
}
|
|
406
|
-
interface DestinationListItemWithExternalBankingData extends DestinationListItemCommonFields {
|
|
407
|
-
type: CounterpartyDestinationType.DOMESTIC_WIRE | CounterpartyDestinationType.ACH | CounterpartyDestinationType.SWIFT | CounterpartyDestinationType.SEPA;
|
|
408
|
-
external_banking_data: DestinationListItemExternalBankingData;
|
|
409
|
-
external_crypto_data?: never;
|
|
410
|
-
}
|
|
411
|
-
interface DestinationListItemWithExternalCryptoData extends DestinationListItemCommonFields {
|
|
412
|
-
type: CounterpartyDestinationType.CRYPTO_EXTERNAL | CounterpartyDestinationType.CRYPTO_INTERNAL;
|
|
413
|
-
external_banking_data?: never;
|
|
414
|
-
external_crypto_data: DestinationListItemExternalCryptoData;
|
|
415
|
-
}
|
|
416
|
-
type CounterpartyDestinationListItem = DestinationListItemWithExternalBankingData | DestinationListItemWithExternalCryptoData;
|
|
417
|
-
interface Request {
|
|
418
|
-
wallet_id: string;
|
|
419
|
-
counterparty_account_id: string;
|
|
420
|
-
limit?: number;
|
|
421
|
-
offset?: number;
|
|
422
|
-
search?: string;
|
|
423
|
-
type?: CounterpartyDestinationType | string;
|
|
424
|
-
sort_by?: 'created_at' | 'nickname' | 'type';
|
|
425
|
-
sort_order?: SortingDirection;
|
|
426
|
-
filter?: {
|
|
427
|
-
type?: CounterpartyDestinationType;
|
|
428
|
-
nickname?: string;
|
|
429
|
-
created_at?: string;
|
|
430
|
-
};
|
|
431
|
-
}
|
|
432
|
-
type Response = {
|
|
433
|
-
total: number;
|
|
434
|
-
data: CounterpartyDestinationListItem[];
|
|
435
|
-
};
|
|
436
|
-
}
|
|
437
|
-
namespace Detail {
|
|
438
|
-
type DestinationDetailItemCommonFields = API.Counterparties.Destination.List.DestinationListItemCommonFields;
|
|
439
|
-
interface DestinationDetailItemExternalBankingData extends API.Counterparties.Destination.List.DestinationListItemExternalBankingData {
|
|
440
|
-
address: API.Counterparties.Destination.List.DestinationListItemExternalBankingData['address'] & {
|
|
441
|
-
country?: API.Location.Countries.Country;
|
|
442
|
-
};
|
|
443
|
-
}
|
|
444
|
-
interface DestinationDetailItemExternalCryptoData extends API.Counterparties.Destination.List.DestinationListItemExternalCryptoData {
|
|
445
|
-
currency: API.Currencies.Currency;
|
|
446
|
-
}
|
|
447
|
-
interface DestinationDetailItemWithExternalBankingData extends DestinationDetailItemCommonFields {
|
|
448
|
-
type: CounterpartyDestinationType.DOMESTIC_WIRE | CounterpartyDestinationType.ACH | CounterpartyDestinationType.SWIFT | CounterpartyDestinationType.SEPA;
|
|
449
|
-
external_banking_data: DestinationDetailItemExternalBankingData;
|
|
450
|
-
external_crypto_data?: never;
|
|
451
|
-
}
|
|
452
|
-
interface DestinationDetailItemWithExternalCryptoData extends DestinationDetailItemCommonFields {
|
|
453
|
-
type: CounterpartyDestinationType.CRYPTO_EXTERNAL | CounterpartyDestinationType.CRYPTO_INTERNAL;
|
|
454
|
-
external_banking_data?: never;
|
|
455
|
-
external_crypto_data: DestinationDetailItemExternalCryptoData;
|
|
456
|
-
}
|
|
457
|
-
type DestinationDetailItem = DestinationDetailItemWithExternalBankingData | DestinationDetailItemWithExternalCryptoData;
|
|
458
|
-
interface Request {
|
|
459
|
-
wallet_id: string;
|
|
460
|
-
counterparty_account_id: string;
|
|
461
|
-
counterparty_destination_id: string;
|
|
462
|
-
}
|
|
463
|
-
type Response = DestinationDetailItem;
|
|
464
|
-
}
|
|
465
|
-
namespace Create {
|
|
466
|
-
interface Request {
|
|
467
|
-
wallet_id: string;
|
|
468
|
-
counterparty_account_id: string;
|
|
469
|
-
type: CounterpartyDestinationType;
|
|
470
|
-
nickname: string;
|
|
471
|
-
external_banking_data?: API.Counterparties.Destination.Detail.DestinationDetailItemExternalBankingData;
|
|
472
|
-
external_crypto_data?: Pick<API.Counterparties.Destination.Detail.DestinationDetailItemExternalCryptoData, 'currency_id' | 'address' | 'memo'>;
|
|
473
|
-
}
|
|
474
|
-
type Response = API.Counterparties.Destination.Detail.DestinationDetailItem;
|
|
475
|
-
}
|
|
476
|
-
namespace Delete {
|
|
477
|
-
interface Request {
|
|
478
|
-
wallet_id: string;
|
|
479
|
-
counterparty_account_id: string;
|
|
480
|
-
counterparty_destination_id: string;
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
namespace Update {
|
|
484
|
-
interface Request {
|
|
485
|
-
wallet_id: string;
|
|
486
|
-
counterparty_account_id: string;
|
|
487
|
-
counterparty_destination_id: string;
|
|
488
|
-
nickname: string;
|
|
489
|
-
}
|
|
490
|
-
type Response = API.Counterparties.Destination.Detail.DestinationDetailItemCommonFields;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
namespace GetById {
|
|
494
|
-
interface Request {
|
|
495
|
-
wallet_id: string;
|
|
496
|
-
counterparty_account_id: string;
|
|
497
|
-
}
|
|
498
|
-
type Response = Counterparty;
|
|
499
|
-
}
|
|
500
|
-
namespace List {
|
|
501
|
-
interface Request {
|
|
502
|
-
wallet_id: string;
|
|
503
|
-
offset?: number;
|
|
504
|
-
limit?: number;
|
|
505
|
-
sort_by?: 'created_at' | 'nickname' | 'type' | 'email' | 'phone';
|
|
506
|
-
sort_order?: SortingDirection;
|
|
507
|
-
filter?: {
|
|
508
|
-
type?: CounterpartyDestinationType;
|
|
509
|
-
nickname?: string;
|
|
510
|
-
created_at?: string;
|
|
511
|
-
search?: string;
|
|
512
|
-
};
|
|
513
|
-
}
|
|
514
|
-
type Response = {
|
|
515
|
-
total: number;
|
|
516
|
-
data: Counterparty[];
|
|
517
|
-
};
|
|
518
|
-
}
|
|
519
|
-
namespace Create {
|
|
520
|
-
type Request = Omit<Counterparty, 'id' | 'created_at'> & {
|
|
521
|
-
wallet_id: string;
|
|
522
|
-
};
|
|
523
|
-
type Response = Counterparty;
|
|
524
|
-
}
|
|
525
|
-
namespace Update {
|
|
526
|
-
type Request = Partial<Omit<Counterparty, 'id' | 'created_at'>> & {
|
|
527
|
-
wallet_id: string;
|
|
528
|
-
counterparty_account_id: string;
|
|
529
|
-
};
|
|
530
|
-
type Response = Counterparty;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
namespace Currencies {
|
|
534
|
-
interface CommonCurrencyFields {
|
|
535
|
-
uuid: string;
|
|
536
|
-
decimal: number | null;
|
|
537
|
-
is_memo: boolean | null;
|
|
538
|
-
is_stablecoin: boolean;
|
|
539
|
-
is_enabled: boolean;
|
|
540
|
-
render_decimal: number;
|
|
541
|
-
meta: {
|
|
542
|
-
icon: string;
|
|
543
|
-
name: string;
|
|
544
|
-
symbol: string;
|
|
545
|
-
description: string;
|
|
546
|
-
};
|
|
547
|
-
type: CurrencyType;
|
|
548
|
-
}
|
|
549
|
-
export interface CryptoCurrency extends CommonCurrencyFields {
|
|
550
|
-
is_crypto: true;
|
|
551
|
-
meta: CommonCurrencyFields['meta'] & {
|
|
552
|
-
chain_id: number;
|
|
553
|
-
contract: string;
|
|
554
|
-
chain_name: string;
|
|
555
|
-
};
|
|
556
|
-
}
|
|
557
|
-
export interface FiatCurrency extends CommonCurrencyFields {
|
|
558
|
-
is_crypto: false;
|
|
559
|
-
meta: CommonCurrencyFields['meta'] & {
|
|
560
|
-
code: string;
|
|
561
|
-
iso_code: number;
|
|
562
|
-
sign: string;
|
|
563
|
-
};
|
|
564
|
-
}
|
|
565
|
-
export type Currency = CryptoCurrency | FiatCurrency;
|
|
566
|
-
export type CurrencyList = {
|
|
567
|
-
count: number;
|
|
568
|
-
data: Currency[];
|
|
569
|
-
};
|
|
570
|
-
export {};
|
|
571
|
-
}
|
|
572
|
-
namespace Developer {
|
|
573
|
-
namespace ApiCode {
|
|
574
|
-
interface ApiCode {
|
|
575
|
-
role: APIKeyRole | string;
|
|
576
|
-
name: string;
|
|
577
|
-
id: string;
|
|
578
|
-
created_at: string;
|
|
579
|
-
updated_at: string;
|
|
580
|
-
}
|
|
581
|
-
namespace Create {
|
|
582
|
-
interface Request {
|
|
583
|
-
name: string;
|
|
584
|
-
role: APIKeyRole;
|
|
585
|
-
}
|
|
586
|
-
interface Response extends ApiCode {
|
|
587
|
-
apiKey: string;
|
|
588
|
-
key_hash: string;
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
namespace Update {
|
|
592
|
-
interface Request {
|
|
593
|
-
uuid: string;
|
|
594
|
-
role: APIKeyRole;
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
namespace Rotate {
|
|
598
|
-
interface Request {
|
|
599
|
-
uuid: string;
|
|
600
|
-
}
|
|
601
|
-
interface Response {
|
|
602
|
-
apiKey: string;
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
namespace Vendors {
|
|
607
|
-
interface Vendor {
|
|
608
|
-
id: string;
|
|
609
|
-
name: string;
|
|
610
|
-
type: string;
|
|
611
|
-
currency: string;
|
|
612
|
-
currency_id: string;
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
namespace Exchange {
|
|
617
|
-
interface Exchange {
|
|
618
|
-
updated_at: string;
|
|
619
|
-
from: string;
|
|
620
|
-
to: string;
|
|
621
|
-
rate: number;
|
|
622
|
-
inverted_rate: number;
|
|
623
|
-
rate_source: string;
|
|
624
|
-
from_uuid: string;
|
|
625
|
-
to_uuid: string;
|
|
626
|
-
min_amount: string;
|
|
627
|
-
offramp_enabled: boolean;
|
|
628
|
-
onramp_enabled: boolean;
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
namespace SubAccountsV2 {
|
|
632
|
-
type SubAccountDetails = {
|
|
633
|
-
iban: string;
|
|
634
|
-
bank_name: string;
|
|
635
|
-
swift_code: string;
|
|
636
|
-
bank_address: string;
|
|
637
|
-
receiver_name: string;
|
|
638
|
-
payment_details: string;
|
|
639
|
-
reference_number: string;
|
|
640
|
-
registration_number: string;
|
|
641
|
-
};
|
|
642
|
-
interface SubAccount {
|
|
643
|
-
balance: number;
|
|
644
|
-
cards_count: number;
|
|
645
|
-
created_at: string;
|
|
646
|
-
currency: API.Currencies.FiatCurrency;
|
|
647
|
-
fiat_balance: number;
|
|
648
|
-
id: string;
|
|
649
|
-
issuing_program: API.Cards.Config.Program;
|
|
650
|
-
nick_name: string;
|
|
651
|
-
program_id: string;
|
|
652
|
-
realtimeauth_balance: number;
|
|
653
|
-
status: string;
|
|
654
|
-
total_balance: number;
|
|
655
|
-
wallet_id: string;
|
|
656
|
-
}
|
|
657
|
-
namespace ExtendedSubAccount {
|
|
658
|
-
interface ExtendedSubAccount extends SubAccount {
|
|
659
|
-
account_details?: SubAccountDetails;
|
|
660
|
-
payment_types: Array<{
|
|
661
|
-
order_type: OrderType;
|
|
662
|
-
}>;
|
|
663
|
-
realtime_auth: [
|
|
664
|
-
{
|
|
665
|
-
crypto_token: string;
|
|
666
|
-
fiat_account: string;
|
|
667
|
-
id: string;
|
|
668
|
-
priority: number;
|
|
669
|
-
}
|
|
670
|
-
];
|
|
671
|
-
}
|
|
672
|
-
interface Request {
|
|
673
|
-
wallet_uuid: string;
|
|
674
|
-
fiat_account_id: string;
|
|
675
|
-
}
|
|
676
|
-
type Response = ExtendedSubAccount;
|
|
677
|
-
}
|
|
678
|
-
interface SubAccountWithCards extends SubAccount {
|
|
679
|
-
cards: API.Cards.IssuingCardListItem[];
|
|
680
|
-
}
|
|
681
|
-
interface SubAccountsList<T extends SubAccount | SubAccountWithCards> {
|
|
682
|
-
count: number;
|
|
683
|
-
data: T[];
|
|
684
|
-
}
|
|
685
|
-
type SubAccountsListWithCards = SubAccountsList<SubAccountWithCards>;
|
|
686
|
-
type SubAccountsListWithoutCards = SubAccountsList<SubAccount>;
|
|
687
|
-
namespace CreateSubAccount {
|
|
688
|
-
interface Request {
|
|
689
|
-
wallet_id: string;
|
|
690
|
-
program_id: string;
|
|
691
|
-
}
|
|
692
|
-
type Response = {
|
|
693
|
-
id: string;
|
|
694
|
-
balance: number;
|
|
695
|
-
nick_name: string;
|
|
696
|
-
wallet_id: string;
|
|
697
|
-
created_at: string;
|
|
698
|
-
account_currency: string;
|
|
699
|
-
type: SubAccountType | string;
|
|
700
|
-
program_id: string;
|
|
701
|
-
status: 'ACTIVE';
|
|
702
|
-
fiat: {
|
|
703
|
-
code: string;
|
|
704
|
-
uuid: string;
|
|
705
|
-
symbol: string;
|
|
706
|
-
enabled: boolean;
|
|
707
|
-
coingecko: string;
|
|
708
|
-
};
|
|
709
|
-
issuing_program: {
|
|
710
|
-
id: string;
|
|
711
|
-
form_factor: CardFormFactor | string;
|
|
712
|
-
brand: string;
|
|
713
|
-
tokenizable: boolean;
|
|
714
|
-
type: CardType | string;
|
|
715
|
-
};
|
|
716
|
-
};
|
|
717
|
-
}
|
|
718
|
-
namespace Transactions {
|
|
719
|
-
type Transaction = {
|
|
720
|
-
vendor_transaction_id: string;
|
|
721
|
-
created_at: string;
|
|
722
|
-
cleared_at: string;
|
|
723
|
-
merchant: {
|
|
724
|
-
name: string;
|
|
725
|
-
category_code: string;
|
|
726
|
-
city: string;
|
|
727
|
-
country: string;
|
|
728
|
-
};
|
|
729
|
-
last4: string;
|
|
730
|
-
title: string;
|
|
731
|
-
billing_amount: number;
|
|
732
|
-
billing_currency: string;
|
|
733
|
-
transaction_amount: number;
|
|
734
|
-
transaction_currency: string;
|
|
735
|
-
vendor_sub_account_id: string;
|
|
736
|
-
failure_reason: string;
|
|
737
|
-
status: string;
|
|
738
|
-
transaction_type: string;
|
|
739
|
-
is_credit: boolean;
|
|
740
|
-
has_receipt: boolean;
|
|
741
|
-
adjustment_type: string;
|
|
742
|
-
review_status: string;
|
|
743
|
-
group: string;
|
|
744
|
-
total_amount: number;
|
|
745
|
-
};
|
|
746
|
-
namespace TransactionList {
|
|
747
|
-
interface Request {
|
|
748
|
-
fiat_account_id: string;
|
|
749
|
-
wallet_uuid: string;
|
|
750
|
-
limit?: number;
|
|
751
|
-
offset?: number;
|
|
752
|
-
}
|
|
753
|
-
interface Response {
|
|
754
|
-
count: number;
|
|
755
|
-
data: Transaction[];
|
|
756
|
-
has_more: boolean;
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
namespace Issuing {
|
|
762
|
-
namespace Programs {
|
|
763
|
-
type Response = {
|
|
764
|
-
count: number;
|
|
765
|
-
data: API.Cards.Config.Program[];
|
|
766
|
-
};
|
|
767
|
-
}
|
|
768
|
-
namespace SubAccounts {
|
|
769
|
-
type Transaction = API.Cards.TransactionItem;
|
|
770
|
-
type SubAccountDetails = {
|
|
771
|
-
iban: string;
|
|
772
|
-
bank_name: string;
|
|
773
|
-
swift_code: string;
|
|
774
|
-
bank_address: string;
|
|
775
|
-
receiver_name: string;
|
|
776
|
-
payment_details: string;
|
|
777
|
-
reference_number: string;
|
|
778
|
-
registration_number: string;
|
|
779
|
-
};
|
|
780
|
-
type SubAccountCryptoDetails = {
|
|
781
|
-
currency_id: string;
|
|
782
|
-
deposit_address: string;
|
|
783
|
-
chain_id: number;
|
|
784
|
-
memo?: string;
|
|
785
|
-
};
|
|
786
|
-
type TransactionList = {
|
|
787
|
-
count: number;
|
|
788
|
-
data: Transaction[];
|
|
789
|
-
has_more: boolean;
|
|
790
|
-
};
|
|
791
|
-
interface SubAccount {
|
|
792
|
-
balance: number;
|
|
793
|
-
cards_count: number;
|
|
794
|
-
created_at: string;
|
|
795
|
-
currency: API.Currencies.FiatCurrency;
|
|
796
|
-
fiat_balance: number;
|
|
797
|
-
type: SubAccountType | string;
|
|
798
|
-
id: string;
|
|
799
|
-
issuing_program: API.Cards.Config.Program;
|
|
800
|
-
nick_name: string;
|
|
801
|
-
program_id: string;
|
|
802
|
-
realtime_auth: [
|
|
803
|
-
{
|
|
804
|
-
crypto_token: string;
|
|
805
|
-
fiat_account: string;
|
|
806
|
-
id: string;
|
|
807
|
-
priority: number;
|
|
808
|
-
}
|
|
809
|
-
];
|
|
810
|
-
realtimeauth_balance: number;
|
|
811
|
-
status: string;
|
|
812
|
-
total_balance: number;
|
|
813
|
-
wallet_id: string;
|
|
814
|
-
account_details?: SubAccountDetails;
|
|
815
|
-
crypto_details?: SubAccountCryptoDetails[];
|
|
816
|
-
}
|
|
817
|
-
namespace WithCards {
|
|
818
|
-
interface SubAccountWithCards extends SubAccount {
|
|
819
|
-
cards: API.Cards.IssuingCardListItem[];
|
|
820
|
-
}
|
|
821
|
-
interface Response {
|
|
822
|
-
count: number;
|
|
823
|
-
data: SubAccountWithCards[];
|
|
824
|
-
has_more: boolean;
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
namespace WithoutCards {
|
|
828
|
-
interface Response {
|
|
829
|
-
count: number;
|
|
830
|
-
data: SubAccount[];
|
|
831
|
-
has_more: boolean;
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
namespace KYC {
|
|
837
|
-
namespace Sumsub {
|
|
838
|
-
namespace GenerateToken {
|
|
839
|
-
interface Request {
|
|
840
|
-
user_data_id: number;
|
|
841
|
-
}
|
|
842
|
-
interface Response extends Request {
|
|
843
|
-
token: string;
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
namespace Forms {
|
|
848
|
-
namespace FormField {
|
|
849
|
-
type FormFieldType = 'text' | 'email' | 'password' | 'radio' | 'select' | 'checkbox' | 'textarea' | 'number' | 'date' | 'switch' | 'file';
|
|
850
|
-
interface FormFieldValidation {
|
|
851
|
-
pattern?: string;
|
|
852
|
-
min?: number;
|
|
853
|
-
max?: number;
|
|
854
|
-
min_length?: number;
|
|
855
|
-
max_length?: number;
|
|
856
|
-
message?: string;
|
|
857
|
-
}
|
|
858
|
-
interface FormFieldOption {
|
|
859
|
-
label: string;
|
|
860
|
-
value: string;
|
|
861
|
-
}
|
|
862
|
-
interface FormField {
|
|
863
|
-
name: string;
|
|
864
|
-
type: FormFieldType;
|
|
865
|
-
label: string;
|
|
866
|
-
placeholder?: string;
|
|
867
|
-
required?: boolean;
|
|
868
|
-
order?: number;
|
|
869
|
-
options?: FormFieldOption[];
|
|
870
|
-
rows?: number;
|
|
871
|
-
value?: string;
|
|
872
|
-
accept?: string;
|
|
873
|
-
validation?: FormFieldValidation;
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
namespace FormGroup {
|
|
877
|
-
type FormGroupFieldType = 'group' | 'field';
|
|
878
|
-
interface FormGroupFieldGroup {
|
|
879
|
-
type: 'group';
|
|
880
|
-
fields: API.KYC.Forms.FormGroup.FormGroup[];
|
|
881
|
-
}
|
|
882
|
-
interface FormGroupFieldField {
|
|
883
|
-
type: 'field';
|
|
884
|
-
field: API.KYC.Forms.FormField.FormField;
|
|
885
|
-
}
|
|
886
|
-
interface FormGroup {
|
|
887
|
-
name?: string;
|
|
888
|
-
isArray?: boolean;
|
|
889
|
-
label: string;
|
|
890
|
-
fields: Array<FormGroupFieldGroup | FormGroupFieldField>;
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
namespace Rails {
|
|
895
|
-
type RailStatus = 'APPROVED' | 'DECLINED' | 'PENDING' | 'HOLD' | 'DOUBLE' | 'SOFT_REJECT' | 'REJECT' | 'UNVERIFIED';
|
|
896
|
-
interface WalletRail {
|
|
897
|
-
id: string;
|
|
898
|
-
status: API.KYC.Rails.RailStatus;
|
|
899
|
-
}
|
|
900
|
-
namespace RailInfo {
|
|
901
|
-
interface RailInfo {
|
|
902
|
-
id: string;
|
|
903
|
-
code: string;
|
|
904
|
-
name: string;
|
|
905
|
-
wallet_rail: WalletRail;
|
|
906
|
-
}
|
|
907
|
-
namespace SingleRail {
|
|
908
|
-
interface Request {
|
|
909
|
-
wallet_id: string;
|
|
910
|
-
rail_id: string;
|
|
911
|
-
}
|
|
912
|
-
type Response = RailInfo;
|
|
913
|
-
}
|
|
914
|
-
namespace List {
|
|
915
|
-
interface Request {
|
|
916
|
-
wallet_id: string;
|
|
917
|
-
}
|
|
918
|
-
type Response = {
|
|
919
|
-
total: number;
|
|
920
|
-
data: RailInfo[];
|
|
921
|
-
};
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
namespace Submit {
|
|
925
|
-
namespace Single {
|
|
926
|
-
interface Request {
|
|
927
|
-
wallet_id: string;
|
|
928
|
-
rail_id: string;
|
|
929
|
-
}
|
|
930
|
-
type Response = API.KYC.Rails.RailInfo.RailInfo;
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
namespace Location {
|
|
936
|
-
namespace Countries {
|
|
937
|
-
interface Country {
|
|
938
|
-
id: number;
|
|
939
|
-
capital: string;
|
|
940
|
-
currency: string;
|
|
941
|
-
currency_name: string;
|
|
942
|
-
currency_symbol: string;
|
|
943
|
-
emoji: string;
|
|
944
|
-
emojiU: string;
|
|
945
|
-
flag: number;
|
|
946
|
-
iso2: string;
|
|
947
|
-
iso3: string;
|
|
948
|
-
latitude: number;
|
|
949
|
-
longitude: number;
|
|
950
|
-
name: string;
|
|
951
|
-
nationality: string;
|
|
952
|
-
native: string;
|
|
953
|
-
numeric_code: string;
|
|
954
|
-
phonecode: string;
|
|
955
|
-
region: string;
|
|
956
|
-
region_id: number;
|
|
957
|
-
subregion: string;
|
|
958
|
-
subregion_id: number;
|
|
959
|
-
timezones: object[];
|
|
960
|
-
tld: string;
|
|
961
|
-
translations: object[];
|
|
962
|
-
wikiDataId: string;
|
|
963
|
-
}
|
|
964
|
-
namespace List {
|
|
965
|
-
type Response = {
|
|
966
|
-
total: number;
|
|
967
|
-
data: Country[];
|
|
968
|
-
};
|
|
969
|
-
}
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
namespace Orders {
|
|
973
|
-
namespace Create {
|
|
974
|
-
namespace ByOrderType {
|
|
975
|
-
namespace INTERNAL_TRANSFER {
|
|
976
|
-
interface Request {
|
|
977
|
-
amount: number;
|
|
978
|
-
wallet_uuid: string;
|
|
979
|
-
from_uuid: string;
|
|
980
|
-
to_uuid: string;
|
|
981
|
-
}
|
|
982
|
-
interface Response {
|
|
983
|
-
created_at: string;
|
|
984
|
-
order_uuid: string;
|
|
985
|
-
wallet_uuid: string;
|
|
986
|
-
from_uuid: string;
|
|
987
|
-
to_uuid: string;
|
|
988
|
-
amount_from: number;
|
|
989
|
-
order_type: 'EXCHANGE_CRYPTO_INTERNAL';
|
|
990
|
-
status: OrderStatuses;
|
|
991
|
-
amount_to: number;
|
|
992
|
-
info: string;
|
|
993
|
-
meta: {
|
|
994
|
-
fee: number;
|
|
995
|
-
order_uuid: string;
|
|
996
|
-
to_address: string;
|
|
997
|
-
fee_currency: string;
|
|
998
|
-
billing_amount: number;
|
|
999
|
-
transaction_amount: number;
|
|
1000
|
-
billing_amount_currency: string;
|
|
1001
|
-
transaction_amount_currency: string;
|
|
1002
|
-
network_fee: number;
|
|
1003
|
-
};
|
|
1004
|
-
id: string;
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
|
-
namespace TRANSFER_CARD_PREPAID {
|
|
1008
|
-
interface Request {
|
|
1009
|
-
amount: number;
|
|
1010
|
-
wallet_uuid: string;
|
|
1011
|
-
card_id: string;
|
|
1012
|
-
}
|
|
1013
|
-
interface Response {
|
|
1014
|
-
created_at: string;
|
|
1015
|
-
order_uuid: string;
|
|
1016
|
-
wallet_uuid: string;
|
|
1017
|
-
from_uuid: string;
|
|
1018
|
-
to_uuid: string;
|
|
1019
|
-
amount_from: number;
|
|
1020
|
-
order_type: 'TRANSFER_CARD_PREPAID';
|
|
1021
|
-
status: OrderStatuses;
|
|
1022
|
-
amount_to: number;
|
|
1023
|
-
info: string;
|
|
1024
|
-
meta: {
|
|
1025
|
-
fee: number;
|
|
1026
|
-
order_uuid: string;
|
|
1027
|
-
fee_currency: string;
|
|
1028
|
-
exchange_rate: number;
|
|
1029
|
-
billing_amount: number;
|
|
1030
|
-
vendor_id: string;
|
|
1031
|
-
transaction_amount: number;
|
|
1032
|
-
billing_currency: string;
|
|
1033
|
-
transaction_currency: string;
|
|
1034
|
-
network_fee: number;
|
|
1035
|
-
};
|
|
1036
|
-
id: string;
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
namespace HIFI_WIRE_ONRAMP {
|
|
1040
|
-
interface Request {
|
|
1041
|
-
idempotency_key: string;
|
|
1042
|
-
counterparty_account_id: string;
|
|
1043
|
-
amount: number;
|
|
1044
|
-
wallet_uuid: string;
|
|
1045
|
-
currency_id: string;
|
|
1046
|
-
}
|
|
1047
|
-
interface Response {
|
|
1048
|
-
order_uuid: string;
|
|
1049
|
-
wallet_uuid: string;
|
|
1050
|
-
from_uuid: string;
|
|
1051
|
-
to_uuid: string;
|
|
1052
|
-
amount_from: number;
|
|
1053
|
-
amount_to: number;
|
|
1054
|
-
order_type: 'HIFI_WIRE_ONRAMP';
|
|
1055
|
-
status: OrderStatuses;
|
|
1056
|
-
created_at: string;
|
|
1057
|
-
info: string;
|
|
1058
|
-
meta: {
|
|
1059
|
-
idempotency_key: string;
|
|
1060
|
-
counterparty_account_id: string;
|
|
1061
|
-
fee: number;
|
|
1062
|
-
fee_currency: string;
|
|
1063
|
-
billing_amount: number;
|
|
1064
|
-
billing_currency: string;
|
|
1065
|
-
transaction_amount: number;
|
|
1066
|
-
transaction_currency: string;
|
|
1067
|
-
order_uuid: string;
|
|
1068
|
-
};
|
|
1069
|
-
id: string;
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
namespace HIFI_ACH_ONRAMP {
|
|
1073
|
-
interface Request {
|
|
1074
|
-
idempotency_key: string;
|
|
1075
|
-
counterparty_account_id: string;
|
|
1076
|
-
amount: number;
|
|
1077
|
-
wallet_uuid: string;
|
|
1078
|
-
currency_id: string;
|
|
1079
|
-
}
|
|
1080
|
-
interface Response {
|
|
1081
|
-
order_uuid: string;
|
|
1082
|
-
wallet_uuid: string;
|
|
1083
|
-
from_uuid: string;
|
|
1084
|
-
to_uuid: string;
|
|
1085
|
-
amount_from: number;
|
|
1086
|
-
amount_to: number;
|
|
1087
|
-
order_type: 'HIFI_ACH_ONRAMP';
|
|
1088
|
-
status: OrderStatuses;
|
|
1089
|
-
created_at: string;
|
|
1090
|
-
info: string;
|
|
1091
|
-
meta: {
|
|
1092
|
-
idempotency_key: string;
|
|
1093
|
-
counterparty_account_id: string;
|
|
1094
|
-
fee: number;
|
|
1095
|
-
fee_currency: string;
|
|
1096
|
-
billing_amount: number;
|
|
1097
|
-
billing_currency: string;
|
|
1098
|
-
transaction_amount: number;
|
|
1099
|
-
transaction_currency: string;
|
|
1100
|
-
order_uuid: string;
|
|
1101
|
-
};
|
|
1102
|
-
id: string;
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
namespace HIFI_SEPA_ONRAMP {
|
|
1106
|
-
interface Request {
|
|
1107
|
-
idempotency_key: string;
|
|
1108
|
-
counterparty_account_id: string;
|
|
1109
|
-
amount: number;
|
|
1110
|
-
wallet_uuid: string;
|
|
1111
|
-
currency_id: string;
|
|
1112
|
-
}
|
|
1113
|
-
interface Response {
|
|
1114
|
-
order_uuid: string;
|
|
1115
|
-
wallet_uuid: string;
|
|
1116
|
-
from_uuid: string;
|
|
1117
|
-
to_uuid: string;
|
|
1118
|
-
amount_from: number;
|
|
1119
|
-
amount_to: number;
|
|
1120
|
-
order_type: 'HIFI_SEPA_ONRAMP';
|
|
1121
|
-
status: OrderStatuses;
|
|
1122
|
-
created_at: string;
|
|
1123
|
-
info: string;
|
|
1124
|
-
meta: {
|
|
1125
|
-
idempotency_key: string;
|
|
1126
|
-
counterparty_account_id: string;
|
|
1127
|
-
fee: number;
|
|
1128
|
-
fee_currency: string;
|
|
1129
|
-
billing_amount: number;
|
|
1130
|
-
billing_currency: string;
|
|
1131
|
-
transaction_amount: number;
|
|
1132
|
-
transaction_currency: string;
|
|
1133
|
-
order_uuid: string;
|
|
1134
|
-
};
|
|
1135
|
-
id: string;
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1138
|
-
namespace HIFI_WIRE_OFFRAMP {
|
|
1139
|
-
interface Request {
|
|
1140
|
-
idempotency_key: string;
|
|
1141
|
-
counterparty_account_id: string;
|
|
1142
|
-
amount: number;
|
|
1143
|
-
wallet_uuid: string;
|
|
1144
|
-
currency_id: string;
|
|
1145
|
-
}
|
|
1146
|
-
interface Response {
|
|
1147
|
-
order_uuid: string;
|
|
1148
|
-
wallet_uuid: string;
|
|
1149
|
-
from_uuid: string;
|
|
1150
|
-
to_uuid: string;
|
|
1151
|
-
amount_from: number;
|
|
1152
|
-
amount_to: number;
|
|
1153
|
-
order_type: 'HIFI_WIRE_OFFRAMP';
|
|
1154
|
-
status: OrderStatuses;
|
|
1155
|
-
created_at: string;
|
|
1156
|
-
info: string;
|
|
1157
|
-
meta: {
|
|
1158
|
-
idempotency_key: string;
|
|
1159
|
-
counterparty_account_id: string;
|
|
1160
|
-
fee: number;
|
|
1161
|
-
fee_currency: string;
|
|
1162
|
-
billing_amount: number;
|
|
1163
|
-
billing_currency: string;
|
|
1164
|
-
transaction_amount: number;
|
|
1165
|
-
transaction_currency: string;
|
|
1166
|
-
order_uuid: string;
|
|
1167
|
-
};
|
|
1168
|
-
id: string;
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
namespace HIFI_ACH_OFFRAMP {
|
|
1172
|
-
interface Request {
|
|
1173
|
-
idempotency_key: string;
|
|
1174
|
-
counterparty_account_id: string;
|
|
1175
|
-
amount: number;
|
|
1176
|
-
wallet_uuid: string;
|
|
1177
|
-
currency_id: string;
|
|
1178
|
-
}
|
|
1179
|
-
interface Response {
|
|
1180
|
-
order_uuid: string;
|
|
1181
|
-
wallet_uuid: string;
|
|
1182
|
-
from_uuid: string;
|
|
1183
|
-
to_uuid: string;
|
|
1184
|
-
amount_from: number;
|
|
1185
|
-
amount_to: number;
|
|
1186
|
-
order_type: 'HIFI_ACH_OFFRAMP';
|
|
1187
|
-
status: OrderStatuses;
|
|
1188
|
-
created_at: string;
|
|
1189
|
-
info: string;
|
|
1190
|
-
meta: {
|
|
1191
|
-
idempotency_key: string;
|
|
1192
|
-
counterparty_account_id: string;
|
|
1193
|
-
fee: number;
|
|
1194
|
-
fee_currency: string;
|
|
1195
|
-
billing_amount: number;
|
|
1196
|
-
billing_currency: string;
|
|
1197
|
-
transaction_amount: number;
|
|
1198
|
-
transaction_currency: string;
|
|
1199
|
-
order_uuid: string;
|
|
1200
|
-
};
|
|
1201
|
-
id: string;
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
namespace HIFI_SEPA_OFFRAMP {
|
|
1205
|
-
interface Request {
|
|
1206
|
-
idempotency_key: string;
|
|
1207
|
-
counterparty_account_id: string;
|
|
1208
|
-
amount: number;
|
|
1209
|
-
wallet_uuid: string;
|
|
1210
|
-
currency_id: string;
|
|
1211
|
-
}
|
|
1212
|
-
interface Response {
|
|
1213
|
-
id: number;
|
|
1214
|
-
created_at: string;
|
|
1215
|
-
order_uuid: string;
|
|
1216
|
-
wallet_uuid: string;
|
|
1217
|
-
amount: number;
|
|
1218
|
-
status: OrderStatuses;
|
|
1219
|
-
counterparty_id: string;
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
namespace OMNIBUS_CRYPTO_WITHDRAWAL {
|
|
1223
|
-
interface Request {
|
|
1224
|
-
idempotency_key: string;
|
|
1225
|
-
amount: number;
|
|
1226
|
-
wallet_uuid: string;
|
|
1227
|
-
currency_id: string;
|
|
1228
|
-
to_address: string;
|
|
1229
|
-
counterparty_id: string;
|
|
1230
|
-
memo?: string;
|
|
1231
|
-
note?: string;
|
|
1232
|
-
}
|
|
1233
|
-
interface Response {
|
|
1234
|
-
created_at: string;
|
|
1235
|
-
order_uuid: string;
|
|
1236
|
-
wallet_uuid: string;
|
|
1237
|
-
from_uuid: string;
|
|
1238
|
-
to_uuid: string;
|
|
1239
|
-
amount_from: number;
|
|
1240
|
-
order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
|
|
1241
|
-
status: OrderStatuses;
|
|
1242
|
-
amount_to: number;
|
|
1243
|
-
info: string;
|
|
1244
|
-
meta: {
|
|
1245
|
-
fee: number;
|
|
1246
|
-
order_uuid: string;
|
|
1247
|
-
to_address: string;
|
|
1248
|
-
fee_currency: string;
|
|
1249
|
-
idempotency_key: string;
|
|
1250
|
-
counterparty_account_id: string;
|
|
1251
|
-
billing_amount: number;
|
|
1252
|
-
billing_currency: string;
|
|
1253
|
-
transaction_amount: number;
|
|
1254
|
-
transaction_currency: string;
|
|
1255
|
-
network_fee: number;
|
|
1256
|
-
};
|
|
1257
|
-
id: string;
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
namespace TRANSFER_CARD_SUBACCOUNT {
|
|
1261
|
-
type Request = {
|
|
1262
|
-
amount: number;
|
|
1263
|
-
wallet_uuid: string;
|
|
1264
|
-
from_uuid: string;
|
|
1265
|
-
sub_account_id: string;
|
|
1266
|
-
};
|
|
1267
|
-
type Response = {
|
|
1268
|
-
id: number;
|
|
1269
|
-
created_at: string;
|
|
1270
|
-
order_uuid: string;
|
|
1271
|
-
wallet_uuid: string;
|
|
1272
|
-
fiat_uuid: string;
|
|
1273
|
-
crypto_uuid: string;
|
|
1274
|
-
amount_fiat: number;
|
|
1275
|
-
payment_method: string;
|
|
1276
|
-
redirect_url: string;
|
|
1277
|
-
status: string;
|
|
1278
|
-
provider_uuid: string;
|
|
1279
|
-
};
|
|
1280
|
-
}
|
|
1281
|
-
namespace WITHDRAWAL_CRYPTO {
|
|
1282
|
-
type Request = {
|
|
1283
|
-
amount: number;
|
|
1284
|
-
is_subsctract: boolean;
|
|
1285
|
-
wallet_uuid: string;
|
|
1286
|
-
crypto_uuid: string;
|
|
1287
|
-
to_address: string;
|
|
1288
|
-
memo?: string;
|
|
1289
|
-
};
|
|
1290
|
-
type Response = {
|
|
1291
|
-
id: number;
|
|
1292
|
-
created_at: string;
|
|
1293
|
-
order_uuid: string;
|
|
1294
|
-
wallet_uuid: string;
|
|
1295
|
-
crypto_uuid: string;
|
|
1296
|
-
amount: number;
|
|
1297
|
-
status: string;
|
|
1298
|
-
network: string;
|
|
1299
|
-
to_address: string;
|
|
1300
|
-
txid: string;
|
|
1301
|
-
};
|
|
1302
|
-
}
|
|
1303
|
-
namespace EXCHANGE_CRYPTO_INTERNAL {
|
|
1304
|
-
type Request = {
|
|
1305
|
-
amount: number;
|
|
1306
|
-
wallet_uuid: string;
|
|
1307
|
-
from_uuid: string;
|
|
1308
|
-
to_uuid: string;
|
|
1309
|
-
};
|
|
1310
|
-
type Response = {
|
|
1311
|
-
id: number;
|
|
1312
|
-
};
|
|
1313
|
-
}
|
|
1314
|
-
namespace TRANSFER_CARD_WHOLESALE {
|
|
1315
|
-
type Request = {
|
|
1316
|
-
amount: number;
|
|
1317
|
-
wallet_id: string;
|
|
1318
|
-
currency_id: string;
|
|
1319
|
-
vendor_id: string;
|
|
1320
|
-
};
|
|
1321
|
-
type Response = null;
|
|
1322
|
-
}
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
namespace Calc {
|
|
1326
|
-
interface CommonRequestParams {
|
|
1327
|
-
from_currency: string;
|
|
1328
|
-
to_currency: string;
|
|
1329
|
-
amount: number;
|
|
1330
|
-
is_reverse?: boolean;
|
|
1331
|
-
signal?: AbortSignal;
|
|
1332
|
-
}
|
|
1333
|
-
export interface WithdrawCryptoRequest extends CommonRequestParams {
|
|
1334
|
-
order_type: OrderType.WITHDRAWAL_CRYPTO | OrderType.INTERNAL_TRANSFER;
|
|
1335
|
-
to_address?: string;
|
|
1336
|
-
}
|
|
1337
|
-
export interface NonWithdrawCryptoRequest extends CommonRequestParams {
|
|
1338
|
-
order_type: Exclude<OrderType, OrderType.WITHDRAWAL_CRYPTO>;
|
|
1339
|
-
to_address?: never;
|
|
1340
|
-
}
|
|
1341
|
-
export type Request = NonWithdrawCryptoRequest | WithdrawCryptoRequest;
|
|
1342
|
-
export interface Response {
|
|
1343
|
-
from_currency: string;
|
|
1344
|
-
to_currency: string;
|
|
1345
|
-
from_symbol: string;
|
|
1346
|
-
to_symbol: string;
|
|
1347
|
-
from_amount: number;
|
|
1348
|
-
net_amount: number;
|
|
1349
|
-
result_amount: number;
|
|
1350
|
-
fees: number;
|
|
1351
|
-
comission: number;
|
|
1352
|
-
base_markup: number;
|
|
1353
|
-
network_fee: number;
|
|
1354
|
-
transaction_fee: number;
|
|
1355
|
-
rate: number;
|
|
1356
|
-
direction: 'c2f' | 'f2c' | 'c2c';
|
|
1357
|
-
}
|
|
1358
|
-
export {};
|
|
1359
|
-
}
|
|
1360
|
-
namespace Status {
|
|
1361
|
-
interface Response {
|
|
1362
|
-
id: number;
|
|
1363
|
-
created_at: string;
|
|
1364
|
-
order_uuid: string;
|
|
1365
|
-
wallet_uuid: string;
|
|
1366
|
-
crypto_uuid: string;
|
|
1367
|
-
status: OrderStatuses | string;
|
|
1368
|
-
amount: number;
|
|
1369
|
-
comission: number;
|
|
1370
|
-
net_amount: number;
|
|
1371
|
-
type: OrderType | string;
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
}
|
|
1375
|
-
namespace Persona {
|
|
1376
|
-
namespace Inquiries {
|
|
1377
|
-
type InquiryType = 'individual' | 'business';
|
|
1378
|
-
namespace Init {
|
|
1379
|
-
interface Request {
|
|
1380
|
-
wallet_id: string;
|
|
1381
|
-
type: InquiryType;
|
|
1382
|
-
}
|
|
1383
|
-
type Response = {
|
|
1384
|
-
referenceId: string;
|
|
1385
|
-
templateId: string;
|
|
1386
|
-
};
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
namespace VirtualAccount {
|
|
1391
|
-
namespace Programs {
|
|
1392
|
-
interface OrderType {
|
|
1393
|
-
id: string;
|
|
1394
|
-
description: string | null;
|
|
1395
|
-
}
|
|
1396
|
-
interface OrderTypeListItem {
|
|
1397
|
-
order_type: OrderType;
|
|
1398
|
-
order_type_id: string;
|
|
1399
|
-
}
|
|
1400
|
-
interface CurrencyItem {
|
|
1401
|
-
icon: string | null;
|
|
1402
|
-
name: string;
|
|
1403
|
-
type: string;
|
|
1404
|
-
uuid: string;
|
|
1405
|
-
symbol: string;
|
|
1406
|
-
}
|
|
1407
|
-
interface IntegrationVendor {
|
|
1408
|
-
id: string;
|
|
1409
|
-
code: string;
|
|
1410
|
-
name: string;
|
|
1411
|
-
}
|
|
1412
|
-
interface Program {
|
|
1413
|
-
id: string;
|
|
1414
|
-
name: string;
|
|
1415
|
-
vendor_id: string | null;
|
|
1416
|
-
tenant_id: string;
|
|
1417
|
-
status: string;
|
|
1418
|
-
account_currency_id: string;
|
|
1419
|
-
description: string;
|
|
1420
|
-
icon: string | null;
|
|
1421
|
-
code: string;
|
|
1422
|
-
kyc_rails_id: string;
|
|
1423
|
-
consent_text: string | null;
|
|
1424
|
-
integration_vendors_id: string;
|
|
1425
|
-
is_hidden: boolean;
|
|
1426
|
-
destination_currency_id: string;
|
|
1427
|
-
integration_vendor: API.VirtualAccount.Programs.IntegrationVendor;
|
|
1428
|
-
account_currency_details: API.VirtualAccount.Programs.CurrencyItem;
|
|
1429
|
-
destination_currency_details: API.VirtualAccount.Programs.CurrencyItem;
|
|
1430
|
-
virtual_accounts_programs_order_types: API.VirtualAccount.Programs.OrderTypeListItem[];
|
|
1431
|
-
}
|
|
1432
|
-
namespace List {
|
|
1433
|
-
interface Request {
|
|
1434
|
-
offset?: number;
|
|
1435
|
-
limit?: number;
|
|
1436
|
-
pagination?: boolean;
|
|
1437
|
-
}
|
|
1438
|
-
interface Response {
|
|
1439
|
-
data: Program[];
|
|
1440
|
-
count: number;
|
|
1441
|
-
has_more: boolean;
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1444
|
-
}
|
|
1445
|
-
}
|
|
1446
|
-
namespace User {
|
|
1447
|
-
interface User {
|
|
1448
|
-
id: string;
|
|
1449
|
-
aud: string;
|
|
1450
|
-
confirmation_sent_at: string;
|
|
1451
|
-
recovery_sent_at: string;
|
|
1452
|
-
email_change_sent_at: string;
|
|
1453
|
-
new_email: string;
|
|
1454
|
-
new_phone: string;
|
|
1455
|
-
invited_at: string;
|
|
1456
|
-
action_link: string;
|
|
1457
|
-
email: string;
|
|
1458
|
-
phone: string;
|
|
1459
|
-
created_at: string;
|
|
1460
|
-
confirmed_at: string;
|
|
1461
|
-
email_confirmed_at: string;
|
|
1462
|
-
phone_confirmed_at: string;
|
|
1463
|
-
last_sign_in_at: string;
|
|
1464
|
-
role: string;
|
|
1465
|
-
updated_at: string;
|
|
1466
|
-
identities: string[];
|
|
1467
|
-
is_anonymous: boolean;
|
|
1468
|
-
factors: string[];
|
|
1469
|
-
}
|
|
1470
|
-
namespace UpdateUser {
|
|
1471
|
-
namespace Phone {
|
|
1472
|
-
namespace RequestOTP {
|
|
1473
|
-
type Request = {
|
|
1474
|
-
phone: string;
|
|
1475
|
-
access_token: string;
|
|
1476
|
-
refresh_token: string;
|
|
1477
|
-
};
|
|
1478
|
-
}
|
|
1479
|
-
namespace Confirm {
|
|
1480
|
-
type Request = {
|
|
1481
|
-
phone: string;
|
|
1482
|
-
token: string;
|
|
1483
|
-
};
|
|
1484
|
-
}
|
|
1485
|
-
}
|
|
1486
|
-
namespace Email {
|
|
1487
|
-
namespace RequestOTP {
|
|
1488
|
-
type Request = {
|
|
1489
|
-
email: string;
|
|
1490
|
-
access_token: string;
|
|
1491
|
-
refresh_token: string;
|
|
1492
|
-
};
|
|
1493
|
-
}
|
|
1494
|
-
namespace Confirm {
|
|
1495
|
-
type Request = {
|
|
1496
|
-
email: string;
|
|
1497
|
-
token: string;
|
|
1498
|
-
};
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
}
|
|
1502
|
-
namespace UserData {
|
|
1503
|
-
interface UserData {
|
|
1504
|
-
can_invite: boolean;
|
|
1505
|
-
created_at: string;
|
|
1506
|
-
id: number;
|
|
1507
|
-
kyc_date: string;
|
|
1508
|
-
kyc_status: KYCStatuses | string;
|
|
1509
|
-
referral_name: string;
|
|
1510
|
-
tenant_id: string;
|
|
1511
|
-
turnover_limit: number;
|
|
1512
|
-
user_id: string;
|
|
1513
|
-
default_currency: string;
|
|
1514
|
-
is_developer: boolean;
|
|
1515
|
-
user_group_id: string | null;
|
|
1516
|
-
}
|
|
1517
|
-
namespace UpdateUserData {
|
|
1518
|
-
type Request = {
|
|
1519
|
-
default_currency: string;
|
|
1520
|
-
};
|
|
1521
|
-
type Response = API.User.UserData.UserData;
|
|
1522
|
-
}
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
namespace Wallets {
|
|
1526
|
-
interface WallletBalanceCryptoDetails {
|
|
1527
|
-
uuid: string;
|
|
1528
|
-
amount: number;
|
|
1529
|
-
fiat_amount: number;
|
|
1530
|
-
currency: API.Currencies.Currency;
|
|
1531
|
-
}
|
|
1532
|
-
interface WalletBalanceItem {
|
|
1533
|
-
symbol: string;
|
|
1534
|
-
icon: string;
|
|
1535
|
-
name: string;
|
|
1536
|
-
is_crypto: boolean;
|
|
1537
|
-
decimal?: number | null;
|
|
1538
|
-
amount: number;
|
|
1539
|
-
fiat_amount: number;
|
|
1540
|
-
details: WallletBalanceCryptoDetails[];
|
|
1541
|
-
}
|
|
1542
|
-
type WalletBalance = WalletBalanceItem[];
|
|
1543
|
-
namespace WalletChain {
|
|
1544
|
-
interface WalletChain {
|
|
1545
|
-
uuid: string;
|
|
1546
|
-
created_ad: string;
|
|
1547
|
-
address: string;
|
|
1548
|
-
wallet_uuid: string;
|
|
1549
|
-
chain: number;
|
|
1550
|
-
}
|
|
1551
|
-
namespace Create {
|
|
1552
|
-
interface Request {
|
|
1553
|
-
wallet_uuid: string;
|
|
1554
|
-
chain: number;
|
|
1555
|
-
label: string;
|
|
1556
|
-
}
|
|
1557
|
-
type Response = WalletChain;
|
|
1558
|
-
}
|
|
1559
|
-
}
|
|
1560
|
-
interface Wallet {
|
|
1561
|
-
uuid: string;
|
|
1562
|
-
type: WalletType | string;
|
|
1563
|
-
created_at: string;
|
|
1564
|
-
fiat_total: number;
|
|
1565
|
-
crypto_total: number;
|
|
1566
|
-
total_amount: number;
|
|
1567
|
-
balance: WalletBalance;
|
|
1568
|
-
}
|
|
1569
|
-
namespace WalletsList {
|
|
1570
|
-
interface WalletsListItem {
|
|
1571
|
-
type: WalletType | string;
|
|
1572
|
-
uuid: string;
|
|
1573
|
-
created_at: string;
|
|
1574
|
-
}
|
|
1575
|
-
type Response = {
|
|
1576
|
-
total: number;
|
|
1577
|
-
data: WalletsListItem[];
|
|
1578
|
-
};
|
|
1579
|
-
}
|
|
1580
|
-
namespace WalletTransactions {
|
|
1581
|
-
interface WalletTransactionMeta {
|
|
1582
|
-
transaction_hash?: string;
|
|
1583
|
-
fee?: number;
|
|
1584
|
-
order_id?: string;
|
|
1585
|
-
from_address?: string;
|
|
1586
|
-
to_address?: string;
|
|
1587
|
-
network_fee?: number;
|
|
1588
|
-
network_fee_currency?: string;
|
|
1589
|
-
fee_currency?: string;
|
|
1590
|
-
billing_amount?: number;
|
|
1591
|
-
utila_transaction?: string;
|
|
1592
|
-
transcation_amount?: number;
|
|
1593
|
-
transaction_amount?: number;
|
|
1594
|
-
billing_amount_currency?: string;
|
|
1595
|
-
transcation_amount_currency?: string;
|
|
1596
|
-
transaction_amount_currency?: string;
|
|
1597
|
-
exchange_rate?: number;
|
|
1598
|
-
fiat_account_id?: string;
|
|
1599
|
-
txid?: string;
|
|
1600
|
-
chain_id?: number;
|
|
1601
|
-
from_user_data?: number;
|
|
1602
|
-
to_user_data?: number;
|
|
1603
|
-
to_card_id?: string;
|
|
1604
|
-
to_card_last4?: string;
|
|
1605
|
-
to_fiat_account_id?: string;
|
|
1606
|
-
to_vendor_id?: string;
|
|
1607
|
-
}
|
|
1608
|
-
interface Transaction {
|
|
1609
|
-
id: number;
|
|
1610
|
-
created_at: string;
|
|
1611
|
-
type: WalletTransactionType | string;
|
|
1612
|
-
method: WalletTransactionMethod | string;
|
|
1613
|
-
status: WalletTransactionStatus | string;
|
|
1614
|
-
amount: number;
|
|
1615
|
-
from: string | null;
|
|
1616
|
-
to: string | null;
|
|
1617
|
-
wallet_id: string;
|
|
1618
|
-
txid: string;
|
|
1619
|
-
info: string;
|
|
1620
|
-
currency: API.Currencies.Currency;
|
|
1621
|
-
record_type: WalletTransactionRecordType | string;
|
|
1622
|
-
meta?: WalletTransactionMeta;
|
|
1623
|
-
}
|
|
1624
|
-
interface DetailedTransaction {
|
|
1625
|
-
id: number;
|
|
1626
|
-
amount: number;
|
|
1627
|
-
created_at: string;
|
|
1628
|
-
from: string;
|
|
1629
|
-
info: string;
|
|
1630
|
-
status: WalletTransactionStatus | string;
|
|
1631
|
-
to: string;
|
|
1632
|
-
txid: string;
|
|
1633
|
-
type: WalletTransactionType | string;
|
|
1634
|
-
wallet_id: string;
|
|
1635
|
-
method: WalletTransactionMethod | string;
|
|
1636
|
-
meta: WalletTransactionMeta;
|
|
1637
|
-
record_type: WalletTransactionRecordType | string;
|
|
1638
|
-
currency: API.Currencies.Currency;
|
|
1639
|
-
}
|
|
1640
|
-
namespace GetByUuid {
|
|
1641
|
-
type Request = {
|
|
1642
|
-
wallet_uuid: string;
|
|
1643
|
-
uuid: string;
|
|
1644
|
-
};
|
|
1645
|
-
}
|
|
1646
|
-
namespace TransactionList {
|
|
1647
|
-
type Request = {
|
|
1648
|
-
wallet_uuid: string;
|
|
1649
|
-
limit?: number;
|
|
1650
|
-
offset?: number;
|
|
1651
|
-
filter?: {
|
|
1652
|
-
created_at?: string;
|
|
1653
|
-
from?: string;
|
|
1654
|
-
status?: WalletTransactionStatus;
|
|
1655
|
-
to?: string;
|
|
1656
|
-
type?: WalletTransactionType;
|
|
1657
|
-
method?: WalletTransactionMethod;
|
|
1658
|
-
record_type?: WalletTransactionRecordType;
|
|
1659
|
-
'currency.uuid'?: string;
|
|
1660
|
-
'meta.billing_amount_currency'?: string;
|
|
1661
|
-
'meta.transaction_amount_currency'?: string;
|
|
1662
|
-
address?: string;
|
|
1663
|
-
from_created_at?: string;
|
|
1664
|
-
to_created_at?: string;
|
|
1665
|
-
};
|
|
1666
|
-
};
|
|
1667
|
-
type Response = {
|
|
1668
|
-
total: number;
|
|
1669
|
-
data: Transaction[];
|
|
1670
|
-
};
|
|
1671
|
-
}
|
|
1672
|
-
}
|
|
1673
|
-
}
|
|
1674
|
-
}
|