squarefi-bff-api-module 1.24.11 → 1.24.13
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/issuing.js +2 -1
- package/dist/api/types/autogen/apiV2.types.d.ts +106 -102
- package/dist/api/types/types.d.ts +6 -1
- package/package.json +1 -1
- package/src/api/issuing.ts +14 -6
- package/src/api/types/autogen/apiV2.types.ts +106 -102
- package/src/api/types/types.ts +6 -1
package/dist/api/issuing.js
CHANGED
|
@@ -31,9 +31,10 @@ exports.issuing = {
|
|
|
31
31
|
prepaid: (data) => apiClientFactory_1.apiClientV1.postRequest('/issuing/cards/create', { data }),
|
|
32
32
|
balance: (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
33
33
|
const { id: sub_account_id } = yield exports.issuing.sub_accounts.create(data.wallet_id, data.program_id);
|
|
34
|
-
|
|
34
|
+
const response = yield apiClientFactory_1.apiClientV1.postRequest('/issuing/cards/balance', {
|
|
35
35
|
data: Object.assign(Object.assign({}, data), { sub_account_id }),
|
|
36
36
|
});
|
|
37
|
+
return Object.assign(Object.assign({}, response), { sub_account_id });
|
|
37
38
|
}),
|
|
38
39
|
},
|
|
39
40
|
subAccountCard: (data) => apiClientFactory_1.apiClientV1.postRequest('/issuing/cards/balance', { data }),
|
|
@@ -343,7 +343,11 @@ export interface paths {
|
|
|
343
343
|
/** Wallet address for chain */
|
|
344
344
|
get: operations["WalletsAddressesController_viewWalletAddressByChain"];
|
|
345
345
|
put?: never;
|
|
346
|
-
/**
|
|
346
|
+
/**
|
|
347
|
+
* Create a new address
|
|
348
|
+
* @deprecated
|
|
349
|
+
* @description Use viewWalletAddressByChain method to create and/or view address
|
|
350
|
+
*/
|
|
347
351
|
post: operations["WalletsAddressesController_createAddress"];
|
|
348
352
|
delete?: never;
|
|
349
353
|
options?: never;
|
|
@@ -422,6 +426,26 @@ export interface paths {
|
|
|
422
426
|
patch?: never;
|
|
423
427
|
trace?: never;
|
|
424
428
|
};
|
|
429
|
+
"/currencies": {
|
|
430
|
+
parameters: {
|
|
431
|
+
query?: never;
|
|
432
|
+
header?: never;
|
|
433
|
+
path?: never;
|
|
434
|
+
cookie?: never;
|
|
435
|
+
};
|
|
436
|
+
/**
|
|
437
|
+
* List of currencies
|
|
438
|
+
* @deprecated
|
|
439
|
+
*/
|
|
440
|
+
get: operations["CurrenciesController_all"];
|
|
441
|
+
put?: never;
|
|
442
|
+
post?: never;
|
|
443
|
+
delete?: never;
|
|
444
|
+
options?: never;
|
|
445
|
+
head?: never;
|
|
446
|
+
patch?: never;
|
|
447
|
+
trace?: never;
|
|
448
|
+
};
|
|
425
449
|
"/issuing/programs": {
|
|
426
450
|
parameters: {
|
|
427
451
|
query?: never;
|
|
@@ -511,26 +535,6 @@ export interface paths {
|
|
|
511
535
|
patch?: never;
|
|
512
536
|
trace?: never;
|
|
513
537
|
};
|
|
514
|
-
"/currencies": {
|
|
515
|
-
parameters: {
|
|
516
|
-
query?: never;
|
|
517
|
-
header?: never;
|
|
518
|
-
path?: never;
|
|
519
|
-
cookie?: never;
|
|
520
|
-
};
|
|
521
|
-
/**
|
|
522
|
-
* List of currencies
|
|
523
|
-
* @deprecated
|
|
524
|
-
*/
|
|
525
|
-
get: operations["CurrenciesController_all"];
|
|
526
|
-
put?: never;
|
|
527
|
-
post?: never;
|
|
528
|
-
delete?: never;
|
|
529
|
-
options?: never;
|
|
530
|
-
head?: never;
|
|
531
|
-
patch?: never;
|
|
532
|
-
trace?: never;
|
|
533
|
-
};
|
|
534
538
|
"/developer/accesses": {
|
|
535
539
|
parameters: {
|
|
536
540
|
query?: never;
|
|
@@ -1048,7 +1052,7 @@ export interface components {
|
|
|
1048
1052
|
* @default UNVERIFIED
|
|
1049
1053
|
* @enum {string|null}
|
|
1050
1054
|
*/
|
|
1051
|
-
kyc_status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | null;
|
|
1055
|
+
kyc_status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | "WAITING_ON_REVIEW" | null;
|
|
1052
1056
|
referral_name: string | null;
|
|
1053
1057
|
tenant_id: string;
|
|
1054
1058
|
user_id: string;
|
|
@@ -1242,6 +1246,54 @@ export interface components {
|
|
|
1242
1246
|
total: number;
|
|
1243
1247
|
data: components["schemas"]["ChainDto"][];
|
|
1244
1248
|
};
|
|
1249
|
+
CryptoCurrencyMetaDto: {
|
|
1250
|
+
icon: string;
|
|
1251
|
+
name: string;
|
|
1252
|
+
description: string;
|
|
1253
|
+
symbol: string;
|
|
1254
|
+
chain_id: number;
|
|
1255
|
+
contract: string;
|
|
1256
|
+
chain_name: string;
|
|
1257
|
+
};
|
|
1258
|
+
CryptoCurrencyDto: {
|
|
1259
|
+
uuid: string;
|
|
1260
|
+
decimal: number | null;
|
|
1261
|
+
render_decimal: number;
|
|
1262
|
+
is_stablecoin: boolean;
|
|
1263
|
+
is_memo: boolean;
|
|
1264
|
+
/** @enum {string|null} */
|
|
1265
|
+
type: "token" | "native" | null;
|
|
1266
|
+
meta: components["schemas"]["CryptoCurrencyMetaDto"];
|
|
1267
|
+
is_enabled: boolean;
|
|
1268
|
+
/** @example true */
|
|
1269
|
+
is_crypto: boolean;
|
|
1270
|
+
};
|
|
1271
|
+
FiatCurrencyMetaDto: {
|
|
1272
|
+
icon: string;
|
|
1273
|
+
name: string;
|
|
1274
|
+
description: string;
|
|
1275
|
+
symbol: string;
|
|
1276
|
+
code: string;
|
|
1277
|
+
iso_code: number;
|
|
1278
|
+
sign: string;
|
|
1279
|
+
};
|
|
1280
|
+
FiatCurrencyDto: {
|
|
1281
|
+
uuid: string;
|
|
1282
|
+
decimal: number | null;
|
|
1283
|
+
render_decimal: number;
|
|
1284
|
+
is_stablecoin: boolean;
|
|
1285
|
+
is_memo: boolean;
|
|
1286
|
+
/** @enum {string|null} */
|
|
1287
|
+
type: "token" | "native" | null;
|
|
1288
|
+
meta: components["schemas"]["FiatCurrencyMetaDto"];
|
|
1289
|
+
is_enabled: boolean;
|
|
1290
|
+
/** @example false */
|
|
1291
|
+
is_crypto: boolean;
|
|
1292
|
+
};
|
|
1293
|
+
AllCurrenciesResponseDto: {
|
|
1294
|
+
total: number;
|
|
1295
|
+
data: (components["schemas"]["CryptoCurrencyDto"] | components["schemas"]["FiatCurrencyDto"])[];
|
|
1296
|
+
};
|
|
1245
1297
|
KycRailTermsAndConditionsEntity: {
|
|
1246
1298
|
id: string;
|
|
1247
1299
|
description: string | null;
|
|
@@ -1290,28 +1342,6 @@ export interface components {
|
|
|
1290
1342
|
type: "CREDIT" | "DEBIT" | null;
|
|
1291
1343
|
kyc_rail: components["schemas"]["KycRailEntity"] | null;
|
|
1292
1344
|
};
|
|
1293
|
-
FiatCurrencyMetaDto: {
|
|
1294
|
-
icon: string;
|
|
1295
|
-
name: string;
|
|
1296
|
-
description: string;
|
|
1297
|
-
symbol: string;
|
|
1298
|
-
code: string;
|
|
1299
|
-
iso_code: number;
|
|
1300
|
-
sign: string;
|
|
1301
|
-
};
|
|
1302
|
-
FiatCurrencyDto: {
|
|
1303
|
-
uuid: string;
|
|
1304
|
-
decimal: number | null;
|
|
1305
|
-
render_decimal: number;
|
|
1306
|
-
is_stablecoin: boolean;
|
|
1307
|
-
is_memo: boolean;
|
|
1308
|
-
/** @enum {string|null} */
|
|
1309
|
-
type: "token" | "native" | null;
|
|
1310
|
-
meta: components["schemas"]["FiatCurrencyMetaDto"];
|
|
1311
|
-
is_enabled: boolean;
|
|
1312
|
-
/** @example false */
|
|
1313
|
-
is_crypto: boolean;
|
|
1314
|
-
};
|
|
1315
1345
|
FiatAccountIssuingCardDto: {
|
|
1316
1346
|
card_id: string;
|
|
1317
1347
|
program_id: string;
|
|
@@ -1437,32 +1467,6 @@ export interface components {
|
|
|
1437
1467
|
count: number;
|
|
1438
1468
|
data: components["schemas"]["FiatAccountTransactionDto"][];
|
|
1439
1469
|
};
|
|
1440
|
-
CryptoCurrencyMetaDto: {
|
|
1441
|
-
icon: string;
|
|
1442
|
-
name: string;
|
|
1443
|
-
description: string;
|
|
1444
|
-
symbol: string;
|
|
1445
|
-
chain_id: number;
|
|
1446
|
-
contract: string;
|
|
1447
|
-
chain_name: string;
|
|
1448
|
-
};
|
|
1449
|
-
CryptoCurrencyDto: {
|
|
1450
|
-
uuid: string;
|
|
1451
|
-
decimal: number | null;
|
|
1452
|
-
render_decimal: number;
|
|
1453
|
-
is_stablecoin: boolean;
|
|
1454
|
-
is_memo: boolean;
|
|
1455
|
-
/** @enum {string|null} */
|
|
1456
|
-
type: "token" | "native" | null;
|
|
1457
|
-
meta: components["schemas"]["CryptoCurrencyMetaDto"];
|
|
1458
|
-
is_enabled: boolean;
|
|
1459
|
-
/** @example true */
|
|
1460
|
-
is_crypto: boolean;
|
|
1461
|
-
};
|
|
1462
|
-
AllCurrenciesResponseDto: {
|
|
1463
|
-
total: number;
|
|
1464
|
-
data: (components["schemas"]["CryptoCurrencyDto"] | components["schemas"]["FiatCurrencyDto"])[];
|
|
1465
|
-
};
|
|
1466
1470
|
CreateDeveloperAccessDto: {
|
|
1467
1471
|
name: string;
|
|
1468
1472
|
/** @enum {string} */
|
|
@@ -1692,7 +1696,7 @@ export interface components {
|
|
|
1692
1696
|
* @default UNVERIFIED
|
|
1693
1697
|
* @enum {string}
|
|
1694
1698
|
*/
|
|
1695
|
-
status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS";
|
|
1699
|
+
status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | "WAITING_ON_REVIEW";
|
|
1696
1700
|
address?: components["schemas"]["KycAddressDto"] | null;
|
|
1697
1701
|
beneficial_owners?: components["schemas"]["KycBeneficialOwnerDto"][] | null;
|
|
1698
1702
|
};
|
|
@@ -1796,7 +1800,7 @@ export interface components {
|
|
|
1796
1800
|
WalletKycRailDto: {
|
|
1797
1801
|
message: string | null;
|
|
1798
1802
|
/** @enum {string} */
|
|
1799
|
-
readonly status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS";
|
|
1803
|
+
readonly status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | "WAITING_ON_REVIEW";
|
|
1800
1804
|
/** @default false */
|
|
1801
1805
|
terms_confirmed: boolean;
|
|
1802
1806
|
extra_actions?: components["schemas"]["WalletKycRailExtraActionDto"][];
|
|
@@ -2993,6 +2997,36 @@ export interface operations {
|
|
|
2993
2997
|
};
|
|
2994
2998
|
};
|
|
2995
2999
|
};
|
|
3000
|
+
CurrenciesController_all: {
|
|
3001
|
+
parameters: {
|
|
3002
|
+
query?: {
|
|
3003
|
+
is_crypto?: boolean;
|
|
3004
|
+
chain_id?: number;
|
|
3005
|
+
symbol?: string;
|
|
3006
|
+
};
|
|
3007
|
+
header?: never;
|
|
3008
|
+
path?: never;
|
|
3009
|
+
cookie?: never;
|
|
3010
|
+
};
|
|
3011
|
+
requestBody?: never;
|
|
3012
|
+
responses: {
|
|
3013
|
+
/** @description Invalid tenant */
|
|
3014
|
+
401: {
|
|
3015
|
+
headers: {
|
|
3016
|
+
[name: string]: unknown;
|
|
3017
|
+
};
|
|
3018
|
+
content?: never;
|
|
3019
|
+
};
|
|
3020
|
+
default: {
|
|
3021
|
+
headers: {
|
|
3022
|
+
[name: string]: unknown;
|
|
3023
|
+
};
|
|
3024
|
+
content: {
|
|
3025
|
+
"application/json": components["schemas"]["AllCurrenciesResponseDto"];
|
|
3026
|
+
};
|
|
3027
|
+
};
|
|
3028
|
+
};
|
|
3029
|
+
};
|
|
2996
3030
|
ProgramsController_getPrograms: {
|
|
2997
3031
|
parameters: {
|
|
2998
3032
|
query?: never;
|
|
@@ -3215,36 +3249,6 @@ export interface operations {
|
|
|
3215
3249
|
};
|
|
3216
3250
|
};
|
|
3217
3251
|
};
|
|
3218
|
-
CurrenciesController_all: {
|
|
3219
|
-
parameters: {
|
|
3220
|
-
query?: {
|
|
3221
|
-
is_crypto?: boolean;
|
|
3222
|
-
chain_id?: number;
|
|
3223
|
-
symbol?: string;
|
|
3224
|
-
};
|
|
3225
|
-
header?: never;
|
|
3226
|
-
path?: never;
|
|
3227
|
-
cookie?: never;
|
|
3228
|
-
};
|
|
3229
|
-
requestBody?: never;
|
|
3230
|
-
responses: {
|
|
3231
|
-
/** @description Invalid tenant */
|
|
3232
|
-
401: {
|
|
3233
|
-
headers: {
|
|
3234
|
-
[name: string]: unknown;
|
|
3235
|
-
};
|
|
3236
|
-
content?: never;
|
|
3237
|
-
};
|
|
3238
|
-
default: {
|
|
3239
|
-
headers: {
|
|
3240
|
-
[name: string]: unknown;
|
|
3241
|
-
};
|
|
3242
|
-
content: {
|
|
3243
|
-
"application/json": components["schemas"]["AllCurrenciesResponseDto"];
|
|
3244
|
-
};
|
|
3245
|
-
};
|
|
3246
|
-
};
|
|
3247
|
-
};
|
|
3248
3252
|
DeveloperAccessesController_findAll: {
|
|
3249
3253
|
parameters: {
|
|
3250
3254
|
query?: never;
|
|
@@ -104,6 +104,7 @@ export declare namespace API {
|
|
|
104
104
|
account_currency: string;
|
|
105
105
|
brand: string;
|
|
106
106
|
form_factor: CardFormFactor | string;
|
|
107
|
+
consent_text: string | null;
|
|
107
108
|
name: string;
|
|
108
109
|
card_limit: number;
|
|
109
110
|
realtime_auth: boolean;
|
|
@@ -320,7 +321,11 @@ export declare namespace API {
|
|
|
320
321
|
sub_account_id: string;
|
|
321
322
|
}
|
|
322
323
|
type StandAloneResponse = IssuingCardDetailItem;
|
|
323
|
-
type SubAccountResponse =
|
|
324
|
+
type SubAccountResponse = {
|
|
325
|
+
card_id: string;
|
|
326
|
+
status: string;
|
|
327
|
+
sub_account_id: string;
|
|
328
|
+
};
|
|
324
329
|
}
|
|
325
330
|
}
|
|
326
331
|
namespace Chains {
|
package/package.json
CHANGED
package/src/api/issuing.ts
CHANGED
|
@@ -12,12 +12,20 @@ export const issuing = {
|
|
|
12
12
|
balance: async (data: API.Cards.Create.StandAloneRequest): Promise<API.Cards.Create.SubAccountResponse> => {
|
|
13
13
|
const { id: sub_account_id } = await issuing.sub_accounts.create(data.wallet_id, data.program_id);
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
const response = await apiClientV1.postRequest<API.Cards.Create.SubAccountResponse>(
|
|
16
|
+
'/issuing/cards/balance',
|
|
17
|
+
{
|
|
18
|
+
data: {
|
|
19
|
+
...data,
|
|
20
|
+
sub_account_id,
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
...response,
|
|
27
|
+
sub_account_id,
|
|
28
|
+
};
|
|
21
29
|
},
|
|
22
30
|
},
|
|
23
31
|
subAccountCard: (data: API.Cards.Create.SubAccountRequest): Promise<API.Cards.Create.SubAccountResponse> =>
|
|
@@ -344,7 +344,11 @@ export interface paths {
|
|
|
344
344
|
/** Wallet address for chain */
|
|
345
345
|
get: operations["WalletsAddressesController_viewWalletAddressByChain"];
|
|
346
346
|
put?: never;
|
|
347
|
-
/**
|
|
347
|
+
/**
|
|
348
|
+
* Create a new address
|
|
349
|
+
* @deprecated
|
|
350
|
+
* @description Use viewWalletAddressByChain method to create and/or view address
|
|
351
|
+
*/
|
|
348
352
|
post: operations["WalletsAddressesController_createAddress"];
|
|
349
353
|
delete?: never;
|
|
350
354
|
options?: never;
|
|
@@ -423,6 +427,26 @@ export interface paths {
|
|
|
423
427
|
patch?: never;
|
|
424
428
|
trace?: never;
|
|
425
429
|
};
|
|
430
|
+
"/currencies": {
|
|
431
|
+
parameters: {
|
|
432
|
+
query?: never;
|
|
433
|
+
header?: never;
|
|
434
|
+
path?: never;
|
|
435
|
+
cookie?: never;
|
|
436
|
+
};
|
|
437
|
+
/**
|
|
438
|
+
* List of currencies
|
|
439
|
+
* @deprecated
|
|
440
|
+
*/
|
|
441
|
+
get: operations["CurrenciesController_all"];
|
|
442
|
+
put?: never;
|
|
443
|
+
post?: never;
|
|
444
|
+
delete?: never;
|
|
445
|
+
options?: never;
|
|
446
|
+
head?: never;
|
|
447
|
+
patch?: never;
|
|
448
|
+
trace?: never;
|
|
449
|
+
};
|
|
426
450
|
"/issuing/programs": {
|
|
427
451
|
parameters: {
|
|
428
452
|
query?: never;
|
|
@@ -512,26 +536,6 @@ export interface paths {
|
|
|
512
536
|
patch?: never;
|
|
513
537
|
trace?: never;
|
|
514
538
|
};
|
|
515
|
-
"/currencies": {
|
|
516
|
-
parameters: {
|
|
517
|
-
query?: never;
|
|
518
|
-
header?: never;
|
|
519
|
-
path?: never;
|
|
520
|
-
cookie?: never;
|
|
521
|
-
};
|
|
522
|
-
/**
|
|
523
|
-
* List of currencies
|
|
524
|
-
* @deprecated
|
|
525
|
-
*/
|
|
526
|
-
get: operations["CurrenciesController_all"];
|
|
527
|
-
put?: never;
|
|
528
|
-
post?: never;
|
|
529
|
-
delete?: never;
|
|
530
|
-
options?: never;
|
|
531
|
-
head?: never;
|
|
532
|
-
patch?: never;
|
|
533
|
-
trace?: never;
|
|
534
|
-
};
|
|
535
539
|
"/developer/accesses": {
|
|
536
540
|
parameters: {
|
|
537
541
|
query?: never;
|
|
@@ -1049,7 +1053,7 @@ export interface components {
|
|
|
1049
1053
|
* @default UNVERIFIED
|
|
1050
1054
|
* @enum {string|null}
|
|
1051
1055
|
*/
|
|
1052
|
-
kyc_status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | null;
|
|
1056
|
+
kyc_status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | "WAITING_ON_REVIEW" | null;
|
|
1053
1057
|
referral_name: string | null;
|
|
1054
1058
|
tenant_id: string;
|
|
1055
1059
|
user_id: string;
|
|
@@ -1243,6 +1247,54 @@ export interface components {
|
|
|
1243
1247
|
total: number;
|
|
1244
1248
|
data: components["schemas"]["ChainDto"][];
|
|
1245
1249
|
};
|
|
1250
|
+
CryptoCurrencyMetaDto: {
|
|
1251
|
+
icon: string;
|
|
1252
|
+
name: string;
|
|
1253
|
+
description: string;
|
|
1254
|
+
symbol: string;
|
|
1255
|
+
chain_id: number;
|
|
1256
|
+
contract: string;
|
|
1257
|
+
chain_name: string;
|
|
1258
|
+
};
|
|
1259
|
+
CryptoCurrencyDto: {
|
|
1260
|
+
uuid: string;
|
|
1261
|
+
decimal: number | null;
|
|
1262
|
+
render_decimal: number;
|
|
1263
|
+
is_stablecoin: boolean;
|
|
1264
|
+
is_memo: boolean;
|
|
1265
|
+
/** @enum {string|null} */
|
|
1266
|
+
type: "token" | "native" | null;
|
|
1267
|
+
meta: components["schemas"]["CryptoCurrencyMetaDto"];
|
|
1268
|
+
is_enabled: boolean;
|
|
1269
|
+
/** @example true */
|
|
1270
|
+
is_crypto: boolean;
|
|
1271
|
+
};
|
|
1272
|
+
FiatCurrencyMetaDto: {
|
|
1273
|
+
icon: string;
|
|
1274
|
+
name: string;
|
|
1275
|
+
description: string;
|
|
1276
|
+
symbol: string;
|
|
1277
|
+
code: string;
|
|
1278
|
+
iso_code: number;
|
|
1279
|
+
sign: string;
|
|
1280
|
+
};
|
|
1281
|
+
FiatCurrencyDto: {
|
|
1282
|
+
uuid: string;
|
|
1283
|
+
decimal: number | null;
|
|
1284
|
+
render_decimal: number;
|
|
1285
|
+
is_stablecoin: boolean;
|
|
1286
|
+
is_memo: boolean;
|
|
1287
|
+
/** @enum {string|null} */
|
|
1288
|
+
type: "token" | "native" | null;
|
|
1289
|
+
meta: components["schemas"]["FiatCurrencyMetaDto"];
|
|
1290
|
+
is_enabled: boolean;
|
|
1291
|
+
/** @example false */
|
|
1292
|
+
is_crypto: boolean;
|
|
1293
|
+
};
|
|
1294
|
+
AllCurrenciesResponseDto: {
|
|
1295
|
+
total: number;
|
|
1296
|
+
data: (components["schemas"]["CryptoCurrencyDto"] | components["schemas"]["FiatCurrencyDto"])[];
|
|
1297
|
+
};
|
|
1246
1298
|
KycRailTermsAndConditionsEntity: {
|
|
1247
1299
|
id: string;
|
|
1248
1300
|
description: string | null;
|
|
@@ -1291,28 +1343,6 @@ export interface components {
|
|
|
1291
1343
|
type: "CREDIT" | "DEBIT" | null;
|
|
1292
1344
|
kyc_rail: components["schemas"]["KycRailEntity"] | null;
|
|
1293
1345
|
};
|
|
1294
|
-
FiatCurrencyMetaDto: {
|
|
1295
|
-
icon: string;
|
|
1296
|
-
name: string;
|
|
1297
|
-
description: string;
|
|
1298
|
-
symbol: string;
|
|
1299
|
-
code: string;
|
|
1300
|
-
iso_code: number;
|
|
1301
|
-
sign: string;
|
|
1302
|
-
};
|
|
1303
|
-
FiatCurrencyDto: {
|
|
1304
|
-
uuid: string;
|
|
1305
|
-
decimal: number | null;
|
|
1306
|
-
render_decimal: number;
|
|
1307
|
-
is_stablecoin: boolean;
|
|
1308
|
-
is_memo: boolean;
|
|
1309
|
-
/** @enum {string|null} */
|
|
1310
|
-
type: "token" | "native" | null;
|
|
1311
|
-
meta: components["schemas"]["FiatCurrencyMetaDto"];
|
|
1312
|
-
is_enabled: boolean;
|
|
1313
|
-
/** @example false */
|
|
1314
|
-
is_crypto: boolean;
|
|
1315
|
-
};
|
|
1316
1346
|
FiatAccountIssuingCardDto: {
|
|
1317
1347
|
card_id: string;
|
|
1318
1348
|
program_id: string;
|
|
@@ -1438,32 +1468,6 @@ export interface components {
|
|
|
1438
1468
|
count: number;
|
|
1439
1469
|
data: components["schemas"]["FiatAccountTransactionDto"][];
|
|
1440
1470
|
};
|
|
1441
|
-
CryptoCurrencyMetaDto: {
|
|
1442
|
-
icon: string;
|
|
1443
|
-
name: string;
|
|
1444
|
-
description: string;
|
|
1445
|
-
symbol: string;
|
|
1446
|
-
chain_id: number;
|
|
1447
|
-
contract: string;
|
|
1448
|
-
chain_name: string;
|
|
1449
|
-
};
|
|
1450
|
-
CryptoCurrencyDto: {
|
|
1451
|
-
uuid: string;
|
|
1452
|
-
decimal: number | null;
|
|
1453
|
-
render_decimal: number;
|
|
1454
|
-
is_stablecoin: boolean;
|
|
1455
|
-
is_memo: boolean;
|
|
1456
|
-
/** @enum {string|null} */
|
|
1457
|
-
type: "token" | "native" | null;
|
|
1458
|
-
meta: components["schemas"]["CryptoCurrencyMetaDto"];
|
|
1459
|
-
is_enabled: boolean;
|
|
1460
|
-
/** @example true */
|
|
1461
|
-
is_crypto: boolean;
|
|
1462
|
-
};
|
|
1463
|
-
AllCurrenciesResponseDto: {
|
|
1464
|
-
total: number;
|
|
1465
|
-
data: (components["schemas"]["CryptoCurrencyDto"] | components["schemas"]["FiatCurrencyDto"])[];
|
|
1466
|
-
};
|
|
1467
1471
|
CreateDeveloperAccessDto: {
|
|
1468
1472
|
name: string;
|
|
1469
1473
|
/** @enum {string} */
|
|
@@ -1693,7 +1697,7 @@ export interface components {
|
|
|
1693
1697
|
* @default UNVERIFIED
|
|
1694
1698
|
* @enum {string}
|
|
1695
1699
|
*/
|
|
1696
|
-
status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS";
|
|
1700
|
+
status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | "WAITING_ON_REVIEW";
|
|
1697
1701
|
address?: components["schemas"]["KycAddressDto"] | null;
|
|
1698
1702
|
beneficial_owners?: components["schemas"]["KycBeneficialOwnerDto"][] | null;
|
|
1699
1703
|
};
|
|
@@ -1797,7 +1801,7 @@ export interface components {
|
|
|
1797
1801
|
WalletKycRailDto: {
|
|
1798
1802
|
message: string | null;
|
|
1799
1803
|
/** @enum {string} */
|
|
1800
|
-
readonly status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS";
|
|
1804
|
+
readonly status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | "WAITING_ON_REVIEW";
|
|
1801
1805
|
/** @default false */
|
|
1802
1806
|
terms_confirmed: boolean;
|
|
1803
1807
|
extra_actions?: components["schemas"]["WalletKycRailExtraActionDto"][];
|
|
@@ -2994,6 +2998,36 @@ export interface operations {
|
|
|
2994
2998
|
};
|
|
2995
2999
|
};
|
|
2996
3000
|
};
|
|
3001
|
+
CurrenciesController_all: {
|
|
3002
|
+
parameters: {
|
|
3003
|
+
query?: {
|
|
3004
|
+
is_crypto?: boolean;
|
|
3005
|
+
chain_id?: number;
|
|
3006
|
+
symbol?: string;
|
|
3007
|
+
};
|
|
3008
|
+
header?: never;
|
|
3009
|
+
path?: never;
|
|
3010
|
+
cookie?: never;
|
|
3011
|
+
};
|
|
3012
|
+
requestBody?: never;
|
|
3013
|
+
responses: {
|
|
3014
|
+
/** @description Invalid tenant */
|
|
3015
|
+
401: {
|
|
3016
|
+
headers: {
|
|
3017
|
+
[name: string]: unknown;
|
|
3018
|
+
};
|
|
3019
|
+
content?: never;
|
|
3020
|
+
};
|
|
3021
|
+
default: {
|
|
3022
|
+
headers: {
|
|
3023
|
+
[name: string]: unknown;
|
|
3024
|
+
};
|
|
3025
|
+
content: {
|
|
3026
|
+
"application/json": components["schemas"]["AllCurrenciesResponseDto"];
|
|
3027
|
+
};
|
|
3028
|
+
};
|
|
3029
|
+
};
|
|
3030
|
+
};
|
|
2997
3031
|
ProgramsController_getPrograms: {
|
|
2998
3032
|
parameters: {
|
|
2999
3033
|
query?: never;
|
|
@@ -3216,36 +3250,6 @@ export interface operations {
|
|
|
3216
3250
|
};
|
|
3217
3251
|
};
|
|
3218
3252
|
};
|
|
3219
|
-
CurrenciesController_all: {
|
|
3220
|
-
parameters: {
|
|
3221
|
-
query?: {
|
|
3222
|
-
is_crypto?: boolean;
|
|
3223
|
-
chain_id?: number;
|
|
3224
|
-
symbol?: string;
|
|
3225
|
-
};
|
|
3226
|
-
header?: never;
|
|
3227
|
-
path?: never;
|
|
3228
|
-
cookie?: never;
|
|
3229
|
-
};
|
|
3230
|
-
requestBody?: never;
|
|
3231
|
-
responses: {
|
|
3232
|
-
/** @description Invalid tenant */
|
|
3233
|
-
401: {
|
|
3234
|
-
headers: {
|
|
3235
|
-
[name: string]: unknown;
|
|
3236
|
-
};
|
|
3237
|
-
content?: never;
|
|
3238
|
-
};
|
|
3239
|
-
default: {
|
|
3240
|
-
headers: {
|
|
3241
|
-
[name: string]: unknown;
|
|
3242
|
-
};
|
|
3243
|
-
content: {
|
|
3244
|
-
"application/json": components["schemas"]["AllCurrenciesResponseDto"];
|
|
3245
|
-
};
|
|
3246
|
-
};
|
|
3247
|
-
};
|
|
3248
|
-
};
|
|
3249
3253
|
DeveloperAccessesController_findAll: {
|
|
3250
3254
|
parameters: {
|
|
3251
3255
|
query?: never;
|
package/src/api/types/types.ts
CHANGED
|
@@ -136,6 +136,7 @@ export namespace API {
|
|
|
136
136
|
account_currency: string;
|
|
137
137
|
brand: string;
|
|
138
138
|
form_factor: CardFormFactor | string;
|
|
139
|
+
consent_text: string | null;
|
|
139
140
|
name: string;
|
|
140
141
|
card_limit: number;
|
|
141
142
|
realtime_auth: boolean;
|
|
@@ -376,7 +377,11 @@ export namespace API {
|
|
|
376
377
|
}
|
|
377
378
|
|
|
378
379
|
export type StandAloneResponse = IssuingCardDetailItem;
|
|
379
|
-
export type SubAccountResponse =
|
|
380
|
+
export type SubAccountResponse = {
|
|
381
|
+
card_id: string;
|
|
382
|
+
status: string;
|
|
383
|
+
sub_account_id: string;
|
|
384
|
+
};
|
|
380
385
|
}
|
|
381
386
|
}
|
|
382
387
|
|