squarefi-bff-api-module 1.19.3 → 1.21.0
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/orders.d.ts +18 -1
- package/dist/api/orders.js +37 -3
- package/dist/api/types/types.d.ts +302 -2
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/package.json +1 -1
- package/src/api/orders.ts +90 -11
- package/src/api/types/types.ts +324 -2
- package/src/constants.ts +1 -1
package/dist/api/orders.d.ts
CHANGED
|
@@ -18,8 +18,25 @@ export declare const orders: {
|
|
|
18
18
|
HIFI_WIRE_OFFRAMP: (data: API.Orders.Create.ByOrderType.HIFI_WIRE_OFFRAMP.Request) => Promise<API.Orders.Create.ByOrderType.HIFI_WIRE_OFFRAMP.Response>;
|
|
19
19
|
HIFI_ACH_OFFRAMP: (data: API.Orders.Create.ByOrderType.HIFI_ACH_OFFRAMP.Request) => Promise<API.Orders.Create.ByOrderType.HIFI_ACH_OFFRAMP.Response>;
|
|
20
20
|
HIFI_SEPA_OFFRAMP: (data: API.Orders.Create.ByOrderType.HIFI_SEPA_OFFRAMP.Request) => Promise<API.Orders.Create.ByOrderType.HIFI_SEPA_OFFRAMP.Response>;
|
|
21
|
-
OMNIBUS_CRYPTO_WITHDRAWAL: (data: API.Orders.Create.ByOrderType.OMNIBUS_CRYPTO_WITHDRAWAL.Request) => Promise<API.Orders.Create.ByOrderType.OMNIBUS_CRYPTO_WITHDRAWAL.Response>;
|
|
22
21
|
TBD_SWIFT_WITHDRAWAL: (data: API.Orders.Create.ByOrderType.TBD_SWIFT_WITHDRAWAL.Request) => Promise<API.Orders.Create.ByOrderType.TBD_SWIFT_WITHDRAWAL.Response>;
|
|
23
22
|
};
|
|
24
23
|
};
|
|
24
|
+
v2: {
|
|
25
|
+
calc: ({ signal, ...params }: API.Orders.V2.Calc.Request) => Promise<API.Orders.V2.Calc.Response>;
|
|
26
|
+
orderTypes: {
|
|
27
|
+
list: () => Promise<API.Orders.V2.OrderTypes.List.Response>;
|
|
28
|
+
};
|
|
29
|
+
create: {
|
|
30
|
+
byOrderType: {
|
|
31
|
+
TRANSFER_INTERNAL: (data: API.Orders.V2.Create.ByOrderType.INTERNAL_TRANSFER.Request) => Promise<API.Orders.V2.Create.ByOrderType.INTERNAL_TRANSFER.Response>;
|
|
32
|
+
HIFI_WIRE_ONRAMP: (data: API.Orders.V2.Create.ByOrderType.HIFI_WIRE_ONRAMP.Request) => Promise<API.Orders.V2.Create.ByOrderType.HIFI_WIRE_ONRAMP.Response>;
|
|
33
|
+
HIFI_ACH_ONRAMP: (data: API.Orders.V2.Create.ByOrderType.HIFI_ACH_ONRAMP.Request) => Promise<API.Orders.V2.Create.ByOrderType.HIFI_ACH_ONRAMP.Response>;
|
|
34
|
+
HIFI_SEPA_ONRAMP: (data: API.Orders.V2.Create.ByOrderType.HIFI_SEPA_ONRAMP.Request) => Promise<API.Orders.V2.Create.ByOrderType.HIFI_SEPA_ONRAMP.Response>;
|
|
35
|
+
HIFI_WIRE_OFFRAMP: (data: API.Orders.V2.Create.ByOrderType.HIFI_WIRE_OFFRAMP.Request) => Promise<API.Orders.V2.Create.ByOrderType.HIFI_WIRE_OFFRAMP.Response>;
|
|
36
|
+
HIFI_ACH_OFFRAMP: (data: API.Orders.V2.Create.ByOrderType.HIFI_ACH_OFFRAMP.Request) => Promise<API.Orders.V2.Create.ByOrderType.HIFI_ACH_OFFRAMP.Response>;
|
|
37
|
+
HIFI_SEPA_OFFRAMP: (data: API.Orders.V2.Create.ByOrderType.HIFI_SEPA_OFFRAMP.Request) => Promise<API.Orders.V2.Create.ByOrderType.HIFI_SEPA_OFFRAMP.Response>;
|
|
38
|
+
OMNIBUS_CRYPTO_TRANSFER: (data: API.Orders.V2.Create.ByOrderType.OMNIBUS_CRYPTO_TRANSFER.Request) => Promise<API.Orders.V2.Create.ByOrderType.OMNIBUS_CRYPTO_TRANSFER.Response>;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
25
42
|
};
|
package/dist/api/orders.js
CHANGED
|
@@ -58,10 +58,44 @@ exports.orders = {
|
|
|
58
58
|
[constants_1.OrderType.HIFI_SEPA_OFFRAMP]: (data) => apiClientFactory_1.apiClientV1.postRequest('/orders/HIFI_SEPA_OFFRAMP', {
|
|
59
59
|
data,
|
|
60
60
|
}),
|
|
61
|
-
[constants_1.OrderType.OMNIBUS_CRYPTO_WITHDRAWAL]: (data) => apiClientFactory_1.apiClientV1.postRequest('/orders/OMNIBUS_CRYPTO_WITHDRAWAL', {
|
|
62
|
-
data,
|
|
63
|
-
}),
|
|
64
61
|
[constants_1.OrderType.TBD_SWIFT_WITHDRAWAL]: (data) => apiClientFactory_1.apiClientV1.postRequest('/orders/TBD_SWIFT_WITHDRAWAL', { data }),
|
|
65
62
|
},
|
|
66
63
|
},
|
|
64
|
+
v2: {
|
|
65
|
+
calc: (_a) => {
|
|
66
|
+
var { signal } = _a, params = __rest(_a, ["signal"]);
|
|
67
|
+
return apiClientFactory_1.apiClientV1.getRequest('/v2/orders/calc', { params, signal });
|
|
68
|
+
},
|
|
69
|
+
orderTypes: {
|
|
70
|
+
list: () => apiClientFactory_1.apiClientV1.getRequest('/v2/orders/order_types'),
|
|
71
|
+
},
|
|
72
|
+
create: {
|
|
73
|
+
byOrderType: {
|
|
74
|
+
[constants_1.OrderType.TRANSFER_INTERNAL]: (data) => apiClientFactory_1.apiClientV1.postRequest('/v2/orders/TRA', {
|
|
75
|
+
data,
|
|
76
|
+
}),
|
|
77
|
+
[constants_1.OrderType.HIFI_WIRE_ONRAMP]: (data) => apiClientFactory_1.apiClientV1.postRequest('/v2/orders/HIFI_WIRE_ONRAMP', {
|
|
78
|
+
data,
|
|
79
|
+
}),
|
|
80
|
+
[constants_1.OrderType.HIFI_ACH_ONRAMP]: (data) => apiClientFactory_1.apiClientV1.postRequest('/v2/orders/HIFI_ACH_ONRAMP', {
|
|
81
|
+
data,
|
|
82
|
+
}),
|
|
83
|
+
[constants_1.OrderType.HIFI_SEPA_ONRAMP]: (data) => apiClientFactory_1.apiClientV1.postRequest('/v2/orders/HIFI_SEPA_ONRAMP', {
|
|
84
|
+
data,
|
|
85
|
+
}),
|
|
86
|
+
[constants_1.OrderType.HIFI_WIRE_OFFRAMP]: (data) => apiClientFactory_1.apiClientV1.postRequest('/v2/orders/HIFI_WIRE_OFFRAMP', {
|
|
87
|
+
data,
|
|
88
|
+
}),
|
|
89
|
+
[constants_1.OrderType.HIFI_ACH_OFFRAMP]: (data) => apiClientFactory_1.apiClientV1.postRequest('/v2/orders/HIFI_ACH_OFFRAMP', {
|
|
90
|
+
data,
|
|
91
|
+
}),
|
|
92
|
+
[constants_1.OrderType.HIFI_SEPA_OFFRAMP]: (data) => apiClientFactory_1.apiClientV1.postRequest('/v2/orders/HIFI_SEPA_OFFRAMP', {
|
|
93
|
+
data,
|
|
94
|
+
}),
|
|
95
|
+
[constants_1.OrderType.OMNIBUS_CRYPTO_TRANSFER]: (data) => apiClientFactory_1.apiClientV1.postRequest('/v2/orders/OMNIBUS_CRYPTO_WITHDRAWAL', {
|
|
96
|
+
data,
|
|
97
|
+
}),
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
},
|
|
67
101
|
};
|
|
@@ -1332,7 +1332,7 @@ export declare namespace API {
|
|
|
1332
1332
|
signal?: AbortSignal;
|
|
1333
1333
|
}
|
|
1334
1334
|
export interface WithdrawCryptoRequest extends CommonRequestParams {
|
|
1335
|
-
order_type: OrderType.WITHDRAWAL_CRYPTO | OrderType.TRANSFER_INTERNAL | OrderType.
|
|
1335
|
+
order_type: OrderType.WITHDRAWAL_CRYPTO | OrderType.TRANSFER_INTERNAL | OrderType.OMNIBUS_CRYPTO_TRANSFER;
|
|
1336
1336
|
to_address?: string;
|
|
1337
1337
|
}
|
|
1338
1338
|
export interface NonWithdrawCryptoRequest extends CommonRequestParams {
|
|
@@ -1386,6 +1386,306 @@ export declare namespace API {
|
|
|
1386
1386
|
type: OrderType | string;
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
|
+
namespace V2 {
|
|
1390
|
+
namespace Calc {
|
|
1391
|
+
interface CommonRequestParams {
|
|
1392
|
+
from_currency: string;
|
|
1393
|
+
to_currency: string;
|
|
1394
|
+
amount: number;
|
|
1395
|
+
is_reverse?: boolean;
|
|
1396
|
+
signal?: AbortSignal;
|
|
1397
|
+
}
|
|
1398
|
+
export interface WithdrawCryptoRequest extends CommonRequestParams {
|
|
1399
|
+
order_type: OrderType.WITHDRAWAL_CRYPTO | OrderType.TRANSFER_INTERNAL | OrderType.OMNIBUS_CRYPTO_TRANSFER;
|
|
1400
|
+
to_address?: string;
|
|
1401
|
+
}
|
|
1402
|
+
export interface NonWithdrawCryptoRequest extends CommonRequestParams {
|
|
1403
|
+
order_type: Exclude<OrderType, OrderType.WITHDRAWAL_CRYPTO>;
|
|
1404
|
+
to_address?: never;
|
|
1405
|
+
}
|
|
1406
|
+
export type Request = NonWithdrawCryptoRequest | WithdrawCryptoRequest;
|
|
1407
|
+
export interface Response {
|
|
1408
|
+
from_currency: string;
|
|
1409
|
+
to_currency: string;
|
|
1410
|
+
from_symbol: string;
|
|
1411
|
+
to_symbol: string;
|
|
1412
|
+
from_amount: number;
|
|
1413
|
+
net_amount: number;
|
|
1414
|
+
result_amount: number;
|
|
1415
|
+
fees: number;
|
|
1416
|
+
comission: number;
|
|
1417
|
+
base_markup: number;
|
|
1418
|
+
network_fee: number;
|
|
1419
|
+
transaction_fee: number;
|
|
1420
|
+
rate: number;
|
|
1421
|
+
direction: 'c2f' | 'f2c' | 'c2c';
|
|
1422
|
+
}
|
|
1423
|
+
export {};
|
|
1424
|
+
}
|
|
1425
|
+
namespace Create {
|
|
1426
|
+
namespace ByOrderType {
|
|
1427
|
+
namespace INTERNAL_TRANSFER {
|
|
1428
|
+
interface Request {
|
|
1429
|
+
wallet_id: string;
|
|
1430
|
+
from_crypto_uuid: string;
|
|
1431
|
+
to_wallet_id: string;
|
|
1432
|
+
to_wallet_uuid: string;
|
|
1433
|
+
amount: number;
|
|
1434
|
+
request_id: string;
|
|
1435
|
+
}
|
|
1436
|
+
type Response = null;
|
|
1437
|
+
}
|
|
1438
|
+
namespace HIFI_WIRE_ONRAMP {
|
|
1439
|
+
interface Request {
|
|
1440
|
+
request_id: string;
|
|
1441
|
+
counterparty_account_id: string;
|
|
1442
|
+
amount: number;
|
|
1443
|
+
wallet_id: string;
|
|
1444
|
+
currency_id: string;
|
|
1445
|
+
}
|
|
1446
|
+
interface Response {
|
|
1447
|
+
order_uuid: string;
|
|
1448
|
+
wallet_uuid: string;
|
|
1449
|
+
from_uuid: string;
|
|
1450
|
+
to_uuid: string;
|
|
1451
|
+
amount_from: number;
|
|
1452
|
+
amount_to: number;
|
|
1453
|
+
order_type: 'HIFI_WIRE_ONRAMP';
|
|
1454
|
+
status: OrderStatuses;
|
|
1455
|
+
created_at: string;
|
|
1456
|
+
info: string;
|
|
1457
|
+
meta: {
|
|
1458
|
+
request_id: string;
|
|
1459
|
+
counterparty_account_id: string;
|
|
1460
|
+
fee: number;
|
|
1461
|
+
fee_currency: string;
|
|
1462
|
+
billing_amount: number;
|
|
1463
|
+
billing_currency: string;
|
|
1464
|
+
transaction_amount: number;
|
|
1465
|
+
transaction_currency: string;
|
|
1466
|
+
order_uuid: string;
|
|
1467
|
+
};
|
|
1468
|
+
id: string;
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
namespace HIFI_ACH_ONRAMP {
|
|
1472
|
+
interface Request {
|
|
1473
|
+
request_id: string;
|
|
1474
|
+
counterparty_account_id: string;
|
|
1475
|
+
amount: number;
|
|
1476
|
+
wallet_id: string;
|
|
1477
|
+
currency_id: string;
|
|
1478
|
+
}
|
|
1479
|
+
interface Response {
|
|
1480
|
+
order_uuid: string;
|
|
1481
|
+
wallet_uuid: string;
|
|
1482
|
+
from_uuid: string;
|
|
1483
|
+
to_uuid: string;
|
|
1484
|
+
amount_from: number;
|
|
1485
|
+
amount_to: number;
|
|
1486
|
+
order_type: 'HIFI_ACH_ONRAMP';
|
|
1487
|
+
status: OrderStatuses;
|
|
1488
|
+
created_at: string;
|
|
1489
|
+
info: string;
|
|
1490
|
+
meta: {
|
|
1491
|
+
request_id: string;
|
|
1492
|
+
counterparty_account_id: string;
|
|
1493
|
+
fee: number;
|
|
1494
|
+
fee_currency: string;
|
|
1495
|
+
billing_amount: number;
|
|
1496
|
+
billing_currency: string;
|
|
1497
|
+
transaction_amount: number;
|
|
1498
|
+
transaction_currency: string;
|
|
1499
|
+
order_uuid: string;
|
|
1500
|
+
};
|
|
1501
|
+
id: string;
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
namespace HIFI_SEPA_ONRAMP {
|
|
1505
|
+
interface Request {
|
|
1506
|
+
request_id: string;
|
|
1507
|
+
counterparty_account_id: string;
|
|
1508
|
+
amount: number;
|
|
1509
|
+
wallet_id: string;
|
|
1510
|
+
currency_id: string;
|
|
1511
|
+
}
|
|
1512
|
+
interface Response {
|
|
1513
|
+
order_uuid: string;
|
|
1514
|
+
wallet_uuid: string;
|
|
1515
|
+
from_uuid: string;
|
|
1516
|
+
to_uuid: string;
|
|
1517
|
+
amount_from: number;
|
|
1518
|
+
amount_to: number;
|
|
1519
|
+
order_type: 'HIFI_SEPA_ONRAMP';
|
|
1520
|
+
status: OrderStatuses;
|
|
1521
|
+
created_at: string;
|
|
1522
|
+
info: string;
|
|
1523
|
+
meta: {
|
|
1524
|
+
request_id: string;
|
|
1525
|
+
counterparty_account_id: string;
|
|
1526
|
+
fee: number;
|
|
1527
|
+
fee_currency: string;
|
|
1528
|
+
billing_amount: number;
|
|
1529
|
+
billing_currency: string;
|
|
1530
|
+
transaction_amount: number;
|
|
1531
|
+
transaction_currency: string;
|
|
1532
|
+
order_uuid: string;
|
|
1533
|
+
};
|
|
1534
|
+
id: string;
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
namespace HIFI_WIRE_OFFRAMP {
|
|
1538
|
+
interface Request {
|
|
1539
|
+
request_id: string;
|
|
1540
|
+
counterparty_account_id: string;
|
|
1541
|
+
amount: number;
|
|
1542
|
+
wallet_id: string;
|
|
1543
|
+
currency_id: string;
|
|
1544
|
+
}
|
|
1545
|
+
interface Response {
|
|
1546
|
+
order_uuid: string;
|
|
1547
|
+
wallet_uuid: string;
|
|
1548
|
+
from_uuid: string;
|
|
1549
|
+
to_uuid: string;
|
|
1550
|
+
amount_from: number;
|
|
1551
|
+
amount_to: number;
|
|
1552
|
+
order_type: 'HIFI_WIRE_OFFRAMP';
|
|
1553
|
+
status: OrderStatuses;
|
|
1554
|
+
created_at: string;
|
|
1555
|
+
info: string;
|
|
1556
|
+
meta: {
|
|
1557
|
+
request_id: string;
|
|
1558
|
+
counterparty_account_id: string;
|
|
1559
|
+
fee: number;
|
|
1560
|
+
fee_currency: string;
|
|
1561
|
+
billing_amount: number;
|
|
1562
|
+
billing_currency: string;
|
|
1563
|
+
transaction_amount: number;
|
|
1564
|
+
transaction_currency: string;
|
|
1565
|
+
order_uuid: string;
|
|
1566
|
+
};
|
|
1567
|
+
id: string;
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
namespace HIFI_ACH_OFFRAMP {
|
|
1571
|
+
interface Request {
|
|
1572
|
+
request_id: string;
|
|
1573
|
+
counterparty_account_id: string;
|
|
1574
|
+
amount: number;
|
|
1575
|
+
wallet_id: string;
|
|
1576
|
+
currency_id: string;
|
|
1577
|
+
}
|
|
1578
|
+
interface Response {
|
|
1579
|
+
order_uuid: string;
|
|
1580
|
+
wallet_uuid: string;
|
|
1581
|
+
from_uuid: string;
|
|
1582
|
+
to_uuid: string;
|
|
1583
|
+
amount_from: number;
|
|
1584
|
+
amount_to: number;
|
|
1585
|
+
order_type: 'HIFI_ACH_OFFRAMP';
|
|
1586
|
+
status: OrderStatuses;
|
|
1587
|
+
created_at: string;
|
|
1588
|
+
info: string;
|
|
1589
|
+
meta: {
|
|
1590
|
+
request_id: string;
|
|
1591
|
+
counterparty_account_id: string;
|
|
1592
|
+
fee: number;
|
|
1593
|
+
fee_currency: string;
|
|
1594
|
+
billing_amount: number;
|
|
1595
|
+
billing_currency: string;
|
|
1596
|
+
transaction_amount: number;
|
|
1597
|
+
transaction_currency: string;
|
|
1598
|
+
order_uuid: string;
|
|
1599
|
+
};
|
|
1600
|
+
id: string;
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
namespace HIFI_SEPA_OFFRAMP {
|
|
1604
|
+
interface Request {
|
|
1605
|
+
request_id: string;
|
|
1606
|
+
counterparty_account_id: string;
|
|
1607
|
+
amount: number;
|
|
1608
|
+
wallet_id: string;
|
|
1609
|
+
currency_id: string;
|
|
1610
|
+
}
|
|
1611
|
+
interface Response {
|
|
1612
|
+
order_uuid: string;
|
|
1613
|
+
wallet_uuid: string;
|
|
1614
|
+
from_uuid: string;
|
|
1615
|
+
to_uuid: string;
|
|
1616
|
+
amount_from: number;
|
|
1617
|
+
amount_to: number;
|
|
1618
|
+
order_type: 'HIFI_SEPA_OFFRAMP';
|
|
1619
|
+
status: OrderStatuses;
|
|
1620
|
+
created_at: string;
|
|
1621
|
+
info: string;
|
|
1622
|
+
meta: {
|
|
1623
|
+
request_id: string;
|
|
1624
|
+
counterparty_account_id: string;
|
|
1625
|
+
fee: number;
|
|
1626
|
+
fee_currency: string;
|
|
1627
|
+
billing_amount: number;
|
|
1628
|
+
billing_currency: string;
|
|
1629
|
+
transaction_amount: number;
|
|
1630
|
+
transaction_currency: string;
|
|
1631
|
+
order_uuid: string;
|
|
1632
|
+
};
|
|
1633
|
+
id: string;
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
namespace OMNIBUS_CRYPTO_TRANSFER {
|
|
1637
|
+
interface Request {
|
|
1638
|
+
request_id: string;
|
|
1639
|
+
counterparty_account_id: string;
|
|
1640
|
+
amount: number;
|
|
1641
|
+
wallet_id: string;
|
|
1642
|
+
wallet_account_id: string;
|
|
1643
|
+
currency_id: string;
|
|
1644
|
+
}
|
|
1645
|
+
interface Response {
|
|
1646
|
+
created_at: string;
|
|
1647
|
+
order_uuid: string;
|
|
1648
|
+
wallet_uuid: string;
|
|
1649
|
+
from_uuid: string;
|
|
1650
|
+
to_uuid: string;
|
|
1651
|
+
amount_from: number;
|
|
1652
|
+
order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
|
|
1653
|
+
status: OrderStatuses;
|
|
1654
|
+
amount_to: number;
|
|
1655
|
+
info: string;
|
|
1656
|
+
meta: {
|
|
1657
|
+
fee: number;
|
|
1658
|
+
order_uuid: string;
|
|
1659
|
+
to_address: string;
|
|
1660
|
+
fee_currency: string;
|
|
1661
|
+
request_id: string;
|
|
1662
|
+
counterparty_account_id: string;
|
|
1663
|
+
billing_amount: number;
|
|
1664
|
+
billing_currency: string;
|
|
1665
|
+
transaction_amount: number;
|
|
1666
|
+
transaction_currency: string;
|
|
1667
|
+
network_fee: number;
|
|
1668
|
+
};
|
|
1669
|
+
id: string;
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
namespace OrderTypes {
|
|
1675
|
+
interface OrderInfo {
|
|
1676
|
+
id: string;
|
|
1677
|
+
transaction_type: string;
|
|
1678
|
+
description: string | null;
|
|
1679
|
+
direction: 'deposit' | 'withdrawal';
|
|
1680
|
+
is_internal: boolean;
|
|
1681
|
+
kyc_rails_id: string | null;
|
|
1682
|
+
payment_method: OrderType | string;
|
|
1683
|
+
}
|
|
1684
|
+
namespace List {
|
|
1685
|
+
type Response = OrderInfo[];
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1389
1689
|
}
|
|
1390
1690
|
namespace Persona {
|
|
1391
1691
|
namespace Inquiries {
|
|
@@ -1398,7 +1698,7 @@ export declare namespace API {
|
|
|
1398
1698
|
}
|
|
1399
1699
|
namespace TOTP {
|
|
1400
1700
|
namespace OTPVerification {
|
|
1401
|
-
type OTPVerificationChannelType = 'EMAIL' | 'SMS' | 'TOTP' | 'APP';
|
|
1701
|
+
type OTPVerificationChannelType = 'EMAIL' | 'SMS' | 'TOTP' | 'APP' | 'TG_TEST';
|
|
1402
1702
|
type OTPVerificationStatus = 'PENDING' | 'APPROVED' | 'DENIED';
|
|
1403
1703
|
type OTPVerificationChannelInfo = {
|
|
1404
1704
|
channel: OTPVerificationChannelType;
|
package/dist/constants.d.ts
CHANGED
|
@@ -169,7 +169,7 @@ export declare enum OrderType {
|
|
|
169
169
|
HIFI_WIRE_OFFRAMP = "HIFI_WIRE_OFFRAMP",
|
|
170
170
|
HIFI_ACH_OFFRAMP = "HIFI_ACH_OFFRAMP",
|
|
171
171
|
HIFI_SEPA_OFFRAMP = "HIFI_SEPA_OFFRAMP",
|
|
172
|
-
|
|
172
|
+
OMNIBUS_CRYPTO_TRANSFER = "OMNIBUS_CRYPTO_TRANSFER",
|
|
173
173
|
TBD_SWIFT_WITHDRAWAL = "TBD_SWIFT_WITHDRAWAL"
|
|
174
174
|
}
|
|
175
175
|
export declare enum APIKeyRole {
|
package/dist/constants.js
CHANGED
|
@@ -194,7 +194,7 @@ var OrderType;
|
|
|
194
194
|
OrderType["HIFI_WIRE_OFFRAMP"] = "HIFI_WIRE_OFFRAMP";
|
|
195
195
|
OrderType["HIFI_ACH_OFFRAMP"] = "HIFI_ACH_OFFRAMP";
|
|
196
196
|
OrderType["HIFI_SEPA_OFFRAMP"] = "HIFI_SEPA_OFFRAMP";
|
|
197
|
-
OrderType["
|
|
197
|
+
OrderType["OMNIBUS_CRYPTO_TRANSFER"] = "OMNIBUS_CRYPTO_TRANSFER";
|
|
198
198
|
OrderType["TBD_SWIFT_WITHDRAWAL"] = "TBD_SWIFT_WITHDRAWAL";
|
|
199
199
|
})(OrderType || (exports.OrderType = OrderType = {}));
|
|
200
200
|
var APIKeyRole;
|
package/package.json
CHANGED
package/src/api/orders.ts
CHANGED
|
@@ -108,17 +108,6 @@ export const orders = {
|
|
|
108
108
|
apiClientV1.postRequest<API.Orders.Create.ByOrderType.HIFI_SEPA_OFFRAMP.Response>('/orders/HIFI_SEPA_OFFRAMP', {
|
|
109
109
|
data,
|
|
110
110
|
}),
|
|
111
|
-
|
|
112
|
-
[OrderType.OMNIBUS_CRYPTO_WITHDRAWAL]: (
|
|
113
|
-
data: API.Orders.Create.ByOrderType.OMNIBUS_CRYPTO_WITHDRAWAL.Request
|
|
114
|
-
): Promise<API.Orders.Create.ByOrderType.OMNIBUS_CRYPTO_WITHDRAWAL.Response> =>
|
|
115
|
-
apiClientV1.postRequest<API.Orders.Create.ByOrderType.OMNIBUS_CRYPTO_WITHDRAWAL.Response>(
|
|
116
|
-
'/orders/OMNIBUS_CRYPTO_WITHDRAWAL',
|
|
117
|
-
{
|
|
118
|
-
data,
|
|
119
|
-
}
|
|
120
|
-
),
|
|
121
|
-
|
|
122
111
|
[OrderType.TBD_SWIFT_WITHDRAWAL]: (
|
|
123
112
|
data: API.Orders.Create.ByOrderType.TBD_SWIFT_WITHDRAWAL.Request
|
|
124
113
|
): Promise<API.Orders.Create.ByOrderType.TBD_SWIFT_WITHDRAWAL.Response> =>
|
|
@@ -128,4 +117,94 @@ export const orders = {
|
|
|
128
117
|
),
|
|
129
118
|
},
|
|
130
119
|
},
|
|
120
|
+
v2: {
|
|
121
|
+
calc: ({ signal, ...params }: API.Orders.V2.Calc.Request): Promise<API.Orders.V2.Calc.Response> =>
|
|
122
|
+
apiClientV1.getRequest<API.Orders.V2.Calc.Response>('/v2/orders/calc', { params, signal }),
|
|
123
|
+
|
|
124
|
+
orderTypes: {
|
|
125
|
+
list: (): Promise<API.Orders.V2.OrderTypes.List.Response> =>
|
|
126
|
+
apiClientV1.getRequest<API.Orders.V2.OrderTypes.List.Response>('/v2/orders/order_types'),
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
create: {
|
|
130
|
+
byOrderType: {
|
|
131
|
+
[OrderType.TRANSFER_INTERNAL]: (
|
|
132
|
+
data: API.Orders.V2.Create.ByOrderType.INTERNAL_TRANSFER.Request
|
|
133
|
+
): Promise<API.Orders.V2.Create.ByOrderType.INTERNAL_TRANSFER.Response> =>
|
|
134
|
+
apiClientV1.postRequest<API.Orders.V2.Create.ByOrderType.INTERNAL_TRANSFER.Response>('/v2/orders/TRA', {
|
|
135
|
+
data,
|
|
136
|
+
}),
|
|
137
|
+
|
|
138
|
+
[OrderType.HIFI_WIRE_ONRAMP]: (
|
|
139
|
+
data: API.Orders.V2.Create.ByOrderType.HIFI_WIRE_ONRAMP.Request
|
|
140
|
+
): Promise<API.Orders.V2.Create.ByOrderType.HIFI_WIRE_ONRAMP.Response> =>
|
|
141
|
+
apiClientV1.postRequest<API.Orders.V2.Create.ByOrderType.HIFI_WIRE_ONRAMP.Response>(
|
|
142
|
+
'/v2/orders/HIFI_WIRE_ONRAMP',
|
|
143
|
+
{
|
|
144
|
+
data,
|
|
145
|
+
}
|
|
146
|
+
),
|
|
147
|
+
|
|
148
|
+
[OrderType.HIFI_ACH_ONRAMP]: (
|
|
149
|
+
data: API.Orders.V2.Create.ByOrderType.HIFI_ACH_ONRAMP.Request
|
|
150
|
+
): Promise<API.Orders.V2.Create.ByOrderType.HIFI_ACH_ONRAMP.Response> =>
|
|
151
|
+
apiClientV1.postRequest<API.Orders.V2.Create.ByOrderType.HIFI_ACH_ONRAMP.Response>(
|
|
152
|
+
'/v2/orders/HIFI_ACH_ONRAMP',
|
|
153
|
+
{
|
|
154
|
+
data,
|
|
155
|
+
}
|
|
156
|
+
),
|
|
157
|
+
|
|
158
|
+
[OrderType.HIFI_SEPA_ONRAMP]: (
|
|
159
|
+
data: API.Orders.V2.Create.ByOrderType.HIFI_SEPA_ONRAMP.Request
|
|
160
|
+
): Promise<API.Orders.V2.Create.ByOrderType.HIFI_SEPA_ONRAMP.Response> =>
|
|
161
|
+
apiClientV1.postRequest<API.Orders.V2.Create.ByOrderType.HIFI_SEPA_ONRAMP.Response>(
|
|
162
|
+
'/v2/orders/HIFI_SEPA_ONRAMP',
|
|
163
|
+
{
|
|
164
|
+
data,
|
|
165
|
+
}
|
|
166
|
+
),
|
|
167
|
+
|
|
168
|
+
[OrderType.HIFI_WIRE_OFFRAMP]: (
|
|
169
|
+
data: API.Orders.V2.Create.ByOrderType.HIFI_WIRE_OFFRAMP.Request
|
|
170
|
+
): Promise<API.Orders.V2.Create.ByOrderType.HIFI_WIRE_OFFRAMP.Response> =>
|
|
171
|
+
apiClientV1.postRequest<API.Orders.V2.Create.ByOrderType.HIFI_WIRE_OFFRAMP.Response>(
|
|
172
|
+
'/v2/orders/HIFI_WIRE_OFFRAMP',
|
|
173
|
+
{
|
|
174
|
+
data,
|
|
175
|
+
}
|
|
176
|
+
),
|
|
177
|
+
|
|
178
|
+
[OrderType.HIFI_ACH_OFFRAMP]: (
|
|
179
|
+
data: API.Orders.V2.Create.ByOrderType.HIFI_ACH_OFFRAMP.Request
|
|
180
|
+
): Promise<API.Orders.V2.Create.ByOrderType.HIFI_ACH_OFFRAMP.Response> =>
|
|
181
|
+
apiClientV1.postRequest<API.Orders.V2.Create.ByOrderType.HIFI_ACH_OFFRAMP.Response>(
|
|
182
|
+
'/v2/orders/HIFI_ACH_OFFRAMP',
|
|
183
|
+
{
|
|
184
|
+
data,
|
|
185
|
+
}
|
|
186
|
+
),
|
|
187
|
+
|
|
188
|
+
[OrderType.HIFI_SEPA_OFFRAMP]: (
|
|
189
|
+
data: API.Orders.V2.Create.ByOrderType.HIFI_SEPA_OFFRAMP.Request
|
|
190
|
+
): Promise<API.Orders.V2.Create.ByOrderType.HIFI_SEPA_OFFRAMP.Response> =>
|
|
191
|
+
apiClientV1.postRequest<API.Orders.V2.Create.ByOrderType.HIFI_SEPA_OFFRAMP.Response>(
|
|
192
|
+
'/v2/orders/HIFI_SEPA_OFFRAMP',
|
|
193
|
+
{
|
|
194
|
+
data,
|
|
195
|
+
}
|
|
196
|
+
),
|
|
197
|
+
|
|
198
|
+
[OrderType.OMNIBUS_CRYPTO_TRANSFER]: (
|
|
199
|
+
data: API.Orders.V2.Create.ByOrderType.OMNIBUS_CRYPTO_TRANSFER.Request
|
|
200
|
+
): Promise<API.Orders.V2.Create.ByOrderType.OMNIBUS_CRYPTO_TRANSFER.Response> =>
|
|
201
|
+
apiClientV1.postRequest<API.Orders.V2.Create.ByOrderType.OMNIBUS_CRYPTO_TRANSFER.Response>(
|
|
202
|
+
'/v2/orders/OMNIBUS_CRYPTO_WITHDRAWAL',
|
|
203
|
+
{
|
|
204
|
+
data,
|
|
205
|
+
}
|
|
206
|
+
),
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
},
|
|
131
210
|
};
|
package/src/api/types/types.ts
CHANGED
|
@@ -1539,7 +1539,7 @@ export namespace API {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
|
|
1541
1541
|
export interface WithdrawCryptoRequest extends CommonRequestParams {
|
|
1542
|
-
order_type: OrderType.WITHDRAWAL_CRYPTO | OrderType.TRANSFER_INTERNAL | OrderType.
|
|
1542
|
+
order_type: OrderType.WITHDRAWAL_CRYPTO | OrderType.TRANSFER_INTERNAL | OrderType.OMNIBUS_CRYPTO_TRANSFER;
|
|
1543
1543
|
to_address?: string;
|
|
1544
1544
|
}
|
|
1545
1545
|
|
|
@@ -1682,6 +1682,328 @@ export namespace API {
|
|
|
1682
1682
|
// }
|
|
1683
1683
|
// }
|
|
1684
1684
|
// }
|
|
1685
|
+
export namespace V2 {
|
|
1686
|
+
export namespace Calc {
|
|
1687
|
+
interface CommonRequestParams {
|
|
1688
|
+
from_currency: string;
|
|
1689
|
+
to_currency: string;
|
|
1690
|
+
amount: number;
|
|
1691
|
+
is_reverse?: boolean;
|
|
1692
|
+
signal?: AbortSignal;
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
export interface WithdrawCryptoRequest extends CommonRequestParams {
|
|
1696
|
+
order_type: OrderType.WITHDRAWAL_CRYPTO | OrderType.TRANSFER_INTERNAL | OrderType.OMNIBUS_CRYPTO_TRANSFER;
|
|
1697
|
+
to_address?: string;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
export interface NonWithdrawCryptoRequest extends CommonRequestParams {
|
|
1701
|
+
order_type: Exclude<OrderType, OrderType.WITHDRAWAL_CRYPTO>;
|
|
1702
|
+
to_address?: never;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
export type Request = NonWithdrawCryptoRequest | WithdrawCryptoRequest;
|
|
1706
|
+
export interface Response {
|
|
1707
|
+
from_currency: string;
|
|
1708
|
+
to_currency: string;
|
|
1709
|
+
from_symbol: string;
|
|
1710
|
+
to_symbol: string;
|
|
1711
|
+
from_amount: number;
|
|
1712
|
+
net_amount: number;
|
|
1713
|
+
result_amount: number;
|
|
1714
|
+
fees: number;
|
|
1715
|
+
comission: number;
|
|
1716
|
+
base_markup: number;
|
|
1717
|
+
network_fee: number;
|
|
1718
|
+
transaction_fee: number;
|
|
1719
|
+
rate: number;
|
|
1720
|
+
direction: 'c2f' | 'f2c' | 'c2c';
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
export namespace Create {
|
|
1725
|
+
export namespace ByOrderType {
|
|
1726
|
+
export namespace INTERNAL_TRANSFER {
|
|
1727
|
+
export interface Request {
|
|
1728
|
+
wallet_id: string;
|
|
1729
|
+
from_crypto_uuid: string;
|
|
1730
|
+
to_wallet_id: string;
|
|
1731
|
+
to_wallet_uuid: string;
|
|
1732
|
+
amount: number;
|
|
1733
|
+
request_id: string;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
export type Response = null;
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
export namespace HIFI_WIRE_ONRAMP {
|
|
1740
|
+
export interface Request {
|
|
1741
|
+
request_id: string;
|
|
1742
|
+
counterparty_account_id: string;
|
|
1743
|
+
amount: number;
|
|
1744
|
+
wallet_id: string;
|
|
1745
|
+
currency_id: string;
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
export interface Response {
|
|
1749
|
+
order_uuid: string;
|
|
1750
|
+
wallet_uuid: string;
|
|
1751
|
+
from_uuid: string;
|
|
1752
|
+
to_uuid: string;
|
|
1753
|
+
amount_from: number;
|
|
1754
|
+
amount_to: number;
|
|
1755
|
+
order_type: 'HIFI_WIRE_ONRAMP';
|
|
1756
|
+
status: OrderStatuses;
|
|
1757
|
+
created_at: string;
|
|
1758
|
+
info: string;
|
|
1759
|
+
meta: {
|
|
1760
|
+
request_id: string;
|
|
1761
|
+
counterparty_account_id: string;
|
|
1762
|
+
fee: number;
|
|
1763
|
+
fee_currency: string;
|
|
1764
|
+
billing_amount: number;
|
|
1765
|
+
billing_currency: string;
|
|
1766
|
+
transaction_amount: number;
|
|
1767
|
+
transaction_currency: string;
|
|
1768
|
+
order_uuid: string;
|
|
1769
|
+
};
|
|
1770
|
+
|
|
1771
|
+
id: string;
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
export namespace HIFI_ACH_ONRAMP {
|
|
1776
|
+
export interface Request {
|
|
1777
|
+
request_id: string;
|
|
1778
|
+
counterparty_account_id: string;
|
|
1779
|
+
amount: number;
|
|
1780
|
+
wallet_id: string;
|
|
1781
|
+
currency_id: string;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
export interface Response {
|
|
1785
|
+
order_uuid: string;
|
|
1786
|
+
wallet_uuid: string;
|
|
1787
|
+
from_uuid: string;
|
|
1788
|
+
to_uuid: string;
|
|
1789
|
+
amount_from: number;
|
|
1790
|
+
amount_to: number;
|
|
1791
|
+
order_type: 'HIFI_ACH_ONRAMP';
|
|
1792
|
+
status: OrderStatuses;
|
|
1793
|
+
created_at: string;
|
|
1794
|
+
info: string;
|
|
1795
|
+
meta: {
|
|
1796
|
+
request_id: string;
|
|
1797
|
+
counterparty_account_id: string;
|
|
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
|
+
id: string;
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
|
|
1811
|
+
export namespace HIFI_SEPA_ONRAMP {
|
|
1812
|
+
export interface Request {
|
|
1813
|
+
request_id: string;
|
|
1814
|
+
counterparty_account_id: string;
|
|
1815
|
+
amount: number;
|
|
1816
|
+
wallet_id: string;
|
|
1817
|
+
currency_id: string;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
export interface Response {
|
|
1821
|
+
order_uuid: string;
|
|
1822
|
+
wallet_uuid: string;
|
|
1823
|
+
from_uuid: string;
|
|
1824
|
+
to_uuid: string;
|
|
1825
|
+
amount_from: number;
|
|
1826
|
+
amount_to: number;
|
|
1827
|
+
order_type: 'HIFI_SEPA_ONRAMP';
|
|
1828
|
+
status: OrderStatuses;
|
|
1829
|
+
created_at: string;
|
|
1830
|
+
info: string;
|
|
1831
|
+
meta: {
|
|
1832
|
+
request_id: string;
|
|
1833
|
+
counterparty_account_id: string;
|
|
1834
|
+
fee: number;
|
|
1835
|
+
fee_currency: string;
|
|
1836
|
+
billing_amount: number;
|
|
1837
|
+
billing_currency: string;
|
|
1838
|
+
transaction_amount: number;
|
|
1839
|
+
transaction_currency: string;
|
|
1840
|
+
order_uuid: string;
|
|
1841
|
+
};
|
|
1842
|
+
id: string;
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
export namespace HIFI_WIRE_OFFRAMP {
|
|
1847
|
+
export interface Request {
|
|
1848
|
+
request_id: string;
|
|
1849
|
+
counterparty_account_id: string;
|
|
1850
|
+
amount: number;
|
|
1851
|
+
wallet_id: string;
|
|
1852
|
+
currency_id: string;
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
export interface Response {
|
|
1856
|
+
order_uuid: string;
|
|
1857
|
+
wallet_uuid: string;
|
|
1858
|
+
from_uuid: string;
|
|
1859
|
+
to_uuid: string;
|
|
1860
|
+
amount_from: number;
|
|
1861
|
+
amount_to: number;
|
|
1862
|
+
order_type: 'HIFI_WIRE_OFFRAMP';
|
|
1863
|
+
status: OrderStatuses;
|
|
1864
|
+
created_at: string;
|
|
1865
|
+
info: string;
|
|
1866
|
+
meta: {
|
|
1867
|
+
request_id: string;
|
|
1868
|
+
counterparty_account_id: string;
|
|
1869
|
+
fee: number;
|
|
1870
|
+
fee_currency: string;
|
|
1871
|
+
billing_amount: number;
|
|
1872
|
+
billing_currency: string;
|
|
1873
|
+
transaction_amount: number;
|
|
1874
|
+
transaction_currency: string;
|
|
1875
|
+
order_uuid: string;
|
|
1876
|
+
};
|
|
1877
|
+
id: string;
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
export namespace HIFI_ACH_OFFRAMP {
|
|
1882
|
+
export interface Request {
|
|
1883
|
+
request_id: string;
|
|
1884
|
+
counterparty_account_id: string;
|
|
1885
|
+
amount: number;
|
|
1886
|
+
wallet_id: string;
|
|
1887
|
+
currency_id: string;
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
export interface Response {
|
|
1891
|
+
order_uuid: string;
|
|
1892
|
+
wallet_uuid: string;
|
|
1893
|
+
from_uuid: string;
|
|
1894
|
+
to_uuid: string;
|
|
1895
|
+
amount_from: number;
|
|
1896
|
+
amount_to: number;
|
|
1897
|
+
order_type: 'HIFI_ACH_OFFRAMP';
|
|
1898
|
+
status: OrderStatuses;
|
|
1899
|
+
created_at: string;
|
|
1900
|
+
info: string;
|
|
1901
|
+
meta: {
|
|
1902
|
+
request_id: string;
|
|
1903
|
+
counterparty_account_id: string;
|
|
1904
|
+
fee: number;
|
|
1905
|
+
fee_currency: string;
|
|
1906
|
+
billing_amount: number;
|
|
1907
|
+
billing_currency: string;
|
|
1908
|
+
transaction_amount: number;
|
|
1909
|
+
transaction_currency: string;
|
|
1910
|
+
order_uuid: string;
|
|
1911
|
+
};
|
|
1912
|
+
id: string;
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
export namespace HIFI_SEPA_OFFRAMP {
|
|
1917
|
+
export interface Request {
|
|
1918
|
+
request_id: string;
|
|
1919
|
+
counterparty_account_id: string;
|
|
1920
|
+
amount: number;
|
|
1921
|
+
wallet_id: string;
|
|
1922
|
+
currency_id: string;
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
export interface Response {
|
|
1926
|
+
order_uuid: string;
|
|
1927
|
+
wallet_uuid: string;
|
|
1928
|
+
from_uuid: string;
|
|
1929
|
+
to_uuid: string;
|
|
1930
|
+
amount_from: number;
|
|
1931
|
+
amount_to: number;
|
|
1932
|
+
order_type: 'HIFI_SEPA_OFFRAMP';
|
|
1933
|
+
status: OrderStatuses;
|
|
1934
|
+
created_at: string;
|
|
1935
|
+
info: string;
|
|
1936
|
+
meta: {
|
|
1937
|
+
request_id: string;
|
|
1938
|
+
counterparty_account_id: string;
|
|
1939
|
+
fee: number;
|
|
1940
|
+
fee_currency: string;
|
|
1941
|
+
billing_amount: number;
|
|
1942
|
+
billing_currency: string;
|
|
1943
|
+
transaction_amount: number;
|
|
1944
|
+
transaction_currency: string;
|
|
1945
|
+
order_uuid: string;
|
|
1946
|
+
};
|
|
1947
|
+
id: string;
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
export namespace OMNIBUS_CRYPTO_TRANSFER {
|
|
1952
|
+
export interface Request {
|
|
1953
|
+
request_id: string;
|
|
1954
|
+
counterparty_account_id: string;
|
|
1955
|
+
amount: number;
|
|
1956
|
+
wallet_id: string;
|
|
1957
|
+
wallet_account_id: string;
|
|
1958
|
+
currency_id: string;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
export interface Response {
|
|
1962
|
+
created_at: string;
|
|
1963
|
+
order_uuid: string;
|
|
1964
|
+
wallet_uuid: string;
|
|
1965
|
+
from_uuid: string;
|
|
1966
|
+
to_uuid: string;
|
|
1967
|
+
amount_from: number;
|
|
1968
|
+
order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
|
|
1969
|
+
status: OrderStatuses;
|
|
1970
|
+
amount_to: number;
|
|
1971
|
+
info: string;
|
|
1972
|
+
meta: {
|
|
1973
|
+
fee: number;
|
|
1974
|
+
order_uuid: string;
|
|
1975
|
+
to_address: string;
|
|
1976
|
+
fee_currency: string;
|
|
1977
|
+
request_id: string;
|
|
1978
|
+
counterparty_account_id: string;
|
|
1979
|
+
billing_amount: number;
|
|
1980
|
+
billing_currency: string;
|
|
1981
|
+
transaction_amount: number;
|
|
1982
|
+
transaction_currency: string;
|
|
1983
|
+
network_fee: number;
|
|
1984
|
+
};
|
|
1985
|
+
id: string;
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
export namespace OrderTypes {
|
|
1992
|
+
export interface OrderInfo {
|
|
1993
|
+
id: string;
|
|
1994
|
+
transaction_type: string;
|
|
1995
|
+
description: string | null;
|
|
1996
|
+
direction: 'deposit' | 'withdrawal';
|
|
1997
|
+
is_internal: boolean;
|
|
1998
|
+
kyc_rails_id: string | null;
|
|
1999
|
+
payment_method: OrderType | string;
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
export namespace List {
|
|
2003
|
+
export type Response = OrderInfo[];
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
1685
2007
|
}
|
|
1686
2008
|
|
|
1687
2009
|
export namespace Persona {
|
|
@@ -1697,7 +2019,7 @@ export namespace API {
|
|
|
1697
2019
|
|
|
1698
2020
|
export namespace TOTP {
|
|
1699
2021
|
export namespace OTPVerification {
|
|
1700
|
-
export type OTPVerificationChannelType = 'EMAIL' | 'SMS' | 'TOTP' | 'APP';
|
|
2022
|
+
export type OTPVerificationChannelType = 'EMAIL' | 'SMS' | 'TOTP' | 'APP' | 'TG_TEST';
|
|
1701
2023
|
export type OTPVerificationStatus = 'PENDING' | 'APPROVED' | 'DENIED';
|
|
1702
2024
|
export type OTPVerificationChannelInfo = {
|
|
1703
2025
|
channel: OTPVerificationChannelType;
|
package/src/constants.ts
CHANGED
|
@@ -202,7 +202,7 @@ export enum OrderType {
|
|
|
202
202
|
HIFI_WIRE_OFFRAMP = 'HIFI_WIRE_OFFRAMP',
|
|
203
203
|
HIFI_ACH_OFFRAMP = 'HIFI_ACH_OFFRAMP',
|
|
204
204
|
HIFI_SEPA_OFFRAMP = 'HIFI_SEPA_OFFRAMP',
|
|
205
|
-
|
|
205
|
+
OMNIBUS_CRYPTO_TRANSFER = 'OMNIBUS_CRYPTO_TRANSFER',
|
|
206
206
|
TBD_SWIFT_WITHDRAWAL = 'TBD_SWIFT_WITHDRAWAL', // not implemented yet
|
|
207
207
|
}
|
|
208
208
|
|