squarefi-bff-api-module 1.35.2 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/issuing.d.ts +5 -5
- package/dist/api/issuing.js +10 -10
- package/dist/api/types/autogen/apiV1External.types.d.ts +77 -1
- package/dist/api/types/autogen/apiV1Frontend.types.d.ts +156 -55
- package/dist/api/types/autogen/apiV1Legacy.types.d.ts +10 -3
- package/dist/api/types/autogen/apiV1Tenant.types.d.ts +54 -1
- package/dist/api/types/types.d.ts +18 -9
- package/package.json +1 -1
package/dist/api/issuing.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ export declare const issuing: {
|
|
|
9
9
|
subAccountCard: (data: API.Cards.Create.SubAccountRequest) => Promise<API.Cards.Create.ExtendedSubAccountResponse>;
|
|
10
10
|
};
|
|
11
11
|
byWalletUuid: {
|
|
12
|
-
getAll: (
|
|
13
|
-
getBySubaccountType: (
|
|
14
|
-
getBySubAccount: (
|
|
12
|
+
getAll: ({ limit, offset, ...rest }: API.Cards.CardsList.Request.ByWalletUuid) => Promise<API.Cards.CardsList.Response>;
|
|
13
|
+
getBySubaccountType: ({ limit, offset, ...rest }: API.Cards.CardsList.Request.BySubaccountAndWalletUuid) => Promise<API.Cards.CardsList.Response>;
|
|
14
|
+
getBySubAccount: ({ limit, offset, ...rest }: API.Cards.CardsList.Request.BySubAccountAndWalletId) => Promise<API.Cards.CardsList.Response>;
|
|
15
15
|
};
|
|
16
16
|
getById: (card_id: string) => Promise<API.Cards.IssuingCardDetailItem>;
|
|
17
17
|
sensitiveData: {
|
|
@@ -33,8 +33,8 @@ export declare const issuing: {
|
|
|
33
33
|
rename: (card_id: string, nick_name: string) => Promise<API.Cards.IssuingCardDetailItem>;
|
|
34
34
|
};
|
|
35
35
|
transactions: {
|
|
36
|
-
getByCardId: (card_id
|
|
37
|
-
getBySubAccountId: (fiat_account_id
|
|
36
|
+
getByCardId: ({ card_id, limit, offset, transaction_type, status, from, to, }: API.Cards.Transactions.List.ByCardIdRequest) => Promise<API.Cards.TransactionsList>;
|
|
37
|
+
getBySubAccountId: ({ fiat_account_id, limit, offset, transaction_type, status, from, to, }: API.Cards.Transactions.List.BySubAccountIdRequest) => Promise<API.Cards.TransactionsList>;
|
|
38
38
|
csv: {
|
|
39
39
|
getByCardId: (card_id: string) => Promise<string>;
|
|
40
40
|
getBySubAccountId: (sub_account_id: string) => Promise<string>;
|
package/dist/api/issuing.js
CHANGED
|
@@ -31,14 +31,14 @@ export const issuing = {
|
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
33
|
byWalletUuid: {
|
|
34
|
-
getAll: (
|
|
35
|
-
params,
|
|
34
|
+
getAll: ({ limit = defaultPaginationParams.limit, offset = defaultPaginationParams.offset, ...rest }) => apiClientV1.getRequest('/issuing/cards', {
|
|
35
|
+
params: { ...rest, limit, offset },
|
|
36
36
|
}),
|
|
37
|
-
getBySubaccountType: (
|
|
38
|
-
params,
|
|
37
|
+
getBySubaccountType: ({ limit = defaultPaginationParams.limit, offset = defaultPaginationParams.offset, ...rest }) => apiClientV1.getRequest('/issuing/cards', {
|
|
38
|
+
params: { ...rest, limit, offset },
|
|
39
39
|
}),
|
|
40
|
-
getBySubAccount: (
|
|
41
|
-
params,
|
|
40
|
+
getBySubAccount: ({ limit = defaultPaginationParams.limit, offset = defaultPaginationParams.offset, ...rest }) => apiClientV1.getRequest('/issuing/cards', {
|
|
41
|
+
params: { ...rest, limit, offset },
|
|
42
42
|
}),
|
|
43
43
|
},
|
|
44
44
|
// getById: (card_id: string) => apiClientV1.getRequest<API.Cards.IssuingCardDetailItem>(`/issuing/cards/${card_id}`),
|
|
@@ -86,11 +86,11 @@ export const issuing = {
|
|
|
86
86
|
}),
|
|
87
87
|
},
|
|
88
88
|
transactions: {
|
|
89
|
-
getByCardId: (card_id, limit = defaultPaginationParams.limit, offset = defaultPaginationParams.offset) => apiClientV1.getRequest(`/issuing/transactions/`, {
|
|
90
|
-
params: { limit, offset, card_id, new_scheme: true },
|
|
89
|
+
getByCardId: ({ card_id, limit = defaultPaginationParams.limit, offset = defaultPaginationParams.offset, transaction_type, status, from, to, }) => apiClientV1.getRequest(`/issuing/transactions/`, {
|
|
90
|
+
params: { limit, offset, card_id, new_scheme: true, transaction_type, status, from, to },
|
|
91
91
|
}),
|
|
92
|
-
getBySubAccountId: (fiat_account_id, limit = defaultPaginationParams.limit, offset = defaultPaginationParams.offset) => apiClientV1.getRequest(`/issuing/transactions/`, {
|
|
93
|
-
params: { limit, offset, fiat_account_id, new_scheme: true },
|
|
92
|
+
getBySubAccountId: ({ fiat_account_id, limit = defaultPaginationParams.limit, offset = defaultPaginationParams.offset, transaction_type, status, from, to, }) => apiClientV1.getRequest(`/issuing/transactions/`, {
|
|
93
|
+
params: { limit, offset, fiat_account_id, new_scheme: true, transaction_type, status, from, to },
|
|
94
94
|
}),
|
|
95
95
|
csv: {
|
|
96
96
|
getByCardId: (card_id) => apiClientV1.getRequest(`/issuing/transactions/csv`, {
|
|
@@ -2011,6 +2011,8 @@ export interface paths {
|
|
|
2011
2011
|
sub_account_type?: "prepaid" | "balance";
|
|
2012
2012
|
/** @description Filter cards by status */
|
|
2013
2013
|
status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | "CANCELED";
|
|
2014
|
+
/** @description Filter cards by exact last 4 digits of the card number */
|
|
2015
|
+
last4?: string;
|
|
2014
2016
|
/** @description Number of items to skip */
|
|
2015
2017
|
offset?: number;
|
|
2016
2018
|
/** @description Number of items to return */
|
|
@@ -3229,7 +3231,81 @@ export interface paths {
|
|
|
3229
3231
|
delete?: never;
|
|
3230
3232
|
options?: never;
|
|
3231
3233
|
head?: never;
|
|
3232
|
-
|
|
3234
|
+
/**
|
|
3235
|
+
* Update sub-account
|
|
3236
|
+
* @description Updates editable fields of a sub-account. Currently only the `nick_name` can be changed.
|
|
3237
|
+
*
|
|
3238
|
+
* **Authentication**: x-api-key header required
|
|
3239
|
+
*
|
|
3240
|
+
* **Access Control**: User must have access to the sub-account
|
|
3241
|
+
*
|
|
3242
|
+
*/
|
|
3243
|
+
patch: {
|
|
3244
|
+
parameters: {
|
|
3245
|
+
query?: never;
|
|
3246
|
+
header?: never;
|
|
3247
|
+
path: {
|
|
3248
|
+
/** @description The ID of the sub-account to update */
|
|
3249
|
+
sub_account_id: string;
|
|
3250
|
+
};
|
|
3251
|
+
cookie?: never;
|
|
3252
|
+
};
|
|
3253
|
+
requestBody: {
|
|
3254
|
+
content: {
|
|
3255
|
+
"application/json": {
|
|
3256
|
+
/**
|
|
3257
|
+
* @description New nickname for the sub-account
|
|
3258
|
+
* @example Travel budget
|
|
3259
|
+
*/
|
|
3260
|
+
nick_name: string;
|
|
3261
|
+
};
|
|
3262
|
+
};
|
|
3263
|
+
};
|
|
3264
|
+
responses: {
|
|
3265
|
+
/** @description Sub-account updated successfully */
|
|
3266
|
+
200: {
|
|
3267
|
+
headers: {
|
|
3268
|
+
[name: string]: unknown;
|
|
3269
|
+
};
|
|
3270
|
+
content: {
|
|
3271
|
+
"application/json": {
|
|
3272
|
+
/** @example true */
|
|
3273
|
+
success?: boolean;
|
|
3274
|
+
data?: components["schemas"]["IssuingSubAccount"];
|
|
3275
|
+
/** @example Sub-account updated successfully */
|
|
3276
|
+
message?: string;
|
|
3277
|
+
};
|
|
3278
|
+
};
|
|
3279
|
+
};
|
|
3280
|
+
/** @description Bad Request - nick_name is required */
|
|
3281
|
+
400: {
|
|
3282
|
+
headers: {
|
|
3283
|
+
[name: string]: unknown;
|
|
3284
|
+
};
|
|
3285
|
+
content: {
|
|
3286
|
+
"application/json": components["schemas"]["ApiErrorResponse"];
|
|
3287
|
+
};
|
|
3288
|
+
};
|
|
3289
|
+
/** @description Access denied to this sub-account */
|
|
3290
|
+
403: {
|
|
3291
|
+
headers: {
|
|
3292
|
+
[name: string]: unknown;
|
|
3293
|
+
};
|
|
3294
|
+
content: {
|
|
3295
|
+
"application/json": components["schemas"]["ApiErrorResponse"];
|
|
3296
|
+
};
|
|
3297
|
+
};
|
|
3298
|
+
/** @description Sub-account not found */
|
|
3299
|
+
404: {
|
|
3300
|
+
headers: {
|
|
3301
|
+
[name: string]: unknown;
|
|
3302
|
+
};
|
|
3303
|
+
content: {
|
|
3304
|
+
"application/json": components["schemas"]["ApiErrorResponse"];
|
|
3305
|
+
};
|
|
3306
|
+
};
|
|
3307
|
+
};
|
|
3308
|
+
};
|
|
3233
3309
|
trace?: never;
|
|
3234
3310
|
};
|
|
3235
3311
|
"/api/issuing/sub-accounts/{sub_account_id}/transactions": {
|
|
@@ -1736,6 +1736,8 @@ export interface paths {
|
|
|
1736
1736
|
sub_account_type?: "prepaid" | "balance";
|
|
1737
1737
|
/** @description Filter cards by status */
|
|
1738
1738
|
status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | "CANCELED";
|
|
1739
|
+
/** @description Filter cards by exact last 4 digits of the card number */
|
|
1740
|
+
last4?: string;
|
|
1739
1741
|
/** @description Number of items to skip */
|
|
1740
1742
|
offset?: number;
|
|
1741
1743
|
/** @description Number of items to return */
|
|
@@ -3008,7 +3010,76 @@ export interface paths {
|
|
|
3008
3010
|
delete?: never;
|
|
3009
3011
|
options?: never;
|
|
3010
3012
|
head?: never;
|
|
3011
|
-
|
|
3013
|
+
/**
|
|
3014
|
+
* Update sub-account
|
|
3015
|
+
* @description Updates editable fields of a sub-account. Currently only the `nick_name` can be changed.
|
|
3016
|
+
*
|
|
3017
|
+
* **Authentication**: Bearer token with x-tenant-id header required
|
|
3018
|
+
*
|
|
3019
|
+
* **Access Control**: User must have ADMIN role on the sub-account's wallet
|
|
3020
|
+
*
|
|
3021
|
+
*/
|
|
3022
|
+
patch: {
|
|
3023
|
+
parameters: {
|
|
3024
|
+
query?: never;
|
|
3025
|
+
header?: never;
|
|
3026
|
+
path: {
|
|
3027
|
+
/** @description The ID of the sub-account to update */
|
|
3028
|
+
sub_account_id: string;
|
|
3029
|
+
};
|
|
3030
|
+
cookie?: never;
|
|
3031
|
+
};
|
|
3032
|
+
requestBody: {
|
|
3033
|
+
content: {
|
|
3034
|
+
"application/json": {
|
|
3035
|
+
/**
|
|
3036
|
+
* @description New nickname for the sub-account
|
|
3037
|
+
* @example Travel budget
|
|
3038
|
+
*/
|
|
3039
|
+
nick_name: string;
|
|
3040
|
+
};
|
|
3041
|
+
};
|
|
3042
|
+
};
|
|
3043
|
+
responses: {
|
|
3044
|
+
/** @description Sub-account updated successfully */
|
|
3045
|
+
200: {
|
|
3046
|
+
headers: {
|
|
3047
|
+
[name: string]: unknown;
|
|
3048
|
+
};
|
|
3049
|
+
content: {
|
|
3050
|
+
"application/json": {
|
|
3051
|
+
/** @example true */
|
|
3052
|
+
success?: boolean;
|
|
3053
|
+
/** @description Updated sub-account details */
|
|
3054
|
+
data?: Record<string, never>;
|
|
3055
|
+
/** @example Sub-account updated successfully */
|
|
3056
|
+
message?: string;
|
|
3057
|
+
};
|
|
3058
|
+
};
|
|
3059
|
+
};
|
|
3060
|
+
/** @description Bad Request - nick_name is required */
|
|
3061
|
+
400: {
|
|
3062
|
+
headers: {
|
|
3063
|
+
[name: string]: unknown;
|
|
3064
|
+
};
|
|
3065
|
+
content?: never;
|
|
3066
|
+
};
|
|
3067
|
+
/** @description Access denied to this sub-account */
|
|
3068
|
+
403: {
|
|
3069
|
+
headers: {
|
|
3070
|
+
[name: string]: unknown;
|
|
3071
|
+
};
|
|
3072
|
+
content?: never;
|
|
3073
|
+
};
|
|
3074
|
+
/** @description Sub-account not found */
|
|
3075
|
+
404: {
|
|
3076
|
+
headers: {
|
|
3077
|
+
[name: string]: unknown;
|
|
3078
|
+
};
|
|
3079
|
+
content?: never;
|
|
3080
|
+
};
|
|
3081
|
+
};
|
|
3082
|
+
};
|
|
3012
3083
|
trace?: never;
|
|
3013
3084
|
};
|
|
3014
3085
|
"/frontend/issuing/sub-accounts/{sub_account_id}/transactions": {
|
|
@@ -7143,7 +7214,7 @@ export interface paths {
|
|
|
7143
7214
|
/** @description Include shared wallets (via wallets_users table) */
|
|
7144
7215
|
include_shared?: boolean;
|
|
7145
7216
|
/** @description Field to sort the merged owned + shared wallet list by */
|
|
7146
|
-
sort_by?: "created_at" | "
|
|
7217
|
+
sort_by?: "created_at" | "name";
|
|
7147
7218
|
/** @description Sort direction (case-insensitive) */
|
|
7148
7219
|
sort_order?: "ASC" | "DESC";
|
|
7149
7220
|
};
|
|
@@ -7165,8 +7236,6 @@ export interface paths {
|
|
|
7165
7236
|
data: {
|
|
7166
7237
|
/** Format: uuid */
|
|
7167
7238
|
uuid: string;
|
|
7168
|
-
/** @description Deprecated field */
|
|
7169
|
-
type?: string;
|
|
7170
7239
|
/** @description Wallet display name (mirrors POST/PATCH responses) */
|
|
7171
7240
|
name: string | null;
|
|
7172
7241
|
/** @description Avatar URL for the wallet */
|
|
@@ -7272,8 +7341,6 @@ export interface paths {
|
|
|
7272
7341
|
data: {
|
|
7273
7342
|
/** Format: uuid */
|
|
7274
7343
|
uuid: string;
|
|
7275
|
-
/** @description Deprecated field */
|
|
7276
|
-
type?: string;
|
|
7277
7344
|
/** @example Golden Vault 42 */
|
|
7278
7345
|
name: string | null;
|
|
7279
7346
|
logo_url: string | null;
|
|
@@ -7542,8 +7609,6 @@ export interface paths {
|
|
|
7542
7609
|
data: {
|
|
7543
7610
|
/** Format: uuid */
|
|
7544
7611
|
uuid: string;
|
|
7545
|
-
/** @description Deprecated field */
|
|
7546
|
-
type?: string;
|
|
7547
7612
|
name: string | null;
|
|
7548
7613
|
logo_url: string | null;
|
|
7549
7614
|
/** Format: uuid */
|
|
@@ -7570,7 +7635,7 @@ export interface paths {
|
|
|
7570
7635
|
decimal: number;
|
|
7571
7636
|
amount: number;
|
|
7572
7637
|
fiat_amount: number;
|
|
7573
|
-
details:
|
|
7638
|
+
details: components["schemas"]["AggregatedBalanceDetails"][];
|
|
7574
7639
|
}[];
|
|
7575
7640
|
fiat_accounts: Record<string, never>[];
|
|
7576
7641
|
/** @description User's base currency */
|
|
@@ -7778,8 +7843,6 @@ export interface paths {
|
|
|
7778
7843
|
data: {
|
|
7779
7844
|
/** Format: uuid */
|
|
7780
7845
|
uuid: string;
|
|
7781
|
-
/** @description Deprecated field */
|
|
7782
|
-
type?: string;
|
|
7783
7846
|
/** Format: uuid */
|
|
7784
7847
|
tenant_id: string;
|
|
7785
7848
|
/** Format: date-time */
|
|
@@ -8205,29 +8268,9 @@ export interface paths {
|
|
|
8205
8268
|
content: {
|
|
8206
8269
|
"application/json": {
|
|
8207
8270
|
/** @example true */
|
|
8208
|
-
success
|
|
8209
|
-
data
|
|
8210
|
-
|
|
8211
|
-
/** Format: date-time */
|
|
8212
|
-
created_at?: string;
|
|
8213
|
-
type?: string;
|
|
8214
|
-
status?: string;
|
|
8215
|
-
amount?: number;
|
|
8216
|
-
method?: string;
|
|
8217
|
-
record_type?: string;
|
|
8218
|
-
/** Format: uuid */
|
|
8219
|
-
wallet_id?: string;
|
|
8220
|
-
/** @description Currency information */
|
|
8221
|
-
currency?: Record<string, never>;
|
|
8222
|
-
/** @description Transaction metadata */
|
|
8223
|
-
meta?: Record<string, never>;
|
|
8224
|
-
}[];
|
|
8225
|
-
pagination?: {
|
|
8226
|
-
offset?: number;
|
|
8227
|
-
limit?: number;
|
|
8228
|
-
total?: number;
|
|
8229
|
-
has_more?: boolean;
|
|
8230
|
-
};
|
|
8271
|
+
success: boolean;
|
|
8272
|
+
data: components["schemas"]["Transaction"][];
|
|
8273
|
+
pagination: components["schemas"]["PaginationResponse"];
|
|
8231
8274
|
};
|
|
8232
8275
|
};
|
|
8233
8276
|
};
|
|
@@ -8385,23 +8428,8 @@ export interface paths {
|
|
|
8385
8428
|
content: {
|
|
8386
8429
|
"application/json": {
|
|
8387
8430
|
/** @example true */
|
|
8388
|
-
success
|
|
8389
|
-
data
|
|
8390
|
-
id?: number;
|
|
8391
|
-
/** Format: date-time */
|
|
8392
|
-
created_at?: string;
|
|
8393
|
-
type?: string;
|
|
8394
|
-
status?: string;
|
|
8395
|
-
amount?: number;
|
|
8396
|
-
method?: string;
|
|
8397
|
-
record_type?: string;
|
|
8398
|
-
/** Format: uuid */
|
|
8399
|
-
wallet_id?: string;
|
|
8400
|
-
/** @description Currency information */
|
|
8401
|
-
currency?: Record<string, never>;
|
|
8402
|
-
/** @description Transaction metadata */
|
|
8403
|
-
meta?: Record<string, never>;
|
|
8404
|
-
};
|
|
8431
|
+
success: boolean;
|
|
8432
|
+
data: components["schemas"]["Transaction"];
|
|
8405
8433
|
};
|
|
8406
8434
|
};
|
|
8407
8435
|
};
|
|
@@ -9261,10 +9289,10 @@ export interface components {
|
|
|
9261
9289
|
*/
|
|
9262
9290
|
OrderTypeId: "EXCHANGE_OMNI" | "EXCHANGE_OMNI_ONRAMP" | "EXCHANGE_OMNI_OFFRAMP" | "EXCHANGE_OMNI_CRYPTO" | "EXCHANGE_CRYPTO_INTERNAL" | "L2F_ACH_ONRAMP" | "L2F_ACH_OFFRAMP" | "L2F_SEPA_ONRAMP" | "L2F_SEPA_OFFRAMP" | "L2F_SWIFT_ONRAMP" | "L2F_SWIFT_OFFRAMP" | "L2F_WIRE_ONRAMP" | "L2F_WIRE_OFFRAMP" | "L2F_CHAPS_ONRAMP" | "L2F_CHAPS_OFFRAMP" | "L2F_FPS_ONRAMP" | "L2F_FPS_OFFRAMP" | "BRL_WIRE_ONRAMP" | "BRL_WIRE_OFFRAMP" | "BRL_ACH_ONRAMP" | "BRL_ACH_OFFRAMP" | "OMNIBUS_CRYPTO_TRANSFER" | "OMNIBUS_CRYPTO_WITHDRAWAL" | "OMNIBUS_INTERNAL_TRANSFER" | "SEGREGATED_CRYPTO_TRANSFER" | "TRANSFER_INTERNAL" | "TRANSFER_CARD_PREPAID" | "TRANSFER_CARD_SUBACCOUNT" | "TRANSFER_CARD_WHOLESALE" | "WITHDRAW_CARD_PREPAID" | "WITHDRAW_CARD_SUBACCOUNT" | "REFUND_CARD_PREPAID" | "REFUND_CARD_SUBACCOUNT" | "RN_CARDS_OFFRAMP" | "CARD_ISSUING_FEE";
|
|
9263
9291
|
PaginationResponse: {
|
|
9264
|
-
offset
|
|
9265
|
-
limit
|
|
9266
|
-
total
|
|
9267
|
-
has_more
|
|
9292
|
+
offset: number;
|
|
9293
|
+
limit: number;
|
|
9294
|
+
total: number;
|
|
9295
|
+
has_more: boolean;
|
|
9268
9296
|
};
|
|
9269
9297
|
ErrorResponse: {
|
|
9270
9298
|
/** @example false */
|
|
@@ -9551,6 +9579,79 @@ export interface components {
|
|
|
9551
9579
|
/** Format: date-time */
|
|
9552
9580
|
created_at: string;
|
|
9553
9581
|
};
|
|
9582
|
+
/** @description Unified currency record. `is_crypto: true` identifies a blockchain asset, `false` a fiat one. The joined `meta` JSONB blob carries currency-specific details (e.g. `chain_id`/contract for crypto, ISO code/country for fiat). */
|
|
9583
|
+
Currency: {
|
|
9584
|
+
id?: number;
|
|
9585
|
+
/** Format: uuid */
|
|
9586
|
+
uuid: string;
|
|
9587
|
+
icon?: string | null;
|
|
9588
|
+
name: string;
|
|
9589
|
+
symbol: string;
|
|
9590
|
+
is_crypto: boolean;
|
|
9591
|
+
decimal: number;
|
|
9592
|
+
/** @description Currency-specific metadata blob */
|
|
9593
|
+
meta: {
|
|
9594
|
+
[key: string]: unknown;
|
|
9595
|
+
};
|
|
9596
|
+
};
|
|
9597
|
+
/** @description Transaction metadata. All fields are optional — presence depends on the transaction type/method (crypto transfer, card spend, fiat off-ramp, internal exchange, etc.). Unknown keys may also appear and should be ignored by clients. */
|
|
9598
|
+
TransactionMeta: {
|
|
9599
|
+
billing_amount?: number;
|
|
9600
|
+
billing_amount_currency?: string;
|
|
9601
|
+
transaction_amount?: number;
|
|
9602
|
+
transaction_amount_currency?: string;
|
|
9603
|
+
fee?: number;
|
|
9604
|
+
fee_currency?: string;
|
|
9605
|
+
network_fee?: number;
|
|
9606
|
+
network_fee_currency?: string;
|
|
9607
|
+
exchange_rate?: number;
|
|
9608
|
+
from_address?: string;
|
|
9609
|
+
to_address?: string;
|
|
9610
|
+
/** Format: uuid */
|
|
9611
|
+
from_user_data?: string;
|
|
9612
|
+
/** Format: uuid */
|
|
9613
|
+
to_user_data?: string;
|
|
9614
|
+
to_card_id?: string;
|
|
9615
|
+
to_card_last4?: string;
|
|
9616
|
+
to_fiat_account_id?: string;
|
|
9617
|
+
to_vendor_id?: string;
|
|
9618
|
+
txid?: string;
|
|
9619
|
+
/** Format: uuid */
|
|
9620
|
+
order_id?: string;
|
|
9621
|
+
} & {
|
|
9622
|
+
[key: string]: unknown;
|
|
9623
|
+
};
|
|
9624
|
+
/** @description Wallet transaction record with embedded currency and metadata */
|
|
9625
|
+
Transaction: {
|
|
9626
|
+
id: number;
|
|
9627
|
+
/** Format: date-time */
|
|
9628
|
+
created_at: string;
|
|
9629
|
+
type: string;
|
|
9630
|
+
status: string;
|
|
9631
|
+
amount: number;
|
|
9632
|
+
method: string;
|
|
9633
|
+
record_type: string;
|
|
9634
|
+
/** Format: uuid */
|
|
9635
|
+
wallet_id: string;
|
|
9636
|
+
currency: components["schemas"]["Currency"];
|
|
9637
|
+
meta: components["schemas"]["TransactionMeta"];
|
|
9638
|
+
};
|
|
9639
|
+
/** @description A single underlying balance row contributing to an aggregated `balance[]` entry. The aggregated entry merges all rows that share the same symbol; each `details[]` item exposes the per-row breakdown so clients can show per-chain / per-account amounts. */
|
|
9640
|
+
AggregatedBalanceDetails: {
|
|
9641
|
+
/** Format: uuid */
|
|
9642
|
+
uuid: string;
|
|
9643
|
+
amount: number;
|
|
9644
|
+
fiat_amount: number;
|
|
9645
|
+
currency: components["schemas"]["Currency"];
|
|
9646
|
+
/** @description Snapshot of the underlying crypto record from this balance row */
|
|
9647
|
+
crypto?: {
|
|
9648
|
+
[key: string]: unknown;
|
|
9649
|
+
};
|
|
9650
|
+
/** Format: uuid */
|
|
9651
|
+
crypto_id?: string | null;
|
|
9652
|
+
/** Format: uuid */
|
|
9653
|
+
wallet_id?: string;
|
|
9654
|
+
};
|
|
9554
9655
|
};
|
|
9555
9656
|
responses: {
|
|
9556
9657
|
/** @description Authentication credentials are missing or invalid */
|
|
@@ -1260,13 +1260,18 @@ export interface paths {
|
|
|
1260
1260
|
sort_by?: "card_id" | "nick_name" | "name_on_card" | "last4" | "card_status" | "created_at";
|
|
1261
1261
|
/** @description Sort direction */
|
|
1262
1262
|
sort_order?: "ASC" | "DESC";
|
|
1263
|
+
/**
|
|
1264
|
+
* @description Filter cards by exact last 4 digits of the card number (equality match against `issuing_cards.last4`).
|
|
1265
|
+
* @example 1234
|
|
1266
|
+
*/
|
|
1267
|
+
"filter[last4]"?: string;
|
|
1263
1268
|
/** @description Filter by specific card properties. Can be provided in three ways:
|
|
1264
1269
|
* 1. As JSON object: `filter={"last4":"1234"}`
|
|
1265
1270
|
* 2. As query params: `filter[last4]=1234`
|
|
1266
1271
|
* 3. For nested filtering: `filter[fiat_account][type]=prepaid`
|
|
1267
1272
|
*
|
|
1268
1273
|
* Common filter fields:
|
|
1269
|
-
* - `last4`: Filter by last 4 digits of card
|
|
1274
|
+
* - `last4`: Filter by last 4 digits of card (exact match)
|
|
1270
1275
|
* - `card_status`: Filter by status (ACTIVE, INACTIVE, CANCELED)
|
|
1271
1276
|
* - `fiat_account.type`: Filter by account type (prepaid, balance)
|
|
1272
1277
|
* - `from_created_at`: Filter cards created on or after this date (ISO 8601 format)
|
|
@@ -2284,10 +2289,12 @@ export interface paths {
|
|
|
2284
2289
|
new_scheme?: boolean;
|
|
2285
2290
|
/** @description Filter by transaction type */
|
|
2286
2291
|
transaction_type?: string;
|
|
2287
|
-
/** @description Filter by start date */
|
|
2292
|
+
/** @description Filter by start date (ISO 8601). Sent to external provider as `from_timestamp` and post-filtered against `cleared_at`/`created_at`. */
|
|
2288
2293
|
from?: string;
|
|
2289
|
-
/** @description Filter by end date */
|
|
2294
|
+
/** @description Filter by end date (ISO 8601). Sent to external provider as `to_timestamp` and post-filtered against `cleared_at`/`created_at`. */
|
|
2290
2295
|
to?: string;
|
|
2296
|
+
/** @description Filter by transaction status. Forwarded to external provider and applied as a post-filter on the combined result. */
|
|
2297
|
+
status?: "PENDING" | "APPROVED" | "DECLINED" | "CANCELED";
|
|
2291
2298
|
};
|
|
2292
2299
|
header?: never;
|
|
2293
2300
|
path?: never;
|
|
@@ -6490,7 +6490,60 @@ export interface paths {
|
|
|
6490
6490
|
delete?: never;
|
|
6491
6491
|
options?: never;
|
|
6492
6492
|
head?: never;
|
|
6493
|
-
|
|
6493
|
+
/**
|
|
6494
|
+
* Update sub-account
|
|
6495
|
+
* @description Updates editable fields of a sub-account. Currently only the `nick_name` can be changed.
|
|
6496
|
+
*/
|
|
6497
|
+
patch: {
|
|
6498
|
+
parameters: {
|
|
6499
|
+
query?: never;
|
|
6500
|
+
header?: never;
|
|
6501
|
+
path: {
|
|
6502
|
+
sub_account_id: string;
|
|
6503
|
+
};
|
|
6504
|
+
cookie?: never;
|
|
6505
|
+
};
|
|
6506
|
+
requestBody: {
|
|
6507
|
+
content: {
|
|
6508
|
+
"application/json": {
|
|
6509
|
+
nick_name: string;
|
|
6510
|
+
};
|
|
6511
|
+
};
|
|
6512
|
+
};
|
|
6513
|
+
responses: {
|
|
6514
|
+
/** @description Sub-account updated */
|
|
6515
|
+
200: {
|
|
6516
|
+
headers: {
|
|
6517
|
+
[name: string]: unknown;
|
|
6518
|
+
};
|
|
6519
|
+
content: {
|
|
6520
|
+
"application/json": {
|
|
6521
|
+
/** @example true */
|
|
6522
|
+
success?: boolean;
|
|
6523
|
+
data?: components["schemas"]["IssuingSubAccount"];
|
|
6524
|
+
};
|
|
6525
|
+
};
|
|
6526
|
+
};
|
|
6527
|
+
/** @description Bad Request — nick_name is required */
|
|
6528
|
+
400: {
|
|
6529
|
+
headers: {
|
|
6530
|
+
[name: string]: unknown;
|
|
6531
|
+
};
|
|
6532
|
+
content: {
|
|
6533
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
6534
|
+
};
|
|
6535
|
+
};
|
|
6536
|
+
/** @description Sub-account not found */
|
|
6537
|
+
404: {
|
|
6538
|
+
headers: {
|
|
6539
|
+
[name: string]: unknown;
|
|
6540
|
+
};
|
|
6541
|
+
content: {
|
|
6542
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
6543
|
+
};
|
|
6544
|
+
};
|
|
6545
|
+
};
|
|
6546
|
+
};
|
|
6494
6547
|
trace?: never;
|
|
6495
6548
|
};
|
|
6496
6549
|
"/admin/issuing/sub-accounts/{sub_account_id}/transactions": {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CurrencyType, IssuingProgramStatus, OrderType, SortingDirection, SubAccountType } from '../../constants';
|
|
2
2
|
import { components, operations, paths } from './autogen/apiV2.types';
|
|
3
3
|
import { components as componentsV1Frontend, paths as pathsV1Frontend } from './autogen/apiV1Frontend.types';
|
|
4
|
+
import { paths as pathsV1Legacy } from './autogen/apiV1Legacy.types';
|
|
4
5
|
export declare namespace API {
|
|
5
6
|
namespace Auth {
|
|
6
7
|
namespace RefreshToken {
|
|
@@ -221,16 +222,11 @@ export declare namespace API {
|
|
|
221
222
|
}
|
|
222
223
|
namespace CardsList {
|
|
223
224
|
namespace Request {
|
|
224
|
-
type
|
|
225
|
-
type
|
|
226
|
-
type CardsListRequestCommonParams = API.Common.Pagination.Request & API.Common.Sorting.Request<CardsListSortingFields> & API.Common.Filtering.Request<CardsListFilteringFields>;
|
|
227
|
-
interface ByWalletUuid extends CardsListRequestCommonParams {
|
|
228
|
-
wallet_uuid: string;
|
|
229
|
-
}
|
|
230
|
-
interface BySubaccountAndWalletUuid extends ByWalletUuid {
|
|
225
|
+
type ByWalletUuid = NonNullable<pathsV1Legacy['/issuing/cards']['get']['parameters']['query']>;
|
|
226
|
+
type BySubaccountAndWalletUuid = ByWalletUuid & {
|
|
231
227
|
filter?: Record<'fiat_account', Record<'type', SubAccountType>>;
|
|
232
|
-
}
|
|
233
|
-
type BySubAccountAndWalletId = ByWalletUuid & {
|
|
228
|
+
};
|
|
229
|
+
type BySubAccountAndWalletId = Omit<ByWalletUuid, 'fiat_account_id'> & {
|
|
234
230
|
fiat_account_id: string;
|
|
235
231
|
};
|
|
236
232
|
}
|
|
@@ -271,6 +267,19 @@ export declare namespace API {
|
|
|
271
267
|
has_more: boolean;
|
|
272
268
|
count: number;
|
|
273
269
|
}
|
|
270
|
+
namespace Transactions {
|
|
271
|
+
namespace List {
|
|
272
|
+
type Query = NonNullable<pathsV1Legacy['/issuing/transactions']['get']['parameters']['query']>;
|
|
273
|
+
export type StatusFilter = NonNullable<Query['status']>;
|
|
274
|
+
export type ByCardIdRequest = Omit<Query, 'card_id'> & {
|
|
275
|
+
card_id: string;
|
|
276
|
+
};
|
|
277
|
+
export type BySubAccountIdRequest = Omit<Query, 'fiat_account_id'> & {
|
|
278
|
+
fiat_account_id: string;
|
|
279
|
+
};
|
|
280
|
+
export {};
|
|
281
|
+
}
|
|
282
|
+
}
|
|
274
283
|
interface SensitiveData {
|
|
275
284
|
card_number: string;
|
|
276
285
|
cvv: string;
|