squarefi-bff-api-module 1.27.8 → 1.29.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/.prettierignore +1 -0
- package/dist/api/orders.d.ts +3 -7
- package/dist/api/orders.js +3 -19
- package/dist/api/types/autogen/apiV2.types.d.ts +2 -0
- package/dist/api/types/types.d.ts +48 -183
- package/dist/constants.d.ts +8 -2
- package/dist/constants.js +6 -0
- package/package.json +1 -2
- package/src/api/orders.ts +16 -43
- package/src/api/types/autogen/apiV2.types.ts +2 -0
- package/src/api/types/types.ts +52 -195
- package/src/constants.ts +6 -0
package/.prettierignore
CHANGED
package/dist/api/orders.d.ts
CHANGED
|
@@ -12,13 +12,9 @@ export declare const orders: {
|
|
|
12
12
|
TRANSFER_CARD_PREPAID: (data: API.Orders.Create.ByOrderType.TRANSFER_CARD_PREPAID.Request) => Promise<API.Orders.Create.ByOrderType.TRANSFER_CARD_PREPAID.Response>;
|
|
13
13
|
TRANSFER_CARD_WHOLESALE: (data: API.Orders.Create.ByOrderType.TRANSFER_CARD_WHOLESALE.Request) => Promise<API.Orders.Create.ByOrderType.TRANSFER_CARD_WHOLESALE.Response>;
|
|
14
14
|
EXCHANGE_CRYPTO_INTERNAL: (data: API.Orders.Create.ByOrderType.EXCHANGE_CRYPTO_INTERNAL.Request) => Promise<API.Orders.Create.ByOrderType.EXCHANGE_CRYPTO_INTERNAL.Response>;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
HIFI_WIRE_OFFRAMP: (data: API.Orders.Create.ByOrderType.HIFI_WIRE_OFFRAMP.Request) => Promise<API.Orders.Create.ByOrderType.HIFI_WIRE_OFFRAMP.Response>;
|
|
19
|
-
HIFI_ACH_OFFRAMP: (data: API.Orders.Create.ByOrderType.HIFI_ACH_OFFRAMP.Request) => Promise<API.Orders.Create.ByOrderType.HIFI_ACH_OFFRAMP.Response>;
|
|
20
|
-
HIFI_SEPA_OFFRAMP: (data: API.Orders.Create.ByOrderType.HIFI_SEPA_OFFRAMP.Request) => Promise<API.Orders.Create.ByOrderType.HIFI_SEPA_OFFRAMP.Response>;
|
|
21
|
-
TBD_SWIFT_WITHDRAWAL: (data: API.Orders.Create.ByOrderType.TBD_SWIFT_WITHDRAWAL.Request) => Promise<API.Orders.Create.ByOrderType.TBD_SWIFT_WITHDRAWAL.Response>;
|
|
15
|
+
EXCHANGE_OMNI: (data: API.Orders.Create.ByOrderType.EXCHANGE_OMNI.Request) => Promise<API.Orders.Create.ByOrderType.EXCHANGE_OMNI.Response>;
|
|
16
|
+
WITHDRAW_CARD_PREPAID: (data: API.Orders.Create.ByOrderType.WITHDRAW_CARD_PREPAID.Request) => Promise<API.Orders.Create.ByOrderType.WITHDRAW_CARD_PREPAID.Response>;
|
|
17
|
+
WITHDRAW_CARD_SUBACCOUNT: (data: API.Orders.Create.ByOrderType.WITHDRAW_CARD_SUBACCOUNT.Request) => Promise<API.Orders.Create.ByOrderType.WITHDRAW_CARD_SUBACCOUNT.Response>;
|
|
22
18
|
};
|
|
23
19
|
};
|
|
24
20
|
v2: {
|
package/dist/api/orders.js
CHANGED
|
@@ -43,27 +43,11 @@ exports.orders = {
|
|
|
43
43
|
data,
|
|
44
44
|
}),
|
|
45
45
|
[constants_1.OrderType.EXCHANGE_CRYPTO_INTERNAL]: (data) => apiClientFactory_1.apiClientV1.postRequest('/orders/EXCHANGE_CRYPTO_INTERNAL', { data }),
|
|
46
|
-
[constants_1.OrderType.
|
|
46
|
+
[constants_1.OrderType.EXCHANGE_OMNI]: (data) => apiClientFactory_1.apiClientV1.postRequest('/orders/EXCHANGE_OMNI', {
|
|
47
47
|
data,
|
|
48
48
|
}),
|
|
49
|
-
[constants_1.OrderType.
|
|
50
|
-
|
|
51
|
-
}),
|
|
52
|
-
[constants_1.OrderType.HIFI_SEPA_ONRAMP]: (data) => apiClientFactory_1.apiClientV1.postRequest('/orders/HIFI_SEPA_ONRAMP', {
|
|
53
|
-
data,
|
|
54
|
-
}),
|
|
55
|
-
[constants_1.OrderType.HIFI_WIRE_OFFRAMP]: (data) => apiClientFactory_1.apiClientV1.postRequest('/orders/HIFI_WIRE_OFFRAMP', {
|
|
56
|
-
data,
|
|
57
|
-
}),
|
|
58
|
-
[constants_1.OrderType.HIFI_ACH_OFFRAMP]: (data) => apiClientFactory_1.apiClientV1.postRequest('/orders/HIFI_ACH_OFFRAMP', {
|
|
59
|
-
data,
|
|
60
|
-
}),
|
|
61
|
-
[constants_1.OrderType.HIFI_SEPA_OFFRAMP]: (data) => apiClientFactory_1.apiClientV1.postRequest('/orders/HIFI_SEPA_OFFRAMP', {
|
|
62
|
-
data,
|
|
63
|
-
}),
|
|
64
|
-
[constants_1.OrderType.TBD_SWIFT_WITHDRAWAL]: (
|
|
65
|
-
// TODO: ITS MOCK ORDER TYPE
|
|
66
|
-
data) => apiClientFactory_1.apiClientV1.postRequest('/orders/TBD_SWIFT_WITHDRAWAL', { data }),
|
|
49
|
+
[constants_1.OrderType.WITHDRAW_CARD_PREPAID]: (data) => apiClientFactory_1.apiClientV1.postRequest('/orders/WITHDRAW_CARD_PREPAID', { data }),
|
|
50
|
+
[constants_1.OrderType.WITHDRAW_CARD_SUBACCOUNT]: (data) => apiClientFactory_1.apiClientV1.postRequest('/orders/WITHDRAW_CARD_SUBACCOUNT', { data }),
|
|
67
51
|
},
|
|
68
52
|
},
|
|
69
53
|
v2: {
|
|
@@ -1771,6 +1771,7 @@ export interface components {
|
|
|
1771
1771
|
usd_value_of_crypto?: string | null;
|
|
1772
1772
|
usd_value_of_fiat?: string | null;
|
|
1773
1773
|
occupation?: string | null;
|
|
1774
|
+
occupation_other?: string | null;
|
|
1774
1775
|
/**
|
|
1775
1776
|
* @default UNVERIFIED
|
|
1776
1777
|
* @enum {string}
|
|
@@ -1874,6 +1875,7 @@ export interface components {
|
|
|
1874
1875
|
usd_value_of_crypto?: string | null;
|
|
1875
1876
|
usd_value_of_fiat?: string | null;
|
|
1876
1877
|
occupation?: string | null;
|
|
1878
|
+
occupation_other?: string | null;
|
|
1877
1879
|
/** @enum {string|null} */
|
|
1878
1880
|
employment_status?: "EMPLOYEE" | "SELF_EMPLOYED" | "RETIRED" | "UNEMPLOYED" | "OTHER" | null;
|
|
1879
1881
|
employment_description?: string | null;
|
|
@@ -986,189 +986,6 @@ export declare namespace API {
|
|
|
986
986
|
id: string;
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
|
-
namespace HIFI_WIRE_ONRAMP {
|
|
990
|
-
interface Request {
|
|
991
|
-
idempotency_key: string;
|
|
992
|
-
counterparty_account_id: string;
|
|
993
|
-
amount: number;
|
|
994
|
-
wallet_uuid: string;
|
|
995
|
-
currency_id: string;
|
|
996
|
-
}
|
|
997
|
-
interface Response {
|
|
998
|
-
order_uuid: string;
|
|
999
|
-
wallet_uuid: string;
|
|
1000
|
-
from_uuid: string;
|
|
1001
|
-
to_uuid: string;
|
|
1002
|
-
amount_from: number;
|
|
1003
|
-
amount_to: number;
|
|
1004
|
-
order_type: 'HIFI_WIRE_ONRAMP';
|
|
1005
|
-
status: OrderStatuses;
|
|
1006
|
-
created_at: string;
|
|
1007
|
-
info: string;
|
|
1008
|
-
meta: {
|
|
1009
|
-
idempotency_key: string;
|
|
1010
|
-
counterparty_account_id: string;
|
|
1011
|
-
fee: number;
|
|
1012
|
-
fee_currency: string;
|
|
1013
|
-
billing_amount: number;
|
|
1014
|
-
billing_currency: string;
|
|
1015
|
-
transaction_amount: number;
|
|
1016
|
-
transaction_currency: string;
|
|
1017
|
-
order_uuid: string;
|
|
1018
|
-
};
|
|
1019
|
-
id: string;
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
namespace HIFI_ACH_ONRAMP {
|
|
1023
|
-
interface Request {
|
|
1024
|
-
idempotency_key: string;
|
|
1025
|
-
counterparty_account_id: string;
|
|
1026
|
-
amount: number;
|
|
1027
|
-
wallet_uuid: string;
|
|
1028
|
-
currency_id: string;
|
|
1029
|
-
}
|
|
1030
|
-
interface Response {
|
|
1031
|
-
order_uuid: string;
|
|
1032
|
-
wallet_uuid: string;
|
|
1033
|
-
from_uuid: string;
|
|
1034
|
-
to_uuid: string;
|
|
1035
|
-
amount_from: number;
|
|
1036
|
-
amount_to: number;
|
|
1037
|
-
order_type: 'HIFI_ACH_ONRAMP';
|
|
1038
|
-
status: OrderStatuses;
|
|
1039
|
-
created_at: string;
|
|
1040
|
-
info: string;
|
|
1041
|
-
meta: {
|
|
1042
|
-
idempotency_key: string;
|
|
1043
|
-
counterparty_account_id: string;
|
|
1044
|
-
fee: number;
|
|
1045
|
-
fee_currency: string;
|
|
1046
|
-
billing_amount: number;
|
|
1047
|
-
billing_currency: string;
|
|
1048
|
-
transaction_amount: number;
|
|
1049
|
-
transaction_currency: string;
|
|
1050
|
-
order_uuid: string;
|
|
1051
|
-
};
|
|
1052
|
-
id: string;
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
namespace HIFI_SEPA_ONRAMP {
|
|
1056
|
-
interface Request {
|
|
1057
|
-
idempotency_key: string;
|
|
1058
|
-
counterparty_account_id: string;
|
|
1059
|
-
amount: number;
|
|
1060
|
-
wallet_uuid: string;
|
|
1061
|
-
currency_id: string;
|
|
1062
|
-
}
|
|
1063
|
-
interface Response {
|
|
1064
|
-
order_uuid: string;
|
|
1065
|
-
wallet_uuid: string;
|
|
1066
|
-
from_uuid: string;
|
|
1067
|
-
to_uuid: string;
|
|
1068
|
-
amount_from: number;
|
|
1069
|
-
amount_to: number;
|
|
1070
|
-
order_type: 'HIFI_SEPA_ONRAMP';
|
|
1071
|
-
status: OrderStatuses;
|
|
1072
|
-
created_at: string;
|
|
1073
|
-
info: string;
|
|
1074
|
-
meta: {
|
|
1075
|
-
idempotency_key: string;
|
|
1076
|
-
counterparty_account_id: string;
|
|
1077
|
-
fee: number;
|
|
1078
|
-
fee_currency: string;
|
|
1079
|
-
billing_amount: number;
|
|
1080
|
-
billing_currency: string;
|
|
1081
|
-
transaction_amount: number;
|
|
1082
|
-
transaction_currency: string;
|
|
1083
|
-
order_uuid: string;
|
|
1084
|
-
};
|
|
1085
|
-
id: string;
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
namespace HIFI_WIRE_OFFRAMP {
|
|
1089
|
-
interface Request {
|
|
1090
|
-
idempotency_key: string;
|
|
1091
|
-
counterparty_account_id: string;
|
|
1092
|
-
amount: number;
|
|
1093
|
-
wallet_uuid: string;
|
|
1094
|
-
currency_id: string;
|
|
1095
|
-
}
|
|
1096
|
-
interface Response {
|
|
1097
|
-
order_uuid: string;
|
|
1098
|
-
wallet_uuid: string;
|
|
1099
|
-
from_uuid: string;
|
|
1100
|
-
to_uuid: string;
|
|
1101
|
-
amount_from: number;
|
|
1102
|
-
amount_to: number;
|
|
1103
|
-
order_type: 'HIFI_WIRE_OFFRAMP';
|
|
1104
|
-
status: OrderStatuses;
|
|
1105
|
-
created_at: string;
|
|
1106
|
-
info: string;
|
|
1107
|
-
meta: {
|
|
1108
|
-
idempotency_key: string;
|
|
1109
|
-
counterparty_account_id: string;
|
|
1110
|
-
fee: number;
|
|
1111
|
-
fee_currency: string;
|
|
1112
|
-
billing_amount: number;
|
|
1113
|
-
billing_currency: string;
|
|
1114
|
-
transaction_amount: number;
|
|
1115
|
-
transaction_currency: string;
|
|
1116
|
-
order_uuid: string;
|
|
1117
|
-
};
|
|
1118
|
-
id: string;
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
namespace HIFI_ACH_OFFRAMP {
|
|
1122
|
-
interface Request {
|
|
1123
|
-
idempotency_key: string;
|
|
1124
|
-
counterparty_account_id: string;
|
|
1125
|
-
amount: number;
|
|
1126
|
-
wallet_uuid: string;
|
|
1127
|
-
currency_id: string;
|
|
1128
|
-
}
|
|
1129
|
-
interface Response {
|
|
1130
|
-
order_uuid: string;
|
|
1131
|
-
wallet_uuid: string;
|
|
1132
|
-
from_uuid: string;
|
|
1133
|
-
to_uuid: string;
|
|
1134
|
-
amount_from: number;
|
|
1135
|
-
amount_to: number;
|
|
1136
|
-
order_type: 'HIFI_ACH_OFFRAMP';
|
|
1137
|
-
status: OrderStatuses;
|
|
1138
|
-
created_at: string;
|
|
1139
|
-
info: string;
|
|
1140
|
-
meta: {
|
|
1141
|
-
idempotency_key: string;
|
|
1142
|
-
counterparty_account_id: string;
|
|
1143
|
-
fee: number;
|
|
1144
|
-
fee_currency: string;
|
|
1145
|
-
billing_amount: number;
|
|
1146
|
-
billing_currency: string;
|
|
1147
|
-
transaction_amount: number;
|
|
1148
|
-
transaction_currency: string;
|
|
1149
|
-
order_uuid: string;
|
|
1150
|
-
};
|
|
1151
|
-
id: string;
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
namespace HIFI_SEPA_OFFRAMP {
|
|
1155
|
-
interface Request {
|
|
1156
|
-
idempotency_key: string;
|
|
1157
|
-
counterparty_account_id: string;
|
|
1158
|
-
amount: number;
|
|
1159
|
-
wallet_uuid: string;
|
|
1160
|
-
currency_id: string;
|
|
1161
|
-
}
|
|
1162
|
-
interface Response {
|
|
1163
|
-
id: number;
|
|
1164
|
-
created_at: string;
|
|
1165
|
-
order_uuid: string;
|
|
1166
|
-
wallet_uuid: string;
|
|
1167
|
-
amount: number;
|
|
1168
|
-
status: OrderStatuses;
|
|
1169
|
-
counterparty_id: string;
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
989
|
namespace OMNIBUS_CRYPTO_WITHDRAWAL {
|
|
1173
990
|
interface Request {
|
|
1174
991
|
idempotency_key: string;
|
|
@@ -1260,6 +1077,38 @@ export declare namespace API {
|
|
|
1260
1077
|
id: number;
|
|
1261
1078
|
};
|
|
1262
1079
|
}
|
|
1080
|
+
namespace EXCHANGE_OMNI {
|
|
1081
|
+
type Request = {
|
|
1082
|
+
amount: number;
|
|
1083
|
+
wallet_uuid: string;
|
|
1084
|
+
from_uuid: string;
|
|
1085
|
+
to_uuid: string;
|
|
1086
|
+
};
|
|
1087
|
+
type Response = {
|
|
1088
|
+
created_at: string;
|
|
1089
|
+
order_uuid: string;
|
|
1090
|
+
wallet_uuid: string;
|
|
1091
|
+
from_uuid: string;
|
|
1092
|
+
to_uuid: string;
|
|
1093
|
+
amount_from: number;
|
|
1094
|
+
order_type: 'EXCHANGE_OMNI';
|
|
1095
|
+
status: OrderStatuses;
|
|
1096
|
+
amount_to: number;
|
|
1097
|
+
info: string;
|
|
1098
|
+
meta: {
|
|
1099
|
+
fee: number;
|
|
1100
|
+
order_uuid: string;
|
|
1101
|
+
to_address: string;
|
|
1102
|
+
fee_currency: string;
|
|
1103
|
+
billing_amount: number;
|
|
1104
|
+
transaction_amount: number;
|
|
1105
|
+
billing_amount_currency: string;
|
|
1106
|
+
transaction_amount_currency: string;
|
|
1107
|
+
network_fee: number;
|
|
1108
|
+
};
|
|
1109
|
+
id: string;
|
|
1110
|
+
};
|
|
1111
|
+
}
|
|
1263
1112
|
namespace TRANSFER_CARD_WHOLESALE {
|
|
1264
1113
|
type Request = {
|
|
1265
1114
|
amount: number;
|
|
@@ -1277,6 +1126,22 @@ export declare namespace API {
|
|
|
1277
1126
|
};
|
|
1278
1127
|
type Response = null;
|
|
1279
1128
|
}
|
|
1129
|
+
namespace WITHDRAW_CARD_PREPAID {
|
|
1130
|
+
type Request = {
|
|
1131
|
+
amount: number;
|
|
1132
|
+
wallet_uuid: string;
|
|
1133
|
+
card_id: string;
|
|
1134
|
+
};
|
|
1135
|
+
type Response = null;
|
|
1136
|
+
}
|
|
1137
|
+
namespace WITHDRAW_CARD_SUBACCOUNT {
|
|
1138
|
+
type Request = {
|
|
1139
|
+
amount: number;
|
|
1140
|
+
wallet_uuid: string;
|
|
1141
|
+
sub_account_id: string;
|
|
1142
|
+
};
|
|
1143
|
+
type Response = null;
|
|
1144
|
+
}
|
|
1280
1145
|
}
|
|
1281
1146
|
}
|
|
1282
1147
|
namespace Calc {
|
package/dist/constants.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export declare enum OrderType {
|
|
|
56
56
|
DEPOSIT_FIAT_SEPA = "DEPOSIT_FIAT_SEPA",
|
|
57
57
|
DEPOSIT_FIAT_SWIFT = "DEPOSIT_FIAT_SWIFT",
|
|
58
58
|
EXCHANGE_CRYPTO_INTERNAL = "EXCHANGE_CRYPTO_INTERNAL",
|
|
59
|
+
EXCHANGE_OMNI = "EXCHANGE_OMNI",
|
|
59
60
|
TRANSFER_CARD_PREPAID = "TRANSFER_CARD_PREPAID",
|
|
60
61
|
CARD_ISSUING_FEE = "CARD_ISSUING_FEE",
|
|
61
62
|
TRANSFER_CARD_SUBACCOUNT = "TRANSFER_CARD_SUBACCOUNT",
|
|
@@ -82,7 +83,9 @@ export declare enum OrderType {
|
|
|
82
83
|
L2F_WIRE_OFFRAMP = "L2F_WIRE_OFFRAMP",
|
|
83
84
|
L2F_SWIFT_OFFRAMP = "L2F_SWIFT_OFFRAMP",
|
|
84
85
|
L2F_SEPA_OFFRAMP = "L2F_SEPA_OFFRAMP",
|
|
85
|
-
OMNIBUS_CRYPTO_WITHDRAWAL = "OMNIBUS_CRYPTO_WITHDRAWAL"
|
|
86
|
+
OMNIBUS_CRYPTO_WITHDRAWAL = "OMNIBUS_CRYPTO_WITHDRAWAL",
|
|
87
|
+
WITHDRAW_CARD_PREPAID = "WITHDRAW_CARD_PREPAID",
|
|
88
|
+
WITHDRAW_CARD_SUBACCOUNT = "WITHDRAW_CARD_SUBACCOUNT"
|
|
86
89
|
}
|
|
87
90
|
export declare enum WalletTransactionRecordType {
|
|
88
91
|
CARD_PROVIDER_DEPOSIT = "CARD_PROVIDER_DEPOSIT",
|
|
@@ -93,6 +96,7 @@ export declare enum WalletTransactionRecordType {
|
|
|
93
96
|
DEPOSIT_INTERNAL = "DEPOSIT_INTERNAL",
|
|
94
97
|
DEPOSIT_MANUAL = "DEPOSIT_MANUAL",
|
|
95
98
|
EXCHANGE_CRYPTO_INTERNAL = "EXCHANGE_CRYPTO_INTERNAL",
|
|
99
|
+
EXCHANGE_OMNI = "EXCHANGE_OMNI",
|
|
96
100
|
EXT_EXCHANGE = "EXT_EXCHANGE",
|
|
97
101
|
FEE = "FEE",
|
|
98
102
|
HIFI_ACH_OFFRAMP = "HIFI_ACH_OFFRAMP",
|
|
@@ -123,7 +127,9 @@ export declare enum WalletTransactionRecordType {
|
|
|
123
127
|
L2F_ACH_OFFRAMP = "L2F_ACH_OFFRAMP",
|
|
124
128
|
L2F_WIRE_OFFRAMP = "L2F_WIRE_OFFRAMP",
|
|
125
129
|
L2F_SWIFT_OFFRAMP = "L2F_SWIFT_OFFRAMP",
|
|
126
|
-
L2F_SEPA_OFFRAMP = "L2F_SEPA_OFFRAMP"
|
|
130
|
+
L2F_SEPA_OFFRAMP = "L2F_SEPA_OFFRAMP",
|
|
131
|
+
WITHDRAW_CARD_PREPAID = "WITHDRAW_CARD_PREPAID",
|
|
132
|
+
WITHDRAW_CARD_SUBACCOUNT = "WITHDRAW_CARD_SUBACCOUNT"
|
|
127
133
|
}
|
|
128
134
|
export declare enum RequestStatus {
|
|
129
135
|
NONE = "none",
|
package/dist/constants.js
CHANGED
|
@@ -61,6 +61,7 @@ var OrderType;
|
|
|
61
61
|
OrderType["DEPOSIT_FIAT_SEPA"] = "DEPOSIT_FIAT_SEPA";
|
|
62
62
|
OrderType["DEPOSIT_FIAT_SWIFT"] = "DEPOSIT_FIAT_SWIFT";
|
|
63
63
|
OrderType["EXCHANGE_CRYPTO_INTERNAL"] = "EXCHANGE_CRYPTO_INTERNAL";
|
|
64
|
+
OrderType["EXCHANGE_OMNI"] = "EXCHANGE_OMNI";
|
|
64
65
|
OrderType["TRANSFER_CARD_PREPAID"] = "TRANSFER_CARD_PREPAID";
|
|
65
66
|
OrderType["CARD_ISSUING_FEE"] = "CARD_ISSUING_FEE";
|
|
66
67
|
OrderType["TRANSFER_CARD_SUBACCOUNT"] = "TRANSFER_CARD_SUBACCOUNT";
|
|
@@ -88,6 +89,8 @@ var OrderType;
|
|
|
88
89
|
OrderType["L2F_SWIFT_OFFRAMP"] = "L2F_SWIFT_OFFRAMP";
|
|
89
90
|
OrderType["L2F_SEPA_OFFRAMP"] = "L2F_SEPA_OFFRAMP";
|
|
90
91
|
OrderType["OMNIBUS_CRYPTO_WITHDRAWAL"] = "OMNIBUS_CRYPTO_WITHDRAWAL";
|
|
92
|
+
OrderType["WITHDRAW_CARD_PREPAID"] = "WITHDRAW_CARD_PREPAID";
|
|
93
|
+
OrderType["WITHDRAW_CARD_SUBACCOUNT"] = "WITHDRAW_CARD_SUBACCOUNT";
|
|
91
94
|
})(OrderType || (exports.OrderType = OrderType = {}));
|
|
92
95
|
var WalletTransactionRecordType;
|
|
93
96
|
(function (WalletTransactionRecordType) {
|
|
@@ -99,6 +102,7 @@ var WalletTransactionRecordType;
|
|
|
99
102
|
WalletTransactionRecordType["DEPOSIT_INTERNAL"] = "DEPOSIT_INTERNAL";
|
|
100
103
|
WalletTransactionRecordType["DEPOSIT_MANUAL"] = "DEPOSIT_MANUAL";
|
|
101
104
|
WalletTransactionRecordType["EXCHANGE_CRYPTO_INTERNAL"] = "EXCHANGE_CRYPTO_INTERNAL";
|
|
105
|
+
WalletTransactionRecordType["EXCHANGE_OMNI"] = "EXCHANGE_OMNI";
|
|
102
106
|
WalletTransactionRecordType["EXT_EXCHANGE"] = "EXT_EXCHANGE";
|
|
103
107
|
WalletTransactionRecordType["FEE"] = "FEE";
|
|
104
108
|
WalletTransactionRecordType["HIFI_ACH_OFFRAMP"] = "HIFI_ACH_OFFRAMP";
|
|
@@ -130,6 +134,8 @@ var WalletTransactionRecordType;
|
|
|
130
134
|
WalletTransactionRecordType["L2F_WIRE_OFFRAMP"] = "L2F_WIRE_OFFRAMP";
|
|
131
135
|
WalletTransactionRecordType["L2F_SWIFT_OFFRAMP"] = "L2F_SWIFT_OFFRAMP";
|
|
132
136
|
WalletTransactionRecordType["L2F_SEPA_OFFRAMP"] = "L2F_SEPA_OFFRAMP";
|
|
137
|
+
WalletTransactionRecordType["WITHDRAW_CARD_PREPAID"] = "WITHDRAW_CARD_PREPAID";
|
|
138
|
+
WalletTransactionRecordType["WITHDRAW_CARD_SUBACCOUNT"] = "WITHDRAW_CARD_SUBACCOUNT";
|
|
133
139
|
})(WalletTransactionRecordType || (exports.WalletTransactionRecordType = WalletTransactionRecordType = {}));
|
|
134
140
|
var RequestStatus;
|
|
135
141
|
(function (RequestStatus) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "squarefi-bff-api-module",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.0",
|
|
4
4
|
"description": "Squarefi BFF API client module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
"husky": "^9.1.7",
|
|
42
42
|
"jest": "^29.x.x",
|
|
43
43
|
"openapi-typescript": "^7.8.0",
|
|
44
|
-
"prettier": "^3.6.2",
|
|
45
44
|
"ts-jest": "^29.x.x",
|
|
46
45
|
"ts-node": "^10.9.2",
|
|
47
46
|
"typescript": "^5.x.x"
|
package/src/api/orders.ts
CHANGED
|
@@ -70,53 +70,26 @@ export const orders = {
|
|
|
70
70
|
{ data },
|
|
71
71
|
),
|
|
72
72
|
|
|
73
|
-
[OrderType.
|
|
74
|
-
data: API.Orders.Create.ByOrderType.
|
|
75
|
-
): Promise<API.Orders.Create.ByOrderType.
|
|
76
|
-
apiClientV1.postRequest<API.Orders.Create.ByOrderType.
|
|
73
|
+
[OrderType.EXCHANGE_OMNI]: (
|
|
74
|
+
data: API.Orders.Create.ByOrderType.EXCHANGE_OMNI.Request,
|
|
75
|
+
): Promise<API.Orders.Create.ByOrderType.EXCHANGE_OMNI.Response> =>
|
|
76
|
+
apiClientV1.postRequest<API.Orders.Create.ByOrderType.EXCHANGE_OMNI.Response>('/orders/EXCHANGE_OMNI', {
|
|
77
77
|
data,
|
|
78
78
|
}),
|
|
79
79
|
|
|
80
|
-
[OrderType.
|
|
81
|
-
data: API.Orders.Create.ByOrderType.
|
|
82
|
-
): Promise<API.Orders.Create.ByOrderType.
|
|
83
|
-
apiClientV1.postRequest<API.Orders.Create.ByOrderType.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
[OrderType.HIFI_SEPA_ONRAMP]: (
|
|
88
|
-
data: API.Orders.Create.ByOrderType.HIFI_SEPA_ONRAMP.Request,
|
|
89
|
-
): Promise<API.Orders.Create.ByOrderType.HIFI_SEPA_ONRAMP.Response> =>
|
|
90
|
-
apiClientV1.postRequest<API.Orders.Create.ByOrderType.HIFI_SEPA_ONRAMP.Response>('/orders/HIFI_SEPA_ONRAMP', {
|
|
91
|
-
data,
|
|
92
|
-
}),
|
|
93
|
-
|
|
94
|
-
[OrderType.HIFI_WIRE_OFFRAMP]: (
|
|
95
|
-
data: API.Orders.Create.ByOrderType.HIFI_WIRE_OFFRAMP.Request,
|
|
96
|
-
): Promise<API.Orders.Create.ByOrderType.HIFI_WIRE_OFFRAMP.Response> =>
|
|
97
|
-
apiClientV1.postRequest<API.Orders.Create.ByOrderType.HIFI_WIRE_OFFRAMP.Response>('/orders/HIFI_WIRE_OFFRAMP', {
|
|
98
|
-
data,
|
|
99
|
-
}),
|
|
100
|
-
|
|
101
|
-
[OrderType.HIFI_ACH_OFFRAMP]: (
|
|
102
|
-
data: API.Orders.Create.ByOrderType.HIFI_ACH_OFFRAMP.Request,
|
|
103
|
-
): Promise<API.Orders.Create.ByOrderType.HIFI_ACH_OFFRAMP.Response> =>
|
|
104
|
-
apiClientV1.postRequest<API.Orders.Create.ByOrderType.HIFI_ACH_OFFRAMP.Response>('/orders/HIFI_ACH_OFFRAMP', {
|
|
105
|
-
data,
|
|
106
|
-
}),
|
|
80
|
+
[OrderType.WITHDRAW_CARD_PREPAID]: (
|
|
81
|
+
data: API.Orders.Create.ByOrderType.WITHDRAW_CARD_PREPAID.Request,
|
|
82
|
+
): Promise<API.Orders.Create.ByOrderType.WITHDRAW_CARD_PREPAID.Response> =>
|
|
83
|
+
apiClientV1.postRequest<API.Orders.Create.ByOrderType.WITHDRAW_CARD_PREPAID.Response>(
|
|
84
|
+
'/orders/WITHDRAW_CARD_PREPAID',
|
|
85
|
+
{ data },
|
|
86
|
+
),
|
|
107
87
|
|
|
108
|
-
[OrderType.
|
|
109
|
-
data: API.Orders.Create.ByOrderType.
|
|
110
|
-
): Promise<API.Orders.Create.ByOrderType.
|
|
111
|
-
apiClientV1.postRequest<API.Orders.Create.ByOrderType.
|
|
112
|
-
|
|
113
|
-
}),
|
|
114
|
-
[OrderType.TBD_SWIFT_WITHDRAWAL]: (
|
|
115
|
-
// TODO: ITS MOCK ORDER TYPE
|
|
116
|
-
data: API.Orders.Create.ByOrderType.TBD_SWIFT_WITHDRAWAL.Request,
|
|
117
|
-
): Promise<API.Orders.Create.ByOrderType.TBD_SWIFT_WITHDRAWAL.Response> =>
|
|
118
|
-
apiClientV1.postRequest<API.Orders.Create.ByOrderType.TBD_SWIFT_WITHDRAWAL.Response>(
|
|
119
|
-
'/orders/TBD_SWIFT_WITHDRAWAL',
|
|
88
|
+
[OrderType.WITHDRAW_CARD_SUBACCOUNT]: (
|
|
89
|
+
data: API.Orders.Create.ByOrderType.WITHDRAW_CARD_SUBACCOUNT.Request,
|
|
90
|
+
): Promise<API.Orders.Create.ByOrderType.WITHDRAW_CARD_SUBACCOUNT.Response> =>
|
|
91
|
+
apiClientV1.postRequest<API.Orders.Create.ByOrderType.WITHDRAW_CARD_SUBACCOUNT.Response>(
|
|
92
|
+
'/orders/WITHDRAW_CARD_SUBACCOUNT',
|
|
120
93
|
{ data },
|
|
121
94
|
),
|
|
122
95
|
},
|
|
@@ -1772,6 +1772,7 @@ export interface components {
|
|
|
1772
1772
|
usd_value_of_crypto?: string | null;
|
|
1773
1773
|
usd_value_of_fiat?: string | null;
|
|
1774
1774
|
occupation?: string | null;
|
|
1775
|
+
occupation_other?: string | null;
|
|
1775
1776
|
/**
|
|
1776
1777
|
* @default UNVERIFIED
|
|
1777
1778
|
* @enum {string}
|
|
@@ -1875,6 +1876,7 @@ export interface components {
|
|
|
1875
1876
|
usd_value_of_crypto?: string | null;
|
|
1876
1877
|
usd_value_of_fiat?: string | null;
|
|
1877
1878
|
occupation?: string | null;
|
|
1879
|
+
occupation_other?: string | null;
|
|
1878
1880
|
/** @enum {string|null} */
|
|
1879
1881
|
employment_status?: "EMPLOYEE" | "SELF_EMPLOYED" | "RETIRED" | "UNEMPLOYED" | "OTHER" | null;
|
|
1880
1882
|
employment_description?: string | null;
|
package/src/api/types/types.ts
CHANGED
|
@@ -1320,201 +1320,6 @@ export namespace API {
|
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
|
-
export namespace HIFI_WIRE_ONRAMP {
|
|
1324
|
-
export interface Request {
|
|
1325
|
-
idempotency_key: string;
|
|
1326
|
-
counterparty_account_id: string;
|
|
1327
|
-
amount: number;
|
|
1328
|
-
wallet_uuid: string;
|
|
1329
|
-
currency_id: string;
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
export interface Response {
|
|
1333
|
-
order_uuid: string;
|
|
1334
|
-
wallet_uuid: string;
|
|
1335
|
-
from_uuid: string;
|
|
1336
|
-
to_uuid: string;
|
|
1337
|
-
amount_from: number;
|
|
1338
|
-
amount_to: number;
|
|
1339
|
-
order_type: 'HIFI_WIRE_ONRAMP';
|
|
1340
|
-
status: OrderStatuses;
|
|
1341
|
-
created_at: string;
|
|
1342
|
-
info: string;
|
|
1343
|
-
meta: {
|
|
1344
|
-
idempotency_key: string;
|
|
1345
|
-
counterparty_account_id: string;
|
|
1346
|
-
fee: number;
|
|
1347
|
-
fee_currency: string;
|
|
1348
|
-
billing_amount: number;
|
|
1349
|
-
billing_currency: string;
|
|
1350
|
-
transaction_amount: number;
|
|
1351
|
-
transaction_currency: string;
|
|
1352
|
-
order_uuid: string;
|
|
1353
|
-
};
|
|
1354
|
-
id: string;
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
export namespace HIFI_ACH_ONRAMP {
|
|
1359
|
-
export interface Request {
|
|
1360
|
-
idempotency_key: string;
|
|
1361
|
-
counterparty_account_id: string;
|
|
1362
|
-
amount: number;
|
|
1363
|
-
wallet_uuid: string;
|
|
1364
|
-
currency_id: string;
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
export interface Response {
|
|
1368
|
-
order_uuid: string;
|
|
1369
|
-
wallet_uuid: string;
|
|
1370
|
-
from_uuid: string;
|
|
1371
|
-
to_uuid: string;
|
|
1372
|
-
amount_from: number;
|
|
1373
|
-
amount_to: number;
|
|
1374
|
-
order_type: 'HIFI_ACH_ONRAMP';
|
|
1375
|
-
status: OrderStatuses;
|
|
1376
|
-
created_at: string;
|
|
1377
|
-
info: string;
|
|
1378
|
-
meta: {
|
|
1379
|
-
idempotency_key: string;
|
|
1380
|
-
counterparty_account_id: string;
|
|
1381
|
-
fee: number;
|
|
1382
|
-
fee_currency: string;
|
|
1383
|
-
billing_amount: number;
|
|
1384
|
-
billing_currency: string;
|
|
1385
|
-
transaction_amount: number;
|
|
1386
|
-
transaction_currency: string;
|
|
1387
|
-
order_uuid: string;
|
|
1388
|
-
};
|
|
1389
|
-
id: string;
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
export namespace HIFI_SEPA_ONRAMP {
|
|
1394
|
-
export interface Request {
|
|
1395
|
-
idempotency_key: string;
|
|
1396
|
-
counterparty_account_id: string;
|
|
1397
|
-
amount: number;
|
|
1398
|
-
wallet_uuid: string;
|
|
1399
|
-
currency_id: string;
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
export interface Response {
|
|
1403
|
-
order_uuid: string;
|
|
1404
|
-
wallet_uuid: string;
|
|
1405
|
-
from_uuid: string;
|
|
1406
|
-
to_uuid: string;
|
|
1407
|
-
amount_from: number;
|
|
1408
|
-
amount_to: number;
|
|
1409
|
-
order_type: 'HIFI_SEPA_ONRAMP';
|
|
1410
|
-
status: OrderStatuses;
|
|
1411
|
-
created_at: string;
|
|
1412
|
-
info: string;
|
|
1413
|
-
meta: {
|
|
1414
|
-
idempotency_key: string;
|
|
1415
|
-
counterparty_account_id: string;
|
|
1416
|
-
fee: number;
|
|
1417
|
-
fee_currency: string;
|
|
1418
|
-
billing_amount: number;
|
|
1419
|
-
billing_currency: string;
|
|
1420
|
-
transaction_amount: number;
|
|
1421
|
-
transaction_currency: string;
|
|
1422
|
-
order_uuid: string;
|
|
1423
|
-
};
|
|
1424
|
-
id: string;
|
|
1425
|
-
}
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
export namespace HIFI_WIRE_OFFRAMP {
|
|
1429
|
-
export interface Request {
|
|
1430
|
-
idempotency_key: string;
|
|
1431
|
-
counterparty_account_id: string;
|
|
1432
|
-
amount: number;
|
|
1433
|
-
wallet_uuid: string;
|
|
1434
|
-
currency_id: string;
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
export interface Response {
|
|
1438
|
-
order_uuid: string;
|
|
1439
|
-
wallet_uuid: string;
|
|
1440
|
-
from_uuid: string;
|
|
1441
|
-
to_uuid: string;
|
|
1442
|
-
amount_from: number;
|
|
1443
|
-
amount_to: number;
|
|
1444
|
-
order_type: 'HIFI_WIRE_OFFRAMP';
|
|
1445
|
-
status: OrderStatuses;
|
|
1446
|
-
created_at: string;
|
|
1447
|
-
info: string;
|
|
1448
|
-
meta: {
|
|
1449
|
-
idempotency_key: string;
|
|
1450
|
-
counterparty_account_id: string;
|
|
1451
|
-
fee: number;
|
|
1452
|
-
fee_currency: string;
|
|
1453
|
-
billing_amount: number;
|
|
1454
|
-
billing_currency: string;
|
|
1455
|
-
transaction_amount: number;
|
|
1456
|
-
transaction_currency: string;
|
|
1457
|
-
order_uuid: string;
|
|
1458
|
-
};
|
|
1459
|
-
id: string;
|
|
1460
|
-
}
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
export namespace HIFI_ACH_OFFRAMP {
|
|
1464
|
-
export interface Request {
|
|
1465
|
-
idempotency_key: string;
|
|
1466
|
-
counterparty_account_id: string;
|
|
1467
|
-
amount: number;
|
|
1468
|
-
wallet_uuid: string;
|
|
1469
|
-
currency_id: string;
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
export interface Response {
|
|
1473
|
-
order_uuid: string;
|
|
1474
|
-
wallet_uuid: string;
|
|
1475
|
-
from_uuid: string;
|
|
1476
|
-
to_uuid: string;
|
|
1477
|
-
amount_from: number;
|
|
1478
|
-
amount_to: number;
|
|
1479
|
-
order_type: 'HIFI_ACH_OFFRAMP';
|
|
1480
|
-
status: OrderStatuses;
|
|
1481
|
-
created_at: string;
|
|
1482
|
-
info: string;
|
|
1483
|
-
meta: {
|
|
1484
|
-
idempotency_key: string;
|
|
1485
|
-
counterparty_account_id: string;
|
|
1486
|
-
fee: number;
|
|
1487
|
-
fee_currency: string;
|
|
1488
|
-
billing_amount: number;
|
|
1489
|
-
billing_currency: string;
|
|
1490
|
-
transaction_amount: number;
|
|
1491
|
-
transaction_currency: string;
|
|
1492
|
-
order_uuid: string;
|
|
1493
|
-
};
|
|
1494
|
-
id: string;
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
export namespace HIFI_SEPA_OFFRAMP {
|
|
1499
|
-
export interface Request {
|
|
1500
|
-
idempotency_key: string;
|
|
1501
|
-
counterparty_account_id: string;
|
|
1502
|
-
amount: number;
|
|
1503
|
-
wallet_uuid: string;
|
|
1504
|
-
currency_id: string;
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
export interface Response {
|
|
1508
|
-
id: number;
|
|
1509
|
-
created_at: string;
|
|
1510
|
-
order_uuid: string;
|
|
1511
|
-
wallet_uuid: string;
|
|
1512
|
-
amount: number;
|
|
1513
|
-
status: OrderStatuses;
|
|
1514
|
-
counterparty_id: string;
|
|
1515
|
-
}
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
1323
|
export namespace OMNIBUS_CRYPTO_WITHDRAWAL {
|
|
1519
1324
|
export interface Request {
|
|
1520
1325
|
idempotency_key: string;
|
|
@@ -1612,6 +1417,39 @@ export namespace API {
|
|
|
1612
1417
|
};
|
|
1613
1418
|
}
|
|
1614
1419
|
|
|
1420
|
+
export namespace EXCHANGE_OMNI {
|
|
1421
|
+
export type Request = {
|
|
1422
|
+
amount: number;
|
|
1423
|
+
wallet_uuid: string;
|
|
1424
|
+
from_uuid: string;
|
|
1425
|
+
to_uuid: string;
|
|
1426
|
+
};
|
|
1427
|
+
export type Response = {
|
|
1428
|
+
created_at: string;
|
|
1429
|
+
order_uuid: string;
|
|
1430
|
+
wallet_uuid: string;
|
|
1431
|
+
from_uuid: string;
|
|
1432
|
+
to_uuid: string;
|
|
1433
|
+
amount_from: number;
|
|
1434
|
+
order_type: 'EXCHANGE_OMNI';
|
|
1435
|
+
status: OrderStatuses;
|
|
1436
|
+
amount_to: number;
|
|
1437
|
+
info: string;
|
|
1438
|
+
meta: {
|
|
1439
|
+
fee: number;
|
|
1440
|
+
order_uuid: string;
|
|
1441
|
+
to_address: string;
|
|
1442
|
+
fee_currency: string;
|
|
1443
|
+
billing_amount: number;
|
|
1444
|
+
transaction_amount: number;
|
|
1445
|
+
billing_amount_currency: string;
|
|
1446
|
+
transaction_amount_currency: string;
|
|
1447
|
+
network_fee: number;
|
|
1448
|
+
};
|
|
1449
|
+
id: string;
|
|
1450
|
+
};
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1615
1453
|
export namespace TRANSFER_CARD_WHOLESALE {
|
|
1616
1454
|
export type Request = {
|
|
1617
1455
|
amount: number;
|
|
@@ -1630,6 +1468,25 @@ export namespace API {
|
|
|
1630
1468
|
};
|
|
1631
1469
|
export type Response = null;
|
|
1632
1470
|
}
|
|
1471
|
+
export namespace WITHDRAW_CARD_PREPAID {
|
|
1472
|
+
export type Request = {
|
|
1473
|
+
amount: number;
|
|
1474
|
+
wallet_uuid: string;
|
|
1475
|
+
card_id: string;
|
|
1476
|
+
};
|
|
1477
|
+
|
|
1478
|
+
export type Response = null;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
export namespace WITHDRAW_CARD_SUBACCOUNT {
|
|
1482
|
+
export type Request = {
|
|
1483
|
+
amount: number;
|
|
1484
|
+
wallet_uuid: string;
|
|
1485
|
+
sub_account_id: string;
|
|
1486
|
+
};
|
|
1487
|
+
|
|
1488
|
+
export type Response = null;
|
|
1489
|
+
}
|
|
1633
1490
|
}
|
|
1634
1491
|
}
|
|
1635
1492
|
export namespace Calc {
|
package/src/constants.ts
CHANGED
|
@@ -67,6 +67,7 @@ export enum OrderType {
|
|
|
67
67
|
DEPOSIT_FIAT_SEPA = 'DEPOSIT_FIAT_SEPA',
|
|
68
68
|
DEPOSIT_FIAT_SWIFT = 'DEPOSIT_FIAT_SWIFT',
|
|
69
69
|
EXCHANGE_CRYPTO_INTERNAL = 'EXCHANGE_CRYPTO_INTERNAL',
|
|
70
|
+
EXCHANGE_OMNI = 'EXCHANGE_OMNI',
|
|
70
71
|
TRANSFER_CARD_PREPAID = 'TRANSFER_CARD_PREPAID',
|
|
71
72
|
CARD_ISSUING_FEE = 'CARD_ISSUING_FEE',
|
|
72
73
|
TRANSFER_CARD_SUBACCOUNT = 'TRANSFER_CARD_SUBACCOUNT',
|
|
@@ -94,6 +95,8 @@ export enum OrderType {
|
|
|
94
95
|
L2F_SWIFT_OFFRAMP = 'L2F_SWIFT_OFFRAMP',
|
|
95
96
|
L2F_SEPA_OFFRAMP = 'L2F_SEPA_OFFRAMP',
|
|
96
97
|
OMNIBUS_CRYPTO_WITHDRAWAL = 'OMNIBUS_CRYPTO_WITHDRAWAL',
|
|
98
|
+
WITHDRAW_CARD_PREPAID = 'WITHDRAW_CARD_PREPAID',
|
|
99
|
+
WITHDRAW_CARD_SUBACCOUNT = 'WITHDRAW_CARD_SUBACCOUNT',
|
|
97
100
|
}
|
|
98
101
|
|
|
99
102
|
export enum WalletTransactionRecordType {
|
|
@@ -105,6 +108,7 @@ export enum WalletTransactionRecordType {
|
|
|
105
108
|
DEPOSIT_INTERNAL = 'DEPOSIT_INTERNAL',
|
|
106
109
|
DEPOSIT_MANUAL = 'DEPOSIT_MANUAL',
|
|
107
110
|
EXCHANGE_CRYPTO_INTERNAL = 'EXCHANGE_CRYPTO_INTERNAL',
|
|
111
|
+
EXCHANGE_OMNI = 'EXCHANGE_OMNI',
|
|
108
112
|
EXT_EXCHANGE = 'EXT_EXCHANGE',
|
|
109
113
|
FEE = 'FEE',
|
|
110
114
|
HIFI_ACH_OFFRAMP = 'HIFI_ACH_OFFRAMP',
|
|
@@ -136,6 +140,8 @@ export enum WalletTransactionRecordType {
|
|
|
136
140
|
L2F_WIRE_OFFRAMP = 'L2F_WIRE_OFFRAMP',
|
|
137
141
|
L2F_SWIFT_OFFRAMP = 'L2F_SWIFT_OFFRAMP',
|
|
138
142
|
L2F_SEPA_OFFRAMP = 'L2F_SEPA_OFFRAMP',
|
|
143
|
+
WITHDRAW_CARD_PREPAID = 'WITHDRAW_CARD_PREPAID',
|
|
144
|
+
WITHDRAW_CARD_SUBACCOUNT = 'WITHDRAW_CARD_SUBACCOUNT',
|
|
139
145
|
}
|
|
140
146
|
|
|
141
147
|
export enum RequestStatus {
|