diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index d67144e..0dc9e04 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -202,6 +202,7 @@ docs/GetAuditLogsResponse.md docs/GetAuditLogsResponseDTO.md docs/GetConnectionsResponse.md docs/GetConsoleUsersResponse.md +docs/GetExchangeAccountsCredentialsPublicKeyResponse.md docs/GetFilterParameter.md docs/GetMaxSpendableAmountResponse.md docs/GetNFTsResponse.md @@ -724,6 +725,7 @@ src/main/java/com/fireblocks/sdk/model/GetAuditLogsResponse.java src/main/java/com/fireblocks/sdk/model/GetAuditLogsResponseDTO.java src/main/java/com/fireblocks/sdk/model/GetConnectionsResponse.java src/main/java/com/fireblocks/sdk/model/GetConsoleUsersResponse.java +src/main/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponse.java src/main/java/com/fireblocks/sdk/model/GetFilterParameter.java src/main/java/com/fireblocks/sdk/model/GetMaxSpendableAmountResponse.java src/main/java/com/fireblocks/sdk/model/GetNFTsResponse.java @@ -1204,6 +1206,7 @@ src/test/java/com/fireblocks/sdk/model/GetAuditLogsResponseDTOTest.java src/test/java/com/fireblocks/sdk/model/GetAuditLogsResponseTest.java src/test/java/com/fireblocks/sdk/model/GetConnectionsResponseTest.java src/test/java/com/fireblocks/sdk/model/GetConsoleUsersResponseTest.java +src/test/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponseTest.java src/test/java/com/fireblocks/sdk/model/GetFilterParameterTest.java src/test/java/com/fireblocks/sdk/model/GetMaxSpendableAmountResponseTest.java src/test/java/com/fireblocks/sdk/model/GetNFTsResponseTest.java diff --git a/README.md b/README.md index b5530f5..8e2e076 100644 --- a/README.md +++ b/README.md @@ -537,6 +537,7 @@ Class | Method | HTTP request | Description - [GetAuditLogsResponseDTO](docs/GetAuditLogsResponseDTO.md) - [GetConnectionsResponse](docs/GetConnectionsResponse.md) - [GetConsoleUsersResponse](docs/GetConsoleUsersResponse.md) + - [GetExchangeAccountsCredentialsPublicKeyResponse](docs/GetExchangeAccountsCredentialsPublicKeyResponse.md) - [GetFilterParameter](docs/GetFilterParameter.md) - [GetMaxSpendableAmountResponse](docs/GetMaxSpendableAmountResponse.md) - [GetNFTsResponse](docs/GetNFTsResponse.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 85a1999..e0a7a57 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -2435,6 +2435,34 @@ paths: \ assetId);" name: Fireblocks SDK Java example x-accepts: application/json + /exchange_accounts/credentials_public_key: + get: + description: Return public key + operationId: getExchangeAccountsCredentialsPublicKey + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetExchangeAccountsCredentialsPublicKeyResponse' + description: public key as string + headers: + X-Request-ID: + $ref: '#/components/headers/X-Request-ID' + default: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorSchema' + description: Error Response + headers: + X-Request-ID: + $ref: '#/components/headers/X-Request-ID' + summary: Get public key to encrypt exchange credentials + tags: + - Exchange accounts + x-internal: true + x-accepts: application/json /fiat_accounts: get: description: Returns all fiat accounts. @@ -4069,6 +4097,54 @@ paths: - DESC type: string style: form + - description: Return keys assigned to a specific vault + example: 4 + explode: true + in: query + name: vaultAccountId + required: false + schema: + type: number + style: form + - description: Return keys associated with a specific agent user + example: 12fed207-5bdf-4a0c-ab12-fcd2627f75d1 + explode: true + in: query + name: agentUserId + required: false + schema: + type: string + style: form + - description: Return only keys with a specific algorithm + example: ECDSA_SECP256K1 + explode: true + in: query + name: algorithm + required: false + schema: + enum: + - ECDSA_SECP256K1 + - EDDSA_ED25519 + type: string + style: form + - description: Return keys that have been proof of ownership + explode: true + in: query + name: enabled + required: false + schema: + type: boolean + style: form + - description: Return keys that are proof of ownership but not assigned. Available + filter can be used only when vaultAccountId and enabled filters are not + set + explode: true + in: query + name: available + required: false + schema: + type: boolean + style: form responses: "200": content: @@ -4101,7 +4177,7 @@ paths: - language: java code: "CompletableFuture> response\ \ = fireblocks.keyLinkBeta().getSigningKeysList(pageCursor, pageSize,\ - \ sortBy, order);" + \ sortBy, order, vaultAccountId, agentUserId, algorithm, enabled, available);" name: Fireblocks SDK Java example x-accepts: application/json post: @@ -5444,6 +5520,7 @@ paths: - Algorand - TRON - NEAR + - Solana operationId: registerNewAsset parameters: - description: "A unique identifier for the request. If the request is sent\ @@ -5480,6 +5557,10 @@ paths: - The asset address is invalid. Error code: 1003 - Self serve listing an asset on the requested blockchain is currently not supported, please contact support. Error code: 1004 + + - Blockchain is deprecated. Error code: 1006 + + - The asset's standard is not supported. Error code: 1007 "403": content: application/json: @@ -5487,6 +5568,10 @@ paths: $ref: '#/components/schemas/AssetForbiddenErrorResponse' description: | - The asset creation quota reached. Error code: 1005 + + - Tenant is not allowed to create testnet assets. Error code: 1008 + + - Tenant is not allowed to create mainnet assets. Error code: 1009 "404": content: application/json: @@ -9816,6 +9901,7 @@ paths: - XTZ - XTZ_TEST - BASECHAIN_ETH + - BASECHAIN_ETH_TEST3 type: string style: form - description: A comma separated list of Vault Account IDs. Up to 100 are allowed @@ -9997,7 +10083,6 @@ paths: schema: enum: - ETH - - ETH_TEST3 - ETH_TEST5 - ETH_TEST6 - POLYGON @@ -15027,14 +15112,24 @@ components: $ref: '#/components/schemas/TradingAccountType' destType: $ref: '#/components/schemas/TradingAccountType' + required: + - amount + - asset + - destType + - sourceType type: object InternalTransferResponse: example: success: true + id: id properties: success: description: Indicates whether the transfer was successful type: boolean + id: + description: The transaction ID of the internal transfer + nullable: true + type: string required: - success type: object @@ -15072,6 +15167,14 @@ components: required: - success type: object + GetExchangeAccountsCredentialsPublicKeyResponse: + properties: + publicKey: + description: Public key string + type: string + required: + - publicKey + type: object FiatAccountType: enum: - BLINC @@ -16007,11 +16110,14 @@ components: example: "(ETH, ETH_TEST5, MATIC_POLYGON)" type: string address: - description: "Asset address. \n- For EVM based chains this should be the\ - \ token contract address.\n- For Stellar (XLM) this should be the issuer\ - \ address.\n- For Algorand (ALGO) this should be the asset ID.\n- For\ - \ TRON (TRX) this should be the token contract address.\n- For NEAR this\ - \ will be the token address.\n" + description: | + Asset address. + - EVM-based chains: token contract address + - Stellar (XLM): issuer address + - Algorand (ALGO): asset ID + - TRON (TRX): token contract address + - NEAR: token address + - Solana: token's mint account address example: 0xe7A9as1oa38bc4da0248s179E30aa94CcF453991 type: string symbol: @@ -16192,6 +16298,7 @@ components: description: Source of the transaction. example: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + tradingAccount: tradingAccount name: name subType: subType id: id @@ -16222,6 +16329,11 @@ components: walletId: format: uuid type: string + tradingAccount: + description: "If this transaction is an exchange internal transfer, this\ + \ field will be populated with the type of that trading account." + nullable: true + type: string required: - type type: object @@ -16232,6 +16344,7 @@ components: **Note:** In case the transaction is sent to multiple destinations, the `destinations` parameter is be used instead of this. example: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + tradingAccount: tradingAccount name: name subType: subType id: id @@ -16262,6 +16375,11 @@ components: walletId: format: uuid type: string + tradingAccount: + description: "If this transaction is an exchange internal transfer, this\ + \ field will be populated with the type of that trading account." + nullable: true + type: string required: - type type: object @@ -16339,6 +16457,7 @@ components: payload: "{}" destination: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + tradingAccount: tradingAccount name: name subType: subType id: id @@ -16424,6 +16543,7 @@ components: networkFee: networkFee destination: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + tradingAccount: tradingAccount name: name subType: subType id: id @@ -16431,6 +16551,7 @@ components: index: 6.027456183070403 source: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + tradingAccount: tradingAccount name: name subType: subType id: id @@ -16716,6 +16837,7 @@ components: fee: 6.84685269835264 destination: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + tradingAccount: tradingAccount name: name subType: subType id: id @@ -16724,6 +16846,7 @@ components: extraParameters: "{}" source: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + tradingAccount: tradingAccount name: name subType: subType id: id @@ -16737,6 +16860,7 @@ components: networkFee: networkFee destination: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + tradingAccount: tradingAccount name: name subType: subType id: id @@ -16744,6 +16868,7 @@ components: index: 6.027456183070403 source: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + tradingAccount: tradingAccount name: name subType: subType id: id @@ -16762,6 +16887,7 @@ components: networkFee: networkFee destination: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + tradingAccount: tradingAccount name: name subType: subType id: id @@ -16769,6 +16895,7 @@ components: index: 6.027456183070403 source: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + tradingAccount: tradingAccount name: name subType: subType id: id @@ -16817,6 +16944,7 @@ components: payload: "{}" destination: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + tradingAccount: tradingAccount name: name subType: subType id: id @@ -16840,6 +16968,7 @@ components: payload: "{}" destination: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + tradingAccount: tradingAccount name: name subType: subType id: id @@ -21935,6 +22064,7 @@ components: - XTZ - XTZ_TEST - BASECHAIN_ETH + - BASECHAIN_ETH_TEST3 type: string description: type: string @@ -22085,6 +22215,7 @@ components: - XTZ - XTZ_TEST - BASECHAIN_ETH + - BASECHAIN_ETH_TEST3 type: string description: type: string @@ -22173,6 +22304,7 @@ components: - XTZ - XTZ_TEST - BASECHAIN_ETH + - BASECHAIN_ETH_TEST3 type: string contractAddress: description: Collection contract standard @@ -26603,7 +26735,6 @@ components: required: - decimals - name - - standard - symbol type: object AssetResponse_metadata: diff --git a/docs/AssetResponseOnchain.md b/docs/AssetResponseOnchain.md index d963320..9ed25f3 100644 --- a/docs/AssetResponseOnchain.md +++ b/docs/AssetResponseOnchain.md @@ -11,7 +11,7 @@ |**name** | **String** | The asset name | | |**address** | **String** | The asset address | [optional] | |**decimals** | **BigDecimal** | Number of decimals | | -|**standard** | **String** | The asset standard | | +|**standard** | **String** | The asset standard | [optional] | diff --git a/docs/BlockchainsAssetsApi.md b/docs/BlockchainsAssetsApi.md index 12dd574..696bed6 100644 --- a/docs/BlockchainsAssetsApi.md +++ b/docs/BlockchainsAssetsApi.md @@ -94,7 +94,7 @@ No authorization required Register an asset -Register a new asset to a workspace and return the newly created asset's details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR +Register a new asset to a workspace and return the newly created asset's details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR - Solana ### Example @@ -170,8 +170,8 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | A new asset has been created successfully | - | -| **400** | - Listing an asset on the requested blockchain is not supported. Error code: 1000 - The asset address is invalid. Error code: 1003 - Self serve listing an asset on the requested blockchain is currently not supported, please contact support. Error code: 1004 | - | -| **403** | - The asset creation quota reached. Error code: 1005 | - | +| **400** | - Listing an asset on the requested blockchain is not supported. Error code: 1000 - The asset address is invalid. Error code: 1003 - Self serve listing an asset on the requested blockchain is currently not supported, please contact support. Error code: 1004 - Blockchain is deprecated. Error code: 1006 - The asset's standard is not supported. Error code: 1007 | - | +| **403** | - The asset creation quota reached. Error code: 1005 - Tenant is not allowed to create testnet assets. Error code: 1008 - Tenant is not allowed to create mainnet assets. Error code: 1009 | - | | **404** | - Invalid address, could not get asset information. Error code 1003 | - | | **409** | - The asset is already supported globally. Error code: 1001 - The asset has already been added to this workspace. Error code: 1002 | - | | **500** | Failed to create asset | - | diff --git a/docs/CollectionOwnershipResponse.md b/docs/CollectionOwnershipResponse.md index 2c6f32d..c5af33b 100644 --- a/docs/CollectionOwnershipResponse.md +++ b/docs/CollectionOwnershipResponse.md @@ -30,6 +30,7 @@ | XTZ | "XTZ" | | XTZ_TEST | "XTZ_TEST" | | BASECHAIN_ETH | "BASECHAIN_ETH" | +| BASECHAIN_ETH_TEST3 | "BASECHAIN_ETH_TEST3" | diff --git a/docs/CreateInternalTransferRequest.md b/docs/CreateInternalTransferRequest.md index d26e2b5..220c3a6 100644 --- a/docs/CreateInternalTransferRequest.md +++ b/docs/CreateInternalTransferRequest.md @@ -7,10 +7,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**asset** | **String** | | [optional] | -|**amount** | **String** | | [optional] | -|**sourceType** | **TradingAccountType** | | [optional] | -|**destType** | **TradingAccountType** | | [optional] | +|**asset** | **String** | | | +|**amount** | **String** | | | +|**sourceType** | **TradingAccountType** | | | +|**destType** | **TradingAccountType** | | | diff --git a/docs/DestinationTransferPeerPathResponse.md b/docs/DestinationTransferPeerPathResponse.md index bbbe489..115e6a9 100644 --- a/docs/DestinationTransferPeerPathResponse.md +++ b/docs/DestinationTransferPeerPathResponse.md @@ -13,6 +13,7 @@ Destination of the transaction. **Note:** In case the transaction is sent to mu |**id** | **String** | The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed. | [optional] | |**name** | **String** | The name of the peer. | [optional] | |**walletId** | **UUID** | | [optional] | +|**tradingAccount** | **String** | If this transaction is an exchange internal transfer, this field will be populated with the type of that trading account. | [optional] | diff --git a/docs/GetExchangeAccountsCredentialsPublicKeyResponse.md b/docs/GetExchangeAccountsCredentialsPublicKeyResponse.md new file mode 100644 index 0000000..15770c6 --- /dev/null +++ b/docs/GetExchangeAccountsCredentialsPublicKeyResponse.md @@ -0,0 +1,13 @@ + + +# GetExchangeAccountsCredentialsPublicKeyResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**publicKey** | **String** | Public key string | | + + + diff --git a/docs/InternalTransferResponse.md b/docs/InternalTransferResponse.md index c9e39e9..40d0fec 100644 --- a/docs/InternalTransferResponse.md +++ b/docs/InternalTransferResponse.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**success** | **Boolean** | Indicates whether the transfer was successful | | +|**id** | **String** | The transaction ID of the internal transfer | [optional] | diff --git a/docs/KeyLinkBetaApi.md b/docs/KeyLinkBetaApi.md index 7f35b90..baf9c67 100644 --- a/docs/KeyLinkBetaApi.md +++ b/docs/KeyLinkBetaApi.md @@ -356,7 +356,7 @@ No authorization required ## getSigningKeysList -> CompletableFuture> getSigningKeysList getSigningKeysList(pageCursor, pageSize, sortBy, order) +> CompletableFuture> getSigningKeysList getSigningKeysList(pageCursor, pageSize, sortBy, order, vaultAccountId, agentUserId, algorithm, enabled, available) Get list of signing keys @@ -389,8 +389,13 @@ public class Example { BigDecimal pageSize = new BigDecimal("10"); // BigDecimal | Amount of results to return in the next page String sortBy = "createdAt"; // String | Field(s) to use for sorting String order = "ASC"; // String | Is the order ascending or descending + BigDecimal vaultAccountId = new BigDecimal("4"); // BigDecimal | Return keys assigned to a specific vault + String agentUserId = "12fed207-5bdf-4a0c-ab12-fcd2627f75d1"; // String | Return keys associated with a specific agent user + String algorithm = "ECDSA_SECP256K1"; // String | Return only keys with a specific algorithm + Boolean enabled = true; // Boolean | Return keys that have been proof of ownership + Boolean available = true; // Boolean | Return keys that are proof of ownership but not assigned. Available filter can be used only when vaultAccountId and enabled filters are not set try { - CompletableFuture> response = fireblocks.keyLinkBeta().getSigningKeysList(pageCursor, pageSize, sortBy, order); + CompletableFuture> response = fireblocks.keyLinkBeta().getSigningKeysList(pageCursor, pageSize, sortBy, order, vaultAccountId, agentUserId, algorithm, enabled, available); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); @@ -421,6 +426,11 @@ public class Example { | **pageSize** | **BigDecimal**| Amount of results to return in the next page | [optional] [default to 10] | | **sortBy** | **String**| Field(s) to use for sorting | [optional] [default to createdAt] [enum: createdAt] | | **order** | **String**| Is the order ascending or descending | [optional] [default to ASC] [enum: ASC, DESC] | +| **vaultAccountId** | **BigDecimal**| Return keys assigned to a specific vault | [optional] | +| **agentUserId** | **String**| Return keys associated with a specific agent user | [optional] | +| **algorithm** | **String**| Return only keys with a specific algorithm | [optional] [enum: ECDSA_SECP256K1, EDDSA_ED25519] | +| **enabled** | **Boolean**| Return keys that have been proof of ownership | [optional] | +| **available** | **Boolean**| Return keys that are proof of ownership but not assigned. Available filter can be used only when vaultAccountId and enabled filters are not set | [optional] | ### Return type diff --git a/docs/NftsApi.md b/docs/NftsApi.md index 56548ec..83182d7 100644 --- a/docs/NftsApi.md +++ b/docs/NftsApi.md @@ -262,7 +262,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [optional] [enum: ETH, ETH_TEST3, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, XTZ, XTZ_TEST, BASECHAIN_ETH] | +| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [optional] [enum: ETH, ETH_TEST3, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, XTZ, XTZ_TEST, BASECHAIN_ETH, BASECHAIN_ETH_TEST3] | | **vaultAccountIds** | **String**| A comma separated list of Vault Account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=END_USER_WALLET or ncwId is provided. | [optional] | | **ncwId** | **String**| Tenant's Non-Custodial Wallet ID | [optional] | | **ncwAccountIds** | **String**| A comma separated list of Non-Custodial account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=VAULT_ACCOUNT or ncwId is not provided. | [optional] | @@ -635,7 +635,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [enum: ETH, ETH_TEST3, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, BASECHAIN_ETH] | +| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [enum: ETH, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, BASECHAIN_ETH] | | **vaultAccountId** | **String**| Vault account filter | | | **idempotencyKey** | **String**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] | diff --git a/docs/RegisterNewAssetRequest.md b/docs/RegisterNewAssetRequest.md index 743c549..ea8f74b 100644 --- a/docs/RegisterNewAssetRequest.md +++ b/docs/RegisterNewAssetRequest.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**blockchainId** | **String** | Native asset ID of the blockchain | | -|**address** | **String** | Asset address. - For EVM based chains this should be the token contract address. - For Stellar (XLM) this should be the issuer address. - For Algorand (ALGO) this should be the asset ID. - For TRON (TRX) this should be the token contract address. - For NEAR this will be the token address. | | +|**address** | **String** | Asset address. - EVM-based chains: token contract address - Stellar (XLM): issuer address - Algorand (ALGO): asset ID - TRON (TRX): token contract address - NEAR: token address - Solana: token's mint account address | | |**symbol** | **String** | Required for Stellar only, asset code is expected. | [optional] | diff --git a/docs/SourceTransferPeerPathResponse.md b/docs/SourceTransferPeerPathResponse.md index 40492f5..96114db 100644 --- a/docs/SourceTransferPeerPathResponse.md +++ b/docs/SourceTransferPeerPathResponse.md @@ -13,6 +13,7 @@ Source of the transaction. |**id** | **String** | The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed. | [optional] | |**name** | **String** | The name of the peer. | [optional] | |**walletId** | **UUID** | | [optional] | +|**tradingAccount** | **String** | If this transaction is an exchange internal transfer, this field will be populated with the type of that trading account. | [optional] | diff --git a/docs/TokenOwnershipResponse.md b/docs/TokenOwnershipResponse.md index c00637c..74da11c 100644 --- a/docs/TokenOwnershipResponse.md +++ b/docs/TokenOwnershipResponse.md @@ -42,6 +42,7 @@ | XTZ | "XTZ" | | XTZ_TEST | "XTZ_TEST" | | BASECHAIN_ETH | "BASECHAIN_ETH" | +| BASECHAIN_ETH_TEST3 | "BASECHAIN_ETH_TEST3" | diff --git a/docs/TokenResponse.md b/docs/TokenResponse.md index 1f5ec45..25a8a0c 100644 --- a/docs/TokenResponse.md +++ b/docs/TokenResponse.md @@ -35,6 +35,7 @@ | XTZ | "XTZ" | | XTZ_TEST | "XTZ_TEST" | | BASECHAIN_ETH | "BASECHAIN_ETH" | +| BASECHAIN_ETH_TEST3 | "BASECHAIN_ETH_TEST3" | diff --git a/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java b/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java index dc174c7..04efe94 100644 --- a/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java @@ -136,7 +136,7 @@ private HttpRequest.Builder getSupportedAssetsRequestBuilder() throws ApiExcepti /** * Register an asset Register a new asset to a workspace and return the newly created * asset's details. Currently supported chains are: - EVM based chains - Stellar - Algorand - * - TRON - NEAR + * - TRON - NEAR - Solana * * @param registerNewAssetRequest (optional) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple diff --git a/src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java b/src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java index d5f1383..df84fd7 100644 --- a/src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java @@ -420,15 +420,38 @@ private HttpRequest.Builder getSigningKeyRequestBuilder(String keyId) throws Api * @param pageSize Amount of results to return in the next page (optional, default to 10) * @param sortBy Field(s) to use for sorting (optional, default to createdAt) * @param order Is the order ascending or descending (optional, default to ASC) + * @param vaultAccountId Return keys assigned to a specific vault (optional) + * @param agentUserId Return keys associated with a specific agent user (optional) + * @param algorithm Return only keys with a specific algorithm (optional) + * @param enabled Return keys that have been proof of ownership (optional) + * @param available Return keys that are proof of ownership but not assigned. Available filter + * can be used only when vaultAccountId and enabled filters are not set (optional) * @return CompletableFuture<ApiResponse<GetSigningKeyResponseDto>> * @throws ApiException if fails to make API call */ public CompletableFuture> getSigningKeysList( - String pageCursor, BigDecimal pageSize, String sortBy, String order) + String pageCursor, + BigDecimal pageSize, + String sortBy, + String order, + BigDecimal vaultAccountId, + String agentUserId, + String algorithm, + Boolean enabled, + Boolean available) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - getSigningKeysListRequestBuilder(pageCursor, pageSize, sortBy, order); + getSigningKeysListRequestBuilder( + pageCursor, + pageSize, + sortBy, + order, + vaultAccountId, + agentUserId, + algorithm, + enabled, + available); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -463,7 +486,15 @@ public CompletableFuture> getSigningKeysLi } private HttpRequest.Builder getSigningKeysListRequestBuilder( - String pageCursor, BigDecimal pageSize, String sortBy, String order) + String pageCursor, + BigDecimal pageSize, + String sortBy, + String order, + BigDecimal vaultAccountId, + String agentUserId, + String algorithm, + Boolean enabled, + Boolean available) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -481,6 +512,16 @@ private HttpRequest.Builder getSigningKeysListRequestBuilder( localVarQueryParams.addAll(ApiClient.parameterToPairs("sortBy", sortBy)); localVarQueryParameterBaseName = "order"; localVarQueryParams.addAll(ApiClient.parameterToPairs("order", order)); + localVarQueryParameterBaseName = "vaultAccountId"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("vaultAccountId", vaultAccountId)); + localVarQueryParameterBaseName = "agentUserId"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("agentUserId", agentUserId)); + localVarQueryParameterBaseName = "algorithm"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("algorithm", algorithm)); + localVarQueryParameterBaseName = "enabled"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("enabled", enabled)); + localVarQueryParameterBaseName = "available"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("available", available)); if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { StringJoiner queryJoiner = new StringJoiner("&"); diff --git a/src/main/java/com/fireblocks/sdk/model/AssetResponseOnchain.java b/src/main/java/com/fireblocks/sdk/model/AssetResponseOnchain.java index 09ea9a7..d71b4a6 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetResponseOnchain.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetResponseOnchain.java @@ -151,15 +151,15 @@ public AssetResponseOnchain standard(String standard) { * * @return standard */ - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STANDARD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getStandard() { return standard; } @JsonProperty(JSON_PROPERTY_STANDARD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStandard(String standard) { this.standard = standard; } diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java b/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java index 63f7da4..4301946 100644 --- a/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java @@ -66,7 +66,9 @@ public enum BlockchainDescriptorEnum { XTZ_TEST("XTZ_TEST"), - BASECHAIN_ETH("BASECHAIN_ETH"); + BASECHAIN_ETH("BASECHAIN_ETH"), + + BASECHAIN_ETH_TEST3("BASECHAIN_ETH_TEST3"); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/CreateInternalTransferRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateInternalTransferRequest.java index 46e1a72..b759200 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateInternalTransferRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateInternalTransferRequest.java @@ -54,15 +54,15 @@ public CreateInternalTransferRequest asset(String asset) { * * @return asset */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ASSET) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getAsset() { return asset; } @JsonProperty(JSON_PROPERTY_ASSET) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAsset(String asset) { this.asset = asset; } @@ -77,15 +77,15 @@ public CreateInternalTransferRequest amount(String amount) { * * @return amount */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getAmount() { return amount; } @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAmount(String amount) { this.amount = amount; } @@ -100,15 +100,15 @@ public CreateInternalTransferRequest sourceType(TradingAccountType sourceType) { * * @return sourceType */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SOURCE_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public TradingAccountType getSourceType() { return sourceType; } @JsonProperty(JSON_PROPERTY_SOURCE_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSourceType(TradingAccountType sourceType) { this.sourceType = sourceType; } @@ -123,15 +123,15 @@ public CreateInternalTransferRequest destType(TradingAccountType destType) { * * @return destType */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DEST_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public TradingAccountType getDestType() { return destType; } @JsonProperty(JSON_PROPERTY_DEST_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDestType(TradingAccountType destType) { this.destType = destType; } diff --git a/src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponse.java b/src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponse.java index a98075e..733c0ac 100644 --- a/src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponse.java @@ -31,7 +31,8 @@ DestinationTransferPeerPathResponse.JSON_PROPERTY_SUB_TYPE, DestinationTransferPeerPathResponse.JSON_PROPERTY_ID, DestinationTransferPeerPathResponse.JSON_PROPERTY_NAME, - DestinationTransferPeerPathResponse.JSON_PROPERTY_WALLET_ID + DestinationTransferPeerPathResponse.JSON_PROPERTY_WALLET_ID, + DestinationTransferPeerPathResponse.JSON_PROPERTY_TRADING_ACCOUNT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DestinationTransferPeerPathResponse { @@ -50,6 +51,9 @@ public class DestinationTransferPeerPathResponse { public static final String JSON_PROPERTY_WALLET_ID = "walletId"; private UUID walletId; + public static final String JSON_PROPERTY_TRADING_ACCOUNT = "tradingAccount"; + private String tradingAccount; + public DestinationTransferPeerPathResponse() {} public DestinationTransferPeerPathResponse type(TransferPeerPathType type) { @@ -179,6 +183,30 @@ public void setWalletId(UUID walletId) { this.walletId = walletId; } + public DestinationTransferPeerPathResponse tradingAccount(String tradingAccount) { + this.tradingAccount = tradingAccount; + return this; + } + + /** + * If this transaction is an exchange internal transfer, this field will be populated with the + * type of that trading account. + * + * @return tradingAccount + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TRADING_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTradingAccount() { + return tradingAccount; + } + + @JsonProperty(JSON_PROPERTY_TRADING_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTradingAccount(String tradingAccount) { + this.tradingAccount = tradingAccount; + } + /** Return true if this DestinationTransferPeerPathResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -194,12 +222,14 @@ public boolean equals(Object o) { && Objects.equals(this.subType, destinationTransferPeerPathResponse.subType) && Objects.equals(this.id, destinationTransferPeerPathResponse.id) && Objects.equals(this.name, destinationTransferPeerPathResponse.name) - && Objects.equals(this.walletId, destinationTransferPeerPathResponse.walletId); + && Objects.equals(this.walletId, destinationTransferPeerPathResponse.walletId) + && Objects.equals( + this.tradingAccount, destinationTransferPeerPathResponse.tradingAccount); } @Override public int hashCode() { - return Objects.hash(type, subType, id, name, walletId); + return Objects.hash(type, subType, id, name, walletId, tradingAccount); } @Override @@ -211,6 +241,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" walletId: ").append(toIndentedString(walletId)).append("\n"); + sb.append(" tradingAccount: ").append(toIndentedString(tradingAccount)).append("\n"); sb.append("}"); return sb.toString(); } @@ -313,6 +344,19 @@ public String toUrlQueryString(String prefix) { .replaceAll("\\+", "%20"))); } + // add `tradingAccount` to the URL query string + if (getTradingAccount() != null) { + joiner.add( + String.format( + "%stradingAccount%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getTradingAccount()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponse.java b/src/main/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponse.java new file mode 100644 index 0000000..fa2a335 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponse.java @@ -0,0 +1,143 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.Objects; +import java.util.StringJoiner; + +/** GetExchangeAccountsCredentialsPublicKeyResponse */ +@JsonPropertyOrder({GetExchangeAccountsCredentialsPublicKeyResponse.JSON_PROPERTY_PUBLIC_KEY}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GetExchangeAccountsCredentialsPublicKeyResponse { + public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey"; + private String publicKey; + + public GetExchangeAccountsCredentialsPublicKeyResponse() {} + + public GetExchangeAccountsCredentialsPublicKeyResponse publicKey(String publicKey) { + this.publicKey = publicKey; + return this; + } + + /** + * Public key string + * + * @return publicKey + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPublicKey() { + return publicKey; + } + + @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + /** Return true if this GetExchangeAccountsCredentialsPublicKeyResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetExchangeAccountsCredentialsPublicKeyResponse + getExchangeAccountsCredentialsPublicKeyResponse = + (GetExchangeAccountsCredentialsPublicKeyResponse) o; + return Objects.equals( + this.publicKey, getExchangeAccountsCredentialsPublicKeyResponse.publicKey); + } + + @Override + public int hashCode() { + return Objects.hash(publicKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetExchangeAccountsCredentialsPublicKeyResponse {\n"); + sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `publicKey` to the URL query string + if (getPublicKey() != null) { + joiner.add( + String.format( + "%spublicKey%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getPublicKey()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/InternalTransferResponse.java b/src/main/java/com/fireblocks/sdk/model/InternalTransferResponse.java index 2bb8693..dca0bf4 100644 --- a/src/main/java/com/fireblocks/sdk/model/InternalTransferResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/InternalTransferResponse.java @@ -22,12 +22,18 @@ import java.util.StringJoiner; /** InternalTransferResponse */ -@JsonPropertyOrder({InternalTransferResponse.JSON_PROPERTY_SUCCESS}) +@JsonPropertyOrder({ + InternalTransferResponse.JSON_PROPERTY_SUCCESS, + InternalTransferResponse.JSON_PROPERTY_ID +}) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class InternalTransferResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; private Boolean success; + public static final String JSON_PROPERTY_ID = "id"; + private String id; + public InternalTransferResponse() {} public InternalTransferResponse success(Boolean success) { @@ -53,6 +59,29 @@ public void setSuccess(Boolean success) { this.success = success; } + public InternalTransferResponse id(String id) { + this.id = id; + return this; + } + + /** + * The transaction ID of the internal transfer + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + /** Return true if this InternalTransferResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +92,13 @@ public boolean equals(Object o) { return false; } InternalTransferResponse internalTransferResponse = (InternalTransferResponse) o; - return Objects.equals(this.success, internalTransferResponse.success); + return Objects.equals(this.success, internalTransferResponse.success) + && Objects.equals(this.id, internalTransferResponse.id); } @Override public int hashCode() { - return Objects.hash(success); + return Objects.hash(success, id); } @Override @@ -76,6 +106,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InternalTransferResponse {\n"); sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); } @@ -134,6 +165,17 @@ public String toUrlQueryString(String prefix) { .replaceAll("\\+", "%20"))); } + // add `id` to the URL query string + if (getId() != null) { + joiner.add( + String.format( + "%sid%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/RegisterNewAssetRequest.java b/src/main/java/com/fireblocks/sdk/model/RegisterNewAssetRequest.java index 2d35d6c..87bc1cb 100644 --- a/src/main/java/com/fireblocks/sdk/model/RegisterNewAssetRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/RegisterNewAssetRequest.java @@ -69,10 +69,9 @@ public RegisterNewAssetRequest address(String address) { } /** - * Asset address. - For EVM based chains this should be the token contract address. - For - * Stellar (XLM) this should be the issuer address. - For Algorand (ALGO) this should be the - * asset ID. - For TRON (TRX) this should be the token contract address. - For NEAR this will be - * the token address. + * Asset address. - EVM-based chains: token contract address - Stellar (XLM): issuer address - + * Algorand (ALGO): asset ID - TRON (TRX): token contract address - NEAR: token address - + * Solana: token's mint account address * * @return address */ diff --git a/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponse.java b/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponse.java index ead7ede..9a2e913 100644 --- a/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponse.java @@ -28,7 +28,8 @@ SourceTransferPeerPathResponse.JSON_PROPERTY_SUB_TYPE, SourceTransferPeerPathResponse.JSON_PROPERTY_ID, SourceTransferPeerPathResponse.JSON_PROPERTY_NAME, - SourceTransferPeerPathResponse.JSON_PROPERTY_WALLET_ID + SourceTransferPeerPathResponse.JSON_PROPERTY_WALLET_ID, + SourceTransferPeerPathResponse.JSON_PROPERTY_TRADING_ACCOUNT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SourceTransferPeerPathResponse { @@ -47,6 +48,9 @@ public class SourceTransferPeerPathResponse { public static final String JSON_PROPERTY_WALLET_ID = "walletId"; private UUID walletId; + public static final String JSON_PROPERTY_TRADING_ACCOUNT = "tradingAccount"; + private String tradingAccount; + public SourceTransferPeerPathResponse() {} public SourceTransferPeerPathResponse type(TransferPeerPathType type) { @@ -176,6 +180,30 @@ public void setWalletId(UUID walletId) { this.walletId = walletId; } + public SourceTransferPeerPathResponse tradingAccount(String tradingAccount) { + this.tradingAccount = tradingAccount; + return this; + } + + /** + * If this transaction is an exchange internal transfer, this field will be populated with the + * type of that trading account. + * + * @return tradingAccount + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TRADING_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTradingAccount() { + return tradingAccount; + } + + @JsonProperty(JSON_PROPERTY_TRADING_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTradingAccount(String tradingAccount) { + this.tradingAccount = tradingAccount; + } + /** Return true if this SourceTransferPeerPathResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -191,12 +219,14 @@ public boolean equals(Object o) { && Objects.equals(this.subType, sourceTransferPeerPathResponse.subType) && Objects.equals(this.id, sourceTransferPeerPathResponse.id) && Objects.equals(this.name, sourceTransferPeerPathResponse.name) - && Objects.equals(this.walletId, sourceTransferPeerPathResponse.walletId); + && Objects.equals(this.walletId, sourceTransferPeerPathResponse.walletId) + && Objects.equals( + this.tradingAccount, sourceTransferPeerPathResponse.tradingAccount); } @Override public int hashCode() { - return Objects.hash(type, subType, id, name, walletId); + return Objects.hash(type, subType, id, name, walletId, tradingAccount); } @Override @@ -208,6 +238,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" walletId: ").append(toIndentedString(walletId)).append("\n"); + sb.append(" tradingAccount: ").append(toIndentedString(tradingAccount)).append("\n"); sb.append("}"); return sb.toString(); } @@ -310,6 +341,19 @@ public String toUrlQueryString(String prefix) { .replaceAll("\\+", "%20"))); } + // add `tradingAccount` to the URL query string + if (getTradingAccount() != null) { + joiner.add( + String.format( + "%stradingAccount%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getTradingAccount()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java index 47cf7fc..2caa662 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java @@ -105,7 +105,9 @@ public enum BlockchainDescriptorEnum { XTZ_TEST("XTZ_TEST"), - BASECHAIN_ETH("BASECHAIN_ETH"); + BASECHAIN_ETH("BASECHAIN_ETH"), + + BASECHAIN_ETH_TEST3("BASECHAIN_ETH_TEST3"); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/TokenResponse.java b/src/main/java/com/fireblocks/sdk/model/TokenResponse.java index 5d6935e..10e526d 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenResponse.java @@ -85,7 +85,9 @@ public enum BlockchainDescriptorEnum { XTZ_TEST("XTZ_TEST"), - BASECHAIN_ETH("BASECHAIN_ETH"); + BASECHAIN_ETH("BASECHAIN_ETH"), + + BASECHAIN_ETH_TEST3("BASECHAIN_ETH_TEST3"); private String value; diff --git a/src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java b/src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java index 36d43b8..c39a21d 100644 --- a/src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java @@ -45,7 +45,8 @@ public void getSupportedAssetsTest() throws ApiException { * Register an asset * *

Register a new asset to a workspace and return the newly created asset's details. - * Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR + * Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR - + * Solana * * @throws ApiException if the Api call fails */ diff --git a/src/test/java/com/fireblocks/sdk/api/KeyLinkBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/KeyLinkBetaApiTest.java index c1a38bf..a9565d9 100644 --- a/src/test/java/com/fireblocks/sdk/api/KeyLinkBetaApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/KeyLinkBetaApiTest.java @@ -131,8 +131,22 @@ public void getSigningKeysListTest() throws ApiException { BigDecimal pageSize = null; String sortBy = null; String order = null; + BigDecimal vaultAccountId = null; + String agentUserId = null; + String algorithm = null; + Boolean enabled = null; + Boolean available = null; CompletableFuture> response = - api.getSigningKeysList(pageCursor, pageSize, sortBy, order); + api.getSigningKeysList( + pageCursor, + pageSize, + sortBy, + order, + vaultAccountId, + agentUserId, + algorithm, + enabled, + available); } /** diff --git a/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponseTest.java b/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponseTest.java index 3731482..7c160ce 100644 --- a/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponseTest.java @@ -55,4 +55,10 @@ public void nameTest() { public void walletIdTest() { // TODO: test walletId } + + /** Test the property 'tradingAccount' */ + @Test + public void tradingAccountTest() { + // TODO: test tradingAccount + } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponseTest.java new file mode 100644 index 0000000..4e4c02e --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponseTest.java @@ -0,0 +1,34 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.Test; + +/** Model tests for GetExchangeAccountsCredentialsPublicKeyResponse */ +public class GetExchangeAccountsCredentialsPublicKeyResponseTest { + private final GetExchangeAccountsCredentialsPublicKeyResponse model = + new GetExchangeAccountsCredentialsPublicKeyResponse(); + + /** Model tests for GetExchangeAccountsCredentialsPublicKeyResponse */ + @Test + public void testGetExchangeAccountsCredentialsPublicKeyResponse() { + // TODO: test GetExchangeAccountsCredentialsPublicKeyResponse + } + + /** Test the property 'publicKey' */ + @Test + public void publicKeyTest() { + // TODO: test publicKey + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/InternalTransferResponseTest.java b/src/test/java/com/fireblocks/sdk/model/InternalTransferResponseTest.java index 5b2c4e4..22ff289 100644 --- a/src/test/java/com/fireblocks/sdk/model/InternalTransferResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/InternalTransferResponseTest.java @@ -30,4 +30,10 @@ public void testInternalTransferResponse() { public void successTest() { // TODO: test success } + + /** Test the property 'id' */ + @Test + public void idTest() { + // TODO: test id + } } diff --git a/src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponseTest.java index 255e1ff..fb5d1e7 100644 --- a/src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponseTest.java @@ -54,4 +54,10 @@ public void nameTest() { public void walletIdTest() { // TODO: test walletId } + + /** Test the property 'tradingAccount' */ + @Test + public void tradingAccountTest() { + // TODO: test tradingAccount + } }