squarefi-bff-api-module 1.17.0 → 1.17.2
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/CHANGELOG.md +12 -0
- package/README.md +0 -4
- package/dist/api/issuing.d.ts +4 -4
- package/dist/api/issuing.js +6 -6
- package/dist/api/types.d.ts +16 -16
- package/dist/api/wallets.js +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +8 -8
- package/package.json +1 -1
- package/src/api/issuing.ts +7 -7
- package/src/api/types.ts +17 -17
- package/src/api/wallets.ts +1 -1
- package/src/constants.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.17.2] - 2025-04-18
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Renamed fiat account references to sub account in API documentation and types
|
|
13
|
+
|
|
14
|
+
## [1.17.1] - 2025-04-18
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Updated crypto addresses generation endpoints to support tenant-specific processing configuration
|
|
19
|
+
|
|
8
20
|
## [1.17.0] - 2025-04-18
|
|
9
21
|
|
|
10
22
|
### Changed
|
package/README.md
CHANGED
|
@@ -74,10 +74,6 @@ Access different API functionalities through the client:
|
|
|
74
74
|
- `squarefi_bff_api_client.exchange` - Currency exchange operations
|
|
75
75
|
- Get exchange rates by order type
|
|
76
76
|
- Get rates by currency
|
|
77
|
-
- `squarefi_bff_api_client.fiat_accounts` - Fiat account management
|
|
78
|
-
- List accounts with/without cards
|
|
79
|
-
- Create and manage fiat accounts
|
|
80
|
-
- Transaction history
|
|
81
77
|
- `squarefi_bff_api_client.issuing` - Card issuing operations
|
|
82
78
|
- Create and manage cards
|
|
83
79
|
- Card limits and controls
|
package/dist/api/issuing.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ export declare const issuing: {
|
|
|
3
3
|
cards: {
|
|
4
4
|
create: {
|
|
5
5
|
standAloneCard: (data: API.Cards.Create.StandAloneRequest) => Promise<API.Cards.IssuingCardDetailItem>;
|
|
6
|
-
|
|
6
|
+
subAccountCard: (data: API.Cards.Create.SubAccountRequest) => Promise<API.Cards.IssuingCardDetailItem>;
|
|
7
7
|
};
|
|
8
8
|
byWalletUuid: {
|
|
9
9
|
getAll: (params: API.Cards.CardsList.Request.ByWalletUuid) => Promise<API.Cards.CardsList.Response>;
|
|
10
10
|
getBySubaccountType: (params: API.Cards.CardsList.Request.BySubaccountAndWalletUuid) => Promise<API.Cards.CardsList.Response>;
|
|
11
|
-
|
|
11
|
+
getBySubAccount: (params: API.Cards.CardsList.Request.BySubAccountAndWalletId) => Promise<API.Cards.CardsList.Response>;
|
|
12
12
|
};
|
|
13
13
|
getById: (card_id: string) => Promise<API.Cards.IssuingCardDetailItem>;
|
|
14
14
|
sensitiveData: {
|
|
@@ -31,10 +31,10 @@ export declare const issuing: {
|
|
|
31
31
|
};
|
|
32
32
|
transactions: {
|
|
33
33
|
getByCardId: (card_id: string, limit?: number, offset?: number) => Promise<API.Cards.TransactionsList>;
|
|
34
|
-
|
|
34
|
+
getBySubAccountId: (fiat_account_id: string, limit?: number, offset?: number) => Promise<API.Cards.TransactionsList>;
|
|
35
35
|
csv: {
|
|
36
36
|
getByCardId: (card_id: string) => Promise<string>;
|
|
37
|
-
|
|
37
|
+
getBySubAccountId: (fiat_account_id: string) => Promise<string>;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
sub_accounts: {
|
package/dist/api/issuing.js
CHANGED
|
@@ -17,20 +17,20 @@ exports.issuing = {
|
|
|
17
17
|
cards: {
|
|
18
18
|
create: {
|
|
19
19
|
standAloneCard: (data) => apiClientFactory_1.apiClientV1.postRequest('/issuing/cards/create', { data }),
|
|
20
|
-
|
|
20
|
+
subAccountCard: (data) => apiClientFactory_1.apiClientV1.postRequest('/issuing/cards/balance', { data }),
|
|
21
21
|
},
|
|
22
22
|
byWalletUuid: {
|
|
23
23
|
getAll: (params) => apiClientFactory_1.apiClientV1.getRequest('/issuing/cards', { params }),
|
|
24
24
|
getBySubaccountType: (params) => apiClientFactory_1.apiClientV1.getRequest('/issuing/cards', {
|
|
25
25
|
params,
|
|
26
26
|
}),
|
|
27
|
-
|
|
27
|
+
getBySubAccount: (params) => apiClientFactory_1.apiClientV1.getRequest('/issuing/cards', { params }),
|
|
28
28
|
},
|
|
29
29
|
// getById: (card_id: string) => apiClientV1.getRequest<API.Cards.IssuingCardDetailItem>(`/issuing/cards/${card_id}`),
|
|
30
30
|
getById: (card_id) => __awaiter(void 0, void 0, void 0, function* () {
|
|
31
31
|
const card = yield apiClientFactory_1.apiClientV1.getRequest(`/issuing/cards/${card_id}`);
|
|
32
|
-
const
|
|
33
|
-
return Object.assign(Object.assign({}, card), { fiat_account: Object.assign(Object.assign({},
|
|
32
|
+
const subAccountData = yield exports.issuing.sub_accounts.getByUuid(card.fiat_account.id);
|
|
33
|
+
return Object.assign(Object.assign({}, card), { fiat_account: Object.assign(Object.assign({}, subAccountData), { type: card.fiat_account.type }) });
|
|
34
34
|
}),
|
|
35
35
|
sensitiveData: {
|
|
36
36
|
// get: (card_id: string) => apiClientV1.getRequest<API.Cards.SensitiveData>(`/issuing/cards/${card_id}/sensitive`), deprecated from v1.13.1
|
|
@@ -71,14 +71,14 @@ exports.issuing = {
|
|
|
71
71
|
getByCardId: (card_id, limit = constants_1.defaultPaginationParams.limit, offset = constants_1.defaultPaginationParams.offset) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/transactions/`, {
|
|
72
72
|
params: { limit, offset, card_id, new_scheme: true },
|
|
73
73
|
}),
|
|
74
|
-
|
|
74
|
+
getBySubAccountId: (fiat_account_id, limit = constants_1.defaultPaginationParams.limit, offset = constants_1.defaultPaginationParams.offset) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/transactions/`, {
|
|
75
75
|
params: { limit, offset, fiat_account_id, new_scheme: true },
|
|
76
76
|
}),
|
|
77
77
|
csv: {
|
|
78
78
|
getByCardId: (card_id) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/transactions/csv`, {
|
|
79
79
|
params: { card_id },
|
|
80
80
|
}),
|
|
81
|
-
|
|
81
|
+
getBySubAccountId: (fiat_account_id) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/transactions/csv`, {
|
|
82
82
|
params: { fiat_account_id },
|
|
83
83
|
}),
|
|
84
84
|
},
|
package/dist/api/types.d.ts
CHANGED
|
@@ -209,7 +209,7 @@ export declare namespace API {
|
|
|
209
209
|
issuing_programs: API.Cards.Config.Program;
|
|
210
210
|
limits: API.Cards.Limits.Limits;
|
|
211
211
|
}
|
|
212
|
-
interface
|
|
212
|
+
interface SubAccountCardListItem {
|
|
213
213
|
type: string;
|
|
214
214
|
brand: string;
|
|
215
215
|
last4: string;
|
|
@@ -240,7 +240,7 @@ export declare namespace API {
|
|
|
240
240
|
interface BySubaccountAndWalletUuid extends ByWalletUuid {
|
|
241
241
|
filter?: Record<'fiat_account', Record<'type', SubAccountType>>;
|
|
242
242
|
}
|
|
243
|
-
type
|
|
243
|
+
type BySubAccountAndWalletId = ByWalletUuid & {
|
|
244
244
|
fiat_account_id: string;
|
|
245
245
|
};
|
|
246
246
|
}
|
|
@@ -311,11 +311,11 @@ export declare namespace API {
|
|
|
311
311
|
currency_id?: string;
|
|
312
312
|
}
|
|
313
313
|
type StandAloneRequest = CommonRequest;
|
|
314
|
-
interface
|
|
314
|
+
interface SubAccountRequest extends CommonRequest {
|
|
315
315
|
sub_account_id: string;
|
|
316
316
|
}
|
|
317
317
|
type StandAloneResponse = IssuingCardDetailItem;
|
|
318
|
-
type
|
|
318
|
+
type SubAccountResponse = IssuingCardDetailItem;
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
namespace Chains {
|
|
@@ -623,8 +623,8 @@ export declare namespace API {
|
|
|
623
623
|
onramp_enabled: boolean;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
namespace
|
|
627
|
-
type
|
|
626
|
+
namespace SubAccountsV2 {
|
|
627
|
+
type SubAccountDetails = {
|
|
628
628
|
iban: string;
|
|
629
629
|
bank_name: string;
|
|
630
630
|
swift_code: string;
|
|
@@ -634,7 +634,7 @@ export declare namespace API {
|
|
|
634
634
|
reference_number: string;
|
|
635
635
|
registration_number: string;
|
|
636
636
|
};
|
|
637
|
-
interface
|
|
637
|
+
interface SubAccount {
|
|
638
638
|
balance: number;
|
|
639
639
|
cards_count: number;
|
|
640
640
|
created_at: string;
|
|
@@ -649,9 +649,9 @@ export declare namespace API {
|
|
|
649
649
|
total_balance: number;
|
|
650
650
|
wallet_id: string;
|
|
651
651
|
}
|
|
652
|
-
namespace
|
|
653
|
-
interface
|
|
654
|
-
account_details?:
|
|
652
|
+
namespace ExtendedSubAccount {
|
|
653
|
+
interface ExtendedSubAccount extends SubAccount {
|
|
654
|
+
account_details?: SubAccountDetails;
|
|
655
655
|
payment_types: Array<{
|
|
656
656
|
order_type: OrderType;
|
|
657
657
|
}>;
|
|
@@ -668,18 +668,18 @@ export declare namespace API {
|
|
|
668
668
|
wallet_uuid: string;
|
|
669
669
|
fiat_account_id: string;
|
|
670
670
|
}
|
|
671
|
-
type Response =
|
|
671
|
+
type Response = ExtendedSubAccount;
|
|
672
672
|
}
|
|
673
|
-
interface
|
|
673
|
+
interface SubAccountWithCards extends SubAccount {
|
|
674
674
|
cards: API.Cards.IssuingCardListItem[];
|
|
675
675
|
}
|
|
676
|
-
interface
|
|
676
|
+
interface SubAccountsList<T extends SubAccount | SubAccountWithCards> {
|
|
677
677
|
count: number;
|
|
678
678
|
data: T[];
|
|
679
679
|
}
|
|
680
|
-
type
|
|
681
|
-
type
|
|
682
|
-
namespace
|
|
680
|
+
type SubAccountsListWithCards = SubAccountsList<SubAccountWithCards>;
|
|
681
|
+
type SubAccountsListWithoutCards = SubAccountsList<SubAccount>;
|
|
682
|
+
namespace CreateSubAccount {
|
|
683
683
|
interface Request {
|
|
684
684
|
wallet_id: string;
|
|
685
685
|
program_id: string;
|
package/dist/api/wallets.js
CHANGED
|
@@ -28,7 +28,7 @@ exports.wallets = {
|
|
|
28
28
|
getAll: () => apiClientFactory_1.apiClientV2.getRequest('/wallets'),
|
|
29
29
|
getByUuid: (uuid) => apiClientFactory_1.apiClientV2.getRequest(`/wallets/${uuid}`),
|
|
30
30
|
addresses: {
|
|
31
|
-
create: ({ wallet_uuid, chain, label }) => apiClientFactory_1.
|
|
31
|
+
create: ({ wallet_uuid, chain, label }) => apiClientFactory_1.apiClientV1.postRequest(`/wallets/${wallet_uuid}/addresses/${chain}`, {
|
|
32
32
|
data: { label },
|
|
33
33
|
}),
|
|
34
34
|
get: {
|
package/dist/constants.d.ts
CHANGED
|
@@ -129,7 +129,7 @@ export declare enum IssuingProgramStatus {
|
|
|
129
129
|
ACTIVE = "ACTIVE",
|
|
130
130
|
ARCHIVED = "ARCHIVED"
|
|
131
131
|
}
|
|
132
|
-
export declare enum
|
|
132
|
+
export declare enum SubAccountStatus {
|
|
133
133
|
ACTIVE = "ACTIVE",
|
|
134
134
|
BLOCKED = "BLOCKED",
|
|
135
135
|
INACTIVE = "INACTIVE",
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CounterpartyDestinationType = exports.CounterpartyType = exports.SortingDirection = exports.APIKeyRole = exports.OrderType = exports.CurrencyType = exports.SubAccountType = exports.
|
|
3
|
+
exports.CounterpartyDestinationType = exports.CounterpartyType = exports.SortingDirection = exports.APIKeyRole = exports.OrderType = exports.CurrencyType = exports.SubAccountType = exports.SubAccountStatus = exports.IssuingProgramStatus = exports.CardStatus = exports.OrderStatuses = exports.KYCStatuses = exports.defaultPaginationParams = exports.walletType = exports.WalletTypeValues = exports.ResponseStatus = exports.RequestLoadingType = exports.RequestStatus = exports.WalletTransactionRecordType = exports.WalletTransactionStatus = exports.WalletTransactionMethod = exports.WalletTransactionType = exports.CardTransactionType = exports.CardType = exports.CardFormFactor = exports.AppEnviroment = exports.falsyValues = void 0;
|
|
4
4
|
exports.falsyValues = ['false', '0', '', 'FALSE', false, null, undefined, NaN, 0];
|
|
5
5
|
var AppEnviroment;
|
|
6
6
|
(function (AppEnviroment) {
|
|
@@ -149,13 +149,13 @@ var IssuingProgramStatus;
|
|
|
149
149
|
IssuingProgramStatus["ACTIVE"] = "ACTIVE";
|
|
150
150
|
IssuingProgramStatus["ARCHIVED"] = "ARCHIVED";
|
|
151
151
|
})(IssuingProgramStatus || (exports.IssuingProgramStatus = IssuingProgramStatus = {}));
|
|
152
|
-
var
|
|
153
|
-
(function (
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
})(
|
|
152
|
+
var SubAccountStatus;
|
|
153
|
+
(function (SubAccountStatus) {
|
|
154
|
+
SubAccountStatus["ACTIVE"] = "ACTIVE";
|
|
155
|
+
SubAccountStatus["BLOCKED"] = "BLOCKED";
|
|
156
|
+
SubAccountStatus["INACTIVE"] = "INACTIVE";
|
|
157
|
+
SubAccountStatus["CANCELED"] = "CANCELED";
|
|
158
|
+
})(SubAccountStatus || (exports.SubAccountStatus = SubAccountStatus = {}));
|
|
159
159
|
var SubAccountType;
|
|
160
160
|
(function (SubAccountType) {
|
|
161
161
|
SubAccountType["PREPAID"] = "prepaid";
|
package/package.json
CHANGED
package/src/api/issuing.ts
CHANGED
|
@@ -7,8 +7,8 @@ export const issuing = {
|
|
|
7
7
|
create: {
|
|
8
8
|
standAloneCard: (data: API.Cards.Create.StandAloneRequest) =>
|
|
9
9
|
apiClientV1.postRequest<API.Cards.Create.StandAloneResponse>('/issuing/cards/create', { data }),
|
|
10
|
-
|
|
11
|
-
apiClientV1.postRequest<API.Cards.Create.
|
|
10
|
+
subAccountCard: (data: API.Cards.Create.SubAccountRequest) =>
|
|
11
|
+
apiClientV1.postRequest<API.Cards.Create.SubAccountResponse>('/issuing/cards/balance', { data }),
|
|
12
12
|
},
|
|
13
13
|
byWalletUuid: {
|
|
14
14
|
getAll: (params: API.Cards.CardsList.Request.ByWalletUuid) =>
|
|
@@ -17,14 +17,14 @@ export const issuing = {
|
|
|
17
17
|
apiClientV1.getRequest<API.Cards.CardsList.Response>('/issuing/cards', {
|
|
18
18
|
params,
|
|
19
19
|
}),
|
|
20
|
-
|
|
20
|
+
getBySubAccount: (params: API.Cards.CardsList.Request.BySubAccountAndWalletId) =>
|
|
21
21
|
apiClientV1.getRequest<API.Cards.CardsList.Response>('/issuing/cards', { params }),
|
|
22
22
|
},
|
|
23
23
|
// getById: (card_id: string) => apiClientV1.getRequest<API.Cards.IssuingCardDetailItem>(`/issuing/cards/${card_id}`),
|
|
24
24
|
getById: async (card_id: string): Promise<API.Cards.IssuingCardDetailItem> => {
|
|
25
25
|
const card = await apiClientV1.getRequest<API.Cards.IssuingCardDetailItem>(`/issuing/cards/${card_id}`);
|
|
26
|
-
const
|
|
27
|
-
return { ...card, fiat_account: { ...
|
|
26
|
+
const subAccountData = await issuing.sub_accounts.getByUuid(card.fiat_account.id);
|
|
27
|
+
return { ...card, fiat_account: { ...subAccountData, type: card.fiat_account.type } };
|
|
28
28
|
},
|
|
29
29
|
sensitiveData: {
|
|
30
30
|
// get: (card_id: string) => apiClientV1.getRequest<API.Cards.SensitiveData>(`/issuing/cards/${card_id}/sensitive`), deprecated from v1.13.1
|
|
@@ -74,7 +74,7 @@ export const issuing = {
|
|
|
74
74
|
apiClientV1.getRequest<API.Cards.TransactionsList>(`/issuing/transactions/`, {
|
|
75
75
|
params: { limit, offset, card_id, new_scheme: true },
|
|
76
76
|
}),
|
|
77
|
-
|
|
77
|
+
getBySubAccountId: (
|
|
78
78
|
fiat_account_id: string,
|
|
79
79
|
limit = defaultPaginationParams.limit,
|
|
80
80
|
offset = defaultPaginationParams.offset
|
|
@@ -87,7 +87,7 @@ export const issuing = {
|
|
|
87
87
|
apiClientV1.getRequest<string>(`/issuing/transactions/csv`, {
|
|
88
88
|
params: { card_id },
|
|
89
89
|
}),
|
|
90
|
-
|
|
90
|
+
getBySubAccountId: (fiat_account_id: string) =>
|
|
91
91
|
apiClientV1.getRequest<string>(`/issuing/transactions/csv`, {
|
|
92
92
|
params: { fiat_account_id },
|
|
93
93
|
}),
|
package/src/api/types.ts
CHANGED
|
@@ -243,7 +243,7 @@ export namespace API {
|
|
|
243
243
|
limits: API.Cards.Limits.Limits;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
export interface
|
|
246
|
+
export interface SubAccountCardListItem {
|
|
247
247
|
type: string;
|
|
248
248
|
brand: string;
|
|
249
249
|
last4: string;
|
|
@@ -283,7 +283,7 @@ export namespace API {
|
|
|
283
283
|
filter?: Record<'fiat_account', Record<'type', SubAccountType>>;
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
export type
|
|
286
|
+
export type BySubAccountAndWalletId = ByWalletUuid & {
|
|
287
287
|
fiat_account_id: string;
|
|
288
288
|
};
|
|
289
289
|
}
|
|
@@ -363,12 +363,12 @@ export namespace API {
|
|
|
363
363
|
}
|
|
364
364
|
export type StandAloneRequest = CommonRequest;
|
|
365
365
|
|
|
366
|
-
export interface
|
|
366
|
+
export interface SubAccountRequest extends CommonRequest {
|
|
367
367
|
sub_account_id: string;
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
export type StandAloneResponse = IssuingCardDetailItem;
|
|
371
|
-
export type
|
|
371
|
+
export type SubAccountResponse = IssuingCardDetailItem;
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
|
|
@@ -766,8 +766,8 @@ export namespace API {
|
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
768
|
|
|
769
|
-
export namespace
|
|
770
|
-
export type
|
|
769
|
+
export namespace SubAccountsV2 {
|
|
770
|
+
export type SubAccountDetails = {
|
|
771
771
|
iban: string;
|
|
772
772
|
bank_name: string;
|
|
773
773
|
swift_code: string;
|
|
@@ -778,7 +778,7 @@ export namespace API {
|
|
|
778
778
|
registration_number: string;
|
|
779
779
|
};
|
|
780
780
|
|
|
781
|
-
export interface
|
|
781
|
+
export interface SubAccount {
|
|
782
782
|
balance: number;
|
|
783
783
|
cards_count: number;
|
|
784
784
|
created_at: string;
|
|
@@ -794,9 +794,9 @@ export namespace API {
|
|
|
794
794
|
wallet_id: string;
|
|
795
795
|
}
|
|
796
796
|
|
|
797
|
-
export namespace
|
|
798
|
-
export interface
|
|
799
|
-
account_details?:
|
|
797
|
+
export namespace ExtendedSubAccount {
|
|
798
|
+
export interface ExtendedSubAccount extends SubAccount {
|
|
799
|
+
account_details?: SubAccountDetails;
|
|
800
800
|
payment_types: Array<{ order_type: OrderType }>;
|
|
801
801
|
realtime_auth: [
|
|
802
802
|
{
|
|
@@ -812,22 +812,22 @@ export namespace API {
|
|
|
812
812
|
fiat_account_id: string;
|
|
813
813
|
}
|
|
814
814
|
|
|
815
|
-
export type Response =
|
|
815
|
+
export type Response = ExtendedSubAccount;
|
|
816
816
|
}
|
|
817
817
|
|
|
818
|
-
export interface
|
|
818
|
+
export interface SubAccountWithCards extends SubAccount {
|
|
819
819
|
cards: API.Cards.IssuingCardListItem[];
|
|
820
820
|
}
|
|
821
821
|
|
|
822
|
-
export interface
|
|
822
|
+
export interface SubAccountsList<T extends SubAccount | SubAccountWithCards> {
|
|
823
823
|
count: number;
|
|
824
824
|
data: T[];
|
|
825
825
|
}
|
|
826
826
|
|
|
827
|
-
export type
|
|
828
|
-
export type
|
|
827
|
+
export type SubAccountsListWithCards = SubAccountsList<SubAccountWithCards>;
|
|
828
|
+
export type SubAccountsListWithoutCards = SubAccountsList<SubAccount>;
|
|
829
829
|
|
|
830
|
-
export namespace
|
|
830
|
+
export namespace CreateSubAccount {
|
|
831
831
|
export interface Request {
|
|
832
832
|
wallet_id: string;
|
|
833
833
|
program_id: string;
|
|
@@ -1191,7 +1191,7 @@ export namespace API {
|
|
|
1191
1191
|
// }
|
|
1192
1192
|
// }
|
|
1193
1193
|
|
|
1194
|
-
// export namespace
|
|
1194
|
+
// export namespace SubAccount {
|
|
1195
1195
|
// export type Request = {
|
|
1196
1196
|
// amount: number;
|
|
1197
1197
|
// fiat_uuid: string;
|
package/src/api/wallets.ts
CHANGED
|
@@ -10,7 +10,7 @@ export const wallets = {
|
|
|
10
10
|
getByUuid: (uuid: string) => apiClientV2.getRequest<API.Wallets.Wallet>(`/wallets/${uuid}`),
|
|
11
11
|
addresses: {
|
|
12
12
|
create: ({ wallet_uuid, chain, label }: API.Wallets.WalletChain.Create.Request) =>
|
|
13
|
-
|
|
13
|
+
apiClientV1.postRequest<API.Wallets.WalletChain.Create.Response>(`/wallets/${wallet_uuid}/addresses/${chain}`, {
|
|
14
14
|
data: { label },
|
|
15
15
|
}),
|
|
16
16
|
get: {
|