squarefi-bff-api-module 1.26.14 → 1.27.1
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 +5 -0
- package/.prettierrc +7 -0
- package/dist/api/auth.js +18 -6
- package/dist/api/exchange.js +9 -3
- package/dist/api/issuing.js +14 -3
- package/dist/api/orders.d.ts +4 -1
- package/dist/api/orders.js +12 -3
- package/dist/api/types/types.d.ts +198 -441
- package/dist/constants.d.ts +15 -2
- package/dist/constants.js +13 -0
- package/package.json +5 -2
- package/src/api/auth.ts +18 -5
- package/src/api/bank-data.ts +1 -1
- package/src/api/counterparties.ts +7 -7
- package/src/api/exchange.ts +16 -7
- package/src/api/frontend.ts +1 -1
- package/src/api/issuing.ts +31 -17
- package/src/api/kyc.ts +1 -1
- package/src/api/orders.ts +79 -48
- package/src/api/persona.ts +1 -1
- package/src/api/totp.ts +2 -2
- package/src/api/types/types.ts +214 -521
- package/src/api/wallets.ts +5 -5
- package/src/constants.ts +13 -0
- package/src/hooks/useCalc.ts +3 -3
- package/src/hooks/useSupabaseSubscription/useSupabaseSubscription.ts +1 -1
- package/src/utils/apiClientFactory.ts +13 -4
package/src/api/types/types.ts
CHANGED
|
@@ -17,30 +17,27 @@ import {
|
|
|
17
17
|
WalletTransactionRecordType,
|
|
18
18
|
WalletTransactionStatus,
|
|
19
19
|
WalletTransactionType,
|
|
20
|
-
} from
|
|
21
|
-
import { WalletType } from
|
|
22
|
-
import { components, operations } from
|
|
20
|
+
} from '../../constants';
|
|
21
|
+
import { WalletType } from '../..';
|
|
22
|
+
import { components, operations } from './autogen/apiV2.types';
|
|
23
23
|
|
|
24
24
|
export namespace API {
|
|
25
25
|
export namespace Auth {
|
|
26
26
|
export namespace RefreshToken {
|
|
27
|
-
export type Request =
|
|
28
|
-
operations["AuthController_refreshToken"]["requestBody"]["content"]["application/json"];
|
|
27
|
+
export type Request = operations['AuthController_refreshToken']['requestBody']['content']['application/json'];
|
|
29
28
|
export type Response =
|
|
30
|
-
operations[
|
|
29
|
+
operations['AuthController_refreshToken']['responses']['200']['content']['application/json'];
|
|
31
30
|
}
|
|
32
31
|
export namespace Telegram {
|
|
33
32
|
export namespace Signin {
|
|
34
|
-
export type Request =
|
|
35
|
-
operations["AuthTelegramController_signIn"]["requestBody"]["content"]["application/json"];
|
|
33
|
+
export type Request = operations['AuthTelegramController_signIn']['requestBody']['content']['application/json'];
|
|
36
34
|
export type Response =
|
|
37
|
-
operations[
|
|
35
|
+
operations['AuthTelegramController_signIn']['responses']['200']['content']['application/json'];
|
|
38
36
|
}
|
|
39
37
|
export namespace Signup {
|
|
40
|
-
export type Request =
|
|
41
|
-
operations["AuthTelegramController_signUp"]["requestBody"]["content"]["application/json"];
|
|
38
|
+
export type Request = operations['AuthTelegramController_signUp']['requestBody']['content']['application/json'];
|
|
42
39
|
export type Response =
|
|
43
|
-
operations[
|
|
40
|
+
operations['AuthTelegramController_signUp']['responses']['200']['content']['application/json'];
|
|
44
41
|
}
|
|
45
42
|
}
|
|
46
43
|
|
|
@@ -59,8 +56,7 @@ export namespace API {
|
|
|
59
56
|
|
|
60
57
|
export namespace SignIn {
|
|
61
58
|
export namespace ByType {
|
|
62
|
-
export type Request =
|
|
63
|
-
operations["AuthController_signIn"]["requestBody"]["content"]["application/json"];
|
|
59
|
+
export type Request = operations['AuthController_signIn']['requestBody']['content']['application/json'];
|
|
64
60
|
}
|
|
65
61
|
|
|
66
62
|
export namespace Omni {
|
|
@@ -89,8 +85,7 @@ export namespace API {
|
|
|
89
85
|
|
|
90
86
|
export namespace SignUp {
|
|
91
87
|
export namespace ByType {
|
|
92
|
-
export type Request =
|
|
93
|
-
operations["AuthController_signUp"]["requestBody"]["content"]["application/json"];
|
|
88
|
+
export type Request = operations['AuthController_signUp']['requestBody']['content']['application/json'];
|
|
94
89
|
}
|
|
95
90
|
|
|
96
91
|
export namespace Password {
|
|
@@ -118,10 +113,9 @@ export namespace API {
|
|
|
118
113
|
}
|
|
119
114
|
export namespace BankData {
|
|
120
115
|
export namespace GetBankDataByAccountNumber {
|
|
121
|
-
export type Request =
|
|
122
|
-
operations["BankDataController_getBankDataByCode"]["parameters"]["query"];
|
|
116
|
+
export type Request = operations['BankDataController_getBankDataByCode']['parameters']['query'];
|
|
123
117
|
export type Response =
|
|
124
|
-
operations[
|
|
118
|
+
operations['BankDataController_getBankDataByCode']['responses']['200']['content']['application/json'];
|
|
125
119
|
}
|
|
126
120
|
}
|
|
127
121
|
|
|
@@ -277,29 +271,20 @@ export namespace API {
|
|
|
277
271
|
export namespace CardsList {
|
|
278
272
|
export namespace Request {
|
|
279
273
|
export type CardsListSortingFields = Partial<
|
|
280
|
-
Pick<
|
|
281
|
-
IssuingCardListItem,
|
|
282
|
-
| "created_at"
|
|
283
|
-
| "card_status"
|
|
284
|
-
| "last4"
|
|
285
|
-
| "nick_name"
|
|
286
|
-
| "name_on_card"
|
|
287
|
-
| "card_id"
|
|
288
|
-
>
|
|
274
|
+
Pick<IssuingCardListItem, 'created_at' | 'card_status' | 'last4' | 'nick_name' | 'name_on_card' | 'card_id'>
|
|
289
275
|
>;
|
|
290
276
|
export type CardsListFilteringFields = Partial<IssuingCardListItem>;
|
|
291
277
|
|
|
292
|
-
export type CardsListRequestCommonParams =
|
|
293
|
-
API.Common.
|
|
294
|
-
|
|
295
|
-
API.Common.Filtering.Request<CardsListFilteringFields>;
|
|
278
|
+
export type CardsListRequestCommonParams = API.Common.Pagination.Request &
|
|
279
|
+
API.Common.Sorting.Request<CardsListSortingFields> &
|
|
280
|
+
API.Common.Filtering.Request<CardsListFilteringFields>;
|
|
296
281
|
|
|
297
282
|
export interface ByWalletUuid extends CardsListRequestCommonParams {
|
|
298
283
|
wallet_uuid: string;
|
|
299
284
|
}
|
|
300
285
|
|
|
301
286
|
export interface BySubaccountAndWalletUuid extends ByWalletUuid {
|
|
302
|
-
filter?: Record<
|
|
287
|
+
filter?: Record<'fiat_account', Record<'type', SubAccountType>>;
|
|
303
288
|
}
|
|
304
289
|
|
|
305
290
|
export type BySubAccountAndWalletId = ByWalletUuid & {
|
|
@@ -489,8 +474,7 @@ export namespace API {
|
|
|
489
474
|
memo?: string;
|
|
490
475
|
}
|
|
491
476
|
|
|
492
|
-
export interface DestinationListItemWithExternalBankingData
|
|
493
|
-
extends DestinationListItemCommonFields {
|
|
477
|
+
export interface DestinationListItemWithExternalBankingData extends DestinationListItemCommonFields {
|
|
494
478
|
type:
|
|
495
479
|
| CounterpartyDestinationType.DOMESTIC_WIRE
|
|
496
480
|
| CounterpartyDestinationType.ACH
|
|
@@ -500,11 +484,8 @@ export namespace API {
|
|
|
500
484
|
external_crypto_data?: never;
|
|
501
485
|
}
|
|
502
486
|
|
|
503
|
-
export interface DestinationListItemWithExternalCryptoData
|
|
504
|
-
|
|
505
|
-
type:
|
|
506
|
-
| CounterpartyDestinationType.CRYPTO_EXTERNAL
|
|
507
|
-
| CounterpartyDestinationType.CRYPTO_INTERNAL;
|
|
487
|
+
export interface DestinationListItemWithExternalCryptoData extends DestinationListItemCommonFields {
|
|
488
|
+
type: CounterpartyDestinationType.CRYPTO_EXTERNAL | CounterpartyDestinationType.CRYPTO_INTERNAL;
|
|
508
489
|
external_banking_data?: never;
|
|
509
490
|
external_crypto_data: DestinationListItemExternalCryptoData;
|
|
510
491
|
}
|
|
@@ -520,7 +501,7 @@ export namespace API {
|
|
|
520
501
|
offset?: number;
|
|
521
502
|
search?: string;
|
|
522
503
|
type?: CounterpartyDestinationType | string;
|
|
523
|
-
sort_by?:
|
|
504
|
+
sort_by?: 'created_at' | 'nickname' | 'type';
|
|
524
505
|
sort_order?: SortingDirection;
|
|
525
506
|
filter?: {
|
|
526
507
|
type?: CounterpartyDestinationType;
|
|
@@ -540,22 +521,19 @@ export namespace API {
|
|
|
540
521
|
API.Counterparties.Destination.List.DestinationListItemCommonFields;
|
|
541
522
|
|
|
542
523
|
export interface DestinationDetailItemExternalBankingData
|
|
543
|
-
extends API.Counterparties.Destination.List
|
|
544
|
-
|
|
545
|
-
address: API.Counterparties.Destination.List.DestinationListItemExternalBankingData["address"] & {
|
|
524
|
+
extends API.Counterparties.Destination.List.DestinationListItemExternalBankingData {
|
|
525
|
+
address: API.Counterparties.Destination.List.DestinationListItemExternalBankingData['address'] & {
|
|
546
526
|
country?: API.Location.Countries.Country;
|
|
547
527
|
state?: API.Location.States.State;
|
|
548
528
|
};
|
|
549
529
|
}
|
|
550
530
|
|
|
551
531
|
export interface DestinationDetailItemExternalCryptoData
|
|
552
|
-
extends API.Counterparties.Destination.List
|
|
553
|
-
.DestinationListItemExternalCryptoData {
|
|
532
|
+
extends API.Counterparties.Destination.List.DestinationListItemExternalCryptoData {
|
|
554
533
|
currency: API.Currencies.Currency;
|
|
555
534
|
}
|
|
556
535
|
|
|
557
|
-
export interface DestinationDetailItemWithExternalBankingData
|
|
558
|
-
extends DestinationDetailItemCommonFields {
|
|
536
|
+
export interface DestinationDetailItemWithExternalBankingData extends DestinationDetailItemCommonFields {
|
|
559
537
|
type:
|
|
560
538
|
| CounterpartyDestinationType.DOMESTIC_WIRE
|
|
561
539
|
| CounterpartyDestinationType.ACH
|
|
@@ -565,11 +543,8 @@ export namespace API {
|
|
|
565
543
|
external_crypto_data?: never;
|
|
566
544
|
}
|
|
567
545
|
|
|
568
|
-
export interface DestinationDetailItemWithExternalCryptoData
|
|
569
|
-
|
|
570
|
-
type:
|
|
571
|
-
| CounterpartyDestinationType.CRYPTO_EXTERNAL
|
|
572
|
-
| CounterpartyDestinationType.CRYPTO_INTERNAL;
|
|
546
|
+
export interface DestinationDetailItemWithExternalCryptoData extends DestinationDetailItemCommonFields {
|
|
547
|
+
type: CounterpartyDestinationType.CRYPTO_EXTERNAL | CounterpartyDestinationType.CRYPTO_INTERNAL;
|
|
573
548
|
external_banking_data?: never;
|
|
574
549
|
external_crypto_data: DestinationDetailItemExternalCryptoData;
|
|
575
550
|
}
|
|
@@ -603,12 +578,11 @@ export namespace API {
|
|
|
603
578
|
|
|
604
579
|
external_crypto_data?: Pick<
|
|
605
580
|
API.Counterparties.Destination.Detail.DestinationDetailItemExternalCryptoData,
|
|
606
|
-
|
|
581
|
+
'currency_id' | 'address' | 'memo'
|
|
607
582
|
>;
|
|
608
583
|
}
|
|
609
584
|
|
|
610
|
-
export type Response =
|
|
611
|
-
API.Counterparties.Destination.Detail.DestinationDetailItem;
|
|
585
|
+
export type Response = API.Counterparties.Destination.Detail.DestinationDetailItem;
|
|
612
586
|
}
|
|
613
587
|
|
|
614
588
|
export namespace Delete {
|
|
@@ -627,8 +601,7 @@ export namespace API {
|
|
|
627
601
|
nickname: string;
|
|
628
602
|
}
|
|
629
603
|
|
|
630
|
-
export type Response =
|
|
631
|
-
API.Counterparties.Destination.Detail.DestinationDetailItemCommonFields;
|
|
604
|
+
export type Response = API.Counterparties.Destination.Detail.DestinationDetailItemCommonFields;
|
|
632
605
|
}
|
|
633
606
|
}
|
|
634
607
|
|
|
@@ -646,7 +619,7 @@ export namespace API {
|
|
|
646
619
|
wallet_id: string;
|
|
647
620
|
offset?: number;
|
|
648
621
|
limit?: number;
|
|
649
|
-
sort_by?:
|
|
622
|
+
sort_by?: 'created_at' | 'nickname' | 'type' | 'email' | 'phone';
|
|
650
623
|
sort_order?: SortingDirection;
|
|
651
624
|
filter?: {
|
|
652
625
|
type?: CounterpartyDestinationType;
|
|
@@ -663,7 +636,7 @@ export namespace API {
|
|
|
663
636
|
}
|
|
664
637
|
|
|
665
638
|
export namespace Create {
|
|
666
|
-
export type Request = Omit<Counterparty,
|
|
639
|
+
export type Request = Omit<Counterparty, 'id' | 'created_at'> & {
|
|
667
640
|
wallet_id: string;
|
|
668
641
|
};
|
|
669
642
|
|
|
@@ -671,7 +644,7 @@ export namespace API {
|
|
|
671
644
|
}
|
|
672
645
|
|
|
673
646
|
export namespace Update {
|
|
674
|
-
export type Request = Partial<Omit<Counterparty,
|
|
647
|
+
export type Request = Partial<Omit<Counterparty, 'id' | 'created_at'>> & {
|
|
675
648
|
wallet_id: string;
|
|
676
649
|
counterparty_account_id: string;
|
|
677
650
|
};
|
|
@@ -698,7 +671,7 @@ export namespace API {
|
|
|
698
671
|
}
|
|
699
672
|
export interface CryptoCurrency extends CommonCurrencyFields {
|
|
700
673
|
is_crypto: true;
|
|
701
|
-
meta: CommonCurrencyFields[
|
|
674
|
+
meta: CommonCurrencyFields['meta'] & {
|
|
702
675
|
chain_id: number;
|
|
703
676
|
contract: string;
|
|
704
677
|
chain_name: string;
|
|
@@ -706,7 +679,7 @@ export namespace API {
|
|
|
706
679
|
}
|
|
707
680
|
export interface FiatCurrency extends CommonCurrencyFields {
|
|
708
681
|
is_crypto: false;
|
|
709
|
-
meta: CommonCurrencyFields[
|
|
682
|
+
meta: CommonCurrencyFields['meta'] & {
|
|
710
683
|
code: string;
|
|
711
684
|
iso_code: number;
|
|
712
685
|
sign: string;
|
|
@@ -1072,7 +1045,7 @@ export namespace API {
|
|
|
1072
1045
|
fiat_account: string;
|
|
1073
1046
|
id: string;
|
|
1074
1047
|
priority: number;
|
|
1075
|
-
}
|
|
1048
|
+
},
|
|
1076
1049
|
];
|
|
1077
1050
|
realtimeauth_balance: number;
|
|
1078
1051
|
status: string;
|
|
@@ -1121,28 +1094,27 @@ export namespace API {
|
|
|
1121
1094
|
}
|
|
1122
1095
|
|
|
1123
1096
|
export namespace Entity {
|
|
1124
|
-
export type Entity = components[
|
|
1097
|
+
export type Entity = components['schemas']['KycEntityDto'];
|
|
1125
1098
|
export namespace Get {
|
|
1126
|
-
export type Request =
|
|
1127
|
-
operations["KycEntitiesController_findOne"]["parameters"]["path"];
|
|
1099
|
+
export type Request = operations['KycEntitiesController_findOne']['parameters']['path'];
|
|
1128
1100
|
export type Response =
|
|
1129
|
-
operations[
|
|
1101
|
+
operations['KycEntitiesController_findOne']['responses']['200']['content']['application/json'];
|
|
1130
1102
|
}
|
|
1131
1103
|
}
|
|
1132
1104
|
export namespace Forms {
|
|
1133
1105
|
export namespace FormField {
|
|
1134
1106
|
export type FormFieldType =
|
|
1135
|
-
|
|
|
1136
|
-
|
|
|
1137
|
-
|
|
|
1138
|
-
|
|
|
1139
|
-
|
|
|
1140
|
-
|
|
|
1141
|
-
|
|
|
1142
|
-
|
|
|
1143
|
-
|
|
|
1144
|
-
|
|
|
1145
|
-
|
|
|
1107
|
+
| 'text'
|
|
1108
|
+
| 'email'
|
|
1109
|
+
| 'password'
|
|
1110
|
+
| 'radio'
|
|
1111
|
+
| 'select'
|
|
1112
|
+
| 'checkbox'
|
|
1113
|
+
| 'textarea'
|
|
1114
|
+
| 'number'
|
|
1115
|
+
| 'date'
|
|
1116
|
+
| 'switch'
|
|
1117
|
+
| 'file';
|
|
1146
1118
|
|
|
1147
1119
|
export interface FormFieldValidation {
|
|
1148
1120
|
pattern?: string;
|
|
@@ -1173,13 +1145,13 @@ export namespace API {
|
|
|
1173
1145
|
}
|
|
1174
1146
|
|
|
1175
1147
|
export namespace FormGroup {
|
|
1176
|
-
export type FormGroupFieldType =
|
|
1148
|
+
export type FormGroupFieldType = 'group' | 'field';
|
|
1177
1149
|
export interface FormGroupFieldGroup {
|
|
1178
|
-
type:
|
|
1150
|
+
type: 'group';
|
|
1179
1151
|
fields: API.KYC.Forms.FormGroup.FormGroup[];
|
|
1180
1152
|
}
|
|
1181
1153
|
export interface FormGroupFieldField {
|
|
1182
|
-
type:
|
|
1154
|
+
type: 'field';
|
|
1183
1155
|
field: API.KYC.Forms.FormField.FormField;
|
|
1184
1156
|
}
|
|
1185
1157
|
export interface FormGroup {
|
|
@@ -1192,22 +1164,18 @@ export namespace API {
|
|
|
1192
1164
|
}
|
|
1193
1165
|
|
|
1194
1166
|
export namespace Rails {
|
|
1195
|
-
export type RailStatus =
|
|
1196
|
-
components["schemas"]["WalletKycRailDto"]["status"];
|
|
1167
|
+
export type RailStatus = components['schemas']['WalletKycRailDto']['status'];
|
|
1197
1168
|
|
|
1198
|
-
export type WalletRail = components[
|
|
1199
|
-
export type WalletRailExtraActions =
|
|
1200
|
-
components["schemas"]["WalletKycRailExtraActionDto"];
|
|
1169
|
+
export type WalletRail = components['schemas']['WalletKycRailDto'];
|
|
1170
|
+
export type WalletRailExtraActions = components['schemas']['WalletKycRailExtraActionDto'];
|
|
1201
1171
|
|
|
1202
|
-
export type WalletRailTermsAndConditions =
|
|
1203
|
-
components["schemas"]["WalletKycRailTermsAndConditionsDto"];
|
|
1172
|
+
export type WalletRailTermsAndConditions = components['schemas']['WalletKycRailTermsAndConditionsDto'];
|
|
1204
1173
|
|
|
1205
1174
|
export namespace RailInfo {
|
|
1206
|
-
export type RailInfo = components[
|
|
1175
|
+
export type RailInfo = components['schemas']['WalletKycRailTypeDto'];
|
|
1207
1176
|
|
|
1208
1177
|
export namespace SingleRail {
|
|
1209
|
-
export type Request =
|
|
1210
|
-
operations["WalletKycRailsController_findOne"]["parameters"]["path"];
|
|
1178
|
+
export type Request = operations['WalletKycRailsController_findOne']['parameters']['path'];
|
|
1211
1179
|
export type Response = RailInfo;
|
|
1212
1180
|
}
|
|
1213
1181
|
|
|
@@ -1215,24 +1183,21 @@ export namespace API {
|
|
|
1215
1183
|
export type Request = {
|
|
1216
1184
|
wallet_id: string;
|
|
1217
1185
|
};
|
|
1218
|
-
export type Response =
|
|
1219
|
-
components["schemas"]["GetWalletKycRailsResponseDto"];
|
|
1186
|
+
export type Response = components['schemas']['GetWalletKycRailsResponseDto'];
|
|
1220
1187
|
}
|
|
1221
1188
|
}
|
|
1222
1189
|
|
|
1223
1190
|
export namespace Submit {
|
|
1224
1191
|
export namespace Single {
|
|
1225
|
-
export type Request =
|
|
1226
|
-
|
|
1227
|
-
export type Response = components["schemas"]["WalletKycRailTypeDto"];
|
|
1192
|
+
export type Request = operations['WalletKycRailsController_findOne']['parameters']['path'];
|
|
1193
|
+
export type Response = components['schemas']['WalletKycRailTypeDto'];
|
|
1228
1194
|
}
|
|
1229
1195
|
}
|
|
1230
1196
|
|
|
1231
1197
|
export namespace Terms {
|
|
1232
1198
|
export namespace Confirm {
|
|
1233
|
-
export type Request =
|
|
1234
|
-
|
|
1235
|
-
export type Response = components["schemas"]["WalletKycRailTypeDto"];
|
|
1199
|
+
export type Request = operations['WalletKycRailsController_confirmTermsAndConditions']['parameters']['path'];
|
|
1200
|
+
export type Response = components['schemas']['WalletKycRailTypeDto'];
|
|
1236
1201
|
}
|
|
1237
1202
|
}
|
|
1238
1203
|
}
|
|
@@ -1276,12 +1241,10 @@ export namespace API {
|
|
|
1276
1241
|
}
|
|
1277
1242
|
}
|
|
1278
1243
|
export namespace States {
|
|
1279
|
-
export type State = components[
|
|
1244
|
+
export type State = components['schemas']['StateDto'];
|
|
1280
1245
|
export namespace List {
|
|
1281
|
-
export type Request =
|
|
1282
|
-
|
|
1283
|
-
export type Response =
|
|
1284
|
-
operations["SystemController_states"]["responses"]["200"]["content"]["application/json"];
|
|
1246
|
+
export type Request = operations['SystemController_states']['parameters']['path'];
|
|
1247
|
+
export type Response = operations['SystemController_states']['responses']['200']['content']['application/json'];
|
|
1285
1248
|
}
|
|
1286
1249
|
}
|
|
1287
1250
|
}
|
|
@@ -1303,7 +1266,7 @@ export namespace API {
|
|
|
1303
1266
|
from_uuid: string;
|
|
1304
1267
|
to_uuid: string;
|
|
1305
1268
|
amount_from: number;
|
|
1306
|
-
order_type:
|
|
1269
|
+
order_type: 'EXCHANGE_CRYPTO_INTERNAL';
|
|
1307
1270
|
status: OrderStatuses;
|
|
1308
1271
|
amount_to: number;
|
|
1309
1272
|
info: string;
|
|
@@ -1337,7 +1300,7 @@ export namespace API {
|
|
|
1337
1300
|
from_uuid: string;
|
|
1338
1301
|
to_uuid: string;
|
|
1339
1302
|
amount_from: number;
|
|
1340
|
-
order_type:
|
|
1303
|
+
order_type: 'TRANSFER_CARD_PREPAID';
|
|
1341
1304
|
status: OrderStatuses;
|
|
1342
1305
|
amount_to: number;
|
|
1343
1306
|
info: string;
|
|
@@ -1373,7 +1336,7 @@ export namespace API {
|
|
|
1373
1336
|
to_uuid: string;
|
|
1374
1337
|
amount_from: number;
|
|
1375
1338
|
amount_to: number;
|
|
1376
|
-
order_type:
|
|
1339
|
+
order_type: 'HIFI_WIRE_ONRAMP';
|
|
1377
1340
|
status: OrderStatuses;
|
|
1378
1341
|
created_at: string;
|
|
1379
1342
|
info: string;
|
|
@@ -1408,7 +1371,7 @@ export namespace API {
|
|
|
1408
1371
|
to_uuid: string;
|
|
1409
1372
|
amount_from: number;
|
|
1410
1373
|
amount_to: number;
|
|
1411
|
-
order_type:
|
|
1374
|
+
order_type: 'HIFI_ACH_ONRAMP';
|
|
1412
1375
|
status: OrderStatuses;
|
|
1413
1376
|
created_at: string;
|
|
1414
1377
|
info: string;
|
|
@@ -1443,7 +1406,7 @@ export namespace API {
|
|
|
1443
1406
|
to_uuid: string;
|
|
1444
1407
|
amount_from: number;
|
|
1445
1408
|
amount_to: number;
|
|
1446
|
-
order_type:
|
|
1409
|
+
order_type: 'HIFI_SEPA_ONRAMP';
|
|
1447
1410
|
status: OrderStatuses;
|
|
1448
1411
|
created_at: string;
|
|
1449
1412
|
info: string;
|
|
@@ -1478,7 +1441,7 @@ export namespace API {
|
|
|
1478
1441
|
to_uuid: string;
|
|
1479
1442
|
amount_from: number;
|
|
1480
1443
|
amount_to: number;
|
|
1481
|
-
order_type:
|
|
1444
|
+
order_type: 'HIFI_WIRE_OFFRAMP';
|
|
1482
1445
|
status: OrderStatuses;
|
|
1483
1446
|
created_at: string;
|
|
1484
1447
|
info: string;
|
|
@@ -1513,7 +1476,7 @@ export namespace API {
|
|
|
1513
1476
|
to_uuid: string;
|
|
1514
1477
|
amount_from: number;
|
|
1515
1478
|
amount_to: number;
|
|
1516
|
-
order_type:
|
|
1479
|
+
order_type: 'HIFI_ACH_OFFRAMP';
|
|
1517
1480
|
status: OrderStatuses;
|
|
1518
1481
|
created_at: string;
|
|
1519
1482
|
info: string;
|
|
@@ -1570,7 +1533,7 @@ export namespace API {
|
|
|
1570
1533
|
from_uuid: string;
|
|
1571
1534
|
to_uuid: string;
|
|
1572
1535
|
amount_from: number;
|
|
1573
|
-
order_type:
|
|
1536
|
+
order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
|
|
1574
1537
|
status: OrderStatuses;
|
|
1575
1538
|
amount_to: number;
|
|
1576
1539
|
info: string;
|
|
@@ -1707,7 +1670,7 @@ export namespace API {
|
|
|
1707
1670
|
network_fee: number;
|
|
1708
1671
|
transaction_fee: number;
|
|
1709
1672
|
rate: number;
|
|
1710
|
-
direction:
|
|
1673
|
+
direction: 'c2f' | 'f2c' | 'c2c';
|
|
1711
1674
|
}
|
|
1712
1675
|
}
|
|
1713
1676
|
|
|
@@ -1720,7 +1683,7 @@ export namespace API {
|
|
|
1720
1683
|
id: string;
|
|
1721
1684
|
transaction_type: string;
|
|
1722
1685
|
description: string | null;
|
|
1723
|
-
direction:
|
|
1686
|
+
direction: 'deposit' | 'withdrawal';
|
|
1724
1687
|
is_internal: boolean;
|
|
1725
1688
|
// kyc_rails_id: string | null; // deprecated use order_types_kyc_rails instead
|
|
1726
1689
|
order_types_kyc_rails: OrderTypeKycRail[];
|
|
@@ -1871,168 +1834,58 @@ export namespace API {
|
|
|
1871
1834
|
network_fee: number;
|
|
1872
1835
|
transaction_fee: number;
|
|
1873
1836
|
rate: number;
|
|
1874
|
-
direction:
|
|
1837
|
+
direction: 'c2f' | 'f2c' | 'c2c';
|
|
1875
1838
|
}
|
|
1876
1839
|
}
|
|
1877
1840
|
|
|
1878
1841
|
export namespace Create {
|
|
1879
|
-
export namespace
|
|
1880
|
-
export namespace
|
|
1881
|
-
export interface
|
|
1882
|
-
wallet_id: string;
|
|
1883
|
-
from_crypto_uuid: string;
|
|
1884
|
-
to_wallet_id: string;
|
|
1885
|
-
to_wallet_uuid: string;
|
|
1886
|
-
amount: number;
|
|
1842
|
+
export namespace Common {
|
|
1843
|
+
export namespace Request {
|
|
1844
|
+
export interface BaseOrderParams {
|
|
1887
1845
|
request_id: string;
|
|
1888
|
-
is_subtract: boolean;
|
|
1889
|
-
is_reverse: boolean;
|
|
1890
|
-
}
|
|
1891
|
-
|
|
1892
|
-
export type Response = null;
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
|
-
export namespace HIFI_WIRE_ONRAMP {
|
|
1896
|
-
export interface Request {
|
|
1897
|
-
request_id: string;
|
|
1898
|
-
counterparty_account_id: string;
|
|
1899
1846
|
amount: number;
|
|
1900
1847
|
wallet_id: string;
|
|
1901
1848
|
from_currency_id: string;
|
|
1902
1849
|
to_currency_id: string;
|
|
1903
1850
|
is_subtract: boolean;
|
|
1904
1851
|
is_reverse: boolean;
|
|
1852
|
+
reference?: string;
|
|
1853
|
+
note?: string;
|
|
1905
1854
|
}
|
|
1906
1855
|
|
|
1907
|
-
export interface
|
|
1908
|
-
|
|
1909
|
-
wallet_uuid: string;
|
|
1910
|
-
from_uuid: string;
|
|
1911
|
-
to_uuid: string;
|
|
1912
|
-
amount_from: number;
|
|
1913
|
-
amount_to: number;
|
|
1914
|
-
order_type: "HIFI_WIRE_ONRAMP";
|
|
1915
|
-
status: OrderStatuses;
|
|
1916
|
-
created_at: string;
|
|
1917
|
-
info: string;
|
|
1918
|
-
meta: {
|
|
1919
|
-
request_id: string;
|
|
1920
|
-
counterparty_account_id: string;
|
|
1921
|
-
fee: number;
|
|
1922
|
-
fee_currency: string;
|
|
1923
|
-
billing_amount: number;
|
|
1924
|
-
billing_currency: string;
|
|
1925
|
-
transaction_amount: number;
|
|
1926
|
-
transaction_currency: string;
|
|
1927
|
-
order_uuid: string;
|
|
1928
|
-
};
|
|
1929
|
-
|
|
1930
|
-
id: string;
|
|
1856
|
+
export interface OrderWithCounterpartyParams extends BaseOrderParams {
|
|
1857
|
+
counterparty_destination_id: string;
|
|
1931
1858
|
}
|
|
1932
|
-
}
|
|
1933
1859
|
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
request_id: string;
|
|
1937
|
-
counterparty_account_id: string;
|
|
1938
|
-
amount: number;
|
|
1939
|
-
wallet_id: string;
|
|
1940
|
-
from_currency_id: string;
|
|
1941
|
-
to_currency_id: string;
|
|
1942
|
-
is_subtract: boolean;
|
|
1943
|
-
is_reverse: boolean;
|
|
1860
|
+
export interface OrderWithWalletAccountParams extends BaseOrderParams {
|
|
1861
|
+
wallet_account_id: string;
|
|
1944
1862
|
}
|
|
1945
1863
|
|
|
1946
|
-
export interface
|
|
1947
|
-
|
|
1948
|
-
wallet_uuid: string;
|
|
1949
|
-
from_uuid: string;
|
|
1950
|
-
to_uuid: string;
|
|
1951
|
-
amount_from: number;
|
|
1952
|
-
amount_to: number;
|
|
1953
|
-
order_type: "HIFI_ACH_ONRAMP";
|
|
1954
|
-
status: OrderStatuses;
|
|
1955
|
-
created_at: string;
|
|
1956
|
-
info: string;
|
|
1957
|
-
meta: {
|
|
1958
|
-
request_id: string;
|
|
1959
|
-
counterparty_account_id: string;
|
|
1960
|
-
fee: number;
|
|
1961
|
-
fee_currency: string;
|
|
1962
|
-
billing_amount: number;
|
|
1963
|
-
billing_currency: string;
|
|
1964
|
-
transaction_amount: number;
|
|
1965
|
-
transaction_currency: string;
|
|
1966
|
-
order_uuid: string;
|
|
1967
|
-
};
|
|
1968
|
-
|
|
1969
|
-
id: string;
|
|
1864
|
+
export interface OrderWithVirtualAccountParams extends BaseOrderParams {
|
|
1865
|
+
virtual_account_id: string;
|
|
1970
1866
|
}
|
|
1971
|
-
}
|
|
1972
1867
|
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
request_id: string;
|
|
1976
|
-
counterparty_account_id: string;
|
|
1977
|
-
amount: number;
|
|
1978
|
-
wallet_id: string;
|
|
1979
|
-
from_currency_id: string;
|
|
1980
|
-
to_currency_id: string;
|
|
1981
|
-
is_subtract: boolean;
|
|
1982
|
-
is_reverse: boolean;
|
|
1868
|
+
export interface OrderWithSubAccountParams extends BaseOrderParams {
|
|
1869
|
+
sub_account_id: string;
|
|
1983
1870
|
}
|
|
1871
|
+
}
|
|
1984
1872
|
|
|
1985
|
-
|
|
1873
|
+
export namespace Response {
|
|
1874
|
+
export interface BaseOrderResponse {
|
|
1986
1875
|
order_uuid: string;
|
|
1987
1876
|
wallet_uuid: string;
|
|
1988
1877
|
from_uuid: string;
|
|
1989
1878
|
to_uuid: string;
|
|
1990
1879
|
amount_from: number;
|
|
1991
1880
|
amount_to: number;
|
|
1992
|
-
order_type: "HIFI_SEPA_ONRAMP";
|
|
1993
1881
|
status: OrderStatuses;
|
|
1994
1882
|
created_at: string;
|
|
1995
1883
|
info: string;
|
|
1996
|
-
meta: {
|
|
1997
|
-
request_id: string;
|
|
1998
|
-
counterparty_account_id: string;
|
|
1999
|
-
fee: number;
|
|
2000
|
-
fee_currency: string;
|
|
2001
|
-
billing_amount: number;
|
|
2002
|
-
billing_currency: string;
|
|
2003
|
-
transaction_amount: number;
|
|
2004
|
-
transaction_currency: string;
|
|
2005
|
-
order_uuid: string;
|
|
2006
|
-
};
|
|
2007
1884
|
id: string;
|
|
2008
1885
|
}
|
|
2009
|
-
}
|
|
2010
1886
|
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
request_id: string;
|
|
2014
|
-
counterparty_account_id: string;
|
|
2015
|
-
amount: number;
|
|
2016
|
-
wallet_id: string;
|
|
2017
|
-
from_currency_id: string;
|
|
2018
|
-
to_currency_id: string;
|
|
2019
|
-
refference?: string;
|
|
2020
|
-
note?: string;
|
|
2021
|
-
is_subtract: boolean;
|
|
2022
|
-
is_reverse: boolean;
|
|
2023
|
-
}
|
|
2024
|
-
|
|
2025
|
-
export interface Response {
|
|
2026
|
-
order_uuid: string;
|
|
2027
|
-
wallet_uuid: string;
|
|
2028
|
-
from_uuid: string;
|
|
2029
|
-
to_uuid: string;
|
|
2030
|
-
amount_from: number;
|
|
2031
|
-
amount_to: number;
|
|
2032
|
-
order_type: "HIFI_WIRE_OFFRAMP";
|
|
2033
|
-
status: OrderStatuses;
|
|
2034
|
-
created_at: string;
|
|
2035
|
-
info: string;
|
|
1887
|
+
export interface HifiOrderResponse extends BaseOrderResponse {
|
|
1888
|
+
order_type: string;
|
|
2036
1889
|
meta: {
|
|
2037
1890
|
request_id: string;
|
|
2038
1891
|
counterparty_account_id: string;
|
|
@@ -2044,78 +1897,32 @@ export namespace API {
|
|
|
2044
1897
|
transaction_currency: string;
|
|
2045
1898
|
order_uuid: string;
|
|
2046
1899
|
};
|
|
2047
|
-
id: string;
|
|
2048
|
-
}
|
|
2049
|
-
}
|
|
2050
|
-
|
|
2051
|
-
export namespace HIFI_ACH_OFFRAMP {
|
|
2052
|
-
export interface Request {
|
|
2053
|
-
request_id: string;
|
|
2054
|
-
counterparty_account_id: string;
|
|
2055
|
-
amount: number;
|
|
2056
|
-
wallet_id: string;
|
|
2057
|
-
from_currency_id: string;
|
|
2058
|
-
to_currency_id: string;
|
|
2059
|
-
refference?: string;
|
|
2060
|
-
note?: string;
|
|
2061
|
-
is_subtract: boolean;
|
|
2062
|
-
is_reverse: boolean;
|
|
2063
1900
|
}
|
|
2064
1901
|
|
|
2065
|
-
export interface
|
|
2066
|
-
|
|
2067
|
-
wallet_uuid: string;
|
|
2068
|
-
from_uuid: string;
|
|
2069
|
-
to_uuid: string;
|
|
2070
|
-
amount_from: number;
|
|
2071
|
-
amount_to: number;
|
|
2072
|
-
order_type: "HIFI_ACH_OFFRAMP";
|
|
2073
|
-
status: OrderStatuses;
|
|
2074
|
-
created_at: string;
|
|
2075
|
-
info: string;
|
|
1902
|
+
export interface CryptoTransferResponse extends BaseOrderResponse {
|
|
1903
|
+
order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
|
|
2076
1904
|
meta: {
|
|
2077
|
-
request_id: string;
|
|
2078
|
-
counterparty_account_id: string;
|
|
2079
1905
|
fee: number;
|
|
1906
|
+
order_uuid: string;
|
|
1907
|
+
to_address: string;
|
|
2080
1908
|
fee_currency: string;
|
|
1909
|
+
request_id: string;
|
|
1910
|
+
counterparty_account_id: string;
|
|
2081
1911
|
billing_amount: number;
|
|
2082
1912
|
billing_currency: string;
|
|
2083
1913
|
transaction_amount: number;
|
|
2084
1914
|
transaction_currency: string;
|
|
2085
|
-
|
|
1915
|
+
network_fee: number;
|
|
2086
1916
|
};
|
|
2087
|
-
id: string;
|
|
2088
1917
|
}
|
|
2089
|
-
}
|
|
2090
1918
|
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
request_id: string;
|
|
2094
|
-
counterparty_account_id: string;
|
|
2095
|
-
amount: number;
|
|
2096
|
-
wallet_id: string;
|
|
2097
|
-
from_currency_id: string;
|
|
2098
|
-
to_currency_id: string;
|
|
2099
|
-
refference?: string;
|
|
2100
|
-
note?: string;
|
|
2101
|
-
is_subtract: boolean;
|
|
2102
|
-
is_reverse: boolean;
|
|
2103
|
-
}
|
|
2104
|
-
|
|
2105
|
-
export interface Response {
|
|
2106
|
-
order_uuid: string;
|
|
2107
|
-
wallet_uuid: string;
|
|
2108
|
-
from_uuid: string;
|
|
2109
|
-
to_uuid: string;
|
|
2110
|
-
amount_from: number;
|
|
2111
|
-
amount_to: number;
|
|
2112
|
-
order_type: "HIFI_SEPA_OFFRAMP";
|
|
2113
|
-
status: OrderStatuses;
|
|
2114
|
-
created_at: string;
|
|
2115
|
-
info: string;
|
|
1919
|
+
export interface RnCardsResponse extends BaseOrderResponse {
|
|
1920
|
+
order_type: 'RN_CARDS_OFFRAMP';
|
|
2116
1921
|
meta: {
|
|
2117
1922
|
request_id: string;
|
|
2118
|
-
|
|
1923
|
+
sub_account_id: string;
|
|
1924
|
+
to_address: string;
|
|
1925
|
+
deposit_chain_id: number;
|
|
2119
1926
|
fee: number;
|
|
2120
1927
|
fee_currency: string;
|
|
2121
1928
|
billing_amount: number;
|
|
@@ -2124,205 +1931,104 @@ export namespace API {
|
|
|
2124
1931
|
transaction_currency: string;
|
|
2125
1932
|
order_uuid: string;
|
|
2126
1933
|
};
|
|
2127
|
-
id: string;
|
|
2128
|
-
}
|
|
2129
|
-
}
|
|
2130
|
-
export namespace TBD_SWIFT_WITHDRAWAL {
|
|
2131
|
-
export interface Request {
|
|
2132
|
-
request_id: string;
|
|
2133
|
-
counterparty_account_id: string;
|
|
2134
|
-
amount: number;
|
|
2135
|
-
wallet_id: string;
|
|
2136
|
-
from_currency_id: string;
|
|
2137
|
-
to_currency_id: string;
|
|
2138
|
-
is_subtract: boolean;
|
|
2139
|
-
is_reverse: boolean;
|
|
2140
1934
|
}
|
|
2141
1935
|
|
|
2142
|
-
export interface
|
|
2143
|
-
|
|
2144
|
-
wallet_uuid: string;
|
|
2145
|
-
from_uuid: string;
|
|
2146
|
-
to_uuid: string;
|
|
2147
|
-
amount_from: number;
|
|
2148
|
-
amount_to: number;
|
|
2149
|
-
order_type: "HIFI_SEPA_OFFRAMP";
|
|
2150
|
-
status: OrderStatuses;
|
|
2151
|
-
created_at: string;
|
|
2152
|
-
info: string;
|
|
1936
|
+
export interface L2FResponse extends BaseOrderResponse {
|
|
1937
|
+
order_type: 'L2F_SEPA_OFFRAMP' | 'L2F_SWIFT_OFFRAMP' | 'L2F_ACH_OFFRAMP' | 'L2F_WIRE_OFFRAMP';
|
|
2153
1938
|
meta: {
|
|
2154
1939
|
request_id: string;
|
|
2155
|
-
|
|
2156
|
-
fee: number;
|
|
2157
|
-
fee_currency: string;
|
|
2158
|
-
billing_amount: number;
|
|
2159
|
-
billing_currency: string;
|
|
2160
|
-
transaction_amount: number;
|
|
2161
|
-
transaction_currency: string;
|
|
2162
|
-
order_uuid: string;
|
|
1940
|
+
virtual_account_id: string;
|
|
2163
1941
|
};
|
|
2164
|
-
id: string;
|
|
2165
1942
|
}
|
|
2166
1943
|
}
|
|
1944
|
+
}
|
|
2167
1945
|
|
|
2168
|
-
|
|
1946
|
+
export namespace ByOrderType {
|
|
1947
|
+
export namespace INTERNAL_TRANSFER {
|
|
2169
1948
|
export interface Request {
|
|
2170
|
-
request_id: string;
|
|
2171
|
-
counterparty_account_id: string;
|
|
2172
|
-
amount: number;
|
|
2173
1949
|
wallet_id: string;
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
1950
|
+
from_crypto_uuid: string;
|
|
1951
|
+
to_wallet_id: string;
|
|
1952
|
+
to_wallet_uuid: string;
|
|
1953
|
+
amount: number;
|
|
1954
|
+
request_id: string;
|
|
2177
1955
|
is_subtract: boolean;
|
|
2178
1956
|
is_reverse: boolean;
|
|
2179
1957
|
}
|
|
2180
1958
|
|
|
2181
|
-
export
|
|
2182
|
-
created_at: string;
|
|
2183
|
-
order_uuid: string;
|
|
2184
|
-
wallet_uuid: string;
|
|
2185
|
-
from_uuid: string;
|
|
2186
|
-
to_uuid: string;
|
|
2187
|
-
amount_from: number;
|
|
2188
|
-
order_type: "OMNIBUS_CRYPTO_WITHDRAWAL";
|
|
2189
|
-
status: OrderStatuses;
|
|
2190
|
-
amount_to: number;
|
|
2191
|
-
info: string;
|
|
2192
|
-
meta: {
|
|
2193
|
-
fee: number;
|
|
2194
|
-
order_uuid: string;
|
|
2195
|
-
to_address: string;
|
|
2196
|
-
fee_currency: string;
|
|
2197
|
-
request_id: string;
|
|
2198
|
-
counterparty_account_id: string;
|
|
2199
|
-
billing_amount: number;
|
|
2200
|
-
billing_currency: string;
|
|
2201
|
-
transaction_amount: number;
|
|
2202
|
-
transaction_currency: string;
|
|
2203
|
-
network_fee: number;
|
|
2204
|
-
};
|
|
2205
|
-
id: string;
|
|
2206
|
-
}
|
|
1959
|
+
export type Response = null;
|
|
2207
1960
|
}
|
|
2208
|
-
export namespace SEGREGATED_CRYPTO_TRANSFER {
|
|
2209
|
-
export interface Request {
|
|
2210
|
-
request_id: string;
|
|
2211
|
-
counterparty_account_id: string;
|
|
2212
|
-
amount: number;
|
|
2213
|
-
wallet_id: string;
|
|
2214
|
-
wallet_account_id: string;
|
|
2215
|
-
from_currency_id: string;
|
|
2216
|
-
note?: string;
|
|
2217
|
-
is_subtract: boolean;
|
|
2218
|
-
is_reverse: boolean;
|
|
2219
|
-
}
|
|
2220
1961
|
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
wallet_uuid: string;
|
|
2225
|
-
from_uuid: string;
|
|
2226
|
-
to_uuid: string;
|
|
2227
|
-
amount_from: number;
|
|
2228
|
-
order_type: "OMNIBUS_CRYPTO_WITHDRAWAL";
|
|
2229
|
-
status: OrderStatuses;
|
|
2230
|
-
amount_to: number;
|
|
2231
|
-
info: string;
|
|
2232
|
-
meta: {
|
|
2233
|
-
fee: number;
|
|
2234
|
-
order_uuid: string;
|
|
2235
|
-
to_address: string;
|
|
2236
|
-
fee_currency: string;
|
|
2237
|
-
request_id: string;
|
|
2238
|
-
counterparty_account_id: string;
|
|
2239
|
-
billing_amount: number;
|
|
2240
|
-
billing_currency: string;
|
|
2241
|
-
transaction_amount: number;
|
|
2242
|
-
transaction_currency: string;
|
|
2243
|
-
network_fee: number;
|
|
2244
|
-
};
|
|
2245
|
-
id: string;
|
|
2246
|
-
}
|
|
1962
|
+
export namespace HIFI_WIRE_ONRAMP {
|
|
1963
|
+
export type Request = Common.Request.OrderWithCounterpartyParams;
|
|
1964
|
+
export type Response = Common.Response.HifiOrderResponse & { order_type: 'HIFI_WIRE_ONRAMP' };
|
|
2247
1965
|
}
|
|
2248
|
-
export namespace HIFI_CRYPTO_TRANSFER {
|
|
2249
|
-
export interface Request {
|
|
2250
|
-
request_id: string;
|
|
2251
|
-
counterparty_account_id: string;
|
|
2252
|
-
amount: number;
|
|
2253
|
-
wallet_id: string;
|
|
2254
|
-
wallet_account_id: string;
|
|
2255
|
-
from_currency_id: string;
|
|
2256
|
-
note?: string;
|
|
2257
|
-
is_subtract: boolean;
|
|
2258
|
-
is_reverse: boolean;
|
|
2259
|
-
}
|
|
2260
1966
|
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
1967
|
+
export namespace HIFI_ACH_ONRAMP {
|
|
1968
|
+
export type Request = Common.Request.OrderWithCounterpartyParams;
|
|
1969
|
+
export type Response = Common.Response.HifiOrderResponse & { order_type: 'HIFI_ACH_ONRAMP' };
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
export namespace HIFI_SEPA_ONRAMP {
|
|
1973
|
+
export type Request = Common.Request.OrderWithCounterpartyParams;
|
|
1974
|
+
export type Response = Common.Response.HifiOrderResponse & { order_type: 'HIFI_SEPA_ONRAMP' };
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
export namespace HIFI_WIRE_OFFRAMP {
|
|
1978
|
+
export type Request = Common.Request.OrderWithCounterpartyParams;
|
|
1979
|
+
export type Response = Common.Response.HifiOrderResponse & { order_type: 'HIFI_WIRE_OFFRAMP' };
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
export namespace HIFI_ACH_OFFRAMP {
|
|
1983
|
+
export type Request = Common.Request.OrderWithCounterpartyParams;
|
|
1984
|
+
export type Response = Common.Response.HifiOrderResponse & { order_type: 'HIFI_ACH_OFFRAMP' };
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
export namespace HIFI_SEPA_OFFRAMP {
|
|
1988
|
+
export type Request = Common.Request.OrderWithCounterpartyParams;
|
|
1989
|
+
export type Response = Common.Response.HifiOrderResponse & { order_type: 'HIFI_SEPA_OFFRAMP' };
|
|
1990
|
+
}
|
|
1991
|
+
export namespace TBD_SWIFT_WITHDRAWAL {
|
|
1992
|
+
export type Request = Common.Request.OrderWithCounterpartyParams;
|
|
1993
|
+
export type Response = Common.Response.HifiOrderResponse & { order_type: 'HIFI_SEPA_OFFRAMP' };
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
export namespace OMNIBUS_CRYPTO_TRANSFER {
|
|
1997
|
+
export type Request = Common.Request.OrderWithCounterpartyParams;
|
|
1998
|
+
export type Response = Common.Response.CryptoTransferResponse;
|
|
1999
|
+
}
|
|
2000
|
+
export namespace SEGREGATED_CRYPTO_TRANSFER {
|
|
2001
|
+
export type Request = Common.Request.OrderWithWalletAccountParams &
|
|
2002
|
+
Common.Request.OrderWithCounterpartyParams;
|
|
2003
|
+
export type Response = Common.Response.CryptoTransferResponse;
|
|
2287
2004
|
}
|
|
2288
2005
|
export namespace RN_CARDS_OFFRAMP {
|
|
2289
|
-
export
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
amount: number;
|
|
2293
|
-
wallet_id: string;
|
|
2294
|
-
from_currency_id: string;
|
|
2295
|
-
to_currency_id: string;
|
|
2296
|
-
is_subtract: boolean;
|
|
2297
|
-
is_reverse: boolean;
|
|
2298
|
-
}
|
|
2006
|
+
export type Request = Common.Request.OrderWithSubAccountParams;
|
|
2007
|
+
export type Response = Common.Response.RnCardsResponse;
|
|
2008
|
+
}
|
|
2299
2009
|
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
order_uuid: string;
|
|
2323
|
-
};
|
|
2324
|
-
id: string;
|
|
2325
|
-
}
|
|
2010
|
+
export namespace L2F_SEPA_OFFRAMP {
|
|
2011
|
+
export type Request = Common.Request.OrderWithVirtualAccountParams &
|
|
2012
|
+
Common.Request.OrderWithCounterpartyParams;
|
|
2013
|
+
export type Response = Common.Response.L2FResponse & { order_type: 'L2F_SEPA_OFFRAMP' };
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
export namespace L2F_SWIFT_OFFRAMP {
|
|
2017
|
+
export type Request = Common.Request.OrderWithVirtualAccountParams &
|
|
2018
|
+
Common.Request.OrderWithCounterpartyParams;
|
|
2019
|
+
export type Response = Common.Response.L2FResponse & { order_type: 'L2F_SWIFT_OFFRAMP' };
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
export namespace L2F_ACH_OFFRAMP {
|
|
2023
|
+
export type Request = Common.Request.OrderWithVirtualAccountParams &
|
|
2024
|
+
Common.Request.OrderWithCounterpartyParams;
|
|
2025
|
+
export type Response = Common.Response.L2FResponse & { order_type: 'L2F_ACH_OFFRAMP' };
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
export namespace L2F_WIRE_OFFRAMP {
|
|
2029
|
+
export type Request = Common.Request.OrderWithVirtualAccountParams &
|
|
2030
|
+
Common.Request.OrderWithCounterpartyParams;
|
|
2031
|
+
export type Response = Common.Response.L2FResponse & { order_type: 'L2F_WIRE_OFFRAMP' };
|
|
2326
2032
|
}
|
|
2327
2033
|
}
|
|
2328
2034
|
}
|
|
@@ -2332,7 +2038,7 @@ export namespace API {
|
|
|
2332
2038
|
id: string;
|
|
2333
2039
|
transaction_type: string;
|
|
2334
2040
|
description: string | null;
|
|
2335
|
-
direction:
|
|
2041
|
+
direction: 'deposit' | 'withdrawal';
|
|
2336
2042
|
is_internal: boolean;
|
|
2337
2043
|
kyc_rails_id: string | null;
|
|
2338
2044
|
payment_method: OrderType | string;
|
|
@@ -2347,32 +2053,24 @@ export namespace API {
|
|
|
2347
2053
|
|
|
2348
2054
|
export namespace Persona {
|
|
2349
2055
|
export namespace Inquiries {
|
|
2350
|
-
export type InquiryType =
|
|
2351
|
-
operations["PersonaController_initInquiry"]["parameters"]["path"]["type"];
|
|
2056
|
+
export type InquiryType = operations['PersonaController_initInquiry']['parameters']['path']['type'];
|
|
2352
2057
|
export namespace Init {
|
|
2353
|
-
export type Request =
|
|
2354
|
-
operations["PersonaController_initInquiry"]["parameters"]["path"];
|
|
2058
|
+
export type Request = operations['PersonaController_initInquiry']['parameters']['path'];
|
|
2355
2059
|
export type Response =
|
|
2356
|
-
operations[
|
|
2060
|
+
operations['PersonaController_initInquiry']['responses']['200']['content']['application/json'];
|
|
2357
2061
|
}
|
|
2358
2062
|
export namespace Resume {
|
|
2359
|
-
export type Request =
|
|
2360
|
-
operations["PersonaController_resumeInquiry"]["parameters"]["path"];
|
|
2063
|
+
export type Request = operations['PersonaController_resumeInquiry']['parameters']['path'];
|
|
2361
2064
|
export type Response =
|
|
2362
|
-
operations[
|
|
2065
|
+
operations['PersonaController_resumeInquiry']['responses']['200']['content']['application/json'];
|
|
2363
2066
|
}
|
|
2364
2067
|
}
|
|
2365
2068
|
}
|
|
2366
2069
|
|
|
2367
2070
|
export namespace TOTP {
|
|
2368
2071
|
export namespace OTPVerification {
|
|
2369
|
-
export type OTPVerificationChannelType =
|
|
2370
|
-
|
|
2371
|
-
| "SMS"
|
|
2372
|
-
| "TOTP"
|
|
2373
|
-
| "APP"
|
|
2374
|
-
| "TG_TEST";
|
|
2375
|
-
export type OTPVerificationStatus = "PENDING" | "APPROVED" | "DENIED";
|
|
2072
|
+
export type OTPVerificationChannelType = 'EMAIL' | 'SMS' | 'TOTP' | 'APP' | 'TG_TEST';
|
|
2073
|
+
export type OTPVerificationStatus = 'PENDING' | 'APPROVED' | 'DENIED';
|
|
2376
2074
|
export type OTPVerificationChannelInfo = {
|
|
2377
2075
|
channel: OTPVerificationChannelType;
|
|
2378
2076
|
validity: number;
|
|
@@ -2538,8 +2236,7 @@ export namespace API {
|
|
|
2538
2236
|
va_programs_id: string;
|
|
2539
2237
|
}
|
|
2540
2238
|
|
|
2541
|
-
export type Response =
|
|
2542
|
-
API.VirtualAccounts.VirtualAccount.VirtualAccountDetailItem;
|
|
2239
|
+
export type Response = API.VirtualAccounts.VirtualAccount.VirtualAccountDetailItem;
|
|
2543
2240
|
}
|
|
2544
2241
|
|
|
2545
2242
|
export namespace GetByUuid {
|
|
@@ -2547,8 +2244,7 @@ export namespace API {
|
|
|
2547
2244
|
uuid: string;
|
|
2548
2245
|
}
|
|
2549
2246
|
|
|
2550
|
-
export type Response =
|
|
2551
|
-
API.VirtualAccounts.VirtualAccount.VirtualAccountDetailItem;
|
|
2247
|
+
export type Response = API.VirtualAccounts.VirtualAccount.VirtualAccountDetailItem;
|
|
2552
2248
|
}
|
|
2553
2249
|
|
|
2554
2250
|
export namespace GetAll {
|
|
@@ -2606,7 +2302,7 @@ export namespace API {
|
|
|
2606
2302
|
}
|
|
2607
2303
|
|
|
2608
2304
|
export namespace DepositInstruction {
|
|
2609
|
-
export type InstructionType =
|
|
2305
|
+
export type InstructionType = 'ACH' | 'FEDWIRE' | 'SWIFT';
|
|
2610
2306
|
|
|
2611
2307
|
export interface Address {
|
|
2612
2308
|
city: string;
|
|
@@ -2630,10 +2326,10 @@ export namespace API {
|
|
|
2630
2326
|
swift_bic?: string;
|
|
2631
2327
|
}
|
|
2632
2328
|
export interface ACH extends Common {
|
|
2633
|
-
instruction_type:
|
|
2329
|
+
instruction_type: 'ACH';
|
|
2634
2330
|
}
|
|
2635
2331
|
export interface FEDWIRE extends Common {
|
|
2636
|
-
instruction_type:
|
|
2332
|
+
instruction_type: 'FEDWIRE';
|
|
2637
2333
|
account_holder_name: string;
|
|
2638
2334
|
account_routing_number: string;
|
|
2639
2335
|
institution_address: Address;
|
|
@@ -2641,7 +2337,7 @@ export namespace API {
|
|
|
2641
2337
|
}
|
|
2642
2338
|
|
|
2643
2339
|
export interface SWIFT extends Common {
|
|
2644
|
-
instruction_type:
|
|
2340
|
+
instruction_type: 'SWIFT';
|
|
2645
2341
|
swift_bic: string;
|
|
2646
2342
|
institution_address: Address;
|
|
2647
2343
|
account_holder_address: Address;
|
|
@@ -2757,56 +2453,53 @@ export namespace API {
|
|
|
2757
2453
|
}
|
|
2758
2454
|
|
|
2759
2455
|
export namespace User {
|
|
2760
|
-
export type User = components[
|
|
2456
|
+
export type User = components['schemas']['UserEntity'];
|
|
2761
2457
|
|
|
2762
2458
|
export namespace Get {
|
|
2763
|
-
export type Request =
|
|
2764
|
-
|
|
2765
|
-
export type Response =
|
|
2766
|
-
operations["UserController_getMe"]["responses"]["200"]["content"]["application/json"];
|
|
2459
|
+
export type Request = operations['UserController_getMe']['parameters']['query'];
|
|
2460
|
+
export type Response = operations['UserController_getMe']['responses']['200']['content']['application/json'];
|
|
2767
2461
|
}
|
|
2768
2462
|
|
|
2769
2463
|
export namespace UpdateUser {
|
|
2770
2464
|
export namespace Phone {
|
|
2771
2465
|
export namespace RequestOTP {
|
|
2772
2466
|
export type Request =
|
|
2773
|
-
operations[
|
|
2467
|
+
operations['AuthenticatedUserController_changePhone']['requestBody']['content']['application/json'];
|
|
2774
2468
|
}
|
|
2775
2469
|
export namespace Confirm {
|
|
2776
2470
|
export type Request =
|
|
2777
|
-
operations[
|
|
2471
|
+
operations['AuthenticatedUserController_changePhoneNumberConfirm']['requestBody']['content']['application/json'];
|
|
2778
2472
|
}
|
|
2779
2473
|
}
|
|
2780
2474
|
|
|
2781
2475
|
export namespace Email {
|
|
2782
2476
|
export namespace RequestOTP {
|
|
2783
2477
|
export type Request =
|
|
2784
|
-
operations[
|
|
2478
|
+
operations['AuthenticatedUserController_changeEmail']['requestBody']['content']['application/json'];
|
|
2785
2479
|
}
|
|
2786
2480
|
|
|
2787
2481
|
export namespace Confirm {
|
|
2788
2482
|
export type Request =
|
|
2789
|
-
operations[
|
|
2483
|
+
operations['AuthenticatedUserController_changeEmailConfirm']['requestBody']['content']['application/json'];
|
|
2790
2484
|
}
|
|
2791
2485
|
}
|
|
2792
2486
|
}
|
|
2793
2487
|
|
|
2794
2488
|
export namespace UserData {
|
|
2795
|
-
export type UserData = components[
|
|
2489
|
+
export type UserData = components['schemas']['UserDataEntity'];
|
|
2796
2490
|
|
|
2797
2491
|
export namespace Get {
|
|
2798
|
-
export type Request =
|
|
2799
|
-
operations["UserController_getMyUserData"]["parameters"]["query"];
|
|
2492
|
+
export type Request = operations['UserController_getMyUserData']['parameters']['query'];
|
|
2800
2493
|
export type Response =
|
|
2801
|
-
operations[
|
|
2494
|
+
operations['UserController_getMyUserData']['responses']['200']['content']['application/json'];
|
|
2802
2495
|
}
|
|
2803
2496
|
|
|
2804
2497
|
export namespace Update {
|
|
2805
2498
|
export type Request =
|
|
2806
|
-
operations[
|
|
2499
|
+
operations['UserController_updateMyUserData']['requestBody']['content']['application/json'];
|
|
2807
2500
|
|
|
2808
2501
|
export type Response =
|
|
2809
|
-
operations[
|
|
2502
|
+
operations['UserController_updateMyUserData']['responses']['200']['content']['application/json'];
|
|
2810
2503
|
}
|
|
2811
2504
|
}
|
|
2812
2505
|
}
|
|
@@ -2947,7 +2640,7 @@ export namespace API {
|
|
|
2947
2640
|
wallet_uuid: string;
|
|
2948
2641
|
limit: number;
|
|
2949
2642
|
offset: number;
|
|
2950
|
-
filter?: Partial<components[
|
|
2643
|
+
filter?: Partial<components['schemas']['TransactionsFilter']>;
|
|
2951
2644
|
};
|
|
2952
2645
|
export type Response = {
|
|
2953
2646
|
total: number;
|
|
@@ -2957,7 +2650,7 @@ export namespace API {
|
|
|
2957
2650
|
export namespace ExportCsv {
|
|
2958
2651
|
export type Request = {
|
|
2959
2652
|
wallet_uuid: string;
|
|
2960
|
-
filter?: Partial<components[
|
|
2653
|
+
filter?: Partial<components['schemas']['TransactionsFilter']>;
|
|
2961
2654
|
};
|
|
2962
2655
|
export type Response = string;
|
|
2963
2656
|
}
|